/* ---------------------------------------------------------------------------
   Clare Lou Photography
   Design tokens first, then layout, then page-specific blocks.
   --------------------------------------------------------------------------- */

:root {
    --ivory: #FAF6F0;
    --cream: #FDFBF8;
    --sand: #F3EDE5;
    --white: #FFFFFF;

    --ink: #3D362F;
    --ink-strong: #241F1B;
    --muted: #635A50;
    --muted-light: #8F8579;

    --gold: #94743C;
    --gold-light: #B6945E;
    --gold-pale: #D4BC90;
    --gold-cream: #EDE1C9;

    --border: #E9E1D6;
    --rule: #DCD5CB;

    --link: #B36A50;
    --link-hover: #7C4A38;

    --serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --script: 'Cormorant Garamond', Georgia, serif;
    --sans: Montserrat, 'Helvetica Neue', Arial, sans-serif;

    --shell: 1240px;
    --gutter: 40px;
    /* 18px padding + the 52px logo + 18px padding + the 1px rule. */
    --header-height: 89px;

    --ease: cubic-bezier(.2, .6, .2, 1);
}

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

html { scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--ivory);
    color: var(--ink);
    font-family: var(--sans);
    font-weight: 300;
    -webkit-font-smoothing: antialiased;
}

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

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

::selection { background: #EFC8B8; color: var(--ink-strong); }

:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 3px; }

.visually-hidden {
    position: absolute;
    width: 1px; height: 1px;
    margin: -1px; padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

@keyframes rise {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}

/* --- Shared type ---------------------------------------------------------- */

.shell {
    max-width: var(--shell);
    margin: 0 auto;
    padding-left: var(--gutter);
    padding-right: var(--gutter);
}

.eyebrow {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: .32em;
    text-transform: uppercase;
    color: var(--gold);
}

.eyebrow--light { color: var(--gold-cream); }
.eyebrow--pale { color: var(--gold-pale); }

.meta {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: .24em;
    text-transform: uppercase;
    color: var(--muted-light);
}

.display {
    font-family: var(--serif);
    font-weight: 400;
    color: var(--ink-strong);
    line-height: 1.18;
    margin: 0;
    text-wrap: pretty;
}

.lede { font-size: 16px; line-height: 1.75; color: var(--ink); }
.body-copy { font-size: 15px; line-height: 1.75; color: var(--ink); }
.body-copy--muted { color: var(--muted); line-height: 1.7; }

.quote {
    margin: 0;
    font-family: var(--script);
    font-style: italic;
    font-weight: 300;
    font-size: 20px;
    line-height: 1.6;
    color: var(--ink);
}

/* --- Buttons and links ---------------------------------------------------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--sans);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: .24em;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    transition: background .28s var(--ease), color .28s var(--ease);
}

.btn--outline {
    height: 38px;
    padding: 0 20px;
    border: 1px solid var(--ink-strong);
    color: var(--ink-strong);
    background: transparent;
    letter-spacing: .2em;
}
.btn--outline:hover { background: var(--ink-strong); color: var(--cream); }

.btn--dark {
    height: 52px;
    padding: 0 34px;
    background: var(--ink-strong);
    color: var(--cream);
}
.btn--dark:hover { background: var(--ink); color: var(--cream); }

.btn--light {
    height: 52px;
    padding: 0 34px;
    background: var(--cream);
    color: var(--ink-strong);
}
.btn--light:hover { background: var(--gold-cream); color: var(--ink-strong); }

.link-underline {
    display: inline-block;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: .24em;
    text-transform: uppercase;
    color: var(--ink-strong);
    border-bottom: 1px solid var(--gold-pale);
    padding-bottom: 5px;
    transition: border-color .28s var(--ease);
}
.link-underline:hover { color: var(--ink-strong); border-color: var(--ink-strong); }

.link-quiet {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: .24em;
    text-transform: uppercase;
    color: var(--muted);
}
.link-quiet:hover { color: var(--ink-strong); }

/* --- Image frames --------------------------------------------------------- */

.frame {
    position: relative;
    overflow: hidden;
    background: var(--sand);
}

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

/* Stands in for a photograph that has not been uploaded yet. */
.frame__placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    text-align: center;
    background: linear-gradient(135deg, #EFE7DB 0%, #E3D8C8 100%);
    color: #9A8B76;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: .22em;
    text-transform: uppercase;
}

/* --- Header --------------------------------------------------------------- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(250, 246, 240, .92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
}

.site-header__inner {
    max-width: var(--shell);
    margin: 0 auto;
    padding: 18px var(--gutter);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

.wordmark {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    transition: opacity .28s var(--ease);
}
.wordmark:hover { opacity: .78; }

/* Width follows the mark's own proportions; only the height is pinned. */
.wordmark img {
    display: block;
    height: 52px;
    width: auto;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 30px;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: .22em;
    text-transform: uppercase;
}

.site-nav a { color: var(--muted); }
.site-nav a:hover,
.site-nav a[aria-current="page"] { color: var(--ink-strong); }
.site-nav .btn--outline[aria-current="page"] { background: var(--ink-strong); color: var(--cream); }

/* --- Hero ----------------------------------------------------------------- */

.hero {
    position: relative;
    height: 78vh;
    min-height: 520px;
    overflow: hidden;
}

.hero .frame { height: 100%; }

/* The hero photograph carries the studio watermark near the top of the frame.
   A centred cover-crop clips it, so anchor the crop above centre — that keeps
   the logo clear of the header while still holding the couple in shot. */
.hero .frame img { object-position: center 20%; }

.hero__scrim {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(36, 31, 27, .42), rgba(36, 31, 27, 0) 55%);
    pointer-events: none;
}

