/* ==========================================================================
   Law Office of Daniel Chung - Styling Sheet
   ========================================================================== */

/* Design Tokens */
:root {
    /* Fonts */
    --font-serif: 'Playfair Display', Georgia, serif;
    --font-sans: 'Montserrat', 'Inter', sans-serif;
    
    /* Colors */
    --primary: hsl(214, 70%, 10%);         /* Deep authoritative navy */
    --primary-light: hsl(214, 50%, 15%);
    --primary-dark: hsl(214, 90%, 5%);
    --accent: hsl(42, 58%, 53%);           /* Warm premium gold */
    --accent-deep: hsl(40, 80%, 30%);      /* Dourado para TEXTO em fundo claro (contraste AA) */
    --accent-hover: hsl(42, 65%, 45%);
    --accent-glow: hsla(42, 58%, 53%, 0.15);
    
    --bg-light: hsl(30, 15%, 98%);         /* Sophisticated cream white */
    --bg-pure: hsl(0, 0%, 100%);
    
    --text-dark: hsl(214, 25%, 15%);       /* Dark slate navy */
    --text-muted: hsl(214, 18%, 34%);      /* Escurecido: era 45% e lavava o texto */
    --text-light: hsl(0, 0%, 96%);
    
    --border-color: hsl(214, 20%, 90%);
    
    /* Layout & Utilities */
    --container-max-width: 1140px;
    --header-height: 90px;
    
    --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.03);
    --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 20px 50px rgba(8, 24, 45, 0.15);
    
    --transition-smooth: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    --transition-fast: all 0.2s ease;
}

/* Reset */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-sans);
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-dark);
    background-color: var(--bg-pure);
    overflow-x: hidden;
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Typography elements */
h1, h2, h3, h4 {
    font-family: var(--font-serif);
    font-weight: 600;
    line-height: 1.3;
    color: var(--primary);
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-fast);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button {
    font-family: inherit;
    outline: none;
    border: none;
    background: none;
    cursor: pointer;
}

/* Utility classes */
.container {
    width: 90%;
    max-width: var(--container-max-width);
    margin: 0 auto;
}

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

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.font-bold {
    font-weight: 700;
}

/* Title Divider decoration */
.title-divider {
    width: 80px;
    height: 2px;
    background-color: var(--accent);
    margin: 20px 0;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.6rem;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: var(--transition-smooth);
}
.btn:active { transform: scale(.96); }

.btn-consultation {
    background-color: var(--accent);
    color: var(--primary);
    box-shadow: 0 4px 10px var(--accent-glow);
}

.btn-consultation:hover {
    background-color: var(--accent-hover);
    color: var(--text-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(220, 160, 40, 0.3);
}

.btn-primary {
    background-color: var(--primary);
    color: var(--text-light);
}

.btn-primary:hover {
    background-color: var(--primary-light);
    transform: translateY(-2px);
}

/* Reveal on Scroll Elements */
.js-enabled .fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s cubic-bezier(0.25, 0.8, 0.25, 1),
                transform 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.js-enabled .fade-in.appear {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   Typographic Logo
   ========================================================================== */
.logo-box {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    border: 1px solid var(--accent);
    padding: 8px 18px;
    background-color: var(--primary);
    color: var(--accent);
    text-align: center;
    transition: var(--transition-smooth);
}

.logo-line-top {
    font-family: var(--font-sans);
    font-size: 0.55rem;
    font-weight: 600;
    letter-spacing: 2.2px;
    border-bottom: 0.5px solid var(--accent);
    padding-bottom: 4px;
    margin-bottom: 4px;
    width: 100%;
}

.logo-line-bottom {
    font-family: var(--font-serif);
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 1.2px;
    white-space: nowrap;
}

.logo-link:hover .logo-box {
    border-color: var(--text-light);
    color: var(--text-light);
}

/* ==========================================================================
   Header Navigation Styles
   ========================================================================== */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background-color: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid var(--border-color);
    z-index: 100;
    transition: var(--transition-smooth);
}

.main-header.scrolled {
    height: 75px;
    box-shadow: var(--shadow-sm);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 15px;
}

/* Navigation Menu */
.primary-navigation {
    display: flex;
    align-items: center;
    height: 100%;
}

.nav-list {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 32px;
    height: 100%;
}

.nav-list > li {
    height: 100%;
    display: flex;
    align-items: center;
}

.nav-link {
    font-family: var(--font-sans);
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--primary);
    padding: 8px 0;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--accent);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

