/* Growth Operator shared base
   Mobile-first, accessible starter styles used by demo sites and templates.
   Each site overrides colors and typography with theme.css. */

:root {
  --font-sans: "Outfit", "Segoe UI", system-ui, sans-serif;
  --font-serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --font-display: "Playfair Display", Georgia, serif;
  --font-cond: "Oswald", "Arial Narrow", "Franklin Gothic Medium", sans-serif;
  --ink: #1a1a1a;
  --muted: #5c5c5c;
  --bg: #fff;
  --surface: #f5f5f5;
  --brand: #1f4e79;
  --brand-ink: #fff;
  --accent: #c4a574;
  --line: #d8d4ce;
  --danger: #8b1e1e;
  --focus: #0b57d0;
  --wrap: 70rem;
  --narrow: 40rem;
  --radius: 0.5rem;
  --header-h: 4.25rem;
  --shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.08);
  --space: 1.25rem;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  min-height: 100vh;
}

img { max-width: 100%; height: auto; display: block; }
svg { display: block; }

h1, h2, h3, h4 {
  line-height: 1.2;
  margin: 0 0 0.75rem;
  font-weight: 700;
  text-wrap: balance;
}

h1 { font-size: clamp(1.9rem, 4vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.15rem); }
h3 { font-size: 1.2rem; }

p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }

a {
  color: var(--brand);
  text-underline-offset: 0.15em;
}
a:hover { text-decoration-thickness: 0.1em; }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 0.75rem;
  top: -3.5rem;
  z-index: 100;
  background: #fff;
  color: #000;
  padding: 0.5rem 0.85rem;
  font-weight: 600;
}
.skip-link:focus { top: 0.75rem; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.wrap {
  width: min(100% - 1.75rem, var(--wrap));
  margin-inline: auto;
}
.wrap.narrow { width: min(100% - 1.75rem, var(--narrow)); }

/* Required demonstration notice: banner and footer on every demo page */
.demo-banner {
  background: #111;
  color: #f4f1ea;
  text-align: center;
  font-size: 0.82rem;
  line-height: 1.45;
  padding: 0.55rem 1rem;
  letter-spacing: 0.01em;
}
.demo-banner a { color: #fff; }

.site-header {
  background: var(--header-bg, var(--bg));
  color: var(--header-ink, var(--ink));
  border-bottom: 1px solid var(--header-line, var(--line));
  position: sticky;
  top: 0;
  z-index: 40;
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.25rem;
  padding: 0.85rem 0;
}

.logo {
  color: inherit;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.02em;
  font-size: 1.05rem;
}
.logo:hover { text-decoration: none; }
.logo span { display: block; font-weight: 500; font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.8; }

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.1rem;
  font-size: 0.95rem;
}
.site-nav a {
  color: inherit;
  text-decoration: none;
  padding: 0.2rem 0;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover,
.site-nav a[aria-current="page"] {
  border-bottom-color: var(--nav-underline, var(--accent));
}

.btn,
button.btn {
  display: inline-block;
  background: var(--brand);
  color: var(--brand-ink);
  text-decoration: none;
  border: 2px solid var(--brand);
  font: inherit;
  font-weight: 600;
  padding: 0.7rem 1.15rem;
  border-radius: var(--radius);
  cursor: pointer;
  line-height: 1.2;
}
.btn:hover { filter: brightness(1.08); text-decoration: none; }
.btn-ghost {
  background: transparent;
  color: inherit;
  border-color: currentColor;
}

.hero {
  position: relative;
  color: var(--hero-ink, #fff);
  background: var(--hero-bg, #1a1a1a);
  min-height: 22rem;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.hero-media {
  position: absolute;
  inset: 0;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--hero-overlay, linear-gradient(to top, rgba(0,0,0,.72) 10%, rgba(0,0,0,.25) 70%));
}
.hero-copy {
  position: relative;
  z-index: 1;
  padding: 3.5rem 0 2.5rem;
  width: min(100% - 1.75rem, var(--wrap));
  margin-inline: auto;
  max-width: 40rem;
}
.hero-copy.wide { max-width: 50rem; }
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 0.6rem;
}
.hero p.lede { font-size: 1.1rem; max-width: 36rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 1.25rem; }

.section { padding: 3rem 0; }
.section-muted { background: var(--surface); }
.section-header { margin-bottom: 1.75rem; max-width: 40rem; }

.grid {
  display: grid;
  gap: 1.25rem;
}
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: 1fr 1fr; }

.card {
  background: var(--card-bg, var(--bg));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.card img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.card-body { padding: 1.1rem 1.15rem 1.25rem; }
.card-body h3 { margin-bottom: 0.4rem; }

.split {
  display: grid;
  gap: 1.5rem;
  align-items: center;
}
.split img {
  width: 100%;
  border-radius: var(--radius);
  aspect-ratio: 4/3;
  object-fit: cover;
}

.gallery-grid {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: 1fr 1fr;
}
.gallery-grid figure { margin: 0; }
.gallery-grid img {
  width: 100%;
  height: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: calc(var(--radius) - 2px);
}
.gallery-grid figcaption {
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: 0.35rem;
}

.placeholder-block {
  border: 1px dashed var(--line);
  background: var(--surface);
  color: var(--muted);
  padding: 1.15rem 1.2rem;
  border-radius: var(--radius);
}
.placeholder-block h3 { color: var(--ink); }

.form-demo-note {
  background: #fff6d8;
  color: #3b2f00;
  border: 1px solid #e4d28a;
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  margin-bottom: 1.15rem;
  font-size: 0.95rem;
}

form.contact-form,
form.lead-form {
  display: grid;
  gap: 0.9rem;
}
.field { display: grid; gap: 0.3rem; }
.field label { font-weight: 600; font-size: 0.95rem; }
.field input,
.field select,
.field textarea {
  font: inherit;
  padding: 0.65rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 0.35rem;
  background: #fff;
  color: #111;
  width: 100%;
}
.field textarea { min-height: 8rem; resize: vertical; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 3px solid var(--focus);
  outline-offset: 1px;
  border-color: var(--focus);
}

.contact-panel {
  display: grid;
  gap: 1.5rem;
}

.hours, .address, .contact-list { margin: 0; }
.contact-list { list-style: none; padding: 0; }
.contact-list li { margin-bottom: 0.4rem; }

.site-footer {
  background: var(--footer-bg, #161616);
  color: var(--footer-ink, #eeeae4);
  padding: 0 0 2rem;
  margin-top: auto;
}
.site-footer .demo-banner {
  margin-bottom: 1.75rem;
}
.footer-inner {
  display: grid;
  gap: 1.25rem;
}
.site-footer a { color: inherit; }
.site-footer .tiny {
  font-size: 0.82rem;
  opacity: 0.85;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
}

.credits-line {
  font-size: 0.8rem;
  opacity: 0.8;
}

.page-hero {
  padding: 2.5rem 0 1.25rem;
}
.page-hero p { color: var(--muted); max-width: 38rem; }

@media (min-width: 40rem) {
  .grid-2, .split, .contact-panel { grid-template-columns: 1fr 1fr; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .gallery-grid { grid-template-columns: 1fr 1fr 1fr; }
}

@media (min-width: 60rem) {
  .grid-3 { grid-template-columns: 1fr 1fr 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr 1fr 1fr; }
  .hero { min-height: 28rem; }
  .section { padding: 4rem 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
