/* CG Golf Customs: site styles. Shares RMAV's charcoal + bronze system. */

:root {
  --ink: #1A1A19;
  --ink-soft: #2B2A27;
  --paper: #FAF8F3;
  --stone: #F2EEE6;
  --text: #1D1C1A;
  --text-dim: #57534D;
  --line: #E2DCD0;
  --bronze-text: #6F5638;
  --bronze: #A88A68;
  --bronze-logo: #977A58;
  --olive: #78834D; /* CG logo olive (the "C"), sampled from the logo file */
  --surface: #FFFFFF;
  --field: #FFFFFF;

  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
  --logo: "Michroma", "Inter", sans-serif;

  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 48px);
  --section: clamp(72px, 10vw, 140px);
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #151514;
    --stone: #1D1C1A;
    --text: #EDE9E1;
    --text-dim: #A8A298;
    --line: #34322E;
    --bronze-text: #C2A582;
    --surface: #1D1C1A;
    --field: #232220;
  }
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font: 400 17px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0;
}

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

.label {
  font: 500 12px/1.4 var(--mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bronze-text);
  margin: 0 0 20px;
}

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: #fff; padding: 10px 16px; z-index: 100;
}
.skip:focus { left: 16px; top: 16px; }

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 28px;
  font: 500 14px/1 var(--sans);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: 2px;
  cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s;
}
.btn--solid { background: var(--bronze); color: #1A1A19; }
.btn--solid:hover { background: #BA9D7B; }
.btn--ghost { border-color: rgba(255,255,255,.55); color: #fff; }
.btn--ghost:hover { background: rgba(255,255,255,.1); border-color: #fff; }

/* ---------- Header ---------- */
.site-header {
  position: absolute; inset: 0 0 auto; z-index: 10;
  color: #fff;
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between; gap: 40px;
  height: 88px;
}
.logo {
  display: flex; align-items: center; gap: 14px; text-decoration: none; line-height: 1;
}
.logo__img { display: block; width: clamp(170px, 18vw, 250px); height: auto; }
.site-footer .logo { flex-direction: column; align-items: flex-start; gap: 10px; }
.site-footer .logo__img { width: 220px; }
.thanks__logo img { display: block; width: 220px; height: auto; margin-bottom: 48px; }
.logo__text { display: flex; flex-direction: column; }
.logo__mark {
  font: 400 15px/1 var(--logo);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.logo__sub {
  margin-top: 7px;
  font: 400 10px/1 var(--mono);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  opacity: .75;
}
.nav { display: flex; align-items: center; gap: 26px; }
.nav a:not(.btn) {
  font-size: 14px; letter-spacing: 0.04em; text-decoration: none; opacity: .85;
}
.nav a:not(.btn):hover { opacity: 1; }
.nav .btn { padding: 12px 18px; font-size: 12px; white-space: nowrap; }
.nav .nav__phone { font-family: var(--mono); letter-spacing: 0.02em; white-space: nowrap; }
@media (max-width: 1040px) {
  .nav { gap: 22px; }
}
@media (min-width: 901px) and (max-width: 1280px) {
  .nav .nav__extra { display: none; }
}

/* Phones and small tablets: Call + Menu button, links open in a panel */
.header__mobile { display: none; align-items: center; gap: 10px; }
.header__call, .nav__toggle {
  display: inline-flex; align-items: center; gap: 10px;
  height: 42px; padding: 0 14px;
  font: 500 12px/1 var(--sans); letter-spacing: 0.08em; text-transform: uppercase;
  color: #fff; text-decoration: none;
  background: transparent; border: 1px solid rgba(255,255,255,.55); border-radius: 2px;
  cursor: pointer;
}
.header__call { border-color: transparent; padding: 0 8px; }
.nav__bars, .nav__bars::before, .nav__bars::after {
  display: block; width: 16px; height: 1.5px; background: currentColor;
  transition: transform .2s, opacity .2s;
}
.nav__bars { position: relative; }
.nav__bars::before, .nav__bars::after { content: ""; position: absolute; left: 0; }
.nav__bars::before { top: -5px; }
.nav__bars::after { top: 5px; }
.site-header.is-open .nav__bars { background: transparent; }
.site-header.is-open .nav__bars::before { transform: translateY(5px) rotate(45deg); }
.site-header.is-open .nav__bars::after { transform: translateY(-5px) rotate(-45deg); }

@media (max-width: 900px) {
  .header__mobile { display: flex; }
  .nav {
    display: none;
    position: absolute; top: 88px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px var(--gutter) 28px;
    background: var(--ink);
    border-top: 1px solid #3A3834;
    box-shadow: 0 24px 40px rgba(0,0,0,.35);
  }
  .site-header.is-open .nav { display: flex; }
  .nav a:not(.btn) {
    font: 400 24px/1.2 var(--serif); letter-spacing: 0; opacity: 1;
    padding: 16px 0; border-bottom: 1px solid #3A3834;
  }
  .nav a.nav__phone { font: 400 16px/1 var(--mono); letter-spacing: 0.02em; padding: 22px 0; color: #D9C3A5; }
  .nav .btn { margin-top: 20px; padding: 16px; font-size: 13px; background: var(--bronze); border-color: var(--bronze); color: #1A1A19; }
}
@media (max-width: 400px) {
  .site-header .logo__img { width: 150px; }
  .header__mobile { gap: 4px; }
  .nav__toggle { padding: 0 12px; }
}
@media (max-width: 380px) {
  .logo__sub { display: none; }
}
a[href^="tel:"] { white-space: nowrap; }

/* ---------- Hero ---------- */
.hero--photo {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex; align-items: flex-end;
  color: #fff;
  background: var(--ink);
  overflow: hidden;
}
.hero__img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center 45%;
}
.hero--photo::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(20,20,19,.55) 0%, rgba(20,20,19,0) 22%),
    linear-gradient(90deg, rgba(20,20,19,.82) 0%, rgba(20,20,19,.55) 38%, rgba(20,20,19,0) 65%),
    linear-gradient(0deg, rgba(20,20,19,.88) 0%, rgba(20,20,19,.4) 40%, rgba(20,20,19,0) 70%);
}
@media (max-width: 760px) {
  .hero--photo::after {
    background:
      linear-gradient(180deg, rgba(20,20,19,.6) 0%, rgba(20,20,19,.1) 25%),
      linear-gradient(0deg, rgba(20,20,19,.95) 0%, rgba(20,20,19,.8) 55%, rgba(20,20,19,.2) 85%);
  }
}
.hero__content {
  position: relative; z-index: 1; width: 100%;
  padding-bottom: clamp(56px, 9vw, 112px);
}
.hero .label { color: var(--bronze); }
.hero h1 {
  font-size: clamp(42px, 6vw, 84px);
  max-width: none;
}
.hero h1 em { font-style: italic; color: #D9C3A5; }
.hero__lede {
  max-width: 34rem;
  margin: 24px 0 36px;
  font-size: clamp(17px, 1.6vw, 20px);
  color: rgba(255,255,255,.85);
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }
.credit {
  position: absolute; z-index: 1; right: var(--gutter); bottom: 20px;
  font: 400 10px/1.3 var(--mono); letter-spacing: 0.12em; text-transform: uppercase;
  color: rgba(255,255,255,.6);
  margin: 0;
}
@media (max-width: 560px) {
  .credit { left: var(--gutter); right: auto; bottom: 16px; }
  .hero__content { padding-bottom: 64px; }
}

/* ---------- Advantage ---------- */
.advantage { padding: var(--section) 0; }
.advantage__head {
  display: grid; gap: clamp(24px, 5vw, 96px);
  grid-template-columns: 1fr;
  margin-bottom: clamp(40px, 6vw, 72px);
}
@media (min-width: 900px) { .advantage__head { grid-template-columns: 5fr 6fr; align-items: end; } }
.advantage h2 { font-size: clamp(32px, 4.2vw, 54px); }
.advantage__head > p { margin: 0; color: var(--text-dim); font-size: 18px; }
.perks {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 0 48px;
  grid-template-columns: 1fr;
}
@media (min-width: 700px) { .perks { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .perks { grid-template-columns: repeat(3, 1fr); } }
.perks li { border-top: 1px solid var(--line); padding: 26px 0 34px; }
.perks h3 { font-size: 24px; margin: 0 0 10px; }
.perks p { margin: 0; color: var(--text-dim); font-size: 15px; }
.spaces {
  margin: 16px 0 0; padding-top: 24px; border-top: 1px solid var(--line);
  font-size: 15px;
}
.spaces .label { display: inline; margin: 0 14px 0 0; }

/* ---------- Systems ---------- */
.systems { padding: 0 0 var(--section); }
.section-head { max-width: 40rem; margin-bottom: clamp(40px, 6vw, 72px); }
.section-head h2 { font-size: clamp(32px, 4.2vw, 54px); }
.section-head p { color: var(--text-dim); margin: 18px 0 0; font-size: 18px; }

.system {
  display: grid; gap: clamp(28px, 5vw, 72px);
  grid-template-columns: 1fr;
  align-items: center;
  padding: clamp(40px, 5vw, 64px) 0;
  border-top: 1px solid var(--line);
}
@media (min-width: 900px) {
  .system { grid-template-columns: 7fr 5fr; }
  .system:nth-of-type(even) .system__media { order: 2; }
}
.system__media { margin: 0; }
.system__media img {
  width: 100%; aspect-ratio: 3 / 2; object-fit: cover;
  background: var(--stone);
}
.system__media figcaption {
  margin-top: 10px;
  font: 400 11px/1.4 var(--mono); letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text-dim);
}
.system__num {
  font: 400 12px/1 var(--mono); letter-spacing: 0.14em; color: var(--bronze-text);
}
.system h3 { font-size: clamp(30px, 3.4vw, 44px); margin: 14px 0 18px; }
.system p { color: var(--text-dim); margin: 0 0 22px; }
.system ul { list-style: none; margin: 0 0 28px; padding: 0; }
.system li {
  padding: 11px 0; border-top: 1px solid var(--line); font-size: 15px;
}
.system li:last-child { border-bottom: 1px solid var(--line); }
.link {
  font: 500 13px/1 var(--sans); letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--bronze-text); text-decoration: none;
  border-bottom: 1px solid currentColor; padding-bottom: 4px;
}
.link:hover { color: var(--text); }

.courtesy {
  margin: 8px 0 0; font-size: 13px; color: var(--text-dim);
  border-top: 1px solid var(--line); padding-top: 24px;
}

/* ---------- Sound & cabinetry ---------- */
.finish { padding: 0 0 var(--section); }
.finish__grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 16px; grid-template-columns: 1fr;
}
@media (min-width: 900px) { .finish__grid { grid-template-columns: repeat(3, 1fr); } }
.finish__item {
  background: var(--stone); padding: clamp(24px, 3vw, 36px);
  display: flex; flex-direction: column; gap: 12px;
}
.finish__num { margin: 0; font: 400 12px/1 var(--mono); letter-spacing: 0.14em; color: var(--bronze-text); }
.finish__item h3 { font-size: clamp(24px, 2.4vw, 30px); margin: 4px 0 0; }
.finish__item p:not(.finish__num) { margin: 0 0 8px; color: var(--text-dim); font-size: 16px; }
.finish__item .link { margin-top: auto; align-self: flex-start; }

/* ---------- Process ---------- */
.process {
  background: var(--ink); color: #EDE9E1;
  padding: var(--section) 0;
}
.process .label { color: var(--bronze); }
.process h2 { font-size: clamp(32px, 4.2vw, 54px); max-width: 18ch; }
.steps {
  list-style: none; margin: clamp(40px, 6vw, 72px) 0 0; padding: 0;
  display: grid; gap: 40px 48px;
  grid-template-columns: 1fr;
}
@media (min-width: 700px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.steps li { border-top: 1px solid #3A3834; padding-top: 22px; }
.steps span {
  font: 400 12px/1 var(--mono); letter-spacing: 0.14em; color: var(--bronze);
}
.steps h3 { font-size: 24px; margin: 14px 0 10px; }
.steps p { margin: 0; color: #A8A298; font-size: 15px; }

/* ---------- Showroom demo ---------- */
.demo { padding: var(--section) 0; }
.demo__grid { display: grid; gap: clamp(40px, 6vw, 96px); grid-template-columns: 1fr; }
@media (min-width: 960px) { .demo__grid { grid-template-columns: 4fr 6fr; } }
.demo h2 { font-size: clamp(32px, 4.2vw, 54px); }
.demo__aside > p:not(.label) { color: var(--text-dim); margin: 20px 0 0; font-size: 18px; }
.demo__list { list-style: none; margin: 28px 0 0; padding: 0; }
.demo__list li { padding: 11px 0; border-top: 1px solid var(--line); font-size: 15px; }
.demo__list li:last-child { border-bottom: 1px solid var(--line); }
.demo .form { border: 1px solid var(--line); }
.demo__aside .demo__note { font-size: 14px; }

/* ---------- Financing ---------- */
.financing { padding: 0 0 var(--section); }
.financing__card {
  display: grid; gap: clamp(24px, 4vw, 64px); grid-template-columns: 1fr; align-items: center;
  background: var(--stone); padding: clamp(28px, 5vw, 56px);
  border-left: 3px solid var(--olive);
}
@media (min-width: 900px) { .financing__card { grid-template-columns: 7fr 5fr; } }
.financing h2 { font-size: clamp(30px, 3.6vw, 46px); }
.financing__card > div > p:not(.label) { color: var(--text-dim); margin: 16px 0 0; font-size: 18px; max-width: 36rem; }
.financing__action { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.financing__fine { margin: 0; font-size: 13px; color: var(--text-dim); }

/* ---------- FAQ ---------- */
.faq { padding: 0 0 var(--section); }
.faq__grid { display: grid; gap: clamp(32px, 6vw, 96px); grid-template-columns: 1fr; }
@media (min-width: 960px) { .faq__grid { grid-template-columns: 4fr 6fr; } }
.faq h2 { font-size: clamp(32px, 4.2vw, 54px); }
.faq__aside > p:not(.label) { color: var(--text-dim); margin: 20px 0 0; font-size: 18px; }
.faq__list { border-bottom: 1px solid var(--line); }
.faq__item { border-top: 1px solid var(--line); }
.faq__item summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: baseline; gap: 20px;
  padding: 22px 0;
  font: 400 clamp(19px, 1.8vw, 22px)/1.3 var(--serif);
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "+"; flex: none;
  font: 400 20px/1 var(--mono); color: var(--bronze-text);
  transition: transform .2s;
}
.faq__item[open] summary::after { transform: rotate(45deg); }
.faq__item p { margin: 0 0 24px; color: var(--text-dim); font-size: 16px; max-width: 42rem; }

/* ---------- Contact ---------- */
.contact { padding: var(--section) 0; background: var(--stone); }
.contact__grid {
  display: grid; gap: clamp(40px, 6vw, 96px);
  grid-template-columns: 1fr;
}
@media (min-width: 960px) { .contact__grid { grid-template-columns: 4fr 6fr; } }
.contact h2 { font-size: clamp(32px, 4.2vw, 54px); }
.contact__aside p { color: var(--text-dim); margin: 20px 0 0; font-size: 18px; }
.contact__aside dl { margin: 36px 0 0; }
.contact__aside dt {
  font: 400 11px/1.4 var(--mono); letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--bronze-text); margin-top: 18px;
}
.contact__aside dd { margin: 4px 0 0; }

.form {
  background: var(--surface);
  padding: clamp(24px, 4vw, 48px);
  display: grid; gap: 20px;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .form { grid-template-columns: 1fr 1fr; }
  .form .full { grid-column: 1 / -1; }
}
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.field label, .field legend {
  font: 500 12px/1.3 var(--mono); letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text-dim);
}
.field .opt { text-transform: none; letter-spacing: 0; font-family: var(--sans); opacity: .8; }
.field input, .field select, .field textarea {
  width: 100%;
  font: 400 16px/1.4 var(--sans);
  color: var(--text);
  background: var(--field);
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 13px 14px;
  appearance: none;
}
.field select {
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: calc(100% - 20px) 55%, calc(100% - 15px) 55%;
  background-size: 5px 5px;
  background-repeat: no-repeat;
  padding-right: 40px;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--bronze);
  box-shadow: 0 0 0 3px rgba(168,138,104,.22);
}

fieldset.field { border: 0; margin: 0; padding: 0; }
.choices { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice span {
  display: inline-block; padding: 10px 16px;
  border: 1px solid var(--line); border-radius: 2px;
  font-size: 14px; cursor: pointer;
  transition: border-color .2s, background-color .2s;
}
.choice input:checked + span {
  border-color: var(--bronze); background: rgba(168,138,104,.14);
}
.choice input:focus-visible + span { outline: 2px solid var(--bronze); outline-offset: 2px; }

.hp { position: absolute; left: -9999px; }
.form__foot {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px;
}
.form__foot p { margin: 0; font-size: 13px; color: var(--text-dim); max-width: 26rem; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink); color: #A8A298;
  padding: 56px 0 40px; font-size: 14px;
}
.site-footer .wrap {
  display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; align-items: flex-end;
}
.site-footer .logo { color: #EDE9E1; }
.site-footer p { margin: 0; }
.site-footer a { color: #D9C3A5; }
.social { list-style: none; margin: 0; padding: 0; display: flex; gap: 20px; }
.social a { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }
.social a:hover span { text-decoration: underline; }
.social svg { flex: none; }

/* ---------- Thanks page ---------- */
.thanks {
  min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center;
  background: var(--ink); color: #EDE9E1;
}
.thanks .label { color: var(--bronze); }
.thanks h1 { font-size: clamp(40px, 6vw, 72px); max-width: 14ch; }
.thanks p { color: #A8A298; font-size: 18px; max-width: 32rem; margin: 22px 0 36px; }

/* ---------- Legal pages ---------- */
.legal-header { background: var(--ink); }
.legal-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 88px; }
.legal-header a:not(.logo) { color: #EDE9E1; font-size: 14px; text-decoration: none; opacity: .85; }
.legal { padding: clamp(48px, 8vw, 96px) 0 var(--section); }
.legal .wrap { max-width: 760px; }
.legal h1 { font-size: clamp(36px, 5vw, 56px); margin-bottom: 12px; }
.legal h2 { font-size: 26px; margin: 44px 0 12px; }
.legal p, .legal li { color: var(--text-dim); }
.legal ul { padding-left: 20px; }
.legal li { margin: 6px 0; }
.legal .updated { font: 400 12px/1.4 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; }
