/* ========================================
   CSS Custom Properties
======================================== */
:root {
    --color-burgundy: #7B2D3B;
    --color-burgundy-dark: #5C1F2B;
    --color-burgundy-deep: #3D1319;
    --color-blush: #F5D5CC;
    --color-blush-light: #FDF0EC;
    --color-blush-pale: #FFF8F6;
    --color-cream: #FFFAF8;
    --color-dark: #1A0A0E;
    --color-text: #2D1518;
    --color-text-light: #6B4A4E;
    --color-text-muted: #9A7B7F;
    --color-white: #FFFFFF;
    --color-border: #F0D5CE;
    --color-overlay: rgba(26, 10, 14, 0.6);

    --font-serif: 'Playfair Display', Georgia, serif;
    --font-sans: 'Inter', system-ui, sans-serif;

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

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-full: 9999px;

    --shadow-sm: 0 2px 8px rgba(123, 45, 59, 0.08);
    --shadow-md: 0 4px 20px rgba(123, 45, 59, 0.12);
    --shadow-lg: 0 8px 40px rgba(123, 45, 59, 0.16);

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

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.7;
    color: var(--color-text);
    background-color: var(--color-cream);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

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

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

ul {
    list-style: none;
}

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

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

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

.section-tag {
    display: inline-block;
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-burgundy);
    background: var(--color-blush);
    padding: 0.4rem 1rem;
    border-radius: var(--radius-full);
    margin-bottom: var(--space-sm);
}

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

.section-subtitle {
    font-size: 1.125rem;
    color: var(--color-text-light);
    max-width: 600px;
    margin: 0 auto;
}

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

/* ========================================
   Buttons
======================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: var(--font-sans);
    font-size: 0.9375rem;
    font-weight: 500;
    padding: 0.875rem 2rem;
    border-radius: var(--radius-full);
    transition: all var(--transition);
    white-space: nowrap;
}

.btn-primary {
    background: var(--color-burgundy);
    color: var(--color-white);
    border: 2px solid var(--color-burgundy);
}

.btn-primary:hover {
    background: var(--color-burgundy-dark);
    border-color: var(--color-burgundy-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

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

.btn-outline:hover {
    background: var(--color-white);
    color: var(--color-burgundy);
    border-color: var(--color-white);
    transform: translateY(-2px);
}

.btn-white {
    background: var(--color-white);
    color: var(--color-burgundy);
    border: 2px solid var(--color-white);
}

.btn-white:hover {
    background: transparent;
    color: var(--color-white);
    border-color: var(--color-white);
    transform: translateY(-2px);
}

.btn-full {
    width: 100%;
}

/* ========================================
   Header
======================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 250, 248, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--color-border);
    transition: all var(--transition);
}

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

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.logo {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.logo-main {
    font-family: var(--font-serif);
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--color-dark);
}

.logo-sub {
    font-family: var(--font-sans);
    font-size: 0.6875rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-burgundy);
}

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

.nav-link {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-text-light);
    transition: color var(--transition);
    position: relative;
}

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

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

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

.cta-nav {
    background: var(--color-burgundy);
    color: var(--color-white) !important;
    padding: 0.5rem 1.25rem;
    border-radius: var(--radius-full);
    font-size: 0.8125rem;
}

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

.cta-nav:hover {
    background: var(--color-burgundy-dark);
    color: var(--color-white) !important;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 0.5rem;
}

.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-dark);
    transition: all var(--transition);
    border-radius: 2px;
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ========================================
   Mobile Menu
======================================== */
.mobile-menu-overlay {
    position: fixed;
    inset: 0;
    z-index: 999;
    background: var(--color-cream);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition);
}

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

.mobile-nav-list {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-md);
}

.mobile-nav-link {
    font-family: var(--font-serif);
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--color-dark);
    transition: color var(--transition);
}

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

.mobile-cta {
    margin-top: var(--space-sm);
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 500;
    background: var(--color-burgundy);
    color: var(--color-white) !important;
    padding: 0.75rem 2rem;
    border-radius: var(--radius-full);
}

