/* Coastline Gutter Pros — base styles */

/* ── Fonts ─────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,400;0,9..144,500;0,9..144,600;0,9..144,700;0,9..144,800;1,9..144,400&family=Inter:wght@400;500;600;700&family=DM+Serif+Display&family=DM+Sans:wght@400;500;600;700&family=Plus+Jakarta+Sans:wght@400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

/* ── Tokens ────────────────────────────────────────────── */
:root {
  --color-primary:       #2D3F38;
  --color-primary-hover: #1F2D28;
  --color-accent:        #A9C4A9;
  --color-accent-soft:   #D4E2D4;
  --color-bg:            #F8F4EC;
  --color-surface:       #FFFFFF;
  --color-text:          #1F2D28;
  --color-text-muted:    #5A6B63;
  --color-border:        #E5E0D5;
  --color-star:          #F5B400;

  --font-display: 'Fraunces', ui-serif, Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: ui-monospace, 'SF Mono', Menlo, monospace;

  /* Density */
  --density: 1;
  --radius-card: 14px;
  --radius-btn: 10px;
  --radius-input: 10px;

  --shadow-sm: 0 1px 2px rgba(31,45,40,.04), 0 1px 1px rgba(31,45,40,.03);
  --shadow-md: 0 4px 14px rgba(31,45,40,.06), 0 2px 4px rgba(31,45,40,.04);
  --shadow-lg: 0 14px 40px rgba(31,45,40,.10), 0 6px 12px rgba(31,45,40,.06);

  --maxw: 1200px;
  --maxw-narrow: 880px;
}

/* Variant: Coastline (bolder) */
:root[data-variant="coastline"] {
  --radius-card: 18px;
}

/* Density: compact / roomy */
:root[data-density="compact"] { --density: 0.82; }
:root[data-density="roomy"]   { --density: 1.15; }

/* Font pair overrides via Tweaks */
:root[data-fonts="fraunces-jakarta"] { --font-display: 'Fraunces', serif; --font-body: 'Plus Jakarta Sans', system-ui, sans-serif; }
:root[data-fonts="dmserif-dmsans"]   { --font-display: 'DM Serif Display', serif; --font-body: 'DM Sans', system-ui, sans-serif; }
:root[data-fonts="outfit-inter"]     { --font-display: 'Outfit', system-ui, sans-serif; --font-body: 'Inter', system-ui, sans-serif; }

/* ── Reset / base ──────────────────────────────────────── */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: 'ss01', 'cv11';
}
a { color: inherit; text-decoration: none; }
a:hover { color: var(--color-primary-hover); }
img, svg { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, select, textarea { font-family: inherit; font-size: inherit; }
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--color-primary); margin: 0; letter-spacing: -0.01em; text-wrap: balance; }
h1 { font-size: clamp(2.4rem, 4.6vw, 4rem); line-height: 1.02; font-weight: 500; letter-spacing: -0.025em; }
h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); line-height: 1.1; font-weight: 500; letter-spacing: -0.02em; }
h3 { font-size: 1.25rem; line-height: 1.25; font-weight: 600; font-family: var(--font-body); color: var(--color-primary); }
h4 { font-size: 1rem; font-weight: 600; font-family: var(--font-body); }
p  { margin: 0; color: var(--color-text); text-wrap: pretty; }
.muted { color: var(--color-text-muted); }

/* Display refinement */
h1 .ital, h2 .ital { font-style: italic; font-weight: 400; }

