/* Dekalb Personal Gifts — main stylesheet
   Palette from their logo (black #000000 / white #FFFFFF) and the warm gold
   ribbon they used on their design previews (#F6C464 → #E6B661). */

:root {
  /* REPLACEABLE IMAGES */
  /* (none: every picture on this site is an <img> under assets/) */

  --black: #000000;
  --ink: #111111;
  --charcoal: #1b1a18;
  --white: #ffffff;
  --stone: #f5f3ef;
  --line: #e4e0d8;
  --muted: #55524c;
  --muted-on-dark: #c9c5bd;
  --gold: #f6c464;
  --gold-2: #e6b661;
  --gold-deep: #8a5f0f;   /* same hue, darkened for text on white (5.6:1) */
  --gold-wash: #fdf3dc;

  --font: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --step--1: 0.9rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: 1.6rem;
  --step-3: clamp(1.9rem, 1.4rem + 2vw, 2.6rem);
  --step-4: clamp(2.2rem, 1.5rem + 3.2vw, 3.6rem);

  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2.5rem;
  --space-5: clamp(3.5rem, 2.5rem + 4vw, 6rem);
  --wrap: 72rem;
  --radius: 6px;
}

@font-face { font-family: "Archivo"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/archivo-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Archivo"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/archivo-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Archivo"; font-style: normal; font-weight: 800; font-display: swap; src: url("fonts/archivo-latin-800-normal.woff2") format("woff2"); }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 5rem; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; } }
body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--step-0);
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 2px; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 var(--space-2); font-weight: 800; letter-spacing: -0.01em; }
h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); font-weight: 600; letter-spacing: 0; }
p { margin: 0 0 var(--space-2); }
p:last-child { margin-bottom: 0; }

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.narrow { max-width: 44rem; }
.skip { position: absolute; left: -999px; top: 0; z-index: 100; background: var(--gold); color: var(--black); padding: 0.6rem 1rem; font-weight: 600; }
.skip:focus { left: 1rem; top: 1rem; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- Buttons: one vocabulary across the site ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
  min-height: 3rem; padding: 0.75rem 1.4rem;
  font: 600 1rem/1.2 var(--font); text-decoration: none;
  border-radius: var(--radius); border: 2px solid transparent; cursor: pointer;
  transition: background-color .15s, color .15s, border-color .15s, transform .15s;
}
.btn svg { width: 1.1em; height: 1.1em; flex: none; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: linear-gradient(135deg, var(--gold), var(--gold-2)); color: var(--black); }
.btn-primary:hover { background: var(--white); border-color: var(--black); }
.btn-ghost { border-color: currentColor; color: inherit; background: transparent; }
.on-dark .btn-ghost { color: var(--white); }
.btn-ghost:hover { background: var(--white); color: var(--black); border-color: var(--white); }
.on-light .btn-ghost:hover { background: var(--black); color: var(--white); border-color: var(--black); }
.btn-dark { background: var(--black); color: var(--white); }
.btn-dark:hover { background: var(--charcoal); }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: var(--space-3); }
.text-link { font-weight: 600; text-decoration: underline; text-decoration-color: var(--gold-2); text-decoration-thickness: 2px; }
.text-link:hover { text-decoration-color: currentColor; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--black); color: var(--white); border-bottom: 1px solid #2a2824; }
.header-inner { display: flex; align-items: center; gap: var(--space-2); min-height: 4.25rem; }
.brand { display: flex; align-items: center; gap: 0.75rem; text-decoration: none; margin-right: auto; }
.brand img { width: 52px; height: 52px; outline: 1px solid #3a3833; }
.brand-name { font-weight: 800; font-size: 1.05rem; line-height: 1.05; letter-spacing: -0.005em; }
.brand-name span { display: block; }
.header-call { display: none; }
.nav-toggle { display: none; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; }
.site-nav a { display: inline-block; padding: 0.35rem 0; text-decoration: none; font-weight: 600; font-size: 0.98rem; color: var(--muted-on-dark); border-bottom: 2px solid transparent; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--white); border-bottom-color: var(--gold); }
.nav-call { display: none; }

