/* ============================================
   Anthony Mussolino Real Estate
   Classic & Elegant — Burgundy + Blush
   ============================================ */

/* --- CSS Custom Properties --- */
:root {
    --color-burgundy: #722F37;
    --color-burgundy-dark: #5A242C;
    --color-burgundy-light: #8B3A42;
    --color-blush: #F5E6E0;
    --color-blush-light: #FBF5F2;
    --color-blush-dark: #E8D0C8;
    --color-cream: #FDF8F5;
    --color-charcoal: #2C2424;
    --color-text: #3D2B2B;
    --color-text-light: #6B5555;
    --color-text-muted: #9A8585;
    --color-white: #FFFFFF;
    --color-border: #E8D8D2;
    
    --font-serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
    --font-sans: 'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2rem;
    --space-xl: 3rem;
    --space-2xl: 4rem;
    --space-3xl: 6rem;
    --space-4xl: 8rem;
    
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    
    --shadow-sm: 0 1px 3px rgba(114, 47, 55, 0.06);
    --shadow-md: 0 4px 16px rgba(114, 47, 55, 0.08);
    --shadow-lg: 0 8px 32px rgba(114, 47, 55, 0.12);
    --shadow-xl: 0 16px 48px rgba(114, 47, 55, 0.16);
    
    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* --- 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;
}

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

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

a:hover {
    color: var(--color-burgundy-dark);
}

ul {
    list-style: none;
}

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

/* --- Skip Link --- */
.skip-link {
    position: absolute;
    top: -100%;
    left: var(--space-sm);
    background: var(--color-burgundy);
    color: var(--color-white);
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-sm);
    z-index: 1000;
    font-size: 0.875rem;
}

.skip-link:focus {
    top: var(--space-sm);
}

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

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

/* --- Section Eyebrow --- */
.section-eyebrow {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-burgundy);
    margin-bottom: var(--space-sm);
}

/* --- Section Title --- */
.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 600;
    color: var(--color-charcoal);
    margin-bottom: var(--space-md);
    line-height: 1.15;
}

/* --- Section Subtitle --- */
.section-subtitle {
    font-size: 1.1rem;
    color: var(--color-text-light);
    line-height: 1.7;
    max-width: 600px;
}

/* --- Text Center --- */
.text-center {
    text-align: center;
}

.text-center .section-subtitle {
    margin-left: auto;
    margin-right: auto;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xs);
    font-family: var(--font-sans);
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.875rem 2rem;
    border-radius: var(--radius-sm);
    transition: all var(--transition-base);
    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);
    color: var(--color-white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

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

.btn--ghost:hover {
    background: var(--color-white);
    color: var(--color-burgundy);
    border-color: var(--color-white);
}

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

.btn--ghost-light:hover {
    background: var(--color-white);
    color: var(--color-burgundy);
    border-color: var(--color-white);
}

.btn--small {
    padding: 0.625rem 1.25rem;
    font-size: 0.8rem;
}

.btn--full {
    width: 100%;
}

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

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

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

/* --- Logo --- */
.logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    text-decoration: none;
    color: var(--color-charcoal);
}

.logo-mark {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-burgundy);
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--color-burgundy);
    border-radius: var(--radius-sm);
    letter-spacing: 0.05em;
}

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

.logo-name {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-charcoal);
}

.logo-tagline {
    font-family: var(--font-sans);
    font-size: 0.7rem;
    font-weight: 400;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-text-muted);
}

.logo--light .logo-name {
    color: var(--color-white);
}

.logo--light .logo-tagline {
    color: rgba(255, 255, 255, 0.7);
}

.logo--light .logo-mark {
    border-color: var(--color-white);
    color: var(--color-white);
}

/* --- Navigation --- */
.main-nav ul {
    display: flex;
    align-items: center;
    gap: var(--space-xl);
}

