/* =========================================================================
   Williams Studio — styles
   Brand: teal #008080 + charcoal #333 on white. Inter type. Generous space.
   ========================================================================= */

:root {
    --primary: #0a2540;
    --primary-deep: #061a2e;
    --charcoal: #333333;
    --gray: #6b7280;
    --gray-soft: #fafafa;
    --border: #e5e7eb;
    --white: #ffffff;

    --max: 1100px;
    --radius: 10px;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 8px 24px rgba(0, 0, 0, 0.05);

    --font:
        "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

/* Reset-ish */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--font);
    color: var(--charcoal);
    background: var(--white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

a:hover,
a:focus-visible {
    color: var(--primary-deep);
    text-decoration: underline;
}

button {
    font-family: inherit;
}

/* Skip link */
.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    background: var(--charcoal);
    color: var(--white);
    padding: 0.6rem 1rem;
    border-radius: var(--radius);
    z-index: 100;
}
.skip-link:focus {
    left: 1rem;
    top: 1rem;
}

/* Layout */
.container {
    width: 100%;
    max-width: var(--max);
    padding: 0 1.25rem;
    margin: 0 auto;
}

/* Header / nav — navy bar */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--primary);
    border-bottom: 1px solid var(--primary-deep);
}
.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 140px;
}
.brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: #ffffff;
    font-weight: 700;
    font-size: 1.05rem;
    letter-spacing: -0.01em;
}
.brand:hover,
.brand:focus-visible {
    color: #ffffff;
    text-decoration: none;
}
.brand__logo {
    height: 110px;
    width: auto;
    display: block;
    /* Flip a dark/charcoal SVG to white so it reads on the navy header.
       If you swap in a logo that is already white-on-transparent, delete this filter. */
    filter: brightness(0) invert(1);
}
.primary-nav {
    display: flex;
    align-items: center;
    gap: 1.75rem;
}
.primary-nav a {
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
    font-size: 0.95rem;
}
.primary-nav a:hover,
.primary-nav a:focus-visible {
    color: #ffffff;
    text-decoration: none;
}
.primary-nav .btn {
    margin-left: 0.5rem;
}
/* CTA in the nav — white pill on navy bg so it pops */
.primary-nav .btn--small {
    background: #ffffff;
    color: var(--primary);
    border-color: #ffffff;
}
.primary-nav .btn--small:hover,
.primary-nav .btn--small:focus-visible {
    background: #f1f5f9;
    color: var(--primary-deep);
    border-color: #f1f5f9;
}

/* Hamburger */
.nav-toggle {
    display: none;
    background: transparent;
    border: 0;
    width: 44px;
    height: 44px;
    cursor: pointer;
    padding: 0;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
}
.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: #ffffff;
    transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.85rem 1.4rem;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 0.98rem;
    border: 1.5px solid transparent;
    cursor: pointer;
    transition: transform 0.15s ease, background 0.15s ease,
        color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
.btn--primary {
    background: var(--primary);
    color: var(--white);
}
.btn--primary:hover,
.btn--primary:focus-visible {
    background: var(--primary-deep);
    color: var(--white);
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(10, 37, 64, 0.25);
}
.btn--ghost {
    background: transparent;
    color: var(--charcoal);
    border-color: var(--border);
}
.btn--ghost:hover,
.btn--ghost:focus-visible {
    border-color: var(--primary);
    color: var(--primary);
    text-decoration: none;
}
.btn--small {
    padding: 0.55rem 0.95rem;
    font-size: 0.9rem;
}

/* Eyebrow / section heads */
.eyebrow {
    margin: 0 0 0.4rem;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.82rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}
.section-head {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 2.75rem;
}
.section-head h2 {
    margin: 0;
    font-size: clamp(1.7rem, 3.2vw, 2.3rem);
    letter-spacing: -0.02em;
}
.section-head__sub {
    margin-top: 0.5rem;
    color: var(--gray);
    font-size: 1.05rem;
}

/* Hero — soft navy-tinted backdrop with depth */
.hero {
    padding: clamp(4rem, 8vw, 7rem) 0 clamp(3rem, 6vw, 5rem);
    background-color: #eef2f7;
    background-image:
        radial-gradient(1200px 600px at 0% -10%, rgba(10, 37, 64, 0.22), transparent 55%),
        radial-gradient(900px 500px at 110% 30%, rgba(10, 37, 64, 0.12), transparent 60%),
        linear-gradient(180deg, rgba(10, 37, 64, 0.04) 0%, transparent 100%);
    border-bottom: 1px solid rgba(10, 37, 64, 0.08);
}
.hero__inner {
    max-width: 820px;
}
.hero__title {
    margin: 0 0 1rem;
    font-size: clamp(2.1rem, 5vw, 3.4rem);
    line-height: 1.1;
    letter-spacing: -0.025em;
    font-weight: 700;
}
.hero__title .accent {
    color: var(--primary);
}
.hero__sub {
    margin: 0 0 2rem;
    font-size: clamp(1.05rem, 1.8vw, 1.2rem);
    color: var(--gray);
    max-width: 600px;
}
.hero__cta {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

/* Services */
.services {
    padding: clamp(3.5rem, 7vw, 6rem) 0;
    background: var(--gray-soft);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.25rem;
}
.card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.75rem;
    transition: transform 0.15s ease, box-shadow 0.15s ease,
        border-color 0.15s ease;
}
.card:hover {
    transform: translateY(-2px);
    border-color: var(--primary);
    box-shadow: var(--shadow);
}
.card__icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: rgba(10, 37, 64, 0.1);
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.04em;
    margin-bottom: 1rem;
}
.card h3 {
    margin: 0 0 0.5rem;
    font-size: 1.25rem;
    letter-spacing: -0.01em;
}
.card p {
    margin: 0;
    color: var(--gray);
    font-size: 0.97rem;
}
.services__footnote {
    margin: 2rem auto 0;
    text-align: center;
    color: var(--gray);
    font-size: 0.92rem;
    max-width: 640px;
}

