/*
Theme Name: The Town
Theme URI: https://example.com/
Author: Fine Line Developers
Description: WordPress conversion of The Town static website, with editable WordPress page content and Customizer settings.
Version: 1.0.0
Requires at least: 6.0
License: GPL-2.0-or-later
Text Domain: the-town
*/
/* ============================================================
   THE TOWN — Winchester convenience store
   Design tokens
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600;9..144,700;9..144,900&family=Work+Sans:wght@400;500;600;700&display=swap');

:root{
  --ink:        #1B1712;   /* near-black, warm */
  --ink-soft:   #262019;
  --brass:      #C79A3F;   /* primary gold accent */
  --brass-deep: #8A6423;   /* hover / pressed gold */
  --parchment:  #F3ECDD;   /* warm cream background */
  --paper:      #FBF8F2;   /* lighter card background */
  --brick:      #7A3423;   /* terracotta accent */
  --pine:       #2E4238;   /* deep green accent */
  --charcoal:   #2A2621;   /* body copy */
  --line:       rgba(27,23,18,0.12);
  --line-brass: rgba(199,154,63,0.45);

  --serif: 'Fraunces', Georgia, serif;
  --sans:  'Work Sans', -apple-system, Segoe UI, sans-serif;

  --wrap: 1160px;
}

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin:0;
  font-family: var(--sans);
  background: var(--parchment);
  color: var(--charcoal);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img{ max-width:100%; display:block; }
a{ color: inherit; text-decoration:none; }
h1,h2,h3,h4{
  font-family: var(--serif);
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 .5em;
  letter-spacing: -0.01em;
}
h1{ font-weight: 700; }
p{ margin: 0 0 1em; max-width: 62ch; }
.wrap{ max-width: var(--wrap); margin: 0 auto; padding: 0 28px; }
:focus-visible{ outline: 2px solid var(--brick); outline-offset: 3px; }