.main-nav a {
    font-family: var(--font-sans);
    font-size: 0.875rem;
    font-weight: 400;
    color: var(--color-text);
    letter-spacing: 0.02em;
    position: relative;
    padding: 0.25rem 0;
}

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

.main-nav a:hover::after,
.main-nav a:focus::after {
    width: 100%;
}

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

/* --- Nav Toggle --- */
.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    transition: background var(--transition-fast);
}

.nav-toggle:hover {
    background: var(--color-blush);
}

.hamburger {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--color-charcoal);
    position: relative;
    transition: all var(--transition-base);
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 22px;
    height: 2px;
    background: var(--color-charcoal);
    transition: all var(--transition-base);
}

.hamburger::before {
    top: -7px;
}

.hamburger::after {
    bottom: -7px;
}

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

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

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

/* --- Hero --- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(44, 36, 36, 0.72) 0%,
        rgba(114, 47, 55, 0.55) 50%,
        rgba(44, 36, 36, 0.68) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 780px;
    text-align: center;
    padding: var(--space-3xl) var(--space-lg);
}

.hero-eyebrow {
    font-family: var(--font-sans);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: var(--space-md);
}

.hero-headline {
    font-family: var(--font-serif);
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 500;
    font-style: italic;
    color: var(--color-white);
    line-height: 1.15;
    margin-bottom: var(--space-lg);
}

.hero-sub {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.8;
    margin-bottom: var(--space-xl);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

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

.hero-scroll {
    position: absolute;
    bottom: var(--space-xl);
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-xs);
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    font-family: var(--font-sans);
}

.scroll-line {
    width: 1px;
    height: 48px;
    background: linear-gradient(to bottom, rgba(255,255,255,0.6), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

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

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

/* --- About --- */
.about {
    background: var(--color-white);
}

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

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

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

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 4/5;
}

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

.about-content .section-subtitle {
    max-width: 100%;
    margin-bottom: var(--space-lg);
}

.about-content p {
    color: var(--color-text-light);
    margin-bottom: var(--space-md);
    line-height: 1.8;
}

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

.stat {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

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

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

.stat-divider {
    width: 1px;
    height: 48px;
    background: var(--color-border);
}

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

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

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

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

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

.service-icon {
    width: 56px;
    height: 56px;
    color: var(--color-burgundy);
    margin-bottom: var(--space-md);
}

.service-icon svg {
    width: 100%;
    height: 100%;
}

.service-title {
    font-size: 1.35rem;
    margin-bottom: var(--space-sm);
    color: var(--color-charcoal);
}

.service-card p {
    font-size: 0.95rem;
    color: var(--color-text-light);
    line-height: 1.7;
}

/* --- Areas --- */
.areas {
    background: var(--color-white);
}

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

.areas-content .section-subtitle {
    max-width: 100%;
    margin-bottom: var(--space-xl);
}

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

.areas-list li {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding-bottom: var(--space-md);
    border-bottom: 1px solid var(--color-border);
}

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

.area-name {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--color-charcoal);
}

.area-desc {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    text-align: right;
    max-width: 240px;
}

.areas-image-grid {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    gap: var(--space-md);
}

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

.area-img--large {
    grid-row: 1 / 3;
}

.area-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.area-img--large img {
    aspect-ratio: 5/6;
}

.area-img:not(.area-img--large) img {
    aspect-ratio: 16/9;
}

/* --- Testimonials --- */
.testimonials {
    background: var(--color-blush);
}

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

.testimonial-card {
    background: var(--color-white);
    padding: var(--space-xl);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
    position: relative;
}

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

.testimonial-quote {
    font-family: var(--font-serif);
    font-size: 4rem;
    line-height: 1;
    color: var(--color-burgundy);
    opacity: 0.2;
    position: absolute;
    top: var(--space-md);
    left: var(--space-lg);
}

.testimonial-text {
    font-size: 1rem;
    color: var(--color-text-light);
    line-height: 1.8;
    margin-bottom: var(--space-lg);
    margin-top: var(--space-xl);
    font-style: italic;
}

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

