/* ==========================================================================
   Twin Pines Resort on Trout Lake — main stylesheet
   Palette pulled from the logo
   ========================================================================== */

/* Self-hosted fonts (SIL Open Font License — see /fonts) */
@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces-var.woff2") format("woff2");
  font-weight: 400 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces-italic-var.woff2") format("woff2");
  font-weight: 400; font-style: italic; font-display: swap;
}
@font-face {
  font-family: "Jost";
  src: url("../fonts/jost-var.woff2") format("woff2");
  font-weight: 400 500; font-style: normal; font-display: swap;
}

:root {
  --forest: #1F3B2D;
  --forest-deep: #162b21;
  --lake: #2E5E74;
  --lake-light: #dce7ec;
  --cream: #F5F0E6;
  --paper: #FBF8F2;
  --stone: #C9BFAE;
  --bark: #6B645A;
  --ember: #C0602F;
  --ember-dark: #a14f25;
  --ember-light: #E8A27A;
  --ember-btn: #AE5426;      /* button fill: white text passes 4.5:1 */
  --ember-btn-hover: #9A4A22;
  --ember-text: #A14F25;     /* rust for text on light backgrounds (4.5:1+) */
  --peach-on-lake: #F6D2BC;
  --ink: #23302a;

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Jost", "Helvetica Neue", Arial, sans-serif;

  --wrap: 1180px;
  --radius: 6px;
  --shadow: 0 18px 40px -18px rgba(22, 43, 33, .35);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--lake); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--ember-text); }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  color: var(--forest);
  margin: 0 0 .5em;
  text-wrap: balance;
}

p { margin: 0 0 1.1em; }

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

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--forest); color: var(--cream); padding: 10px 16px; z-index: 1000;
}
.skip-link:focus { left: 12px; top: 12px; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* Keyboard focus: clearly visible on every background */
:focus-visible {
  outline: 3px solid var(--lake);
  outline-offset: 3px;
  border-radius: 2px;
}
.hero :focus-visible,
.cta-band :focus-visible,
.site-footer :focus-visible { outline-color: var(--cream); }
.ao-input-control:focus-visible { outline: 3px solid var(--lake); outline-offset: 2px; }

/* Desktop dropdown dismissed with Escape */
.has-sub.sub-dismissed > .sub-menu { opacity: 0 !important; visibility: hidden !important; }

.eyebrow {
  font-family: var(--font-body);
  font-size: .8rem;
  font-weight: 500;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--lake);
  margin: 0 0 .9em;
}

/* Buttons ------------------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-body);
  font-size: .9rem; font-weight: 500;
  letter-spacing: .14em; text-transform: uppercase;
  text-decoration: none;
  padding: 14px 26px;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
}
.btn-ember { background: var(--ember-btn); color: #fff; }
.btn-ember:hover { background: var(--ember-btn-hover); color: #fff; transform: translateY(-1px); }
.btn-outline { border-color: var(--forest); color: var(--forest); background: transparent; }
.btn-outline:hover { background: var(--forest); color: var(--cream); }
.btn-outline-light { border-color: var(--cream); color: var(--cream); }
.btn-outline-light:hover { background: var(--cream); color: var(--forest); }

/* Header ------------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--cream);
  border-bottom: 1px solid rgba(31, 59, 45, .12);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 56px;
  min-height: 88px;
  max-width: 1360px; /* header runs wider than the content so the nav can breathe */
}
.brand { flex: none; }
.brand img { width: 240px; height: auto; }

