/* ============================================================
   WilCo Apartment Locators
   Aesthetic: "Hill Country Editorial" — warm paper-and-ink
   elegance with poppy-red & black graphic punctuation,
   echoing the striped-poppy mark. Generous whitespace,
   confident serif type, slow & deliberate motion.
   ============================================================ */

:root {
  --ink:        #1B1612;
  --ink-soft:   #3A322B;
  --paper:      #F6EFE2;
  --paper-deep: #EDE2CF;
  --cream:      #FBF7EF;
  --poppy:      #C5202C;
  --poppy-deep: #931821;
  --terracotta: #C2785A;
  --olive:      #7C7654;
  --sand-line:  rgba(27, 22, 18, 0.12);

  --display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --body:    "Spectral", Georgia, "Times New Roman", serif;

  --ease: cubic-bezier(.16,.84,.32,1);
  --container: 1240px;
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3 { font-family: var(--display); font-weight: 440; margin: 0; letter-spacing: -0.01em; }
p { margin: 0; }
button { font: inherit; cursor: pointer; }

::selection { background: var(--poppy); color: var(--cream); }

/* subtle film-grain overlay for warmth */
.grain {
  position: fixed; inset: 0; pointer-events: none; z-index: 999;
  opacity: 0.045; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.kicker {
  font-family: var(--body);
  font-style: italic;
  font-size: 0.92rem;
  letter-spacing: 0.06em;
  color: var(--poppy-deep);
  margin-bottom: 0.9rem;
}

/* ---------- Reveal-on-scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  transition-delay: calc(var(--d, 0) * 90ms);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }
[data-delay="1"] { --d: 1; }
[data-delay="2"] { --d: 2; }
[data-delay="3"] { --d: 3; }
[data-delay="4"] { --d: 4; }
[data-delay="5"] { --d: 5; }
[data-delay="6"] { --d: 6; }

/* ---------- Brand mark ---------- */
.brand { display: inline-flex; align-items: center; gap: 0.7rem; }
.brand-mark { width: 61.75px; height: 61.75px; flex-shrink: 0; }
.brand-mark .stripes rect { fill: var(--ink); }
.brand-mark .poppy .petal { fill: var(--poppy); }
.brand-mark .poppy .poppy-center { fill: var(--ink); }
.brand-word { display: flex; flex-direction: column; line-height: 1; }
.brand-name {
  font-family: var(--display);
  font-size: 1.45rem;
  font-weight: 480;
  letter-spacing: -0.01em;
}
.brand-sub {
  font-family: var(--body);
  font-style: italic;
  font-size: 0.66rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-top: 3px;
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  transition: background 0.5s var(--ease), box-shadow 0.5s var(--ease), border-color .5s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(246, 239, 226, 0.86);
  backdrop-filter: blur(10px) saturate(1.1);
  border-color: var(--sand-line);
}
.header-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 1.1rem 2rem;
  display: flex; align-items: center; justify-content: space-between;
}
.primary-nav { display: flex; align-items: center; gap: 2.1rem; }
.primary-nav a {
  font-size: 0.95rem;
  position: relative;
  padding-bottom: 4px;
}
.primary-nav a:not(.nav-cta)::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 1px;
  background: var(--poppy); transition: right 0.4s var(--ease);
}
.primary-nav a:not(.nav-cta):hover::after { right: 0; }

.nav-cta {
  background: var(--ink);
  color: var(--cream) !important;
  padding: 0.6rem 1.3rem;
  border-radius: 999px;
  font-style: italic;
  transition: background 0.35s var(--ease), transform 0.35s var(--ease);
}
.nav-cta:hover { background: var(--poppy); transform: translateY(-1px); }

.nav-toggle {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 42px; height: 42px; background: none; border: none; padding: 0;
}
.nav-toggle span { display: block; height: 2px; width: 26px; background: var(--ink); transition: transform .35s var(--ease), opacity .25s; }
.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); }

