/*
 * Copyright (c) 2026
 * Filename: site.css
 * Author: Michael Taciroglu
 * Date Created: October 5, 2026
 * Description: All styles for the site. Colours and type are tokens at the top.
 */

/* --paper is the portrait's studio background, sampled from the photo, so the hero
   image has no visible edge. Gold has two strengths: --gold for dark sections and
   --gold-deep for small text on light ones, where --gold fails 4.5:1. */
:root {
    --ink: #0e0f12;
    --ink-2: #16181d;
    --paper: #f7f7f7;
    --white: #ffffff;
    --text: #1b1c20;
    --muted: #5b5f68;
    --on-dark: #eceae6;
    --on-dark-muted: #a6a9b1;
    --gold: #c6a66b;
    --gold-hover: #d6b984;
    --gold-deep: #7d6236;
    --line: #e4e4e4;
    --line-dark: #2a2d35;
    --radius: 14px;
    --header-h: 72px;
    --display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
    --body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + 16px);
    -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}

body {
    margin: 0;
    font-family: var(--body);
    font-size: 1.0625rem;
    line-height: 1.65;
    color: var(--text);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
}

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

/* Classes such as .btn set display, which would otherwise beat the hidden attribute.
   email.js relies on hidden to keep email elements out of view until it has filled them. */
[hidden] {
    display: none !important;
}

a {
    color: inherit;
}

h1,
h2,
h3,
p {
    margin: 0;
}

/* Cormorant defaults to old-style figures, which turn "01" into "oI" and make a phone
   number hard to read; every display-face use switches to lining figures. */
h1,
h2,
.brand-mark,
.points dt,
.steps li::before,
.phone-big {
    font-variant-numeric: lining-nums;
}

h1,
h2 {
    font-family: var(--display);
    font-weight: 600;
    line-height: 1.06;
    letter-spacing: -0.01em;
    text-wrap: balance;
}

h1 {
    font-size: clamp(2.7rem, 2rem + 3.2vw, 4.6rem);
}

h2 {
    font-size: clamp(2.1rem, 1.6rem + 2vw, 3.1rem);
}

h3 {
    font-size: 1.08rem;
    font-weight: 600;
    line-height: 1.35;
}

.wrap {
    width: 100%;
    max-width: 1160px;
    margin-inline: auto;
    padding-inline: 20px;
}

@media (min-width: 700px) {
    .wrap {
        padding-inline: 32px;
    }
}

.skip {
    position: absolute;
    left: 12px;
    top: -60px;
    z-index: 50;
    padding: 10px 16px;
    border-radius: 8px;
    background: var(--ink);
    color: var(--white);
    text-decoration: none;
}

.skip:focus {
    top: 12px;
}

:focus-visible {
    outline: 2px solid var(--gold-deep);
    outline-offset: 3px;
    border-radius: 6px;
}

.section-dark :focus-visible,
.callbar :focus-visible {
    outline-color: var(--gold);
}

.eyebrow {
    margin-bottom: 18px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--gold-deep);
}

.section-dark .eyebrow {
    color: var(--gold);
}

/* Buttons */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 52px;
    padding: 0 26px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: 0.98rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}

.btn svg {
    flex: none;
    width: 18px;
    height: 18px;
}

.btn-sm {
    min-height: 42px;
    padding: 0 20px;
    font-size: 0.9rem;
}

.btn-dark {
    background: var(--ink);
    color: var(--white);
}

.btn-dark:hover {
    background: #2b2e36;
}

.btn-outline {
    border-color: var(--ink);
    color: var(--ink);
}

.btn-outline:hover {
    background: var(--ink);
    color: var(--white);
}

.btn-gold {
    background: var(--gold);
    color: var(--ink);
}

.btn-gold:hover {
    background: var(--gold-hover);
}

.btn-ghost {
    border-color: rgba(255, 255, 255, 0.3);
    color: var(--on-dark);
}

