/* ==========================================================================
   WHITETAIL LIGHTING — STYLES
   Organized by section. Custom properties first, then base, then components.
   ========================================================================== */

/* ---------- Custom properties ---------- */
:root {
  /* Colors */
  --color-bg: #FAF8F4;
  --color-bg-alt: #F3EFE8;
  --color-bg-card: #FFFFFF;
  --color-border: #E4DED4;
  --color-ink: #0E0D0C;
  --color-text-secondary: #3A342E;
  --color-muted: #6E685F;
  --color-step-number: #A39A8C;
  --color-amber: #E8902E;
  --color-input-border: #CFC7BA;

  /* Fonts */
  --font-heading: 'Cormorant Garamond', serif;
  --font-body: 'Jost', sans-serif;

  /* Layout */
  --content-max: 1200px;
  --side-padding: 24px;
  --header-height: 234px;

  /* Shadows */
  --shadow-pill: 0 2px 4px rgba(14, 13, 12, 0.18), 0 8px 20px rgba(14, 13, 12, 0.16);
  --shadow-pill-hover: 0 4px 8px rgba(14, 13, 12, 0.22), 0 12px 28px rgba(14, 13, 12, 0.2);
}

/* ---------- Reset / base ---------- */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text-secondary);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--color-ink);
  margin: 0;
}

p {
  margin: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

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

button {
  font-family: var(--font-body);
  cursor: pointer;
}

/* Anchor scroll offset for sticky header */
section[id] {
  scroll-margin-top: var(--header-height);
}

.container {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 var(--side-padding);
}

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

/* ---------- Pill button (shared) ---------- */
.btn-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  border-radius: 999px;
  border: none;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 0.02em;
  background: var(--color-ink);
  color: var(--color-bg);
  box-shadow: var(--shadow-pill);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-pill:hover,
.btn-pill:focus {
  transform: translateY(-1px);
  box-shadow: var(--shadow-pill-hover);
}

.btn-pill--light {
  background: var(--color-bg);
  color: var(--color-ink);
}

/* Pill buttons that are <a> links: pin text color across all link states so
   nothing (including .site-nav a's color rules) can flip it on hover/focus. */
a.btn-pill:link,
a.btn-pill:visited,
a.btn-pill:hover,
a.btn-pill:focus {
  color: var(--color-bg);
}

a.btn-pill.btn-pill--light:link,
a.btn-pill.btn-pill--light:visited,
a.btn-pill.btn-pill--light:hover,
a.btn-pill.btn-pill--light:focus {
  color: var(--color-ink);
}

/* Header CTA: explicit white-on-ink at all times, never amber. */
.site-nav a.header-cta:link,
.site-nav a.header-cta:visited,
.site-nav a.header-cta:hover,
.site-nav a.header-cta:focus {
  color: #FFFFFF;
  background: #0E0D0C;
}

/* ==========================================================================
   HEADER
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-height);
  padding-top: 22px;
  padding-bottom: 22px;
  gap: 16px;
}

.site-header__brand {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.site-header__mark {
  width: 220px;
  height: auto;
}

.site-header__wordmark {
  display: block;
  margin-top: 10px;
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 24px;
  letter-spacing: 0.34em;
  /* Letter-spacing trails the last glyph; match it on the left so the word re-centers optically. */
  padding-left: 0.34em;
  color: #0E0D0C;
  white-space: nowrap;
}

.site-header__tagline {
  display: block;
  margin-top: 6px;
  font-size: 15px;
  color: var(--color-text-secondary);
  letter-spacing: 0.02em;
  white-space: nowrap;
  text-align: center;
}

.site-header__right {
  display: flex;
  align-items: center;
  gap: 32px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 36px;
}

.site-nav a {
  font-size: 18px;
  font-weight: 400;
  color: var(--color-ink);
  position: relative;
}

.site-nav a:not(.header-cta):hover {
  color: var(--color-amber);
}