.mobile-nav {
  display: none; flex-direction: column;
  background: var(--paper); border-bottom: 1px solid var(--sand-line);
  max-height: 0; overflow: hidden; transition: max-height .45s var(--ease);
}
.mobile-nav.open { max-height: 360px; }
.mobile-nav a { padding: 1rem 2rem; border-top: 1px solid var(--sand-line); font-size: 1.05rem; }
.mobile-nav .nav-cta { margin: 1rem 2rem 1.4rem; text-align: center; border-top: none; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; align-items: center;
  padding: 7.5rem 2rem 5rem;
  overflow: hidden;
  background:
    radial-gradient(ellipse 60% 50% at 85% 18%, rgba(197,32,44,0.10), transparent 60%),
    radial-gradient(ellipse 70% 60% at 8% 95%, rgba(124,118,84,0.14), transparent 65%),
    var(--paper);
}
.hero-stripes {
  position: absolute; inset: 0; z-index: 0;
  display: flex; justify-content: flex-end; gap: clamp(14px, 2.4vw, 30px);
  padding-right: clamp(2rem, 8vw, 9rem);
  pointer-events: none;
}
.hero-stripes span {
  width: clamp(10px, 1.6vw, 22px);
  background: var(--ink);
  opacity: 0.07;
  transform-origin: bottom;
  animation: stripe-rise 5.5s var(--ease) infinite alternate;
}
.hero-stripes span:nth-child(1){ animation-delay: 0s; }
.hero-stripes span:nth-child(2){ animation-delay: .35s; }
.hero-stripes span:nth-child(3){ animation-delay: .7s; }
.hero-stripes span:nth-child(4){ animation-delay: 1.05s; }
.hero-stripes span:nth-child(5){ animation-delay: 1.4s; }
@keyframes stripe-rise {
  from { height: 38%; }
  to   { height: 86%; }
}

.hero-inner { position: relative; z-index: 2; max-width: 760px; margin: 0 auto 0 0; }
.hero-eyebrow {
  font-style: italic; letter-spacing: 0.07em; font-size: 0.95rem;
  color: var(--poppy-deep); margin-bottom: 1.4rem;
}
.hero-title {
  font-size: clamp(2.6rem, 6.4vw, 4.6rem);
  line-height: 1.08;
  font-weight: 380;
  display: block;
}
.hero-title span { display: block; }
.hero-title .italic { font-style: italic; font-weight: 420; color: var(--poppy-deep); }
.hero-lede {
  margin-top: 1.7rem; max-width: 540px;
  font-size: 1.13rem; color: var(--ink-soft);
}
.hero-actions { margin-top: 2.4rem; display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; }

.btn {
  display: inline-flex; align-items: center; gap: 0.6rem;
  padding: 0.95rem 1.7rem; border-radius: 999px;
  font-size: 1rem; font-family: var(--body); font-style: italic;
  border: 1px solid transparent; transition: all .4s var(--ease);
}
.btn svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.6; transition: transform .4s var(--ease); }
.btn-primary { background: var(--ink); color: var(--cream); }
.btn-primary:hover { background: var(--poppy); transform: translateY(-2px); box-shadow: 0 14px 30px -12px rgba(197,32,44,0.55); }
.btn-primary:hover svg { transform: translateX(4px); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--cream); }
.btn-block { width: 100%; justify-content: center; margin-top: 0.6rem; }

.hero-stats {
  margin: 3.4rem 0 0; display: flex; gap: clamp(1.6rem, 4vw, 3.4rem);
  padding-top: 2rem; border-top: 1px solid var(--sand-line);
}
.hero-stats dt {
  font-family: var(--display); font-size: clamp(1.7rem, 3vw, 2.3rem);
  color: var(--poppy); font-weight: 460;
}
.hero-stats dd {
  margin: 0.2rem 0 0; font-size: 0.85rem; color: var(--ink-soft);
  font-style: italic; max-width: 9em;
}