/* ── Layout helpers ────────────────────────────────────── */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.wrap-n { max-width: var(--maxw-narrow); margin: 0 auto; padding: 0 24px; }
.section { padding: calc(96px * var(--density)) 0; }
.section-sm { padding: calc(56px * var(--density)) 0; }
.stack > * + * { margin-top: var(--stack-gap, 16px); }
.eyebrow {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow::before {
  content: ''; width: 22px; height: 1px; background: currentColor; opacity: .6;
}

/* ── Buttons ───────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px;
  padding: 14px 22px;
  font-weight: 600; font-size: 15px;
  border-radius: var(--radius-btn);
  transition: background .15s ease, color .15s ease, transform .15s ease, border-color .15s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--color-primary); color: #F8F4EC;
}
.btn-primary:hover { background: var(--color-primary-hover); color: #F8F4EC; }
.btn-secondary {
  background: transparent; color: var(--color-primary);
  border: 1px solid var(--color-primary);
}
.btn-secondary:hover { background: var(--color-primary); color: #F8F4EC; }
.btn-ghost {
  background: transparent; color: var(--color-primary);
}
.btn-ghost:hover { background: var(--color-accent-soft); }
.btn-lg { padding: 18px 28px; font-size: 16px; }
.btn-sm { padding: 10px 16px; font-size: 14px; }
:root[data-cta="pill"] .btn { border-radius: 999px; }
:root[data-cta="outline"] .btn-primary { background: transparent; color: var(--color-primary); border: 1px solid var(--color-primary); }
:root[data-cta="outline"] .btn-primary:hover { background: var(--color-primary); color: #F8F4EC; }

/* ── Cards ─────────────────────────────────────────────── */
.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: 28px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { border-color: #D9D1BE; box-shadow: var(--shadow-md); }

/* ── Tags / chips ──────────────────────────────────────── */
.tag {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: 999px;
  font-size: 12px; font-weight: 600; letter-spacing: .02em;
  background: var(--color-accent-soft); color: var(--color-primary);
  border: 1px solid rgba(169,196,169,0.5);
}
.tag-muted { background: transparent; color: var(--color-text-muted); border: 1px solid var(--color-border); }

/* ── Inputs ────────────────────────────────────────────── */
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 13px; font-weight: 600; color: var(--color-primary); }
.field .hint { font-size: 12px; color: var(--color-text-muted); }
.input, .select, .textarea {
  width: 100%;
  padding: 13px 14px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-input);
  color: var(--color-text);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.input:focus, .select:focus, .textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(45,63,56,0.12);
}
.input::placeholder, .textarea::placeholder { color: #9AA59F; }
.textarea { min-height: 110px; resize: vertical; }

/* ── Star rating ───────────────────────────────────────── */
.stars { display: inline-flex; gap: 2px; color: var(--color-star); }

/* ── Placeholder imagery ───────────────────────────────── */
.ph {
  position: relative;
  background: repeating-linear-gradient(135deg, #EDE7D8 0 12px, #F2ECDE 12px 24px);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  overflow: hidden;
  color: var(--color-text-muted);
}
.ph-label {
  position: absolute; left: 14px; top: 14px; right: 14px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .02em;
  color: #6E7A70; line-height: 1.4;
  background: rgba(248,244,236,0.7); backdrop-filter: blur(4px);
  padding: 8px 10px; border-radius: 6px;
  border: 1px solid var(--color-border);
}
.ph-label b { color: var(--color-primary); font-weight: 600; }

/* Trust bar */
.trust-bar {
  background: var(--color-accent);
  color: var(--color-primary);
  padding: 18px 0;
  border-top: 1px solid rgba(31,45,40,0.05);
  border-bottom: 1px solid rgba(31,45,40,0.05);
}
.trust-bar .items {
  display: flex; gap: 48px; justify-content: center; flex-wrap: wrap;
  font-weight: 600; font-size: 14px; letter-spacing: .01em;
}
.trust-bar .item { display: flex; align-items: center; gap: 10px; }

/* divider */
.divider { height: 1px; background: var(--color-border); width: 100%; }

/* Focus style */
:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 3px; border-radius: 6px; }

/* Scroll behavior */
html { scroll-behavior: smooth; }

/* Accent intensity */
:root[data-accent="low"]  { --color-accent-soft: #ECEAD9; --color-accent: #C6D5C6; }
:root[data-accent="high"] { --color-accent-soft: #C9DDC9; --color-accent: #8FB08F; }

/* Utility */
.grid { display: grid; gap: 24px; }
.flex { display: flex; }
.between { display: flex; justify-content: space-between; align-items: center; }
.center { display: flex; justify-content: center; align-items: center; }
.gap-8 { gap: 8px; } .gap-12 { gap: 12px; } .gap-16 { gap: 16px; } .gap-24 { gap: 24px; }
.mt-8 { margin-top: 8px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; } .mt-32 { margin-top: 32px; } .mt-48 { margin-top: 48px; }
.mb-8 { margin-bottom: 8px; } .mb-16 { margin-bottom: 16px; } .mb-24 { margin-bottom: 24px; } .mb-32 { margin-bottom: 32px; }
.text-center { text-align: center; } .text-right { text-align: right; }

@media (max-width: 860px) {
  .section { padding: 64px 0; }
  .hide-m { display: none !important; }
  .wrap { padding: 0 20px; }
}
