/* =============================================================================
   BEFORE THE VOWS PHOTOGRAPHY — MAIN STYLESHEET
   -----------------------------------------------------------------------------
   This is a single, self-contained stylesheet — no external fonts, icon
   libraries, or CSS frameworks. The two typefaces below are self-hosted:
   the actual font files live in assets/fonts/ and are served from your own
   domain (see @font-face rules in section 1b) — nothing is ever fetched
   from Google or any other outside company when a visitor loads your site.

   TABLE OF CONTENTS
   1. CSS Variables (brand colours, spacing)
   1b. Self-hosted fonts (@font-face)
   2. Reset & base typography
   3. Layout helpers
   4. Buttons
   5. Header & navigation
   6. Hero section
   7. Generic sections / cards
   8. Pricing page
   9. Portfolio page + lightbox
   10. Blog
   11. Contact form
   12. Footer
   13. Utilities & accessibility
   14. Responsive breakpoints
   15. Client & Owner Portal (login, dashboard, galleries, contracts)
   ========================================================================== */

/* 1. CSS VARIABLES ---------------------------------------------------------- */
:root {
  /* Ink — the deep warm black from your logo, used for dark sections,
     primary buttons, and body text. */
  --color-ink: #15120F;
  --color-ink-soft: #221C16;

  /* Ivory — clean, warm light backgrounds (not the yellow-cream of before). */
  --color-bg: #FBF9F5;
  --color-bg-alt: #F2ECE1;
  --color-surface: #FFFFFF;

  /* Text */
  --color-text: #221C16;
  --color-text-muted: #6E6255;
  --color-text-inverse: #F6F1E6;
  --color-text-inverse-muted: #C9BCA6;

  /* Gold — the metallic accent from the "V" in your logo. */
  --color-gold: #A3803D;
  --color-gold-light: #D3B276;
  --color-gold-dark: #7C5F2C;

  /* Kept as aliases so existing rules referencing "primary" still make
     sense semantically — primary now maps to ink (buttons, links) rather
     than the old brown. */
  --color-primary: var(--color-ink);
  --color-primary-dark: #000000;
  --color-accent: var(--color-gold);

  --color-border: #E6DDCC;
  --color-success-bg: #EAF4EC;
  --color-success-text: #2E5B36;
  --color-error-bg: #FBEAEA;
  --color-error-text: #8A2E2E;

  --font-heading: 'Playfair Display', Georgia, 'Times New Roman', Times, serif;
  --font-body: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

  --max-width: 1180px;
  --radius: 3px;
  --radius-lg: 4px;
  --shadow-sm: 0 1px 2px rgba(21, 18, 15, 0.06);
  --shadow-md: 0 18px 40px rgba(21, 18, 15, 0.12);
  --shadow-lg: 0 30px 70px rgba(21, 18, 15, 0.22);
  --transition: 200ms ease;
}

/* 1b. SELF-HOSTED FONTS ------------------------------------------------------
   Playfair Display: elegant, high-contrast editorial serif — used for all
   headings. Outfit: clean modern sans — used for body copy and UI labels.
   Both are open-license (SIL Open Font License) and the actual font files
   ship in assets/fonts/ — see LICENSE-*.txt there. font-display: swap means
   visitors see readable fallback text immediately, then the real typeface
   swaps in the moment it's downloaded — no invisible-text delay.        */
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/playfair-display-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/assets/fonts/playfair-display-500.woff2') format('woff2');
}
@font-face {
  font-family: 'Playfair Display';
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url('/assets/fonts/playfair-display-500-italic.woff2') format('woff2');
}
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/assets/fonts/playfair-display-600.woff2') format('woff2');
}
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/assets/fonts/playfair-display-700.woff2') format('woff2');
}
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/outfit-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/assets/fonts/outfit-500.woff2') format('woff2');
}
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/assets/fonts/outfit-600.woff2') format('woff2');
}
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/assets/fonts/outfit-700.woff2') format('woff2');
}

