/* ==========================================================
   Sage & Ladder Press — site styles
   Plain CSS, no external resources.
   ========================================================== */

:root {
  --green-900: #14261b;
  --green-800: #1c3324;
  --green-700: #26432f;
  --gold-600: #a8742a;
  --gold-500: #c08a3e;
  --gold-300: #e2c08a;
  --cream: #faf6ee;
  --cream-dark: #f2ebdc;
  --ink: #23201b;
  --muted: #6b6457;
  --line: #e3d9c5;
  --white: #ffffff;
  --error: #9b2c2c;
  --success: #2f6b3f;

  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --radius: 6px;
  --shadow: 0 10px 30px rgba(20, 38, 27, 0.08);
}

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

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--gold-600); }
a:hover { color: var(--green-700); }

h1, h2, h3 {
  font-family: var(--serif);
  color: var(--green-800);
  line-height: 1.2;
  margin: 0 0 0.5em;
  font-weight: 600;
}
h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); }
h3 { font-size: 1.3rem; }

p { margin: 0 0 1.1em; }

.container { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 760px; }
.center { text-align: center; }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--green-800); color: var(--white); padding: 8px 16px; z-index: 100;
}
.skip-link:focus { left: 8px; top: 8px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 246, 238, 0.96);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; min-height: 68px; flex-wrap: wrap;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; color: var(--green-800);
  font-family: var(--serif); font-size: 1.25rem; font-weight: 600;
}
.brand small {
  font-family: var(--sans); font-size: 0.7rem; letter-spacing: 0.25em;
  text-transform: uppercase; color: var(--gold-600); margin-left: 4px;
}
.site-nav { display: flex; flex-wrap: wrap; gap: 4px 22px; align-items: center; }
.site-nav a {
  text-decoration: none; color: var(--green-800);
  font-size: 0.95rem; font-weight: 500;
}
.site-nav a:hover { color: var(--gold-600); }
.site-nav .nav-cta {
  background: var(--green-800); color: var(--white);
  padding: 7px 16px; border-radius: var(--radius);
}
.site-nav .nav-cta:hover { background: var(--gold-600); color: var(--white); }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(ellipse at top, rgba(226, 192, 138, 0.25), transparent 60%),
    var(--cream);
  padding: 56px 0 80px;
  text-align: center;
}
.hero-inner { max-width: 820px; }
.hero-logo { width: min(340px, 75vw); margin: 0 auto 24px; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 660px; margin: 0 auto 32px; }
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.eyebrow {
  font-size: 0.78rem; letter-spacing: 0.25em; text-transform: uppercase;
  color: var(--gold-600); font-weight: 600; margin-bottom: 10px;
}
.eyebrow-light { color: var(--gold-300); }

.divider {
  width: 64px; height: 2px; background: var(--gold-500);
  margin: 18px 0 28px; position: relative;
}
.center .divider,
.section-head .divider { margin-left: auto; margin-right: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; text-decoration: none; cursor: pointer;
  font-family: var(--sans); font-size: 1rem; font-weight: 600;
  padding: 13px 28px; border-radius: var(--radius); border: 2px solid transparent;
  transition: background-color .2s, color .2s, border-color .2s;
}
.btn-primary { background: var(--green-800); color: var(--white); }
.btn-primary:hover { background: var(--green-700); color: var(--white); }
.btn-ghost { border-color: var(--green-800); color: var(--green-800); background: transparent; }
.btn-ghost:hover { background: var(--green-800); color: var(--white); }
.btn-gold { background: var(--gold-500); color: var(--green-900); }
.btn-gold:hover { background: var(--gold-300); color: var(--green-900); }
.btn-block { width: 100%; }

/* ---------- Sections ---------- */
.section { padding: 88px 0; }
.section-alt { background: var(--cream-dark); }
.section-dark { background: var(--green-800); color: #e9e4d8; }
.section-dark h2 { color: var(--white); }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 48px; }
.section-head p:last-child { color: var(--muted); }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 24px; }
.card {
  background: var(--white); border: 1px solid var(--line);
  border-top: 3px solid var(--gold-500);
  border-radius: var(--radius); padding: 28px 24px; box-shadow: var(--shadow);
}
.card p { color: var(--muted); margin: 0; font-size: 0.97rem; }

/* Steps */
.steps {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 32px;
}
.steps li { text-align: center; }
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 54px; height: 54px; border-radius: 50%;
  border: 2px solid var(--gold-500); color: var(--gold-600);
  font-family: var(--serif); font-size: 1.4rem; font-weight: 600; margin-bottom: 14px;
}
.steps p { color: var(--muted); font-size: 0.97rem; }

/* ---------- Contact form ---------- */
.contact-form {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 36px; box-shadow: var(--shadow);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
.form-row { margin-bottom: 20px; }
.form-row label { display: block; font-weight: 600; font-size: 0.95rem; margin-bottom: 6px; color: var(--green-800); }
.req { color: var(--gold-600); }
.contact-form input,
.contact-form textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink);
  padding: 11px 14px; border: 1px solid #cfc4ae; border-radius: var(--radius);
  background: #fffdf9;
}
.contact-form textarea { resize: vertical; min-height: 150px; }
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none; border-color: var(--gold-500);
  box-shadow: 0 0 0 3px rgba(192, 138, 62, 0.2);
}
.hint { font-size: 0.85rem; color: var(--muted); margin: 0 0 8px; }
.captcha-box { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin-bottom: 8px; }
.captcha-box img { border: 1px solid var(--line); border-radius: var(--radius); }
.captcha-box input { flex: 1 1 160px; max-width: 220px; letter-spacing: 0.2em; text-transform: uppercase; }

/* Honeypot — kept off-screen rather than display:none so naive bots still see it */
.hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }

/* Status messages (shown by contact.php) */
.notice { border-radius: var(--radius); padding: 16px 20px; margin-bottom: 24px; }
.notice ul { margin: 6px 0 0; padding-left: 20px; }
.notice-error { background: #fbeeee; border: 1px solid #e6c3c3; color: var(--error); }
.notice-success { background: #edf6ef; border: 1px solid #c3dfca; color: var(--success); }

.result-page { min-height: 70vh; display: flex; align-items: center; padding: 64px 0; }
.result-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 48px 36px; text-align: center;
}
.result-card img { width: 220px; margin: 0 auto 20px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--green-900); color: #bfb8a6; padding: 48px 0 36px; text-align: center; }
.footer-inner img { margin: 0 auto 10px; }
.footer-name { font-family: var(--serif); color: var(--white); font-size: 1.25rem; margin: 0; }
.footer-tag { font-size: 0.75rem; letter-spacing: 0.25em; text-transform: uppercase; color: var(--gold-300); margin: 4px 0 20px; }
.copyright { font-size: 0.85rem; margin: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 760px) {
  body { font-size: 16px; }
  .header-inner { justify-content: center; padding-top: 10px; padding-bottom: 10px; }
  .site-nav { justify-content: center; gap: 4px 14px; }
  .site-nav a { font-size: 0.88rem; }
  .site-header { position: static; }
  .section { padding: 64px 0; }
  .form-grid { grid-template-columns: 1fr; }
  .contact-form { padding: 24px 18px; }
}
