/* Fonts */
@font-face {
  font-family: 'Alegreya';
  src: url('../fonts/alegreya-var.woff2') format('woff2');
  font-weight: 400 900;
  font-display: swap;
}
@font-face {
  font-family: 'Alegreya Sans';
  src: url('../fonts/alegreyasans-400.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Alegreya Sans';
  src: url('../fonts/alegreyasans-500.woff2') format('woff2');
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: 'Alegreya Sans';
  src: url('../fonts/alegreyasans-700.woff2') format('woff2');
  font-weight: 700;
  font-display: swap;
}

:root {
  --dusk: #241C22;
  --plum: #6E4A72;
  --plum-deep: #5C3B60;
  --plum-ink: #53365A;
  --plum-light: #D9C3DC;
  --linen: #F6F3EC;
  --card: #FFFFFF;
  --stone: #6B6258;
  --hairline: #E4DED4;
  --chip: #ECE2EE;
  --on-dark-body: #CFC7CB;
  --on-dark-muted: #9C929A;
  
  --bg: #FFFFFF;
  --text: #241C22;
  --text-muted: #6B6258;
  --border: #E4DED4;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #191418;
    --card: #241C22;
    --text: #EAE5E0;
    --text-muted: #9C929A;
    --border: #3E343B;
    --linen: #1F191D;
  }
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Alegreya Sans', sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .h-alegreya {
  font-family: 'Alegreya', serif;
  font-weight: 600;
  color: var(--text);
  line-height: 1.2;
}

h1 {
  font-size: clamp(2.4rem, 4.4vw, 3.8rem);
  line-height: 1.12;
}
h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
}

img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
}

a {
  color: inherit;
  text-decoration: none;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 0;
  background: var(--plum-deep);
  color: white;
  padding: 8px;
  z-index: 1000;
}
.skip-link:focus {
  top: 0;
}

/* Reduced motion */
@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;
  }
}

/* Ribbon */
.ribbon {
  background-color: #FBEFE4;
  color: #5A4636;
  text-align: center;
  padding: 12px 16px;
  font-size: 14px;
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
}
@media (prefers-color-scheme: dark) {
  .ribbon {
    background-color: #5A4636;
    color: #FBEFE4;
  }
}
.ribbon.dismissed {
  display: none;
}
.ribbon .chip {
  background-color: var(--chip);
  color: var(--plum-ink);
  padding: 4px 12px;
  border-radius: 100px;
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.ribbon button {
  background: none;
  border: none;
  font: inherit;
  cursor: pointer;
  text-decoration: underline;
  color: inherit;
}

/* Masthead */
.masthead {
  background-color: var(--dusk);
  color: white;
  padding: 16px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.mh-left .logo {
  font-family: 'Alegreya', serif;
  font-weight: 600;
  font-size: 22px;
  color: white;
  display: block;
}
.mh-left .sub {
  font-family: 'Alegreya Sans', sans-serif;
  font-size: 11px;
  color: var(--plum-light);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 700;
  margin-top: 4px;
}
.mh-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}
.mh-nav a {
  font-weight: 500;
  color: var(--on-dark-body);
}
.mh-nav a:hover {
  color: white;
}
.btn-plum {
  background-color: var(--plum-deep);
  color: white !important;
  padding: 12px 20px;
  border-radius: 6px;
  font-weight: 500;
  display: inline-block;
  text-align: center;
}
.btn-plum:hover {
  background-color: var(--plum);
}
.btn-dusk-outline {
  background-color: transparent;
  color: var(--text) !important;
  border: 1px solid var(--text);
  padding: 12px 20px;
  border-radius: 6px;
  font-weight: 500;
  display: inline-block;
  text-align: center;
}
.btn-dusk-outline:hover {
  background-color: var(--text);
  color: var(--bg) !important;
}

/* Mobile Nav */
.mobile-nav {
  display: none;
  background-color: var(--dusk);
  padding: 0 24px 16px;
  border-top: 1px solid #3E343B;
}
details.mobile-nav-details summary {
  list-style: none;
  padding: 12px 0;
  font-weight: 700;
  color: white;
  cursor: pointer;
  min-height: 44px;
  display: flex;
  align-items: center;
}
details.mobile-nav-details summary::-webkit-details-marker {
  display: none;
}
.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-bottom: 12px;
}
.mobile-nav-links a {
  color: var(--on-dark-body);
  min-height: 44px;
  display: flex;
  align-items: center;
}
@media (max-width: 900px) {
  .mh-nav { display: none; }
  .mobile-nav { display: block; }
}

/* Sticky Bottom Call Bar */
.sticky-call-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: var(--plum-deep);
  color: white;
  text-align: center;
  padding: 16px;
  font-family: 'Alegreya', serif;
  font-weight: 600;
  font-size: 20px;
  z-index: 900;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
}
@media (max-width: 767px) {
  .sticky-call-bar {
    display: block;
  }
  body {
    padding-bottom: 60px;
  }
}

