/* ============================================================
   HOME.CSS — index.html specific styles
   Requires: global.css, gallery.css
   Covers: hero nav overrides, hero section, sections, about,
           blog cards, map, footer extensions, newsletter form
   ============================================================ */

/* BODY OVERRIDE — index needs overflow-x hidden for hero */
body { overflow-x: hidden; }

.site { max-width: var(--max); margin: 0 auto; padding: 0 0 60px; }

/* NAV OVERRIDE — index uses fixed transparent nav that fades in on scroll */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  display: block;
  background: rgba(244,237,224,0);
  backdrop-filter: blur(0px);
  border-bottom: 0.5px solid rgba(154,173,140,0);
  transition: background 0.4s, backdrop-filter 0.4s, border-color 0.4s;
}
nav.scrolled {
  background: rgba(244,237,224,0.92);
  backdrop-filter: blur(16px);
  border-bottom: 0.5px solid var(--border);
}
.nav-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px 28px;
}

/* Nav logo and links adapt to hero vs scrolled */
.nav-logo {
  color: rgba(244,236,220,0.95); transition: color 0.4s;
}
nav.scrolled .nav-logo { color: var(--text); }
.nav-logo span { font-style: italic; color: rgba(195,240,100,0.9); transition: color 0.4s; }
nav.scrolled .nav-logo span { color: var(--sage-dark); }

.nav-links a {
  color: rgba(240,235,220,0.8);
}
nav.scrolled .nav-links a { color: var(--text2); }
.nav-links a:hover { color: rgba(200,240,120,0.95); }
nav.scrolled .nav-links a:hover { color: var(--sage-dark); }

.nav-pip { background: #b5e642; }

/* Hamburger spans inherit hero colour */
.hamburger-btn span { background: rgba(240,235,220,0.9); }
nav.scrolled .hamburger-btn span { background: var(--text2); }

/* Mobile nav breakpoint for index (680px instead of 900px) */
@media (max-width: 1150px) {
  .nav-links { display: none !important; }
  .mob-controls { display: flex !important; }
  .hamburger-btn { display: flex !important; }
}

/* HERO */
.hero {
  position: relative; width: 100%; height: 95vh; min-height: 600px;
  overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end;
}
.hero-photo {
  position: absolute; inset: 0;
  background-image: url('../hero.jpg');
  background-size: cover; background-position: 72% center;
  animation: kenburns 20s ease-in-out infinite alternate;
  transform-origin: 70% 50%;
}
@keyframes kenburns {
  0%   { transform: scale(1.0) translate(0,0); }
  100% { transform: scale(1.09) translate(-1.2%, 0.6%); }
}
.hero-scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(to right, rgba(15,12,8,0.88) 0%, rgba(15,12,8,0.52) 48%, rgba(15,12,8,0.06) 78%, rgba(15,12,8,0) 100%),
    linear-gradient(to top, rgba(15,12,8,0.52) 0%, rgba(15,12,8,0.22) 28%, rgba(15,12,8,0.06) 50%, rgba(15,12,8,0) 65%);
}
.hero-fade {
  position: absolute; bottom: 0; left: 0; right: 0; height: 160px;
  background: linear-gradient(
    to bottom,
    rgba(244,237,224,0)    0%,
    rgba(244,237,224,0.55) 60%,
    #f4ede0                100%
  );
  pointer-events: none; z-index: 3;
}
.hero-content {
  position: relative; z-index: 5;
  width: 100%; max-width: 1200px;
  margin: 0 auto; padding: 0 28px 60px;
}
.hero-content-inner { max-width: 500px; }
.hero-eyebrow {
  font-size: 10px; letter-spacing: 0.28em; text-transform: uppercase;
  color: rgba(195,240,120,0.85); margin-bottom: 16px; font-weight: 500;
}
.hero-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(50px, 9vw, 88px); font-weight: 300; line-height: 1.0;
  color: #f4ede0; margin-bottom: 18px;
  text-shadow: 0 2px 32px rgba(0,0,0,0.45), 0 1px 8px rgba(0,0,0,0.22);
}
.hero-title em { font-style: italic; color: #c8f060; }
.hero-sub {
  font-size: 15px; color: rgba(244,237,224,0.92); max-width: 340px;
  line-height: 1.85; margin-bottom: 34px; font-weight: 300;
  text-shadow: 0 1px 12px rgba(0,0,0,0.35);
}

/* PILLS */
.hero-pills { display: flex; gap: 10px; flex-wrap: wrap; }
.pill {
  padding: 9px 22px; border-radius: 100px; font-size: 11px;
  letter-spacing: 0.12em; text-transform: uppercase;
  border: 0.5px solid rgba(195,240,120,0.38);
  background: rgba(255,255,255,0.06);
  color: rgba(244,237,224,0.82); cursor: pointer;
  transition: all 0.25s; text-decoration: none; backdrop-filter: blur(8px);
}
.pill:hover, .pill.active {
  background: rgba(154,173,140,0.3); border-color: rgba(195,240,120,0.65); color: #d8f5a0;
}
.pill-subtle {
  border-color: rgba(195,240,120,0.18);
  color: rgba(244,237,224,0.52);
}
.pill-subtle:hover {
  border-color: rgba(195,240,120,0.45);
  color: rgba(244,237,224,0.82);
  background: rgba(255,255,255,0.04);
}

/* ACCENT BAR — index version is 2px */
.accent-bar { height: 2px; }

/* SECTIONS */
.section { padding: 52px 32px; }
.section + .section { border-top: 0.5px solid var(--border); }
.sec-label { font-size: 10px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--sage-dark); margin-bottom: 28px; font-weight: 500; }

