/*
Theme Name: ASK IT GEO Theme
Theme URI: https://askit.com.hk
Author: ASK IT Limited
Author URI: https://askit.com.hk
Description: 為 ASK IT Limited 設計的 WordPress 主題，專注於生成式引擎優化 (GEO) 和企業品牌呈現。採用瑞士精密企業風格，集成 Tailwind CSS 和 Noto Sans TC 字體。
Version: 1.0.0
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: askit-geo-theme
Domain Path: /languages
Requires at least: 5.0
Requires PHP: 7.4
*/

/* ============================================
   ASK IT GEO Theme - Main Stylesheet
   ============================================ */

/* Import Tailwind CSS via CDN (handled in functions.php) */
/* Import Noto Sans TC font (handled in functions.php) */

/* ============================================
   Base Styles
   ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

html * {
    transition-delay: 0.1s !important;
    transition-duration: 0.1s !important;
}

body {
    font-family: 'Noto Sans TC', sans-serif;
    color: #1e293b;
    background-color: #ffffff;
    line-height: 1.6;
}

/* ============================================
   Typography
   ============================================ */

h1, h2, h3, h4, h5, h6 {
    font-family: 'Noto Sans TC', sans-serif;
    font-weight: 900;
    line-height: 1.2;
}

h1 {
    font-size: 2.25rem;
    margin-bottom: 1rem;
}

h2 {
    font-size: 1.875rem;
    margin-bottom: 1rem;
}

h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

p {
    margin-bottom: 1rem;
}

a {
    color: #32B9CC;
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    /*color: #3D5BA9;*/
}

/* ============================================
   Navbar Glass Morphism
   ============================================ */

.glass-morphism {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
}

/* ============================================
   Gradient Button
   ============================================ */

.btn-gradient {
    background: linear-gradient(90deg, #32B9CC 0%, #3D5BA9 100%);
    color: white;
    border: none;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.btn-gradient:hover {
    opacity: 0.9;
}

/* ============================================
   Hero Section
   ============================================ */

.hero-bg {
    background: linear-gradient(135deg, #f0f9fa 0%, #ffffff 60%, #f5f8ff 100%);
}

.hero-img-overlay {
    background-image: url('https://d2xsxph8kpxj0f.cloudfront.net/310519663602763870/gXkRScbRZa8cSXcCGfvnqH/hero-bg-CkRuQVYQqELvDvfAxN3eoa.webp');
    background-size: cover;
    background-position: center;
    opacity: 0.3;
}

/* ============================================
   Trust Bar Scroll Animation
   ============================================ */

@keyframes scroll-left {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.scroll-track {
    display: flex;
    animation: scroll-left 30s linear infinite;
}

.scroll-track:hover {
    animation-play-state: paused;
}

/* ============================================
   Stat Cards
   ============================================ */

.stat-card {
    background: #ffffff;
    border-radius: 1rem;
    padding: 1.5rem;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.stat-card:hover {
    border-color: #32B9CC;
    box-shadow: 0 10px 25px -5px rgba(50, 185, 204, 0.15);
    transform: translateY(-2px);
}

/* ============================================
   Testimonial Cards
   ============================================ */

.testimonial-card {
    background: #ffffff;
    border-radius: 1.5rem;
    padding: 2rem;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    border-color: #32B9CC;
    transform: translateY(-4px);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.1);
}

/* ============================================
   Live Cards
   ============================================ */

.live-card {
    background: #ffffff;
    border-radius: 1.25rem;
    overflow: hidden;
    border: 1px solid #f1f5f9;
    transition: all 0.3s ease;
}

.live-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px -5px rgba(0, 0, 0, 0.1);
}

/* ============================================
   Navigation & Dropdown
   ============================================ */

nav {
    position: sticky;
    top: 0;
    z-index: 50;
}

.dropdown-menu {
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all 0.2s ease;
}

.dropdown-menu2 {
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px) translateX(200px);
    transition: all 0.2s ease;
}

.dropdown-group:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.dropdown-group2:hover .dropdown-menu2 {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) translateX(200px);;
}

#mobile-menu {
    max-height: 100%;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

#mobile-menu.open {
    max-height: 600px;
}

/* ============================================
   Animations & Transitions
   ============================================ */
/*
.fade-in {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}
*/
/* ============================================
   Counter Animation
   ============================================ */

.counter {
    transition: all 0.1s;
}

/* ============================================
   Pulse Dot Animation
   ============================================ */

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.pulse-dot {
    animation: pulse 2s ease-in-out infinite;
}

/* ============================================
   Solution Card Hover
   ============================================ */

.solution-card {
    transition: all 0.3s ease;
}