/* 2. RESET & BASE TYPOGRAPHY ------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.7;
  font-size: 16.5px;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--color-ink); text-decoration: none; }
a:hover { color: var(--color-gold-dark); text-decoration: underline; }

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--color-text);
  line-height: 1.15;
  margin: 0 0 0.5em;
  font-weight: 600;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1.1em; }
ul, ol { padding-left: 1.2em; }

::selection { background: var(--color-gold); color: #fff; }

/* A recurring "eyebrow" label style — small caps with wide tracking and a
   thin gold rule, echoing the dash-flanked tagline in your logo mark. */
.hero__eyebrow,
.post-card__meta,
.section__eyebrow {
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--color-gold);
}

/* 3. LAYOUT ------------------------------------------------------------------ */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}
.section { padding: 96px 0; }
.section--alt { background: var(--color-bg-alt); }
.section__intro { max-width: 680px; margin: 0 auto 48px; text-align: center; }
.section__intro p { color: var(--color-text-muted); font-size: 1.05rem; }
.text-center { text-align: center; }

/* 4. BUTTONS ------------------------------------------------------------------ */
.btn {
  display: inline-block;
  padding: 15px 34px;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition), transform var(--transition);
  font-size: 0.84rem;
}
.btn--primary {
  background: var(--color-ink);
  color: var(--color-text-inverse);
}
.btn--primary:hover { background: var(--color-gold); color: var(--color-ink); text-decoration: none; }
.btn--outline {
  background: transparent;
  color: var(--color-ink);
  border-color: var(--color-ink);
}
.btn--outline:hover { background: var(--color-ink); color: var(--color-text-inverse); text-decoration: none; }
.btn--nav { padding: 11px 26px; }
.btn--block { display: block; width: 100%; text-align: center; }

/* 5. HEADER & NAVIGATION ------------------------------------------------------ */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--color-ink);
  color: var(--color-text-inverse);
  padding: 10px 16px;
  z-index: 1000;
}
.skip-link:focus { left: 0; }

.site-header {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 100;
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
}
.site-logo img { height: 46px; width: auto; border-radius: 3px; }

.primary-nav ul {
  list-style: none;
  display: flex;
  gap: 30px;
  margin: 0;
  padding: 0;
}
.primary-nav {
  display: flex;
  align-items: center;
  gap: 30px;
}
/* :not(.btn) is deliberate: without it, this rule's higher specificity
   (a class plus an element type) would silently override the text colour
   set by .btn--primary/.btn--outline on the "Book Your Session" button
   that also lives inside this nav, making its label unreadable. */
.primary-nav a:not(.btn) {
  color: var(--color-text);
  font-weight: 500;
  font-size: 0.94rem;
  padding-bottom: 4px;
  border-bottom: 1px solid transparent;
}
.primary-nav a.is-active { color: var(--color-gold-dark); border-bottom-color: var(--color-gold); }
.primary-nav a:not(.btn):hover { color: var(--color-gold-dark); text-decoration: none; border-bottom-color: var(--color-gold); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
}
.nav-toggle__bar {
  width: 24px;
  height: 2px;
  background: var(--color-text);
  display: block;
}