.hero-poppy {
  position: absolute; right: -4rem; bottom: -5rem; width: clamp(220px, 32vw, 420px);
  z-index: 1; opacity: 0.9; pointer-events: none;
}
.hero-poppy .petal { fill: var(--poppy); opacity: 0.85; }
.hero-poppy .poppy-center { fill: var(--ink); opacity: 0.85; }
.hero-poppy svg { animation: sway 9s ease-in-out infinite; transform-origin: 110px 130px; }
@keyframes sway {
  0%, 100% { transform: rotate(-3deg); }
  50%      { transform: rotate(3deg); }
}

.scroll-cue {
  position: absolute; left: 2rem; bottom: 2rem; z-index: 2;
  display: inline-flex; align-items: center; gap: 0.7rem;
  font-style: italic; font-size: 0.85rem; letter-spacing: 0.05em; color: var(--ink-soft);
}
.scroll-cue span {
  display: inline-block; width: 1px; height: 34px; background: var(--ink-soft);
  position: relative; overflow: hidden;
}
.scroll-cue span::after {
  content: ""; position: absolute; left: 0; top: -100%; width: 100%; height: 100%;
  background: var(--poppy); animation: cue-fall 2.4s var(--ease) infinite;
}
@keyframes cue-fall { to { top: 100%; } }

/* ============================================================
   MARQUEE
   ============================================================ */
.marquee {
  background: var(--ink); color: var(--paper);
  overflow: hidden; white-space: nowrap;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.marquee-track {
  display: inline-flex; align-items: center; gap: 1.4rem;
  padding: 1.05rem 0;
  animation: scroll-left 38s linear infinite;
  font-family: var(--display); font-style: italic; font-size: 1.05rem;
  letter-spacing: 0.02em;
}
.marquee-track .dot { color: var(--poppy); font-size: 0.5rem; transform: translateY(-4px); display: inline-block; }
@keyframes scroll-left {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ============================================================
   SECTION SHARED
   ============================================================ */
section { padding: 7rem 2rem; max-width: var(--container); margin: 0 auto; }
.section-head { max-width: 640px; margin-bottom: 3.6rem; }
.section-head h2 { font-size: clamp(2rem, 4.4vw, 3rem); line-height: 1.18; }
.section-lede { margin-top: 1.2rem; color: var(--ink-soft); font-size: 1.05rem; }

/* ============================================================
   HOW IT WORKS
   ============================================================ */
.steps {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.6rem;
  counter-reset: step;
}
.step {
  position: relative; padding-top: 1.6rem; border-top: 1px solid var(--sand-line);
}
.step-num {
  font-family: var(--display); font-style: italic; font-size: 1rem;
  color: var(--poppy); display: block; margin-bottom: 1rem;
}
.step h3 { font-size: 1.4rem; margin-bottom: 0.8rem; font-weight: 460; }
.step p { color: var(--ink-soft); font-size: 0.98rem; }

/* ============================================================
   AREAS
   ============================================================ */
.areas { background: var(--paper-deep); border-radius: 28px; }
.area-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem;
}
.area-card {
  background: var(--cream);
  border: 1px solid var(--sand-line);
  border-radius: 18px;
  padding: 2rem 1.8rem 2.2rem;
  position: relative; overflow: hidden;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .5s var(--ease);
}
.area-card::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px;
  background: linear-gradient(90deg, var(--poppy), var(--terracotta));
  transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease);
}
.area-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 24px 50px -24px rgba(27,22,18,0.35);
  border-color: transparent;
}
.area-card:hover::before { transform: scaleX(1); }
.area-card h3 { font-size: 1.35rem; margin-bottom: 0.6rem; }
.area-card p { color: var(--ink-soft); font-size: 0.96rem; }
.area-tag {
  display: inline-block; margin-top: 1.4rem; font-style: italic; font-size: 0.8rem;
  letter-spacing: 0.04em; color: var(--poppy-deep);
  padding: 0.35rem 0.85rem; border: 1px solid currentColor; border-radius: 999px;
}