.author-avatar {
    width: 40px;
    height: 40px;
    color: var(--color-burgundy);
    opacity: 0.6;
}

.author-info {
    display: flex;
    flex-direction: column;
}

.author-name {
    font-family: var(--font-serif);
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-charcoal);
}

.author-detail {
    font-size: 0.8rem;
    color: var(--color-text-muted);
}

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

.cta-bg {
    position: absolute;
    inset: 0;
}

.cta-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cta-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(90, 36, 44, 0.88) 0%,
        rgba(114, 47, 55, 0.82) 100%
    );
}

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

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

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

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

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

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

.contact-info .section-subtitle {
    max-width: 100%;
    margin-bottom: var(--space-xl);
}

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

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

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

.contact-icon svg {
    width: 20px;
    height: 20px;
}

.contact-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-text-muted);
    margin-bottom: 4px;
}

.contact-item a,
.contact-item span {
    font-size: 1rem;
    color: var(--color-text);
    line-height: 1.6;
}

.contact-item a:hover {
    color: var(--color-burgundy);
}

/* --- Contact Form --- */
.contact-form-wrap {
    background: var(--color-white);
    padding: var(--space-xl);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--color-border);
}

.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: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-text);
    margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    font-family: var(--font-sans);
    font-size: 0.95rem;
    color: var(--color-text);
    background: var(--color-blush-light);
    border: 1.5px solid var(--color-border);
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
    outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--color-burgundy);
    background: var(--color-white);
    box-shadow: 0 0 0 3px rgba(114, 47, 55, 0.1);
}

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

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

.form-note {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    margin-top: var(--space-sm);
    text-align: center;
}

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

.success-icon {
    width: 64px;
    height: 64px;
    color: var(--color-burgundy);
    margin: 0 auto var(--space-md);
}

.form-success h3 {
    font-size: 1.5rem;
    margin-bottom: var(--space-sm);
    color: var(--color-charcoal);
}

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

/* --- Footer --- */
.site-footer {
    background: var(--color-charcoal);
    color: rgba(255, 255, 255, 0.7);
    padding: var(--space-3xl) 0 var(--space-lg);
}

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

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

.footer-links h4,
.footer-contact h4 {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: var(--space-md);
}

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

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

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

.footer-contact li {
    font-size: 0.9rem;
    line-height: 1.6;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-sm);
    padding-top: var(--space-lg);
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.4);
}

.footer-legal {
    font-size: 0.75rem;
}