.nav-link:hover, 
.nav-link.active {
    color: var(--accent);
}

.nav-link:hover::after, 
.nav-link.active::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* Dropdown Menu */
.dropdown {
    position: relative;
}

.dropdown-toggle {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.dropdown-arrow {
    width: 12px;
    height: 12px;
    transition: var(--transition-fast);
}

.dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--primary-light);
    border: 1px solid var(--accent);
    list-style: none;
    min-width: 250px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition-smooth);
    box-shadow: var(--shadow-md);
    padding: 10px 0;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu a {
    display: block;
    padding: 10px 20px;
    font-family: var(--font-sans);
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.85);
}

.dropdown-menu a:hover {
    color: var(--accent);
    background-color: rgba(255, 255, 255, 0.05);
    padding-left: 25px;
}

/* Hamburger toggle */
.mobile-nav-toggle {
    display: none;
    padding: 10px;
    z-index: 200;
}

.hamburger {
    display: block;
    position: relative;
    width: 24px;
    height: 2px;
    background-color: var(--primary);
    transition: var(--transition-fast);
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary);
    transition: var(--transition-fast);
}

.hamburger::before { top: -8px; }
.hamburger::after { bottom: -8px; }

.mobile-nav-toggle[aria-expanded="true"] .hamburger {
    background-color: transparent;
}

.mobile-nav-toggle[aria-expanded="true"] .hamburger::before {
    transform: rotate(45deg);
    top: 0;
}

.mobile-nav-toggle[aria-expanded="true"] .hamburger::after {
    transform: rotate(-45deg);
    bottom: 0;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
    position: relative;
    height: 85vh;
    min-height: 550px;
    background:
        radial-gradient(circle at 88% 8%, hsla(42, 60%, 60%, 0.14) 0%, transparent 45%),
        var(--bg-light);
    display: flex;
    align-items: center;
    padding-top: var(--header-height);
    overflow: hidden;
    border-bottom: 1px solid var(--border-color);
}

.hero-container {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    align-items: center;
    gap: 40px;
    width: 90%;
    max-width: var(--container-max-width);
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.hero-title {
    font-size: clamp(2rem, 3.5vw, 3.2rem);
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: 0.5px;
    color: var(--primary);
    margin-bottom: 25px;
}

.hero-desc {
    font-family: var(--font-sans);
    font-size: 0.98rem;
    font-weight: 400;
    line-height: 1.8;
    letter-spacing: 0.2px;
    color: var(--text-muted);
}

.hero-media {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}

.hero-img {
    width: 100%;
    height: 100%;
    max-height: 60vh;
    object-fit: cover;
    object-position: center top;
    border: 1px solid var(--accent);
    padding: 10px;
    background-color: var(--primary-light);
    box-shadow: var(--shadow-lg);
}

/* ==========================================================================
   Practice Areas Section
   ========================================================================== */
.practice-section {
    padding: 100px 0;
    background-color: var(--bg-light);
}

.section-header {
    max-width: 850px;
    margin-bottom: 60px;
}

.section-title {
    font-size: clamp(1.8rem, 3vw, 2.3rem);
    font-weight: 500;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.section-header .title-divider {
    margin: 20px 0;
}

.section-subtitle {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    font-style: italic;
    color: var(--text-muted);
    line-height: 1.6;
}

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

.practice-card {
    background-color: var(--bg-pure);
    border: 1px solid var(--border-color);
    padding: 40px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.practice-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.practice-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--accent);
}

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

.card-title {
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 20px;
}

.card-desc {
    font-family: var(--font-sans);
    font-size: 0.94rem;
    font-weight: 400;
    line-height: 1.75;
    color: var(--text-muted);
    margin-bottom: 30px;
    flex-grow: 1;
}

.card-link {
    font-family: var(--font-sans);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--accent-deep) !important;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition-fast);
}

