/* ============================================
   THERACLINIC — Medical & Health Website
   Style: Bold Editorial | Emerald + Cream
   ============================================ */

/* ---------- CSS Custom Properties ---------- */
:root {
    --emerald-50: #ecfdf5;
    --emerald-100: #d1fae5;
    --emerald-200: #a7f3d0;
    --emerald-300: #6ee7b7;
    --emerald-400: #34d399;
    --emerald-500: #10b981;
    --emerald-600: #059669;
    --emerald-700: #047857;
    --emerald-800: #064e3b;
    --emerald-900: #022c22;

    --cream-50: #fefdf8;
    --cream-100: #fdf9f0;
    --cream-200: #faf3e0;
    --cream-300: #f5e6c8;
    --cream-400: #e8d5a8;

    --amber-500: #d97706;
    --amber-600: #b45309;

    --gray-50: #fafafa;
    --gray-100: #f5f5f5;
    --gray-200: #e5e5e5;
    --gray-300: #d4d4d4;
    --gray-400: #a3a3a3;
    --gray-500: #737373;
    --gray-600: #525252;
    --gray-700: #404040;
    --gray-800: #262626;
    --gray-900: #171717;

    --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    --space-4xl: 6rem;

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;

    --shadow-sm: 0 1px 3px rgba(6, 78, 59, 0.06), 0 1px 2px rgba(6, 78, 59, 0.04);
    --shadow-md: 0 4px 16px rgba(6, 78, 59, 0.08), 0 2px 6px rgba(6, 78, 59, 0.04);
    --shadow-lg: 0 12px 40px rgba(6, 78, 59, 0.12), 0 4px 12px rgba(6, 78, 59, 0.06);
    --shadow-xl: 0 24px 60px rgba(6, 78, 59, 0.16);

    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---------- Reset & Base ---------- */
*, *::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);
    color: var(--gray-800);
    background-color: var(--cream-50);
    line-height: 1.6;
    overflow-x: hidden;
}

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

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

ul {
    list-style: none;
}

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

.container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 var(--space-xl);
}

/* ---------- Background Decorations ---------- */
.bg-decoration {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.bg-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
}

.bg-blob-1 {
    width: 500px;
    height: 500px;
    background: var(--emerald-200);
    top: -100px;
    right: -100px;
}

.bg-blob-2 {
    width: 400px;
    height: 400px;
    background: var(--cream-300);
    bottom: 20%;
    left: -100px;
}

.bg-blob-3 {
    width: 300px;
    height: 300px;
    background: var(--emerald-100);
    top: 50%;
    right: 10%;
    opacity: 0.25;
}