/* Without JS: nav simply sits under the brand on small screens */
@media (max-width: 879px) {
  .header-inner { flex-wrap: wrap; padding-block: 0.5rem; }
  .site-nav { width: 100%; padding-bottom: 0.5rem; }
  .js .site-nav { display: none; }
  .js .site-nav.open { display: block; }
  .js .site-nav ul { flex-direction: column; gap: 0; padding-block: 0.5rem 0.75rem; }
  .js .site-nav a { display: block; padding: 0.7rem 0; border-bottom: 1px solid #2a2824; font-size: 1.05rem; }
  .js .nav-call { display: block; margin-top: 0.75rem; }
  .js .nav-call .btn { width: 100%; display: flex; padding: 0.75rem 1.4rem; color: var(--black); border: 0; font-size: 1rem; }
  .js .nav-call .btn:hover { border: 0; }
  .js .nav-toggle {
    display: inline-flex; align-items: center; justify-content: center; width: 3rem; height: 3rem;
    background: transparent; border: 1px solid #4a4741; border-radius: var(--radius); color: var(--white); cursor: pointer;
  }
  .header-call {
    display: inline-flex; align-items: center; justify-content: center; width: 3rem; height: 3rem;
    border-radius: var(--radius); background: var(--gold); color: var(--black);
  }
  .header-call svg { width: 1.3rem; height: 1.3rem; }
}
@media (max-width: 359px) { .brand-name { font-size: 0.95rem; } .brand img { width: 44px; height: 44px; } }
@media (min-width: 880px) {
  .header-desktop-call { display: inline-flex; margin-left: var(--space-2); min-height: 2.6rem; padding: 0.5rem 1rem; }
}
@media (max-width: 879px) { .header-desktop-call { display: none; } }

/* ---------- Sections ---------- */
.section { padding-block: var(--space-5); }
.section-stone { background: var(--stone); }
.section-dark { background: var(--black); color: var(--white); }
.section-dark .lede, .section-dark p { color: var(--muted-on-dark); }
.section-dark h2, .section-dark h3 { color: var(--white); }
.section-head { max-width: 46rem; margin-bottom: var(--space-4); }
.lede { font-size: var(--step-1); line-height: 1.55; color: var(--muted); }

/* ---------- Home hero ---------- */
.hero { position: relative; background: var(--black); color: var(--white); overflow: hidden; }
.hero-copy { padding-block: var(--space-4) var(--space-5); }
.hero-label { display: inline-block; font-weight: 600; color: var(--gold); margin-bottom: var(--space-2); font-size: var(--step-0); }
.hero h1 { max-width: 17ch; }
.hero .lede { color: var(--muted-on-dark); max-width: 34rem; }
.hero-note { margin-top: var(--space-2); font-size: var(--step--1); color: var(--muted-on-dark); }
@media (min-width: 880px) {
  .hero { min-height: min(40rem, 82vh); display: flex; align-items: center; }
  .hero-copy { position: relative; z-index: 1; padding-block: var(--space-5); }
  .hero-copy > * { max-width: 40rem; }
  .hero .lede { max-width: 34rem; }
}

/* ---------- Page header (inner pages) ---------- */
.page-head { background: var(--black); color: var(--white); padding-block: var(--space-4) var(--space-5); }
.page-head .lede { color: var(--muted-on-dark); max-width: 40rem; }
.page-head h1 { max-width: 20ch; }
.crumbs { font-size: var(--step--1); color: var(--muted-on-dark); margin-bottom: var(--space-2); }
.crumbs a { color: var(--muted-on-dark); }

/* ---------- Split (text + picture) ---------- */
.split { display: grid; gap: var(--space-4); align-items: center; }
.split figure { margin: 0; }
.split img { border-radius: var(--radius); width: 100%; }
@media (min-width: 880px) {
  .split { grid-template-columns: 1fr 1fr; gap: var(--space-5); }
  .split.reverse > :first-child { order: 2; }
}
.stack > * + * { margin-top: var(--space-2); }

/* Offer blocks on home */
.offers { display: grid; gap: var(--space-4); }
@media (min-width: 880px) { .offers { grid-template-columns: 1fr 1fr; } }
.offer { background: var(--white); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 1px 0 var(--line); }
.offer img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.offer-body { padding: var(--space-3) var(--space-3) var(--space-4); display: flex; flex-direction: column; flex: 1; }
.offer-body p { color: var(--muted); }
.offer-body .text-link { margin-top: auto; padding-top: var(--space-2); align-self: flex-start; }
.ticks { list-style: none; padding: 0; margin: 0 0 var(--space-2); }
.ticks li { position: relative; padding-left: 1.6rem; margin-bottom: 0.45rem; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 0.7rem; height: 0.4rem; border-left: 2px solid var(--gold-deep); border-bottom: 2px solid var(--gold-deep); transform: rotate(-45deg); }
.section-dark .ticks li::before { border-color: var(--gold); }

/* Design themes — echo of their gold preview ribbon, as real text */
.themes { display: grid; gap: var(--space-3); }
@media (min-width: 700px) { .themes { grid-template-columns: repeat(3, 1fr); } }
.theme { position: relative; overflow: hidden; border: 2px solid var(--black); border-radius: var(--radius); padding: var(--space-4) var(--space-3) var(--space-3); background: var(--white); }
.theme svg { width: 4.5rem; height: 4.5rem; margin-bottom: var(--space-2); }
.theme p { color: var(--muted); margin: 0; }
.ribbon { position: absolute; top: 1.1rem; right: -2.6rem; width: 10rem; transform: rotate(35deg); text-align: center; background: linear-gradient(135deg, var(--gold), var(--gold-2)); color: var(--black); font-size: 0.78rem; font-weight: 800; padding: 0.25rem 0; box-shadow: 0 1px 3px rgba(0,0,0,.18); }

/* Steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-3); counter-reset: step; }
@media (min-width: 880px) { .steps { grid-template-columns: repeat(3, 1fr); gap: var(--space-4); } }
.steps li { counter-increment: step; border-top: 2px solid var(--gold); padding-top: var(--space-3); }
.steps li::before { content: counter(step); display: block; font-weight: 800; font-size: 2.4rem; line-height: 1; color: var(--gold); margin-bottom: var(--space-2); }

/* Values (about) */
.values { display: grid; gap: var(--space-3) var(--space-4); }
@media (min-width: 700px) { .values { grid-template-columns: repeat(2, 1fr); } }
.values h3 { margin-bottom: 0.4rem; }
.values > div { border-left: 3px solid var(--gold-2); padding-left: var(--space-3); }
.values p { color: var(--muted); }

.quote { font-size: var(--step-2); line-height: 1.35; font-weight: 600; margin: 0; max-width: 40rem; }
.quote-mark { color: var(--gold-deep); }

/* CTA band */
.cta-band { background: linear-gradient(135deg, var(--gold), var(--gold-2)); color: var(--black); padding-block: var(--space-5); }
.cta-band .wrap { display: grid; gap: var(--space-3); align-items: center; }
@media (min-width: 880px) { .cta-band .wrap { grid-template-columns: 1.4fr 1fr; } .cta-band .actions { justify-content: flex-end; margin-top: 0; } }
.cta-band h2 { margin-bottom: 0.5rem; }
.cta-band p { margin: 0; }
.cta-band .btn-ghost { color: var(--black); }
.cta-band .btn-ghost:hover { background: var(--black); color: var(--white); border-color: var(--black); }

/* FAQ */
.faq-list { display: grid; gap: 0.75rem; }
.faq-list details { border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.faq-list summary { cursor: pointer; list-style: none; padding: 1.1rem 3.2rem 1.1rem 1.25rem; font-weight: 600; font-size: var(--step-1); line-height: 1.35; position: relative; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: ""; position: absolute; right: 1.35rem; top: 50%; width: 0.6rem; height: 0.6rem; border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: translateY(-70%) rotate(45deg); transition: transform .15s; }
.faq-list details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq-list details[open] { border-color: var(--gold-2); box-shadow: inset 3px 0 0 var(--gold-2); }
.faq-list summary:hover { background: var(--gold-wash); }
.faq-list details p { padding: 0 1.25rem 1.25rem; margin: 0; color: var(--muted); }

/* Contact */
.contact-grid { display: grid; gap: var(--space-4); }
@media (min-width: 880px) { .contact-grid { grid-template-columns: 1fr 1.2fr; gap: var(--space-5); } }
.contact-card { background: var(--stone); border-radius: var(--radius); padding: var(--space-4) var(--space-3); }
.contact-list { list-style: none; margin: 0 0 var(--space-3); padding: 0; display: grid; gap: var(--space-3); }
.contact-list strong { display: block; font-size: var(--step--1); color: var(--muted); font-weight: 600; }
.contact-list a, .contact-list span { font-size: var(--step-1); font-weight: 600; word-break: break-word; }
.form { display: grid; gap: var(--space-3); }
.field label { display: block; font-weight: 600; margin-bottom: 0.35rem; }
.field input, .field textarea {
  width: 100%; font: inherit; color: var(--ink); background: var(--white);
  border: 1.5px solid #8f8a80; border-radius: var(--radius); padding: 0.75rem 0.9rem;
}
.field textarea { min-height: 9rem; resize: vertical; }
.field input:focus, .field textarea:focus { outline: 3px solid var(--gold); outline-offset: 1px; border-color: var(--black); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-status { padding: 1rem 1.1rem; border-radius: var(--radius); font-weight: 600; }
.form-status.ok { background: var(--gold-wash); border-left: 4px solid var(--gold-2); }
.form-status.err { background: #fdecea; border-left: 4px solid #b3261e; }
.small { font-size: var(--step--1); color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer { background: var(--black); color: var(--muted-on-dark); padding-block: var(--space-5) var(--space-3); font-size: 0.98rem; }
.footer-grid { display: grid; gap: var(--space-4); }
@media (min-width: 880px) { .footer-grid { grid-template-columns: 1.3fr 1fr 1fr; } }
.site-footer h2 { font-size: 1rem; color: var(--white); margin-bottom: var(--space-2); letter-spacing: 0; }
.site-footer a { color: var(--white); }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.4rem; }
.site-footer address { font-style: normal; display: grid; gap: 0.35rem; }
.footer-brand { display: flex; align-items: center; gap: 0.75rem; margin-bottom: var(--space-2); color: var(--white); font-weight: 800; font-size: 1.1rem; }
.footer-brand img { width: 48px; height: 48px; outline: 1px solid #3a3833; }
.fine { border-top: 1px solid #2a2824; margin-top: var(--space-4); padding-top: var(--space-3); display: grid; gap: 0.35rem; font-size: 0.85rem; color: #a7a39b; }
.fine p { margin: 0; }
.fine a { color: #d6d2ca; }

/* 404 / gone */
.notfound { padding-block: var(--space-5); }
.notfound ul { padding-left: 1.2rem; }

/* ---------- No-photo hero: their D monogram beside the tagline ---------- */
.hero-grid { display: grid; gap: var(--space-4); align-items: center; }
.hero-grid .hero-copy { padding-block: var(--space-5); }
.hero-mark { display: none; }
@media (min-width: 880px) {
  .hero-grid { grid-template-columns: 1.5fr 1fr; }
  .hero-mark { display: block; justify-self: end; width: min(100%, 22rem); position: relative; }
  .hero-mark::before { content: ""; position: absolute; inset: -1.25rem; border: 2px solid var(--gold-2); border-radius: var(--radius); }
  .hero-mark img { position: relative; width: 100%; height: auto; outline: 1px solid #3a3833; }
}

/* Offer cards without photos */
.offer { border-top: 4px solid var(--gold-2); }
.offer-icon { width: 3.5rem; height: 3.5rem; margin-bottom: var(--space-2); }

/* Engraving themes list (candles page) */
.theme-list { list-style: none; margin: 0; padding: var(--space-3); display: grid; gap: var(--space-3); background: var(--black); color: var(--white); border-radius: var(--radius); }
.theme-list li { display: grid; grid-template-columns: 3.25rem 1fr; gap: var(--space-2); align-items: start; }
.theme-list li + li { border-top: 1px solid #2a2824; padding-top: var(--space-3); }
.theme-list svg { width: 3.25rem; height: 3.25rem; color: var(--gold); }
.theme-list h3 { color: var(--white); margin-bottom: 0.25rem; }
.theme-list p { color: var(--muted-on-dark); margin: 0; }
@media (min-width: 880px) { .theme-list { padding: var(--space-4); } }
