/* ============================================
   DR. MASTROMONACO — Medical Practice Website
   Color Palette: Terracotta + Sand
   ============================================ */

/* --- CSS Custom Properties --- */
:root {
    --terracotta-50: #fdf0eb;
    --terracotta-100: #f9ddd3;
    --terracotta-200: #f3bba7;
    --terracotta-300: #ec9678;
    --terracotta-400: #e47652;
    --terracotta-500: #d9603a;
    --terracotta-600: #c74a2b;
    --terracotta-700: #a83b22;
    --terracotta-800: #8a311e;
    --terracotta-900: #712a1b;
    
    --sand-50: #fdfbf7;
    --sand-100: #faf5ec;
    --sand-200: #f3e8d0;
    --sand-300: #e8d5ab;
    --sand-400: #dbbf82;
    --sand-500: #cfa866;
    --sand-600: #b8904f;
    --sand-700: #967240;
    --sand-800: #765833;
    --sand-900: #5e4629;
    
    --dark: #1a1614;
    --dark-soft: #2d2622;
    --gray-900: #1c1917;
    --gray-800: #292524;
    --gray-700: #44403c;
    --gray-600: #57534e;
    --gray-500: #78716c;
    --gray-400: #a8a29e;
    --gray-300: #d6d3d1;
    --gray-200: #e7e5e4;
    --gray-100: #f5f5f4;
    --gray-50: #fafaf9;
    
    --white: #ffffff;
    
    --font-serif: 'Cormorant Garamond', Georgia, serif;
    --font-sans: 'Montserrat', -apple-system, BlinkMacSystemFont, 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: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    
    --shadow-sm: 0 1px 3px rgba(26, 22, 20, 0.06), 0 1px 2px rgba(26, 22, 20, 0.04);
    --shadow-md: 0 4px 16px rgba(26, 22, 20, 0.08), 0 2px 6px rgba(26, 22, 20, 0.04);
    --shadow-lg: 0 12px 40px rgba(26, 22, 20, 0.12), 0 4px 12px rgba(26, 22, 20, 0.06);
    --shadow-xl: 0 24px 60px rgba(26, 22, 20, 0.14), 0 8px 20px rgba(26, 22, 20, 0.08);
    
    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --transition-slow: 400ms cubic-bezier(0.16, 1, 0.3, 1);
}

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

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

body {
    font-family: var(--font-sans);
    font-weight: 300;
    color: var(--gray-800);
    background-color: var(--sand-50);
    line-height: 1.7;
    font-size: 15px;
    overflow-x: hidden;
}

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

a {
    color: inherit;
    text-decoration: none;
}

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

/* --- Typography --- */
h1, h2, h3, h4 {
    font-family: var(--font-serif);
    font-weight: 400;
    line-height: 1.2;
    color: var(--dark);
}

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

/* --- Section Common --- */
.section {
    padding: var(--space-4xl) 0;
}

.section-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto var(--space-3xl);
}

.section-tag {
    display: inline-block;
    font-family: var(--font-sans);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--terracotta-600);
    margin-bottom: var(--space-md);
    position: relative;
}

.section-tag::before,
.section-tag::after {
    content: '';
    display: inline-block;
    width: 24px;
    height: 1px;
    background: var(--terracotta-300);
    vertical-align: middle;
    margin: 0 var(--space-sm);
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: var(--space-md);
    color: var(--dark);
}

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

.section-sub {
    font-size: 16px;
    color: var(--gray-600);
    line-height: 1.8;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    font-family: var(--font-sans);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 14px 28px;
    border-radius: var(--radius-sm);
    transition: all var(--transition-base);
    white-space: nowrap;
}

.btn-primary {
    background: var(--terracotta-600);
    color: var(--white);
    border: 1.5px solid var(--terracotta-600);
}

.btn-primary:hover {
    background: var(--terracotta-700);
    border-color: var(--terracotta-700);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background: transparent;
    color: var(--dark);
    border: 1.5px solid var(--gray-300);
}

.btn-outline:hover {
    border-color: var(--terracotta-500);
    color: var(--terracotta-600);
}

.btn-light {
    background: var(--white);
    color: var(--terracotta-700);
    border: 1.5px solid var(--white);
}

.btn-light:hover {
    background: var(--sand-100);
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg);
}

.btn-outline-light {
    background: transparent;
    color: var(--white);
    border: 1.5px solid rgba(255, 255, 255, 0.4);
}

.btn-outline-light:hover {
    border-color: var(--white);
    background: rgba(255, 255, 255, 0.1);
}

.btn-full {
    width: 100%;
    justify-content: center;
    padding: 16px 28px;
}