.link-arrow {
    width: 14px;
    height: 14px;
    transition: var(--transition-fast);
}

.card-link:hover {
    color: var(--primary) !important;
}

.card-link:hover .link-arrow {
    transform: translateX(4px);
}

/* Card 4 Chevron Pattern */
.practice-card.has-chevron {
    padding-bottom: 120px; /* Make space for decorative chevrons */
}

.chevron-pattern {
    position: absolute;
    bottom: -10px;
    right: 20px;
    width: 120px;
    height: 120px;
    pointer-events: none;
    opacity: 0.85;
}

.gold-chevron {
    width: 100%;
    height: 100%;
}

/* ==========================================================================
   Our Approach Section
   ========================================================================== */
.approach-section {
    padding: 100px 0;
    background-color: var(--bg-pure);
}

.approach-grid {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 40px;
}

.approach-title {
    font-size: 2.1rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    position: sticky;
    top: 120px;
}

.approach-right {
    display: flex;
    flex-direction: column;
}

.approach-right .title-divider {
    margin-top: 5px;
    margin-bottom: 25px;
}

.approach-text {
    font-family: var(--font-sans);
    font-size: 0.82rem;
    font-weight: 400;
    line-height: 1.8;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.approach-text.font-bold {
    color: var(--primary);
    font-weight: 500;
}

/* ==========================================================================
   Footer Styles
   ========================================================================== */
.main-footer {
    background-color: var(--primary);
    color: var(--text-light);
    padding: 70px 0 30px 0;
    font-family: var(--font-sans);
}

.footer-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
    padding-bottom: 40px;
    border-bottom: 1.5px solid rgba(220, 160, 40, 0.15);
}

.footer-navigation {
    flex-grow: 1;
    display: flex;
    justify-content: center;
}

.footer-nav-list {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    gap: 20px 24px;
    justify-content: center;
}

.footer-link {
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.75);
}

.footer-link:hover {
    color: var(--accent);
}

.footer-social {
    display: flex;
    align-items: center;
}

.social-icon-link {
    color: rgba(255, 255, 255, 0.75);
    transition: var(--transition-fast);
}

.social-icon-link:hover {
    color: var(--accent);
}

.social-icon {
    width: 22px;
    height: 22px;
}

/* Footer Bottom info */
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 30px;
    font-size: 0.68rem;
    color: rgba(255, 255, 255, 0.45);
    letter-spacing: 0.5px;
    flex-wrap: wrap;
    gap: 15px;
}

.designer {
    font-style: italic;
}

/* ==========================================================================
   Consultation booking modal
   ========================================================================== */
.consultation-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.consultation-modal.open {
    opacity: 1;
    pointer-events: all;
}

.modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(3, 13, 26, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.modal-wrapper {
    position: relative;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    background-color: var(--bg-pure);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--accent);
    overflow-y: auto;
    transform: translateY(20px) scale(0.98);
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    z-index: 1001;
}

.consultation-modal.open .modal-wrapper {
    transform: translateY(0) scale(1);
}

.modal-content {
    padding: 40px;
    position: relative;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: var(--bg-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}

.modal-close:hover {
    background-color: var(--accent);
    color: var(--primary);
}

.close-icon {
    width: 16px;
    height: 16px;
}

.modal-header {
    margin-bottom: 25px;
}

.modal-title {
    font-size: 1.6rem;
    color: var(--primary);
    margin-bottom: 8px;
}

.modal-subtitle {
    font-size: 0.78rem;
    color: var(--text-muted);
}

/* Booking Form Elements */
.booking-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--primary);
}

.form-group input,
.form-group select,
.form-group textarea {
    font-family: var(--font-sans);
    font-size: 0.82rem;
    padding: 10px 14px;
    border: 1px solid var(--border-color);
    background-color: var(--bg-light);
    color: var(--text-dark);
    transition: var(--transition-fast);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--accent);
    background-color: var(--bg-pure);
    outline: none;
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.submit-btn {
    margin-top: 10px;
    border: none;
    font-size: 0.85rem;
    padding: 12px;
    font-weight: 600;
}

