/* Studio OMAH site styles. Direction B. */

:root {
  --cream: #F1E8DA;
  --cream-warm: #EADFCE;
  --burgundy: #431318;
  --burgundy-light: #571E22;
  --sand: #C9A98F;
  --sand-light: #E8D8C4;
  --ink: #3B2C25;
  --muted: #6E5647;
  --rule: rgba(87, 30, 34, 0.18);
  --serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --sans: 'Work Sans', 'Helvetica Neue', Arial, sans-serif;
  --gutter: 72px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 15px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: var(--burgundy-light); text-decoration: none; }
a:hover { color: var(--burgundy); }

h1, h2, h3 { font-family: var(--serif); font-weight: 300; margin: 0; }

.wrap { padding-left: var(--gutter); padding-right: var(--gutter); }

.eyebrow {
  font-size: 11px;
  letter-spacing: 4px;
  color: var(--muted);
  text-transform: uppercase;
}
.eyebrow-light { color: var(--sand); }

/* ---------- Header ---------- */

.site-header {
  background: var(--burgundy);
  color: var(--sand-light);
  position: relative;
  z-index: 20;
}
.site-header .bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 26px var(--gutter);
}
.site-header a { color: var(--sand-light); }
.site-header a:hover { color: #FFF; }
.header-mark {
  font-family: var(--serif);
  font-size: 15px;
  letter-spacing: 5px;
  color: var(--cream);
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.header-place { font-size: 11px; letter-spacing: 4px; color: var(--sand); }
.nav { display: flex; gap: 40px; font-size: 12px; letter-spacing: 3px; }
.nav a { padding: 12px 0; display: inline-block; }
.nav a[aria-current="page"] { border-bottom: 1px solid var(--sand); }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 0;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: flex-end;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 26px;
  height: 1px;
  background: var(--sand-light);
  margin: 4px 0;
  transition: transform 0.25s ease, opacity 0.2s ease;
}
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { transform: translateY(-5px) rotate(-45deg); }

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

.hero {
  background: var(--burgundy);
  color: var(--cream);
  text-align: center;
  padding: 76px var(--gutter) 104px;
}
.hero .wordmark {
  font-family: var(--serif);
  font-size: clamp(52px, 9.5vw, 148px);
  line-height: 1.02;
  letter-spacing: 0.07em;
  color: var(--cream);
  margin: 0 0 22px;
}
.hero .tagline { font-size: 12px; letter-spacing: 6px; color: var(--sand); text-transform: uppercase; }

.hero-strip { padding: 0 var(--gutter); margin-top: -56px; position: relative; z-index: 5; }
.hero-strip .grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.hero-strip img { width: 100%; height: 380px; object-fit: cover; background: var(--cream-warm); }

/* ---------- Statements ---------- */

.statement {
  padding: 96px var(--gutter) 72px;
  text-align: center;
  display: flex;
  justify-content: center;
}
.statement p {
  font-family: var(--serif);
  font-size: 34px;
  line-height: 1.5;
  color: var(--burgundy-light);
  max-width: 900px;
  margin: 0;
  text-wrap: pretty;
}

/* ---------- Piece rows on the home page ---------- */

.piece-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.piece-row img { width: 100%; height: 100%; min-height: 620px; object-fit: cover; }
.piece-row .panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 20px;
  padding: 72px 88px;
  background: var(--cream-warm);
}
.piece-row .panel.dark { background: var(--burgundy); color: var(--sand-light); }
.piece-row .panel h2 {
  font-size: 72px;
  letter-spacing: 0.08em;
  color: var(--burgundy-light);
  line-height: 1.05;
}
.piece-row .panel.dark h2 { color: var(--cream); }
.piece-row .panel p { margin: 0; max-width: 400px; }
.piece-row .panel.dark .eyebrow { color: var(--sand); }
.piece-row.reverse .panel { order: -1; }

/* The measurement opt-out on /privacy is a button, not a link, but should read as one. */
button.link-underline {
  background: none;
  border: 0;
  border-bottom: 1px solid var(--burgundy-light);
  padding: 0;
  font-family: var(--sans);
  font-weight: 300;
  text-transform: uppercase;
  cursor: pointer;
}

.link-underline {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 12px;
  letter-spacing: 3px;
  border-bottom: 1px solid var(--burgundy-light);
  color: var(--burgundy-light);
}
.panel.dark .link-underline { color: var(--cream); border-color: var(--sand); }

/* ---------- Split band (materials, in situ) ---------- */

