/* Five pages behind one nav. Each page is full-bleed bands alternating wine
   and pale pink, content held to a 1060px frame with a 64ch measure for
   running text. One committed palette taken from pacificdealersolutions.com —
   no light/dark variants, because the wine IS the brand. */

:root {
  --wine:    #36171e;   /* their site's own background */
  --wine-2:  #44212b;   /* raised panels on wine */
  --wine-3:  #2a1016;   /* deeper, for contact and footer */
  --blush:   #f6eaec;   /* their light section */
  --sand:    #e4cfb9;   /* their warm band */
  --gold:    #c8862b;   /* the sunburst in the logo, darkened for blush */
  --gold-lt: #e9a94a;   /* the same gold, for use on wine */
  --rule:    #5c313c;
  --rule-lt: #d9c3c7;
  --on-wine: #d8bbc1;   /* secondary text on wine */
  --on-light:#5e4248;   /* secondary text on blush */

  --display: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
  --body: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  color-scheme: dark;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  padding: 0;
  min-height: 100vh; display: flex; flex-direction: column;
  background: var(--wine);
  color: var(--blush);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: var(--display); font-weight: 500; text-wrap: balance; margin: 0; }
p { margin: 0; }
a { color: inherit; }

/* bands ------------------------------------------------------------- */

.band.wine  { background: var(--wine);   color: var(--blush); }
.band.deep  { background: var(--wine-3); color: var(--blush); }
.band.light { background: var(--blush);  color: var(--wine); }
.band.sand  { background: var(--sand);   color: var(--wine); }

.frame {
  max-width: 1060px; margin: 0 auto;
  padding-left: max(22px, env(safe-area-inset-left, 0px));
  padding-right: max(22px, env(safe-area-inset-right, 0px));
  padding-block: 76px;
}
.frame.tight { padding-block: 50px; }

.measure { max-width: 64ch; }

.eyebrow {
  font-size: 11px; font-weight: 600; letter-spacing: 0.19em;
  text-transform: uppercase; margin-bottom: 16px;
}
h1.eyebrow { font-family: var(--body); text-wrap: pretty; }
.wine .eyebrow, .deep .eyebrow { color: var(--gold-lt); }
.light .eyebrow, .sand .eyebrow { color: var(--gold); }

h2.big { font-size: clamp(29px, 4.1vw, 40px); line-height: 1.14; }

.sub-wine  { font-size: 16.5px; color: var(--on-wine); }
.sub-light { font-size: 16.5px; color: var(--on-light); }

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

.masthead {
  background: var(--wine); border-bottom: 1px solid var(--rule);
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20;
}
body::before {
  content: ""; position: fixed; inset: 0 0 auto;
  height: env(safe-area-inset-top, 0px); z-index: 21; background: var(--wine);
}
.masthead .frame {
  padding-block: 13px;
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
}
.lockup { display: flex; align-items: center; gap: 11px; text-decoration: none; }
.lockup img { width: 42px; height: 42px; object-fit: contain; }
.lockup .name { font-family: var(--display); font-size: 20px; line-height: 1.1; }

nav { margin-left: auto; display: flex; gap: 22px; flex-wrap: wrap; align-items: center; }
nav a {
  font-size: 14px; text-decoration: none; color: var(--on-wine);
  padding-bottom: 3px; border-bottom: 1px solid transparent;
}
nav a:hover { color: var(--blush); }
nav a[aria-current="page"] { color: var(--blush); border-bottom-color: var(--gold-lt); }
nav .call {
  font-size: 14px; font-weight: 600; color: var(--wine);
  background: var(--gold-lt); padding: 8px 15px; border-bottom: none;
}
nav .call:hover { filter: brightness(1.07); color: var(--wine); }

/* buttons ----------------------------------------------------------- */

.cta-row { display: flex; gap: 13px; flex-wrap: wrap; margin-top: 30px; }
.btn {
  display: inline-block; text-decoration: none; font-size: 15px; font-weight: 600;
  padding: 13px 25px; border: 1px solid transparent; cursor: pointer;
  font-family: var(--body);
}
.btn.solid { background: var(--gold-lt); color: var(--wine); }
.btn.solid:hover { filter: brightness(1.07); }
.btn.line { border-color: var(--rule); color: var(--blush); }
.btn.line:hover { border-color: var(--gold-lt); }
.btn.dark { background: var(--wine); color: var(--blush); }
.btn.dark:hover { filter: brightness(1.25); }

