/* ============================================================
   Brook Lane — fixed 1536×1024 canvas, scaled to fit
   ============================================================ */

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

:root {
  --black:       #060606;
  --dark:        #0f0f0f;
  --dark-card:   #141414;
  --dark-elevated: #1a1a1a;
  --gold:        #c9a24a;
  --gold-light:  #dbb55e;
  --gold-glow:   rgba(201, 162, 74, 0.22);
  --white:       #f4f2ee;
  --muted:       rgba(244, 242, 238, 0.68);
  --line:        rgba(201, 162, 74, 0.32);
  --line-faint:  rgba(201, 162, 74, 0.14);

  --display: 'Cormorant Garamond', Georgia, serif;
  --sans:    'Source Sans 3', system-ui, sans-serif;

  /* single shared inset so every right-column module lines up */
  --content-x: 2rem;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.5;
  color: var(--white);
  background: var(--black);
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }

.svg-defs { position: absolute; width: 0; height: 0; overflow: hidden; }

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

.section-label {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}

.section-label.center { text-align: center; }

.section-rule {
  width: 3rem;
  height: 1px;
  background: linear-gradient(90deg, var(--gold), transparent);
  margin: 0.3rem auto 0.4rem;
}

.section-head.center { text-align: center; }

.section-head h2 {
  font-family: var(--display);
  font-size: 2.05rem;
  font-weight: 600;
  line-height: 1.15;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.85rem 1.6rem;
  white-space: nowrap;
  transition: filter 0.2s var(--ease), transform 0.2s var(--ease), border-color 0.2s var(--ease), background 0.2s var(--ease);
}

.btn-icon { width: 0.85rem; height: 0.85rem; }

.btn-gold {
  background: linear-gradient(180deg, var(--gold-light) 0%, var(--gold) 100%);
  color: var(--black);
  box-shadow: 0 6px 20px var(--gold-glow);
}

.btn-gold:hover { filter: brightness(1.08); transform: translateY(-1px); }

.btn-outline {
  background: transparent;
  color: var(--gold);
  border: 1px solid var(--line);
}

.btn-outline:hover { border-color: var(--gold); background: rgba(201, 162, 74, 0.08); }

/* ---------- Page grid ---------- */
.page-grid {
  display: grid;
  grid-template-columns: minmax(300px, 30%) 1fr;
  min-height: 100vh;
}

/* Desktop: fixed 1536-wide canvas, zoomed uniformly to the window width
   (JS sets html zoom). Never reflows; scrolls vertically if taller. */
@media (min-width: 1101px) {
  html { overflow-y: scroll; overflow-x: hidden; }
  .page-grid {
    width: 1536px;
    margin: 2.75rem auto;
    min-height: 0;
    grid-template-columns: 460px 1fr;
    grid-template-rows: auto auto auto auto;
    border-radius: 14px;
    overflow: hidden;
  }
  .brand-panel      { grid-column: 1; grid-row: 1; }
  .brand-photo      { grid-column: 1; grid-row: 2; }
  .hero-band        { grid-column: 2; grid-row: 1; }
  .services-compact { grid-column: 2; grid-row: 2; }
  .lower-row        { grid-column: 1 / -1; grid-row: 3; }
  .footer-bar       { grid-column: 1 / -1; grid-row: 4; }
}

/* ---------- Brand panel (left) ---------- */
.brand-panel {
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand-mark {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: var(--black);
  text-align: center;
}

.brand-mark img { width: min(100%, 23rem); mix-blend-mode: screen; }

.brand-caption {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  margin-top: -0.5rem;
}

.brand-caption p {
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--white);
  line-height: 1.6;
  white-space: nowrap;
}

