/* =========================================================
   Edge O' the Woods Motel — styles.css
   Palette: pine green + warm cream/sand + gold accent
   Mobile-first; desktop enhancements via media queries.
   ========================================================= */

:root {
  /* Greens */
  --green-900: #16271c;
  --green-800: #1f3a2b;
  --green-700: #2f5741;
  --green-600: #3a6b4c;
  --green-500: #4a7c59;
  --green-200: rgba(74, 124, 89, 0.12);

  /* Warm neutrals */
  --cream: #f7f2e8;
  --sand: #efe6d4;
  --white: #ffffff;

  /* Text */
  --charcoal: #23211d;
  --muted: #5c5849;

  /* Accent */
  --gold: #c89b4a;
  --gold-dark: #b0823a;
  --gold-light: #e3b968;

  --line: rgba(35, 33, 29, 0.12);
  --shadow-sm: 0 2px 8px rgba(22, 39, 28, 0.08);
  --shadow-md: 0 14px 34px rgba(22, 39, 28, 0.14);

  --header-h: 72px;
  --maxw: 1140px;
  --radius: 14px;

  --font-head: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

/* ----- Reset / base ----- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 10px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--charcoal);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img,
svg,
iframe { display: block; max-width: 100%; }

a { color: inherit; }

h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.12;
  margin: 0;
}

p { margin: 0; }

ul { margin: 0; padding: 0; list-style: none; }

/* ----- Utilities ----- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 1.25rem;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  z-index: 2000;
  background: var(--gold);
  color: var(--green-900);
  padding: 0.6rem 1rem;
  border-radius: 8px;
  font-weight: 600;
  transition: top 0.2s ease;
}
.skip-link:focus { top: 0.75rem; }

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ----- Buttons ----- */
.btn {
  --btn-bg: var(--gold);
  --btn-fg: var(--green-900);
  --btn-bd: var(--gold);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.7rem 1.4rem;
  border: 2px solid var(--btn-bd);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1;
  text-decoration: none;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 0.15s ease, background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary { --btn-bg: var(--gold); --btn-fg: var(--green-900); --btn-bd: var(--gold); }
.btn-primary:hover { --btn-bg: var(--gold-dark); --btn-bd: var(--gold-dark); }

.btn-outline { --btn-bg: transparent; --btn-fg: var(--green-700); --btn-bd: var(--green-700); }
.btn-outline:hover { --btn-bg: var(--green-700); --btn-fg: #fff; --btn-bd: var(--green-700); }

.btn-ghost { --btn-bg: transparent; --btn-fg: #fff; --btn-bd: rgba(255, 255, 255, 0.7); }
.btn-ghost:hover { --btn-bg: #fff; --btn-fg: var(--green-900); --btn-bd: #fff; }

.btn-lg { padding: 0.9rem 1.8rem; font-size: 1.02rem; }
.btn-block { width: 100%; margin-top: auto; }

/* ----- Header ----- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1000;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: transparent;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}
.site-header.scrolled {
  background: var(--green-800);
  box-shadow: 0 6px 20px rgba(22, 39, 28, 0.22);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

/* Brand */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: #fff;
}
.brand-mark { width: 34px; height: 34px; flex: none; }
.brand-text {
  display: flex;
  flex-direction: column;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: 0.01em;
  color: #fff;
  line-height: 1.05;
}
.brand-sub {
  font-family: var(--font-body);
  font-size: 0.62rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold-light);
  font-weight: 600;
}

/* Nav toggle (hamburger) */
.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0 9px;
  background: transparent;
  border: 0;
  cursor: pointer;
}
.nav-toggle-bar {
  height: 2px;
  width: 100%;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Primary nav (mobile dropdown by default) */
.primary-nav {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--green-800);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.primary-nav.open { max-height: 26rem; box-shadow: var(--shadow-md); }
.nav-links {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.75rem 1.25rem 1.25rem;
}
.nav-links a:not(.btn) {
  display: block;
  padding: 0.75rem 0.25rem;
  color: #fff;
  text-decoration: none;
  font-weight: 500;
}
.nav-links a:not(.btn).active { color: var(--gold-light); }
.nav-cta { margin-top: 0.5rem; }
.nav-cta .btn { width: 100%; }

/* ----- Hero ----- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  background: var(--green-800) url("../assets/images/hero.svg") center / cover no-repeat;
  color: #fff;
  isolation: isolate;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(15, 26, 18, 0.55) 0%, rgba(15, 26, 18, 0.35) 45%, rgba(15, 26, 18, 0.65) 100%);
}
.hero-content {
  padding-top: calc(var(--header-h) + 2rem);
  padding-bottom: 4rem;
  max-width: 760px;
}
.hero-title {
  font-size: clamp(2.2rem, 6vw, 3.8rem);
  margin: 0.5rem 0 1rem;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.3);
}
.hero-tagline {
  font-size: clamp(1.05rem, 2.2vw, 1.3rem);
  max-width: 560px;
  color: rgba(255, 255, 255, 0.92);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2rem;
}
.hero-scroll {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: 26px;
  height: 42px;
  border: 2px solid rgba(255, 255, 255, 0.7);
  border-radius: 999px;
  display: grid;
  place-items: start center;
  padding-top: 7px;
}
.hero-scroll-dot {
  width: 4px;
  height: 8px;
  border-radius: 4px;
  background: #fff;
  animation: scrolldot 1.6s ease-in-out infinite;
}
@keyframes scrolldot {
  0%, 100% { transform: translateY(0); opacity: 1; }
  50% { transform: translateY(8px); opacity: 0.3; }
}

/* ----- Eyebrow / section heads ----- */
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--gold-dark);
  margin: 0;
}
.eyebrow-light { color: var(--gold-light); }

.section { padding-block: clamp(3.5rem, 8vw, 6rem); }
.section-head {
  max-width: 680px;
  margin: 0 auto 2.75rem;
  text-align: center;
}
.section-title {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  color: var(--green-700);
  margin: 0.5rem 0 0.75rem;
}
.section-intro {
  color: var(--muted);
  font-size: 1.05rem;
}

/* ----- Rooms ----- */
.rooms { background: var(--cream); }
.room-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.room-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.room-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.room-media { aspect-ratio: 4 / 3; background: var(--sand); }
.room-media img { width: 100%; height: 100%; object-fit: cover; }
.room-body {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding: 1.25rem;
  flex: 1;
}
.room-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
}
.room-name { font-size: 1.3rem; color: var(--green-700); }
.room-price { color: var(--green-700); white-space: nowrap; }
.room-amount { font-weight: 700; font-size: 1.25rem; }
.room-per { color: var(--muted); font-size: 0.85rem; }
.room-desc { color: var(--muted); font-size: 0.95rem; }
.room-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.35rem 0.75rem;
  font-size: 0.86rem;
  margin: 0.25rem 0 0.5rem;
}
.room-features li { position: relative; padding-left: 1.2rem; }
.room-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--gold-dark);
  font-weight: 700;
}