main { flex: 1 0 auto; display: flex; flex-direction: column; }
/* On a short page the leftover height goes to the last band, so the gap
   above the footer is that band's colour rather than a lighter seam. */
main > :last-child { flex: 1 0 auto; }

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

.hero .frame {
  padding-block: 74px 60px;
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 50px; align-items: center;
}
/* With no photo beside it, a two-column grid would leave the text in a
   half-width gutter. :has() collapses these to one column automatically,
   and they go back to two the moment a real image is added. */
.hero .frame:not(:has(> :nth-child(2))) { grid-template-columns: 1fr; }
.hero .frame:not(:has(> :nth-child(2))) h1 { max-width: 17ch; }
.hero .frame:not(:has(> :nth-child(2))) .lede { max-width: 64ch; }
.feature:not(:has(> :nth-child(2))) { grid-template-columns: 1fr; }
.feature:not(:has(> :nth-child(2))) > * { max-width: 64ch; }
.hero h1 {
  font-size: clamp(38px, 6vw, 62px); line-height: 1.05;
  letter-spacing: -0.015em; margin-bottom: 20px;
}
.hero .lede { font-size: clamp(16.5px, 2vw, 19px); color: #e2cdd1; max-width: 46ch; }

/* Sits on the same gutter as every .frame above and below it, so the
   first column's text lines up with the hero rather than the window edge. */
.facts {
  max-width: 1060px; margin: 0 auto;
  padding-left: max(22px, env(safe-area-inset-left, 0px));
  padding-right: max(22px, env(safe-area-inset-right, 0px));
  display: grid; grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--rule);
}
.fact { padding: 24px 24px 26px 0; }
.fact + .fact { border-left: 1px solid var(--rule); padding-left: 24px; }
.fact .n {
  font-family: var(--display); font-size: 31px; line-height: 1.1;
  color: var(--gold-lt); font-variant-numeric: tabular-nums;
}
.fact .l { font-size: 13.5px; color: var(--on-wine); margin-top: 7px; }

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

/* Cell dividers are drawn as borders rather than grid gaps, so the first
   column can lose its left padding and line up with the heading above. */
.grid { display: grid; margin-top: 34px; }
.grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cell {
  padding: 28px 26px 30px 0; min-width: 0;
  border-top: 1px solid var(--rule-lt);
}
.grid.three > .cell:nth-child(-n + 3) { border-top: none; }
.grid.three > .cell:not(:nth-child(3n + 1)) {
  border-left: 1px solid var(--rule-lt); padding-left: 26px;
}
.cell h3 { font-size: 22px; line-height: 1.2; margin-bottom: 10px; }
.cell p { font-size: 15px; color: var(--on-light); }
.cell .items {
  margin-top: 13px; font-size: 12.5px; letter-spacing: 0.04em;
  text-transform: uppercase; color: var(--gold); font-weight: 600; line-height: 1.8;
}

/* list of service names on the home page */
.lines { margin-top: 30px; border-top: 1px solid var(--rule-lt); }
.lines a {
  display: flex; align-items: baseline; gap: 16px; text-decoration: none;
  padding: 15px 0; border-bottom: 1px solid var(--rule-lt);
}
.lines a:hover .t { color: var(--gold); }
.lines .t { font-family: var(--display); font-size: 23px; flex: 0 0 auto; }
.lines .d { font-size: 14.5px; color: var(--on-light); min-width: 0; }
.lines .go { margin-left: auto; color: var(--gold); font-size: 18px; flex: none; }

/* steps — a real sequence, so the numbers mean something ------------ */

