/* style.css */
:root{
  --brand-yellow:#FFDA3A;
  --brand-green:#2E7D32;
  --brand-orange:#E84A1D;
  --ink:#111111;
  --muted:#4B5563;
  --paper:#FFFFFF;
  --soft:#F7F7F7;
  --radius:18px;
  --shadow: 0 10px 30px rgba(0,0,0,.08);
  --max: 1060px;
  --nav-h: 74px;
  --footer-h: 92px;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  min-height:100vh;
  display:flex;
  flex-direction:column;
  color:var(--ink);
  background:var(--paper);
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
  line-height:1.5;
}

/* Keep Home + About non-scrollable as requested */
body.page-home,
body.page-about{
  overflow: hidden;
}

/* Mobile fix: allow scrolling on Home/About on phones and short-height screens (especially landscape) */
@media (max-width: 860px), (max-height: 720px){
  body.page-home,
  body.page-about{
    overflow: auto;
    -webkit-overflow-scrolling: touch;
  }
}

a{color:inherit; text-decoration:none}
a:hover{opacity:.9}

.container{
  max-width:var(--max);
  margin:0 auto;
  padding: 0 20px;
}

.nav{
  position:sticky;
  top:0;
  background: rgba(255,255,255,.82);
  backdrop-filter: blur(10px);
  border-bottom:1px solid rgba(17,17,17,.08);
  z-index:10;
  height: var(--nav-h);
  display:flex;
  align-items:center;
}

.nav-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  width:100%;
  padding:0;
}

/* HOME: right-align menu so its right edge matches the hero card + footer right edge */
body.page-home .nav-inner{
  justify-content:flex-end;
}

/* HOME: align the right edge of the last menu item text with the container edge.
   Links have horizontal padding, so we offset the group slightly. */
body.page-home .nav-links{
  margin-right: -10px; /* matches .nav-links a { padding: 8px 10px } */
}

.brand{
  display:flex;
  align-items:center;
  gap:10px;
  font-weight:900;
  letter-spacing:.08em;
}

.brand img{
  width:120px;
  height:auto;
  object-fit:contain;
  border-radius:0;
  background: transparent;
  padding:0;
  border:none;
  box-shadow:none;
}

.nav-links{
  display:flex;
  gap:18px;
  align-items:center;
  font-weight:700;
}

.nav-links a{
  padding:8px 10px;
  border-radius:999px;
}

.nav-links a.active{
  background: rgba(17,17,17,.06);
}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding:12px 16px;
  border-radius:999px;
  font-weight:700;
  border:1px solid rgba(17,17,17,.12);
  background:var(--paper);
}

.btn.primary{
  background:var(--ink);
  color:var(--paper);
  border-color: var(--ink);
}

.btn.ghost{
  background:transparent;
}

.hero{
  background:var(--brand-yellow);
  min-height: calc(100vh - var(--nav-h) - var(--footer-h));
  position:relative;
  overflow:hidden;
}

.hero-inner{
  padding: 64px 0 18px;
  display:grid;
  grid-template-columns: 1.15fr .85fr;
  gap:32px;
  align-items:center;
}

.kicker{
  display:inline-flex;
  gap:10px;
  align-items:center;
  padding:8px 12px;
  border-radius:999px;
  background: rgba(255,255,255,.55);
  border:1px solid rgba(17,17,17,.10);
  font-weight:700;
}

.h1{
  font-size: clamp(32px, 3.6vw, 50px);
  line-height:1.05;
  letter-spacing:-.02em;
  margin: 14px 0 12px;
  font-weight: 900;
}

.sub{
  font-size: 17px;
  color: rgba(17,17,17,.85);
  max-width: 54ch;
  margin: 0 0 22px;
}

.hero-card{
  background: rgba(255,255,255,.72);
  border:1px solid rgba(17,17,17,.10);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow);
}

.hero-card h3{
  margin:0 0 8px;
  font-size:16px;
  letter-spacing:.02em;
}
.hero-card p{
  margin:0;
  color: rgba(17,17,17,.78);
}

.section{
  padding: 38px 0;
}

.section.alt{
  background: var(--soft);
}

.h2{
  font-size: 26px;
  margin:0 0 14px;
  letter-spacing:-.01em;
}

.p{
  margin:0 0 14px;
  color: var(--muted);
  max-width: 76ch;
}

.grid{
  display:grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 18px;
  margin-top: 18px;
}

.card{
  grid-column: span 4;
  background: var(--paper);
  border:1px solid rgba(17,17,17,.10);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: 0 8px 22px rgba(0,0,0,.05);
}

.card .tag{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:6px 10px;
  border-radius:999px;
  background: rgba(46,125,50,.10);
  color: var(--brand-green);
  border:1px solid rgba(46,125,50,.16);
  font-weight:900;
  font-size: 12px;
  letter-spacing:.02em;
}

