/* ===== ROOT VARIABLES ===== */
:root {
    --primary: #0c8bfc;
    --primary-dark: #0070d6;
    --secondary: #3a4a5c;
    --dark: #1a2332;
    --text: #3a4a5c;
    --text-light: #5f7285;
    --bg-light: #f0f7ff;
    --bg-white: #FFFFFF;
    --border: #dce8f0;
    --success: #00C853;
    --accent: #FF6B6B;
    --gradient: linear-gradient(135deg, #0c8bfc 0%, #38a3ff 100%);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg-white);
    padding-bottom: 70px;
}

@media (min-width: 769px) {
    body {
        padding-bottom: 0;
    }
}

/* ===== CONTAINER ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== HEADER (shared) ===== */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid var(--border);
    transition: box-shadow 0.3s ease;
}

header.scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    max-width: 1200px;
    margin: 0 auto;
}

/* ===== MAIN NAV (Mega Menu) ===== */
.main-nav {
    display: flex;
    align-items: center;
    gap: 0;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 4px;
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    padding: 10px 14px;
    transition: color 0.2s;
    white-space: nowrap;
}

.nav-link:hover {
    color: var(--primary);
}

.nav-chevron {
    transition: transform 0.2s;
    flex-shrink: 0;
}

.nav-item:hover .nav-chevron {
    transform: rotate(180deg);
}

/* Mega Panel */
.mega-panel {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(0, 0, 0, 0.04);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, visibility 0.2s, transform 0.2s;
    transform: translateX(-50%) translateY(8px);
    z-index: 1000;
    padding: 0;
    margin-top: 4px;
}

.nav-item:hover .mega-panel {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.mega-3col {
    width: 680px;
}

.mega-2col {
    width: 460px;
}

.mega-inner {
    display: grid;
    gap: 0;
    padding: 28px 32px 24px;
}

.mega-3col .mega-inner {
    grid-template-columns: 1fr 1fr 1fr;
}

.mega-simple {
    width: 220px;
}

.mega-simple .mega-inner {
    grid-template-columns: 1fr;
}

.mega-simple .mega-col {
    padding: 0;
    border-left: none;
}

.mega-2col .mega-inner {
    grid-template-columns: 1fr 1fr;
}

.mega-col {
    padding: 0 16px;
}

.mega-col:first-child {
    padding-left: 0;
}

.mega-col:last-child {
    padding-right: 0;
}

.mega-col + .mega-col {
    border-left: 1px solid var(--border);
}

.mega-heading {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-light);
    margin-bottom: 12px;
    padding: 0 0 8px;
}

.mega-link {
    display: block;
    color: var(--text);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    padding: 6px 0;
    transition: color 0.15s;
    line-height: 1.4;
}

.mega-link:hover {
    color: var(--primary);
}

.mega-link-primary {
    font-weight: 600;
    color: var(--dark);
}

.mega-link-sub {
    font-size: 13px;
    font-weight: 400;
    color: var(--text-light);
    padding-left: 12px;
}

.mega-link-sub:hover {
    color: var(--primary);
}

.mega-footer {
    background: var(--bg-light);
    padding: 12px 32px;
    border-top: 1px solid var(--border);
    border-radius: 0 0 16px 16px;
}

.mega-footer-link {
    color: var(--primary);
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
}

.mega-footer-link:hover {
    color: var(--primary-dark);
}

/* Nav action buttons */
.nav-cta {
    background: var(--gradient);
    color: white !important;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
    white-space: nowrap;
    margin-left: 8px;
}

.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(12, 139, 252, 0.4);
}

.nav-login {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--dark) !important;
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 500;
    font-size: 13px;
    text-decoration: none;
    transition: all 0.2s;
    white-space: nowrap;
    margin-left: 8px;
}

.nav-login:hover {
    border-color: var(--primary);
    color: var(--primary) !important;
}

/* ===== MOBILE MENU ===== */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
}

.hamburger span {
    width: 24px;
    height: 2px;
    background: var(--dark);
    transition: all 0.3s;
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: 0;
    width: 300px;
    height: 100vh;
    background: white;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 1002;
    padding: 80px 24px 24px;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
}