.main-nav ul { list-style: none; margin: 0; padding: 0; }
.main-nav > ul { display: flex; align-items: center; gap: 4px; }
.main-nav a {
  display: block;
  font-size: .82rem; font-weight: 500;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--forest); text-decoration: none;
  padding: 10px 14px;
  white-space: nowrap;
}
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--ember-text); }
.main-nav .nav-book { margin-left: 16px; }
.main-nav .nav-book a { background: var(--ember-btn); color: #fff; border-radius: var(--radius); padding: 11px 20px; }
.main-nav .nav-book a:hover { background: var(--ember-btn-hover); color: #fff; }

.has-sub { position: relative; }
.sub-toggle { display: none; }
.has-sub > a::after {
  content: ""; display: inline-block; margin-left: 7px; vertical-align: 2px;
  border: 4px solid transparent; border-top-color: currentColor; border-bottom: 0;
}
.sub-menu {
  position: absolute; top: 100%; left: 0; min-width: 220px;
  background: #fff; border-top: 3px solid var(--ember);
  box-shadow: var(--shadow);
  padding: 8px 0;
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
}
.has-sub:hover > .sub-menu,
.has-sub:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.sub-menu a { padding: 9px 20px; letter-spacing: .08em; }
.sub-menu a:hover { background: var(--cream); }

.nav-toggle {
  display: none;
  background: none; border: 0; padding: 10px; cursor: pointer; color: var(--forest);
}
.nav-toggle span { display: block; width: 26px; height: 2px; background: currentColor; margin: 5px 0; transition: transform .2s, opacity .2s; }

/* Hero --------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: min(82vh, 760px);
  display: flex; align-items: flex-end;
  color: #fff;
  overflow: hidden;
}
.hero-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: 55% 45%;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(22,43,33,0) 55%, rgba(22,43,33,.45) 85%, rgba(22,43,33,.7) 100%);
}
.hero-content {
  position: relative; z-index: 1;
  padding-bottom: 190px; /* room for the overlapping booking card */
}
.hero-panel {
  display: inline-block;
  max-width: 100%;
  padding: 28px 34px 30px;
  background: rgba(22, 43, 33, .58);
  border-radius: 10px;
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
}
.hero .eyebrow { color: #fff; font-weight: 500; }
.hero h1 {
  color: #fff;
  font-size: clamp(2.1rem, 4.4vw, 3.4rem);
  text-wrap: balance;
  max-width: 15ch;
  text-shadow: 0 2px 12px rgba(0,0,0,.3);
  margin-bottom: .3em;
}
.hero-tagline {
  font-family: var(--font-display); font-style: italic;
  font-size: clamp(1.15rem, 2.2vw, 1.5rem);
  color: #fff; margin: 0; max-width: 34ch;
  text-shadow: 0 1px 8px rgba(0,0,0,.3);
}

/* Booking card (Availability Online) -------------------------------------- */
.booking {
  position: relative; z-index: 5;
  margin-top: -64px;
}
.ao-widget-card {
  background: #fff;
  border-radius: 10px;
  box-shadow: var(--shadow);
  border-top: 4px solid var(--ember);
  padding: 20px 26px 22px;
}

.ao-form-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 16px;
  align-items: end;
}
.ao-field-container { display: flex; flex-direction: column; gap: 6px; }
.ao-field-label {
  font-size: .75rem; font-weight: 500;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--bark);
}
.ao-input-wrapper { position: relative; display: flex; align-items: center; }
.ao-input-control {
  width: 100%; height: 52px;
  padding: 0 14px 0 44px;
  font-family: inherit; font-size: 1rem; font-weight: 500; color: var(--ink);
  background: var(--paper);
  border: 1.5px solid var(--stone);
  border-radius: var(--radius);
  outline: none; cursor: pointer;
  -webkit-appearance: none; appearance: none;
  transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}
.ao-input-control:hover { border-color: var(--bark); background: #fff; }
.ao-input-control:focus { border-color: var(--lake); background: #fff; box-shadow: 0 0 0 4px rgba(46, 94, 116, .15); }
.ao-input-icon { position: absolute; left: 15px; pointer-events: none; color: var(--lake); }
.ao-select-arrow { position: absolute; right: 14px; pointer-events: none; color: var(--bark); }
.ao-actions-group { display: flex; }
.ao-btn { width: 100%; height: 52px; }

/* Intro -------------------------------------------------------------------- */
.section { padding: 96px 0; }
.intro-grid {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 64px;
  align-items: start;
}
.intro h2 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); }
.intro .call-line { margin-top: 26px; font-size: 1rem; color: var(--bark); }
.intro .call-line a { color: var(--forest); font-weight: 500; }
.intro .call-line a:hover { color: var(--ember-text); }