.card h3{
  margin:12px 0 8px;
  font-size: 16px;
}
.card p{ margin:0; color: var(--muted); }

.split{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  align-items:start;
}

.list{
  margin:0;
  padding-left: 18px;
  color: var(--muted);
}
.list li{ margin: 8px 0; }

.form{
  background: var(--paper);
  border:1px solid rgba(17,17,17,.10);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow);
}

.field{
  display:flex;
  flex-direction:column;
  gap:8px;
  margin-bottom: 14px;
}

label{
  font-weight: 700;
  font-size: 13px;
  color: rgba(17,17,17,.85);
}

.req{ color: rgba(17,17,17,.65); font-weight: 700; }

.form-hint{ margin: 10px 0 0; color: var(--muted); font-size: 13px; }

.form-confirm{ margin: 12px 0 0; padding: 10px 12px; border-radius: 12px; background: rgba(46,127,68,.08); color: rgba(17,17,17,.85); font-size: 13px; }
input, select, textarea{
  padding: 12px 12px;
  border-radius: 12px;
  border:1px solid rgba(17,17,17,.16);
  font: inherit;
  outline: none;
  background: #fff;
}

input:focus, select:focus, textarea:focus{
  border-color: rgba(17,17,17,.42);
}

textarea{ min-height: 96px; resize: vertical; }

.note{
  color: var(--muted);
  font-size: 13px;
  margin-top: 0;
}

.footer{
  padding: 22px 0;
  border-top: 1px solid rgba(17,17,17,.08);
  color: rgba(17,17,17,.70);
  font-size: 13px;
  line-height: 1.4;
}

.footer .stack{
  display:flex;
  flex-direction:column;
  gap: 6px;
}

.footer .stack > div{
  margin: 0;
  line-height: 18px; /* keep both columns visually consistent */
}