.solution-card:hover {
    box-shadow: 0 24px 48px -12px rgba(0, 0, 0, 0.12);
    border-color: transparent !important;
}

.solution-card:hover .solution-img {
    transform: scale(1.05);
}

.solution-img {
    transition: transform 0.5s ease;
}

/* ============================================
   Form Elements
   ============================================ */

.form-input {
    width: 100%;
    padding: 0.875rem 1.25rem;
    border-radius: 0.75rem;
    background-color: #f8fafc;
    border: 2px solid transparent;
    outline: none;
    transition: all 0.2s ease;
    font-family: 'Noto Sans TC', sans-serif;
}

.form-input:focus {
    background-color: #fff;
    border-color: #32B9CC;
    box-shadow: 0 4px 12px rgba(50, 185, 204, 0.12);
}

.form-label {
    display: block;
    font-size: 0.7rem;
    font-weight: 700;
    color: #94a3b8;
    margin-bottom: 0.4rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ============================================
   FAQ Accordion
   ============================================ */

details summary {
    cursor: pointer;
    list-style: none;
}

details summary::-webkit-details-marker {
    display: none;
}

details[open] .faq-icon {
    transform: rotate(45deg);
}

.faq-icon {
    transition: transform 0.2s ease;
}

/* ============================================
   Color Scheme (ASK IT Brand Colors)
   ============================================ */

.text-askit-cyan {
    color: #32B9CC;
}

.text-askit-blue {
    color: #3D5BA9;
}

.bg-askit-cyan {
    background-color: #32B9CC;
}

.bg-askit-blue {
    background-color: #3D5BA9;
}

.bg-askit-light {
    background-color: #EBF8FA;
}

.bg-askit-lightblue {
    background-color: #EEF2FB;
}

.bg-askit-dark {
    background-color: #1B3E4F;
}

/* ============================================
   Responsive Design
   ============================================ */

@media (max-width: 768px) {
    h1 {
        font-size: 1.875rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    h3 {
        font-size: 1.125rem;
    }
}

/* ============================================
   WordPress Specific Styles
   ============================================ */

/* 禁用 WordPress 預設段落邊距 */
.entry-content p {
    margin-bottom: 0 !important;
}

/* 確保 Tailwind Grid 正常工作 */
.entry-content .grid,
.entry-content [class*="grid-cols"] {
    display: grid !important;
}

/* 防止 WordPress 在 HTML 中插入多餘的 <p> 標籤 */
.entry-content section {
    margin: 0 !important;
    padding: 0 !important;
}

.entry-content section > * {
    margin: 0 !important;
    padding: 0 !important;
}

/* 按鈕全局樣式調整 */
.entry-content a[class*="btn"],
.entry-content a[class*="px-8"],
.entry-content button {
    padding: 0.875rem 2rem !important;
    font-size: 0.875rem !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* 防止 WordPress 改變 Tailwind 的 flex 和 grid */
.entry-content [class*="flex"],
.entry-content [class*="grid"] {
    display: flex !important;
    display: grid !important;
}

.entry-content [class*="gap-"] {
    gap: inherit !important;
}

.wp-block-image {
    margin: 1.5rem 0;
}

.wp-block-image img {
    max-width: 100%;
    height: auto;
}

.wp-caption {
    background-color: #f8fafc;
    padding: 0.75rem;
    border-radius: 0.5rem;
    margin: 1rem 0;
}

.wp-caption-text {
    font-size: 0.875rem;
    color: #64748b;
    margin-top: 0.5rem;
}

/* ============================================
   Hide Page Title for Home Page Template
   ============================================ */

/* 隱藏首頁模板中的 WordPress 預設標題 - 精準定位 */
body.page-template-page-home .page-title,
body.page-template-page-home .entry-header,
body.page-template-page-home h1.entry-title,
body.page-template-page-home .entry-title {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

body.page-template-page-home .entry-content {
    margin: 0 !important;
    padding: 0 !important;
}

/* 確保主內容區域沒有多餘的頂部邊距 */
body.page-template-page-home .site-main,
body.page-template-page-home #main,
body.page-template-page-home .content-area {
    margin: 0 !important;
    padding: 0 !important;
}

/* ============================================
   Utility Classes
   ============================================ */

.container {
    max-width: 80rem;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.section-padding {
    padding-top: 6rem;
    padding-bottom: 6rem;
}

.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.e-con-full, .e-con>.e-con-inner {
    padding-block-start:0%;
    padding-block-end:0%;
}

/* ============================================
   Print Styles
   ============================================ */

@media print {
    nav,
    footer,
    .no-print {
        display: none;
    }
}