/* --- Navbar --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(253, 251, 247, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(214, 211, 209, 0.5);
    transition: all var(--transition-base);
}

.navbar.scrolled {
    box-shadow: var(--shadow-sm);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-xl);
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-family: var(--font-serif);
    font-size: 18px;
    font-weight: 500;
    color: var(--dark);
    letter-spacing: -0.01em;
}

.logo-icon {
    color: var(--terracotta-500);
}

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

.nav-links a {
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 0.04em;
    color: var(--gray-600);
    transition: color var(--transition-fast);
    position: relative;
}

.nav-links a:not(.nav-cta)::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--terracotta-500);
    transition: width var(--transition-base);
}

.nav-links a:not(.nav-cta):hover {
    color: var(--terracotta-600);
}

.nav-links a:not(.nav-cta):hover::after {
    width: 100%;
}

.nav-cta {
    font-size: 12px !important;
    font-weight: 500 !important;
    letter-spacing: 0.08em !important;
    text-transform: uppercase;
    color: var(--terracotta-600) !important;
    border: 1.5px solid var(--terracotta-200);
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    transition: all var(--transition-base) !important;
}

.nav-cta::after {
    display: none !important;
}

.nav-cta:hover {
    background: var(--terracotta-50);
    border-color: var(--terracotta-400) !important;
}

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

.nav-toggle span {
    display: block;
    width: 22px;
    height: 1.5px;
    background: var(--gray-700);
    transition: all var(--transition-base);
    transform-origin: center;
}

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

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

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

/* --- Hero --- */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    background: var(--sand-50);
    padding: var(--space-4xl) 0 var(--space-3xl);
    overflow: hidden;
}

.hero-bg-pattern {
    position: absolute;
    inset: 0;
    opacity: 0.7;
    pointer-events: none;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-xl);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content {
    max-width: 520px;
}

.hero-tag {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--terracotta-600);
    margin-bottom: var(--space-xl);
}

.tag-line {
    width: 32px;
    height: 1.5px;
    background: var(--terracotta-400);
    flex-shrink: 0;
}

.hero-headline {
    font-size: clamp(2.4rem, 5vw, 3.6rem);
    font-weight: 300;
    line-height: 1.15;
    color: var(--dark);
    margin-bottom: var(--space-xl);
    letter-spacing: -0.02em;
}

.headline-accent {
    font-style: italic;
    color: var(--terracotta-600);
    font-weight: 400;
}

.hero-sub {
    font-size: 16px;
    color: var(--gray-600);
    line-height: 1.85;
    margin-bottom: var(--space-2xl);
    max-width: 460px;
}

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

/* --- Hero Cards --- */
.hero-cards {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
    max-width: 480px;
}

.stat-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(214, 211, 209, 0.5);
    transition: all var(--transition-base);
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.stat-card--primary {
    background: var(--terracotta-600);
    border-color: var(--terracotta-600);
    grid-column: 1 / -1;
}

.stat-card--accent {
    background: var(--sand-200);
    border-color: var(--sand-300);
}

.stat-card--light {
    background: var(--white);
}

.stat-card--floating {
    position: absolute;
    bottom: -20px;
    right: -10px;
    background: var(--dark);
    border: none;
    padding: var(--space-md) var(--space-lg);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    box-shadow: var(--shadow-xl);
    z-index: 2;
}

.stat-number {
    font-family: var(--font-serif);
    font-size: 2rem;
    font-weight: 500;
    line-height: 1;
    margin-bottom: var(--space-xs);
}

.stat-card--primary .stat-number,
.stat-card--floating .stat-number {
    color: var(--white);
}

.stat-card--accent .stat-number {
    color: var(--terracotta-700);
}

.stat-card--light .stat-number {
    color: var(--dark);
}

.stat-label {
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: var(--space-sm);
}

.stat-card--primary .stat-label { color: rgba(255,255,255,0.85); }
.stat-card--accent .stat-label { color: var(--terracotta-700); }
.stat-card--light .stat-label { color: var(--gray-600); }
.stat-card--floating .stat-label { color: var(--sand-300); font-size: 11px; }

.stat-line {
    width: 24px;
    height: 2px;
    margin-bottom: var(--space-sm);
}

.stat-card--primary .stat-line { background: rgba(255,255,255,0.4); }
.stat-card--accent .stat-line { background: var(--terracotta-400); }
.stat-card--light .stat-line { background: var(--terracotta-300); }
.stat-card--floating .stat-line { background: rgba(255,255,255,0.2); display: none; }

.stat-desc {
    font-size: 13px;
    line-height: 1.6;
    color: var(--gray-500);
}

.stat-card--primary .stat-desc { color: rgba(255,255,255,0.75); }
.stat-card--accent .stat-desc { color: var(--terracotta-700); }
.stat-card--light .stat-desc { color: var(--gray-500); }