/* Success Message */
.form-success-msg {
    text-align: center;
    padding: 20px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.success-icon {
    width: 60px;
    height: 60px;
    color: var(--accent);
}

.form-success-msg h4 {
    font-size: 1.5rem;
}

.form-success-msg p {
    font-size: 0.85rem;
    color: var(--text-muted);
    max-width: 320px;
}

/* ==========================================================================
   Responsive Media Queries
   ========================================================================== */

/* Tablet (992px) */
@media (max-width: 992px) {
    /* Header menu */
    .mobile-nav-toggle {
        display: block;
    }
    
    .primary-navigation {
        position: fixed;
        top: var(--header-height);
        left: 0;
        width: 100%;
        height: calc(100vh - var(--header-height));
        background-color: var(--bg-pure);
        padding: 40px 30px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
        transform: translateX(100%);
        transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
        z-index: 150;
        overflow-y: auto;
    }
    
    .primary-navigation[data-visible="true"] {
        transform: translateX(0);
    }
    
    .nav-list {
        flex-direction: column;
        align-items: stretch;
        gap: 24px;
        height: auto;
    }
    
    .nav-list > li {
        height: auto;
        display: block;
    }
    
    .nav-link {
        font-size: 1rem;
        display: block;
        padding: 10px 0;
    }
    
    /* Dropdown inside Mobile menu */
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        border-left: 2px solid var(--accent);
        background-color: var(--bg-light);
        padding: 5px 0;
        margin-top: 5px;
        display: none; /* Controlled by JS toggle */
    }
    
    .dropdown.open .dropdown-menu {
        display: block;
    }
    
    .dropdown-menu a {
        padding: 8px 15px;
        font-size: 0.8rem;
        color: var(--text-muted);
    }
    
    .header-cta-btn {
        width: 100%;
        margin-top: 15px;
    }

    /* Hero */
    .hero-section {
        height: auto;
        padding-top: calc(var(--header-height) + 50px);
        padding-bottom: 70px;
    }
    
    .hero-bg-overlay {
        background: rgba(3, 13, 26, 0.85); /* Darker overall overlay since width shrinks */
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
    
    .hero-content {
        align-items: center;
    }
    
    .hero-img {
        max-height: 45vh;
        max-width: 380px;
        margin: 0 auto;
    }
    
    /* Practice Grid */
    .practice-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    /* Approach section */
    .approach-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .approach-title {
        position: static;
    }
    
    /* Footer layout */
    .footer-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .footer-navigation {
        width: 100%;
    }
}

/* Mobile (600px) */
@media (max-width: 600px) {
    .container {
        width: 92%;
    }
    
    .practice-card {
        padding: 30px 20px;
    }
    
    .practice-card.has-chevron {
        padding-bottom: 100px;
    }
    
    .approach-section,
    .practice-section {
        padding: 70px 0;
    }
    
    .modal-content {
        padding: 30px 20px;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

/* ==========================================================================
   Hero v3 — entrance choreography, credibility strip, testimonial
   ========================================================================== */

/* Hero layout refresh (overrides base rules above) */
.hero-section {
    height: auto;
    min-height: 88vh;
    padding-top: calc(var(--header-height) + 50px);
    padding-bottom: 70px;
}

.hero-kicker {
    font-family: var(--font-sans);
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 2.4px;
    text-transform: uppercase;
    color: var(--accent-deep);
    margin-bottom: 22px;
}

.hero-title {
    font-size: clamp(2.2rem, 4.2vw, 3.6rem);
    font-weight: 500;
    line-height: 1.14;
    letter-spacing: 0;
    text-wrap: balance;
    margin-bottom: 0;
}

.hero-line {
    display: block;
    overflow: hidden;
    padding-bottom: 0.08em; /* keep descenders inside the clip */
    margin-bottom: -0.08em;
}

.hero-line > span {
    display: block;
}

.hero-divider {
    width: 72px;
    height: 2px;
    background-color: var(--accent);
    margin: 28px 0 24px;
    transform-origin: left;
}

.hero-desc {
    max-width: 60ch;
}

.hero-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px 28px;
    margin-top: 34px;
}

.btn-consultation-lg {
    padding: 0.95rem 2.2rem;
    font-size: 0.88rem;
}

.hero-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-sans);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--primary);
}

