/* =========================================================
   Plainfield Lead Gen — stylesheet
   Brand: navy #1E3A5F · teal #3A7D8A · green #5AB963
   ========================================================= */

:root {
  --navy: #1e3a5f;
  --navy-dark: #16304d;
  --navy-900: #11263d;
  --teal: #3a7d8a;
  --green: #5ab963;
  --green-dark: #4aa354;
  --text: #333333;
  --heading: #1e3a5f;
  --muted: #6c757d;
  --bg: #ffffff;
  --bg-alt: #f5f8fb;
  --border: #e6ecf2;
  --white: #ffffff;

  --container: 1160px;
  --radius: 10px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 3px rgba(17, 38, 61, .08), 0 1px 2px rgba(17, 38, 61, .06);
  --shadow-md: 0 10px 30px rgba(17, 38, 61, .10);
  --shadow-lg: 0 20px 45px rgba(17, 38, 61, .16);
  --ease: cubic-bezier(.4, 0, .2, 1);

  --font-head: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --font-body: "Libre Franklin", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: var(--teal); text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--heading); line-height: 1.15; margin: 0 0 .5em; font-weight: 800; letter-spacing: -.02em; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
h3 { font-size: 1.3rem; font-weight: 700; }
p { margin: 0 0 1rem; }

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

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 100;
  background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-head); font-weight: 700; font-size: 1rem;
  padding: 14px 28px; border-radius: 8px; border: 2px solid transparent;
  cursor: pointer; transition: transform .18s var(--ease), box-shadow .18s var(--ease), background-color .18s var(--ease), color .18s var(--ease);
  text-align: center; line-height: 1.2;
}
.btn-primary { background: var(--green); color: #fff; box-shadow: 0 6px 16px rgba(90, 185, 99, .35); }
.btn-primary:hover { background: var(--green-dark); transform: translateY(-2px); box-shadow: 0 10px 22px rgba(90, 185, 99, .42); }
.btn-outline { background: transparent; color: #fff; border-color: rgba(255,255,255,.65); }
.btn-outline:hover { background: #fff; color: var(--navy); border-color: #fff; }
.btn-lg { padding: 17px 38px; font-size: 1.1rem; }
.btn-block { display: flex; width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  background: rgba(30, 58, 95, .82);
  backdrop-filter: saturate(140%) blur(8px);
  -webkit-backdrop-filter: saturate(140%) blur(8px);
  transition: background-color .3s var(--ease), box-shadow .3s var(--ease);
}
.site-header.scrolled { background: var(--navy); box-shadow: 0 2px 18px rgba(17,38,61,.28); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 78px; }
.brand-logo { height: 42px; width: auto; }
.nav-menu { display: flex; align-items: center; gap: 34px; list-style: none; margin: 0; padding: 0; }
.nav-menu a { color: #fff; font-family: var(--font-head); font-weight: 600; font-size: .98rem; letter-spacing: .01em; transition: color .18s var(--ease); }
.nav-menu a:not(.btn):hover { color: var(--green); }
.nav-cta { padding: 10px 22px; }
.nav-toggle { display: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 640px; display: flex; align-items: center;
  padding: 150px 0 110px; color: #fff; text-align: center;
  background: url("../assets/hero-plainfield.png") center 30% / cover no-repeat;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(30,58,95,.72) 0%, rgba(17,38,61,.78) 100%);
}
.hero-content { position: relative; max-width: 860px; }
.hero h1 { color: #fff; font-size: clamp(2.4rem, 6vw, 4rem); margin-bottom: .3em; text-shadow: 0 2px 24px rgba(0,0,0,.25); }
.hero-sub { font-size: clamp(1.1rem, 2.2vw, 1.4rem); max-width: 640px; margin: 0 auto 2rem; color: rgba(255,255,255,.94); }

/* ---------- Sections ---------- */
.section { padding: 92px 0; }
.section-head { text-align: center; max-width: 760px; margin: 0 auto 58px; }
.section-head .lead { font-size: 1.2rem; color: var(--muted); margin: 0; }
.lead { font-family: var(--font-body); }

/* ---------- Benefits ---------- */
.benefits { background: var(--bg-alt); }
.benefit-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.benefit-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-sm); transition: transform .22s var(--ease), box-shadow .22s var(--ease);
  display: flex; flex-direction: column;
}
.benefit-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.benefit-img { aspect-ratio: 5 / 3; overflow: hidden; }
.benefit-img img { width: 100%; height: 100%; object-fit: cover; }
.benefit-body { padding: 24px 22px 28px; }
.benefit-body h3 { color: var(--navy); font-size: 1.12rem; text-transform: uppercase; letter-spacing: .04em; margin-bottom: .5em; }
.benefit-body p { margin: 0; color: var(--text); font-size: .98rem; }

/* ---------- How It Works ---------- */
.steps { display: flex; flex-direction: column; gap: 70px; }
.step { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.step-reverse .step-media { order: 2; }
.step-media img { width: 100%; border-radius: var(--radius-lg); box-shadow: var(--shadow-md); aspect-ratio: 4 / 3; object-fit: cover; }
.step-head { display: flex; align-items: center; gap: 16px; margin-bottom: .5rem; }
.step-num {
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
  width: 46px; height: 46px; border-radius: 50%; background: var(--green); color: #fff;
  font-family: var(--font-head); font-weight: 800; font-size: 1.3rem;
}
.step-text h3 { font-size: 1.65rem; margin-bottom: 0; }
.step-sub { color: var(--teal); font-weight: 600; margin-bottom: 1rem; }
.ticks { list-style: none; padding: 0; margin: 0; }
.ticks li { position: relative; padding-left: 32px; margin-bottom: 12px; color: var(--text); }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 3px; width: 20px; height: 20px;
  background: var(--green); border-radius: 50%;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 13px no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 13px no-repeat;
}

/* ---------- Services ---------- */
.services { background: var(--bg-alt); }
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; align-items: stretch; }
.price-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 38px 30px; display: flex; flex-direction: column; position: relative;
  box-shadow: var(--shadow-sm); transition: transform .22s var(--ease), box-shadow .22s var(--ease);
}
.price-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.price-featured { border-color: var(--green); box-shadow: 0 18px 40px rgba(90,185,99,.18); }
.price-badge {
  position: absolute; top: 0; left: 50%; transform: translate(-50%, -50%);
  background: var(--green); color: #fff; font-family: var(--font-head); font-weight: 700;
  font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; padding: 7px 18px; border-radius: 20px;
}
.price-head h3 { color: var(--navy); font-size: 1.4rem; }
.price-desc { color: var(--muted); font-size: .98rem; min-height: 3.2em; }
.price-amount { display: flex; flex-direction: column; margin: 18px 0 22px; padding: 18px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.price-label { color: var(--muted); font-size: .9rem; }
.price-value { font-family: var(--font-head); font-weight: 800; font-size: 2.6rem; color: var(--navy); line-height: 1.1; }
.price-per { font-size: 1rem; font-weight: 600; color: var(--muted); }
.feature-list { list-style: none; padding: 0; margin: 0 0 28px; flex: 1; }
.feature-list li { position: relative; padding-left: 30px; margin-bottom: 13px; font-size: .98rem; }
.feature-list li::before {
  content: ""; position: absolute; left: 0; top: 4px; width: 18px; height: 18px;
  background: var(--green); border-radius: 50%;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 12px no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 12px no-repeat;
}

/* ---------- About ---------- */
.about-inner { display: grid; grid-template-columns: 400px 1fr; gap: 60px; align-items: start; }
.about-photo { position: sticky; top: 110px; }
.about-photo img { width: 100%; border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }
.about-caption { margin-top: 16px; display: flex; flex-direction: column; }
.about-caption strong { font-family: var(--font-head); color: var(--navy); font-size: 1.2rem; }
.about-caption span { color: var(--muted); font-size: .95rem; }
.about-text h2 { margin-bottom: 1em; }
.about-point { margin-bottom: 26px; }
.about-point h3 { color: var(--teal); font-size: 1.2rem; margin-bottom: .3em; }
.about-point p { margin: 0; }

/* ---------- CTA band ---------- */
.cta-band { background: linear-gradient(135deg, var(--navy) 0%, var(--navy-900) 100%); color: #fff; text-align: center; }
.cta-inner { max-width: 720px; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.9); font-size: 1.2rem; margin-bottom: 2rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); color: rgba(255,255,255,.82); }
.footer-inner { display: flex; justify-content: space-between; align-items: flex-start; gap: 40px; padding: 54px 24px; flex-wrap: wrap; }
.footer-brand img { height: 40px; width: auto; margin-bottom: 14px; }
.footer-brand p { max-width: 320px; color: rgba(255,255,255,.68); margin: 0; }
.footer-contact { display: flex; flex-direction: column; gap: 10px; }
.footer-contact a { color: rgba(255,255,255,.88); font-family: var(--font-head); font-weight: 600; }
.footer-contact a:hover { color: var(--green); }
.footer-linkedin { display: inline-flex; align-items: center; gap: 8px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding: 20px 0; font-size: .9rem; color: rgba(255,255,255,.6); text-align: center; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .benefit-grid { grid-template-columns: repeat(2, 1fr); }
  .price-grid { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; }
  .price-featured { order: -1; }
  .about-inner { grid-template-columns: 1fr; gap: 36px; }
  .about-photo { position: static; max-width: 360px; }
  .step, .step-reverse { grid-template-columns: 1fr; gap: 24px; }
  .step-reverse .step-media { order: 0; }
  .step-media img { aspect-ratio: 16 / 9; }
}