.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.split img { width: 100%; height: 100%; min-height: 560px; object-fit: cover; }
.split .panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 22px;
  padding: 72px 88px;
}
.split .panel h2 { font-size: 40px; line-height: 1.3; color: var(--burgundy-light); }
.split .panel p { margin: 0; max-width: 460px; }

/* ---------- Piece pages ---------- */

.piece-hero { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); background: var(--burgundy); }
.piece-hero .panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
  padding: 96px 88px;
  color: var(--sand-light);
}
.piece-hero h1 {
  font-size: clamp(52px, 6vw, 92px);
  letter-spacing: 0.08em;
  color: var(--cream);
  line-height: 1.05;
}
.piece-hero .sub { font-size: 12px; letter-spacing: 4px; color: var(--sand); text-transform: uppercase; }
.piece-hero img { width: 100%; height: 100%; min-height: 680px; object-fit: cover; background: var(--cream-warm); }

.piece-body { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 72px; padding: 96px var(--gutter); }
.piece-body h2 { font-size: 30px; color: var(--burgundy-light); margin-bottom: 18px; }
.piece-body p { margin: 0 0 18px; max-width: 520px; }

.spec { border-top: 1px solid var(--rule); }
.spec div {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 0;
  border-bottom: 1px solid var(--rule);
  font-size: 13px;
}
.spec dt, .spec .label { letter-spacing: 2px; color: var(--muted); text-transform: uppercase; font-size: 11px; }
.spec .value { text-align: right; }
.spec .value a { display: inline-flex; align-items: center; min-height: 44px; }

.gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; padding: 0 var(--gutter) 96px; }
.gallery img { width: 100%; height: 520px; object-fit: cover; background: var(--cream-warm); }
.gallery .full { grid-column: 1 / -1; }
.gallery .full img { height: 640px; }

/* ---------- Enquiry ---------- */

.enquire-band {
  background: var(--burgundy);
  color: var(--sand-light);
  text-align: center;
  padding: 96px var(--gutter);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 26px;
}
.enquire-band h2 { font-size: 38px; color: var(--cream); line-height: 1.35; max-width: 760px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 40px;
  border: 1px solid var(--burgundy-light);
  color: var(--burgundy-light);
  background: none;
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 3px;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease;
}
.btn:hover { background: var(--burgundy-light); color: var(--cream); }
.btn-light { border-color: var(--sand); color: var(--cream); }
.btn-light:hover { background: var(--cream); color: var(--burgundy); }

/* ---------- Forms ---------- */

.form { display: flex; flex-direction: column; gap: 26px; max-width: 560px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 11px; letter-spacing: 3px; color: var(--muted); text-transform: uppercase; }
.field input, .field select, .field textarea {
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 300;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--rule);
  padding: 12px 0;
  min-height: 48px;
  border-radius: 0;
  appearance: none;
}
.field textarea { min-height: 130px; resize: vertical; line-height: 1.7; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-bottom-color: var(--burgundy-light);
}
.form .btn { align-self: flex-start; }
.form-note { font-size: 13px; color: var(--muted); margin: 0; }
.form-status { font-size: 14px; margin: 0; min-height: 22px; }
.form-status.error { color: #8C2F1B; }
.form-status.ok { color: var(--burgundy-light); }

/* Grouped choices: enquirer type, project type, pieces.
   Rectangular to match .btn, filled when chosen, 44px minimum tap target. */

.fieldset { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.fieldset legend { font-size: 11px; letter-spacing: 3px; color: var(--muted); text-transform: uppercase; padding: 0; }
.fieldset .hint { font-size: 13px; color: var(--muted); margin: -2px 0 2px; }
.choices { display: flex; flex-wrap: wrap; gap: 10px; }
.choice { position: relative; display: inline-flex; }
.choice input {
  position: absolute; inset: 0; width: 100%; height: 100%;
  margin: 0; opacity: 0; cursor: pointer;
}
.choice span {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 0 20px;
  border: 1px solid var(--rule);
  font-family: var(--sans); font-size: 12px; letter-spacing: 2px;
  text-transform: uppercase; color: var(--ink); white-space: nowrap;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}
.choice:hover span { border-color: var(--burgundy-light); }
.choice input:checked + span {
  background: var(--burgundy-light);
  border-color: var(--burgundy-light);
  color: var(--cream);
}
.choice input:focus-visible + span {
  outline: 2px solid var(--burgundy-light);
  outline-offset: 2px;
}

/* Revealed only when Company is chosen. */
.field[hidden] { display: none; }

.contact-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 72px; padding: 96px var(--gutter); align-items: start; }

/* ---------- Page head (about, contact) ---------- */

.page-head { padding: 84px var(--gutter) 0; display: flex; flex-direction: column; gap: 20px; }
.page-head h1 { font-size: clamp(44px, 5.5vw, 84px); color: var(--burgundy-light); line-height: 1.08; max-width: 900px; }

/* ---------- Prose ---------- */

.prose { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 72px; padding: 72px var(--gutter); }
.prose p { margin: 0 0 20px; max-width: 520px; }
.prose h2 { font-size: 30px; color: var(--burgundy-light); margin-bottom: 18px; }

.material-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 40px; padding: 0 var(--gutter) 96px; }
.material-list .group { border-top: 1px solid var(--rule); padding-top: 16px; }
.material-list h3 { font-family: var(--sans); font-size: 11px; letter-spacing: 3px; color: var(--muted); text-transform: uppercase; margin-bottom: 10px; font-weight: 400; }
.material-list ul { list-style: none; margin: 0; padding: 0; font-size: 14px; }
.material-list li { padding: 3px 0; }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--burgundy);
  color: var(--sand-light);
  text-align: center;
  padding: 64px var(--gutter);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}