/* 6. HERO ---------------------------------------------------------------------- */
.hero {
  background: radial-gradient(120% 140% at 50% -10%, #262019 0%, var(--color-ink) 55%, #0D0B09 100%);
  padding: 120px 0 96px;
  text-align: center;
  position: relative;
}
.hero::before {
  /* Thin gold rule above the eyebrow, echoing the dash-lines in the logo */
  content: "";
  display: block;
  width: 64px;
  height: 1px;
  background: var(--color-gold);
  margin: 0 auto 22px;
  position: relative;
  z-index: 2;
}
/* When the owner has uploaded a header photo (Owner Tools > Content & SEO
   > Homepage), it replaces the plain dark gradient as a full-bleed cover
   image. A dark gradient overlay sits on top of the photo (not replacing
   .hero::before, which still draws the gold rule) so the heading and
   buttons stay easy to read over any photo. */
.hero--photo {
  background-color: var(--color-ink);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.hero--photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(13, 11, 9, 0.72) 0%, rgba(13, 11, 9, 0.6) 45%, rgba(13, 11, 9, 0.82) 100%);
  z-index: 1;
}
.hero--photo .container {
  position: relative;
  z-index: 2;
}
.hero__eyebrow { color: var(--color-gold-light); }
.hero h1 {
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
  margin-top: 0.5em;
  color: var(--color-text-inverse);
}
.hero__lede {
  max-width: 620px;
  margin: 18px auto 38px;
  color: var(--color-text-inverse-muted);
  font-size: 1.12rem;
}
.hero__actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.hero .btn--primary { background: var(--color-gold); color: var(--color-ink); }
.hero .btn--primary:hover { background: var(--color-gold-light); }
.hero .btn--outline { color: var(--color-text-inverse); border-color: rgba(246, 241, 230, 0.5); }
.hero .btn--outline:hover { background: var(--color-text-inverse); color: var(--color-ink); }

.locations-strip {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 40px;
}
.locations-strip span {
  background: rgba(246, 241, 230, 0.06);
  border: 1px solid rgba(246, 241, 230, 0.22);
  padding: 9px 20px;
  border-radius: 999px;
  font-size: 0.82rem;
  color: var(--color-text-inverse-muted);
  letter-spacing: 0.02em;
}

/* 7. GENERIC SECTIONS / CARDS -------------------------------------------------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-top: 3px solid var(--color-gold);
  border-radius: var(--radius);
  padding: 36px 30px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), transform var(--transition);
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.card h3 { margin-bottom: 0.5em; }
.card p { color: var(--color-text-muted); margin-bottom: 0; }

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.split img { border-radius: var(--radius); box-shadow: var(--shadow-md); }

.cta-band {
  background: var(--color-ink);
  color: var(--color-text-inverse);
  text-align: center;
  padding: 80px 0;
}
.cta-band h2 { color: var(--color-text-inverse); }
.cta-band p { color: var(--color-text-inverse-muted); max-width: 560px; margin: 0 auto 30px; }
.cta-band .btn--primary { background: var(--color-gold); color: var(--color-ink); }
.cta-band .btn--primary:hover { background: var(--color-gold-light); }
.cta-band .btn--outline { color: var(--color-text-inverse); border-color: rgba(246, 241, 230, 0.5); }
.cta-band .btn--outline:hover { background: var(--color-text-inverse); color: var(--color-ink); }

/* 8. PRICING --------------------------------------------------------------- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  align-items: stretch;
}
.price-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  position: relative;
}
.price-card--featured {
  background: var(--color-ink);
  border-color: var(--color-ink);
  box-shadow: var(--shadow-lg);
  transform: translateY(-10px);
  color: var(--color-text-inverse);
}
.price-card--featured h3,
.price-card--featured .price-card__price { color: var(--color-text-inverse); }
.price-card--featured .price-card__tagline,
.price-card--featured .price-card__meta { color: var(--color-text-inverse-muted); }
.price-card--featured .price-card__features li { border-bottom-color: rgba(246, 241, 230, 0.14); }
.price-card--featured .btn { width: 100%; text-align: center; }
.price-card__badge {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-gold);
  color: var(--color-ink);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
  padding: 7px 18px;
  border-radius: 999px;
}
.price-card__tagline { color: var(--color-text-muted); margin-bottom: 20px; }
.price-card__price {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 2.5rem;
  margin-bottom: 4px;
  color: var(--color-text);
}
.price-card__meta { color: var(--color-text-muted); font-size: 0.9rem; margin-bottom: 26px; }
.price-card__features {
  list-style: none;
  padding: 0;
  margin: 0 0 30px;
  flex-grow: 1;
}
.price-card__features li {
  padding: 9px 0;
  border-bottom: 1px solid var(--color-border);
  padding-left: 28px;
  position: relative;
}
.price-card__features li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  color: var(--color-gold);
  font-weight: bold;
}
.pricing-note {
  max-width: 700px;
  margin: 52px auto 0;
  text-align: center;
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

/* 9. PORTFOLIO --------------------------------------------------------------- */
.filter-bar {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 44px;
}
.filter-bar a {
  padding: 9px 20px;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  color: var(--color-text);
  font-size: 0.88rem;
  font-weight: 500;
}
.filter-bar a.is-active,
.filter-bar a:hover {
  background: var(--color-ink);
  border-color: var(--color-ink);
  color: var(--color-text-inverse);
  text-decoration: none;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.gallery-grid figure {
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--color-bg-alt);
  cursor: zoom-in;
}
.gallery-grid img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  transition: transform 500ms ease;
}
.gallery-grid a:hover img { transform: scale(1.05); }