/* ---------- utility ---------- */
.rule{ border:0; border-top:1px solid var(--line-brass); margin: 0; }
.section{ padding: 88px 0; }
.section--tight{ padding: 56px 0; }
.section--ink{ background: var(--ink); color: #EFE7D6; }
.section--ink h2, .section--ink h3{ color: var(--parchment); }
.section--ink p{ color: rgba(239,231,214,0.78); }
.kicker{
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  color: var(--brick);
  font-size: 1.05rem;
  margin: 0 0 .6em;
}
.section--ink .kicker{ color: var(--brass); }
.btn{
  display:inline-flex;
  align-items:center;
  gap:.5em;
  font-family: var(--sans);
  font-weight:600;
  font-size: .96rem;
  padding: .85em 1.6em;
  border-radius: 3px;
  border: 1px solid transparent;
  cursor:pointer;
  transition: background .18s ease, color .18s ease, border-color .18s ease;
}
.btn--brass{ background: var(--brass); color: var(--ink); }
.btn--brass:hover{ background: var(--brass-deep); color: var(--parchment); }
.btn--ghost{ background: transparent; border-color: rgba(243,236,221,0.5); color: inherit; }
.btn--ghost:hover{ border-color: var(--brass); color: var(--brass); }
.btn--ghost-dark{ background: transparent; border-color: var(--ink); color: var(--ink); }
.btn--ghost-dark:hover{ background: var(--ink); color: var(--parchment); }

.grid{ display:grid; gap: 32px; }
.grid--2{ grid-template-columns: 1fr 1fr; }
.grid--3{ grid-template-columns: repeat(3,1fr); }
.grid--4{ grid-template-columns: repeat(4,1fr); }

/* arched "window" motif — echoes the shop's sash windows */
.arch{
  border-radius: 90px 90px 4px 4px;
  overflow:hidden;
  border: 1px solid var(--line-brass);
  background: var(--paper);
}
.arch img{ width:100%; height:100%; object-fit: cover; display:block; }

/* ---------- nav ---------- */
.nav{
  position: sticky; top:0; z-index: 50;
  background: var(--ink);
  border-bottom: 1px solid rgba(199,154,63,0.28);
}
.nav .wrap{
  display:flex; align-items:center; justify-content:space-between;
  height: 76px;
}
.wordmark{
  display:flex; align-items:center; gap:.55em;
  font-family: var(--serif); font-weight:700; font-size:1.35rem;
  color: var(--parchment); letter-spacing:.01em;
}
.wordmark .star{ color: var(--brass); font-size:1.1rem; transform:translateY(-1px); }
.wordmark small{
  display:block; font-family: var(--sans); font-weight:500;
  font-size:.56rem; letter-spacing:.14em; color: var(--brass);
  margin-top:2px;
}
.navlinks{ display:flex; align-items:center; gap: 30px; }
.navlinks a{
  font-size:.94rem; font-weight:500; color: rgba(243,236,221,0.72);
  padding: 6px 2px; border-bottom: 2px solid transparent;
}
.navlinks a:hover{ color: var(--parchment); }
.navlinks a.active{ color: var(--parchment); border-bottom-color: var(--brass); }
.nav-cta{
  font-size:.85rem; font-weight:600; color: var(--ink); background: var(--brass);
  padding:.6em 1.1em; border-radius:3px;
}
.nav-cta:hover{ background: var(--brass-deep); color: var(--parchment); }
.navtoggle{ display:none; }

/* ---------- hero ---------- */
.hero{
  position:relative; min-height: 78vh; display:flex; align-items:flex-end;
  background-size: cover; background-position: center;
  color: var(--parchment);
}
.hero::after{
  content:""; position:absolute; inset:0;
  background: linear-gradient(180deg, rgba(20,17,12,0.15) 0%, rgba(20,17,12,0.35) 45%, rgba(15,12,9,0.92) 100%);
}
.hero .wrap{ position:relative; z-index:2; padding-bottom: 64px; padding-top:120px; }
.hero .kicker{ color: var(--brass); }
.hero h1{
  color:#fff; font-size: clamp(2.4rem, 5vw, 4rem); max-width: 14ch; margin-bottom:.3em;
  line-height:1.04;
}
.hero p{ color: rgba(255,255,255,0.86); font-size:1.12rem; max-width:46ch; }
.hero-actions{ display:flex; gap:16px; margin-top: 28px; flex-wrap:wrap; }
.hero-strip{
  position:relative; z-index:2; margin-top:44px; padding-top:26px;
  border-top:1px solid rgba(243,236,221,0.22);
  display:flex; gap:44px; flex-wrap:wrap;
}
.hero-strip div{ font-size:.85rem; color: rgba(243,236,221,0.65); }
.hero-strip strong{ display:block; font-family:var(--serif); font-size:1.05rem; color:#fff; font-weight:600; }

.page-hero{
  padding: 150px 0 56px; background: var(--ink); color: var(--parchment);
}
.page-hero .kicker{ color: var(--brass); }
.page-hero h1{ color:#fff; font-size: clamp(2.1rem,4vw,3rem); max-width: 20ch; }
.page-hero p{ color: rgba(243,236,221,0.75); font-size:1.05rem; }
.crumb{ font-size:.82rem; color: rgba(243,236,221,0.5); margin-bottom:18px; }
.crumb a:hover{ color: var(--brass); }

/* ---------- cards ---------- */
.card{
  background: var(--paper); border:1px solid var(--line);
  padding: 30px; border-radius: 4px;
}
.card--arch{ border-radius: 60px 60px 4px 4px; }
.tag{
  display:inline-block; font-size:.72rem; font-weight:600; letter-spacing:.03em;
  color: var(--brick); background: rgba(122,52,35,0.08);
  border:1px solid rgba(122,52,35,0.25); padding:.3em .8em; border-radius: 20px;
  margin-bottom: 14px;
}
.tag--pine{ color: var(--pine); background: rgba(46,66,56,0.08); border-color: rgba(46,66,56,0.25); }
.tag--brass{ color: var(--brass-deep); background: rgba(199,154,63,0.12); border-color: rgba(199,154,63,0.4); }

.stat{ font-family: var(--serif); font-size: 2.6rem; font-weight:700; color: var(--brick); line-height:1; }
.section--ink .stat{ color: var(--brass); }

/* ---------- footer ---------- */
footer{ background: var(--ink); color: rgba(243,236,221,0.7); padding: 64px 0 28px; }
footer h4{ color: var(--parchment); font-size:1.05rem; }
footer a:hover{ color: var(--brass); }
.foot-grid{ display:grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 40px; }
.foot-grid p, .foot-grid li{ font-size:.92rem; }
.foot-grid ul{ list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:10px; }
.foot-bottom{
  margin-top: 48px; padding-top: 22px; border-top:1px solid rgba(243,236,221,0.15);
  display:flex; justify-content:space-between; font-size:.8rem; color: rgba(243,236,221,0.45);
  flex-wrap:wrap; gap:10px;
}

/* ---------- misc components ---------- */
.hours-plaque{
  background: var(--ink); color: var(--parchment); padding: 34px 36px;
  border-radius: 4px; border:1px solid rgba(199,154,63,0.35);
}
.hours-plaque h3{ color: var(--brass); }
.hours-row{ display:flex; justify-content:space-between; padding:9px 0; border-bottom:1px solid rgba(243,236,221,0.1); font-size:.94rem; }
.hours-row:last-child{ border-bottom:none; }
.hours-row span:last-child{ color: rgba(243,236,221,0.65); }

.map-embed{ border:1px solid var(--line-brass); border-radius:4px; overflow:hidden; }
.map-embed iframe{ width:100%; height: 420px; border:0; display:block; }

.form-field{ margin-bottom: 20px; }
.form-field label{ display:block; font-size:.85rem; font-weight:600; margin-bottom:6px; color: var(--ink); }
.form-field input, .form-field textarea, .form-field select{
  width:100%; padding: .8em 1em; border:1px solid var(--line); border-radius:3px;
  background: var(--paper); font-family: var(--sans); font-size: .96rem; color: var(--charcoal);
}
.form-field input:focus, .form-field textarea:focus{ border-color: var(--brass); outline:none; }

.badge-row{ display:flex; gap:14px; flex-wrap:wrap; margin-top:10px; }
.badge{
  display:flex; align-items:center; gap:.5em; font-size:.85rem; font-weight:600;
  color: var(--ink); background: var(--parchment); border:1px solid var(--line-brass);
  padding:.55em 1em; border-radius: 30px;
}

.age-banner{
  background: var(--brick); color:#fff; text-align:center; font-size:.88rem;
  padding: 10px 16px;
}
.age-banner strong{ font-weight:700; }

.divider-mark{ text-align:center; color: var(--brass); font-size:1.2rem; margin: 6px 0 0; }

/* ---------- icons (original line-art set) ---------- */
.icon{ width:30px; height:30px; stroke:var(--brass); stroke-width:1.6; fill:none; stroke-linecap:round; stroke-linejoin:round; }
.icon--dark{ stroke: var(--ink); }
.icon-badge{
  display:inline-flex; align-items:center; justify-content:center;
  width:52px; height:52px; border-radius: 50% 50% 4px 4px;
  background: rgba(199,154,63,0.1); border:1px solid var(--line-brass);
  margin-bottom:16px;
}
.section--ink .icon-badge{ background: rgba(199,154,63,0.14); }
.badge svg{ width:18px; height:18px; stroke: var(--brick); fill:none; stroke-width:1.8; }

/* ---------- decorative motif ---------- */
.motif-wrap{ position:relative; }
.motif{
  position:absolute; opacity:0.16; pointer-events:none;
}
.motif--corner{ width:260px; height:260px; top:-40px; right:-40px; }
.hero .motif{ opacity:0.22; }

@media (max-width: 880px){
  .grid--2, .grid--3, .grid--4{ grid-template-columns: 1fr; }
  .foot-grid{ grid-template-columns: 1fr 1fr; }
  .navlinks{ display:none; }
  .nav-cta{ display:none; }
}

/* WordPress enhancements */
.nav-toggle{display:none;background:transparent;border:1px solid rgba(199,154,63,.45);color:var(--parchment);padding:8px 10px;border-radius:3px;font:600 .85rem var(--sans);cursor:pointer}
@media(max-width:880px){.nav .wrap{height:auto;min-height:76px;flex-wrap:wrap;padding-top:12px;padding-bottom:12px}.nav-toggle{display:block}.navlinks.is-open{display:flex;order:5;width:100%;flex-direction:column;align-items:flex-start;gap:0;padding:10px 0 4px}.navlinks.is-open a{width:100%;padding:10px 2px}.nav-cta.is-mobile{display:inline-flex}.foot-grid{grid-template-columns:1fr 1fr}}