/* ABOUT */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; }
.about-text { font-size: 15px; color: var(--text2); line-height: 1.9; font-weight: 300; }
.about-text strong { font-weight: 500; color: var(--text); }
.about-stat-block { display: flex; flex-direction: column; gap: 16px; padding-top: 4px; }
.about-stat { background: var(--surface); border: 0.5px solid var(--border); border-radius: 10px; padding: 18px 20px; border-left: 2px solid var(--sage); }
.stat-num { font-family: 'Cormorant Garamond', serif; font-size: 34px; font-weight: 300; color: var(--text); line-height: 1; margin-bottom: 4px; }
.stat-label { font-size: 12px; color: var(--text3); letter-spacing: 0.08em; }

/* BLOG CARDS */
.blog-grid { display: grid; gap: 16px; }
.blog-card {
  background: var(--surface); border: 0.5px solid var(--border); border-radius: 12px;
  padding: 22px 24px; text-decoration: none; display: block;
  transition: border-color 0.2s, background 0.2s; position: relative; overflow: hidden;
}
.blog-card::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: var(--sage); border-radius: 2px 0 0 2px; }
.blog-card:hover { border-color: var(--sage-light); background: var(--bg2); }
.blog-tag { font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--sage-dark); margin-bottom: 8px; display: block; font-weight: 500; }
.blog-title { font-family: 'Cormorant Garamond', serif; font-size: 22px; font-weight: 400; color: var(--text); line-height: 1.3; margin-bottom: 8px; }
.blog-excerpt { font-size: 14px; color: var(--text2); line-height: 1.7; font-weight: 300; margin-bottom: 14px; }
.blog-meta { font-size: 12px; color: var(--text3); display: flex; gap: 16px; align-items: center; }
.blog-arrow { margin-left: auto; font-size: 16px; color: var(--sage-light); transition: transform 0.2s; }
.blog-card:hover .blog-arrow { transform: translateX(4px); color: var(--sage-dark); }
.view-all-link {
  display: inline-block; margin-top: 20px; font-size: 12px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--sage-dark); text-decoration: none;
  border-bottom: 0.5px solid var(--sage-light); padding-bottom: 2px; transition: border-color 0.2s;
}
.view-all-link:hover { border-color: var(--sage-dark); }

/* MAP */
.map-section {
  max-width: var(--max); margin: 0 auto;
  padding: 52px 32px; border-top: 0.5px solid var(--border);
}
.map-controls { display: flex; gap: 6px; margin-bottom: 20px; flex-wrap: wrap; }
.map-filter {
  padding: 5px 12px; border-radius: 100px; font-size: 10px; letter-spacing: 0.08em;
  text-transform: uppercase; border: 0.5px solid var(--border2);
  background: transparent; color: var(--text2); cursor: pointer;
  transition: all 0.2s; font-family: 'DM Sans', sans-serif; white-space: nowrap;
}
.map-filter.active, .map-filter:hover { background: var(--sage-dark); border-color: var(--sage-dark); color: var(--cream); }
.map-layout { display: grid; grid-template-columns: 1fr 300px; gap: 16px; }
.map-wrap {
  border-radius: 12px; overflow: hidden; border: 0.5px solid var(--border);
  height: 480px; position: relative; background: var(--bg2);
}
#map-container { width: 100%; height: 100%; display: block; }
.map-list { display: flex; flex-direction: column; gap: 8px; overflow-y: auto; max-height: 480px; }
.map-list::-webkit-scrollbar { width: 3px; }
.map-list::-webkit-scrollbar-thumb { background: var(--sand); border-radius: 3px; }
.map-item {
  background: var(--surface); border: 0.5px solid var(--border); border-radius: 10px;
  padding: 14px 16px; cursor: pointer; transition: border-color 0.2s, background 0.2s;
  border-left: 2px solid var(--sage-light);
}
.map-item:hover, .map-item.active-pin { border-color: var(--sage); border-left-color: var(--sage-dark); background: var(--bg2); }
.mi-name { font-size: 14px; font-weight: 500; color: var(--text); margin-bottom: 2px; }
.mi-city { font-size: 11px; color: var(--sage-dark); letter-spacing: 0.06em; margin-bottom: 4px; }
.mi-desc { font-size: 12px; color: var(--text2); font-weight: 300; line-height: 1.5; margin-bottom: 6px; }
.mi-meta { display: flex; gap: 10px; align-items: center; }
.mi-rating { font-size: 12px; color: var(--sage-dark); }
.mi-price { font-size: 12px; color: var(--text3); padding: 2px 8px; background: var(--bg2); border-radius: 4px; border: 0.5px solid var(--border); }

