/* Ampersite LLC: calm teal, black and gold, with ivory where it should breathe */
:root {
  --teal-900: #082426;
  --teal-800: #0c3134;
  --teal-700: #114145;
  --teal-600: #1a5559;
  --black: #0a0c0c;
  --gold: #c9a55c;
  --gold-soft: #e4c98d;
  --gold-deep: #a9873f;
  --ivory: #faf7f0;
  --paper: #ffffff;
  --ink: #142022;
  --ink-soft: #4c5b5c;
  --line-dark: rgba(228, 201, 141, 0.18);
  --line-light: #e7e1d3;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(8, 36, 38, .06), 0 8px 28px rgba(8, 36, 38, .08);
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Nunito Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --wrap: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--ivory);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
.wrap { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }

h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.15; margin: 0 0 .5em; letter-spacing: .005em; }
h1 { font-size: clamp(2.5rem, 5.6vw, 4.2rem); }
h2 { font-size: clamp(2rem, 3.8vw, 2.9rem); }
h3 { font-size: 1.55rem; }
p { margin: 0 0 1em; }
.eyebrow {
  font-family: var(--sans); font-size: .78rem; font-weight: 700;
  letter-spacing: .22em; text-transform: uppercase; color: var(--gold-deep); margin-bottom: 1rem;
}
.lead { font-size: 1.18rem; color: var(--ink-soft); max-width: 40em; }
.gold-rule { width: 56px; height: 1px; background: var(--gold); border: 0; margin: 1.4rem 0; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: var(--teal-800);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-dark);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--ivory); }
.brand img.logo { height: 40px; width: auto; }
.site-footer .brand img.logo { height: 30px; }
.brand span { font-family: var(--serif); font-size: 1.55rem; letter-spacing: .04em; }
.nav-links { display: flex; gap: 2rem; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  color: rgba(250, 247, 240, .78); text-decoration: none; font-size: .95rem; letter-spacing: .03em;
  padding: .3rem 0; border-bottom: 1px solid transparent; transition: color .2s, border-color .2s;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--gold-soft); border-color: var(--gold); }
.nav-toggle {
  display: none; background: none; border: 1px solid var(--line-dark); color: var(--ivory);
  border-radius: 10px; width: 44px; height: 44px; font-size: 1.2rem; cursor: pointer;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 48px; padding: .75rem 1.6rem; border-radius: 999px;
  font-family: var(--sans); font-weight: 700; font-size: .95rem; letter-spacing: .04em;
  text-decoration: none; cursor: pointer; border: 1px solid transparent;
  transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn-gold { background: var(--gold); color: var(--black); }
.btn-gold:hover { background: var(--gold-soft); }
.btn-ghost { border-color: rgba(228, 201, 141, .55); color: var(--gold-soft); background: transparent; }
.btn-ghost:hover { border-color: var(--gold-soft); background: rgba(228, 201, 141, .08); }
.btn-dark { background: var(--teal-800); color: var(--ivory); }
.btn-dark:hover { background: var(--teal-700); }
.btn-row { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2rem; }

/* ---------- sections ---------- */
section { padding: clamp(4.5rem, 9vw, 7.5rem) 0; }
.dark {
  background: radial-gradient(1200px 600px at 85% -10%, var(--teal-700) 0%, transparent 60%),
              linear-gradient(180deg, var(--teal-900), var(--black));
  color: var(--ivory);
}
.dark .lead, .dark p { color: rgba(250, 247, 240, .76); }
.dark .eyebrow { color: var(--gold); }
.teal { background: var(--teal-800); color: var(--ivory); }
.teal p { color: rgba(250, 247, 240, .78); }
.white { background: var(--paper); }

/* hero */
.hero { padding: clamp(5rem, 11vw, 9rem) 0 clamp(5rem, 10vw, 8rem); position: relative; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: 3rem; align-items: center; }
.hero h1 em { font-style: italic; color: var(--gold-soft); }
.hero-mark { justify-self: center; width: min(300px, 64%); opacity: .95; filter: drop-shadow(0 20px 50px rgba(0,0,0,.45)); }
.page-hero { padding: clamp(4rem, 8vw, 6rem) 0 clamp(3.5rem, 7vw, 5rem); }
.page-hero h1 { font-size: clamp(2.3rem, 5vw, 3.6rem); }

/* cards */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 3rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; margin-top: 3rem; }
.card {
  background: var(--paper); border: 1px solid var(--line-light); border-radius: var(--radius);
  padding: 2rem; box-shadow: var(--shadow);
}
.card h3 { margin-top: .2rem; }
.card p { color: var(--ink-soft); }
.card .icon {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: var(--teal-800); color: var(--gold-soft); font-family: var(--serif); font-size: 1.4rem;
}
.card ul { padding-left: 1.1rem; margin: 0; color: var(--ink-soft); }
.card li { margin: .35rem 0; }
.dark .card, .teal .card { background: rgba(255,255,255,.03); border-color: var(--line-dark); box-shadow: none; }
.dark .card p, .teal .card p, .dark .card li { color: rgba(250, 247, 240, .74); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }

/* steps */
.steps { counter-reset: s; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; margin-top: 3rem; }
.step { border-top: 1px solid var(--gold); padding-top: 1.2rem; }
.step::before {
  counter-increment: s; content: "0" counter(s);
  font-family: var(--serif); font-size: 1.9rem; color: var(--gold-deep); display: block; margin-bottom: .4rem;
}
.step h3 { font-size: 1.3rem; }
.step p { color: var(--ink-soft); font-size: .97rem; }
.dark .step p { color: rgba(250,247,240,.72); }
.dark .step::before { color: var(--gold); }