/* ---------- Navigation ---------- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: var(--space-lg) 0;
    transition: all var(--transition);
    background: transparent;
}

.navbar.scrolled {
    background: rgba(254, 253, 248, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: var(--space-md) 0;
    box-shadow: 0 1px 0 rgba(6, 78, 59, 0.06);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    z-index: 1001;
}

.logo-mark {
    width: 40px;
    height: 40px;
    background: var(--emerald-800);
    color: var(--cream-50);
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    transition: background var(--transition);
}

.navbar.scrolled .logo-mark {
    background: var(--emerald-800);
}

.logo-text {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--emerald-900);
    letter-spacing: -0.02em;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: var(--space-xl);
}

.nav-link {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--gray-600);
    position: relative;
    padding: var(--space-xs) 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--emerald-600);
    transition: width var(--transition);
}

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

.nav-link:hover::after {
    width: 100%;
}

.nav-cta {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--cream-50);
    background: var(--emerald-700);
    padding: var(--space-sm) var(--space-lg);
    border-radius: 50px;
    transition: all var(--transition);
}

.nav-cta:hover {
    background: var(--emerald-800);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: var(--space-sm);
    z-index: 1001;
}

.hamburger {
    width: 24px;
    height: 2px;
    background: var(--gray-700);
    transition: all var(--transition);
    display: block;
}

.nav-toggle.active .hamburger:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active .hamburger:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active .hamburger:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ---------- Hero Section ---------- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: var(--space-4xl) 0 var(--space-4xl);
    position: relative;
    z-index: 1;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4xl);
    align-items: center;
}

.hero-tag {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--emerald-700);
    background: var(--emerald-100);
    padding: var(--space-sm) var(--space-lg);
    border-radius: 50px;
    margin-bottom: var(--space-xl);
}

.hero-headline {
    font-family: var(--font-serif);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    line-height: 1.1;
    color: var(--gray-900);
    margin-bottom: var(--space-xl);
    letter-spacing: -0.02em;
}

.hero-headline em {
    font-style: italic;
    color: var(--emerald-700);
}

.hero-description {
    font-size: 1.125rem;
    line-height: 1.75;
    color: var(--gray-600);
    margin-bottom: var(--space-2xl);
    max-width: 520px;
}

.hero-actions {
    display: flex;
    gap: var(--space-md);
    flex-wrap: wrap;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 0.95rem;
    padding: var(--space-md) var(--space-2xl);
    border-radius: 50px;
    transition: all var(--transition);
    white-space: nowrap;
}

.btn-primary {
    background: var(--emerald-700);
    color: var(--cream-50);
    box-shadow: 0 4px 16px rgba(4, 120, 87, 0.25);
}

.btn-primary:hover {
    background: var(--emerald-800);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(4, 120, 87, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--emerald-700);
    border: 2px solid var(--emerald-200);
}

.btn-secondary:hover {
    border-color: var(--emerald-400);
    background: var(--emerald-50);
    transform: translateY(-2px);
}

.btn-full {
    width: 100%;
    justify-content: center;
}

.btn-large {
    padding: var(--space-lg) var(--space-2xl);
    font-size: 1.05rem;
}

/* ---------- Hero Cards ---------- */
.hero-right {
    position: relative;
}

.hero-card-main {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.hero-card-main img {
    width: 100%;
    height: 520px;
    object-fit: cover;
}

.hero-card-main-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: var(--space-2xl);
    background: linear-gradient(to top, rgba(2, 44, 34, 0.85) 0%, transparent 100%);
    color: var(--cream-50);
}

.overlay-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--emerald-300);
    margin-bottom: var(--space-sm);
}

.hero-card-main-overlay p {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-style: italic;
    line-height: 1.4;
    color: var(--cream-100);
}

.hero-stat-cards {
    position: absolute;
    top: 0;
    left: -60px;
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.stat-card {
    background: var(--cream-50);
    padding: var(--space-lg) var(--space-xl);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    min-width: 170px;
    transition: transform var(--transition);
}

.stat-card:hover {
    transform: translateX(6px);
}

.stat-number {
    display: block;
    font-family: var(--font-serif);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--emerald-700);
    line-height: 1;
    margin-bottom: var(--space-xs);
}

.stat-label {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--gray-500);
    line-height: 1.3;
}

/* ---------- Section Shared ---------- */
.section-header {
    text-align: center;
    max-width: 680px;
    margin: 0 auto var(--space-4xl);
}

.section-tag {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--emerald-600);
    margin-bottom: var(--space-md);
}

.section-tag-light {
    color: var(--emerald-300);
}

.section-title {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    line-height: 1.15;
    color: var(--gray-900);
    margin-bottom: var(--space-lg);
    letter-spacing: -0.02em;
}

.section-title-light {
    color: var(--cream-50);
}

.section-title em {
    font-style: italic;
    color: var(--emerald-600);
}

.section-title-light em {
    color: var(--emerald-300);
}

.section-subtitle {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--gray-500);
}

/* ---------- Services Section ---------- */
.services {
    padding: var(--space-4xl) 0;
    position: relative;
    z-index: 1;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
}

.service-card {
    background: var(--cream-50);
    border: 1px solid var(--cream-300);
    border-radius: var(--radius-lg);
    padding: var(--space-2xl);
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--emerald-600);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition);
}

.service-card:hover {
    border-color: var(--emerald-200);
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
    background: var(--cream-100);
}

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