.brand-rule {
  width: 7rem;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.brand-photo {
  position: relative;
  line-height: 0;
  overflow: hidden;
  background: var(--black);
}

.brand-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: brightness(1.35) contrast(0.94) saturate(1.05);
  /* feather all four edges into the black — wide, soft blend */
  -webkit-mask-image:
    linear-gradient(to right, transparent 0%, #000 24%, #000 76%, transparent 100%),
    linear-gradient(to bottom, transparent 0%, #000 24%, #000 78%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(to right, transparent 0%, #000 24%, #000 76%, transparent 100%),
    linear-gradient(to bottom, transparent 0%, #000 24%, #000 78%, transparent 100%);
  mask-composite: intersect;
}

/* ---------- Hero band (image-backed: nav + hero + trust) ---------- */
.hero-band {
  position: relative;
  flex: none;
  display: flex;
  flex-direction: column;
  height: 34rem;
  overflow: hidden;
}

.hero-band-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 45%;
  z-index: 0;
  filter: saturate(1.25) brightness(0.99);
  /* feather all four edges — wide fade on the left for text, softer on the rest */
  -webkit-mask-image:
    linear-gradient(to right, transparent 0%, transparent 3%, #000 28%, #000 88%, transparent 100%),
    linear-gradient(to bottom, transparent 0%, #000 13%, #000 80%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(to right, transparent 0%, transparent 3%, #000 28%, #000 88%, transparent 100%),
    linear-gradient(to bottom, transparent 0%, #000 13%, #000 80%, transparent 100%);
  mask-composite: intersect;
}

.hero-band-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(6, 6, 6, 1) 0%, rgba(6, 6, 6, 0.6) 26%, rgba(6, 6, 6, 0.22) 54%, rgba(6, 6, 6, 0.04) 100%),
    linear-gradient(0deg, rgba(6, 6, 6, 0.55) 0%, rgba(6, 6, 6, 0) 30%);
}

.hero-band > .top-nav,
.hero-band > .hero-compact,
.hero-band > .trust-compact {
  position: relative;
  z-index: 2;
}

/* ---------- Top nav ---------- */
.top-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1.9rem;
  padding: 0.95rem 2.75rem 0.65rem 0.85rem;
  flex: none;
}

.top-nav a {
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.92);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}

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

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--gold) !important;
  border: 1px solid var(--line);
  padding: 0.7rem 1.35rem;
  background: rgba(6, 6, 6, 0.35);
}

.nav-cta:hover { border-color: var(--gold); background: rgba(201, 162, 74, 0.12); }
.nav-cta .btn-icon { width: 0.85rem; height: 0.85rem; }

/* ---------- Hero (overlaid copy) ---------- */
.hero-compact {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0.35rem 2.75rem 0.35rem var(--content-x);
}

.hero-compact-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 32rem;
}

.hero-compact-copy h1 {
  font-family: var(--display);
  font-size: 3.3rem;
  font-weight: 600;
  line-height: 1.04;
}

.hero-compact-copy h1 em { font-style: italic; color: var(--gold); }

.hero-rule {
  display: block;
  width: 3rem;
  height: 1px;
  background: var(--gold);
  margin: 0.9rem 0;
}

.hero-compact-copy p {
  color: rgba(244, 242, 238, 0.85);
  font-size: 1.18rem;
  line-height: 1.55;
  max-width: 42ch;
}

.hero-compact-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.3rem;
}

/* ---------- Trust (over image, bottom of band) ---------- */
.trust-compact {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0;
  padding: 0.6rem 2.75rem 1.1rem var(--content-x);
  flex: none;
}

.trust-compact-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0 2.6rem;
}

.trust-compact-item:first-child { padding-left: 0; }

.trust-compact-item:not(:last-child) { border-right: 1px solid rgba(201, 162, 74, 0.3); }

.trust-compact-item img { height: 2.1rem; width: auto; flex: none; }

.trust-compact-item span {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white);
  line-height: 1.45;
}

