/* ==========================================================================
   Flyleaf Hospitality — site styles
   --------------------------------------------------------------------------
   DESIGN TOKENS: change colors and fonts in the :root block below.
   Every page reads from these. Example: to try an ochre-gold accent,
   change --color-accent and --color-accent-dark, nothing else.
   ========================================================================== */

:root {
  /* Colors */
  --color-ivory: #F6F0E4;       /* page background */
  --color-ivory-light: #FBF8F1; /* cards */
  --color-sand: #E4D9C5;        /* alternate bands */
  --color-taupe: #B9A88D;       /* quiet details */
  --color-line: #D9CDB8;        /* thin borders */
  --color-accent: #A9563A;      /* buttons and links (terracotta) */
  --color-accent-dark: #7C3D27; /* hover state of the accent */
  --color-olive: #5F6638;       /* feature bands */
  --color-walnut: #4A3626;      /* text, headings, footer */
  --color-muted: #5A5646;       /* captions, small text */
  --color-white: #FFFFFF;
  --logo-green: #1B4121;        /* used only to match the green logo file */

  /* Fonts */
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Karla', system-ui, -apple-system, 'Segoe UI', sans-serif;

  /* Paper texture (swap or remove the image to change it) */
  --paper-texture: url('../img/paper.png');

  /* Layout */
  --wrap: 1120px;
  --radius: 2px;
  --shadow-card: 0 20px 44px rgba(74, 54, 38, 0.20);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.7;
  color: var(--color-walnut);
  background-color: var(--color-ivory);
}
img { max-width: 100%; height: auto; }
a { color: var(--color-accent); }
a:hover { color: var(--color-accent-dark); }
:focus-visible { outline: 3px solid var(--color-accent); outline-offset: 3px; }
h1, h2, h3 {
  font-family: var(--font-heading);
  font-weight: 500;
  line-height: 1.15;
  color: var(--color-walnut);
  margin: 0 0 16px;
}
h1 { font-size: clamp(34px, 6vw, 64px); line-height: 1.1; }
h2 { font-size: clamp(28px, 4vw, 40px); }
h3 { font-size: 24px; line-height: 1.25; }
p { margin: 0 0 16px; }
.lead { font-size: 20px; }
.small { font-size: 15px; color: var(--color-muted); }

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

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.section { padding: 72px 0; }
.section--tight { padding: 48px 0; }
.section--white { background: var(--color-white); }
.section--sand { background: var(--color-sand); }
.section--paper, .paper {
  background-color: var(--color-ivory);
  background-image: var(--paper-texture);
  background-size: 256px 256px;
}
.center { text-align: center; }
.narrow { max-width: 760px; margin-left: auto; margin-right: auto; }

.label {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin: 0 0 12px;
  color: var(--color-accent);
}

