/* Cibolo Creek Digital — design tokens
   bg: #FAF7F1 limestone paper | ink: #23302A cedar ink
   cedar: #4F6B4A | clay: #A9764A | water: #3E6E72 | line: #DDD5C3 | muted: #6B6355 */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600;9..144,700&family=Inter:wght@400;500;600&family=IBM+Plex+Mono:wght@400;500;600&display=swap');

:root {
  --bg: #FAF7F1;
  --ink: #23302A;
  --cedar: #4F6B4A;
  --cedar-dark: #3B5138;
  --clay: #A9764A;
  --water: #3E6E72;
  --line: #DDD5C3;
  --muted: #6B6355;
  --paper-raised: #F2EDE1;
  --max: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: 'Fraunces', serif; font-weight: 600; line-height: 1.12; margin: 0 0 0.5em; color: var(--ink); }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); font-weight: 600; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; color: var(--ink); }
a { color: var(--cedar-dark); text-decoration-color: var(--clay); text-underline-offset: 3px; }
a:hover { color: var(--clay); }
a:focus-visible, button:focus-visible, .btn:focus-visible {
  outline: 2px solid var(--water); outline-offset: 3px;
}

.mono { font-family: 'IBM Plex Mono', monospace; }
.eyebrow {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--clay);
  display: inline-block;
  margin-bottom: 0.9em;
}

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* Header / nav */
header.site {
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; background: rgba(250,247,241,0.92);
  backdrop-filter: blur(6px); z-index: 20;
}
.nav-row { display: flex; align-items: center; justify-content: space-between; padding: 18px 24px; max-width: var(--max); margin: 0 auto; }
.brand { font-family: 'Fraunces', serif; font-weight: 600; font-size: 1.15rem; color: var(--ink); text-decoration: none; }
.brand:hover { color: var(--ink); }
.brand span { color: var(--cedar); }
nav.main { display: flex; gap: 28px; align-items: center; }
nav.main a { font-size: 0.95rem; color: var(--ink); text-decoration: none; }
nav.main a:hover { color: var(--cedar); }
.nav-cta {
  background: var(--cedar); color: #fff !important; padding: 9px 18px; border-radius: 3px;
  font-size: 0.9rem; font-weight: 500;
}
.nav-cta:hover { background: var(--cedar-dark); color: #fff !important; }
.menu-toggle { display: none; background: none; border: none; font-size: 1.5rem; cursor: pointer; color: var(--ink); }

@media (max-width: 760px) {
  nav.main { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--bg);
    flex-direction: column; align-items: flex-start; gap: 0; border-bottom: 1px solid var(--line); }
  nav.main.open { display: flex; }
  nav.main a { padding: 14px 24px; width: 100%; border-top: 1px solid var(--line); }
  .nav-cta { margin: 14px 24px; text-align: center; }
  .menu-toggle { display: block; }
}

/* Hero with contour motif */
.hero { position: relative; overflow: hidden; padding: 76px 0 64px; }
.contour-bg {
  position: absolute; inset: 0; z-index: 0; opacity: 0.55; pointer-events: none;
}
.hero .wrap { position: relative; z-index: 1; }
.hero h1 { max-width: 820px; }
.hero .lede { font-size: 1.15rem; color: var(--muted); max-width: 620px; margin-bottom: 1.6em; }