.intro-img {
  width: 100%; aspect-ratio: 1240 / 660; object-fit: cover;
  border-radius: 8px 8px 0 0;
  margin-top: 6px;
}
.amenity-list {
  list-style: none; margin: 0; padding: 28px 30px; background: var(--cream); border-radius: 0 0 8px 8px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px 24px;
}
.amenity-list li {
  display: flex; align-items: center; gap: 12px;
  font-size: .98rem; color: var(--forest);
}
.amenity-list svg { flex: none; color: var(--ember); }

/* Feature tiles ------------------------------------------------------------ */
.tiles-section { background: var(--cream); }
.tiles-head { text-align: center; max-width: 640px; margin: 0 auto 48px; }
.tiles-head h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); }
.tiles {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px;
}
.tile {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  display: flex; flex-direction: column;
  box-shadow: 0 1px 0 rgba(31,59,45,.08);
  transition: transform .25s ease, box-shadow .25s ease;
}
.tile:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.tile-media { aspect-ratio: 4 / 3; overflow: hidden; background: var(--lake-light); }
.tile-media picture { display: block; width: 100%; height: 100%; }
.tile-media img { width: 100%; height: 100%; object-fit: cover; }
/* Temporary placeholder until TD sends photos */
.tile-placeholder {
  width: 100%; height: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  background: linear-gradient(160deg, var(--lake) 0%, var(--forest) 100%);
  color: var(--cream);
  font-size: .75rem; letter-spacing: .2em; text-transform: uppercase;
}
.tile-placeholder img { width: 72px; height: 72px; opacity: .9; }
.tile-body { padding: 28px 28px 32px; display: flex; flex-direction: column; flex: 1; }
.tile-body h2 { font-size: 1.5rem; }
.tile-body p { font-size: 1rem; flex: 1; }
.tile-body .btn { align-self: flex-start; margin-top: 8px; }

/* Testimonial -------------------------------------------------------------- */
.testimonial { text-align: center; padding: 88px 0; }
.testimonial blockquote { margin: 0 auto; max-width: 980px; }
.testimonial-mark {
  display: flex; align-items: center; justify-content: center; gap: 18px;
  margin: 0 auto 24px;
}
.testimonial-mark::before,
.testimonial-mark::after {
  content: ""; width: 64px; height: 1px; background: var(--stone);
}
.testimonial-mark img { width: 44px; height: 44px; }
.testimonial p {
  font-family: var(--font-display);
  font-style: italic; font-weight: 400;
  font-size: clamp(1.45rem, 2.6vw, 2rem);
  line-height: 1.35;
  color: var(--forest);
  text-wrap: balance;
}
.testimonial cite {
  font-style: normal; font-size: .82rem; letter-spacing: .22em; text-transform: uppercase; color: var(--bark);
}

