/* ==========================================================================
   GreenGate — greengate.vn
   Palette (brand guideline A2):
     Xanh        #00682E
     Xanh đậm    #00371F
     Xanh sáng   #D4EE55
     Paper       #F5F2EB  (warm off-white canvas, from reference)
     Ink         #16241C
   Type: Bricolage Grotesque (primary) · Playfair Display (showcase accent)
   ========================================================================== */

:root {
  --green: #00682E;
  --green-dark: #00371F;
  --acid: #D4EE55;
  --paper: #F5F2EB;
  --ink: #16241C;
  --muted: #5D6A60;
  --line: rgba(0, 55, 31, 0.14);
  --gutter: 8px;
  --radius: 6px;
  --font-sans: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --font-display: "Playfair Display", Georgia, serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  font-size: 1rem;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
  border-radius: 2px;
}

/* keep focus rings visible on dark surfaces */
.story :focus-visible,
.site-footer :focus-visible,
.mobile-menu :focus-visible,
.hero :focus-visible,
.showcase :focus-visible {
  outline-color: var(--acid);
}

section[id] { scroll-margin-top: 4.5rem; }

/* ---------- Buttons (small pills, per reference) ---------- */

.btn {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1;
  padding: 0.72rem 1.25rem;
  border-radius: 999px;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn--solid { background: var(--green-dark); color: var(--paper); }
.btn--solid:hover { background: var(--green); }

.btn--outline { border-color: var(--line); color: var(--ink); }
.btn--outline:hover { border-color: var(--green-dark); }

.btn--paper { background: var(--paper); color: var(--green-dark); }
.btn--paper:hover { background: #fff; }

.btn--ghost { color: inherit; border-color: transparent; }
.btn--ghost:hover { opacity: 0.7; }

.btn--acid { background: var(--acid); color: var(--green-dark); }
.btn--acid:hover { background: #e2f877; }

.btn--dark { background: var(--green-dark); color: var(--acid); }
.btn--dark:hover { background: var(--green); }

.btn--outline-dark { border-color: rgba(0, 55, 31, 0.4); color: var(--green-dark); }
.btn--outline-dark:hover { border-color: var(--green-dark); }

.btn--outline-light { border-color: rgba(245, 242, 235, 0.5); color: var(--paper); }
.btn--outline-light:hover { border-color: var(--paper); }

.btn--lg { font-size: 1rem; padding: 0.95rem 1.7rem; }

.text-link {
  color: var(--green);
  font-weight: 500;
  text-decoration: none;
}
.text-link:hover { text-decoration: underline; }

/* ---------- Header ---------- */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  color: #fff;
  transition: background-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem clamp(1rem, 3vw, 2rem);
}

.brand { display: inline-flex; align-items: center; }
.brand-logo { height: 34px; width: auto; }
.brand-logo--dark { display: none; }

.site-nav {
  display: flex;
  gap: clamp(1rem, 2.5vw, 2rem);
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.site-nav a {
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  opacity: 0.92;
  padding: 0.5rem 0;
}
.site-nav a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 5px; }

.header-cta { display: flex; align-items: center; gap: 0.25rem; }
.site-header .btn--solid { background: var(--paper); color: var(--green-dark); }

/* scrolled state */
.site-header.is-scrolled {
  background: rgba(245, 242, 235, 0.92);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: var(--ink);
  box-shadow: 0 1px 0 var(--line);
}
.site-header.is-scrolled .brand-logo--light { display: none; }
.site-header.is-scrolled .brand-logo--dark { display: block; }
.site-header.is-scrolled .btn--solid { background: var(--green-dark); color: var(--paper); }

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  background: none;
  border: 0;
  color: inherit;
  cursor: pointer;
}
.menu-toggle span {
  display: block;
  height: 2px;
  width: 24px;
  margin: 0 auto;
  background: currentColor;
  transition: transform 0.25s ease;
}
.menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* ---------- Mobile menu ---------- */

.mobile-menu[hidden] { display: none; }

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: var(--green-dark);
  color: var(--paper);
  padding: 6rem 2rem 3rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.mobile-menu nav { display: flex; flex-direction: column; gap: 0.25rem; }

.mobile-menu nav a {
  font-size: 2rem;
  font-weight: 400;
  letter-spacing: -0.01em;
  text-decoration: none;
  padding: 0.45rem 0;
}
.mobile-menu nav a:hover { color: var(--acid); }

.mobile-menu-cta { display: flex; flex-direction: column; gap: 0.75rem; }

body.menu-open { overflow: hidden; }
body.menu-open .site-header { background: transparent; color: var(--paper); box-shadow: none; }
body.menu-open .site-header .brand-logo--light { display: block; }
body.menu-open .site-header .brand-logo--dark { display: none; }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
}

.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 25, 14, 0.5) 0%, rgba(0, 25, 14, 0.4) 45%, rgba(0, 25, 14, 0.54) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: #fff;
  padding: 0 1.5rem;
}

.hero-eyebrow {
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
  color: var(--acid);
}