.service-icon {
    width: 56px;
    height: 56px;
    background: var(--emerald-100);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--emerald-700);
    margin-bottom: var(--space-xl);
    transition: all var(--transition);
}

.service-card:hover .service-icon {
    background: var(--emerald-700);
    color: var(--cream-50);
}

.service-title {
    font-family: var(--font-serif);
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: var(--space-md);
    letter-spacing: -0.01em;
}

.service-desc {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--gray-500);
}

/* ---------- About Section ---------- */
.about {
    padding: var(--space-4xl) 0;
    position: relative;
    z-index: 1;
    background: var(--cream-100);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4xl);
    align-items: center;
}

.about-image-group {
    position: relative;
}

.about-img-main {
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.about-img-main img {
    width: 100%;
    height: 600px;
    object-fit: cover;
}

.about-img-secondary {
    position: absolute;
    bottom: -40px;
    right: -30px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    border: 6px solid var(--cream-100);
}

.about-img-secondary img {
    width: 320px;
    height: 240px;
    object-fit: cover;
}

.about-experience-badge {
    position: absolute;
    top: -20px;
    right: 40px;
    background: var(--emerald-800);
    color: var(--cream-50);
    padding: var(--space-xl) var(--space-2xl);
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow-lg);
}

.exp-number {
    display: block;
    font-family: var(--font-serif);
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1;
    color: var(--emerald-300);
}

.exp-text {
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-top: var(--space-xs);
}

.about-content .section-tag {
    text-align: left;
}

.about-content .section-title {
    text-align: left;
}

.about-body {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--gray-600);
    margin-bottom: var(--space-xl);
}

.about-values {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
    margin-bottom: var(--space-2xl);
}

.value-item {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--gray-700);
}

.value-icon {
    width: 24px;
    height: 24px;
    color: var(--emerald-600);
    flex-shrink: 0;
}

/* ---------- Approach Section ---------- */
.approach {
    padding: var(--space-4xl) 0;
    background: var(--emerald-800);
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.approach::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: var(--emerald-700);
    border-radius: 50%;
    opacity: 0.3;
}

.approach::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: var(--emerald-900);
    border-radius: 50%;
    opacity: 0.3;
}

.approach .container {
    position: relative;
    z-index: 1;
}

.approach-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-xl);
}

.approach-step {
    text-align: center;
    padding: var(--space-2xl) var(--space-xl);
    position: relative;
}

.approach-step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 40px;
    right: -10px;
    width: 20px;
    height: 2px;
    background: var(--emerald-600);
}

.step-number {
    font-family: var(--font-serif);
    font-size: 3rem;
    font-weight: 700;
    color: var(--emerald-600);
    line-height: 1;
    margin-bottom: var(--space-lg);
    opacity: 0.6;
}

.step-title {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--cream-100);
    margin-bottom: var(--space-md);
}

.step-desc {
    font-size: 0.9rem;
    line-height: 1.7;
    color: var(--emerald-200);
    opacity: 0.85;
}

/* ---------- Testimonials Section ---------- */
.testimonials {
    padding: var(--space-4xl) 0;
    position: relative;
    z-index: 1;
    background: var(--cream-50);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
}

.testimonial-card {
    background: var(--cream-100);
    border: 1px solid var(--cream-300);
    border-radius: var(--radius-lg);
    padding: var(--space-2xl);
    transition: all var(--transition);
    position: relative;
}

.testimonial-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
    border-color: var(--emerald-200);
}

.testimonial-quote-mark {
    font-family: var(--font-serif);
    font-size: 4rem;
    line-height: 1;
    color: var(--emerald-300);
    margin-bottom: var(--space-sm);
}

.testimonial-text {
    font-size: 0.95rem;
    line-height: 1.75;
    color: var(--gray-600);
    margin-bottom: var(--space-xl);
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.author-avatar {
    width: 44px;
    height: 44px;
    background: var(--emerald-700);
    color: var(--cream-50);
    font-family: var(--font-serif);
    font-size: 1.1rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    flex-shrink: 0;
}

.author-name {
    display: block;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--gray-800);
}