.empty-state {
  text-align: center;
  padding: 60px 20px;
  border: 1px dashed var(--color-border);
  border-radius: var(--radius);
  color: var(--color-text-muted);
}

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(13, 11, 9, 0.95);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 24px;
}
.lightbox.is-open { display: flex; }
.lightbox img { max-height: 88vh; max-width: 92vw; border-radius: 4px; }
.lightbox__close {
  position: absolute;
  top: 20px;
  right: 24px;
  background: none;
  border: none;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
}
.lightbox__caption {
  position: absolute;
  bottom: 24px;
  left: 0;
  right: 0;
  text-align: center;
  color: #fff;
  font-size: 0.9rem;
}

/* 10. BLOG --------------------------------------------------------------------- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.post-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow var(--transition), transform var(--transition);
}
.post-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.post-card__image { aspect-ratio: 16/10; object-fit: cover; background: var(--color-bg-alt); }
.post-card__body { padding: 24px 26px 28px; display: flex; flex-direction: column; flex-grow: 1; }
.post-card__meta { margin-bottom: 10px; }
.post-card__body h3 { margin-bottom: 10px; font-size: 1.25rem; }
.post-card__body h3 a { color: var(--color-text); }
.post-card__excerpt { color: var(--color-text-muted); flex-grow: 1; }
.post-card__readmore { margin-top: 12px; font-weight: 600; color: var(--color-gold-dark); }

.article {
  max-width: 760px;
  margin: 0 auto;
}
.article__meta { color: var(--color-text-muted); font-size: 0.9rem; margin-bottom: 24px; }
.article__hero-image { border-radius: var(--radius); margin-bottom: 32px; }
.article__body h2 { margin-top: 1.5em; }
.article__body p { color: var(--color-text); }
.article__body a { text-decoration: underline; }
.article__cta {
  margin-top: 48px;
  padding: 36px;
  background: var(--color-ink);
  color: var(--color-text-inverse);
  border-radius: var(--radius);
  text-align: center;
}
.article__cta h2 { color: var(--color-text-inverse); }
.article__cta p { color: var(--color-text-inverse-muted); }

/* 11. CONTACT FORM --------------------------------------------------------------- */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 56px;
  align-items: start;
}
.contact-info__item { margin-bottom: 26px; }
.contact-info__item h3 { margin-bottom: 6px; font-size: 0.85rem; color: var(--color-gold-dark); text-transform: uppercase; letter-spacing: 0.1em; font-family: var(--font-body); font-weight: 600; }