.floating-icon {
    color: var(--terracotta-400);
}

.floating-text {
    font-size: 13px;
    font-weight: 500;
    color: var(--white);
    letter-spacing: 0.04em;
}

.hero-scroll {
    position: absolute;
    bottom: var(--space-2xl);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
    font-size: 11px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--gray-400);
    z-index: 1;
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--gray-300), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.4; transform: scaleY(0.7); }
    50% { opacity: 1; transform: scaleY(1); }
}

/* --- Services --- */
.services {
    background: var(--white);
}

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

.service-card {
    padding: var(--space-2xl);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--terracotta-400);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition-slow);
}

.service-card:hover {
    border-color: var(--terracotta-200);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

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

.service-icon {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    background: var(--terracotta-50);
    color: var(--terracotta-600);
    margin-bottom: var(--space-lg);
    transition: all var(--transition-base);
}

.service-card:hover .service-icon {
    background: var(--terracotta-600);
    color: var(--white);
}

.service-card h3 {
    font-family: var(--font-sans);
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0.02em;
    margin-bottom: var(--space-sm);
    color: var(--dark);
}

.service-card p {
    font-size: 14px;
    color: var(--gray-600);
    line-height: 1.75;
}

/* --- About --- */
.about {
    background: var(--sand-50);
}

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

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

.about-image {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

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

.about-accent {
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 160px;
    height: 160px;
    background: var(--terracotta-100);
    border-radius: var(--radius-lg);
    z-index: -1;
}

.about-content {
    max-width: 480px;
}

.about-text {
    font-size: 15px;
    color: var(--gray-600);
    line-height: 1.85;
    margin-bottom: var(--space-md);
}

.about-text:not(:last-child) {
    margin-bottom: var(--space-lg);
}

.about-values {
    margin-top: var(--space-2xl);
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

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

.value-num {
    font-family: var(--font-serif);
    font-size: 1.4rem;
    font-weight: 500;
    color: var(--terracotta-300);
    line-height: 1;
    min-width: 32px;
    padding-top: 4px;
}

.value-item strong {
    display: block;
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 500;
    color: var(--dark);
    margin-bottom: 2px;
}

.value-item span {
    font-size: 13px;
    color: var(--gray-500);
    line-height: 1.6;
}

/* --- Approach --- */
.approach {
    background: var(--dark);
    color: var(--white);
}

.approach .section-tag {
    color: var(--terracotta-300);
}

.approach .section-tag::before,
.approach .section-tag::after {
    background: rgba(236, 150, 120, 0.4);
}

.approach .section-sub {
    color: var(--gray-400);
}

.approach-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-xl);
    max-width: 900px;
    margin: 0 auto;
}

.approach-card {
    padding: var(--space-2xl);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.03);
    transition: all var(--transition-base);
}

.approach-card:hover {
    border-color: rgba(236, 150, 120, 0.3);
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-2px);
}

.approach-num {
    font-family: var(--font-serif);
    font-size: 2.8rem;
    font-weight: 300;
    color: var(--terracotta-500);
    line-height: 1;
    margin-bottom: var(--space-md);
}

.approach-card h3 {
    font-family: var(--font-sans);
    font-size: 16px;
    font-weight: 500;
    color: var(--white);
    margin-bottom: var(--space-sm);
    letter-spacing: 0.02em;
}

.approach-card p {
    font-size: 14px;
    color: var(--gray-400);
    line-height: 1.75;
}

/* --- CTA Section --- */
.cta-section {
    position: relative;
    padding: var(--space-4xl) 0;
    overflow: hidden;
}

.cta-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--terracotta-700) 0%, var(--terracotta-500) 50%, var(--sand-700) 100%);
}

.cta-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.cta-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 680px;
    margin: 0 auto;
}

.section-tag--light {
    color: rgba(255, 255, 255, 0.7);
}

.section-tag--light::before,
.section-tag--light::after {
    background: rgba(255, 255, 255, 0.3);
}

.cta-text {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.85;
    margin-bottom: var(--space-2xl);
}

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

/* --- Contact --- */
.contact {
    background: var(--white);
}

.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: var(--space-3xl);
    align-items: start;
}

.contact-intro {
    font-size: 15px;
    color: var(--gray-600);
    line-height: 1.8;
    margin-bottom: var(--space-2xl);
}

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

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

.contact-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    background: var(--terracotta-50);
    color: var(--terracotta-600);
    flex-shrink: 0;
}