/* ============================================================
   WHY US
   ============================================================ */
.why-inner {
  display: grid; grid-template-columns: 1fr 1.15fr; gap: 4.5rem; align-items: start;
}
.why-copy h2 { font-size: clamp(2rem, 4vw, 2.7rem); margin-bottom: 1.2rem; line-height: 1.2; }
.why-copy p { color: var(--ink-soft); max-width: 46ch; }
.link-arrow {
  display: inline-flex; align-items: center; gap: 0.6rem; margin-top: 1.8rem;
  font-style: italic; color: var(--poppy-deep); font-size: 1rem; position: relative;
}
.link-arrow svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.6; transition: transform .4s var(--ease); }
.link-arrow:hover svg { transform: translateX(6px); }

.why-list { display: flex; flex-direction: column; }
.why-list li {
  display: flex; gap: 1.4rem; padding: 1.7rem 0; border-top: 1px solid var(--sand-line);
}
.why-list li:last-child { border-bottom: 1px solid var(--sand-line); }
.why-mark { font-family: var(--display); font-style: italic; color: var(--poppy); font-size: 1.4rem; line-height: 1.5; }
.why-list h3 { font-size: 1.18rem; margin-bottom: 0.4rem; font-weight: 460; }
.why-list p { color: var(--ink-soft); font-size: 0.96rem; max-width: 48ch; }

/* ============================================================
   CONTACT
   ============================================================ */
.contact { padding-bottom: 8rem; }
.contact-inner {
  display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 4.5rem;
  background: var(--cream); border: 1px solid var(--sand-line);
  border-radius: 28px; padding: clamp(2rem, 5vw, 4rem);
}
.contact-copy h2 { font-size: clamp(1.9rem, 3.6vw, 2.5rem); line-height: 1.22; margin-bottom: 1.1rem; }
.contact-copy p { color: var(--ink-soft); max-width: 42ch; }
.contact-points { margin-top: 2.2rem; display: flex; flex-direction: column; gap: 0.9rem; }
.contact-points li { display: flex; align-items: center; gap: 0.8rem; font-style: italic; color: var(--ink-soft); }
.contact-points span { color: var(--poppy); }

.contact-form { display: flex; flex-direction: column; gap: 1.1rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
label { display: flex; flex-direction: column; gap: 0.45rem; font-size: 0.86rem; color: var(--ink-soft); font-style: italic; }
label.full { grid-column: 1 / -1; }
input, select, textarea {
  font-family: var(--body); font-size: 1rem; font-style: normal; color: var(--ink);
  background: var(--paper); border: 1px solid var(--sand-line); border-radius: 10px;
  padding: 0.8rem 1rem; transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
}
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--poppy); box-shadow: 0 0 0 3px rgba(197,32,44,0.12);
}
textarea { resize: vertical; }
.form-note { font-size: 0.82rem; color: var(--ink-soft); text-align: center; font-style: italic; }
.form-success {
  display: none;
  flex-direction: column; align-items: center; justify-content: center;
  text-align: center; gap: 2rem;
  padding: 3rem 2rem;
  background: rgba(197,32,44,0.06);
  border: 1px solid rgba(197,32,44,0.15);
  border-radius: 16px;
  min-height: 260px;
}
.form-success.visible { display: flex; animation: pop-in .6s var(--ease); }
.form-success-msg {
  font-family: var(--display); font-style: italic;
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  color: var(--poppy-deep); line-height: 1.4; margin: 0;
  max-width: 32ch;
}
.form-success-brand {
  display: flex; align-items: center; gap: 0.75rem;
  text-decoration: none; opacity: 0.85; transition: opacity .3s;
}
.form-success-brand:hover { opacity: 1; }
.form-success-brand .brand-mark { width: 52px; height: 52px; }
.form-success-brand .brand-mark .stripes rect { fill: var(--ink); }
.form-success-brand .brand-mark .poppy .petal { fill: var(--poppy); }
.form-success-brand .brand-mark .poppy .poppy-center { fill: var(--ink); }
.form-success-brand .brand-name { font-family: var(--display); font-size: 1.15rem; font-weight: 460; color: var(--ink); }
.form-success-brand .brand-sub { font-family: var(--body); font-style: italic; font-size: 0.6rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-soft); margin-top: 2px; }
.form-error {
  display: none; text-align: center; font-style: italic; color: var(--ink);
  background: rgba(27,22,18,0.06); border: 1px solid rgba(27,22,18,0.18);
  border-radius: 10px; padding: 0.9rem 1rem; font-size: 0.92rem; margin-top: 0.8rem;
}
.form-error.visible { display: block; animation: pop-in .5s var(--ease); }
.form-error a { color: var(--poppy-deep); text-decoration: underline; }
@keyframes pop-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.contact-form.submitted .form-row,
.contact-form.submitted label.full,
.contact-form.submitted .btn-block,
.contact-form.submitted .form-note,
.contact-form.submitted .form-error { display: none; }
/* Honeypot field — hidden from real visitors, traps spam bots */
.form-honey {
  position: absolute !important; width: 1px !important; height: 1px !important;
  margin: -1px !important; padding: 0 !important; overflow: hidden !important;
  clip: rect(0,0,0,0) !important; white-space: nowrap !important; border: 0 !important;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: var(--ink); color: var(--paper); padding: 4rem 2rem 2.4rem; }