.mobile-menu.active {
    transform: translateX(0);
}

.mobile-menu-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: var(--bg-light);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--dark);
}

.mobile-menu nav {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    overflow-y: auto;
    max-height: calc(100vh - 100px);
}

.mobile-menu nav > a {
    display: block;
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
    width: 100%;
    font-size: 17px;
    font-weight: 500;
    color: var(--dark);
    text-decoration: none;
    box-sizing: border-box;
}

.mobile-menu .mobile-cta-call {
    display: block;
    width: 100%;
    text-align: center;
    margin-top: 24px;
    background: white;
    color: var(--primary) !important;
    border: 2px solid var(--primary);
    padding: 14px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    box-sizing: border-box;
    text-decoration: none;
}

.mobile-menu .nav-cta {
    display: block;
    width: 100%;
    text-align: center;
    margin-top: 12px;
    padding: 14px 20px;
    font-size: 16px;
    box-sizing: border-box;
    border-bottom: none;
}

/* Mobile Accordion */
.mobile-accordion {
    width: 100%;
    border-bottom: 1px solid var(--border);
}

.mobile-accordion-trigger {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 16px 0;
    background: none;
    border: none;
    font-size: 17px;
    font-weight: 500;
    color: var(--dark);
    cursor: pointer;
    font-family: inherit;
    text-align: left;
}

.mobile-chevron {
    font-size: 18px;
    transition: transform 0.2s;
    color: var(--text-light);
}

.mobile-accordion.open .mobile-chevron {
    transform: rotate(90deg);
}

.mobile-accordion-content {
    display: none;
    padding: 0 0 12px 16px;
}

.mobile-accordion.open .mobile-accordion-content {
    display: block;
}

.mobile-accordion-content a {
    display: block;
    padding: 10px 0;
    color: var(--text-light);
    text-decoration: none;
    font-size: 15px;
    font-weight: 400;
    border-bottom: none !important;
}

.mobile-accordion-content a:hover {
    color: var(--primary);
}

/* Hide mega menu items on mobile */
@media (max-width: 768px) {
    .main-nav {
        display: none;
    }
}

.mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    z-index: 1001;
}

.mobile-overlay.active {
    opacity: 1;
    visibility: visible;
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    header nav {
        display: none;
    }
}

/* ===== PAGE HERO BANNER (interior) ===== */
.page-hero {
    position: relative;
    padding: 120px 0 80px;
    background: var(--bg-light);
    overflow: hidden;
}

.page-hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(240, 247, 255, 0.9) 100%);
}

.page-hero h1 {
    font-size: 48px;
    font-weight: 800;
    color: var(--dark);
    line-height: 1.2;
    margin-bottom: 16px;
    position: relative;
    z-index: 2;
}

.page-hero-subtitle {
    font-size: 18px;
    color: var(--text-light);
    margin-bottom: 32px;
    position: relative;
    z-index: 2;
    max-width: 600px;
}

.page-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.page-hero-subtitle {
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
}

.page-hero-ctas {
    display: flex;
    gap: 16px;
    position: relative;
    z-index: 2;
    justify-content: center;
    flex-wrap: wrap;
}

@media (max-width: 968px) {
    .page-hero {
        padding: 100px 0 60px;
    }

    .page-hero h1 {
        font-size: 36px;
    }

    .page-hero-subtitle {
        font-size: 16px;
    }

    .page-hero-ctas {
        flex-direction: column;
    }
}

/* ===== BREADCRUMB ===== */
.breadcrumb {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
    font-size: 13px;
    flex-wrap: wrap;
}

.breadcrumb a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.2s;
}

.breadcrumb a:hover {
    color: var(--primary-dark);
}

.breadcrumb .separator {
    color: var(--text-light);
    margin: 0 4px;
}

.breadcrumb .current {
    color: var(--text-light);
}

/* ===== SECTION STYLES (shared) ===== */
section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.section-label {
    display: inline-block;
    background: rgba(12, 139, 252, 0.1);
    color: var(--primary);
    padding: 8px 16px;
    border-radius: 100px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
}