.contact-item strong {
    display: block;
    font-family: var(--font-sans);
    font-size: 13px;
    font-weight: 500;
    color: var(--dark);
    margin-bottom: 2px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.contact-item span,
.contact-item a {
    font-size: 14px;
    color: var(--gray-600);
    line-height: 1.7;
}

.contact-item a:hover {
    color: var(--terracotta-600);
    text-decoration: underline;
}

.map-wrapper {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
}

/* --- Contact Form --- */
.contact-form-wrapper {
    background: var(--sand-50);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: var(--space-2xl);
}

.contact-form-wrapper h3 {
    font-size: 1.6rem;
    margin-bottom: var(--space-sm);
}

.form-intro {
    font-size: 14px;
    color: var(--gray-500);
    margin-bottom: var(--space-xl);
    line-height: 1.7;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
}

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

.form-group label {
    display: block;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--gray-600);
    margin-bottom: var(--space-sm);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius-sm);
    font-family: var(--font-sans);
    font-size: 14px;
    color: var(--dark);
    background: var(--white);
    transition: border-color var(--transition-fast);
    outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--terracotta-400);
}

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

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

.form-note {
    font-size: 12px;
    color: var(--gray-400);
    text-align: center;
    margin-top: var(--space-md);
    line-height: 1.6;
}

.form-success {
    display: none;
    text-align: center;
    padding: var(--space-3xl) var(--space-xl);
}

.form-success.active {
    display: block;
}

.success-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto var(--space-lg);
    border-radius: 50%;
    background: var(--terracotta-50);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--terracotta-600);
}

.form-success h4 {
    font-size: 1.4rem;
    margin-bottom: var(--space-sm);
}

.form-success p {
    font-size: 14px;
    color: var(--gray-600);
    line-height: 1.75;
    max-width: 360px;
    margin: 0 auto;
}

.form-success a {
    color: var(--terracotta-600);
    font-weight: 500;
}

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

.footer-top {
    display: grid;
    grid-template-columns: 1.3fr 1.7fr;
    gap: var(--space-3xl);
    padding-bottom: var(--space-3xl);
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-family: var(--font-serif);
    font-size: 18px;
    font-weight: 500;
    color: var(--white);
    margin-bottom: var(--space-md);
}

.footer-logo-icon {
    color: var(--terracotta-400);
}

.footer-desc {
    font-size: 14px;
    line-height: 1.75;
    color: var(--gray-500);
    max-width: 300px;
}

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

.footer-col h4 {
    font-family: var(--font-sans);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--gray-400);
    margin-bottom: var(--space-lg);
}

.footer-col a,
.footer-col span {
    display: block;
    font-size: 13px;
    color: var(--gray-500);
    padding: 4px 0;
    transition: color var(--transition-fast);
}

.footer-col a:hover {
    color: var(--terracotta-300);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding-top: var(--space-xl);
    gap: var(--space-xl);
    flex-wrap: wrap;
}

.footer-bottom p {
    font-size: 12px;
    color: var(--gray-600);
    line-height: 1.7;
}

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

/* --- Responsive --- */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: var(--space-2xl);
    }
    
    .hero-cards {
        max-width: 400px;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .about-layout {
        grid-template-columns: 1fr;
        gap: var(--space-2xl);
    }
    
    .about-image img {
        height: 480px;
    }
    
    .about-content {
        max-width: 100%;
    }
    
    .contact-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    :root {
        --space-4xl: 4rem;
        --space-3xl: 3rem;
    }
    
    .nav-links {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        background: rgba(253, 251, 247, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: var(--space-xl);
        gap: var(--space-md);
        border-bottom: 1px solid var(--gray-200);
        transform: translateY(-120%);
        transition: transform var(--transition-base);
        box-shadow: var(--shadow-md);
    }
    
    .nav-links.open {
        transform: translateY(0);
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .hero {
        min-height: auto;
        padding: var(--space-4xl) 0 var(--space-3xl);
    }
    
    .hero-cards {
        grid-template-columns: 1fr;
        max-width: 100%;
    }
    
    .stat-card--primary {
        grid-column: auto;
    }
    
    .stat-card--floating {
        position: relative;
        bottom: auto;
        right: auto;
        justify-content: center;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .approach-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-top {
        grid-template-columns: 1fr;
        gap: var(--space-2xl);
    }
    
    .footer-links {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-bottom {
        flex-direction: column;
    }
    
    .footer-legal {
        text-align: left;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 var(--space-md);
    }
    
    .hero-headline {
        font-size: 2rem;
    }
    
    .hero-actions {
        flex-direction: column;
    }
    
    .hero-actions .btn {
        width: 100%;
        justify-content: center;
    }
    
    .cta-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-actions .btn {
        width: 100%;
        justify-content: center;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
    }
    
    .contact-form-wrapper {
        padding: var(--space-lg);
    }
}

/* --- Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
    
    .scroll-line {
        animation: none;
        opacity: 0.6;
    }
}