.header-cta {
  padding: 16px 32px;
  font-size: 17px;
  font-weight: 500;
}

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  padding: 0;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-ink);
  margin: 0 auto;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.hamburger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.hamburger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  position: relative;
  height: 640px;
  min-height: 480px;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.hero__bg--lit {
  background-image: url('../assets/hero/hero-lit.webp'),
    radial-gradient(circle at 25% 30%, rgba(232, 144, 46, 0.35), transparent 55%),
    radial-gradient(circle at 75% 70%, rgba(232, 144, 46, 0.22), transparent 50%),
    linear-gradient(135deg, #1b2230 0%, #2a2520 55%, #332a22 100%);
}

.hero__bg--night {
  background-image: url('../assets/hero/hero-night.webp'),
    radial-gradient(circle at 25% 30%, rgba(232, 144, 46, 0.5), transparent 50%),
    radial-gradient(circle at 75% 70%, rgba(232, 144, 46, 0.3), transparent 45%),
    linear-gradient(135deg, #0b0e14 0%, #15110d 55%, #1c150e 100%);
  opacity: 0;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 70% at center, rgba(10, 9, 8, 0.82) 0%, rgba(10, 9, 8, 0.55) 45%, rgba(10, 9, 8, 0.2) 70%, rgba(10, 9, 8, 0) 100%);
}

.hero__inner {
  position: relative;
  z-index: 2;
  width: 100%;
}

.hero__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero__headline {
  font-size: 64px;
  line-height: 1.08;
  color: var(--color-bg);
  max-width: 900px;
  margin: 0 auto 20px;
  text-align: center;
}

.hero__services {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 19px;
  letter-spacing: 0.08em;
  color: rgba(250, 248, 244, 0.85);
  margin: 0 auto 36px;
  text-align: center;
}

.hero__dot {
  display: inline-block;
  margin: 0 0.6em;
  color: rgba(250, 248, 244, 0.6);
}

/* ==========================================================================
   YOUR EXPERIENCE
   ========================================================================== */
.experience {
  background: var(--color-bg);
  padding: 96px 0;
}

.section-heading {
  font-size: 40px;
  margin-bottom: 56px;
}

.experience__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.experience__item {
  border-top: 1px solid var(--color-border);
  padding-top: 24px;
}

.experience__number {
  font-family: var(--font-heading);
  font-size: 36px;
  font-weight: 600;
  color: var(--color-step-number);
  margin-bottom: 12px;
}

.experience__title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 12px;
  font-family: var(--font-heading);
  color: var(--color-ink);
}

.experience__body {
  font-size: 15px;
  color: var(--color-text-secondary);
  line-height: 1.7;
}

/* ==========================================================================
   GALLERY
   ========================================================================== */
.gallery {
  background: var(--color-bg-alt);
  padding: 96px 0;
}

.gallery__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 40px;
  flex-wrap: wrap;
  gap: 16px;
}

.gallery__header .section-heading {
  margin-bottom: 0;
}

/* Lights toggle */
.lights-toggle {
  display: flex;
  align-items: center;
  gap: 12px;
  background: none;
  border: none;
  padding: 0;
}

.lights-toggle__label {
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--color-muted);
  font-weight: 500;
}

.lights-toggle__track {
  position: relative;
  width: 56px;
  height: 30px;
  border-radius: 999px;
  background: #B9B2A4;
  transition: background 0.25s ease;
  flex-shrink: 0;
}

.lights-toggle[aria-pressed="true"] .lights-toggle__track {
  background: var(--color-amber);
}

.lights-toggle__knob {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
  transition: transform 0.25s ease;
}

.lights-toggle[aria-pressed="true"] .lights-toggle__knob {
  transform: translateX(26px);
}

.lights-toggle__state {
  font-size: 13px;
  font-weight: 500;
  color: var(--color-ink);
  min-width: 28px;
}

/* Editorial mosaic, day photos only. Explicit row bands (no grid-auto-flow:
   dense) — each band's column spans sum to the track count and share one
   row span, so every band ends flush with no auto-placement gaps.
   Base (no media query) = tablet/mobile, <900px: 2 columns. Per-tile
   --col/--row/--pos custom properties (set inline) drive the desktop
   spans; --m-order drives the reordered mobile sequence. */
.gallery__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-auto-rows: 64px;
  gap: 10px;
}

.tile {
  position: relative;
  margin: 0;
  border-radius: 2px;
  overflow: hidden;
  transition: transform 0.6s ease;
  grid-column: span 1;
  grid-row: span 5;
  order: var(--m-order, 0);
}

.tile--full {
  grid-column: span 2;
  grid-row: span 4;
}

@media (min-width: 900px) {
  .gallery__grid {
    grid-template-columns: repeat(12, 1fr);
    grid-auto-rows: 70px;
    gap: 16px;
  }

  .tile,
  .tile--full {
    grid-column: span var(--col, 4);
    grid-row: span var(--row, 6);
    order: 0;
  }

  .tile:hover {
    transform: scale(1.02);
  }
}

.tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--pos, center);
}

/* ==========================================================================
   CONTACT / FORM
   ========================================================================== */
.contact {
  background: var(--color-bg-card);
  padding: 96px 0;
}

.contact__intro {
  margin-bottom: 48px;
}

.contact__intro .section-heading {
  margin-bottom: 12px;
}

.contact__subhead {
  font-size: 17px;
  color: var(--color-muted);
  max-width: 560px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

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

.form-field--full {
  grid-column: 1 / -1;
}

.form-field label {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-ink);
}