/* CTA band ----------------------------------------------------------------- */
.cta-band { background: var(--lake); color: var(--cream); padding: 64px 0; }
.cta-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px; }
.cta-band h2 { color: #fff; font-size: clamp(1.7rem, 3vw, 2.3rem); margin-bottom: .25em; }
.cta-band p { margin: 0; font-size: 1.05rem; }
.cta-band a.phone { color: #fff; font-weight: 500; }
.cta-band a.phone:hover { color: var(--peach-on-lake); }
.cta-actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* Footer ------------------------------------------------------------------- */
.site-footer { background: var(--forest); color: var(--stone); font-size: .95rem; }
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 48px;
  padding: 72px 24px 56px;
}
.footer-brand { display: flex; gap: 18px; align-items: flex-start; }
.footer-brand img { width: 84px; height: 84px; flex: none; }
.footer-name { font-family: var(--font-display); font-size: 1.6rem; color: var(--cream); line-height: 1.1; margin: 4px 0 6px; }
.footer-sub { font-size: .72rem; letter-spacing: .26em; text-transform: uppercase; color: var(--stone); margin: 0; }
.site-footer .footer-heading {
  font-family: var(--font-body); font-weight: 500;
  font-size: .78rem; letter-spacing: .22em; text-transform: uppercase;
  color: var(--cream); margin: 0 0 16px;
}
.site-footer address { font-style: normal; line-height: 1.8; }
.site-footer a { color: var(--cream); text-decoration: none; }
.site-footer a:hover { color: var(--ember-light); }
.footer-links { list-style: none; margin: 0; padding: 0; line-height: 2; }
.footer-bottom {
  background: var(--forest-deep);
  border-top: 1px solid rgba(201, 191, 174, .18);
  font-size: .82rem; color: rgba(201, 191, 174, .8);
}
.footer-bottom-inner {
  padding-top: 20px; padding-bottom: 20px;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px;
}
.footer-bottom a { color: rgba(245, 240, 230, .85); }
.footer-bottom a:hover { color: var(--ember-light); }

/* Inner-page placeholder --------------------------------------------------- */
.page-placeholder { padding: 120px 0; text-align: center; min-height: 50vh; }
.page-placeholder p { color: var(--bark); }

/* Responsive --------------------------------------------------------------- */
@media (max-width: 1300px) {
  .nav-toggle { display: block; }
  .main-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--cream);
    border-bottom: 1px solid rgba(31, 59, 45, .12);
    max-height: 0; overflow: hidden; visibility: hidden;
    transition: max-height .3s ease, visibility 0s linear .3s;
  }
  .main-nav.open { max-height: 80vh; overflow-y: auto; visibility: visible; transition: max-height .3s ease, visibility 0s; }
  .main-nav > ul { flex-direction: column; align-items: stretch; gap: 0; padding: 8px 24px 24px; }
  .main-nav a { padding: 13px 0; border-bottom: 1px solid rgba(31, 59, 45, .08); }
  .has-sub > a::after { display: none; }
  .sub-menu {
    position: static; opacity: 1; visibility: inherit; transform: none;
    box-shadow: none; border: 0; background: transparent; padding: 0 0 0 16px; min-width: 0;
  }
  .sub-menu a { padding: 10px 0; text-transform: none; letter-spacing: .04em; font-size: .95rem; }
  /* Cottages dropdown on mobile: link + toggle button, submenu collapsed by default */
  .has-sub { display: flex; flex-wrap: wrap; align-items: stretch; }
  .has-sub > a { flex: 1; }
  .sub-toggle {
    display: flex; align-items: center; justify-content: center;
    width: 48px; flex: none;
    background: none; border: 0; border-bottom: 1px solid rgba(31, 59, 45, .08);
    color: var(--forest); cursor: pointer;
  }
  .sub-toggle svg { transition: transform .2s ease; }
  .sub-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
  .main-nav .has-sub > .sub-menu { flex-basis: 100%; display: none; padding: 0 0 0 18px; }
  .main-nav .has-sub.sub-open > .sub-menu { display: block; }
  .main-nav .nav-book { margin: 18px 0 0; }
  .main-nav .nav-book a { text-align: center; border: 0; }
  .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); }
}

@media (max-width: 900px) {
  .intro-grid { grid-template-columns: 1fr; gap: 24px; }
  .tiles { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 720px) {
  .ao-form-grid { grid-template-columns: 1fr; gap: 12px; }
  .ao-widget-card { padding: 22px 18px 24px; }
}

@media (max-width: 600px) {
  body { font-size: 1rem; }
  .wrap { padding: 0 16px; }
  .header-inner { min-height: 70px; }
  .brand img { width: 190px; }
  .hero { min-height: 72vh; }
  .hero-img { object-position: 50% 50%; }
  .hero-content { padding-bottom: 130px; }
  .hero .eyebrow { letter-spacing: .18em; font-size: .72rem; }
  .hero-panel { padding: 20px 20px 22px; }
  .booking { margin-top: -72px; }
  .section { padding: 64px 0; }
  .amenity-list { grid-template-columns: 1fr; }
  .tile-body { padding: 22px 20px 26px; }
  .cta-actions, .cta-actions .btn { width: 100%; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; padding: 56px 16px 40px; }
  .footer-bottom-inner { padding-top: 18px; padding-bottom: 18px; }
}

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