/* =============================================
   GOAT KEEP CABINS — Styles
   Palette: emerald green + cream, confident corporate
   ============================================= */

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

:root {
  --emerald-900: #065f46;
  --emerald-700: #047857;
  --emerald-600: #059669;
  --emerald-500: #10b981;
  --emerald-100: #d1fae5;
  --emerald-50:  #ecfdf5;
  --cream:       #faf8f0;
  --cream-dark:  #f0edd8;
  --neutral-900: #1a1a1a;
  --neutral-700: #333333;
  --neutral-500: #6b7280;
  --neutral-300: #d1d5db;
  --neutral-100: #f3f4f6;
  --white:       #ffffff;
  --radius:      12px;
  --radius-lg:   20px;
  --shadow-sm:   0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.06);
  --shadow-md:   0 4px 16px rgba(0,0,0,.1), 0 2px 4px rgba(0,0,0,.06);
  --shadow-lg:   0 12px 40px rgba(0,0,0,.12), 0 4px 12px rgba(0,0,0,.08);
  --transition:  .3s cubic-bezier(.4,0,.2,1);
  --font-serif:  'DM Serif Display', Georgia, serif;
  --font-sans:   'Inter', system-ui, -apple-system, sans-serif;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  color: var(--neutral-700);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- TYPOGRAPHY ---- */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  color: var(--emerald-900);
  line-height: 1.2;
  font-weight: 400;
}

.section-eyebrow {
  font-family: var(--font-sans);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--emerald-600);
  margin-bottom: 12px;
}

.section-header {
  max-width: 680px;
  margin: 0 auto 64px;
  text-align: center;
}

.section-header h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 20px;
}

.section-lead {
  font-size: 1.125rem;
  color: var(--neutral-500);
  line-height: 1.7;
  max-width: 560px;
  margin: 0 auto;
}

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: .9375rem;
  border: 2px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
  padding: 14px 28px;
}

.btn-primary {
  background: var(--emerald-700);
  color: var(--white);
  border-color: var(--emerald-700);
}
.btn-primary:hover {
  background: var(--emerald-900);
  border-color: var(--emerald-900);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,.5);
}
.btn-outline:hover {
  background: var(--white);
  color: var(--emerald-900);
  border-color: var(--white);
}

.btn-sm {
  padding: 10px 20px;
  font-size: .875rem;
}

.btn-full {
  width: 100%;
}

.btn-lg {
  padding: 18px 36px;
  font-size: 1rem;
}

/* ---- HEADER ---- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(250, 248, 240, .85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(6, 95, 70, .08);
  transition: var(--transition);
}

.site-header.scrolled {
  background: rgba(250, 248, 240, .95);
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-text {
  font-family: var(--font-serif);
  font-size: 1.125rem;
  color: var(--emerald-900);
  line-height: 1.2;
}

.logo-icon {
  flex-shrink: 0;
}

.main-nav ul {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
}

.main-nav a {
  font-size: .9375rem;
  font-weight: 500;
  color: var(--neutral-700);
  padding: 8px 16px;
  border-radius: 8px;
  transition: var(--transition);
}
.main-nav a:hover {
  color: var(--emerald-700);
  background: var(--emerald-50);
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--emerald-900);
  border-radius: 2px;
  transition: var(--transition);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ---- HERO ---- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding: 120px 24px 80px;
}

.hero-gradient {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg,
      #065f46 0%,
      #047857 25%,
      #059669 50%,
      #10b981 70%,
      #34d399 85%,
      #6ee7b7 100%
    );
  z-index: 0;
}

.hero-gradient::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 40%, rgba(255,255,255,.08) 0%, transparent 70%),
    url('https://images.pexels.com/photos/15801268/pexels-photo-15801268.jpeg?auto=compress&cs=tinysrgb&fit=crop&w=1920&h=1080') center/cover no-repeat;
  opacity: .18;
  mix-blend-mode: overlay;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 780px;
}

.hero-eyebrow {
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--emerald-100);
  margin-bottom: 24px;
  opacity: 0;
  animation: fadeUp .8s .2s forwards;
}

.hero h1 {
  font-size: clamp(2.25rem, 6vw, 4.5rem);
  color: var(--white);
  margin-bottom: 24px;
  line-height: 1.1;
  opacity: 0;
  animation: fadeUp .8s .4s forwards;
}

.hero h1 em {
  font-style: italic;
  color: var(--emerald-100);
}

.hero-sub {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: rgba(255,255,255,.8);
  line-height: 1.7;
  margin-bottom: 40px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  opacity: 0;
  animation: fadeUp .8s .6s forwards;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 64px;
  opacity: 0;
  animation: fadeUp .8s .8s forwards;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 40px;
  align-items: center;
  opacity: 0;
  animation: fadeUp .8s 1s forwards;
}

.stat-num {
  display: block;
  font-family: var(--font-serif);
  font-size: 2rem;
  color: var(--white);
  line-height: 1;
}

.stat-label {
  font-size: .8125rem;
  color: rgba(255,255,255,.7);
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-top: 4px;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,.2);
}

.hero-scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,.5);
  font-size: .75rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  z-index: 1;
  animation: float 2s ease-in-out infinite;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes float {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%      { transform: translateX(-50%) translateY(6px); }
}

/* ---- SECTIONS ---- */
.section {
  padding: 100px 0;
}