/* Placeholders: visible highlight so none can be missed before launch */
.ph {
  background: #FFF3C4;
  outline: 1px dashed #B58A00;
  padding: 0 0.2em;
  border-radius: 2px;
  color: var(--color-walnut);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
  text-align: center;
  line-height: 1.2;
  padding: 14px 28px;
  min-height: 48px;
  border: 2px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  background: transparent;
}
.btn-primary { background: var(--color-accent); color: #fff; border-color: var(--color-accent); }
.btn-primary:hover { background: var(--color-accent-dark); border-color: var(--color-accent-dark); color: #fff; }
.btn-outline { color: var(--color-walnut); border-color: var(--color-walnut); }
.btn-outline:hover { background: var(--color-walnut); color: #fff; }
.btn-light { color: #fff; border-color: #fff; }
.btn-light:hover { background: #fff; color: var(--color-walnut); }
.btn-disabled {
  color: #6B6350;
  border: 2px dashed var(--color-taupe);
  cursor: not-allowed;
  background: transparent;
}
.btn-row { display: flex; flex-wrap: wrap; gap: 16px; }
.btn-row.center { justify-content: center; }

/* ---------- Header and navigation ---------- */
.site-header { padding: 20px 0 8px; }
.site-header--plain {
  background-color: var(--color-ivory);
  background-image: var(--paper-texture);
  background-size: 256px 256px;
  border-bottom: 1px solid var(--color-line);
}
.site-header .wrap { display: flex; flex-direction: column; align-items: center; gap: 12px; }

.brand { display: inline-flex; flex-direction: column; align-items: center; text-decoration: none; --logo-w: 116px; }
.brand img { width: var(--logo-w); height: auto; display: block; }
.brand-word {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: max(10px, calc(var(--logo-w) * 0.078));
  letter-spacing: 0.38em;
  text-indent: 0.38em;
  margin-top: 3px;
  color: var(--logo-green);
  white-space: nowrap;
}
.brand--light .brand-word { color: #fff; }
.brand--large { --logo-w: 200px; }

.nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 36px; list-style: none; margin: 0; padding: 0; }
.nav a {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 12px 4px;
  display: inline-block;
  color: var(--color-walnut);
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--color-accent); }
.nav--light a { color: #fff; }
.nav--light a:hover, .nav--light a[aria-current="page"] { color: #fff; text-decoration: underline; text-underline-offset: 6px; }

/* ---------- Home hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--color-walnut); color: #fff; }
.hero__img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 70%; }
.hero__tint {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(180deg, rgba(74,54,38,0.62) 0%, rgba(74,54,38,0.45) 50%, rgba(74,54,38,0.22) 100%);
}
.hero .wrap { position: relative; }
.hero__body { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 40px 0 210px; }
.hero h1 { color: #fff; margin: 40px 0 20px; max-width: 820px; }
.hero p { color: var(--color-ivory); font-size: 20px; max-width: 560px; margin-bottom: 32px; }
.hero .label { color: var(--color-sand); }

/* ---------- Cards and overlaps ---------- */
.card {
  background-color: var(--color-ivory-light);
  background-image: var(--paper-texture);
  background-size: 256px 256px;
  border: 1px solid var(--color-line);
  box-shadow: var(--shadow-card);
}
.welcome { position: relative; margin-top: -104px; z-index: 2; }
.welcome .card { max-width: 820px; margin: 0 auto; padding: 48px 40px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.welcome h2 { margin-bottom: 12px; }

.overlap-row { display: flex; flex-wrap: wrap; align-items: flex-start; }
.overlap-row__img { flex: 0 1 58%; min-width: 0; position: relative; height: 560px; background: var(--color-sand); box-shadow: 0 20px 44px rgba(74,54,38,0.16); }
.overlap-row__img img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; }
.overlap-row__card { flex: 1 1 360px; min-width: 0; position: relative; margin-left: -96px; margin-top: 88px; padding: 48px 44px; }
.overlap-row__card > :last-child { margin-bottom: 0; }

.photo-band { position: relative; overflow: hidden; background: var(--color-sand); }
.photo-band__img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; }
.photo-band .wrap { position: relative; padding-top: 80px; padding-bottom: 80px; }
.photo-band .card { max-width: 640px; margin: 0 auto; padding: 48px 40px; text-align: center; }

/* ---------- Features ---------- */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 32px; margin-top: 32px; }
.feature { border-top: 2px solid var(--color-taupe); padding-top: 20px; }
.feature__num { font-family: var(--font-heading); font-size: 44px; line-height: 1; color: var(--color-accent); margin: 0 0 8px; }
.feature h3 { margin-bottom: 8px; }
.feature p { margin: 0; }

.name-band img { height: 84px; width: auto; margin: 0 auto 16px; display: block; }

/* ---------- Page title band (inner pages) ---------- */
.page-title { text-align: center; padding: 72px 0 56px; }
.page-title h1 { margin-bottom: 12px; }
.page-title p { max-width: 640px; margin: 0 auto; font-size: 20px; }

/* ---------- Retreat cards ---------- */
.retreat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 32px; }
.retreat-card { display: flex; flex-direction: column; background: var(--color-white); border: 1px solid var(--color-line); }
.retreat-card img { width: 100%; height: 240px; object-fit: cover; display: block; }
.retreat-card__ph { height: 240px; display: flex; align-items: center; justify-content: center; background: var(--color-sand); }
.retreat-card__body { padding: 24px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.retreat-card__body h3 { margin: 0; }
.retreat-card__body p { margin: 0; }
.retreat-card__body .btn-row { margin-top: auto; padding-top: 12px; }
.retreat-card__meta { font-size: 16px; color: var(--color-muted); }

/* ---------- Numbered parts, lists, days ---------- */
.parts { counter-reset: part; list-style: none; padding: 0; margin: 24px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }
.parts li { counter-increment: part; border-top: 2px solid var(--color-taupe); padding-top: 16px; }
.parts li::before { content: counter(part); display: block; font-family: var(--font-heading); font-size: 36px; line-height: 1; color: var(--color-accent); margin-bottom: 8px; }
.parts strong { display: block; font-family: var(--font-heading); font-size: 22px; font-weight: 500; line-height: 1.25; margin-bottom: 4px; }

.ticks { list-style: none; margin: 0 0 16px; padding: 0; }
.ticks li { padding-left: 28px; position: relative; margin-bottom: 10px; }
.ticks li::before { content: ''; position: absolute; left: 4px; top: 0.7em; width: 10px; height: 10px; border-radius: 50%; background: var(--color-accent); }

.days { border-top: 1px solid var(--color-line); margin: 24px 0 0; }
.days__row { display: grid; grid-template-columns: 120px 1fr; gap: 8px 24px; padding: 20px 0; border-bottom: 1px solid var(--color-line); }
.days__day { font-family: var(--font-heading); font-size: 24px; color: var(--color-accent); margin: 0; }
.days__row p { margin: 0; }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--color-line); margin-top: 24px; }
.faq details { border-bottom: 1px solid var(--color-line); }
.faq summary {
  font-family: var(--font-heading);
  font-size: 21px;
  line-height: 1.3;
  padding: 18px 40px 18px 0;
  cursor: pointer;
  list-style: none;
  position: relative;
  color: var(--color-walnut);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+';
  position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  font-family: var(--font-body); font-size: 28px; color: var(--color-accent);
}
.faq details[open] summary::after { content: '\2212'; }
.faq .answer { padding: 0 0 20px; }
.faq .answer p:last-child { margin-bottom: 0; }

/* ---------- Forms ---------- */
.form { display: flex; flex-direction: column; gap: 16px; text-align: left; }
.form label { display: block; font-size: 15px; font-weight: 600; margin-bottom: 6px; }
.form input[type="text"], .form input[type="email"], .form select, .form textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 17px;
  color: var(--color-walnut);
  padding: 12px 14px;
  min-height: 48px;
  background: #fff;
  border: 1px solid var(--color-taupe);
  border-radius: var(--radius);
}
.form textarea { min-height: 140px; resize: vertical; }
.form .hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }
.form-status { margin: 0; font-size: 16px; min-height: 1.5em; }
.form-status.is-ok { color: #2F5D2E; font-weight: 600; }
.form-status.is-error { color: #9C2F1E; font-weight: 600; }
.signup { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; align-items: flex-start; }
.signup .field { flex: 1 1 260px; min-width: 0; text-align: left; }
.signup .btn { flex: 0 0 auto; }
.signup-wrap { max-width: 560px; margin: 0 auto; }

/* ---------- Footer ---------- */
.site-footer { background: var(--color-walnut); color: var(--color-ivory); padding: 56px 0 32px; }
.site-footer a { color: var(--color-ivory); text-underline-offset: 3px; }
.site-footer a:hover { color: #fff; }
.footer-grid { display: flex; flex-wrap: wrap; gap: 32px 64px; justify-content: space-between; align-items: flex-start; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 4px; }
.footer-grid li a { display: inline-block; padding: 6px 0; font-size: 17px; }
.footer-title { font-size: 13px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--color-sand); margin: 0 0 8px; }
.footer-base { margin-top: 40px; padding-top: 24px; border-top: 1px solid rgba(246,240,228,0.25); font-size: 15px; color: var(--color-sand); display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }
.footer-base a { color: var(--color-sand); }
.site-footer .ph { color: var(--color-walnut); }

/* ---------- Legal text ---------- */
.prose h2 { font-size: 28px; margin-top: 40px; }
.prose h3 { font-size: 22px; margin-top: 24px; }
.prose ul { padding-left: 22px; }

/* ---------- Small screens ---------- */
@media (max-width: 860px) {
  .overlap-row__img { flex: 1 1 100%; height: 380px; }
  .overlap-row__card { flex: 1 1 100%; margin: -56px 16px 0 16px; padding: 36px 24px; }
}
@media (max-width: 600px) {
  body { font-size: 17px; }
  .section { padding: 56px 0; }
  .nav { gap: 4px 24px; }
  .hero__body { padding-bottom: 190px; }
  .welcome { margin-top: -96px; }
  .welcome .card, .photo-band .card { padding: 36px 24px; }
  .page-title { padding: 48px 0 40px; }
  .days__row { grid-template-columns: 1fr; gap: 4px; }
  .btn { width: 100%; }
  .btn-row { flex-direction: column; }
  .signup .btn { width: 100%; }
}