/* Common Kicker & Postmark */
.kicker-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.postmark-glyph {
  width: 18px;
  height: 18px;
  border: 1.8px solid var(--plum);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.postmark-glyph::after {
  content: "";
  width: 5px;
  height: 5px;
  background-color: var(--plum);
  border-radius: 50%;
}
.postmark-glyph.light {
  border-color: var(--plum-light);
}
.postmark-glyph.light::after {
  background-color: var(--plum-light);
}
.kicker-text {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--plum-ink);
}
.kicker-text.light {
  color: var(--plum-light);
}

/* Postcard */
.farm-postcard {
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.postcard-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}
.stamp-postmark {
  width: 36px;
  height: 36px;
  border: 1.4px solid var(--stone);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: rotate(-8deg);
  text-align: center;
}
.stamp-postmark-text {
  font-size: 7.5px;
  text-transform: uppercase;
  color: var(--stone);
  line-height: 1;
  max-width: 24px;
}
.stamp {
  width: 40px;
  height: 48px;
  border: 1.6px solid var(--plum);
  border-radius: 2px;
  outline: 1px dashed var(--plum);
  outline-offset: -4px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.paw-glyph {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}
.paw-pad {
  width: 16px;
  height: 10px;
  background-color: var(--plum);
  border-radius: 50%;
}
.paw-toes {
  display: flex;
  gap: 2px;
}
.paw-toe {
  width: 6px;
  height: 6px;
  background-color: var(--plum);
  border-radius: 50%;
}
.postcard-body {
  display: flex;
  gap: 24px;
}
.postcard-divider {
  width: 1px;
  background-color: var(--border);
  flex-shrink: 0;
}
.postcard-left {
  flex: 1 1 72%;
}
.postcard-right {
  flex: 1 1 28%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 24px;
}
.quote-text {
  font-family: 'Alegreya', serif;
  font-weight: 500;
  font-size: 16.5px;
  color: var(--text);
  margin-bottom: 16px;
}
.sender-tag {
  background-color: var(--chip);
  color: var(--plum-ink);
  font-family: 'Alegreya Sans', sans-serif;
  font-weight: 700;
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 4px 12px;
  border-radius: 100px;
  display: inline-block;
}
.address-lines {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.address-line {
  height: 1px;
  background-color: var(--border);
  width: 100%;
}
@media (max-width: 767px) {
  .postcard-body {
    flex-direction: column;
  }
  .postcard-divider, .postcard-right {
    display: none;
  }
}

/* Sections */
section {
  padding: 80px 24px;
}
.container {
  max-width: 1200px;
  margin: 0 auto;
}

/* Hero Index */
.hero-index {
  position: relative;
  padding: 0 0 56px 0;
  background-color: var(--linen);
}
.hero-index img {
  width: 100%;
  height: 640px;
  object-fit: cover;
  border-radius: 0;
  display: block;
}
.linen-ledge {
  background-color: var(--linen);
  border-radius: 4px;
  max-width: 820px;
  margin-left: 72px;
  margin-top: -220px;
  position: relative;
  z-index: 10;
  padding: 48px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}
@media (max-width: 767px) {
  .linen-ledge {
    margin-left: 16px;
    margin-right: 16px;
    margin-top: -80px;
    padding: 24px;
  }
  .hero-index img {
    height: 400px;
  }
}
.linen-ledge h1 {
  margin-bottom: 24px;
  font-size: clamp(2.2rem, 3.3vw, 3rem);
}
.linen-ledge .sub {
  font-size: 18px;
  color: var(--text-muted);
  margin-bottom: 32px;
}
.cta-group {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.proof-text {
  font-size: 14px;
  color: var(--text-muted);
}
.proof-text a {
  text-decoration: underline;
}

/* Philosophy */
.philosophy {
  background-color: var(--dusk);
  color: var(--on-dark-body);
}
.philosophy .kicker-text {
  color: var(--plum-light);
}
.philosophy h2 {
  color: white;
  margin-bottom: 24px;
}
.phil-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
@media (max-width: 767px) {
  .phil-grid { grid-template-columns: 1fr; }
}
.phil-p {
  margin-bottom: 24px;
  font-size: 18px;
}
.facts-row {
  display: flex;
  gap: 32px;
  border-top: 1px solid #3E343B;
  padding-top: 24px;
  margin-top: 32px;
}
.fact {
  display: flex;
  flex-direction: column;
}
.fact-val {
  font-family: 'Alegreya', serif;
  font-weight: 600;
  font-size: 26px;
  color: var(--plum-light);
}
.fact-lbl {
  font-size: 11px;
  color: var(--on-dark-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}
.phil-img-wrap img {
  width: 100%;
  height: 600px;
  object-fit: cover;
  border-radius: 4px;
  display: block;
}
.phil-cap {
  color: var(--on-dark-muted);
  font-size: 12.5px;
  margin-top: 8px;
}

/* Programs */
.programs {
  background-color: var(--bg);
}
.programs h2 {
  margin-bottom: 48px;
}
.prog-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
@media (max-width: 1024px) {
  .prog-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .prog-grid { grid-template-columns: 1fr; }
}
.prog-card {
  background-color: var(--linen);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 24px;
  display: block;
}
a.prog-card {
  transition: transform 0.2s, box-shadow 0.2s;
}
a.prog-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}
.prog-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}
.prog-num {
  font-family: 'Alegreya', serif;
  color: var(--plum);
  font-size: 24px;
  font-weight: 600;
}
.prog-chip {
  background-color: var(--chip);
  color: var(--plum-ink);
  font-size: 12px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 100px;
}
.prog-title {
  font-weight: 700;
  font-size: 18px;
  margin-bottom: 8px;
  color: var(--text);
}
.prog-desc {
  color: var(--text-muted);
  font-size: 15px;
}

/* Postcards */
.postcards-band {
  background-color: var(--linen);
}
.postcards-band h2 {
  margin-bottom: 48px;
}
.pc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 24px;
  margin-bottom: 32px;
}
@media (max-width: 900px) {
  .pc-grid { grid-template-columns: 1fr; }
}
.pc-foot {
  text-align: center;
  color: var(--text-muted);
}
.pc-foot a {
  text-decoration: underline;
}

/* Farm */
.farm-band {
  background-color: var(--bg);
}
.farm-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 48px;
  flex-wrap: wrap;
  gap: 16px;
}
.farm-header a {
  color: var(--plum);
  text-decoration: underline;
  font-weight: 500;
}
.farm-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 767px) {
  .farm-grid { grid-template-columns: 1fr; }
}
.farm-img-wrap img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: 4px;
  display: block;
}
.farm-cap {
  color: var(--stone);
  font-size: 12.5px;
  margin-top: 8px;
}