.footer-inner{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.smallcaps{ letter-spacing:.08em; font-weight:900; }

@media (max-width: 860px){
  .hero-inner{ grid-template-columns: 1fr; padding: 40px 0 30px;}
  .card{ grid-column: span 12; }
  .split{ grid-template-columns: 1fr; }
  .nav-links{ gap: 10px; }
}

/* v4 adjustments */
.page-home .brand{ display:none !important; }
.page-home .nav-inner{ justify-content:flex-end; }

/* About + Contact: show logo, left aligned */
body.page-about .brand,
body.page-contact .brand{
  display:flex !important;
}

/* Ensure header logo aligns with the left edge of page content containers */
body.page-about .nav-inner,
body.page-contact .nav-inner{
  justify-content:flex-start;
}

body.page-about .nav-links,
body.page-contact .nav-links{
  margin-left:auto;
}

body.page-about .brand img,
body.page-contact .brand img{
  width: 110px;
  height: 110px;
}

.hero-mark{
  width: min(360px, 38vw);
  height: auto;
  display:block;
  margin-bottom: 20px;
}
@media (max-width: 860px){
  .hero-mark{ width: min(280px, 72vw); }
}

/* v5 hero logo fixes */
.hero-mark{
  margin-top: 20px;
  margin-bottom: 28px;
  background: transparent !important;
}
/* v6 spacing + alignment */
.hero-mark{
  margin-top: 6px !important;
  margin-bottom: 14px !important;
}
.h1{ margin-top: 0; }
.sub{ margin-top: 10px; }
.hero-card{
  align-self: flex-start;
  margin-top: 120px; /* aligns roughly with headline block */
}
@media (max-width: 980px){
  .hero-card{ margin-top: 18px; }
}

/* About page: keep content comfortably within a single viewport on most screens */
.page-about .hero{ padding: 34px 0 18px; }
.page-about .section{ padding: 18px 0; }
.page-about p{ margin: 8px 0; }
.page-about .cards{ margin-top: 12px; }

.page-about .h2{ margin: 0 0 12px; font-size: 40px; }
.page-about .grid{ gap: 14px; }
.page-about .card{ padding: 16px 16px; }

/* Contact page */
.page-contact .section{ padding: 72px 0 64px; }
.page-contact .contact-info{ margin-top: 18px; }
.page-contact .contact-form{ max-width: 820px; margin-top: 22px; }
.page-contact .contact-form .grid{ gap: 14px; }

/* v7 refinements */
.hero-mark{
  margin-bottom: 6px !important;
}
.h1{
  margin-top: 6px !important;
}

.hero-grid{
  align-items: start !important;
}
.hero-card{
  margin-top: 72px !important;
}
/* v8: tighten hero logo spacing + align priorities with headline */
.hero-inner{ align-items: flex-start !important; }

.hero-mark{
  width: auto !important;
  height: 190px !important;
  max-height: 190px !important;
  margin-top: 0px !important;
  margin-bottom: 8px !important;
  display:block;
}

.h1{ margin-top: 0px !important; }

.hero-card{
  margin-top: 198px !important; /* aligns with headline top (logo height + gap) */
}
@media (max-width: 980px){
  .hero-mark{ height: 160px !important; max-height:160px !important; }
  .hero-card{ margin-top: 18px !important; }
}

/* v12 overrides (based on v8): bottom-weighted hero, logo left-aligned + scaled, priorities bottom-aligned to subtext */
.hero{
  min-height: calc(100vh - var(--nav-h) - var(--footer-h));
}
.hero-inner{
  padding: 78px 0 18px;           /* balanced so footer stays visible without scroll */
  align-items: end;               /* bottom-align columns */
}
.hero-mark{
  width: min(420px, 44vw);        /* corrected: smaller than current, left aligned */
  height: auto;
  object-fit: contain;
  justify-self: start;
  margin-left: 0;
  margin-bottom: 10px;            /* tighter gap to headline */
}
.sub{
  margin: 0;                      /* so card bottom aligns to subtext line, not extra margin */
}
.hero-card{
  align-self: end;                /* ensure it sits on the same bottom line */
}
@media (max-width: 980px){
  .hero-inner{
    padding: 56px 0 18px;
    align-items: start;
  }
  .hero-mark{
    width: min(340px, 86vw);
    margin-bottom: 14px;
  }
  .sub{
    margin: 0 0 18px;
  }
  .hero-card{
    align-self: start;
  }
}

/* About: tighten vertical rhythm to avoid scrolling */
.page-about .h2{ font-size: 34px; }
.page-about .section{ padding: 14px 0; }
.page-about .section.alt{ padding: 14px 0; }

/* Footer height control (helps Home/About fit without scroll) */
.footer{ padding: 18px 0; }

/* ===== v22 alignment fixes ===== */
/* Ensure the nav uses the same right edge as .container (footer + hero) */
.nav .container{ width:100%; }

/* HOME: right-align menu within container (text end aligns visually) */
body.page-home .nav-inner{ justify-content:flex-end !important; }
body.page-home .nav-links{ margin-left:auto; justify-content:flex-end; }
body.page-home .nav-links a{ padding-left:10px; padding-right:10px; } /* normalize for visual edge */

body.page-home .nav-links a:last-child{ padding-right:0; }

/* About + Contact: logo left edge aligns with page text, menu stays to the right */
body.page-about .nav-inner,
body.page-contact .nav-inner{ justify-content:space-between !important; }
body.page-about .brand,
body.page-contact .brand{ margin-right:auto; }
body.page-about .nav-links,
body.page-contact .nav-links{ margin-left:auto; justify-content:flex-end; }

/* ===== v23 professional polish ===== */
/* Provide a consistent subheading style used on Contact cards */
.h3{
  margin: 10px 0 8px;
  font-size: 16px;
  font-weight: 800;
  color: var(--ink);
}

/* Contact: treat Guidance/Process/Privacy as supportive labels (not principle badges) */
.page-contact .contact-meta{
  display:block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .10em;
  text-transform: uppercase;
  color: rgba(17,17,17,.55);
  margin-bottom: 8px;
}

/* A subtle divider to separate info cards from the form */
.section-divider{
  height: 1px;
  background: rgba(17,17,17,.10);
  max-width: 760px;
  margin: 26px 0 18px;
}

/* About: slightly tighten card typography for a more editorial feel */
.page-about .card p{
  font-size: 14px;
  line-height: 1.55;
}
.page-about .card h3{
  font-weight: 800;
}

/* Contact: a touch more breathing room between cards and form on wide screens */
.page-contact .grid{ margin-top: 18px; }

/* =========================
   v24: Contact-only refinements (no impact to Home/About)
   ========================= */

/* 1) Reduce perceived gap between intro text and the three cards */
.page-contact .section.contact-intro{
  padding-top: 64px;   /* slightly tighter than default */
  padding-bottom: 28px;
}
.page-contact .section.contact-body{
  padding-top: 34px;
  padding-bottom: 64px;
}

/* 2) Subtle red border on invalid fields, only after submit attempt */
.page-contact form.submitted input:invalid,
.page-contact form.submitted textarea:invalid,
.page-contact form.submitted select:invalid{
  border-color: rgba(201,74,74,.85);
}

.page-contact form.submitted input:focus:invalid,
.page-contact form.submitted textarea:focus:invalid,
.page-contact form.submitted select:focus:invalid{
  box-shadow: 0 0 0 2px rgba(201,74,74,.12);
}

/* ===== v24 inline error messages (Contact only) ===== */
.page-contact .error{
  margin-top: 6px;
  font-size: 12.5px;
  line-height: 1.35;
  color: rgba(201,74,74,.95);
}

.page-contact form.submitted .is-invalid{
  border-color: rgba(201,74,74,.85) !important;
}

.page-contact form.submitted .is-invalid:focus{
  box-shadow: 0 0 0 2px rgba(201,74,74,.12);
}