.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  font-size: 0.92rem;
}
.form-group .required { color: var(--color-gold-dark); }
.form-control {
  width: 100%;
  padding: 13px 15px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 1rem;
  background: var(--color-surface);
  color: var(--color-text);
}
.form-control:focus {
  outline: 2px solid var(--color-gold);
  outline-offset: 1px;
  border-color: var(--color-gold);
}
textarea.form-control { resize: vertical; min-height: 140px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

/* Honeypot field: hidden from real visitors, still present for bots to fill in */
.hp-field {
  position: absolute;
  left: -9999px;
  top: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.alert {
  padding: 16px 20px;
  border-radius: var(--radius);
  margin-bottom: 24px;
  font-size: 0.95rem;
}
.alert--success { background: var(--color-success-bg); color: var(--color-success-text); }
.alert--error { background: var(--color-error-bg); color: var(--color-error-text); }
.field-error { color: var(--color-error-text); font-size: 0.85rem; margin-top: 4px; }

/* 12. FOOTER ----------------------------------------------------------------------- */
.site-footer {
  background: var(--color-ink);
  color: var(--color-text-inverse-muted);
  padding-top: 64px;
  border-top: 3px solid var(--color-gold);
}
.site-footer h2 {
  color: var(--color-text-inverse);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-family: var(--font-body);
  font-weight: 600;
  margin-bottom: 18px;
}
.site-footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 44px;
}
.site-footer__logo { margin-bottom: 16px; height: 108px; width: auto; border-radius: 6px; }
.site-footer p { color: var(--color-text-inverse-muted); font-size: 0.92rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 11px; }
.site-footer a { color: var(--color-text-inverse-muted); }
.site-footer a:hover { color: var(--color-gold-light); }
.site-footer__social { display: flex; gap: 14px; margin-top: 10px; }
.site-footer__bottom {
  border-top: 1px solid rgba(246, 241, 230, 0.1);
  padding: 22px 0;
  font-size: 0.82rem;
  color: #8C8072;
}

/* 13. UTILITIES & ACCESSIBILITY ------------------------------------------------- */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}
:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: 2px;
}

/* 14. RESPONSIVE ------------------------------------------------------------------- */
@media (max-width: 900px) {
  .card-grid, .pricing-grid, .gallery-grid, .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; gap: 32px; }
  .contact-layout { grid-template-columns: 1fr; }
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
  .price-card--featured { transform: none; }
}

@media (max-width: 680px) {
  .nav-toggle { display: flex; }
  .primary-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    flex-direction: column;
    align-items: stretch;
    padding: 16px 24px 24px;
    display: none;
    gap: 16px;
  }
  .primary-nav.is-open { display: flex; }
  .primary-nav ul { flex-direction: column; gap: 14px; }
  .card-grid, .pricing-grid, .gallery-grid, .blog-grid { grid-template-columns: 1fr; }
  .site-footer__grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .hero { padding: 64px 0 56px; }
  .section { padding: 56px 0; }
}

/* 15. CLIENT & OWNER PORTAL --------------------------------------------------- */
.nav-link--client {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  font-weight: 500;
}

.portal-body { background: var(--color-bg); min-height: 100vh; }
.portal-header {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
}
.portal-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
}
.portal-header .site-logo { display: flex; align-items: center; gap: 12px; }
.portal-header .site-logo img { height: 38px; width: auto; border-radius: 3px; }
.portal-badge {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: var(--color-bg-alt);
  color: var(--color-gold-dark);
  padding: 4px 10px;
  border-radius: 999px;
  font-weight: 600;
}
.portal-nav { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 22px; row-gap: 10px; }
.portal-nav a { color: var(--color-text); font-weight: 500; font-size: 0.95rem; }
.portal-nav a:hover { color: var(--color-gold-dark); }
.portal-nav__greeting { color: var(--color-text-muted); font-size: 0.9rem; }

.portal-main { padding: 48px 0 80px; }
.portal-main--centered { display: flex; align-items: center; justify-content: center; min-height: 70vh; padding: 40px 0; }
.portal-lede { color: var(--color-text-muted); margin-bottom: 28px; }
.portal-date { color: var(--color-text-muted); font-size: 0.85rem; }