.footer-inner { max-width: var(--container); margin: 0 auto; }
.brand-footer { display: flex; width: fit-content; margin: 0 auto; }
.brand-footer .brand-mark .stripes rect { fill: var(--paper); }
.brand-footer .brand-name { color: var(--paper); }
.brand-footer .brand-sub { color: var(--paper-deep); }
.footer-nav { display: flex; flex-wrap: wrap; gap: 1.8rem; margin: 2.6rem 0 0; padding-top: 2rem; border-top: 1px solid rgba(255,255,255,0.1); justify-content: center; }
.footer-nav a { font-style: italic; font-size: 0.95rem; color: var(--paper-deep); transition: color .3s; }
.footer-nav a:hover { color: var(--poppy); }

.footer-legal {
  display: flex; flex-wrap: wrap; gap: 1.4rem; justify-content: center;
  margin: 1rem 0 2.4rem; padding: 0; border: none;
}
.footer-legal a { font-size: 0.9rem; font-style: italic; color: rgba(246,239,226,0.62); transition: color .3s; }
.footer-legal a:hover { color: var(--poppy); }
.footer-fine { font-size: 0.8rem; color: rgba(246,239,226,0.5); line-height: 1.7; max-width: 64ch; }
.footer-fine a { color: rgba(246,239,226,0.78); text-decoration: underline; text-underline-offset: 3px; }
.footer-fine a:hover { color: var(--poppy); }

/* License / TREC compliance block */
.footer-trec-row {
  margin-top: 2.4rem; padding-top: 2rem; border-top: 1px solid rgba(255,255,255,0.1);
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 2.4rem; flex-wrap: wrap;
}

.footer-license {
  text-align: left;
  display: flex; flex-direction: column; gap: 0.35rem;
  font-size: 0.85rem; color: rgba(246,239,226,0.68);
  max-width: 420px;
  background: rgba(197,32,44,0.07);
  border: 1px solid rgba(197,32,44,0.2);
  border-radius: 14px;
  padding: 1.2rem 1.5rem;
}
.footer-license p { margin: 0; }
.footer-license p:nth-child(2) {
  font-family: var(--display); font-size: 1.05rem; font-style: italic; color: var(--paper);
}
.footer-license a { color: rgba(246,239,226,0.78); text-decoration: underline; text-underline-offset: 3px; }
.footer-license a:hover { color: var(--poppy); }

