/* Gold's Painting — site styles */
:root {
  --ink: #141414;
  --ink-2: #26241f;
  --gold: #c8a045;
  --gold-deep: #7a5c16;
  --wall: #f6f5f2;
  --paper: #ffffff;
  --stone: #55514b;
  --line: #e2dfd8;

  /* paint-chip colors, sampled from real jobs on this site */
  --chip-exterior: #5b6670;   /* slate garage door */
  --chip-interior: #e9e4d8;   /* warm white walls */
  --chip-cabinets: #7d8c76;   /* sage shutters */
  --chip-brick: #8b8a86;      /* limewash gray brick */
  --chip-commercial: #c8a045; /* brand gold */

  --serif: "Marcellus", "Georgia", serif;
  --sans: "Source Sans 3", "Segoe UI", system-ui, -apple-system, sans-serif;

  --measure: 66ch;
  --wrap: 1160px;
  --gap: clamp(1rem, 3vw, 2rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold-deep); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 2px; }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.005em;
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2.25rem, 5.2vw, 3.75rem); }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.375rem; }
p { margin: 0 0 1em; max-width: var(--measure); }

.wrap { width: min(var(--wrap), 100% - 2 * var(--gap)); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 0; background: var(--gold); color: var(--ink); padding: .5rem 1rem; z-index: 10; }
.skip:focus { left: 1rem; top: 1rem; }