/* ---- CABINS ---- */
.cabins {
  background: var(--white);
}

.cabins-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
}

.cabin-card {
  background: var(--cream);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
  border: 1px solid rgba(6,95,70,.06);
}
.cabin-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.cabin-img {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/3;
}
.cabin-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s cubic-bezier(.4,0,.2,1);
}
.cabin-card:hover .cabin-img img {
  transform: scale(1.05);
}

.cabin-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: var(--emerald-700);
  color: var(--white);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 100px;
}

.cabin-info {
  padding: 28px;
}

.cabin-info h3 {
  font-size: 1.5rem;
  margin-bottom: 12px;
}

.cabin-desc {
  font-size: .9375rem;
  color: var(--neutral-500);
  line-height: 1.7;
  margin-bottom: 20px;
}

.cabin-features {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 16px;
  margin-bottom: 24px;
}
.cabin-features li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .875rem;
  color: var(--neutral-700);
}
.cabin-features li svg {
  color: var(--emerald-600);
  flex-shrink: 0;
}

/* ---- EXPERIENCE ---- */
.experience {
  background: var(--cream);
}

.exp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.exp-item {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  transition: var(--transition);
  border: 1px solid rgba(6,95,70,.06);
}
.exp-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--emerald-100);
}

.exp-icon {
  color: var(--emerald-700);
  margin-bottom: 20px;
}

.exp-item h3 {
  font-size: 1.25rem;
  margin-bottom: 10px;
}

.exp-item p {
  font-size: .9375rem;
  color: var(--neutral-500);
  line-height: 1.7;
}

/* ---- GALLERY STRIP ---- */
.gallery-strip {
  background: var(--emerald-900);
  padding: 0;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.gallery-grid img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  transition: transform .6s cubic-bezier(.4,0,.2,1);
  filter: saturate(.85);
}
.gallery-grid img:hover {
  transform: scale(1.04);
  filter: saturate(1);
}

/* ---- LOCATION ---- */
.location {
  background: var(--white);
}

.loc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.loc-content h2 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  margin-bottom: 20px;
}

.contact-details {
  margin: 32px 0;
  list-style: none;
}

.contact-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--neutral-100);
  font-size: .9375rem;
}
.contact-row svg {
  color: var(--emerald-600);
  flex-shrink: 0;
  margin-top: 2px;
}
.contact-row a {
  color: var(--emerald-700);
  font-weight: 500;
  transition: var(--transition);
}
.contact-row a:hover {
  color: var(--emerald-900);
  text-decoration: underline;
}

.map-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 16/9;
  box-shadow: var(--shadow-md);
}
.map-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.loc-map {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4/3;
  min-height: 340px;
}

/* ---- REVIEWS ---- */
.reviews {
  background: var(--cream);
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.review-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  border: 1px solid rgba(6,95,70,.06);
  transition: var(--transition);
  position: relative;
}
.review-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--emerald-100);
}

.review-quote {
  color: var(--emerald-200, #a7f3d0);
  margin-bottom: 16px;
}

.review-text {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--neutral-700);
  margin-bottom: 20px;
  font-style: italic;
}

.review-author {
  font-size: .875rem;
  font-weight: 600;
  color: var(--emerald-700);
}