.auth-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-top: 3px solid var(--color-gold);
  border-radius: var(--radius);
  padding: 44px 40px;
  max-width: 420px;
  width: 100%;
  box-shadow: var(--shadow-sm);
}
.auth-card h1 { font-size: 1.7rem; margin-bottom: 8px; }
.auth-card__lede { color: var(--color-text-muted); margin-bottom: 26px; }
.auth-card__footer { margin-top: 20px; text-align: center; font-size: 0.9rem; }

.alert--info { background: #EEF3F7; color: #2C4A63; }

.link-arrow { display: inline-block; margin-top: 10px; font-weight: 600; color: var(--color-gold-dark); }
.gallery-tile { display: block; text-decoration: none; }
.gallery-tile:hover h3 { color: var(--color-gold-dark); }

.status-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.status-badge--pending, .status-badge--new, .status-badge--sent { background: #F1E9E1; color: #6E4A3B; }
.status-badge--approved, .status-badge--signed, .status-badge--contacted { background: #E3F0E5; color: #2E5B36; }
.status-badge--selected_for_edit, .status-badge--viewed { background: #E9EEF7; color: #2C4A63; }
.status-badge--rejected, .status-badge--archived, .status-badge--spam, .status-badge--cancelled { background: #F3E7E7; color: #7A3737; }
.status-badge--booked, .status-badge--confirmed { background: #E3F0E5; color: #2E5B36; }

.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}
.photo-card {
  margin: 0;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
}
.photo-card img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  cursor: zoom-in;
}
.photo-card figcaption { padding: 14px 16px 18px; }
.photo-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.photo-card__actions form { display: contents; }
.btn-icon {
  font-size: 0.8rem;
  padding: 7px 12px;
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-text);
  cursor: pointer;
  text-decoration: none;
}
.btn-icon:hover { border-color: var(--color-gold); color: var(--color-gold-dark); text-decoration: none; }
.btn-icon--approve { border-color: #2E5B36; color: #2E5B36; }
.btn-icon--edit { border-color: #2C4A63; color: #2C4A63; }
.btn-icon--download { background: var(--color-ink); color: var(--color-text-inverse); border-color: var(--color-ink); }
.btn-icon--download:hover { background: var(--color-gold); color: var(--color-ink); border-color: var(--color-gold); }

.contract-viewer {
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  margin: 24px 0 12px;
  height: 70vh;
  background: var(--color-bg-alt);
}
.contract-viewer iframe { width: 100%; height: 100%; border: 0; }
.contract-accept-box {
  margin-top: 32px;
  padding: 28px;
  background: var(--color-bg-alt);
  border-radius: var(--radius);
}
.form-group--checkbox label { display: flex; align-items: flex-start; gap: 10px; font-weight: 500; }
.form-group--checkbox input { margin-top: 4px; }

.stat-row { display: flex; gap: 20px; flex-wrap: wrap; margin-bottom: 32px; }
.stat-tile {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 20px 28px;
  min-width: 160px;
}
.stat-tile__number { display: block; font-family: var(--font-heading); font-weight: 600; font-size: 2.1rem; color: var(--color-text); }
.stat-tile__label { color: var(--color-text-muted); font-size: 0.85rem; }

.admin-panel {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 28px 30px;
  margin-bottom: 32px;
}
.admin-panel h2 { margin-bottom: 16px; font-size: 1.25rem; }
.inline-form .form-row:last-of-type,
.inline-form .form-group:last-of-type { margin-bottom: 20px; }

.table-wrap { overflow-x: auto; margin-bottom: 16px; }
.admin-table { width: 100%; border-collapse: collapse; background: var(--color-surface); }
.admin-table th, .admin-table td {
  text-align: left;
  padding: 12px 16px;
  border-bottom: 1px solid var(--color-border);
  font-size: 0.92rem;
}
.admin-table th { background: var(--color-bg-alt); font-weight: 600; }

@media (max-width: 680px) {
  .portal-header__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding: 14px 0;
  }
  .portal-nav {
    width: 100%;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 16px;
    row-gap: 10px;
  }
  .portal-nav__greeting {
    width: 100%;
    order: -1;
  }
  .stat-row { flex-direction: column; }
  .stat-tile { min-width: 0; }
  .contract-viewer { height: 50vh; }

  .table-wrap {
    position: relative;
    padding-top: 22px;
  }
  .table-wrap::before {
    content: "Swipe to see more \2192";
    position: absolute;
    top: 0;
    right: 0;
    font-size: 0.72rem;
    font-style: italic;
    color: var(--color-text-muted);
  }
}

/* 16. OWNER TOOLS — PHASE 3 CMS -------------------------------------------- */
.field-hint { font-weight: 400; color: var(--color-text-muted); font-size: 0.82rem; }
.char-count { font-variant-numeric: tabular-nums; }
.char-count--over { color: #7A3737; font-weight: 700; }

.admin-panel + .admin-panel { margin-top: 0; }
h2 + .portal-lede { margin-top: -8px; }

/* Rich text editor (blog post body) */
.rich-editor-host { border: 1px solid var(--color-border); border-radius: var(--radius); overflow: hidden; }
.rich-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 8px;
  background: var(--color-bg-alt);
  border-bottom: 1px solid var(--color-border);
}
.rich-toolbar__btn {
  font-size: 0.8rem;
  padding: 6px 12px;
  border-radius: 3px;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-text);
  cursor: pointer;
}
.rich-toolbar__btn:hover { border-color: var(--color-gold); color: var(--color-gold-dark); }
.rich-editor {
  min-height: 320px;
  padding: 18px 20px;
  background: var(--color-surface);
  font-size: 1rem;
  line-height: 1.7;
}
.rich-editor:focus { outline: none; }
.rich-editor h2 { font-size: 1.3rem; margin: 20px 0 10px; }
.rich-editor h3 { font-size: 1.1rem; margin: 18px 0 8px; }
.rich-editor p { margin: 0 0 14px; }
.rich-editor ul { margin: 0 0 14px 22px; }
.rich-editor a { color: var(--color-gold-dark); }

/* Admin image manager */
.admin-image-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 18px;
}
.admin-image-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
}
.admin-image-card img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; display: block; }
.admin-image-card__body { padding: 10px 12px 14px; }
.admin-image-card__meta { font-size: 0.78rem; color: var(--color-text-muted); margin-bottom: 8px; }
.admin-image-card__actions { display: flex; flex-wrap: wrap; gap: 6px; }

/* Filter pills (bookings inbox, portfolio admin) */
.pill-filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.pill-filter a {
  font-size: 0.82rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--color-border);
  color: var(--color-text-muted);
  background: var(--color-surface);
}
.pill-filter a:hover { border-color: var(--color-gold); color: var(--color-gold-dark); text-decoration: none; }
.pill-filter a.is-active { background: var(--color-ink); border-color: var(--color-ink); color: var(--color-text-inverse); }

.admin-table td form { display: inline-block; }
.admin-table select.status-select {
  font-size: 0.85rem;
  padding: 4px 8px;
  border-radius: 3px;
  border: 1px solid var(--color-border);
}
.reorder-btns { display: inline-flex; gap: 4px; }
.reorder-btns button { background: none; border: 1px solid var(--color-border); border-radius: 3px; width: 26px; height: 26px; cursor: pointer; color: var(--color-text); }
.reorder-btns button:hover { border-color: var(--color-gold); color: var(--color-gold-dark); }

.featured-star { color: var(--color-gold); }

@media (max-width: 680px) {
  .rich-toolbar__btn { padding: 6px 10px; font-size: 0.75rem; }
  .admin-image-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
}