.site-footer a { color: var(--sand); }
.site-footer a:hover { color: var(--cream); }
.site-footer .mark { font-family: var(--serif); font-size: 26px; letter-spacing: 6px; color: var(--cream); }
.site-footer .links { display: flex; gap: 40px; font-size: 12px; letter-spacing: 2px; flex-wrap: wrap; justify-content: center; }
.site-footer .links a { min-height: 44px; display: inline-flex; align-items: center; }
.site-footer .fine { font-size: 11px; letter-spacing: 2px; color: rgba(232, 216, 196, 0.55); }

/* ---------- Tablet ---------- */

@media (max-width: 1080px) {
  :root { --gutter: 40px; }
  .piece-row .panel, .split .panel, .piece-hero .panel { padding: 56px 44px; }
  .piece-row .panel h2 { font-size: 56px; }
  .statement p { font-size: 28px; }
  .piece-body, .prose, .contact-grid { gap: 48px; }
  .material-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- Mobile ---------- */

@media (max-width: 760px) {
  :root { --gutter: 22px; }
  body { font-size: 15px; }

  .site-header .bar { padding: 18px var(--gutter); }
  .nav-toggle { display: flex; }
  .nav {
    display: none;
    flex-direction: column;
    gap: 0;
    padding: 8px var(--gutter) 24px;
    border-top: 1px solid rgba(232, 216, 196, 0.2);
  }
  .nav-open .nav { display: flex; }
  .nav a { padding: 14px 0; min-height: 44px; display: flex; align-items: center; }
  .nav a[aria-current="page"] { border-bottom: 0; color: #FFF; }

  .hero { padding: 44px var(--gutter) 64px; }
  .hero .wordmark { letter-spacing: 0.05em; }
  .hero-strip { margin-top: -34px; }
  .hero-strip .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .hero-strip .grid img:nth-child(3) { display: none; }
  .hero-strip img { height: 200px; }

  .statement { padding: 56px var(--gutter) 48px; }
  .statement p { font-size: 25px; line-height: 1.5; }

  .piece-row, .split, .piece-hero, .piece-body, .prose, .contact-grid, .gallery {
    grid-template-columns: minmax(0, 1fr);
  }
  .piece-row img, .split img { min-height: 0; height: 380px; }
  .piece-row .panel, .split .panel { padding: 36px var(--gutter) 44px; }
  .piece-row .panel h2 { font-size: 46px; }
  .piece-row.reverse .panel { order: 0; }

  .piece-hero .panel { padding: 44px var(--gutter) 48px; }
  .piece-hero img { min-height: 0; height: 460px; order: -1; }
  .piece-body { padding: 56px var(--gutter); gap: 40px; }
  .split .panel h2 { font-size: 30px; }

  .gallery { gap: 14px; padding: 0 var(--gutter) 64px; }
  .gallery img, .gallery .full img { height: 330px; }

  .page-head { padding: 48px var(--gutter) 0; }
  .prose { padding: 48px var(--gutter); gap: 36px; }
  .material-list { padding: 0 var(--gutter) 64px; gap: 24px; }

  .form .btn { align-self: stretch; }
  .choice span { padding: 0 16px; font-size: 11px; }
  .enquire-band { padding: 64px var(--gutter); }
  .enquire-band h2 { font-size: 28px; }

  .site-footer { padding: 44px var(--gutter); }
  .site-footer .links { flex-direction: column; gap: 4px; }
}

@media (max-width: 380px) {
  :root { --gutter: 18px; }
  .piece-row .panel h2 { font-size: 40px; }
  .hero-strip img { height: 170px; }
}