/* MAPBOX POPUP */
.mapboxgl-popup-content {
  background: var(--cream) !important; border: 0.5px solid rgba(154,173,140,0.4) !important;
  border-radius: 10px !important; padding: 14px 16px !important;
  box-shadow: 0 4px 24px rgba(0,0,0,0.10) !important;
  font-family: 'DM Sans', sans-serif !important; min-width: 190px;
}
.mapboxgl-popup-tip { border-top-color: var(--cream) !important; }
.mapboxgl-popup-close-button { color: var(--text3) !important; font-size: 16px !important; padding: 6px 8px !important; }
.popup-name { font-size: 14px; font-weight: 500; color: var(--text); margin-bottom: 2px; }
.popup-city { font-size: 11px; color: var(--sage-dark); letter-spacing: 0.06em; margin-bottom: 6px; }
.popup-desc { font-size: 12px; color: var(--text2); font-weight: 300; line-height: 1.5; margin-bottom: 8px; }
.popup-meta { display: flex; justify-content: space-between; align-items: center; }
.popup-rating { font-size: 12px; color: var(--sage-dark); }
.popup-price { font-size: 11px; color: var(--text3); padding: 2px 8px; background: var(--bg2); border-radius: 4px; }
.popup-menu {
  font-size: 11px; color: var(--sage-dark); text-decoration: none;
  letter-spacing: 0.06em; border-bottom: 0.5px solid var(--sage-light);
  padding-bottom: 1px; transition: border-color 0.2s;
}
.popup-menu:hover { border-color: var(--sage-dark); }

/* FOOTER EXTENSIONS — index has extra ig link and short/full logo */
footer { margin-top: 40px; }
.footer-short { display: none; }
.footer-full { display: inline; }
.footer-ig {
  display: inline-flex; align-items: center; gap: 7px;
  color: var(--text3); text-decoration: none; font-size: 12px;
  letter-spacing: 0.04em; transition: color 0.2s;
}
.footer-ig:hover { color: var(--sage-dark); }
.footer-right { font-size: 12px; }

/* DARK MODE HERO OVERRIDES */
body.dark nav { background: rgba(20,21,18,0) !important; }
body.dark nav.scrolled { background: rgba(20,21,18,0.95) !important; }
body.dark .hero-photo { background-image: url('../hero2.jpg') !important; }
body.dark .hero-fade {
  height: 260px;
  background: linear-gradient(
    to bottom,
    rgba(20,21,18,0)    0%,
    rgba(20,21,18,0.05) 30%,
    rgba(20,21,18,0.28) 56%,
    rgba(20,21,18,0.70) 78%,
    #141512             100%
  ) !important;
}

/* NEWSLETTER */
.newsletter-section {
  padding: 52px 32px 32px; border-top: 0.5px solid var(--border); text-align: center;
}
.newsletter-inner { max-width: 520px; margin: 0 auto; }
.newsletter-eyebrow {
  font-size: 10px; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--sage-dark); margin-bottom: 16px; font-weight: 500;
}
.newsletter-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(28px, 5vw, 38px); font-weight: 300;
  color: var(--text); line-height: 1.2; margin-bottom: 12px;
}
.newsletter-title em { font-style: italic; color: var(--sage-dark); }
.newsletter-sub { font-size: 14px; color: var(--text2); font-weight: 300; line-height: 1.8; margin-bottom: 20px; }
.beehiiv-wrap { width: 100%; margin: 0 auto; }
.custom-sub-form {
  display: flex; width: 100%; border-radius: 100px;
  overflow: hidden; border: 1px solid var(--sage-light); background: var(--cream);
}
.sub-input {
  flex: 1; padding: 14px 20px; border: none; background: transparent;
  font-family: 'DM Sans', sans-serif; font-size: 14px; color: var(--text);
  outline: none; min-width: 0;
}
.sub-input::placeholder { color: var(--text3); }
.sub-btn {
  padding: 14px 28px; background: var(--sage-dark); color: #fff;
  border: none; font-family: 'DM Sans', sans-serif; font-size: 13px;
  letter-spacing: 0.06em; cursor: pointer; border-radius: 100px;
  transition: background 0.2s; white-space: nowrap; flex-shrink: 0;
}
.sub-btn:hover { background: var(--sage); }
.sub-msg { font-size: 13px; color: var(--sage-dark); text-align: center; margin-top: 10px; }

/* RESPONSIVE */
@media (max-width: 600px) {
  .about-grid { grid-template-columns: 1fr; }
  .map-layout { grid-template-columns: 1fr; }
  .map-list { max-height: 280px; }
  .map-wrap { height: 420px; }
  .nav-inner { padding: 16px 20px; }
  .section, .map-section { padding: 40px 20px; }
  footer { padding: 16px 20px; gap: 8px; }
  .footer-logo { font-size: 13px; }
  .footer-right { font-size: 11px; }
  .footer-ig { font-size: 11px; }
  .footer-logo .footer-short { display: inline; }
  .footer-logo .footer-full { display: none; }
  .hero-content { padding: 0 20px 48px; }
  .newsletter-section { padding: 40px 20px 20px; }
}