/* quote tool */
.quote-tool {
  background: var(--paper); color: var(--ink); border-radius: 20px; padding: clamp(1.5rem, 4vw, 2.5rem);
  box-shadow: 0 30px 80px rgba(0,0,0,.35); border: 1px solid rgba(228, 201, 141, .35);
}
.quote-tool h3 { margin-bottom: .3rem; }
.quote-tool p, .dark .quote-tool p { color: var(--ink-soft); }
.quote-tool .sample-note, .dark .quote-tool .sample-note { font-size: .82rem; color: var(--gold-deep); letter-spacing: .04em; margin-bottom: 1.4rem; }
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-weight: 700; font-size: .9rem; margin-bottom: .35rem; }
.field select, .field input, .field textarea {
  width: 100%; min-height: 48px; padding: .7rem .9rem; font: inherit; font-size: 1rem; color: var(--ink);
  border: 1px solid var(--line-light); border-radius: 10px; background: var(--ivory);
}
.field textarea { min-height: 140px; resize: vertical; }
.field select:focus, .field input:focus, .field textarea:focus, .btn:focus-visible, a:focus-visible {
  outline: 2px solid var(--gold); outline-offset: 2px;
}
.range-row { display: flex; align-items: center; gap: 1rem; }
.range-row input[type=range] { flex: 1; accent-color: var(--teal-600); min-height: auto; padding: 0; background: none; border: 0; }
.range-row output { min-width: 5.5rem; text-align: right; font-weight: 700; }
.estimate {
  margin-top: 1.4rem; padding: 1.2rem 1.4rem; border-radius: 12px; background: var(--teal-800); color: var(--ivory);
  display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; flex-wrap: wrap;
}
.estimate .amount { font-family: var(--serif); font-size: 2.1rem; color: var(--gold-soft); }
.estimate small { color: rgba(250,247,240,.7); }

/* pricing table */
.price-list { margin-top: 3rem; border-top: 1px solid var(--line-light); }
.price-item { display: grid; grid-template-columns: 220px 1fr 190px; gap: 2rem; padding: 2rem 0; border-bottom: 1px solid var(--line-light); align-items: start; }
.price-item h3 { margin: 0; }
.price-item p { margin: 0; color: var(--ink-soft); }
.price-item .price { font-family: var(--serif); font-size: 1.5rem; color: var(--teal-700); white-space: nowrap; text-align: right; }

/* AmperDock */
.app-badge { width: 120px; height: 120px; filter: drop-shadow(0 18px 36px rgba(0,0,0,.35)); }
.feature-list { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: 1rem; }
.feature-list li { padding-left: 1.6rem; position: relative; }
.feature-list li::before { content: ""; position: absolute; left: 0; top: .7em; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }
.notice {
  border-left: 2px solid var(--gold); padding: 1rem 1.2rem; background: rgba(201,165,92,.08);
  border-radius: 0 10px 10px 0; font-size: .95rem; color: var(--ink-soft); margin-top: 2rem;
}
.dark .notice { color: rgba(250,247,240,.78); }
.small { font-size: .88rem; }

/* contact */
.contact-list { list-style: none; padding: 0; margin: 2rem 0 0; }
.contact-list li { padding: 1rem 0; border-bottom: 1px solid var(--line-dark); }
.contact-list strong { display: block; font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); font-weight: 700; }
.placeholder { background: rgba(201,165,92,.18); border-radius: 4px; padding: 0 .3em; }

/* cta band */
.cta-band { text-align: center; }
.cta-band .lead { margin-inline: auto; }
.cta-band .btn-row { justify-content: center; }

/* footer */
.site-footer { background: var(--black); color: rgba(250,247,240,.6); padding: 3.5rem 0 2.5rem; font-size: .92rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; }
.site-footer a { color: rgba(250,247,240,.8); text-decoration: none; }
.site-footer a:hover { color: var(--gold-soft); }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .45rem; }
.site-footer h4 { color: var(--gold); font-size: .78rem; letter-spacing: .2em; text-transform: uppercase; margin: 0 0 1rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); margin-top: 2.5rem; padding-top: 1.5rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .hero-grid, .split { grid-template-columns: 1fr; }
  .hero-mark { width: 180px; order: -1; justify-self: start; }
  .grid-3, .steps { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .price-item { grid-template-columns: 1fr; gap: .6rem; }
  .price-item .price { text-align: left; }
}
@media (max-width: 760px) {
  .nav-toggle { display: inline-grid; place-items: center; }
  .nav-links {
    display: none; position: absolute; left: 0; right: 0; top: 72px; flex-direction: column; gap: 0;
    background: var(--teal-900); border-bottom: 1px solid var(--line-dark); padding: .5rem 20px 1.2rem;
  }
  .nav-links.open { display: flex; }
  .nav-links a { display: block; padding: .9rem 0; border-bottom: 1px solid var(--line-dark); }
  .grid-3, .grid-2, .steps, .footer-grid { grid-template-columns: 1fr; }
  body { font-size: 16.5px; }
}

/* quote generator */
fieldset.field { border: 0; padding: 0; margin: 0 0 1.1rem; }
fieldset.field legend { font-weight: 700; font-size: .9rem; margin-bottom: .5rem; padding: 0; }
.checks label { display: flex; align-items: center; gap: .7rem; min-height: 40px; font-weight: 400; font-size: .97rem; cursor: pointer; margin: 0; }
.checks input[type=checkbox] { width: 20px; height: 20px; min-height: 0; accent-color: var(--teal-600); flex: none; margin: 0; }
.teal .quote-tool p { color: var(--ink-soft); }
section[id] { scroll-margin-top: 72px; }