.hero__copy {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    padding: 0 var(--gutter) 46px;
    pointer-events: none;
}

.hero__copy > div {
    max-width: var(--shell);
    margin: 0 auto;
    animation: rise .9s var(--ease) both;
}

.hero__title {
    font-family: var(--serif);
    font-weight: 400;
    font-size: clamp(34px, 4.4vw, 64px);
    line-height: 1.08;
    letter-spacing: .02em;
    color: var(--white);
    margin: 14px 0 0;
    max-width: 16ch;
    text-wrap: pretty;
}

/* --- Home: introduction --------------------------------------------------- */

.intro {
    padding-top: 90px;
    padding-bottom: 24px;
    display: grid;
    grid-template-columns: 1fr 1.25fr;
    gap: 60px;
    align-items: start;
}

.intro__kicker {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: .32em;
    text-transform: uppercase;
    color: var(--gold);
    padding-top: 12px;
    max-width: 14ch;
    line-height: 1.7;
}

.intro__heading {
    font-size: clamp(26px, 2.6vw, 38px);
    line-height: 1.24;
    letter-spacing: .01em;
}

.intro p { margin: 22px 0 0; max-width: 60ch; }

/* --- Home: numbered features --------------------------------------------- */

.feature {
    padding-top: 70px;
    display: grid;
    gap: 56px;
}

.feature--wide-left  { grid-template-columns: 1.35fr 1fr; align-items: end; }
.feature--pair-right { grid-template-columns: 1fr 1.35fr; align-items: start; }
/* Centred rather than bottom-aligned: this block's picture is an upright, so
   hanging the copy off the bottom would leave a long gap above it. */
.feature--landscape  { grid-template-columns: 1.35fr 1fr; align-items: center; }
.feature--last { padding-bottom: 96px; }

.feature__copy--bottom { padding-bottom: 16px; }
.feature__copy--top { padding-top: 24px; }

.feature__label { display: flex; align-items: baseline; gap: 14px; }

.feature__number {
    font-family: var(--script);
    font-size: 15px;
    font-style: italic;
    color: var(--gold-light);
}

.feature__eyebrow {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: .32em;
    text-transform: uppercase;
    color: var(--gold);
}

.feature__heading { margin-top: 16px; font-size: 28px; line-height: 1.2; }
.feature__body { margin: 16px 0 0; }
.feature__link { margin-top: 20px; }