.hero-title {
  font-size: clamp(2.75rem, 7.5vw, 5.75rem);
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 1.05;
  text-wrap: balance;
}

.hero-sub {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.125rem, 2.2vw, 1.6rem);
  margin: 1rem 0 2.25rem;
  opacity: 0.9;
}

/* ---------- Intro statement ---------- */

.intro { padding: clamp(5rem, 12vw, 9rem) 1.5rem; }

.intro-inner { max-width: 52rem; margin: 0 auto; text-align: center; }

.intro-lead {
  font-size: clamp(1.5rem, 3.2vw, 2.375rem);
  font-weight: 400;
  letter-spacing: -0.015em;
  line-height: 1.35;
  text-wrap: balance;
}

.intro-line {
  margin-top: 1.5rem;
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.125rem, 2vw, 1.375rem);
  color: var(--green);
}

.intro-actions {
  margin-top: 2.5rem;
  display: flex;
  gap: 0.6rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------- Photo cards ---------- */

.card-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gutter);
  padding: 0 var(--gutter);
}

.card-row--two { grid-template-columns: repeat(2, 1fr); }

.photo-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  aspect-ratio: 4 / 5;
  background: var(--green-dark);
}

.photo-card--tall { aspect-ratio: 3 / 2; }

.photo-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}

.photo-card:hover img { transform: scale(1.03); }

.photo-card figcaption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 3.5rem 1.5rem 1.4rem;
  background: linear-gradient(180deg, rgba(0, 25, 14, 0) 0%, rgba(0, 25, 14, 0.62) 100%);
  color: #fff;
}

.card-kicker {
  display: block;
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 0.3rem;
}

.photo-card figcaption p {
  font-size: 0.875rem;
  line-height: 1.5;
  opacity: 0.88;
  max-width: 34ch;
}

/* ---------- Section heads ---------- */

.section-head {
  max-width: 46rem;
  margin: 0 auto;
  text-align: center;
  padding: 0 1.5rem;
}

.section-title {
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.12;
  text-wrap: balance;
}

.section-sub {
  margin-top: 1.1rem;
  color: var(--muted);
  font-size: 1.0625rem;
  max-width: 40rem;
  margin-inline: auto;
}

/* ---------- Rooms ---------- */

.rooms { padding: clamp(5rem, 10vw, 8rem) 0 0; }

.room-grid {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--gutter);
  padding: 0 var(--gutter);
}

.room-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
}

.room-media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.room-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}

.room-card:hover .room-media img { transform: scale(1.03); }

.room-body { padding: 1.4rem 1.5rem 1.6rem; }

.room-title-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.room-title-row h3 {
  font-size: 1.375rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.room-price {
  font-size: 1rem;
  font-weight: 600;
  color: var(--green);
  white-space: nowrap;
}

.room-price span { font-weight: 400; color: var(--muted); font-size: 0.875rem; }

.room-desc {
  margin-top: 0.6rem;
  font-size: 0.9375rem;
  color: var(--muted);
  max-width: 46ch;
}

.rooms-note {
  text-align: center;
  padding: 2.25rem 1.5rem 0;
  color: var(--muted);
  font-size: 0.9375rem;
}

/* ---------- Showcase ---------- */

.showcase {
  position: relative;
  margin-top: clamp(5rem, 10vw, 8rem);
  min-height: 88svh;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.showcase-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.showcase::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 25, 14, 0.46);
}

.showcase-content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: #fff;
  padding: 6rem 1.5rem;
}

.showcase-eyebrow {
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--acid);
  margin-bottom: 1rem;
}

.showcase-title {
  font-size: clamp(2.75rem, 7vw, 5.25rem);
  font-weight: 300;
  letter-spacing: -0.015em;
  line-height: 1.06;
}

.showcase-title em {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
}

.showcase-address {
  margin: 1.4rem 0 2.25rem;
  font-size: 1.0625rem;
  opacity: 0.9;
}

/* ---------- Amenities ---------- */

.amenities { padding: var(--gutter) 0 0; }

.amenity-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border-block: 1px solid var(--line);
  margin-top: clamp(4rem, 8vw, 6rem);
}

.amenity-item {
  background: var(--paper);
  padding: 2rem 1.75rem 2.25rem;
}

.amenity-item h3 {
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 0.4rem;
}

.amenity-item p { font-size: 0.9375rem; color: var(--muted); }

/* ---------- Story ---------- */

.story {
  background: var(--green-dark);
  color: var(--paper);
  padding: clamp(5rem, 10vw, 8rem) clamp(1.5rem, 4vw, 4rem);
}

.story-inner {
  max-width: 72rem;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(2.5rem, 6vw, 5.5rem);
  align-items: center;
}

.story-eyebrow {
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--acid);
  margin-bottom: 1.5rem;
}

.story-quote {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.5rem, 3vw, 2.125rem);
  line-height: 1.35;
  margin-bottom: 1.75rem;
}