/* ---------- Services ---------- */
.services-compact {
  padding: 0.9rem var(--content-x) 1.1rem;
  flex: none;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.section-head.center h2 { margin: 0; }

.service-grid-compact {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1rem;
  margin-top: 0.7rem;
}

.service-grid-compact li {
  position: relative;
  background: linear-gradient(180deg, rgba(26, 22, 14, 0.55) 0%, rgba(12, 11, 8, 0.5) 100%);
  border: 1px solid var(--line-faint);
  border-radius: 10px;
  padding: 1.05rem 1.25rem 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease);
}

.service-grid-compact li:hover {
  border-color: var(--line);
  background: linear-gradient(180deg, rgba(34, 28, 18, 0.7) 0%, rgba(18, 15, 10, 0.6) 100%);
}

.service-icon {
  height: 2.5rem;
  width: auto;
  max-width: 3.25rem;
  object-fit: contain;
  object-position: left center;
  margin-bottom: 0.3rem;
}

.service-grid-compact strong {
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.2;
  min-height: 2.5rem;
  display: flex;
  align-items: flex-start;
}

.service-grid-compact p {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.5;
  flex: 1;
}

.card-arrow {
  position: absolute;
  right: 1rem;
  bottom: 0.9rem;
  width: 1rem;
  height: 1rem;
  color: var(--gold);
  opacity: 0.55;
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease);
}

.service-grid-compact li:hover .card-arrow { opacity: 1; transform: translate(2px, -2px); }

/* ---------- Lower row: about + pillars + process ---------- */
.lower-row {
  display: grid;
  grid-template-columns: 1.15fr 1fr 1.85fr;
  align-items: stretch;
  margin: 0 2rem;
  border-top: 1px solid var(--line-faint);
}

.lower-row .pillars-compact,
.lower-row .process-compact { border-left: 1px solid var(--line-faint); }

.about-compact {
  padding: 1.2rem 2.25rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.35rem;
}

.about-compact h2 {
  font-family: var(--display);
  font-size: 1.75rem;
  font-weight: 600;
  line-height: 1.15;
}

.about-compact > p {
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.45;
  max-width: 52ch;
}

.pillars-compact {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.4rem;
  padding: 1.2rem 1.75rem;
}

.pillars-compact li {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  max-width: 12rem;
  flex: 1;
}

.pillar-mark {
  flex: none;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.15rem;
}

.pillar-mark svg { width: 0.72rem; height: 0.72rem; color: var(--gold); }

.pillars-compact strong {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.25rem;
}

.pillars-compact span { font-size: 0.9rem; color: var(--muted); line-height: 1.4; }

.process-compact {
  padding: 1.2rem 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.process-compact > .section-label { text-align: center; }

.process-compact ol {
  list-style: none;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.4rem;
  margin-top: 0.6rem;
  flex-wrap: nowrap;
}

.process-compact ol > li:not(.step-arrow) {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.7rem;
  min-width: 0;
  width: 9.5rem;
  text-align: center;
}

.step-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.4rem;
  height: 3.4rem;
}

.step-icon img { width: 100%; height: 100%; object-fit: contain; }

.process-compact strong {
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.process-compact li > span:last-child { font-size: 0.9rem; color: var(--muted); line-height: 1.4; }

.step-arrow { margin-top: 1.3rem; flex: 1; display: flex; justify-content: center; }
.step-arrow svg { width: 1rem; height: 1rem; color: var(--line); }

/* ---------- Footer bar ---------- */
.footer-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  margin: 0 2rem 0.85rem;
  padding: 0.65rem 2rem;
  background: linear-gradient(180deg, rgba(26, 20, 10, 0.85) 0%, rgba(18, 13, 6, 0.85) 100%);
  border: 1px solid var(--line);
  border-radius: 10px;
  flex: none;
  min-height: 3.6rem;
}

.footer-bar-contact {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.footer-bar-contact a,
.footer-bar-contact span {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--white);
  text-decoration: none;
}