.section-title {
    font-size: 40px;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 20px;
    line-height: 1.2;
}

.section-subtitle {
    font-size: 18px;
    color: var(--text-light);
    line-height: 1.7;
}

/* ===== BUTTONS (shared) ===== */
.btn-primary {
    background: var(--gradient);
    color: white;
    padding: 16px 32px;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(12, 139, 252, 0.4);
}

.btn-secondary {
    background: white;
    color: var(--primary);
    padding: 16px 32px;
    border: 2px solid var(--primary);
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
}

.btn-secondary:hover {
    background: var(--primary);
    color: white;
}

.btn-white {
    background: white;
    color: var(--primary);
    padding: 16px 32px;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
}

.btn-white:hover {
    background: var(--bg-light);
}

.btn-outline-white {
    background: transparent;
    color: white;
    padding: 16px 32px;
    border: 2px solid white;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
}

.btn-outline-white:hover {
    background: white;
    color: var(--primary);
}

/* ===== CTA SECTION (shared) ===== */
.cta-section {
    background: var(--dark);
    position: relative;
    overflow: hidden;
    padding: 120px 0;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../images/a3.jpg') center/cover;
    opacity: 0.15;
}

.cta-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(26, 35, 50, 0.95) 0%, rgba(12, 139, 252, 0.9) 100%);
}

.cta-content {
    position: relative;
    z-index: 2;
}

.cta-content h2 {
    font-size: 40px;
    font-weight: 800;
    color: white;
    margin-bottom: 20px;
    line-height: 1.2;
}

.cta-content p {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 32px;
    max-width: 600px;
}

.cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

@media (max-width: 968px) {
    .cta-section {
        padding: 80px 0;
    }

    .cta-content h2 {
        font-size: 32px;
    }

    .cta-content p {
        font-size: 16px;
    }

    .cta-buttons {
        flex-direction: column;
    }
}

/* ===== INLINE CTA BANNER ===== */
.inline-cta {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    padding: 60px 0;
    border-radius: 0;
    color: white;
    position: relative;
    overflow: hidden;
}

.inline-cta::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 400px;
    height: 400px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.inline-cta-inner {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 32px;
}

.inline-cta-text h3 {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 12px;
    line-height: 1.2;
}

.inline-cta-text p {
    font-size: 16px;
    opacity: 0.9;
    line-height: 1.6;
}

.inline-cta-buttons {
    display: flex;
    gap: 12px;
    white-space: nowrap;
}

@media (max-width: 968px) {
    .inline-cta-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .inline-cta-text h3 {
        font-size: 24px;
    }

    .inline-cta-buttons {
        width: 100%;
        flex-direction: column;
    }

    .inline-cta-buttons .btn-white,
    .inline-cta-buttons .btn-outline-white {
        width: 100%;
        text-align: center;
    }
}

/* ===== FOOTER (shared) ===== */
footer {
    background: var(--dark);
    color: rgba(255, 255, 255, 0.7);
    padding: 80px 0 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-brand .logo {
    color: white;
    margin-bottom: 20px;
}

.footer-brand p {
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 24px;
}

.footer-column {
    display: flex;
    flex-direction: column;
}

footer a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: color 0.2s;
}

footer a:hover {
    color: white;
}

footer .logo img {
    opacity: 0.9;
}

.footer-column h4 {
    color: white;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 20px;
}

.footer-column ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-column ul li {
    list-style: none;
}

.footer-column ul li a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: color 0.2s;
    font-size: 14px;
    line-height: 1.5;
}

.footer-column ul li a:hover {
    color: white;
}

.footer-links {
    display: flex;
    flex-direction: row;
    gap: 24px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: color 0.2s;
    font-size: 14px;
}

.footer-links a:hover {
    color: white;
}

.footer-social {
    display: flex;
    gap: 12px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: background 0.2s;
    font-size: 18px;
}

.footer-social a svg {
    width: 20px;
    height: 20px;
    stroke: white !important;
    fill: none !important;
    stroke-width: 2;
}