/* ========================================
   Hero
======================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: linear-gradient(135deg, #7B2D3B 0%, #A84457 25%, #D4726A 50%, #E8A59B 75%, #F5D5CC 100%);
    padding-top: 80px;
}

.hero-gradient {
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse at 20% 50%, rgba(123, 45, 59, 0.4) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 20%, rgba(245, 213, 204, 0.3) 0%, transparent 50%),
        radial-gradient(ellipse at 60% 80%, rgba(92, 31, 43, 0.3) 0%, transparent 50%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
    padding: var(--space-xl) var(--space-md);
    color: var(--color-white);
}

.hero-tagline {
    font-family: var(--font-sans);
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: var(--space-md);
}

.hero-headline {
    font-family: var(--font-serif);
    font-size: clamp(2.5rem, 5.5vw, 4.5rem);
    font-weight: 700;
    line-height: 1.08;
    color: var(--color-white);
    margin-bottom: var(--space-md);
}

.hero-description {
    font-size: 1.125rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: var(--space-lg);
    max-width: 480px;
}

.hero-ctas {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
}

.hero-image {
    position: absolute;
    right: 0;
    bottom: 0;
    z-index: 1;
    width: 42%;
    max-width: 600px;
    min-height: 70vh;
    overflow: hidden;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, var(--color-cream) 0%, transparent 30%);
    pointer-events: none;
}

/* ========================================
   About
======================================== */
.about {
    padding: var(--space-3xl) 0;
    background: var(--color-cream);
}

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

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

.about-image-wrapper img {
    width: 100%;
    height: 620px;
    object-fit: cover;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

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

.about-content {
    padding: var(--space-md) 0;
}

.about-text {
    font-size: 1.0625rem;
    color: var(--color-text-light);
    margin-bottom: var(--space-md);
    line-height: 1.8;
}

.about-stats {
    display: flex;
    gap: var(--space-lg);
    margin-top: var(--space-lg);
    padding-top: var(--space-lg);
    border-top: 1px solid var(--color-border);
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.stat-number {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-burgundy);
}

.stat-label {
    font-size: 0.8125rem;
    color: var(--color-text-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ========================================
   Services
======================================== */
.services {
    padding: var(--space-3xl) 0;
    background: var(--color-blush-pale);
}

.section-header {
    margin-bottom: var(--space-xl);
}

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

.service-card {
    background: var(--color-white);
    padding: var(--space-lg);
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
    transition: all var(--transition);
}

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

.service-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-blush);
    border-radius: var(--radius-sm);
    margin-bottom: var(--space-md);
    color: var(--color-burgundy);
}

.service-title {
    font-family: var(--font-serif);
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--color-dark);
    margin-bottom: var(--space-sm);
}

.service-description {
    font-size: 0.9375rem;
    color: var(--color-text-light);
    line-height: 1.75;
}

/* ========================================
   Areas
======================================== */
.areas {
    padding: var(--space-3xl) 0;
    background: var(--color-cream);
}

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

.areas-content {
    order: 1;
}

.areas-text {
    font-size: 1.0625rem;
    color: var(--color-text-light);
    margin-bottom: var(--space-lg);
    line-height: 1.8;
}

.areas-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-sm);
    margin-bottom: var(--space-lg);
}

.areas-list li {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 0.9375rem;
    color: var(--color-text);
    font-weight: 500;
}

.area-dot {
    width: 8px;
    height: 8px;
    min-width: 8px;
    background: var(--color-burgundy);
    border-radius: 50%;
}

.areas-image-group {
    order: 2;
    position: relative;
}

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

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

.area-img-secondary {
    position: absolute;
    bottom: -30px;
    left: -30px;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 4px solid var(--color-cream);
}

.area-img-secondary img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

/* ========================================
   Testimonials
======================================== */
.testimonials {
    padding: var(--space-3xl) 0;
    background: var(--color-burgundy-deep);
}

.testimonials .section-tag {
    background: rgba(245, 213, 204, 0.2);
    color: var(--color-blush);
}

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

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

.testimonial-card {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    transition: all var(--transition);
}

.testimonial-card:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-4px);
}

.testimonial-quote {
    color: var(--color-blush);
    margin-bottom: var(--space-md);
    opacity: 0.7;
}

.testimonial-text {
    font-size: 0.9375rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: var(--space-md);
    font-style: italic;
}

.testimonial-author {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--color-blush);
    font-style: normal;
}