.footer-bar-contact svg { width: 1.25rem; height: 1.25rem; color: var(--gold); }

.footer-bar-divider { width: 1px; height: 1rem; background: var(--line); }

.footer-bar-cta { display: flex; align-items: center; gap: 1.25rem; }

.footer-bar-copy { display: flex; flex-direction: column; text-align: right; }

.footer-bar-copy strong { font-family: var(--display); font-size: 1.35rem; font-weight: 600; }

.footer-bar-copy span { font-size: 0.9rem; color: var(--muted); }

/* ============================================================
   Responsive — below the canvas breakpoint, stack normally
   ============================================================ */
@media (max-width: 1100px) {
  .page-grid { grid-template-columns: 1fr; min-height: 0; transform: none; }
  .brand-panel { grid-template-rows: none; grid-template-columns: 1fr 1fr; }
  .brand-photo { height: 30vh; }
  .brand-photo img { -webkit-mask-image: none; mask-image: none; }
  .hero-band { height: auto; min-height: 30rem; }
  .hero-compact { grid-template-columns: 1fr; }
  .lower-row { grid-template-columns: 1fr; }
  .lower-row .pillars-compact,
  .lower-row .process-compact { border-left: none; border-top: 1px solid var(--line-faint); }
  .lower-row .pillars-compact { justify-content: flex-start; }
  .footer-bar-copy { text-align: left; }
}

@media (max-width: 720px) {
  .brand-panel { grid-template-columns: 1fr; }
  .service-grid-compact { grid-template-columns: 1fr 1fr; }
  .top-nav { justify-content: center; flex-wrap: wrap; text-align: center; }
  .trust-compact { flex-direction: column; align-items: flex-start; gap: 0.9rem; }
  .trust-compact-item:not(:last-child) { border-right: none; }
  .footer-bar { flex-direction: column; align-items: flex-start; }
  .footer-bar-cta { width: 100%; justify-content: space-between; }
}

@media (max-width: 480px) {
  .service-grid-compact { grid-template-columns: 1fr; }
  .step-arrow { display: none; }
}

/* ---------- Contact modal ---------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: rgba(6, 6, 6, 0.72);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
}

.modal-overlay[hidden] { display: none; }

.modal {
  position: relative;
  width: min(30rem, 100%);
  background: linear-gradient(180deg, #17140d 0%, #100d08 100%);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 2.25rem 2rem 2rem;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
}

.modal-close {
  position: absolute;
  top: 0.7rem;
  right: 0.95rem;
  background: none;
  border: none;
  color: var(--muted);
  font-size: 1.7rem;
  line-height: 1;
  cursor: pointer;
  transition: color 0.2s var(--ease);
}

.modal-close:hover { color: var(--gold); }

.modal h2 { font-family: var(--display); font-size: 1.95rem; font-weight: 600; line-height: 1.1; }

.modal-sub { color: var(--muted); font-size: 0.95rem; margin: 0.4rem 0 1.35rem; }

.modal-btn { width: 100%; margin-bottom: 0.75rem; font-size: 0.92rem; }
.modal-btn svg { width: 1.1rem; height: 1.1rem; }

.modal-view label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.85rem;
}

.modal-view input,
.modal-view textarea {
  display: block;
  width: 100%;
  margin-top: 0.35rem;
  font-family: var(--sans);
  font-size: 1rem;
  color: var(--white);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line-faint);
  border-radius: 8px;
  padding: 0.6rem 0.75rem;
  resize: vertical;
}

.modal-view input:focus,
.modal-view textarea:focus { outline: none; border-color: var(--gold); }

.modal-actions { display: flex; gap: 0.75rem; margin-top: 0.6rem; }
.modal-actions .btn { flex: 1; }

.modal-status { min-height: 1.2rem; margin-top: 0.85rem; font-size: 0.92rem; }
.modal-status.ok { color: #8ec97b; }
.modal-status.err { color: #e0916f; }

.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }

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