.footer-social a svg path,
.footer-social a svg rect,
.footer-social a svg circle,
.footer-social a svg line {
    stroke: white !important;
    fill: none !important;
}

.footer-social a:hover {
    background: rgba(255, 255, 255, 0.2);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
}

.footer-bottom .footer-links {
    display: flex;
    flex-direction: row;
    gap: 24px;
}

.footer-bottom .footer-links a {
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
}

.footer-bottom p {
    margin: 0;
}

@media (max-width: 968px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
}

@media (max-width: 580px) {
    footer {
        padding: 60px 0 30px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 16px;
    }
}

/* ===== MOBILE BOTTOM BAR (shared) ===== */
.mobile-bottom-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    border-top: 1px solid var(--border);
    display: none;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    z-index: 999;
    padding: 12px 16px;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
}

.mobile-bottom-bar a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    padding: 12px 16px;
    border-radius: 8px;
    transition: all 0.2s;
}

.mobile-bottom-bar a:first-child {
    background: white;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.mobile-bottom-bar a:first-child:hover {
    background: var(--bg-light);
}

.mobile-bottom-bar a:last-child {
    background: var(--gradient);
    color: white;
}

.mobile-bottom-bar a:last-child:hover {
    box-shadow: 0 4px 15px rgba(12, 139, 252, 0.4);
}

.mobile-bottom-bar a svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
}

@media (max-width: 768px) {
    .mobile-bottom-bar {
        display: grid;
    }
}

/* ===== ANIMATIONS ===== */
.fade-in {
    opacity: 0;
    animation: fadeInUp 0.6s ease-out forwards;
}

.fade-in.visible {
    opacity: 1;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== SHARED PAGE COMPONENTS ===== */

/* Intro Section (used on about, ai-course, ai-receptionist, seo, social, implant) */
.intro-section {
    background: white;
}

.intro-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.intro-content h2 {
    font-size: 36px;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 24px;
    line-height: 1.25;
}

.intro-content p {
    color: var(--text-light);
    font-size: 17px;
    line-height: 1.8;
    margin-bottom: 20px;
}

.intro-image {
    position: relative;
}

.intro-image img {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.1);
}

@media (max-width: 968px) {
    .intro-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

/* Content Section (used on about, ai-receptionist, seo, social, implant) */
.content-section {
    background: white;
}

.content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.content-section-text h2 {
    font-size: 36px;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 24px;
    line-height: 1.25;
}

.content-section-text p {
    color: var(--text-light);
    font-size: 17px;
    line-height: 1.8;
    margin-bottom: 20px;
}

.content-image img {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.1);
}

@media (max-width: 968px) {
    .content-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

/* Promise Section — dark background with white text (ai-receptionist, implant) */
.promise-section {
    background: var(--dark);
    color: white;
    position: relative;
    overflow: hidden;
    padding: 120px 0;
}

.promise-section .section-label {
    background: rgba(255, 255, 255, 0.15);
    color: white;
}

.promise-section .section-title {
    color: white;
}

.promise-section .section-subtitle {
    color: rgba(255, 255, 255, 0.7);
}

.promise-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    position: relative;
    z-index: 1;
}

.promise-card {
    text-align: center;
    padding: 20px;
}

.promise-icon {
    width: 70px;
    height: 70px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.promise-icon svg {
    width: 32px;
    height: 32px;
    stroke: white;
    fill: none;
}

.promise-card h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 12px;
}

.promise-card p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 15px;
    line-height: 1.7;
}