/* ========================================
   CTA Section
======================================== */
.cta-section {
    position: relative;
    padding: var(--space-3xl) 0;
    overflow: hidden;
    background: linear-gradient(135deg, #5C1F2B 0%, #7B2D3B 40%, #A84457 100%);
}

.cta-gradient {
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse at 30% 50%, rgba(245, 213, 204, 0.15) 0%, transparent 60%),
        radial-gradient(ellipse at 70% 50%, rgba(212, 114, 106, 0.2) 0%, transparent 50%);
    pointer-events: none;
}

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

.cta-headline {
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--color-white);
    margin-bottom: var(--space-md);
}

.cta-text {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: var(--space-lg);
    line-height: 1.75;
}

.cta-contacts {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
}

.cta-phone, .cta-email {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--color-white);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 0.625rem 1.25rem;
    border-radius: var(--radius-full);
    transition: all var(--transition);
}

.cta-phone:hover, .cta-email:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.6);
}

/* ========================================
   Contact
======================================== */
.contact {
    padding: var(--space-3xl) 0;
    background: var(--color-cream);
}

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

.contact-text {
    font-size: 1.0625rem;
    color: var(--color-text-light);
    margin-bottom: var(--space-lg);
    line-height: 1.8;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

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

.contact-icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-blush);
    border-radius: var(--radius-sm);
    color: var(--color-burgundy);
}

.contact-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-text-muted);
    margin-bottom: 0.25rem;
}

.contact-value {
    font-size: 0.9375rem;
    color: var(--color-text);
    font-weight: 500;
    line-height: 1.6;
}

.contact-link {
    color: var(--color-burgundy);
    transition: color var(--transition);
}

.contact-link:hover {
    color: var(--color-burgundy-dark);
    text-decoration: underline;
}

/* ========================================
   Contact Form
======================================== */
.contact-form-wrapper {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-sm);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.form-label {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--color-text);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.form-input {
    width: 100%;
    padding: 0.875rem 1rem;
    font-family: var(--font-sans);
    font-size: 0.9375rem;
    color: var(--color-text);
    background: var(--color-blush-pale);
    border: 1.5px solid var(--color-border);
    border-radius: var(--radius-sm);
    transition: all var(--transition);
    outline: none;
}

.form-input:focus {
    border-color: var(--color-burgundy);
    background: var(--color-white);
    box-shadow: 0 0 0 3px rgba(123, 45, 59, 0.1);
}

.form-input::placeholder {
    color: var(--color-text-muted);
}

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

.form-success {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: var(--space-lg);
    text-align: center;
    color: var(--color-burgundy);
}

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

.form-success svg {
    color: var(--color-burgundy);
}

.form-success p {
    font-size: 0.9375rem;
    color: var(--color-text-light);
}

/* ========================================
   Map
======================================== */
.map-section {
    background: var(--color-dark);
}

.map-section iframe {
    display: block;
    filter: grayscale(30%) contrast(1.05);
}

/* ========================================
   Footer
======================================== */
.footer {
    background: var(--color-dark);
    color: rgba(255, 255, 255, 0.7);
    padding: var(--space-2xl) 0 var(--space-md);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: var(--space-xl);
    padding-bottom: var(--space-xl);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.logo-footer .logo-main {
    color: var(--color-white);
}

.footer-tagline {
    font-size: 0.9375rem;
    margin-top: var(--space-sm);
    line-height: 1.7;
    max-width: 280px;
}

.footer-heading {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-blush);
    margin-bottom: var(--space-md);
}

.footer-links ul,
.footer-contact ul {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.footer-links a,
.footer-contact a {
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.6);
    transition: color var(--transition);
}

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

.footer-contact li:last-child {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.875rem;
    line-height: 1.6;
}

.footer-bottom {
    padding-top: var(--space-md);
}

.footer-bottom p {
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.4);
}

/* ========================================
   Scroll Reveal
======================================== */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ========================================
   Responsive
======================================== */
@media (max-width: 1024px) {
    .hero-image {
        width: 35%;
    }

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

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

    .testimonials-grid .testimonial-card:last-child {
        grid-column: span 2;
        max-width: 50%;
        margin: 0 auto;
    }
}

