/* ==========================================================================
   fotau.com — site.css
   Light monochrome gallery theme, replicating the Portfoliobox design:
   white background, grey text, thin wide-tracked uppercase headings,
   pill navigation. Mobile-first: base styles are the phone layout,
   min-width media queries scale up to tablet and desktop.
   ========================================================================== */

* { box-sizing: border-box; }

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

body {
    margin: 0;
    background: #fff;
    color: #777;
    font-family: "Montserrat", "Neue Haas Grotesk Text Pro", "Neue Haas Grotesk", "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-weight: 400;
    font-size: 15px;
    line-height: 1.6;
}

img { max-width: 100%; }

a { color: #666; text-decoration: none; }
a:hover { color: #333; }

h1, h2, h3 {
    font-weight: 200;
    text-transform: uppercase;
    letter-spacing: .28em;
    color: #666;
    text-align: center;
}

/* ------------------------------------------------------------- header --- */

.site-header {
    position: relative;
    text-align: center;
    padding: 34px 16px 10px;
}

/* Social links + the EN/FR selector, one row at the header's top right. */
.header-top {
    position: absolute;
    top: 10px;
    right: 18px;
    display: flex;
    align-items: center;
    gap: 18px;
}
.header-socials { margin: 0; display: flex; gap: 6px; }
.header-socials a { color: #999; display: inline-flex; padding: 4px; }
.header-socials a:hover { color: #333; }

.lang-toggle {
    font-size: 12px;
    letter-spacing: .15em;
    color: #bbb;
}
/* Small screens: give the wider top row clearance above the logo. */
@media (max-width: 640px) {
    .site-header { padding-top: 48px; }
    .header-top { gap: 10px; }
}
.lang-toggle a { color: #999; padding: 6px 4px; }
.lang-toggle a.on { color: #444; font-weight: 400; }

.logo {
    display: inline-block;
    font-size: clamp(34px, 7vw, 56px);
    font-weight: 300;
    letter-spacing: .3em;
    /* balance the trailing letter-spacing so it looks centred */
    margin-right: -.3em;
    color: #888;
    line-height: 1.1;
}

.tagline {
    margin: 10px 0 22px;
    font-size: 11px;
    letter-spacing: .32em;
    color: #aaa;
    text-transform: uppercase;
}

/* Pill navigation (two centred rows, like the old site) */
.main-nav { padding-bottom: 14px; }
.nav-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-bottom: 8px;
    padding: 0 8px;
}

.pill {
    display: inline-block;
    border: 1px solid #d5d5d5;
    border-radius: 2px;
    padding: 6px 10px;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: #777;
    background: #fff;
    white-space: nowrap;
}
.pill:hover { background: #f4f4f4; color: #444; }
.pill.on { border-color: #999; color: #444; }

/* --------------------------------------------------------------- hero --- */

.hero {
    position: relative;
    overflow: hidden;
    height: 38vh;
    min-height: 240px;
    display: flex;
    align-items: center;
    justify-content: center;
}
/* The hero photo stays FIXED in the background while the page scrolls
   over it, like the original Portfoliobox site: the image layer is
   position:fixed and viewport-sized (the geometry of a CSS
   background-attachment:fixed), and clip-path on .hero trims it to the
   banner window. The title scrolls with the page, over the still photo.
   Where clip-path is unavailable the layer falls back to a plain
   absolute cover inside the banner. */
.hero-bg {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 0;
}
@supports (clip-path: inset(0)) {
    .hero { clip-path: inset(0); }
    .hero-bg {
        position: fixed;
        top: 0;
        height: 100vh;
    }
}
/* Softens the photo under the title (replaces the old inset-shadow trick). */
.hero:not(.hero-plain):not(.hero-dark)::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .16);
    z-index: 1;
}
.hero h1 { position: relative; z-index: 2; }
.hero h1 {
    margin: 0;
    padding: 0 16px;
    color: #fff;
    font-size: clamp(26px, 5.5vw, 56px);
    letter-spacing: .3em;
    text-shadow: 0 1px 12px rgba(0, 0, 0, .35);
}
/* Title lines inside the hero <h1>: a page can stack more than one
   (the original Real Estate header has two), each with its own size
   set inline by render_hero(). The negative right margin cancels the
   trailing letter-spacing so each line stays centred. */
.hero-line { display: block; margin-right: -.3em; }
/* Kept in the markup (SEO + screen readers) but not displayed —
   pages whose original header carries no title text (Video, Kids). */
.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;
}
.hero-plain { background: #ececec; box-shadow: none; height: 26vh; min-height: 150px; }
.hero-plain h1 { color: #666; text-shadow: none; }
.hero-dark { background: #1c1c1c; box-shadow: none; height: 30vh; min-height: 180px; }
.hero-dark h1 { color: #fff; text-shadow: none; }

/* ------------------------------------------------------ text sections --- */

/* Plain page title (booking) — no photo banner, unlike the portfolios. */
.page-title {
    margin: 40px 16px 0;
    text-align: center;
    font-weight: 300;
    font-size: clamp(26px, 5vw, 40px);
    letter-spacing: .1em;
    color: #333;
}
/* The live booking intro's jump link to the form (its teal, bold). */
.booking-jump { color: #13808f; font-weight: 700; }
/* The booking page's top zone (title, intro, packages) sits on the
   live page's light grey, rgba(223,223,223,1). */
.booking-top { background: #dfdfdf; padding: 34px 0 36px; }
.booking-top .page-title { margin-top: 0; }
.form-intro { color: #666; font-size: 14.5px; line-height: 1.65; margin: 0 0 18px; }
/* "BOOKING REQUEST" heading over the form intro; also the anchor the
   book buttons and the intro's HERE link jump to. */
.form-title {
    margin: 0 0 12px;
    font-size: 19px;
    font-weight: 500;
    letter-spacing: .14em;
    color: #333;
    scroll-margin-top: 18px;
}

.intro {
    max-width: 740px;
    margin: 36px auto 10px;
    padding: 0 22px;
    text-align: center;
    color: #888;
    font-size: 15px;
    line-height: 1.75;
}

/* "See also" sibling links under a category intro — pill buttons, the
   same row in the same place on each linked category's page. */
.see-also {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin: 14px auto 0;
    padding: 0 20px;
}
.see-also-label {
    font-size: 13px;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #aaa;
}

.prose { max-width: 760px; margin: 40px auto; padding: 0 22px; }
.prose p { margin: 0 0 20px; line-height: 1.8; color: #777; }

/* --------------------------------------------------------------- grid --- */

.grid {
    max-width: 1600px;
    margin: 30px auto 10px;
    padding: 0 14px 40px;
}

/* Masonry: CSS columns keep the code trivial and the order = lightbox order */
.grid-masonry { column-count: 2; column-gap: 14px; }
.grid-masonry .ph { margin: 0 0 14px; }

@media (min-width: 700px) {
    .grid { padding: 0 24px 50px; }
    .grid-masonry { column-count: 3; column-gap: 22px; }
    .grid-masonry .ph { margin-bottom: 22px; }
}
@media (min-width: 1100px) {
    .grid-masonry { column-count: 4; column-gap: 26px; }
    .grid-masonry .ph { margin-bottom: 26px; }
    .hero { height: 52vh; }
}

/* Uniform portrait grid (Art) */
.grid-uniform {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}
.grid-uniform .ph { aspect-ratio: 2 / 3; }
.grid-uniform .ph img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 700px)  { .grid-uniform { grid-template-columns: repeat(3, 1fr); gap: 22px; } }
@media (min-width: 1100px) { .grid-uniform { grid-template-columns: repeat(4, 1fr); gap: 26px; } }

/* One photo cell + its hover title */
.ph {
    position: relative;
    break-inside: avoid;
    overflow: hidden;
    /* <figure> carries a browser-default margin (1em 40px) — the
       masonry rules happened to zero it, the uniform grid didn't,
       which is why Art's thumbnails sat so much farther apart:
       the margins stacked on top of the grid gap. */
    margin: 0;
    /* A plain pointer here — the magnifying-glass (zoom-in) cursor is
       reserved for the lightbox, where it means "see it bigger". */
    cursor: pointer;
    outline: none;
}
.ph img { display: block; width: 100%; height: auto; transition: opacity .35s ease, transform 1.2s cubic-bezier(.19, 1, .22, 1); }
/* Subtle zoom-in on hover, like the original site. */
.ph:hover img, .ph:focus-visible img { transform: scale(1.05); }
.grid-uniform .ph img { height: 100%; }
.ph-title {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 12px;
    background: rgba(255, 255, 255, .55);
    color: #555;
    font-size: 13px;
    letter-spacing: .18em;
    text-transform: uppercase;
    opacity: 0;
    transition: opacity .35s ease;
    pointer-events: none;
}
.ph:hover .ph-title, .ph:focus .ph-title { opacity: 1; }
.ph:hover img, .ph:focus img { opacity: .45; }

/* -------------------------------------------------------------- about --- */

/* About hero (matches the old site's /about2): the podium photo as a
   full-bleed background — contain on black, like the original — with
   the bio overlaid in a translucent panel on the right. */
.about-hero {
    background: #000 url('/images/pages/about-bg-1920.jpg') left center / contain no-repeat;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    min-height: 78vh;
}
.about-hero-text {
    width: 66%;
    max-width: 780px;
    margin: 56px 4vw 56px 0;
    background: rgba(0, 0, 0, .38);
    color: #f2f2f2;
    padding: 32px 36px;
}
.about-hero-text h1 {
    margin: 0 0 18px;
    font-size: clamp(26px, 4vw, 44px);
    font-weight: 300;
    letter-spacing: .3em;
    color: #fff;
}
.about-hero-text p { margin: 0 0 14px; line-height: 1.75; font-size: 15.5px; }
.about-hero-text p:last-child { margin-bottom: 0; }
/* Title block subtitle: Sean's name, then the client-list pointer. */
.about-hero-text p.about-subtitle { margin-bottom: 22px; line-height: 1.55; }
.about-name { font-size: 19px; font-weight: 500; letter-spacing: .08em; color: #fff; }
.about-clients-link { font-size: 14px; color: rgba(255, 255, 255, .72); }
.about-clients-link:hover { color: #fff; }
@media (max-width: 800px) {
    /* Photo becomes a band across the top (contain, 3:2), text below it */
    .about-hero { display: block; min-height: 0; background-position: top center; }
    .about-hero-text {
        width: auto;
        max-width: none;
        margin: 68vw 16px 40px;
        padding: 24px 22px;
    }
}

/* ------------------------------------------------------------ clients --- */

.clients {
    /* the original's grey hexagon pattern, darkened like its Clients band */
    background:
        linear-gradient(rgba(0, 0, 0, .22), rgba(0, 0, 0, .22)),
        #5c5c5c url('/images/pages/pattern-hexagons.jpg') center / cover no-repeat;
    margin-top: 40px;
    padding: 44px 22px 50px;
    text-align: center;
}
/* On the About page the Clients band sits flush under the About hero. */
.about-hero + .clients { margin-top: 0; }
.clients-intro { max-width: 680px; margin: 0 auto 26px; color: rgba(255, 255, 255, .85); }
.clients h3 { font-size: 14px; margin: 26px 0 6px; color: #fff; }
.clients p { max-width: 900px; margin: 0 auto; color: rgba(255, 255, 255, .72); font-size: 13.5px; line-height: 1.8; }

/* ------------------------------------------------------------- footer --- */

.site-footer {
    /* the original's grey hexagon pattern over its grey (148,146,146) */
    background: #949292 url('/images/pages/pattern-hexagons.jpg') center / cover no-repeat;
    color: #fff;
    text-align: center;
    padding: 52px 20px 40px;
}
.footer-logo {
    margin: 0;
    font-size: clamp(30px, 5vw, 44px);
    font-weight: 200;
    letter-spacing: .3em;
    margin-right: -.3em;
}
.footer-name { letter-spacing: .3em; font-size: 12px; margin: 8px 0 22px; }
.pill-light { border-color: rgba(255,255,255,.7); color: #fff; background: transparent; }
.pill-light:hover { background: rgba(255,255,255,.15); color: #fff; }
.socials { margin: 24px 0 6px; }
.socials a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px; height: 44px;
    color: #fff;
    opacity: .9;
}
.socials a:hover { opacity: 1; color: #fff; }
.footer-phone { letter-spacing: .2em; margin: 10px 0 14px; }
.copyright { font-size: 11.5px; letter-spacing: .08em; opacity: .85; margin-top: 26px; }

/* ------------------------------------------------------------ booking --- */

/* All five packages sit in a single row on desktop, like the live
   site — the cards flex down slightly to fit; they wrap on smaller
   screens and go full width on phones. */
.packages {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
    max-width: 1280px;
    margin: 30px auto 10px;
    padding: 0 18px;
}
.package {
    border: 1px solid #e2e2e2;
    padding: 0;
    flex: 1 1 190px;
    max-width: 240px;
    text-align: center;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
@media (max-width: 560px) {
    .package { max-width: 340px; }
}
/* Every package photo shows at 16:9 (the family source is 4:3 — cover
   crops it to match the others). */
.package-img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.package-body { padding: 14px 14px 16px; display: flex; flex-direction: column; flex: 1; background: #eeeeee; }
/* The book button sits at the card's bottom, aligned across the row,
   and spans the full width of the card's column. */
.package .package-book { margin-top: auto; padding-top: 12px; }
.package .package-book .pill { display: block; }
.package h2 { font-size: 13px; margin: 0 0 8px; }
.package p { margin: 0 0 7px; font-size: 12.5px; color: #999; }
.package .price { font-size: 18px; color: #555; letter-spacing: .1em; }
.packages-note {
    max-width: 900px;
    margin: 16px auto 0;
    padding: 0 22px;
    font-size: 12.5px;
    line-height: 1.7;
    color: #999;
    text-align: center;
}

/* booking form beside its photo, like the original page */
.booking-wrap {
    display: flex;
    gap: 34px;
    align-items: flex-start;
    max-width: 1100px;
    margin: 36px auto 60px;
    padding: 0 22px;
}
.booking-photo { flex: 0 0 340px; }
.booking-photo img { display: block; width: 100%; }
.booking-main { flex: 1 1 auto; min-width: 0; }
.booking-main .booking-form { max-width: none; margin: 0; padding: 0; }
@media (max-width: 800px) {
    .booking-wrap { flex-direction: column; }
    .booking-photo { flex: none; width: 100%; }
    .booking-photo img { max-height: 400px; object-fit: cover; }
}

.booking-form {
    max-width: 640px;
    margin: 30px auto 60px;
    padding: 0 22px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.booking-form label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: #888; }
.booking-form input[type="text"],
.booking-form input[type="email"],
.booking-form input[type="tel"],
.booking-form textarea {
    border: 1px solid #d5d5d5;
    border-radius: 4px;
    padding: 11px 12px;
    font: inherit;
    font-size: 15px;
    color: #444;
    text-transform: none;
    letter-spacing: normal;
}
.form-row { display: flex; gap: 16px; flex-wrap: wrap; }
.form-row label { flex: 1 1 200px; }
.booking-form fieldset { border: 1px solid #e2e2e2; padding: 14px 16px; display: flex; flex-wrap: wrap; gap: 8px 18px; }
.booking-form legend { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: #888; padding: 0 6px; }
.booking-form .check { flex-direction: row; align-items: center; gap: 7px; text-transform: none; letter-spacing: normal; font-size: 14px; }
.booking-form .check input { width: 18px; height: 18px; }
.pill-submit { align-self: flex-start; cursor: pointer; font: inherit; padding: 10px 34px; }
.form-thanks { text-align: center; color: #4a7a4a; max-width: 600px; margin: 24px auto 0; padding: 0 20px; }
.form-error { text-align: center; color: #a04a4a; max-width: 600px; margin: 24px auto 0; padding: 0 20px; }

/* ----------------------------------------------------------- lightbox --- */

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 100;
    background: rgba(246, 246, 246, .98);
    display: flex;
    flex-direction: column;
}
.lightbox[hidden] { display: none; }

.lb-viewport {
    flex: 1;
    position: relative;
    overflow: hidden;
    touch-action: none; /* gestures are handled in site.js */
    cursor: zoom-in;
}
.lb-viewport.zoomed { cursor: grab; }
.lb-viewport.dragging { cursor: grabbing; }
.lb-img {
    position: absolute;
    left: 50%; top: 50%;
    max-width: 94%;
    max-height: 100%;
    /* position/zoom are applied via transform in site.js */
    transform: translate(-50%, -50%);
    user-select: none;
    -webkit-user-drag: none;
    /* Two stacked layers crossfade on photo changes (site.js swaps
       which layer is in front). Opacity only — the transform stays
       transition-free so zoom/pan/pinch track the pointer exactly. */
    transition: opacity .3s ease;
}
/* The one moment a transform transition exists: a framed drag gliding
   back to centre. site.js adds .snapping only for that glide and
   removes it the moment any live gesture starts. */
.lb-viewport.snapping .lb-img { transition: transform .26s ease, opacity .3s ease; }
.lb-viewport.noanim .lb-img { transition: none; }

/* Video embed shown in the lightbox for video items (data-embed figures) */
.lb-video {
    position: absolute;
    z-index: 3;   /* above both crossfade photo layers */
    left: 50%; top: 50%;
    transform: translate(-50%, -50%);
    width: min(94%, 1100px);
    aspect-ratio: 16 / 9;
    max-height: 92%;
    border: 0;
    background: #000;
}
.lb-video[hidden] { display: none; }

/* Play badge on video posters in the grid */
.ph-play {
    position: absolute;
    left: 50%; top: 50%;
    transform: translate(-50%, -50%);
    width: 54px; height: 54px;
    border-radius: 50%;
    background: rgba(0, 0, 0, .55);
    color: #fff;
    font-size: 20px;
    line-height: 54px;
    text-align: center;
    text-indent: 3px; /* optical centre for the triangle */
    pointer-events: none;
}

.lb-close, .lb-prev, .lb-next {
    position: absolute;
    z-index: 3;
    border: 0;
    background: transparent;
    color: #666;
    cursor: pointer;
    line-height: 1;
}
.lb-close { top: 6px; left: 10px; font-size: 40px; padding: 10px 14px; }
.lb-prev, .lb-next {
    top: 50%;
    transform: translateY(-50%);
    font-size: 54px;
    padding: 26px 16px;
}
.lb-prev { left: 2px; }
.lb-next { right: 2px; }
.lb-close:hover, .lb-prev:hover, .lb-next:hover { color: #111; }

.lb-share { position: absolute; top: 16px; right: 14px; z-index: 3; display: flex; gap: 6px; }
.lb-sh {
    width: 34px; height: 34px;
    border: 1px solid #ccc;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    color: #777;
    background: rgba(255,255,255,.7);
}
.lb-sh:hover { color: #111; border-color: #999; }

.lb-caption {
    margin: 0;
    padding: 10px 60px 2px;
    text-align: center;
    color: #666;
    font-size: 13px;
    letter-spacing: .2em;
    text-transform: uppercase;
}
.lb-count { color: #aaa; letter-spacing: .1em; }
.lb-hint { margin: 0; padding: 2px 20px 12px; text-align: center; font-size: 11.5px; color: #bbb; }