.hero-link .link-arrow { width: 14px; height: 14px; transition: var(--transition-fast); }
.hero-link:hover { color: var(--accent-deep); }
.hero-link:hover .link-arrow { transform: translateX(4px); }

.hero-frame {
    position: relative;
}

/* Entrance choreography (JS-enabled only; content stays visible without JS) */
.js-enabled .hero-kicker,
.js-enabled .hero-desc,
.js-enabled .hero-actions {
    opacity: 0;
    animation: heroRise 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.js-enabled .hero-kicker { animation-delay: 0.1s; }
.js-enabled .hero-desc { animation-delay: 0.85s; }
.js-enabled .hero-actions { animation-delay: 1s; }

.js-enabled .hero-line > span {
    transform: translateY(112%);
    animation: heroLine 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.js-enabled .hero-line:nth-child(1) > span { animation-delay: 0.18s; }
.js-enabled .hero-line:nth-child(2) > span { animation-delay: 0.3s; }
.js-enabled .hero-line:nth-child(3) > span { animation-delay: 0.42s; }

.js-enabled .hero-divider {
    transform: scaleX(0);
    animation: heroDivider 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.72s forwards;
}

.js-enabled .hero-frame {
    clip-path: inset(0 0 100% 0);
    animation: heroClip 1.1s cubic-bezier(0.22, 1, 0.36, 1) 0.35s forwards;
}

.js-enabled .hero-frame .hero-img {
    transform: scale(1.08);
    animation: heroImgSettle 1.4s cubic-bezier(0.22, 1, 0.36, 1) 0.35s forwards;
}

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

@keyframes heroLine {
    to { transform: translateY(0); }
}

@keyframes heroDivider {
    to { transform: scaleX(1); }
}

@keyframes heroClip {
    to { clip-path: inset(0 0 0% 0); }
}

@keyframes heroImgSettle {
    to { transform: scale(1); }
}

/* Credibility strip */
.stats-band {
    background-color: var(--primary-dark);
    border-top: 1px solid rgba(220, 160, 40, 0.18);
    padding: 44px 0;
}

.stats-band-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    text-align: center;
}

.stat-value {
    display: block;
    font-family: var(--font-serif);
    font-size: 2.6rem;
    font-weight: 600;
    color: var(--accent);
    line-height: 1.1;
}

.stat-value em {
    font-style: normal;
    font-size: 1.4rem;
}

.stat-caption {
    display: block;
    margin-top: 6px;
    font-family: var(--font-sans);
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.65);
}

/* Divider grows when its section reveals */
.js-enabled .fade-in .title-divider {
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.25s;
}

.js-enabled .fade-in.appear .title-divider {
    transform: scaleX(1);
}

/* Testimonial */
.testimonial-section {
    background-color: var(--primary);
    padding: 100px 0;
}

.testimonial {
    max-width: 760px;
    margin: 0 auto;
    text-align: center;
}

.testimonial-mark {
    width: 42px;
    height: 32px;
    color: var(--accent);
    margin: 0 auto 28px;
}

.testimonial-quote {
    font-family: var(--font-serif);
    font-size: clamp(1.3rem, 2.4vw, 1.75rem);
    font-style: italic;
    font-weight: 400;
    line-height: 1.55;
    color: var(--text-light);
    text-wrap: pretty;
}

.testimonial-author {
    margin-top: 30px;
    font-family: var(--font-sans);
}

.testimonial-author strong {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--accent);
}

.testimonial-author span {
    display: block;
    margin-top: 4px;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.55);
}

/* Responsive for new sections */
@media (max-width: 992px) {
    .hero-actions { justify-content: center; }
    .hero-frame { max-width: 380px; margin: 0 auto; }
}

@media (max-width: 600px) {
    .hero-title { font-size: 1.9rem; }
    .stats-band-grid { grid-template-columns: 1fr; gap: 26px; }
    .testimonial-section { padding: 70px 0; }
}
