/* G&G Electric Gate D package: shared base. Theme files (a.css, b.css, c.css) set the tokens. */
*, *::before, *::after { box-sizing: border-box; }
:root {
  /* one 8-px spacing scale */
  --s1: 8px; --s2: 16px; --s3: 24px; --s4: 32px; --s6: 48px; --s8: 64px; --s12: 96px; --s16: 128px;
  --pill-bg: #F0D008; --pill-ink: #142030;
}
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font-body); font-size: 17px; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, ul, ol, dl, dd, dt, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }

/* type scale: H1 / H2 / H3 / lead / body / label */
h1, h2, h3 { font-family: var(--font-head); font-weight: var(--head-weight); letter-spacing: -0.02em; line-height: 1.1; }
h1 { font-size: clamp(40px, 6vw, 60px); }
h2 { font-size: clamp(28px, 4vw, 40px); }
h3 { font-size: 22px; line-height: 1.25; letter-spacing: -0.01em; }
.lead { font-size: 20px; line-height: 1.5; }
.label { font-size: 16px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; line-height: 1.25; }
.label:has(> .rule) { display: flex; align-items: center; gap: var(--s2); }
.muted { color: var(--muted); }
.line { display: block; }

/* layout */
.wrap { max-width: 1136px; margin: 0 auto; padding: 0 var(--s3); }
section { padding: var(--s8) 0; }
.stack > * + * { margin-top: var(--s2); }
.section-head { margin-bottom: var(--s4); }
.section-head .label { display: flex; align-items: center; gap: var(--s2); margin-bottom: var(--s2); color: var(--muted); }
.section-head p:not(.label) { margin-top: var(--s2); max-width: 56ch; color: var(--muted); }
.rule { display: inline-block; flex: none; width: 48px; height: 2px; background: #244E2A; }

/* [CONFIRM] pill: same amber + ink on every direction, so reviewers learn one signal */
.confirm {
  display: inline-block; vertical-align: middle; padding: 0 var(--s1); border-radius: 999px;
  background: var(--pill-bg); color: var(--pill-ink);
  font-family: var(--font-body); font-size: 16px; font-weight: 600; line-height: 24px; letter-spacing: 0; text-transform: none; white-space: nowrap;
}
.tbc { border-bottom: 2px dashed currentColor; }

/* buttons: one radius, one shadow, 48 px minimum */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s1);
  min-height: 56px; min-width: 48px; padding: 0 var(--s3);
  border: 2px solid transparent; border-radius: var(--r); box-shadow: var(--shadow);
  font-family: var(--font-body); font-size: 17px; font-weight: 600; line-height: 1.2; text-decoration: none; white-space: nowrap;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.btn img { width: 20px; height: 20px; flex: none; }
.btn-sm { min-height: 48px; padding: 0 var(--s2); font-size: 16px; }
.btn-row { display: flex; flex-direction: column; gap: var(--s2); }
.stack .btn { white-space: normal; }
a:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }

/* header */
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: var(--s2); min-height: 80px; }
.brand { display: flex; align-items: center; gap: var(--s1); font-family: var(--font-head); font-weight: var(--head-weight); font-size: 18px; letter-spacing: -0.01em; white-space: nowrap; }
.header-calls { display: flex; gap: var(--s1); }

/* cards, icon tiles */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); padding: var(--s3); }
.ico { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: var(--r); background: var(--tint); }
.ico img { width: 24px; height: 24px; }
.grid-2 { display: grid; gap: var(--s2); grid-template-columns: 1fr; }
.service h3 { margin-top: var(--s2); }
.service h3 .confirm { margin-left: var(--s1); }
.service p { margin-top: var(--s1); color: var(--muted); }

/* photo slots: labeled, illustrated, never empty */
.slots { display: grid; gap: var(--s3); grid-template-columns: 1fr; }
.slot { overflow: hidden; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); }
.slot > img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; background: var(--slot-bg); }
.slot figcaption { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s1) var(--s2); padding: var(--s2); font-size: 16px; font-weight: 600; line-height: 1.4; }
.coming { display: inline-flex; align-items: center; gap: var(--s1); font-weight: 500; color: var(--muted); white-space: nowrap; }
.coming img { width: 20px; height: 20px; }

/* small rows */
.fact { display: flex; align-items: center; gap: var(--s1); font-size: 16px; line-height: 1.5; }
.fact img { width: 20px; height: 20px; flex: none; }
.email-row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s1) var(--s2); }

/* footer */
.site-footer { padding: var(--s6) 0; font-size: 16px; }
.site-footer .rule { margin-bottom: var(--s3); }
.site-footer p + p { margin-top: var(--s1); }

@media (prefers-reduced-motion: reduce) {
  .btn { transition: none; }
}

@media (min-width: 480px) {
  .brand { font-size: 20px; }
  .btn-row { flex-direction: row; flex-wrap: wrap; }
}
@media (min-width: 800px) {
  .wrap { padding: 0 var(--s4); }
  section { padding: var(--s12) 0; }
  .card { padding: var(--s4); }
  .grid-2 { grid-template-columns: 1fr 1fr; gap: var(--s3); }
  .slots { grid-template-columns: repeat(3, 1fr); }
  .section-head { margin-bottom: var(--s6); }
}

/* ---------- style-tile pages ---------- */
.tile-top { padding: var(--s8) 0 var(--s4); }
.tile-top .label { color: var(--muted); margin-bottom: var(--s2); }
.tile-top .lead { margin-top: var(--s2); max-width: 60ch; color: var(--muted); }
.tile-page h2 { font-size: 28px; margin-bottom: var(--s3); }
.swatches { display: grid; gap: var(--s2); grid-template-columns: repeat(2, 1fr); }
.swatch { overflow: hidden; padding: 0; }
.swatch .chip { height: 96px; border-bottom: 1px solid var(--line); }
.swatch div:last-child { padding: var(--s2); font-size: 16px; line-height: 1.4; }
.swatch b { display: block; }
.specimen > * + * { margin-top: var(--s3); }
.specimen .note { display: block; margin-top: var(--s1); font-family: var(--font-body); font-size: 16px; font-weight: 400; letter-spacing: 0; line-height: 1.5; color: var(--muted); }
.kit { display: grid; gap: var(--s3); grid-template-columns: 1fr; }
.icon-row { display: flex; flex-wrap: wrap; gap: var(--s2); }
.plan li { display: flex; gap: var(--s2); align-items: flex-start; padding: var(--s2) 0; border-top: 1px solid var(--line); }
.plan li:last-child { border-bottom: 1px solid var(--line); }
.framed { overflow: hidden; border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); }
@media (min-width: 800px) {
  .swatches { grid-template-columns: repeat(6, 1fr); }
  .swatches.five { grid-template-columns: repeat(5, 1fr); }
  .kit { grid-template-columns: 1fr 1fr; }
}