@media (max-width: 900px) {
    .nav {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .hero {
        flex-direction: column;
        min-height: auto;
        padding-top: 100px;
        padding-bottom: var(--space-xl);
    }

    .hero-content {
        text-align: center;
        padding: var(--space-lg) var(--space-md);
    }

    .hero-description {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-ctas {
        justify-content: center;
    }

    .hero-image {
        position: relative;
        width: 100%;
        max-width: 100%;
        min-height: 400px;
        max-height: 50vh;
    }

    .hero-image::after {
        background: linear-gradient(to bottom, transparent 60%, var(--color-cream) 100%);
    }

    .about-grid,
    .areas-layout,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .areas-content {
        order: 1;
    }

    .areas-image-group {
        order: 2;
        margin-top: var(--space-xl);
    }

    .area-img-secondary {
        left: 10px;
        bottom: -20px;
    }

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

    .footer-brand {
        grid-column: span 2;
    }
}

@media (max-width: 640px) {
    :root {
        --space-3xl: 5rem;
        --space-2xl: 4rem;
    }

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

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

    .testimonials-grid .testimonial-card:last-child {
        grid-column: span 1;
        max-width: 100%;
    }

    .areas-list {
        grid-template-columns: 1fr;
    }

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

    .about-stats {
        flex-direction: column;
        gap: var(--space-md);
    }

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

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

    .footer-brand {
        grid-column: span 1;
    }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }
}
</style>

<sm-file path="script.js">
(function () {
    'use strict';

    // Header scroll effect
    const header = document.getElementById('header');
    let lastScroll = 0;

    function handleScroll() {
        const currentScroll = window.pageYOffset;
        if (currentScroll > 50) {
            header.classList.add('scrolled');
        } else {
            header.classList.remove('scrolled');
        }
        lastScroll = currentScroll;
    }

    window.addEventListener('scroll', handleScroll, { passive: true });

    // Mobile menu
    const mobileMenuBtn = document.getElementById('mobileMenuBtn');
    const mobileMenuOverlay = document.getElementById('mobileMenuOverlay');
    const mobileNavLinks = mobileMenuOverlay.querySelectorAll('.mobile-nav-link');

    function toggleMenu() {
        const isOpen = mobileMenuOverlay.classList.contains('active');
        mobileMenuBtn.classList.toggle('active');
        mobileMenuOverlay.classList.toggle('active');
        document.body.style.overflow = isOpen ? '' : 'hidden';
    }

    function closeMenu() {
        mobileMenuBtn.classList.remove('active');
        mobileMenuOverlay.classList.remove('active');
        document.body.style.overflow = '';
    }

    mobileMenuBtn.addEventListener('click', toggleMenu);

    mobileNavLinks.forEach(function (link) {
        link.addEventListener('click', closeMenu);
    });

    // Smooth scroll for anchor links
    document.querySelectorAll('a[href^="#"]').forEach(function (anchor) {
        anchor.addEventListener('click', function (e) {
            const targetId = this.getAttribute('href');
            if (targetId === '#') return;
            const target = document.querySelector(targetId);
            if (target) {
                e.preventDefault();
                const headerHeight = header.offsetHeight;
                const targetPosition = target.getBoundingClientRect().top + window.pageYOffset - headerHeight - 20;
                window.scrollTo({
                    top: targetPosition,
                    behavior: 'smooth'
                });
            }
        });
    });

    // Scroll reveal for elements below the fold
    if (window.matchMedia('(prefers-reduced-motion: no-preference)').matches) {
        const revealElements = document.querySelectorAll('.reveal');

        function revealOnScroll() {
            revealElements.forEach(function (el) {
                const rect = el.getBoundingClientRect();
                const windowHeight = window.innerHeight;
                if (rect.top < windowHeight * 0.85) {
                    el.classList.add('revealed');
                }
            });
        }

        window.addEventListener('scroll', revealOnScroll, { passive: true });
        revealOnScroll();
    }

    // Contact form
    const contactForm = document.getElementById('contactForm');
    const formSuccess = document.getElementById('formSuccess');

    if (contactForm) {
        contactForm.addEventListener('submit', function (e) {
            e.preventDefault();

            const formData = new FormData(contactForm);
            const name = formData.get('name');

            if (name) {
                contactForm.style.display = 'none';
                formSuccess.classList.add('show');
            }
        });
    }
})();