.btn-ghost:hover {
    border-color: var(--gold);
    color: var(--gold);
}

/* Header */

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    background: rgba(247, 247, 247, 0.88);
    -webkit-backdrop-filter: saturate(160%) blur(12px);
    backdrop-filter: saturate(160%) blur(12px);
}

.header-inner {
    display: flex;
    align-items: center;
    gap: 16px;
    min-height: var(--header-h);
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-right: auto;
    text-decoration: none;
}

.brand-mark {
    display: grid;
    place-items: center;
    flex: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--ink);
    color: var(--gold);
    font-family: var(--display);
    font-size: 0.86rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.brand-text {
    display: flex;
    flex-direction: column;
    gap: 3px;
    line-height: 1.1;
}

.brand-name {
    font-family: var(--display);
    font-size: 1.35rem;
    font-weight: 600;
}

.brand-sub {
    font-size: 0.66rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--muted);
}

.nav {
    display: none;
    gap: 28px;
    margin-right: 12px;
}

.nav a {
    font-size: 0.92rem;
    font-weight: 500;
    text-decoration: none;
    color: var(--muted);
    transition: color 0.2s;
}

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

@media (min-width: 900px) {
    .nav {
        display: flex;
    }
}

/* Hero. The portrait sits on the hero's bottom edge so the suit runs into the dark
   section below; only the copy column carries bottom padding. */

.hero {
    overflow: hidden;
    background: var(--paper);
}

.hero-inner {
    display: grid;
    gap: 40px;
    padding-top: 48px;
}

.hero-copy {
    max-width: 600px;
}

.hero h1 {
    margin-bottom: 22px;
}

.lead {
    max-width: 34em;
    font-size: clamp(1.05rem, 1rem + 0.3vw, 1.2rem);
    color: var(--muted);
}

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 32px;
}

.assurances {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 26px;
    margin: 32px 0 0;
    padding: 0;
    list-style: none;
    font-size: 0.9rem;
    font-weight: 500;
}

.assurances li {
    display: flex;
    align-items: center;
    gap: 10px;
}

.assurances li::before {
    content: "";
    flex: none;
    width: 7px;
    height: 7px;
    background: var(--gold);
    transform: rotate(45deg);
}

.hero-portrait {
    align-self: end;
    justify-self: center;
    width: min(82vw, 440px);
}

.hero-portrait img {
    width: 100%;
    height: auto;
}

@media (min-width: 900px) {
    .hero-inner {
        grid-template-columns: 1.15fr 0.85fr;
        align-items: center;
        gap: 48px;
        padding-top: 24px;
    }

    .hero-copy {
        padding-block: 48px 72px;
    }

    .hero-portrait {
        justify-self: end;
        width: 440px;
    }
}

/* Sections */

.section {
    padding-block: clamp(72px, 40px + 6vw, 120px);
}

.section-dark {
    background: var(--ink);
    color: var(--on-dark);
}

.section-paper {
    background: var(--paper);
}

.section-head {
    max-width: 640px;
    margin-bottom: 48px;
}

.section-head > p:not(.eyebrow) {
    margin-top: 16px;
    font-size: 1.05rem;
    color: var(--muted);
}

.section-dark .section-head > p:not(.eyebrow) {
    color: var(--on-dark-muted);
}

.section-head.center {
    margin-inline: auto;
    text-align: center;
}

/* Services */

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
    gap: 16px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.card {
    padding: 28px;
    border: 1px solid var(--line-dark);
    border-radius: var(--radius);
    background: var(--ink-2);
}

.card svg {
    width: 28px;
    height: 28px;
    margin-bottom: 22px;
    color: var(--gold);
}

.card h3 {
    margin-bottom: 8px;
    color: var(--white);
}

.card p {
    font-size: 0.97rem;
    color: var(--on-dark-muted);
}

/* Why book direct */

.split {
    display: grid;
    gap: 8px;
}

.points {
    margin: 0;
}