/* four steps now; auto-fit drops to two columns and then one as it narrows */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(228px, 1fr)); gap: 34px; margin-top: 40px; }
.step { min-width: 0; }
.step .num {
  font-size: 11px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--gold-lt); border-bottom: 1px solid var(--rule);
  padding-bottom: 11px; margin-bottom: 15px;
}
.step h3 { font-size: 22px; line-height: 1.2; margin-bottom: 10px; }
.step p { font-size: 15px; color: var(--on-wine); }

/* two-column feature ------------------------------------------------ */

.feature { display: grid; grid-template-columns: 1.1fr 1fr; gap: 52px; align-items: center; }
.feature.flip > :first-child { order: 2; }
.feature p + p { margin-top: 14px; }

/* placeholders ------------------------------------------------------ */

.ph {
  border: 1px dashed currentColor; opacity: 0.5;
  display: grid; place-items: center; text-align: center;
  padding: 18px; min-width: 0; max-width: 100%;
}
.ph span {
  font-size: 11px; font-weight: 600; letter-spacing: 0.15em;
  text-transform: uppercase; line-height: 1.7;
}
.ph.tall  { aspect-ratio: 4 / 5; }
.ph.wide  { aspect-ratio: 4 / 3; }
.ph.strip { aspect-ratio: 16 / 5; }
.ph.round { border-radius: 50%; aspect-ratio: 1; }

.sample {
  display: inline-block; font-size: 10px; font-weight: 600;
  letter-spacing: 0.17em; text-transform: uppercase;
  border: 1px solid currentColor; padding: 3px 8px; margin-bottom: 14px;
  opacity: 0.75;
}

/* testimonials ------------------------------------------------------ */

.quotes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; margin-top: 34px; }
.quote { min-width: 0; border-top: 2px solid var(--gold); padding-top: 20px; }
.quote blockquote {
  margin: 0; font-family: var(--display); font-size: 20px; line-height: 1.45; color: var(--wine);
}
.quote .who { margin-top: 16px; font-size: 13.5px; line-height: 1.55; color: #6b4d54; }
.quote .who b { display: block; color: var(--wine); font-weight: 600; }

/* team -------------------------------------------------------------- */

.people { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; margin-top: 38px; }
.person { min-width: 0; text-align: center; }
.person h3 { font-size: 20px; margin-top: 16px; }
/* real headshot: same footprint as .ph.round, cropped square and centred
   on the face. Drop an image in and swap .ph.round for .shot — nothing
   else on the page has to change. */
.person .shot {
  /* height:auto is load-bearing — the width/height attributes on the <img>
     are presentational hints, and without it the attribute height wins over
     aspect-ratio and the circle renders as a tall ellipse. */
  display: block; width: 100%; height: auto; aspect-ratio: 1;
  border-radius: 50%; object-fit: cover; object-position: 50% 22%;
  background: var(--wine-2);
}
.person { padding-bottom: 4px; }
.person .role { font-size: 12.5px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--gold-lt); margin-top: 3px; }
.person p { font-size: 14px; color: var(--on-wine); margin-top: 9px; }

/* logo row ---------------------------------------------------------- */

.logos { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1px; background: var(--rule-lt); margin-top: 32px; }
.logos .ph { background: var(--blush); aspect-ratio: 5 / 3; border: none; opacity: 0.4; }

/* partner logo wall -------------------------------------------------
   Each mark sits on a white tile. Half of these logos are black or navy
   type that would disappear against the wine, and the rest arrive with a
   white background anyway — so one white tile each is both the legible
   answer and the consistent one. */

.wall {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px 20px; margin-top: 38px;
}
.mark { margin: 0; min-width: 0; display: flex; flex-direction: column; gap: 11px; }
.tile {
  background: #fff; aspect-ratio: 5 / 3; padding: 20px;
  display: grid; place-items: center;
}
.tile img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.mark .nm {
  font-size: 10.5px; font-weight: 600; letter-spacing: 0.11em; text-transform: uppercase;
  color: var(--on-wine); text-align: center; line-height: 1.4;
}

/* partner logos — a named slot each, so an empty grid still reads ---- */