/* ---- CTA / CONTACT ---- */
.cta-section {
  background:
    linear-gradient(135deg, var(--emerald-900) 0%, var(--emerald-700) 100%);
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('https://images.pexels.com/photos/13008559/pexels-photo-13008559.jpeg?auto=compress&cs=tinysrgb&fit=crop&w=1920&h=1080') center/cover no-repeat;
  opacity: .08;
  mix-blend-mode: overlay;
}

.cta-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.cta-text {
  color: var(--white);
}

.cta-text .section-eyebrow {
  color: var(--emerald-100);
}

.cta-text h2 {
  font-size: clamp(1.75rem, 3vw, 2.75rem);
  color: var(--white);
  margin-bottom: 20px;
}

.cta-text p {
  font-size: 1.0625rem;
  color: rgba(255,255,255,.75);
  line-height: 1.7;
}

.booking-form {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-lg);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

.form-group label {
  font-size: .8125rem;
  font-weight: 600;
  color: var(--neutral-700);
  text-transform: uppercase;
  letter-spacing: .08em;
}

.form-group input,
.form-group select,
.form-group textarea {
  font-family: var(--font-sans);
  font-size: .9375rem;
  padding: 12px 16px;
  border: 1.5px solid var(--neutral-300);
  border-radius: var(--radius);
  background: var(--cream);
  color: var(--neutral-700);
  transition: var(--transition);
  outline: none;
  width: 100%;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--emerald-600);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(16,185,129,.12);
}

.form-group-full {
  grid-column: 1 / -1;
}

.form-note {
  font-size: .8125rem;
  color: var(--neutral-500);
  text-align: center;
  margin-top: 12px;
}

.form-success {
  text-align: center;
  padding: 40px 20px;
}
.form-success h3 {
  font-size: 1.5rem;
  color: var(--emerald-900);
  margin: 16px 0 8px;
}
.form-success p {
  color: var(--neutral-500);
  line-height: 1.6;
}
.form-success svg {
  color: var(--emerald-600);
}

/* ---- FOOTER ---- */
.site-footer {
  background: var(--neutral-900);
  color: rgba(255,255,255,.6);
  padding: 72px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 48px;
  padding-bottom: 48px;
}

.footer-brand .logo-text {
  color: var(--white);
}

.footer-brand p {
  margin-top: 16px;
  font-size: .9375rem;
  line-height: 1.7;
  max-width: 280px;
}

.footer-links h4,
.footer-contact h4 {
  font-family: var(--font-sans);
  font-size: .8125rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 20px;
}

.footer-links ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-links a {
  font-size: .9375rem;
  transition: var(--transition);
}
.footer-links a:hover {
  color: var(--emerald-400, #34d399);
}

.footer-contact address {
  font-style: normal;
  font-size: .9375rem;
  line-height: 1.8;
}
.footer-contact a {
  color: var(--emerald-400, #34d399);
  transition: var(--transition);
}
.footer-contact a:hover {
  color: var(--white);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: .8125rem;
}

/* ---- SCROLL REVEAL ---- */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity .7s cubic-bezier(.4,0,.2,1), transform .7s cubic-bezier(.4,0,.2,1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---- RESPONSIVE ---- */
@media (max-width: 1024px) {
  .loc-grid,
  .cta-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .main-nav {
    position: fixed;
    top: 0;
    right: 0;
    width: 280px;
    height: 100vh;
    background: var(--cream);
    box-shadow: var(--shadow-lg);
    padding: 96px 32px 32px;
    transform: translateX(100%);
    transition: transform .4s cubic-bezier(.4,0,.2,1);
    z-index: 1000;
  }
  .main-nav.open {
    transform: translateX(0);
  }
  .main-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
  }
  .main-nav a {
    padding: 14px 16px;
    font-size: 1rem;
  }

  .hero-stats {
    gap: 24px;
  }
  .stat-num {
    font-size: 1.5rem;
  }

  .gallery-grid {
    grid-template-columns: 1fr 1fr;
  }
  .gallery-grid img {
    height: 200px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .section {
    padding: 72px 0;
  }
  .hero {
    padding: 100px 20px 60px;
  }
  .hero-actions {
    flex-direction: column;
    align-items: center;
  }
  .hero-actions .btn {
    width: 100%;
  }
  .cabin-info {
    padding: 20px;
  }
  .cabin-features {
    grid-template-columns: 1fr;
  }
  .booking-form {
    padding: 24px;
  }
}