.form-field input[type="text"],
.form-field input[type="email"],
.form-field input[type="tel"],
.form-field select,
.form-field textarea {
  height: 48px;
  padding: 0 16px;
  border: 1px solid var(--color-input-border);
  background: var(--color-bg);
  color: var(--color-ink);
  font-family: var(--font-body);
  font-size: 16px;
  border-radius: 4px;
}

.form-field textarea {
  height: auto;
  min-height: 120px;
  padding: 14px 16px;
  resize: vertical;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus,
.form-field input[type="file"]:focus {
  outline: 2px solid var(--color-ink);
  outline-offset: 2px;
}

.fieldset {
  border: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.fieldset legend {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-ink);
  padding: 0;
  margin-bottom: 4px;
}

.radio-row,
.checkbox-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
}

.checkbox-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 24px;
}

.radio-option,
.checkbox-option {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  color: var(--color-text-secondary);
}

.radio-option input,
.checkbox-option input {
  width: 18px;
  height: 18px;
  accent-color: var(--color-ink);
}

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

.file-field.is-visible {
  display: flex;
}

.file-field__note {
  font-size: 13px;
  color: var(--color-muted);
}

.form-footnote {
  font-size: 13px;
  color: var(--color-muted);
}

.form-submit {
  display: flex;
  justify-content: center;
  margin-top: 8px;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  background: var(--color-bg-alt);
  border-top: 1px solid var(--color-border);
  padding: 64px 0 0;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
}

.footer__grid .footer__col:first-child {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.footer__mark {
  width: 150px;
  height: auto;
  margin: 0 auto 10px;
}

.footer__brand-name {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 18px;
  letter-spacing: 0.34em;
  padding-left: 0.34em;
  color: var(--color-ink);
  margin-bottom: 12px;
}

.footer__desc {
  font-size: 14px;
  color: var(--color-muted);
  max-width: 280px;
}

.footer__heading {
  font-size: 13px;
  letter-spacing: 0.1em;
  color: var(--color-muted);
  margin-bottom: 16px;
  font-weight: 500;
}

.footer__links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 15px;
}

.footer__links a:hover {
  color: var(--color-amber);
}

.footer__bottom {
  border-top: 1px solid var(--color-border);
  padding: 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13px;
  color: var(--color-muted);
}

/* ==========================================================================
   THANKS PAGE
   ========================================================================== */
.thanks {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 96px var(--side-padding);
}

.thanks__inner {
  max-width: 520px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}

.thanks__message {
  font-size: 28px;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1024px) {
  :root {
    --header-height: 214px;
  }

  .hero__services {
    font-size: 16px;
  }

  .experience__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer__grid {
    grid-template-columns: 1fr 1fr;
  }

  .site-header__mark {
    width: 190px;
  }

  .site-header .container {
    padding-top: 20px;
    padding-bottom: 20px;
  }
}

@media (max-width: 860px) {
  :root {
    --header-height: 204px;
  }

  .site-nav {
    display: none;
  }

  .hamburger {
    display: flex;
    position: absolute;
    top: 18px;
    right: 16px;
    width: 44px;
    height: 44px;
  }

  .site-header .container {
    position: relative;
    justify-content: center;
    padding-top: 18px;
    padding-bottom: 18px;
  }

  .site-header__right {
    /* nav is hidden and hamburger is positioned absolutely, so this no longer
       needs to take up flow space or push the centered brand off-axis. */
    display: contents;
  }

  .site-header__brand {
    /* Keeps the wordmark from ever reaching the absolutely-positioned
       hamburger in the top-right corner, while staying centered as a whole. */
    padding: 0 56px;
  }

  .site-header__mark {
    width: 160px;
  }

  .site-header__wordmark {
    font-size: 17px;
    letter-spacing: 0.22em;
    padding-left: 0.22em;
  }

  .site-header__tagline {
    font-size: 13px;
    white-space: normal;
    max-width: 260px;
  }

  .site-header.nav-open .site-nav {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
    flex-direction: column;
    align-items: flex-start;
    padding: 20px var(--side-padding) 28px;
    gap: 18px;
  }

  .site-header.nav-open .site-nav a:not(.header-cta) {
    font-size: 20px;
  }

  .hero__headline {
    font-size: 40px;
  }

  .hero__services {
    font-size: 14px;
  }

  .hero {
    height: 560px;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .checkbox-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .experience__grid {
    grid-template-columns: 1fr;
  }

  .gallery__header {
    align-items: flex-start;
  }

  .footer__grid {
    grid-template-columns: 1fr;
  }

  .footer__mark {
    width: 130px;
  }

  .section-heading {
    font-size: 30px;
  }
}