.footer-trec-notice {
  text-align: right;
  display: flex; flex-direction: column; gap: 1.1rem;
  font-size: 0.78rem; line-height: 1.7; color: rgba(246,239,226,0.5);
  max-width: 56ch;
  flex: 1;
}
.footer-trec-notice p { margin: 0; }
.footer-trec-notice p:first-child { letter-spacing: 0.03em; color: rgba(246,239,226,0.62); }
.footer-trec-notice a { color: rgba(246,239,226,0.78); text-decoration: underline; text-underline-offset: 3px; }
.footer-trec-notice a:hover { color: var(--poppy); }

.footer-bottom {
  margin-top: 2rem; padding-top: 1.8rem; border-top: 1px solid rgba(255,255,255,0.1);
  display: flex; justify-content: center; align-items: flex-end; flex-wrap: wrap; gap: 1.6rem;
  text-align: center;
}
.footer-copyright {
  text-align: center;
  display: flex; flex-direction: column; gap: 0.3rem;
  font-size: 0.78rem; color: rgba(246,239,226,0.5); line-height: 1.6;
}
.footer-copyright p { margin: 0; }

/* ============================================================
   LEGAL / INFO PAGES
   ============================================================ */
.legal-hero {
  max-width: var(--container); margin: 0 auto; padding: 9.5rem 2rem 2.4rem;
}
.legal-hero h1 {
  font-size: clamp(2.1rem, 4.6vw, 3.2rem);
  line-height: 1.16;
}
.legal-meta {
  margin-top: 0.8rem; font-style: italic; color: var(--ink-soft); font-size: 0.95rem;
}
.legal-main { background: var(--paper); }
.legal-body {
  max-width: 820px; margin: 0 auto; padding: 1rem 2rem 6rem;
}
.legal-card {
  background: var(--cream); border: 1px solid var(--sand-line); border-radius: 24px;
  padding: clamp(1.8rem, 4vw, 3.2rem);
}
.legal-card > * + * { margin-top: 1.6rem; }
.legal-card h2 {
  font-size: 1.4rem; font-weight: 460; padding-top: 0.4rem;
  border-top: 1px solid var(--sand-line);
}
.legal-card section:first-of-type h2,
.legal-card > h2:first-child { border-top: none; padding-top: 0; }
.legal-card h3 {
  font-size: 1.1rem; font-weight: 460; color: var(--poppy-deep); font-style: italic;
}
.legal-card p, .legal-card li { color: var(--ink-soft); font-size: 0.99rem; }
.legal-card ul { padding-left: 1.3rem; list-style: disc; display: flex; flex-direction: column; gap: 0.45rem; }
.legal-card a { color: var(--poppy-deep); text-decoration: underline; text-underline-offset: 3px; }
.legal-card a:hover { color: var(--poppy); }
.legal-section { display: flex; flex-direction: column; gap: 0.9rem; padding-top: 1.6rem; border-top: 1px solid var(--sand-line); }
.legal-section:first-child { border-top: none; padding-top: 0; }
.legal-intro { font-size: 1.04rem; color: var(--ink-soft); }

/* License-holder contact card */
.license-card {
  background: var(--paper); border: 1px solid var(--sand-line); border-radius: 16px;
  padding: 1.6rem 1.8rem; display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.3rem 2rem;
}
.license-card .license-full { grid-column: 1 / -1; }
.license-card dt {
  font-style: italic; font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--poppy-deep); margin: 0 0 0.3rem;
}
.license-card dd { margin: 0; font-family: var(--display); font-size: 1.08rem; color: var(--ink); }