/* ----- Amenities ----- */
.amenities { background: var(--white); }
.amenity-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}
.amenity {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.75rem;
  padding: 1.5rem 1rem;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.amenity:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.amenity-icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--green-200);
  color: var(--green-700);
}
.amenity-icon svg { width: 26px; height: 26px; }
.amenity-label { font-weight: 600; font-size: 0.95rem; color: var(--charcoal); }

/* ----- Gallery ----- */
.gallery { background: var(--sand); }
.gallery-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.gallery-item {
  margin: 0;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.gallery-item:hover img { transform: scale(1.05); }

/* ----- Location ----- */
.location { background: var(--white); }
.location-grid {
  display: grid;
  gap: 2rem;
  align-items: stretch;
  grid-template-columns: 1fr;
}
.info-block { margin-bottom: 1.4rem; }
.info-title {
  font-size: 1.05rem;
  color: var(--green-700);
  margin-bottom: 0.25rem;
}
.info-link {
  color: var(--green-700);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}
.info-link:hover { border-bottom-color: var(--green-700); }
.location-map {
  min-height: 340px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.map-frame { width: 100%; height: 100%; min-height: 340px; border: 0; }

/* ----- Contact ----- */
.contact { background: var(--green-800); }
.contact .section-title { color: var(--cream); }
.contact .section-intro { color: rgba(247, 242, 232, 0.82); }
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.9rem;
}
.contact-note {
  text-align: center;
  margin-top: 1.1rem;
  color: rgba(247, 242, 232, 0.72);
  font-size: 0.95rem;
}
.reservation { margin-top: 2rem; }

/* ----- Footer ----- */
.site-footer { background: var(--green-900); color: rgba(247, 242, 232, 0.78); }
.footer-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
  padding-block: 3rem;
}
.footer-brand .brand-footer { color: #fff; margin-bottom: 0.75rem; }
.footer-blurb { max-width: 320px; font-size: 0.95rem; }
.footer-heading {
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.82rem;
  color: var(--cream);
  margin-bottom: 0.9rem;
}
.footer-nav a,
.footer-contact a {
  color: rgba(247, 242, 232, 0.78);
  text-decoration: none;
}
.footer-nav li { margin-bottom: 0.5rem; }
.footer-nav a:hover,
.footer-contact a:hover { color: var(--gold-light); }
.footer-contact p { margin-bottom: 0.75rem; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.12); }
.footer-bottom-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  justify-content: space-between;
  align-items: center;
  padding-block: 1.25rem;
  font-size: 0.85rem;
}
.footer-soon { color: var(--gold-light); }

/* =========================================================
   Desktop / larger screens
   ========================================================= */
@media (min-width: 881px) {
  .nav-toggle { display: none; }

  .primary-nav {
    position: static;
    background: transparent;
    border-top: 0;
    max-height: none;
    overflow: visible;
    box-shadow: none;
  }
  .nav-links {
    flex-direction: row;
    align-items: center;
    gap: 1.75rem;
    padding: 0;
  }
  .nav-links a:not(.btn) {
    position: relative;
    padding: 0.4rem 0;
  }
  .nav-links a:not(.btn)::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -2px;
    height: 2px;
    background: var(--gold-light);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.2s ease;
  }
  .nav-links a:not(.btn):hover::after,
  .nav-links a:not(.btn).active::after { transform: scaleX(1); }
  .nav-cta { margin-top: 0; margin-left: 0.5rem; }
  .nav-cta .btn { width: auto; }

  .location-grid { grid-template-columns: 1fr 1.05fr; }

  .footer-grid { grid-template-columns: 1.4fr 1fr 1.2fr; }
}

@media (min-width: 1024px) {
  .room-grid { grid-template-columns: repeat(4, 1fr); }
}

/* ----- Reduced motion ----- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