.feature__pair {
    display: grid;
    grid-template-columns: 1.2fr .8fr;
    gap: 14px;
    align-items: start;
}

/* The second image of the pair drops down to break the top line. */
.feature__pair > .frame:nth-child(2) { margin-top: 56px; }

/* --- Home: testimonials --------------------------------------------------- */

.testimonials {
    background: var(--sand);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.testimonials__grid {
    padding-top: 80px;
    padding-bottom: 80px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 48px;
}

.testimonials__grid .meta { margin-top: 18px; }

/* --- Home: about ---------------------------------------------------------- */

.about {
    padding-top: 96px;
    padding-bottom: 96px;
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 64px;
    align-items: center;
    scroll-margin-top: var(--header-height);
}

.about__heading { margin-top: 18px; font-size: 34px; }
.about p { margin: 20px 0 0; max-width: 56ch; }
.about p + p { margin-top: 14px; }

.stats {
    margin-top: 34px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.stat { border-top: 1px solid var(--rule); padding-top: 12px; }
.stat__value { font-family: var(--serif); font-size: 24px; color: var(--ink-strong); }
.stat__label {
    margin-top: 5px;
    font-size: 11px;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--muted-light);
}

/* --- Home: services ------------------------------------------------------- */

.services {
    background: var(--cream);
    border-top: 1px solid var(--border);
    scroll-margin-top: var(--header-height);
}

.services__inner { padding-top: 88px; padding-bottom: 88px; }

.section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap;
}

.section-head__heading { margin-top: 16px; font-size: 34px; }
.section-head p { margin: 0; max-width: 44ch; }

.services__grid {
    margin-top: 44px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}

.service-card {
    background: var(--white);
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    color: inherit;
    transition: border-color .28s var(--ease);
}
.service-card:hover { color: inherit; border-color: var(--gold-pale); }

.service-card__body { padding: 20px; }
.service-card__title { font-family: var(--serif); font-weight: 400; font-size: 19px; color: var(--ink-strong); margin: 0; }
.service-card__body p { margin: 10px 0 0; font-size: 14px; line-height: 1.7; color: var(--muted); }

.service-card__cta {
    margin-top: 16px;
    font-size: 11px;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--gold);
}

/* --- Home: closing band --------------------------------------------------- */

.cta-band { background: var(--ink-strong); }

.cta-band__inner {
    padding-top: 96px;
    padding-bottom: 96px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 48px;
    flex-wrap: wrap;
}

.cta-band__heading {
    margin-top: 16px;
    font-size: 38px;
    line-height: 1.16;
    color: var(--ivory);
    max-width: 22ch;
}

/* --- Portfolio ------------------------------------------------------------ */

.portfolio { padding-top: 72px; padding-bottom: 40px; }
.portfolio__heading { margin-top: 16px; font-size: clamp(30px, 3.4vw, 46px); line-height: 1.14; }

.portfolio-row { margin-top: 60px; }
.portfolio-row + .portfolio-row { margin-top: 56px; }
.portfolio-row:last-child { padding-bottom: 20px; }

.portfolio-row__head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 24px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 14px;
}

.portfolio-row__title { font-family: var(--serif); font-weight: 400; font-size: 23px; color: var(--ink-strong); margin: 0; }

.row-scroller {
    margin-top: 22px;
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 14px;
}

.row-scroller::-webkit-scrollbar { height: 2px; }
.row-scroller::-webkit-scrollbar-thumb { background: var(--rule); }

.gallery-card {
    flex: 0 0 300px;
    scroll-snap-align: start;
    color: inherit;
}
.gallery-card:hover { color: inherit; }
.gallery-card .frame img { transition: transform .6s var(--ease); }
.gallery-card:hover .frame img { transform: scale(1.03); }

.gallery-card__title { margin-top: 12px; font-family: var(--serif); font-size: 17px; color: var(--ink-strong); }

.gallery-card__meta {
    margin-top: 5px;
    font-size: 11px;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--muted-light);
}

/* --- Gallery detail ------------------------------------------------------- */