.author-location {
    display: block;
    font-size: 0.8rem;
    color: var(--gray-400);
    margin-top: 2px;
}

/* ---------- CTA Section ---------- */
.cta {
    padding: var(--space-4xl) 0;
    background: linear-gradient(135deg, var(--emerald-700) 0%, var(--emerald-900) 100%);
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.cta::before {
    content: '';
    position: absolute;
    top: -100px;
    left: -100px;
    width: 400px;
    height: 400px;
    background: var(--emerald-600);
    border-radius: 50%;
    opacity: 0.2;
}

.cta .container {
    position: relative;
    z-index: 1;
    text-align: center;
}

.cta-headline {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 4vw, 3.25rem);
    font-weight: 700;
    color: var(--cream-50);
    line-height: 1.15;
    margin-bottom: var(--space-xl);
    letter-spacing: -0.02em;
}

.cta-headline em {
    font-style: italic;
    color: var(--emerald-300);
}

.cta-desc {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--emerald-200);
    max-width: 560px;
    margin: 0 auto var(--space-2xl);
}

.cta-actions {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
    flex-wrap: wrap;
}

/* ---------- Contact Section ---------- */
.contact {
    padding: var(--space-4xl) 0;
    position: relative;
    z-index: 1;
    background: var(--cream-100);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4xl);
}

.contact-info .section-tag {
    text-align: left;
}

.contact-info .section-title {
    text-align: left;
}

.contact-desc {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--gray-500);
    margin-bottom: var(--space-2xl);
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: var(--space-xl);
    margin-bottom: var(--space-2xl);
}

.contact-detail {
    display: flex;
    align-items: flex-start;
    gap: var(--space-lg);
}

.detail-icon {
    width: 44px;
    height: 44px;
    background: var(--emerald-100);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--emerald-700);
    flex-shrink: 0;
}

.detail-label {
    display: block;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--gray-400);
    margin-bottom: 4px;
}

.detail-value {
    display: block;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--gray-800);
}

.detail-value:hover {
    color: var(--emerald-700);
}

.contact-hours {
    background: var(--cream-50);
    border: 1px solid var(--cream-300);
    border-radius: var(--radius-md);
    padding: var(--space-xl);
}

.hours-title {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: var(--space-lg);
}

.hours-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.hours-list li {
    display: flex;
    justify-content: space-between;
    gap: var(--space-xl);
    font-size: 0.9rem;
    padding: var(--space-sm) 0;
    border-bottom: 1px solid var(--cream-200);
}

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

.day {
    color: var(--gray-600);
    font-weight: 500;
}

.time {
    color: var(--gray-500);
}

/* ---------- Contact Form ---------- */
.contact-form-wrapper {
    background: var(--cream-50);
    border: 1px solid var(--cream-300);
    border-radius: var(--radius-xl);
    padding: var(--space-2xl);
    box-shadow: var(--shadow-md);
}

.form-title {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: var(--space-2xl);
}

.form-group {
    margin-bottom: var(--space-lg);
}

.form-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: var(--space-sm);
}

.form-input {
    width: 100%;
    padding: var(--space-md) var(--space-lg);
    font-family: var(--font-sans);
    font-size: 0.95rem;
    color: var(--gray-800);
    background: var(--cream-100);
    border: 1.5px solid var(--cream-300);
    border-radius: var(--radius-sm);
    transition: all var(--transition);
    outline: none;
}

.form-input::placeholder {
    color: var(--gray-400);
}

.form-input:focus {
    border-color: var(--emerald-400);
    background: var(--cream-50);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23737373' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
    cursor: pointer;
}

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

.form-success {
    display: none;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-lg);
    background: var(--emerald-100);
    border: 1px solid var(--emerald-300);
    border-radius: var(--radius-sm);
    margin-top: var(--space-lg);
    color: var(--emerald-800);
    font-size: 0.9rem;
    font-weight: 500;
}