.brands { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--rule-lt); margin-top: 34px; }
.brand {
  background: var(--blush); aspect-ratio: 5 / 3; min-width: 0;
  display: grid; place-items: center; text-align: center; padding: 14px; gap: 7px;
}
.brand .nm { font-family: var(--display); font-size: 19px; line-height: 1.2; color: var(--wine); }
.brand .sl {
  font-size: 9.5px; font-weight: 600; letter-spacing: 0.15em;
  text-transform: uppercase; color: var(--gold); opacity: 0.8;
}

/* gallery ----------------------------------------------------------- */

.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 34px; }

/* contact ----------------------------------------------------------- */

.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: start; }

/* Three across on desktop: with the enquiry form gone this is the whole
   point of the page, so it gets the width rather than stacking thin. */
.reach {
  margin-top: 40px; display: grid; gap: 34px;
  /* the email address is the longest value, so it gets the wide column */
  grid-template-columns: 0.85fr 1.3fr 0.85fr; align-items: start;
}
.reach > div { border-top: 2px solid var(--gold); padding-top: 18px; }
.reach .k {
  font-size: 11px; font-weight: 600; letter-spacing: 0.17em;
  text-transform: uppercase; color: var(--gold-lt); margin-bottom: 4px;
}
.reach .v { font-family: var(--display); font-size: 24px; line-height: 1.25; overflow-wrap: break-word; }
.copy {
  margin-top: 7px; font-family: var(--body); font-size: 12px; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--blush);
  background: none; border: 1px solid var(--rule); padding: 6px 12px; cursor: pointer;
}
.copy:hover { border-color: var(--gold-lt); }

form { background: var(--wine-2); padding: 30px; display: flex; flex-direction: column; gap: 16px; }
.f { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.f label { font-size: 12px; font-weight: 600; letter-spacing: 0.11em; text-transform: uppercase; color: var(--on-wine); }
.f input, .f select, .f textarea {
  background: var(--wine); color: var(--blush); border: 1px solid var(--rule);
  padding: 11px 13px; font-family: var(--body); font-size: 15px; width: 100%;
}
.f input:focus, .f select:focus, .f textarea:focus { outline: 2px solid var(--gold-lt); outline-offset: 1px; }
.f textarea { resize: vertical; min-height: 88px; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.sent { font-size: 14px; color: var(--gold-lt); }

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

/* closing call to action -------------------------------------------- */

.closer { text-align: center; }
.closer h2 { margin: 0 auto 14px; max-width: 20ch; }
.closer .sub-wine { margin: 0 auto; max-width: 48ch; }
.closer .cta-row { justify-content: center; }

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

footer .frame { padding-block: 34px; display: flex; gap: 18px; flex-wrap: wrap; align-items: center; }
footer .fine { font-size: 13px; color: #a98d94; }

/* the mountain rule, from their logo -------------------------------- */
.ridge { display: block; width: 100%; height: 34px; }

/* responsive -------------------------------------------------------- */

@media (max-width: 900px) {
  .frame { padding-block: 52px; }
  .hero .frame { padding-block: 48px 42px; grid-template-columns: 1fr; gap: 34px; }
  .hero .ph { display: none; }
  .grid.three, .steps, .quotes, .gallery { grid-template-columns: 1fr; }
  /* single column: every cell is a stacked row, so no left rule or indent */
  .grid.three > .cell:not(:nth-child(3n + 1)) { border-left: none; padding-left: 0; }
  .grid.three > .cell:nth-child(-n + 3) { border-top: 1px solid var(--rule-lt); }
  .grid.three > .cell:first-child { border-top: none; }
  .steps, .quotes { gap: 30px; }
  .feature, .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .reach { grid-template-columns: 1fr; gap: 26px; }
  .feature.flip > :first-child { order: 0; }
  .people { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .logos, .brands { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .wall { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px 16px; }
  .brand .nm { font-size: 16px; }
  .masthead { position: static; }
  nav { gap: 14px; width: 100%; margin-left: 0; }
  nav a { font-size: 13.5px; }
  .lines a { flex-wrap: wrap; gap: 4px 14px; }
}
@media (max-width: 560px) {
  .facts { grid-template-columns: 1fr; }
  .pair { grid-template-columns: 1fr; }
  .brands, .wall { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  form { padding: 22px 18px; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