.points > div {
    display: grid;
    gap: 6px;
    padding: 26px 0;
    border-top: 1px solid var(--line);
}

.points > div:last-child {
    border-bottom: 1px solid var(--line);
}

.points dt {
    font-family: var(--display);
    font-size: 1.55rem;
    font-weight: 600;
    line-height: 1.2;
}

.points dd {
    margin: 0;
    color: var(--muted);
}

@media (min-width: 600px) {
    .points > div {
        grid-template-columns: 230px 1fr;
        gap: 24px;
        align-items: baseline;
    }
}

@media (min-width: 900px) {
    .split {
        grid-template-columns: 0.9fr 1.1fr;
        gap: 80px;
        align-items: start;
    }

    .split .section-head {
        position: sticky;
        top: calc(var(--header-h) + 40px);
        margin-bottom: 0;
    }
}

/* How it works */

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
    gap: 16px;
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: step;
}

.steps li {
    padding: 32px 28px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--white);
    counter-increment: step;
}

.steps li::before {
    content: counter(step, decimal-leading-zero);
    display: block;
    margin-bottom: 18px;
    font-family: var(--display);
    font-size: 2.6rem;
    font-weight: 600;
    line-height: 1;
    color: var(--gold-deep);
}

.steps h3 {
    margin-bottom: 8px;
}

.steps p {
    font-size: 0.97rem;
    color: var(--muted);
}

/* Book */

.book-inner {
    display: grid;
    gap: 48px;
}

.book-note {
    max-width: 32em;
    margin-top: 16px;
    color: var(--on-dark-muted);
}

.phone-big {
    display: inline-block;
    margin-top: 28px;
    font-family: var(--display);
    font-size: clamp(2.3rem, 1.6rem + 3vw, 3.7rem);
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: 0.01em;
    text-decoration: none;
    color: var(--white);
    transition: color 0.2s;
}

.phone-big:hover {
    color: var(--gold);
}

.facts {
    margin: 0;
    padding: 6px 28px;
    border: 1px solid var(--line-dark);
    border-radius: var(--radius);
    background: var(--ink-2);
}

.facts > div {
    padding: 18px 0;
    border-bottom: 1px solid var(--line-dark);
}

.facts > div:last-child {
    border-bottom: 0;
}

.facts dt {
    margin-bottom: 4px;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--gold);
}

.facts dd {
    margin: 0;
    overflow-wrap: anywhere;
}

.facts a {
    text-decoration: none;
}

.facts a:hover {
    color: var(--gold);
}

@media (min-width: 900px) {
    .book-inner {
        grid-template-columns: 1.2fr 0.8fr;
        align-items: center;
        gap: 80px;
    }
}

/* 404: fill the window so a short page does not end in a white band. The 1px is the
   header's bottom border, which would otherwise add a scrollbar. */

.notfound {
    min-height: calc(100vh - var(--header-h) - 1px);
    min-height: calc(100svh - var(--header-h) - 1px);
}

/* Footer */

.site-footer {
    border-top: 1px solid var(--line-dark);
    background: var(--ink);
    font-size: 0.88rem;
    color: var(--on-dark-muted);
}

.footer-inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 8px 24px;
    padding-block: 28px;
}

.site-footer a {
    text-decoration: none;
}

.site-footer a:hover {
    color: var(--gold);
}

/* Phone-width call bar. The footer gets matching bottom padding so the bar never
   covers it. */

.callbar {
    position: fixed;
    inset: auto 0 0;
    z-index: 30;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 10px 16px;
    border-top: 1px solid var(--line-dark);
    background: rgba(14, 15, 18, 0.94);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.callbar .btn {
    min-height: 48px;
}

/* At phone width the call bar does the header button's job, and the company name needs
   the room. */
@media (max-width: 699px) {
    .site-footer {
        padding-bottom: 72px;
    }

    .header-inner .btn-sm {
        display: none;
    }
}

@media (min-width: 700px) {
    .callbar {
        display: none;
    }
}