.form-success svg {
    color: var(--emerald-600);
    flex-shrink: 0;
}

.form-success.show {
    display: flex;
}

/* ---------- Footer ---------- */
.footer {
    background: var(--gray-900);
    color: var(--gray-400);
    padding: var(--space-4xl) 0 var(--space-xl);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: var(--space-3xl);
    margin-bottom: var(--space-3xl);
}

.footer-brand .logo-mark {
    background: var(--emerald-600);
}

.footer-brand .logo-text {
    color: var(--cream-100);
}

.footer-desc {
    font-size: 0.9rem;
    line-height: 1.7;
    margin-top: var(--space-lg);
    color: var(--gray-500);
    max-width: 280px;
}

.footer-heading {
    font-family: var(--font-sans);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--gray-300);
    margin-bottom: var(--space-xl);
}

.footer-links ul,
.footer-contact-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.footer-links a,
.footer-contact a {
    font-size: 0.9rem;
    color: var(--gray-500);
    transition: color var(--transition);
}

.footer-links a:hover,
.footer-contact a:hover {
    color: var(--emerald-400);
}

.footer-bottom {
    border-top: 1px solid var(--gray-800);
    padding-top: var(--space-2xl);
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: var(--space-xl);
    flex-wrap: wrap;
}

.footer-bottom p {
    font-size: 0.8rem;
    color: var(--gray-600);
    line-height: 1.6;
}

.footer-legal {
    max-width: 400px;
    text-align: right;
}

/* ---------- Animations ---------- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: var(--space-3xl);
    }

    .hero-right {
        max-width: 500px;
    }

    .hero-stat-cards {
        position: relative;
        top: auto;
        left: auto;
        flex-direction: row;
        margin-top: var(--space-xl);
    }

    .stat-card {
        min-width: auto;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: var(--space-3xl);
    }

    .about-img-secondary {
        right: 0;
    }

    .approach-steps {
        grid-template-columns: repeat(2, 1fr);
    }

    .approach-step:not(:last-child)::after {
        display: none;
    }

    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: var(--space-3xl);
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-2xl);
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 320px;
        height: 100vh;
        background: var(--cream-50);
        flex-direction: column;
        align-items: flex-start;
        padding: 80px var(--space-2xl) var(--space-2xl);
        gap: var(--space-lg);
        box-shadow: var(--shadow-xl);
        transition: right var(--transition);
        z-index: 1000;
    }

    .nav-menu.open {
        right: 0;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-cta {
        width: 100%;
        text-align: center;
        padding: var(--space-md) var(--space-lg);
    }

    .hero {
        padding: var(--space-4xl) 0 var(--space-3xl);
        min-height: auto;
    }

    .hero-headline {
        font-size: clamp(2rem, 8vw, 2.75rem);
    }

    .hero-card-main img {
        height: 360px;
    }

    .hero-stat-cards {
        flex-wrap: wrap;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .about-img-main img {
        height: 400px;
    }

    .about-img-secondary {
        position: relative;
        bottom: auto;
        right: auto;
        margin-top: var(--space-md);
        border: none;
        box-shadow: var(--shadow-md);
    }

    .about-img-secondary img {
        width: 100%;
        height: 200px;
    }

    .about-experience-badge {
        top: auto;
        right: auto;
        position: relative;
        display: inline-block;
        margin-bottom: var(--space-xl);
    }

    .about-values {
        grid-template-columns: 1fr;
    }

    .approach-steps {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .cta-actions {
        flex-direction: column;
        align-items: center;
    }

    .btn-large {
        width: 100%;
        justify-content: center;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: var(--space-2xl);
    }

    .footer-bottom {
        flex-direction: column;
        gap: var(--space-md);
    }

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

@media (max-width: 480px) {
    .container {
        padding: 0 var(--space-md);
    }

    .hero-actions {
        flex-direction: column;
    }

    .hero-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .contact-form-wrapper {
        padding: var(--space-xl);
    }
}

/* Mobile overlay */
.nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 999;
}

.nav-overlay.active {
    display: block;
}