@media (max-width: 720px) {
  .nav-toggle {
    display: flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 44px; height: 44px; background: transparent; border: 0; cursor: pointer; padding: 0;
  }
  .nav-toggle span { display: block; width: 24px; height: 2px; background: #fff; border-radius: 2px; transition: transform .25s var(--ease), opacity .25s var(--ease); margin: 0 auto; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .nav-menu {
    position: fixed; inset: 78px 0 auto 0; flex-direction: column; gap: 0;
    background: var(--navy); padding: 8px 0 18px; align-items: stretch;
    box-shadow: 0 18px 30px rgba(0,0,0,.3);
    transform: translateY(-140%); transition: transform .32s var(--ease); pointer-events: none;
  }
  .nav-menu.open { transform: translateY(0); pointer-events: auto; }
  .nav-menu li { border-top: 1px solid rgba(255,255,255,.08); }
  .nav-menu a:not(.btn) { display: block; padding: 15px 24px; }
  .nav-cta { margin: 14px 24px 0; }
  .section { padding: 66px 0; }
  .section-head { margin-bottom: 40px; }
  .hero { min-height: 560px; padding: 130px 0 90px; }
  .benefit-grid { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; }
}

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

/* ---------- Focus visibility ---------- */
:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; border-radius: 4px; }