.story-text p { margin-bottom: 1.1rem; opacity: 0.88; max-width: 56ch; }
.story-text p:last-child { margin-bottom: 0; }
.story-text strong { color: var(--acid); font-weight: 600; }

.story-photo {
  border-radius: var(--radius);
  overflow: hidden;
}

.story-photo img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 5; }

/* ---------- FAQ ---------- */

.faq { padding: clamp(5rem, 10vw, 8rem) 1.5rem; }

.faq-inner { max-width: 44rem; margin: 0 auto; }

.faq .section-title { text-align: center; margin-bottom: clamp(2rem, 5vw, 3.5rem); }

.faq-list details {
  border-bottom: 1px solid var(--line);
}
.faq-list details:first-child { border-top: 1px solid var(--line); }

.faq-list summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.3rem 0.25rem;
  font-size: 1.0625rem;
  font-weight: 500;
  letter-spacing: -0.005em;
}

.faq-list summary::-webkit-details-marker { display: none; }

.faq-list summary:hover { color: var(--green); }

.faq-mark {
  flex: 0 0 auto;
  position: relative;
  width: 14px;
  height: 14px;
}
.faq-mark::before,
.faq-mark::after {
  content: "";
  position: absolute;
  background: var(--green);
  transition: transform 0.25s ease;
}
.faq-mark::before { inset: 6px 0; }
.faq-mark::after { inset: 0 6px; }

details[open] .faq-mark::after { transform: scaleY(0); }

.faq-list details p {
  padding: 0 0.25rem 1.4rem;
  color: var(--muted);
  max-width: 60ch;
}

/* ---------- Contact ---------- */

.contact {
  background: var(--acid);
  color: var(--green-dark);
  padding: clamp(5.5rem, 12vw, 9.5rem) 1.5rem;
  text-align: center;
}

.contact-title {
  font-size: clamp(3rem, 9vw, 6.5rem);
  font-weight: 300;
  letter-spacing: -0.025em;
  line-height: 1.02;
  text-wrap: balance;
}

.contact-sub {
  margin: 1.5rem auto 2.5rem;
  font-size: 1.0625rem;
  max-width: 34rem;
}

.contact-actions {
  display: flex;
  gap: 0.6rem;
  justify-content: center;
  flex-wrap: wrap;
}

.contact-note {
  margin-top: 1.75rem;
  font-size: 0.875rem;
  opacity: 0.75;
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--green-dark);
  color: var(--paper);
}

.footer-inner {
  max-width: 72rem;
  margin: 0 auto;
  padding: clamp(3.5rem, 7vw, 5.5rem) clamp(1.5rem, 4vw, 2rem) 3rem;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.2fr;
  gap: 3rem;
}

.footer-logo { height: 60px; width: auto; margin-bottom: 1.4rem; }

.footer-tagline { font-size: 1.0625rem; font-weight: 500; }
.footer-tagline span {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  opacity: 0.75;
}

.footer-nav { display: flex; flex-direction: column; gap: 0.55rem; }

.footer-nav a {
  text-decoration: none;
  font-size: 0.9375rem;
  opacity: 0.85;
  width: fit-content;
  padding-block: 0.35rem;
}
.footer-nav a:hover { opacity: 1; color: var(--acid); }

.footer-contact { font-size: 0.9375rem; }
.footer-contact p { margin-bottom: 1.1rem; opacity: 0.85; }
.footer-contact a { text-decoration: none; }
.footer-contact a:hover { color: var(--acid); }

.footer-base {
  border-top: 1px solid rgba(245, 242, 235, 0.15);
  padding: 1.4rem clamp(1.5rem, 4vw, 2rem);
  text-align: center;
  font-size: 0.8125rem;
  opacity: 0.65;
}

/* ---------- Reveal on scroll ---------- */

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .photo-card img, .room-media img { transition: none; }
  * { animation: none !important; }
}

/* Screenshot/testing mode (html.fixed-vh set by script when ?noanim) */
.fixed-vh .hero { min-height: 820px; }
.fixed-vh .showcase { min-height: 760px; }

/* ---------- Responsive ---------- */

@media (max-width: 1024px) {
  .site-nav { display: none; }
}

@media (max-width: 860px) {
  .header-cta .btn--ghost { display: none; }

  .card-row { grid-template-columns: 1fr; }
  .card-row--two { grid-template-columns: 1fr; }
  .photo-card { aspect-ratio: 4 / 3; }
  .photo-card--tall { aspect-ratio: 4 / 3; }

  .room-grid { grid-template-columns: 1fr; }

  .story-inner { grid-template-columns: 1fr; }
  .story-photo { order: -1; }
  .story-photo img { aspect-ratio: 3 / 2; }

  .amenity-list { grid-template-columns: 1fr; }

  .footer-inner { grid-template-columns: 1fr; gap: 2.5rem; }
}

@media (max-width: 640px) {
  .header-cta { display: none; }
  .menu-toggle { display: flex; }

  .hero-title { font-size: clamp(2.5rem, 12vw, 3.5rem); }
}