.gallery-crumbs {
    padding-top: 34px;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 24px;
}

.gallery-crumbs .eyebrow { letter-spacing: .24em; }

.gallery-body { padding-top: 34px; }

.gallery-intro { max-width: 60ch; margin: 46px auto 0; text-align: center; }
.gallery-intro__title { margin-top: 16px; font-size: 34px; line-height: 1.2; }

.gallery-intro__story {
    margin: 18px 0 0;
    font-family: var(--script);
    font-style: italic;
    font-weight: 300;
    font-size: 20px;
    line-height: 1.65;
    color: var(--muted);
}

.photo-row { margin-top: 20px; display: grid; gap: 20px; }
.photo-row:first-of-type { margin-top: 52px; }
.photo-row--1 { grid-template-columns: 1fr; }
.photo-row--2 { grid-template-columns: repeat(2, 1fr); }
.photo-row--3 { grid-template-columns: repeat(3, 1fr); }

.gallery-quote {
    margin-top: 80px;
    background: var(--sand);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.gallery-quote__inner { max-width: 60ch; margin: 0 auto; padding: 70px var(--gutter); text-align: center; }
.gallery-quote__inner .quote { font-size: 24px; }
.gallery-quote__inner .meta { margin-top: 20px; }

.gallery-foot {
    padding-top: 44px;
    padding-bottom: 88px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.gallery-foot__spacer { flex: 0 0 auto; min-width: 1px; }

/* --- Contact -------------------------------------------------------------- */

.contact {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
    min-height: calc(100vh - var(--header-height));
}

.contact__image { position: relative; min-width: 0; min-height: 520px; }
.contact__image .frame { position: absolute; inset: 0; }

.contact__panel {
    min-width: 0;
    padding: clamp(40px, 5vw, 72px) clamp(24px, 4vw, 64px) 88px;
    max-width: 660px;
}

.contact__heading { margin-top: 16px; font-size: 40px; line-height: 1.14; }
.contact__panel > p { margin: 16px 0 0; max-width: 46ch; }

.enquiry-form { margin-top: 34px; display: flex; flex-direction: column; gap: 22px; }

.field-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

.field { display: flex; flex-direction: column; gap: 8px; }

.field__label,
.fieldset__legend {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--muted);
    padding: 0;
}

.field input,
.field textarea {
    padding: 0 14px;
    border: 1px solid var(--rule);
    background: var(--white);
    font-family: var(--sans);
    font-size: 15px;
    font-weight: 300;
    color: var(--ink-strong);
    outline: none;
    border-radius: 0;
    transition: border-color .24s var(--ease);
}

.field input { height: 46px; }
.field textarea { padding: 12px 14px; line-height: 1.7; resize: vertical; }
.field input:focus, .field textarea:focus { border-color: var(--gold-light); }
.field input::placeholder, .field textarea::placeholder { color: #B3A896; }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: #A85B44; }

.field-error {
    font-family: var(--script);
    font-style: italic;
    font-size: 15px;
    color: #A85B44;
}

.session-picker { display: flex; flex-direction: column; gap: 10px; border: 0; margin: 0; }
.session-picker__options { display: flex; flex-wrap: wrap; gap: 9px; }

/* Radio styled as a pill; the input itself is hidden but still focusable. */
.pill input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
}

.pill span {
    display: inline-block;
    font-family: var(--sans);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: .18em;
    text-transform: uppercase;
    padding: 11px 18px;
    border-radius: 999px;
    border: 1px solid var(--rule);
    background: transparent;
    color: var(--ink);
    cursor: pointer;
    transition: background .24s var(--ease), color .24s var(--ease), border-color .24s var(--ease);
}

.pill:hover span { border-color: var(--gold-light); }

.pill input:checked + span {
    background: var(--ink-strong);
    color: var(--cream);
    border-color: var(--ink-strong);
}

.pill input:focus-visible + span { outline: 2px solid var(--gold-light); outline-offset: 3px; }

/* Honeypot: off-screen for people, still fillable by a bot. */
.honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.form-actions { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }

.form-sent {
    font-family: var(--script);
    font-style: italic;
    font-size: 17px;
    color: var(--gold);
}

.form-summary {
    margin: 0;
    padding: 14px 16px;
    border-left: 2px solid #A85B44;
    background: #F6EDE8;
    font-size: 14px;
    line-height: 1.7;
    color: var(--ink);
}
.form-summary ul { margin: 0; padding-left: 18px; }

.contact-details {
    margin-top: 40px;
    padding-top: 22px;
    border-top: 1px solid var(--rule);
    display: flex;
    gap: 34px;
    flex-wrap: wrap;
    font-size: 13px;
    color: var(--muted);
}
.contact-details a { color: var(--muted); }
.contact-details a:hover { color: var(--ink-strong); }

/* --- Footer --------------------------------------------------------------- */

.site-footer { background: var(--cream); border-top: 1px solid var(--border); }

.site-footer__inner {
    padding-top: 52px;
    padding-bottom: 52px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 48px;
    flex-wrap: wrap;
}

.site-footer__mark img { display: block; height: 62px; width: auto; }

.site-footer__strapline {
    margin-top: 10px;
    font-size: 12px;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--muted-light);
}