/* PDF document callout */
.doc-card {
  display: flex; align-items: center; gap: 1.4rem; flex-wrap: wrap;
  background: var(--ink); color: var(--paper); border-radius: 18px;
  padding: 1.6rem 1.9rem;
}
.doc-card .doc-icon {
  width: 46px; height: 46px; border-radius: 12px; flex-shrink: 0;
  background: var(--poppy); display: flex; align-items: center; justify-content: center;
  font-family: var(--display); font-style: italic; font-size: 0.85rem; letter-spacing: 0.02em;
}
.doc-card .doc-info { flex: 1; min-width: 200px; }
.doc-card .doc-info strong { display: block; font-family: var(--display); font-size: 1.08rem; font-weight: 460; }
.doc-card .doc-info span { font-size: 0.85rem; color: var(--paper-deep); font-style: italic; }
.doc-card .btn { white-space: nowrap; }
.doc-card .btn-primary { background: var(--poppy); }
.doc-card .btn-primary:hover { background: var(--paper); color: var(--ink); }

/* Inline PDF viewer — auto-displays the form on the page */
.pdf-actions {
  display: flex; justify-content: flex-end; margin-bottom: 0.7rem;
}
.btn-print {
  display: inline-flex; align-items: center; gap: 0.55rem;
  padding: 0.6rem 1.25rem; border-radius: 999px;
  font-size: 0.92rem; font-family: var(--body); font-style: italic;
  border: 1px solid var(--ink); background: transparent; color: var(--ink);
  cursor: pointer; transition: all .35s var(--ease);
}
.btn-print:hover { background: var(--ink); color: var(--cream); }
.btn-print svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 1.6; }
.pdf-embed {
  margin-top: 0.4rem;
  border: 1px solid var(--sand-line);
  border-radius: 16px;
  overflow: hidden;
  background: var(--paper);
  box-shadow: 0 24px 50px -28px rgba(27,22,18,0.4);
}
.pdf-embed iframe {
  display: block;
  width: 100%;
  height: clamp(480px, 90vh, 980px);
  border: none;
}

/* Printing a TREC form: hide everything except the active PDF embed */
@media print {
  body.printing-pdf .site-header,
  body.printing-pdf .site-footer,
  body.printing-pdf .grain,
  body.printing-pdf .legal-hero,
  body.printing-pdf .legal-card > *:not(.pdf-print-target) {
    display: none !important;
  }
  body.printing-pdf .pdf-embed,
  body.printing-pdf .pdf-embed iframe {
    box-shadow: none !important; border: none !important; border-radius: 0 !important;
    width: 100% !important; height: 100vh !important; margin: 0 !important;
  }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 980px) {
  .why-inner, .contact-inner { grid-template-columns: 1fr; }
  .area-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; gap: 2.2rem; }
}
@media (max-width: 760px) {
  .primary-nav { display: none; }
  .nav-toggle { display: flex; }
  .mobile-nav { display: flex; }
  .header-inner { padding: 0.9rem 1.4rem; }
  .brand-mark { width: 50px; height: 50px; }
  .brand-sub { font-size: 0.58rem; letter-spacing: 0.14em; }
  .hero { padding-top: 6.4rem; }
  .hero-inner { max-width: 100%; }
  .hero-stripes { opacity: 0.6; }
  .hero-poppy { opacity: 0.45; right: -6rem; }
  .hero-stats { flex-wrap: wrap; row-gap: 1.6rem; }
  .area-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  section { padding: 4.6rem 1.4rem; }
  .contact-inner { padding: 1.6rem; border-radius: 22px; }
  .legal-hero { padding: 7.6rem 1.4rem 1.6rem; }
  .legal-body { padding: 1rem 1.4rem 4rem; }
  .license-card { grid-template-columns: 1fr; }
  .doc-card { flex-direction: column; align-items: flex-start; }
  .doc-card .btn { width: 100%; justify-content: center; }
  .footer-bottom { flex-direction: column; align-items: center; }
  .footer-trec-row { flex-direction: column; }
  .footer-trec-notice { text-align: left; max-width: 100%; }
  .footer-license { max-width: 100%; }
  .footer-nav, .footer-legal { justify-content: center; gap: 1.1rem 1.6rem; text-align: center; }
  .pdf-actions { justify-content: center; }
  .btn-print { width: 100%; justify-content: center; }
  .pdf-embed iframe { height: clamp(420px, 70vh, 760px); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}