/* About */
.about {
    padding: clamp(3.5rem, 7vw, 6rem) 0;
}
.about__inner {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 3rem;
    align-items: start;
}
.about__copy h2 {
    margin: 0 0 1rem;
    font-size: clamp(1.7rem, 3.2vw, 2.3rem);
    letter-spacing: -0.02em;
}
.about__copy p {
    margin: 0 0 1rem;
    color: var(--gray);
    font-size: 1.05rem;
}
.link-arrow {
    display: inline-block;
    margin-top: 0.5rem;
    font-weight: 600;
}
.facts {
    margin: 0;
    padding: 1.5rem;
    background: var(--gray-soft);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}
.facts__row {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border);
}
.facts__row:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}
.facts__row:first-child {
    padding-top: 0;
}
.facts dt {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--gray);
    margin-bottom: 0.2rem;
}
.facts dd {
    margin: 0;
    font-weight: 500;
    color: var(--charcoal);
}

/* Contact */
.contact {
    padding: clamp(3.5rem, 7vw, 6rem) 0;
    background: var(--gray-soft);
    border-top: 1px solid var(--border);
}
.contact__grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
}
.contact__info p {
    margin: 0 0 1.25rem;
    color: var(--gray);
}
.contact__info strong {
    color: var(--charcoal);
}
.contact__form {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.75rem;
}
.field {
    margin-bottom: 1rem;
}
.field label {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 0.35rem;
    color: var(--charcoal);
}
.field input,
.field textarea {
    width: 100%;
    padding: 0.7rem 0.85rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.98rem;
    color: var(--charcoal);
    background: var(--white);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field input:focus,
.field textarea:focus {
    outline: 0;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(10, 37, 64, 0.15);
}
.field textarea {
    resize: vertical;
    min-height: 110px;
}
.form__status {
    margin: 0.75rem 0 0;
    min-height: 1.2em;
    font-size: 0.92rem;
}
.form__status[data-state="success"] {
    color: var(--primary);
}
.form__status[data-state="error"] {
    color: #b91c1c;
}

/* Footer */
.site-footer {
    border-top: 1px solid var(--border);
    padding: 2rem 0 2.25rem;
    background: var(--white);
}
.site-footer__inner {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    color: var(--gray);
    font-size: 0.92rem;
}
.site-footer__row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}
.site-footer__row p {
    margin: 0;
}
.site-footer__legal {
    border-top: 1px solid var(--border);
    padding-top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.site-footer__legal p {
    margin: 0;
}
.site-footer__links a {
    font-weight: 500;
}
.site-footer__disclaimer {
    font-size: 0.82rem;
    color: var(--gray);
    max-width: 720px;
}
.site-footer a {
    color: var(--gray);
}
.site-footer a:hover {
    color: var(--primary);
}

/* Focus styling */
:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
    border-radius: 4px;
}

/* Legal pages (privacy, terms) */
.legal {
    padding: clamp(3rem, 6vw, 5rem) 0 clamp(3.5rem, 7vw, 6rem);
}
.legal__inner {
    max-width: 720px;
}
.legal h1 {
    margin: 0 0 0.4rem;
    font-size: clamp(1.9rem, 3.6vw, 2.5rem);
    letter-spacing: -0.02em;
}
.legal__updated {
    margin: 0 0 2rem;
    color: var(--gray);
    font-size: 0.92rem;
}
.legal h2 {
    margin: 2rem 0 0.75rem;
    font-size: 1.2rem;
    letter-spacing: -0.01em;
}
.legal p {
    margin: 0 0 1rem;
    color: var(--charcoal);
    line-height: 1.7;
}
.legal ul {
    margin: 0 0 1rem;
    padding-left: 1.25rem;
    color: var(--charcoal);
    line-height: 1.7;
}
.legal__disclaimer {
    margin-top: 2.5rem;
    padding: 1rem 1.25rem;
    background: var(--gray-soft);
    border-left: 3px solid var(--primary);
    border-radius: 0 8px 8px 0;
    font-size: 0.92rem;
    color: var(--gray);
}
.legal__back {
    margin-top: 1.5rem;
    font-weight: 500;
}

/* ===== Responsive ===== */
@media (max-width: 800px) {
    .about__inner,
    .contact__grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 700px) {
    .nav-toggle {
        display: inline-flex;
    }
    .primary-nav {
        position: absolute;
        top: 140px;
        left: 0;
        right: 0;
        background: var(--primary);
        border-bottom: 1px solid var(--primary-deep);
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 0.5rem 1.25rem 1rem;
        display: none;
    }
    .primary-nav.is-open {
        display: flex;
    }
    .primary-nav a {
        padding: 0.85rem 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    }
    .primary-nav a:last-child {
        border-bottom: 0;
    }
    .primary-nav .btn {
        margin: 0.75rem 0 0;
        align-self: flex-start;
    }
}