/* The hidden attribute must always win, even over author display rules
   (without this, e.g. .bk-mock-note's inline-block overrides it). */
[hidden] { display: none !important; }

/* =========================================================
   Booking page (/book)
   ========================================================= */
.booking-body { padding-top: 78px; background: var(--bg-alt); min-height: 100vh; display: flex; flex-direction: column; }
.booking-header { background: var(--navy); }
.booking-back { color: #fff; font-family: var(--font-head); font-weight: 600; font-size: .95rem; }
.booking-back:hover { color: var(--green); }

.booking-main { flex: 1; padding: 56px 0 92px; }
.booking-head { margin-bottom: 40px; }
.booking-head h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); }

.booking-card {
  display: grid; grid-template-columns: 340px 1fr;
  max-width: 980px; margin: 0 auto;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md); overflow: hidden;
}

/* Left info panel */
.booking-info { background: linear-gradient(160deg, var(--navy) 0%, var(--teal) 100%); color: #fff; padding: 38px 32px; }
.booking-avatar { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; border: 3px solid rgba(255,255,255,.35); }
.booking-info h2 { color: #fff; font-size: 1.5rem; margin: 18px 0 2px; }
.booking-info-with { color: rgba(255,255,255,.85); margin-bottom: 0; }
.booking-facts { list-style: none; padding: 0; margin: 24px 0; }
.booking-facts li { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; font-family: var(--font-head); font-weight: 500; font-size: .97rem; }
.booking-facts svg { color: var(--green); flex: 0 0 auto; }
.booking-info-note { font-size: .92rem; color: rgba(255,255,255,.82); margin: 0; }

/* Right widget */
/* min-width: 0 — without it the non-wrapping date strip inflates the 1fr column */
.booking-widget { padding: 34px 36px; min-height: 480px; position: relative; min-width: 0; }
.booking-widget h3 { font-size: 1.3rem; }
#bk-loading, #bk-error, #bk-done { text-align: center; padding-top: 56px; }

.bk-spinner {
  width: 44px; height: 44px; margin: 0 auto 18px;
  border: 4px solid var(--border); border-top-color: var(--teal); border-radius: 50%;
  animation: bk-spin .9s linear infinite;
}
@keyframes bk-spin { to { transform: rotate(360deg); } }

.bk-tz { color: var(--muted); font-size: .9rem; margin: -6px 0 18px; }

.bk-dates { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 10px; margin-bottom: 18px; scrollbar-width: thin; }
.bk-date {
  flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 10px 16px; border-radius: var(--radius); border: 1.5px solid var(--border);
  background: #fff; cursor: pointer; font-family: var(--font-head);
  transition: border-color .15s var(--ease), background-color .15s var(--ease);
}
.bk-date:hover { border-color: var(--teal); }
.bk-date.selected { border-color: var(--green); background: rgba(90,185,99,.08); }
.bk-date-dow { font-size: .76rem; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.bk-date.selected .bk-date-dow { color: var(--green-dark); }
.bk-date-md { font-weight: 700; color: var(--navy); white-space: nowrap; }

.bk-slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(108px, 1fr)); gap: 10px; }
.bk-slot {
  padding: 12px 8px; border: 1.5px solid var(--teal); border-radius: 8px;
  background: #fff; color: var(--teal); font-family: var(--font-head); font-weight: 600; font-size: .97rem;
  cursor: pointer; transition: background-color .15s var(--ease), color .15s var(--ease);
}
.bk-slot:hover { background: var(--teal); color: #fff; }

/* Details form */
.bk-selected {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  background: var(--bg-alt); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 14px 18px; margin-bottom: 20px;
}
.bk-selected strong { font-family: var(--font-head); color: var(--navy); }
.bk-selected span { color: var(--muted); font-size: .95rem; }
.bk-change { background: none; border: 0; padding: 4px; color: var(--teal); font-family: var(--font-head); font-weight: 600; font-size: .95rem; cursor: pointer; }
.bk-change:hover { color: var(--navy); }

.bk-field { margin-bottom: 16px; }
.bk-field label { display: block; font-family: var(--font-head); font-weight: 600; font-size: .92rem; color: var(--navy); margin-bottom: 6px; }
.bk-optional { color: var(--muted); font-weight: 400; font-size: .85rem; }
.bk-field input, .bk-field textarea {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--border); border-radius: 8px;
  font: inherit; font-size: 1rem; color: var(--text); background: #fff;
  transition: border-color .15s var(--ease);
}
.bk-field input:focus, .bk-field textarea:focus { border-color: var(--teal); }
.bk-field textarea { resize: vertical; }

/* Honeypot — visually removed, still in the accessibility-hidden DOM */
.bk-hp { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }

#bk-turnstile:not(:empty) { margin: 4px 0 14px; }

.bk-form-error { color: #b0392e; background: #fdf0ef; border: 1px solid #f2c6c1; padding: 10px 14px; border-radius: 8px; font-size: .95rem; }

/* Confirmation */
.bk-check {
  width: 72px; height: 72px; border-radius: 50%; background: var(--green); color: #fff;
  display: inline-flex; align-items: center; justify-content: center; margin-bottom: 14px;
}
#bk-done-when { font-family: var(--font-head); font-weight: 700; color: var(--navy); font-size: 1.15rem; }
.bk-mock-note { display: inline-block; background: #fff7e0; border: 1px solid #efd894; color: #8a6d1a; padding: 8px 14px; border-radius: 8px; font-size: .9rem; }
.bk-fallback { color: var(--muted); margin-top: 16px; font-size: .95rem; }
#bk-done .btn { margin-top: 18px; }
.btn-outline-dark { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-outline-dark:hover { background: var(--navy); color: #fff; }

@media (max-width: 860px) {
  .booking-card { grid-template-columns: 1fr; }
  .booking-info { padding: 28px 24px; }
  .booking-widget { padding: 26px 20px; min-height: 420px; }
}
@media (prefers-reduced-motion: reduce) {
  .bk-spinner { animation: none; }
}