.site-footer__links { display: flex; gap: 44px; font-size: 12px; line-height: 2; color: var(--muted); }
.site-footer__links > div { display: flex; flex-direction: column; }
.site-footer__copyright { font-size: 12px; color: var(--muted-light); }

/* --- Error page ----------------------------------------------------------- */

.error-page { padding: 120px 0 140px; text-align: center; }
.error-page h1 { margin-top: 16px; font-size: clamp(30px, 3.4vw, 44px); }
.error-page p { margin: 18px auto 32px; max-width: 46ch; }

/* --- Responsive ----------------------------------------------------------- */

@media (max-width: 1080px) {
    .services__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 1000px) {
    :root { --gutter: 28px; }

    .intro,
    .about,
    .feature--wide-left,
    .feature--pair-right,
    .feature--landscape { grid-template-columns: minmax(0, 1fr); gap: 32px; }

    .intro { padding-top: 64px; }
    .intro__kicker { max-width: none; padding-top: 0; }

    .about { padding-top: 72px; padding-bottom: 72px; }

    /* Copy always follows its picture once the columns stack. */
    .feature--pair-right .feature__copy { order: 2; padding-top: 0; }
    .feature--pair-right .feature__pair { order: 1; }
    .feature__copy--bottom { padding-bottom: 0; }

    .testimonials__grid { grid-template-columns: minmax(0, 1fr); gap: 36px; padding-top: 60px; padding-bottom: 60px; }

    .contact { grid-template-columns: minmax(0, 1fr); }
    .contact__image { min-height: 360px; }
    .contact__panel { max-width: none; }

    .cta-band__inner { padding-top: 72px; padding-bottom: 72px; }
    .cta-band__heading { font-size: 30px; }
}

@media (max-width: 760px) {
    /* The header stacks and the nav wraps here, so it is much taller than on
       desktop. Anchor offsets read this, and they land behind the sticky header
       if it is left at the desktop figure. */
    :root { --header-height: 165px; }

    .site-header__inner { flex-direction: column; align-items: flex-start; gap: 16px; }
    .site-nav { gap: 18px; flex-wrap: wrap; }
    .wordmark img { height: 42px; }

    .hero { height: 70vh; min-height: 440px; }

    .services__grid { grid-template-columns: minmax(0, 1fr); }
    .field-pair { grid-template-columns: minmax(0, 1fr); }
    .photo-row--2, .photo-row--3 { grid-template-columns: minmax(0, 1fr); }

    .gallery-foot { flex-direction: column; align-items: stretch; text-align: center; }

    .stats { gap: 16px; }
    .stat__label { letter-spacing: .12em; }

    .site-footer__links { gap: 28px; }
}

@media (max-width: 460px) {
    .stats { grid-template-columns: minmax(0, 1fr); }
    .gallery-card { flex-basis: 240px; }
}