.btn-row { display: flex; gap: 14px; flex-wrap: wrap; }
.btn {
  display: inline-block; padding: 12px 22px; border-radius: 3px; font-weight: 500;
  text-decoration: none; font-size: 0.97rem; border: 1px solid transparent; cursor: pointer;
}
.btn-primary { background: var(--cedar); color: #fff; }
.btn-primary:hover { background: var(--cedar-dark); color: #fff; }
.btn-ghost { border-color: var(--ink); color: var(--ink) !important; }
.btn-ghost:hover { background: var(--ink); color: var(--bg) !important; }

/* Sections */
section { padding: 56px 0; }
.section-tight { padding: 40px 0; }
.divider { border: none; border-top: 1px solid var(--line); margin: 0; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
@media (max-width: 760px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.feature h3 { margin-bottom: 0.4em; }
.feature p { color: var(--muted); font-size: 0.97rem; }
.feature .mark { color: var(--cedar); font-family: 'Fraunces', serif; font-size: 1.6rem; font-style: italic; margin-bottom: 0.3em; display: block; }

/* Ledger — signature pricing element */
.ledger { border-top: 1px solid var(--ink); }
.ledger-row {
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
  padding: 22px 0; border-bottom: 1px solid var(--line);
}
.ledger-row .item { flex: 0 0 auto; }
.ledger-row .item h3 { margin: 0 0 4px; font-size: 1.1rem; }
.ledger-row .item p { margin: 0; color: var(--muted); font-size: 0.92rem; max-width: 40ch; }
.ledger-row .leader { flex: 1; border-bottom: 1px dotted var(--line); margin: 0 12px; min-width: 24px; height: 1px; align-self: center; }
.ledger-row .price { flex: 0 0 auto; font-family: 'IBM Plex Mono', monospace; font-size: 1.05rem; color: var(--clay); white-space: nowrap; text-align: right; }
.ledger-row .price small { display: block; font-size: 0.72rem; color: var(--muted); font-weight: 400; }

/* Cards */
.card {
  background: var(--paper-raised); border: 1px solid var(--line); border-radius: 4px; padding: 28px;
}
.card h3 { margin-bottom: 0.3em; }

/* Case study pull */
.pull-stat {
  font-family: 'Fraunces', serif; font-size: clamp(2.4rem, 6vw, 3.6rem); color: var(--cedar); line-height: 1; margin-bottom: 6px;
}
.pull-label { font-family: 'IBM Plex Mono', monospace; font-size: 0.8rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; }

blockquote {
  border-left: 3px solid var(--clay); margin: 0; padding: 4px 0 4px 22px;
  font-family: 'Fraunces', serif; font-size: 1.3rem; font-style: italic; color: var(--ink);
}

/* Testimonial-free notice / callouts */
.callout { background: var(--paper-raised); border: 1px solid var(--line); border-left: 3px solid var(--water); padding: 18px 22px; border-radius: 0 4px 4px 0; }
.callout p:last-child { margin-bottom: 0; }

table.pricing-table { width: 100%; border-collapse: collapse; margin: 20px 0; }
table.pricing-table th, table.pricing-table td { text-align: left; padding: 14px 10px; border-bottom: 1px solid var(--line); }
table.pricing-table th { font-family: 'IBM Plex Mono', monospace; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); font-weight: 500; }
table.pricing-table td.price { font-family: 'IBM Plex Mono', monospace; color: var(--clay); }

/* Form */
form.contact-form { display: grid; gap: 16px; max-width: 560px; }
form.contact-form label { font-size: 0.88rem; color: var(--muted); display: block; margin-bottom: 6px; }
form.contact-form input, form.contact-form textarea {
  width: 100%; padding: 11px 13px; border: 1px solid var(--line); border-radius: 3px;
  background: #fff; font-family: 'Inter', sans-serif; font-size: 0.97rem; color: var(--ink);
}
form.contact-form input:focus, form.contact-form textarea:focus { outline: 2px solid var(--water); outline-offset: 1px; border-color: var(--water); }

/* Footer */
footer.site { border-top: 1px solid var(--line); padding: 44px 0 30px; margin-top: 40px; }
.footer-grid { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 24px; }
.footer-nap { font-size: 0.92rem; color: var(--muted); line-height: 1.7; }
.footer-links { display: flex; gap: 22px; font-size: 0.92rem; }
.footer-links a { color: var(--ink); text-decoration: none; }
.footer-links a:hover { color: var(--cedar); }
.footer-fine { font-family: 'IBM Plex Mono', monospace; font-size: 0.76rem; color: var(--muted); margin-top: 28px; }

.breadcrumb { font-family: 'IBM Plex Mono', monospace; font-size: 0.78rem; color: var(--muted); margin-bottom: 18px; }
.breadcrumb a { color: var(--muted); }

.list-check { list-style: none; padding: 0; margin: 0; }
.list-check li { padding-left: 1.5em; position: relative; margin-bottom: 0.6em; color: var(--ink); }
.list-check li::before { content: "—"; position: absolute; left: 0; color: var(--clay); }