/* Ask */
.ask-band {
  background-color: var(--linen);
}
.ask-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}
@media (max-width: 767px) {
  .ask-grid { grid-template-columns: 1fr; }
}
.ask-left h2 {
  margin-bottom: 16px;
}
.ask-left .sub {
  font-size: 18px;
  color: var(--text-muted);
  margin-bottom: 32px;
}
.ask-phone {
  font-family: 'Alegreya', serif;
  font-weight: 600;
  font-size: 30px;
  color: var(--plum-ink);
  display: block;
  margin-bottom: 8px;
}
.ask-lines {
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.form-card {
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 32px;
}
.form-card h3 {
  margin-bottom: 24px;
  font-size: 20px;
}
.form-group {
  margin-bottom: 16px;
}
.form-group label {
  display: block;
  font-weight: 500;
  margin-bottom: 8px;
  color: var(--text);
}
.form-control {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-family: inherit;
  font-size: 16px;
  background-color: var(--bg);
  color: var(--text);
}
.form-control:focus {
  outline: 2px solid var(--plum);
  outline-offset: -2px;
}
textarea.form-control {
  resize: vertical;
  min-height: 100px;
}
.form-note {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 16px;
}
.btn-submit {
  width: 100%;
  background-color: var(--plum-deep);
  color: white;
  border: none;
  padding: 14px;
  border-radius: 6px;
  font-weight: 500;
  font-size: 16px;
  cursor: pointer;
  margin-top: 8px;
}

/* Footer */
.footer {
  background-color: var(--dusk);
  color: var(--on-dark-muted);
  padding: 48px 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}
@media (max-width: 767px) {
  .footer-grid { grid-template-columns: 1fr; }
}
.foot-logo {
  font-family: 'Alegreya', serif;
  font-weight: 600;
  font-size: 20px;
  color: white;
  margin-bottom: 12px;
  display: block;
}
.foot-left p {
  margin-bottom: 4px;
}
.foot-right {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
@media (min-width: 768px) {
  .foot-right { align-items: flex-end; text-align: right; }
}
.foot-phone {
  font-family: 'Alegreya', serif;
  font-weight: 600;
  font-size: 24px;
  color: var(--plum-light);
}

/* Boarding Rates */
.rates-band {
  background-color: var(--bg);
}
.rates-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 24px;
}
@media (max-width: 1024px) {
  .rates-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .rates-grid { grid-template-columns: 1fr; }
}
.rates-note {
  color: var(--text-muted);
  font-style: italic;
}

/* How It Works */
.how-it-works {
  background-color: var(--linen);
}
.hiw-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}
@media (max-width: 767px) {
  .hiw-grid { grid-template-columns: 1fr; }
}
.hiw-item {
  display: flex;
  gap: 16px;
}
.hiw-item .postmark-glyph {
  margin-top: 4px;
}
.hiw-text p {
  margin-bottom: 8px;
}
.hiw-text p:last-child {
  margin-bottom: 0;
}
.farm-photo-band {
  padding: 0;
}
.farm-photo-band img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  display: block;
  border-radius: 0;
}
.farm-photo-cap {
  padding: 16px 24px;
  text-align: center;
  color: var(--text-muted);
  font-size: 12.5px;
}

/* --- QA FIX: menu button was bare left-aligned text in its own band; make it
   a right-aligned button so it reads as the nav control. --- */
details.mobile-nav-details summary{
  justify-content:flex-end;
  margin-left:auto;
  width:max-content;
  padding:8px 14px;
  border:1px solid rgba(255,255,255,.35);
  border-radius:8px;
}
