/* the complete styles.css */
/* --- CSS RESET & DEFAULTS --- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    /* Colors */
    --bg-oyster: #F8F7F5;
    --surface-deep-cove: #1A252F;
    --ink-charcoal: #2C3034;
    --muted-fog: #5E6A77; /* FIX: Darkened for WCAG AA contrast (was #6B7885) */
    --accent-brass: #C5A06D;
    --line-spindrift: #D1D5DB;

    /* Fonts */
    --font-display: 'League Spartan', sans-serif;
    --font-body: 'Source Serif Pro', serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-oyster);
    color: var(--ink-charcoal);
    font-family: var(--font-body);
    font-size: clamp(1rem, 0.95rem + 0.25vw, 1.125rem); /* Fluid font size */
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    position: relative;
    overflow-x: hidden;
}

/* Subtle grain texture */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 250 250' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.02;
    pointer-events: none;
    z-index: 100;
}


/* --- TYPOGRAPHY --- */
h1, h2 {
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: -0.02em;
    text-transform: uppercase;
    line-height: 1.1;
}

h1 {
    font-size: clamp(2.5rem, 1.5rem + 5vw, 5rem);
    color: var(--bg-oyster);
}

h2 {
    font-size: clamp(2rem, 1.5rem + 2.5vw, 3rem);
    margin-bottom: 1.5rem;
}

p {
    max-width: 65ch;
}

a {
    color: var(--ink-charcoal);
    text-decoration: underline;
    text-decoration-color: var(--accent-brass);
    text-underline-offset: 4px;
    transition: color 0.2s ease;
}

a:hover, a:focus-visible {
    color: var(--accent-brass);
}

/* --- LAYOUT --- */
.container {
    width: 100%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 1.5rem;
}

section, footer {
    padding: clamp(4rem, 2rem + 10vw, 8rem) 0;
}

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

/* --- COMPONENTS --- */
.cta-button {
    display: inline-block;
    background-color: var(--accent-brass);
    color: var(--surface-deep-cove);
    font-family: var(--font-display);
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
    padding: 1rem 2rem;
    min-height: 44px;
    min-width: 44px;
    border-radius: 2px;
    transition: background-color 0.2s ease;
}

.cta-button:hover, .cta-button:focus-visible {
    background-color: #b18f60; /* Darker brass */
    color: var(--surface-deep-cove);
}

/* Focus Styles */
a:focus-visible, button:focus-visible {
    outline: 2px solid var(--accent-brass);
    outline-offset: 4px;
}

/* --- HERO SECTION --- */
.hero {
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
    background-color: var(--surface-deep-cove);
    background-image: linear-gradient(rgba(26, 37, 47, 0.7), rgba(26, 37, 47, 0.7)), url('assets/hero.png');
    background-size: cover;
    background-position: center;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.hero .subhead {
    font-family: var(--font-display);
    font-size: clamp(1rem, 0.8rem + 1vw, 1.25rem);
    color: var(--bg-oyster);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* --- ETHOS SECTION --- */
.ethos-section {
    border-bottom: 1px solid var(--line-spindrift);
}

.grid-ethos {
    display: grid;
    gap: 3rem;
    align-items: center;
}

.ethos-text p {
    margin-bottom: 1rem;
}

@media (min-width: 768px) {
    .grid-ethos {
        grid-template-columns: 1fr 1fr;
        gap: 5rem;
    }
    .ethos-image {
        order: -1;
    }
}

/* --- SERVICES SECTION --- */
.services-list {
    border-top: 1px solid var(--line-spindrift);
}

.services-list div {
    padding: 2rem 0;
    border-bottom: 1px solid var(--line-spindrift);
    display: grid;
    gap: 0.5rem 2rem;
}

.services-list dt {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.25rem;
    text-transform: uppercase;
}

.services-list dd {
    color: var(--muted-fog);
    max-width: 60ch;
}

@media (min-width: 768px) {
    .services-list div {
        grid-template-columns: 1fr 2fr;
        align-items: baseline;
    }
}

/* --- GALLERY SECTION --- */
.gallery-section {
    background-color: #F4F2EF; /* Slightly different for texture */
    border-top: 1px solid var(--line-spindrift);
    border-bottom: 1px solid var(--line-spindrift);
}

.gallery-subhead {
    color: var(--muted-fog);
    margin-bottom: 3rem;
}

.gallery-grid {
    display: grid;
    gap: 2rem;
}

@media (min-width: 768px) {
    .gallery-grid {
        grid-template-columns: 3fr 2fr;
        gap: 4rem;
        align-items: center;
    }
    .gallery-grid img:nth-child(2) {
        margin-top: 8rem;
    }
}


/* --- CONTACT / FOOTER SECTION --- */
.contact-section {
    background-color: var(--surface-deep-cove);
    color: var(--bg-oyster);
}

.contact-section h2 {
    color: var(--bg-oyster);
}

.contact-section p {
    color: var(--line-spindrift);
    margin-bottom: 1.5rem;
}

.grid-contact {
    display: grid;
    gap: 3rem;
    align-items: center;
}

.contact-call {
    margin-top: 2rem;
}

.contact-call span {
    display: block;
    font-family: var(--font-display);
    text-transform: uppercase;
    color: #A0AEC0; /* A light grey that passes WCAG AA on the dark background */
    margin-bottom: 0.5rem;
}

.contact-call a {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 1rem + 2.5vw, 2.5rem);
    color: var(--accent-brass);
    text-decoration: none;
    font-weight: 700;
    transition: color 0.2s ease;
}

.contact-call a:hover,
.contact-call a:focus-visible {
    color: var(--bg-oyster);
}

@media (min-width: 768px) {
    .grid-contact {
        grid-template-columns: 1fr 1fr;
        gap: 5rem;
    }
}

/* --- ANIMATIONS & TRANSITIONS --- */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.js-enabled .reveal {
    opacity: 0;
    transform: translateY(20px);
}

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

/* Staggered animation for gallery */
.js-enabled .gallery-grid img.reveal:nth-child(2) {
    transition-delay: 0.2s;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    .reveal,
    .js-enabled .reveal {
        transition: none;
        opacity: 1;
        transform: none;
    }
}