/* --- Scroll Animations --- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* --- Responsive --- */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .testimonials-grid .testimonial-card:last-child {
        grid-column: 1 / -1;
        max-width: 500px;
        margin: 0 auto;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-xl);
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 var(--space-md);
    }
    
    .section {
        padding: var(--space-3xl) 0;
    }
    
    /* Mobile Navigation */
    .nav-toggle {
        display: flex;
    }
    
    .main-nav {
        position: fixed;
        top: 80px;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(253, 248, 245, 0.98);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        padding: var(--space-xl);
        transform: translateX(100%);
        transition: transform var(--transition-base);
        overflow-y: auto;
    }
    
    .main-nav.open {
        transform: translateX(0);
    }
    
    .main-nav ul {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-md);
    }
    
    .main-nav a {
        font-size: 1.1rem;
        padding: var(--space-sm) 0;
    }
    
    /* Hero */
    .hero-headline {
        font-size: clamp(2rem, 8vw, 3rem);
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-actions .btn {
        width: 100%;
        max-width: 280px;
    }
    
    /* About */
    .about-grid {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }
    
    .about-image-wrap {
        max-width: 400px;
        margin: 0 auto;
    }
    
    .about-stats {
        justify-content: center;
    }
    
    /* Services */
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    /* Areas */
    .areas-layout {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }
    
    .areas-image-grid {
        order: -1;
    }
    
    .area-img--large {
        grid-row: auto;
    }
    
    .area-img--large img {
        aspect-ratio: 16/9;
    }
    
    .area-desc {
        text-align: left;
        max-width: none;
    }
    
    /* Testimonials */
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .testimonials-grid .testimonial-card:last-child {
        max-width: none;
    }
    
    /* Contact */
    .contact-grid {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .header-inner {
        height: 70px;
    }
    
    .logo-mark {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }
    
    .logo-name {
        font-size: 0.95rem;
    }
    
    .hero-content {
        padding: var(--space-2xl) var(--space-md);
    }
    
    .hero-sub {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .about-stats {
        flex-direction: column;
        gap: var(--space-md);
    }
    
    .stat-divider {
        width: 48px;
        height: 1px;
    }
    
    .contact-form-wrap {
        padding: var(--space-lg);
    }
}
</style>
<sm-file path="script.js">
(function() {
    'use strict';

    // --- Mobile Navigation ---
    const navToggle = document.getElementById('nav-toggle');
    const mainNav = document.getElementById('main-nav');
    const navLinks = mainNav.querySelectorAll('a');

    navToggle.addEventListener('click', function() {
        const isOpen = mainNav.classList.toggle('open');
        navToggle.setAttribute('aria-expanded', isOpen);
        document.body.style.overflow = isOpen ? 'hidden' : '';
    });

    navLinks.forEach(function(link) {
        link.addEventListener('click', function() {
            mainNav.classList.remove('open');
            navToggle.setAttribute('aria-expanded', 'false');
            document.body.style.overflow = '';
        });
    });

    // --- Header Scroll Effect ---
    const header = document.getElementById('site-header');
    let lastScroll = 0;

    window.addEventListener('scroll', function() {
        const currentScroll = window.pageYOffset;
        
        if (currentScroll > 50) {
            header.classList.add('scrolled');
        } else {
            header.classList.remove('scrolled');
        }
        
        lastScroll = currentScroll;
    }, { passive: true });

    // --- Scroll Reveal Animations ---
    const revealElements = document.querySelectorAll('.reveal');
    
    const revealObserver = new IntersectionObserver(function(entries) {
        entries.forEach(function(entry) {
            if (entry.isIntersecting) {
                entry.target.classList.add('visible');
                revealObserver.unobserve(entry.target);
            }
        });
    }, {
        threshold: 0.1,
        rootMargin: '0px 0px -50px 0px'
    });

    revealElements.forEach(function(el) {
        revealObserver.observe(el);
    });

    // --- Contact Form ---
    const contactForm = document.getElementById('contact-form');
    const formSuccess = document.getElementById('form-success');

    if (contactForm) {
        contactForm.addEventListener('submit', function(e) {
            e.preventDefault();
            
            // Basic validation
            const name = document.getElementById('name').value.trim();
            const email = document.getElementById('email').value.trim();
            const message = document.getElementById('message').value.trim();
            
            if (!name || !email || !message) {
                alert('Please fill in all required fields.');
                return;
            }
            
            // Email validation
            const emailRegex = /^[^\s@]+@[^\s@]+\.[^\s@]+$/;
            if (!emailRegex.test(email)) {
                alert('Please enter a valid email address.');
                return;
            }
            
            // Simulate form submission
            contactForm.style.display = 'none';
            formSuccess.style.display = 'block';
        });
    }

    // --- 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;
                
                window.scrollTo({
                    top: targetPosition,
                    behavior: 'smooth'
                });
            }
        });
    });

    // --- Add reveal class to sections on load ---
    document.querySelectorAll('.about-grid, .services-grid, .service-card, .areas-layout, .areas-list li, .testimonial-card, .contact-grid').forEach(function(el, i) {
        el.classList.add('reveal');
        el.style.transitionDelay = (i % 6) * 0.08 + 's';
    });

})();