/* ---------- header ---------- */
.site-header { background: var(--ink); color: #fff; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 84px; }
.brand { display: block; flex: none; }
.brand img { height: 64px; width: auto; }
.nav { display: flex; align-items: center; gap: 1.5rem; }
.nav ul { list-style: none; display: flex; gap: 1.25rem; margin: 0; padding: 0; }
.nav a { color: #e9e6df; text-decoration: none; font-size: 1rem; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--gold); }
.nav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--gold); }
.header-call { color: var(--gold); text-decoration: none; font-weight: 600; white-space: nowrap; font-size: 1.0625rem; }
.header-call:hover { color: #fff; }
.menu-toggle { display: none; background: none; border: 1px solid #4a4740; color: #fff; padding: .45rem .8rem; font: inherit; font-size: 1rem; border-radius: 4px; cursor: pointer; }

@media (max-width: 960px) {
  .menu-toggle { display: block; }
  .nav { position: absolute; inset: 84px 0 auto 0; background: var(--ink); flex-direction: column; align-items: stretch; padding: .5rem var(--gap) 1.25rem; display: none; z-index: 5; }
  .nav.open { display: flex; }
  .nav ul { flex-direction: column; gap: 0; }
  .nav li a { display: block; padding: .7rem 0; border-bottom: 1px solid #2c2a26; }
  .site-header { position: relative; }
  .header-call { padding-top: .75rem; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-block; padding: .85rem 1.4rem; border-radius: 4px;
  font-weight: 600; font-size: 1.0625rem; text-decoration: none; line-height: 1.2;
  border: 2px solid transparent; cursor: pointer; font-family: var(--sans);
}
.btn-gold { background: var(--gold); color: var(--ink); }
.btn-gold:hover { background: #d9b45e; color: var(--ink); }
.btn-line { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-line:hover { background: var(--ink); color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }

/* ---------- hero ---------- */
.hero { background: var(--wall); padding: clamp(2.5rem, 6vw, 5rem) 0; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(1.5rem, 4vw, 4rem); align-items: center; }
.hero .lede { font-size: 1.25rem; color: var(--stone); }
.hero-photo { position: relative; }
.hero-photo img { aspect-ratio: 4 / 4.4; object-fit: cover; width: 100%; border-radius: 3px; }
.hero-facts { list-style: none; padding: 0; margin: 1.75rem 0 0; display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; color: var(--stone); font-size: 1rem; }
.hero-facts li::before { content: ""; display: inline-block; width: .55em; height: .55em; background: var(--gold); margin-right: .5em; transform: translateY(-1px); }
@media (max-width: 820px) { .hero .wrap { grid-template-columns: 1fr; } .hero-photo { order: -1; } .hero-photo img { aspect-ratio: 4 / 3; } }

/* ---------- page heading (inner pages) ---------- */
.page-head { background: var(--wall); padding: clamp(2rem, 5vw, 3.5rem) 0 clamp(1.5rem, 4vw, 2.5rem); border-bottom: 1px solid var(--line); }
.page-head p { font-size: 1.25rem; color: var(--stone); margin-bottom: 0; }
.crumbs { font-size: .95rem; color: var(--stone); margin-bottom: .75rem; }
.crumbs a { color: var(--stone); }

/* ---------- sections ---------- */
.section { padding: clamp(2.75rem, 7vw, 5rem) 0; }
.section-wall { background: var(--wall); }
.section-ink { background: var(--ink); color: #f1eee8; }
.section-ink h2 { color: #fff; }
.section-ink p { color: #cfcac0; }
.section-intro { margin-bottom: 2rem; }
.section-intro p { color: var(--stone); font-size: 1.1875rem; }
.section-ink .section-intro p { color: #cfcac0; }

/* ---------- paint chips (the signature element) ---------- */
.chips { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; }
.chip {
  display: flex; flex-direction: column; text-decoration: none; color: var(--ink);
  background: var(--paper); border: 1px solid var(--line); border-radius: 3px;
  box-shadow: 0 1px 0 rgba(20,20,20,.04);
  transition: transform .18s ease, box-shadow .18s ease;
}
.chip-swatch { height: 150px; border-radius: 2px 2px 0 0; }
.chip-body { padding: .9rem 1rem 1.1rem; display: flex; flex-direction: column; gap: .35rem; flex: 1; }
.chip-name { font-family: var(--serif); font-size: 1.3rem; line-height: 1.2; }
.chip-desc { font-size: .98rem; color: var(--stone); line-height: 1.45; }
.chip-more { margin-top: auto; padding-top: .6rem; font-size: .95rem; font-weight: 600; color: var(--gold-deep); }
.chip:hover { transform: translateY(-4px); box-shadow: 0 10px 22px -14px rgba(20,20,20,.45); }
.chip:hover .chip-more { text-decoration: underline; }
.chip-exterior .chip-swatch { background: var(--chip-exterior); }
.chip-interior .chip-swatch { background: var(--chip-interior); }
.chip-cabinets .chip-swatch { background: var(--chip-cabinets); }
.chip-brick .chip-swatch { background: var(--chip-brick); }
.chip-commercial .chip-swatch { background: var(--chip-commercial); }
@media (max-width: 1000px) { .chips { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .chips { grid-template-columns: 1fr 1fr; } .chip-swatch { height: 90px; } }
@media (max-width: 340px) { .chips { grid-template-columns: 1fr; } }

/* ---------- two-column feature ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 5vw, 4rem); align-items: center; }
.split img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 3px; }
.split.reverse > :first-child { order: 2; }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } .split.reverse > :first-child { order: 0; } }

.ticks { list-style: none; padding: 0; margin: 1rem 0 0; }
.ticks li { padding-left: 1.6rem; position: relative; margin-bottom: .55rem; max-width: var(--measure); }
.ticks li::before { content: ""; position: absolute; left: 0; top: .55em; width: .7rem; height: .7rem; background: var(--gold); border-radius: 1px; }

/* ---------- process (a real sequence) ---------- */
.steps { list-style: none; counter-reset: step; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem 2rem; }
.steps li { counter-increment: step; border-top: 2px solid var(--gold); padding-top: 1rem; }
.steps li::before { content: "Step " counter(step); display: block; font-size: .95rem; color: var(--gold); margin-bottom: .3rem; font-weight: 600; }
.steps h3 { color: #fff; margin-bottom: .35rem; }
.steps p { margin: 0; font-size: 1.02rem; }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* ---------- gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: .75rem; }
.gallery a { display: block; overflow: hidden; border-radius: 3px; background: var(--line); }
.gallery img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; transition: transform .3s ease; }
.gallery a:hover img { transform: scale(1.03); }
.gallery-contain a { background: #fff; border: 1px solid var(--line); }
.gallery-contain img { object-fit: contain; }
.gallery-group + .gallery-group { margin-top: 3rem; }

/* ---------- areas ---------- */
.areas { columns: 3 12rem; column-gap: 2rem; list-style: none; padding: 0; margin: 0; }
.areas li { padding: .4rem 0; border-bottom: 1px solid var(--line); break-inside: avoid; }

/* ---------- call band ---------- */
.call-band { background: var(--ink); color: #fff; padding: clamp(2.5rem, 6vw, 4rem) 0; }
.call-band .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; }
.call-band h2 { color: #fff; margin: 0 0 .35rem; }
.call-band p { color: #cfcac0; margin: 0; }
.call-band .btn-line { border-color: #fff; color: #fff; }
.call-band .btn-line:hover { background: #fff; color: var(--ink); }
.call-band .btn-row { margin-top: 0; }

/* ---------- form ---------- */
.form-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(1.5rem, 5vw, 4rem); align-items: start; }
@media (max-width: 860px) { .form-grid { grid-template-columns: 1fr; } }
form.estimate { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 1.25rem; }
form.estimate .full { grid-column: 1 / -1; }
@media (max-width: 560px) { form.estimate { grid-template-columns: 1fr; } }
label, legend { font-weight: 600; font-size: 1rem; display: block; margin-bottom: .35rem; }
.opt { font-weight: 400; color: var(--stone); }
input[type="text"], input[type="email"], input[type="tel"], textarea, select {
  width: 100%; font: inherit; font-size: 1.0625rem; padding: .7rem .8rem;
  border: 1px solid #c9c5bc; border-radius: 4px; background: #fff; color: var(--ink);
}
input:focus, textarea:focus, select:focus { border-color: var(--gold-deep); outline: 2px solid var(--gold); outline-offset: 0; }
textarea { min-height: 140px; resize: vertical; }
fieldset { border: 0; padding: 0; margin: 0; }
.checks { display: flex; flex-wrap: wrap; gap: .5rem; }
.checks label { font-weight: 400; display: inline-flex; align-items: center; gap: .45rem; border: 1px solid #c9c5bc; border-radius: 4px; padding: .5rem .8rem; margin: 0; cursor: pointer; background: #fff; }
.checks input { accent-color: var(--gold-deep); width: 1.05rem; height: 1.05rem; }
.checks label:has(input:checked) { border-color: var(--gold-deep); background: #fbf6ea; }
.hp { position: absolute; left: -5000px; }
.form-note { font-size: .95rem; color: var(--stone); }
.contact-card { background: var(--wall); border-radius: 3px; padding: 1.5rem; }
.contact-card h2 { font-size: 1.6rem; }
.contact-card .big { font-family: var(--serif); font-size: 1.75rem; display: block; color: var(--ink); text-decoration: none; margin: .2rem 0 1rem; }
.contact-card .big:hover { color: var(--gold-deep); }

/* ---------- footer ---------- */
.site-footer { background: #0f0f0f; color: #b9b4aa; padding: 3rem 0 2rem; font-size: 1rem; }
.site-footer .wrap { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 2rem; }
.site-footer img { height: 70px; width: auto; margin-bottom: .9rem; }
.site-footer h2 { font-family: var(--sans); font-size: 1rem; font-weight: 600; color: #fff; letter-spacing: .01em; margin-bottom: .6rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .35rem; }
.site-footer a { color: #e3ded4; text-decoration: none; }
.site-footer a:hover { color: var(--gold); text-decoration: underline; }
.site-footer .legal { grid-column: 1 / -1; max-width: none; border-top: 1px solid #2a2824; padding-top: 1.25rem; font-size: .9rem; color: #8d887f; }
@media (max-width: 760px) { .site-footer .wrap { grid-template-columns: 1fr 1fr; } .site-footer .about-col { grid-column: 1 / -1; } }

/* ---------- mobile call bar ---------- */
.mobile-call { display: none; }
@media (max-width: 640px) {
  .mobile-call { display: grid; grid-template-columns: 1fr 1fr; position: fixed; bottom: 0; left: 0; right: 0; z-index: 20; box-shadow: 0 -4px 14px rgba(0,0,0,.18); }
  .mobile-call a { text-align: center; padding: .95rem .5rem; font-weight: 600; text-decoration: none; font-size: 1.05rem; }
  .mobile-call .m-call { background: var(--ink); color: var(--gold); }
  .mobile-call .m-est { background: var(--gold); color: var(--ink); }
  body { padding-bottom: 58px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