@media (max-width: 768px) {
    .promise-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

/* FAQ Section (homepage, support) */
.faq-section {
    background: white;
}

.faq-item {
    border: 1px solid var(--border);
    border-radius: 12px;
    margin-bottom: 12px;
    overflow: hidden;
}

.faq-question {
    padding: 24px 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    background: white;
    transition: background 0.2s;
    font-weight: 600;
    color: var(--dark);
    font-size: 16px;
    line-height: 1.5;
    gap: 16px;
}

.faq-question:hover {
    background: var(--bg-light);
}

.faq-answer {
    padding: 0 28px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-answer.active {
    padding: 4px 28px 24px;
    max-height: 500px;
}

.faq-answer p {
    color: var(--text-light);
    line-height: 1.7;
}

/* Legal Content (privacy, terms) */
.legal-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 60px 24px;
}

.legal-content h2 {
    font-size: 28px;
    font-weight: 700;
    color: var(--dark);
    margin: 40px 0 16px;
}

.legal-content h3 {
    font-size: 22px;
    font-weight: 600;
    color: var(--dark);
    margin: 30px 0 12px;
}

.legal-content p {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 16px;
}

.legal-content ul, .legal-content ol {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 16px;
    padding-left: 24px;
}

.legal-content a {
    color: var(--primary);
    text-decoration: none;
}

.legal-content a:hover {
    text-decoration: underline;
}

/* ===== STANDARDIZED COMPONENT FIXES ===== */
/* Resolving conflicts between global and page-level CSS */

/* ===== FEATURES GRID (service pages, audience pages, pillar pages) ===== */
.features-section {
    background: var(--bg-light);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.features-grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.features-grid-5 {
    grid-template-columns: repeat(5, 1fr);
}

.feature-card {
    background: white;
    border-radius: 16px;
    padding: 40px 30px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.feature-card:hover {
    border-color: var(--border);
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
}

.feature-icon {
    width: 56px;
    height: 56px;
    background: var(--gradient);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.feature-icon svg {
    width: 26px;
    height: 26px;
    stroke: white;
    fill: none;
    stroke-width: 2;
}

.feature-card h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 12px;
}

.feature-card p {
    color: var(--text-light);
    font-size: 15px;
    line-height: 1.7;
}

@media (max-width: 968px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .features-grid-5 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .features-grid,
    .features-grid-3,
    .features-grid-5 {
        grid-template-columns: 1fr;
    }
}

/* ===== PROBLEM SECTION (homepage, service pages) ===== */
.problem-section {
    background: white;
}

.problem-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.problem-image img {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.1);
}

.problem-content h2 {
    font-size: 36px;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 24px;
    line-height: 1.25;
}

.problem-content p {
    color: var(--text-light);
    font-size: 17px;
    line-height: 1.8;
    margin-bottom: 20px;
}

.problem-list {
    list-style: none;
    margin-top: 30px;
}

.problem-list li {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
}

.problem-list li:last-child {
    border-bottom: none;
}

.problem-icon {
    width: 24px;
    height: 24px;
    background: rgba(255, 107, 107, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
}

.problem-icon svg {
    width: 12px;
    height: 12px;
    stroke: var(--accent);
    fill: none;
    stroke-width: 2;
}

@media (max-width: 968px) {
    .problem-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

/* ===== VIDEO TYPE CARDS (implant page, video marketing) ===== */
.video-types-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 40px;
}

.video-type-card {
    background: var(--bg-light);
    border-radius: 16px;
    padding: 32px 24px;
    text-align: center;
    transition: all 0.3s ease;
}

.video-type-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
}

.video-type-number {
    width: 48px;
    height: 48px;
    background: var(--gradient);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 800;
    margin: 0 auto 16px;
}

.video-type-card h4 {
    font-size: 16px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 8px;
}

.video-type-card p {
    color: var(--text-light);
    font-size: 14px;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .video-types-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .video-types-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== JOURNEY SECTION (implant page, AI receptionist) ===== */
.journey-section {
    background: white;
}

.journey-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.journey-content h2 {
    font-size: 36px;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 24px;
    line-height: 1.25;
}

.journey-content p {
    color: var(--text-light);
    font-size: 17px;
    line-height: 1.8;
    margin-bottom: 24px;
}

.journey-highlights {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.journey-highlight {
    display: flex;
    align-items: center;
    gap: 12px;
}

.journey-highlight-icon {
    width: 28px;
    height: 28px;
    background: rgba(12, 139, 252, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.journey-highlight-icon svg {
    width: 14px;
    height: 14px;
    stroke: var(--primary);
    fill: none;
    stroke-width: 3;
}

.journey-highlight span {
    font-weight: 500;
    color: var(--dark);
    font-size: 15px;
}

.journey-image img {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.1);
}

@media (max-width: 968px) {
    .journey-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

/* ===== SERVICE CARDS GRID (services hub, sub-service links, hub pages) ===== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 32px;
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
    border-color: var(--primary);
}

.service-card h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 12px;
}

.service-card p {
    color: var(--text-light);
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 16px;
}

.service-card a {
    color: var(--primary);
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: gap 0.2s;
}

.service-card a:hover {
    gap: 10px;
}

@media (max-width: 968px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== TRUST BAR (homepage, case studies for metric display) ===== */
.trust-bar {
    background: var(--bg-light);
    padding: 60px 0;
}

.trust-items {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    text-align: center;
}

.trust-item {
    padding: 20px;
}

.trust-number {
    font-size: 42px;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 8px;
}

.trust-label {
    font-size: 14px;
    color: var(--text-light);
    font-weight: 500;
}

@media (max-width: 768px) {
    .trust-items {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .trust-items {
        grid-template-columns: 1fr;
    }
}

/* ===== CONTENT GRID REVERSED VARIANT ===== */
.content-grid.reversed {
    direction: rtl;
}

.content-grid.reversed > * {
    direction: ltr;
}

/* ===== SOLUTIONS GRID (homepage) ===== */
.solutions-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.solution-card {
    background: white;
    border-radius: 16px;
    padding: 40px 30px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    position: relative;
    overflow: hidden;
}

.solution-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient);
    transform: scaleX(0);
    transition: transform 0.3s;
}

.solution-card:hover {
    background: white;
    border-color: var(--border);
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
}

.solution-card:hover::before {
    transform: scaleX(1);
}

.solution-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.solution-icon svg {
    width: 28px;
    height: 28px;
    stroke: white;
    fill: none;
    stroke-width: 2;
}

.solution-card h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 12px;
}

.solution-card p {
    color: var(--text-light);
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 20px;
}

.solution-link {
    color: var(--primary);
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: gap 0.2s;
}

.solution-link:hover {
    gap: 10px;
}

@media (max-width: 968px) {
    .solutions-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .solutions-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== PROCESS STEPS (homepage, how it works) ===== */
.process-section {
    background: linear-gradient(135deg, var(--dark) 0%, #0a1a2a 100%);
    position: relative;
    overflow: hidden;
    color: white;
}

.process-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('/images/a6.jpg') center/cover;
    opacity: 0.08;
}

.process-section .section-label {
    background: rgba(255, 255, 255, 0.15);
    color: white;
}

.process-section .section-title {
    color: white;
}

.process-section .section-subtitle {
    color: rgba(255, 255, 255, 0.7);
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 30px;
    position: relative;
    z-index: 1;
}

.process-card {
    text-align: center;
    position: relative;
}

.process-number {
    width: 80px;
    height: 80px;
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 800;
    color: white;
    margin: 0 auto 24px;
    position: relative;
}

.process-number::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px dashed rgba(255, 255, 255, 0.2);
}

.process-card h3 {
    font-size: 18px;
    font-weight: 700;
    color: white;
    margin-bottom: 12px;
}

.process-card p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    line-height: 1.7;
}

@media (max-width: 968px) {
    .process-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .process-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== TESTIMONIALS (homepage) ===== */
.testimonials-section {
    background: var(--bg-light);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.testimonial-card {
    background: white;
    border-radius: 16px;
    padding: 40px 30px;
    position: relative;
    transition: all 0.3s;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
}

.testimonial-stars {
    display: flex;
    gap: 4px;
    margin-bottom: 16px;
}

.testimonial-stars svg {
    width: 18px;
    height: 18px;
    fill: #ffc107;
}

.testimonial-text {
    color: var(--text);
    font-size: 15px;
    line-height: 1.8;
    margin-bottom: 24px;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.testimonial-name {
    font-weight: 600;
    color: var(--dark);
    font-size: 15px;
}

.testimonial-source {
    font-size: 13px;
    color: var(--text-light);
}

@media (max-width: 768px) {
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== ABOUT GRID (about page, homepage teaser) ===== */
.about-section {
    background: var(--bg-light);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-content h2 {
    font-size: 36px;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 24px;
    line-height: 1.25;
}

.about-content p {
    color: var(--text-light);
    font-size: 17px;
    line-height: 1.8;
    margin-bottom: 20px;
}

.about-image img {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.1);
}

@media (max-width: 968px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

/* ===== REVIEW CARDS (success stories, testimonials hub) ===== */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.review-card {
    background: white;
    border-radius: 16px;
    padding: 32px;
    border: 1px solid var(--border);
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.review-name {
    font-weight: 600;
    color: var(--dark);
}

.review-stars {
    display: flex;
    gap: 2px;
}

.review-stars svg {
    width: 16px;
    height: 16px;
    fill: #ffc107;
}

.review-text {
    color: var(--text);
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 12px;
    font-style: italic;
}

.review-source {
    font-size: 13px;
    color: var(--text-light);
}

@media (max-width: 768px) {
    .reviews-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== CASE STUDY CARDS (success stories hub) ===== */
.case-studies-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.case-study-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.case-study-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
}

.case-study-image {
    height: 240px;
    overflow: hidden;
}

.case-study-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.case-study-content {
    padding: 32px;
}

.case-study-metric {
    display: inline-block;
    background: rgba(12, 139, 252, 0.1);
    color: var(--primary);
    padding: 6px 14px;
    border-radius: 100px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 12px;
}

.case-study-content h3 {
    font-size: 22px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 12px;
}

.case-study-content p {
    color: var(--text-light);
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 16px;
}

.case-study-highlight {
    font-weight: 600;
    color: var(--primary);
    font-size: 14px;
    margin-bottom: 16px;
}

.case-study-ctas a {
    color: var(--primary);
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
}

@media (max-width: 768px) {
    .case-studies-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== CONTACT GRID (contact page) ===== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-info-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    border: 1px solid var(--border);
    border-radius: 12px;
    text-decoration: none;
    color: var(--text);
    transition: all 0.2s;
}

.contact-info-card:hover {
    border-color: var(--primary);
    background: var(--bg-light);
}

.contact-info-card-icon {
    width: 48px;
    height: 48px;
    background: rgba(12, 139, 252, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-info-card-icon svg {
    width: 22px;
    height: 22px;
    stroke: var(--primary);
    fill: none;
    stroke-width: 2;
}

.contact-info-card h3 {
    font-size: 15px;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 4px;
}

.contact-info-card p {
    font-size: 14px;
    color: var(--text-light);
}

.contact-form-wrapper {
    background: var(--bg-light);
    border-radius: 20px;
    padding: 40px;
}

.contact-form-wrapper h3 {
    font-size: 24px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 24px;
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--dark);
    margin-bottom: 6px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 15px;
    font-family: inherit;
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.form-group-half {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

@media (max-width: 968px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
    .form-group-half {
        grid-template-columns: 1fr;
    }
}

/* ===== INLINE CTA VARIANTS ===== */
/* Light variant (used inside white-background content sections) */
.inline-cta-light {
    background: var(--bg-light);
    padding: 40px;
    border-radius: 16px;
    border: 1px solid var(--border);
    text-align: center;
}

.inline-cta-light h3 {
    font-size: 24px;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 12px;
}

.inline-cta-light p {
    font-size: 16px;
    color: var(--text-light);
    margin-bottom: 20px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ============================================
   Case Study Auto-Links
   ============================================ */
.case-study-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    transition: opacity 0.2s;
}
.case-study-link:hover {
    opacity: 0.8;
    text-decoration: underline;
}

/* White links on dark/blue backgrounds */
.cta-section .case-study-link,
.inline-cta .case-study-link,
.problem-section .case-study-link,
.process-section .case-study-link,
.page-hero .case-study-link {
    color: #ffffff;
    text-decoration: underline;
    text-decoration-color: rgba(255, 255, 255, 0.5);
}
.cta-section .case-study-link:hover,
.inline-cta .case-study-link:hover,
.problem-section .case-study-link:hover,
.process-section .case-study-link:hover,
.page-hero .case-study-link:hover {
    text-decoration-color: #ffffff;
    opacity: 1;
}
