/* ========================================
   DESIGN TOKENS
   ======================================== */
:root {
  --forest:   #1C3A2A;
  --moss:     #2E5540;
  --gold:     #C9A84C;
  --gold-lt:  #DFC070;
  --ivory:    #F5F0E8;
  --charcoal: #141A14;
  --off-white:#EDE8DC;
  --dark-txt: #1A1A1A;

  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-body:  'DM Sans', system-ui, sans-serif;

  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-back: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-spring: cubic-bezier(0.43, 0.195, 0.02, 1.0);
}

/* ========================================
   RESET & BASE
   ======================================== */
*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
  font-family: var(--font-body);
  background: var(--ivory);
  color: var(--dark-txt);
  overflow-x: hidden;
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }

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

/* ========================================
   UTILITY
   ======================================== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }
.container-narrow { max-width: 780px; margin: 0 auto; padding: 0 2rem; }

.gold-label {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}

.light-label {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--off-white);
  margin-bottom: 1rem;
}

.serif-heading {
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 4vw, 3.6rem);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.01em;
}
.serif-heading.light { color: var(--ivory); }
.serif-heading.dark  { color: var(--dark-txt); }

.section-ingress {
  margin-top: 1rem;
  font-size: 1.05rem;
  font-weight: 300;
  line-height: 1.7;
  max-width: 540px;
}
.section-ingress.light { color: rgba(237,232,220,0.75); }
.section-ingress.dark  { color: rgba(26,26,26,0.65); }

.section-header { margin-bottom: 3.5rem; }

.gold-rule {
  width: 60px;
  height: 1px;
  background: var(--gold);
  margin: 2rem auto;
}

/* ========================================
   REVEAL ANIMATION
   ======================================== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s var(--ease-expo), transform 0.8s var(--ease-expo);
  transition-delay: var(--delay, 0s);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ========================================
   NAVBAR
   ======================================== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 1.25rem 2rem;
  transition: background 0.4s ease, backdrop-filter 0.4s ease, box-shadow 0.4s ease;
}

.nav.scrolled {
  background: rgba(28,58,42,0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 rgba(201,168,76,0.15);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.nav-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  transition: opacity 0.2s ease;
}
.nav-logo:hover { opacity: 0.85; }

.nav-logo-img {
  height: 48px;
  width: auto;
  display: block;
  /* Logo has white bg — make it blend on dark navbar */
  filter: drop-shadow(0 1px 3px rgba(0,0,0,0.4));
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.nav-links a {
  font-size: 0.875rem;
  font-weight: 400;
  color: rgba(237,232,220,0.75);
  letter-spacing: 0.04em;
  transition: color 0.2s ease;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0;
  width: 0; height: 1px;
  background: var(--gold);
  transition: width 0.3s var(--ease-expo);
}
.nav-links a:hover { color: var(--ivory); }
.nav-links a:hover::after { width: 100%; }

.nav-cta {
  padding: 9px 22px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--charcoal);
  background: var(--gold);
  border-radius: 999px;
  letter-spacing: 0.02em;
  transition: all 0.3s var(--ease-expo);
  animation: goldPulse 3s ease-in-out infinite;
  flex-shrink: 0;
}
.nav-cta:hover {
  background: var(--gold-lt);
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(201,168,76,0.4);
  animation: none;
}

@keyframes goldPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(201,168,76,0.4); }
  50% { box-shadow: 0 0 0 8px rgba(201,168,76,0); }
}

.nav-mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-mobile-toggle span {
  width: 24px; height: 2px;
  background: var(--ivory);
  border-radius: 2px;
  transition: all 0.3s var(--ease-expo);
  display: block;
}

/* Mobile Menu Overlay */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 1100;
  background: var(--forest);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  opacity: 0;
  pointer-events: none;
  transform: translateX(100%);
  transition: transform 0.4s var(--ease-expo), opacity 0.4s ease;
}
.mobile-menu.open {
  opacity: 1;
  pointer-events: all;
  transform: translateX(0);
}

.mobile-menu-close {
  position: absolute;
  top: 1.5rem; right: 2rem;
  background: none;
  border: none;
  color: var(--ivory);
  font-size: 1.5rem;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.2s;
}
.mobile-menu-close:hover { opacity: 1; }

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  margin-bottom: 3rem;
}
.mobile-nav-links a {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  font-weight: 400;
  color: var(--ivory);
  letter-spacing: 0.02em;
  transition: color 0.2s;
}
.mobile-nav-links a:hover { color: var(--gold); }

.mobile-contact-info {
  text-align: center;
  color: rgba(237,232,220,0.6);
  font-size: 0.875rem;
  line-height: 2;
}

/* ========================================
   HERO
   ======================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-color: #1C3A2A; /* fallback while image loads */
  transform: scale(1.06);
  will-change: transform;
  transition: transform 0.1s linear;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(0deg, rgba(20,26,20,0.85) 0%, rgba(20,26,20,0.4) 50%, rgba(20,26,20,0.2) 100%),
    linear-gradient(90deg, rgba(20,26,20,0.5) 0%, transparent 60%);
  z-index: 1;
}

#golf-ball-canvas {
  position: absolute;
  top: 0;
  right: 0;
  left: auto;
  width: 50%;
  height: 100%;
  z-index: 3;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

@media (max-width: 768px) {
  #golf-ball-canvas {
    left: 0;
    right: 0;
    width: 100%;
    height: 45%;
    top: 80px;
  }
}

.hero-content {
  position: relative;
  z-index: 10;
  padding: 2rem 2rem 8rem;
  width: 52%;
  padding-left: clamp(2rem, 6vw, 6rem);
}

@media (max-width: 768px) {
  .hero-content {
    width: 100%;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    padding-top: 46vh; /* push below the ball */
    padding-bottom: 5rem;
  }
}

.hero-label {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.25rem;
  opacity: 0;
  transform: translateY(16px);
  animation: fadeUp 0.8s var(--ease-expo) 1.1s forwards;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(3.2rem, 7vw, 5.5rem);
  font-weight: 400;
  line-height: 1.1;
  color: var(--ivory);
  letter-spacing: -0.02em;
  max-width: 680px;
  opacity: 0;
  transform: translateY(24px);
  animation: fadeUp 1s var(--ease-expo) 1.25s forwards;
}
.hero-title em {
  font-style: italic;
  color: var(--gold);
}

.hero-ingress {
  margin-top: 1.5rem;
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  font-weight: 300;
  line-height: 1.75;
  color: rgba(237,232,220,0.8);
  max-width: 520px;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.8s var(--ease-expo) 1.6s forwards;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.75rem;
  opacity: 0;
  transform: translateY(16px);
  animation: fadeUp 0.8s var(--ease-expo) 1.75s forwards;
}

.tag {
  padding: 6px 16px;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--ivory);
  border: 1px solid rgba(237,232,220,0.3);
  border-radius: 999px;
  backdrop-filter: blur(8px);
  background: rgba(255,255,255,0.06);
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 2rem;
  opacity: 0;
  transform: translateY(16px);
  animation: fadeUp 0.8s var(--ease-expo) 2s forwards;
}

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

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  opacity: 0;
  animation: fadeUp 0.8s var(--ease-expo) 2.2s forwards;
  transition: opacity 0.4s ease;
}
.scroll-indicator span {
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(201,168,76,0.8);
}
.scroll-indicator.hidden { opacity: 0 !important; }

.scroll-arrow svg {
  animation: bounce 2s ease-in-out infinite;
}
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

/* ========================================
   BUTTONS
   ======================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 13px 30px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: 999px;
  transition: all 0.3s var(--ease-expo);
  cursor: pointer;
  border: none;
  letter-spacing: 0.02em;
  position: relative;
  overflow: hidden;
}
.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.08);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.btn:hover::before { opacity: 1; }

.btn-primary {
  background: var(--gold);
  color: var(--charcoal);
  font-weight: 600;
}
.btn-primary:hover {
  background: var(--gold-lt);
  transform: translateY(-2px);
  box-shadow: 0 10px 32px rgba(201,168,76,0.35);
}

.btn-ghost {
  background: rgba(255,255,255,0.08);
  color: var(--ivory);
  border: 1px solid rgba(237,232,220,0.25);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.15);
  border-color: rgba(237,232,220,0.4);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--gold);
  border: 1px solid rgba(201,168,76,0.4);
}
.btn-outline:hover {
  background: rgba(201,168,76,0.1);
  border-color: var(--gold);
  transform: translateY(-2px);
}

.btn-gold {
  background: var(--gold);
  color: var(--charcoal);
  font-weight: 600;
}
.btn-gold:hover {
  background: var(--gold-lt);
  transform: translateY(-2px);
  box-shadow: 0 10px 32px rgba(201,168,76,0.4);
}

.btn-submit {
  width: 100%;
  justify-content: center;
  background: var(--forest);
  color: var(--ivory);
  padding: 16px;
  font-size: 1rem;
  font-weight: 500;
  border: 1.5px solid transparent;
  margin-top: 0.5rem;
  transition: all 0.3s var(--ease-expo);
}
.btn-submit:hover {
  background: var(--moss);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(28,58,42,0.35);
}
.btn-submit.success {
  background: var(--gold);
  color: var(--charcoal);
}

/* ========================================
   INTRO SECTION
   ======================================== */
.section-intro {
  background: var(--ivory);
  padding: 7rem 2rem;
  text-align: center;
}

.intro-body {
  font-size: 1.05rem;
  font-weight: 300;
  line-height: 1.8;
  color: rgba(26,26,26,0.7);
  max-width: 600px;
  margin: 1rem auto;
}

.stats-row {
  display: flex;
  justify-content: center;
  gap: 4rem;
  margin-top: 0.5rem;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}

.stat-num {
  font-family: var(--font-serif);
  font-size: 3.5rem;
  font-weight: 300;
  color: var(--gold);
  line-height: 1;
}

.stat-unit {
  font-size: 0.8rem;
  font-weight: 400;
  color: rgba(26,26,26,0.5);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ========================================
   FACILITIES
   ======================================== */
.section-facilities {
  background: var(--forest);
  padding: 7rem 2rem;
}

.facilities-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.facility-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  min-height: 360px;
  cursor: pointer;
  transition: transform 0.5s var(--ease-expo), box-shadow 0.5s var(--ease-expo);
  will-change: transform;
  --border-progress: 0%;
}

.facility-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 60px rgba(0,0,0,0.5);
}

.facility-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 1.5px solid var(--gold);
  border-radius: 16px;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}
.facility-card:hover::after { opacity: 1; }

.facility-card-img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.6s var(--ease-expo);
}
.facility-card:hover .facility-card-img { transform: scale(1.04); }

.facility-card-body {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 2rem;
  background: linear-gradient(0deg, rgba(20,26,20,0.92) 0%, transparent 100%);
  z-index: 2;
}

.card-label {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
}

.facility-card-body h3 {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  font-weight: 400;
  color: var(--ivory);
  margin-bottom: 0.5rem;
}

.facility-card-body p {
  font-size: 0.875rem;
  font-weight: 300;
  color: rgba(237,232,220,0.7);
  line-height: 1.55;
}

/* ========================================
   USE CASES
   ======================================== */
.section-usecases {
  background: var(--ivory);
  padding: 7rem 2rem;
}

.usecases-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.usecase-card {
  padding: 2rem 0;
  border-top: 1px solid rgba(26,26,26,0.12);
  position: relative;
  cursor: default;
}

.usecase-label {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
  transition: color 0.2s ease;
}
.usecase-card:hover .usecase-label { color: var(--gold-lt); }

.usecase-card h3 {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--forest);
  margin-bottom: 0.75rem;
  line-height: 1.2;
}

.usecase-card p {
  font-size: 0.9rem;
  font-weight: 300;
  color: rgba(26,26,26,0.65);
  line-height: 1.65;
}

.usecase-border {
  position: absolute;
  bottom: 0; left: 0;
  height: 2px;
  width: 0;
  background: var(--forest);
  transition: width 0.4s var(--ease-expo);
}
.usecase-card:hover .usecase-border { width: 100%; }

/* ========================================
   PACKAGES
   ======================================== */
.section-packages {
  background: var(--charcoal);
  padding: 7rem 2rem;
}

.packages-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  align-items: start;
}

.package-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(201,168,76,0.12);
  border-radius: 16px;
  padding: 2.5rem 2rem;
  transition: all 0.4s var(--ease-expo);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.package-card:hover {
  background: rgba(255,255,255,0.07);
  border-color: rgba(201,168,76,0.25);
  transform: translateY(-4px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.4);
}

.package-card--featured {
  background: rgba(201,168,76,0.07);
  border-color: rgba(201,168,76,0.35);
  transform: translateY(-8px);
  box-shadow: 0 24px 60px rgba(0,0,0,0.5), 0 0 0 1px rgba(201,168,76,0.2);
}
.package-card--featured:hover { transform: translateY(-12px); }

.pkg-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gold);
  color: var(--charcoal);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 5px 16px;
  border-radius: 999px;
  white-space: nowrap;
  transition: transform 0.3s var(--ease-back);
}
.package-card--featured:hover .pkg-badge { transform: translateX(-50%) rotate(-2deg); }

.pkg-header h3 {
  font-family: var(--font-serif);
  font-size: 1.7rem;
  font-weight: 400;
  color: var(--ivory);
}

.pkg-tagline {
  margin-top: 0.4rem;
  font-size: 0.85rem;
  color: rgba(237,232,220,0.5);
  font-weight: 300;
}

.pkg-features {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  flex: 1;
}
.pkg-features li {
  font-size: 0.875rem;
  font-weight: 300;
  color: rgba(237,232,220,0.75);
  padding-left: 1.25rem;
  position: relative;
  line-height: 1.5;
}
.pkg-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--gold);
  font-size: 0.8rem;
}

.pkg-footer {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(201,168,76,0.1);
}

.pkg-price {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 300;
  color: var(--gold);
  line-height: 1;
}

.pkg-per {
  font-size: 0.8rem;
  color: rgba(237,232,220,0.45);
  margin-bottom: 0.5rem;
}

.pkg-note {
  text-align: center;
  margin-top: 2.5rem;
  font-size: 0.85rem;
  color: rgba(201,168,76,0.65);
  line-height: 1.6;
}

/* ========================================
   ADD-ONS
   ======================================== */
.section-addons {
  background: var(--moss);
  padding: 7rem 2rem;
}

.addons-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.addon-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.75rem 0;
  border-bottom: 1px solid rgba(237,232,220,0.1);
}
.addon-row:first-child { border-top: 1px solid rgba(237,232,220,0.1); }

.addon-info {
  flex: 0 0 auto;
  min-width: 260px;
}

.addon-name {
  display: block;
  font-weight: 600;
  font-size: 1rem;
  color: var(--ivory);
}

.addon-desc {
  display: block;
  font-size: 0.82rem;
  font-weight: 300;
  color: rgba(237,232,220,0.55);
  margin-top: 0.2rem;
}

.addon-dots {
  flex: 1;
  height: 1px;
  border-bottom: 2px dotted rgba(237,232,220,0.2);
  margin: 0 1rem;
  min-width: 2rem;
  position: relative;
  overflow: hidden;
}
.addon-dots::after {
  content: '';
  position: absolute;
  inset: 0;
  border-bottom: 2px dotted var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.6s var(--ease-expo);
}
.addon-row.visible .addon-dots::after { transform: scaleX(1); }

.addon-price {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 300;
  color: var(--gold);
  white-space: nowrap;
  flex-shrink: 0;
}

/* ========================================
   PRICING RECEIPT
   ======================================== */
.section-pricing {
  background: var(--ivory);
  padding: 7rem 2rem;
  text-align: center;
}

.slider-row {
  margin-bottom: 2rem;
  text-align: left;
  font-size: 0.9rem;
  color: rgba(26,26,26,0.65);
}
.slider-row strong { color: var(--forest); font-size: 1.1rem; }

input[type=range] {
  display: block;
  width: 100%;
  margin-top: 0.75rem;
  accent-color: var(--gold);
  height: 4px;
  cursor: pointer;
}

.receipt-card {
  background: #fff;
  border: 1px solid rgba(26,26,26,0.1);
  border-radius: 16px;
  padding: 2.5rem;
  box-shadow: 0 16px 48px rgba(26,26,26,0.1);
  text-align: left;
}

.receipt-header {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--forest);
  padding-bottom: 1.25rem;
  border-bottom: 1px solid rgba(26,26,26,0.1);
  margin-bottom: 1.25rem;
}

.receipt-lines {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.receipt-line {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 1rem;
  align-items: baseline;
  font-size: 0.9rem;
  opacity: 0;
  transform: translateX(-10px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.receipt-line.line-visible {
  opacity: 1;
  transform: translateX(0);
}

.rl-name { font-weight: 400; color: var(--dark-txt); }
.rl-unit { font-size: 0.8rem; color: rgba(26,26,26,0.45); text-align: right; }
.rl-total { font-weight: 500; color: var(--dark-txt); text-align: right; white-space: nowrap; }

.receipt-divider {
  height: 1px;
  background: rgba(26,26,26,0.15);
  margin: 1.25rem 0;
}

.receipt-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--forest);
}
#total-amount {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 300;
  color: var(--gold);
  transition: all 0.3s ease;
}
.receipt-total.pulse #total-amount {
  animation: goldPulseText 0.5s ease;
}
@keyframes goldPulseText {
  0%, 100% { text-shadow: none; }
  50% { text-shadow: 0 0 20px rgba(201,168,76,0.6); }
}

.receipt-note {
  text-align: center;
  margin-top: 1.5rem;
  font-size: 0.82rem;
  color: rgba(26,26,26,0.5);
}

/* ========================================
   HOW IT WORKS
   ======================================== */
.section-howto {
  background: var(--forest);
  padding: 7rem 2rem;
}

.howto-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
}

.howto-card {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.howto-icon {
  width: 52px;
  height: 52px;
  color: var(--gold);
  margin-bottom: 0.5rem;
}

.howto-label {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}

.howto-card h3 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--ivory);
}

.howto-card p {
  font-size: 0.9rem;
  font-weight: 300;
  color: rgba(237,232,220,0.65);
  line-height: 1.7;
}

/* ========================================
   GALLERY
   ======================================== */
.section-gallery {
  background: var(--charcoal);
  padding: 7rem 2rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  grid-template-rows: 320px 220px;
  gap: 1rem;
}

.gallery-item { border-radius: 12px; overflow: hidden; }

.gallery-item--large { grid-row: 1 / 2; grid-column: 1 / 2; }
.gallery-item--sm:nth-child(2) { grid-row: 1 / 2; grid-column: 2 / 3; }
.gallery-item--sm:nth-child(3) { display: none; }

.gallery-item--third { grid-column: auto; }

.gallery-bottom-row {
  display: contents;
}

/* Simple 3-col bottom row */
.gallery-grid > .gallery-item--third:nth-child(4) { grid-column: 1; grid-row: 2; }
.gallery-grid > .gallery-item--third:nth-child(5) { grid-column: 2; grid-row: 2; }
.gallery-grid > .gallery-item--third:nth-child(6) { grid-column: 3; grid-row: 2; display: none; }

/* Rebuild grid for gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: 300px 240px;
  gap: 1rem;
}

.gallery-item--large { grid-column: 1; grid-row: 1 / 3; }
.gallery-item--sm:nth-child(2) { grid-column: 2; grid-row: 1; }
.gallery-item--sm:nth-child(3) { grid-column: 3; grid-row: 1; display: block; }
.gallery-item--third:nth-child(4) { grid-column: 2; grid-row: 2; }
.gallery-item--third:nth-child(5) { grid-column: 3; grid-row: 2; }
.gallery-item--third:nth-child(6) { display: none; }

.gallery-img {
  width: 100%; height: 100%;
  background-size: cover;
  background-position: center;
  position: relative;
  cursor: pointer;
  transition: transform 0.5s var(--ease-expo);
}
.gallery-img:hover { transform: scale(1.04); }

.gallery-caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 1rem 1.25rem;
  background: linear-gradient(0deg, rgba(20,26,20,0.8) 0%, transparent 100%);
  font-style: italic;
  font-size: 0.82rem;
  color: var(--gold);
  letter-spacing: 0.04em;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.gallery-img:hover .gallery-caption { opacity: 1; }

/* ========================================
   CONTACT
   ======================================== */
.section-contact {
  background: var(--ivory);
  padding: 7rem 2rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}

.form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-top: 2rem;
}

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

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group label {
  font-size: 0.8rem;
  font-weight: 500;
  color: rgba(26,26,26,0.6);
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 11px 14px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--dark-txt);
  background: #fff;
  border: 1.5px solid rgba(26,26,26,0.15);
  border-radius: 8px;
  outline: none;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
  resize: vertical;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,168,76,0.12);
}

.form-success {
  margin-top: 0.75rem;
  font-size: 0.9rem;
  color: var(--forest);
  font-weight: 500;
  text-align: center;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.ci-icon {
  font-size: 1.2rem;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.contact-item strong {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.25rem;
}

.contact-item span,
.contact-item a {
  font-size: 0.95rem;
  font-weight: 300;
  color: rgba(26,26,26,0.75);
  line-height: 1.6;
}
.contact-item a:hover { color: var(--forest); }

.contact-map iframe { display: block; }

/* ========================================
   FOOTER
   ======================================== */
.footer {
  background: var(--forest);
  padding: 5rem 2rem 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 4rem;
  padding-bottom: 3rem;
}

.footer-logo-img {
  height: 80px;
  width: auto;
  display: block;
  margin-bottom: 0.75rem;
  /* Brighten on the dark green footer background */
  filter: brightness(1.1) drop-shadow(0 1px 4px rgba(0,0,0,0.3));
}

.footer-tagline {
  font-size: 0.875rem;
  font-weight: 300;
  color: rgba(237,232,220,0.55);
  font-style: italic;
  margin-bottom: 1.5rem;
}

.social-links {
  display: flex;
  gap: 0.75rem;
}

.social-link {
  width: 36px; height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(237,232,220,0.5);
  border: 1px solid rgba(237,232,220,0.15);
  border-radius: 50%;
  transition: all 0.3s var(--ease-expo);
}
.social-link svg { width: 16px; height: 16px; }
.social-link:hover {
  color: var(--gold);
  border-color: var(--gold);
  transform: scale(1.1);
}

.footer-links h4,
.footer-contact h4 {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.25rem;
}

.footer-links ul {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.footer-links a {
  font-size: 0.875rem;
  font-weight: 300;
  color: rgba(237,232,220,0.6);
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--ivory); }

.footer-contact p {
  font-size: 0.875rem;
  font-weight: 300;
  color: rgba(237,232,220,0.6);
  line-height: 1.8;
}
.footer-contact a:hover { color: var(--ivory); }

.footer-bottom {
  border-top: 1px solid rgba(201,168,76,0.2);
  padding: 1.5rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: rgba(237,232,220,0.4);
}

.footer-legal {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}
.footer-legal a:hover { color: rgba(237,232,220,0.7); }

/* ========================================
   FLOATING CTA
   ======================================== */
.floating-cta {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 500;
  padding: 13px 26px;
  background: var(--gold);
  color: var(--charcoal);
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 999px;
  box-shadow: 0 8px 32px rgba(201,168,76,0.45), 0 2px 8px rgba(0,0,0,0.2);
  transition: all 0.3s var(--ease-expo);
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
}
.floating-cta.show {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}
.floating-cta:hover {
  background: var(--gold-lt);
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(201,168,76,0.55);
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 1024px) {
  .facilities-grid {
    grid-template-columns: 1fr 1fr;
  }
  .packages-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin: 0 auto;
  }
  .package-card--featured { transform: none; }
}

@media (max-width: 900px) {
  .nav-links,
  .nav-cta { display: none; }
  .nav-mobile-toggle { display: flex; }

  .usecases-grid { grid-template-columns: repeat(2, 1fr); }
  .howto-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .contact-grid { grid-template-columns: 1fr; gap: 3rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }

  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 240px 200px;
  }
  .gallery-item--large { grid-column: 1 / 3; grid-row: 1; }
  .gallery-item--sm:nth-child(2) { grid-column: 1; grid-row: 2; }
  .gallery-item--sm:nth-child(3) { grid-column: 2; grid-row: 2; }
  .gallery-item--third { display: none; }
}

@media (max-width: 640px) {
  .hero-content { padding: 2rem 1.5rem 7rem; }

  .facilities-grid { grid-template-columns: 1fr; }
  .usecases-grid { grid-template-columns: 1fr; }
  .stats-row { gap: 2rem; }
  .form-row { grid-template-columns: 1fr; }
  .addon-row { flex-wrap: wrap; }
  .addon-dots { display: none; }

  .footer-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .footer-bottom { flex-direction: column; gap: 0.75rem; text-align: center; }

  .floating-cta {
    bottom: 0; left: 0; right: 0;
    border-radius: 0;
    text-align: center;
    justify-content: center;
  }
}

/* ========================================
   PRISKALKULATOR (valg + kvittering)
   ======================================== */
.config-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 2.5rem;
  text-align: left;
}

.option-card {
  position: relative;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: #fff;
  border: 1px solid rgba(26,26,26,0.12);
  border-radius: 14px;
  padding: 1.4rem 1.5rem;
  cursor: pointer;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s var(--ease-expo);
}
.option-card:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(26,26,26,0.08); }
.option-card.selected {
  border-color: var(--gold);
  box-shadow: 0 10px 30px rgba(201,168,76,0.18);
}

.option-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.option-check {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  margin-top: 2px;
  border: 1.5px solid rgba(26,26,26,0.3);
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  color: transparent;
  transition: all 0.25s ease;
}
.option-check::after { content: '✓'; }
.option-card.selected .option-check {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--charcoal);
}

.option-body { flex: 1; }
.option-name { display: block; font-weight: 600; font-size: 0.95rem; color: var(--dark-txt); }
.option-desc {
  display: block;
  font-size: 0.8rem;
  font-weight: 300;
  color: rgba(26,26,26,0.55);
  margin-top: 0.2rem;
  line-height: 1.5;
}

.option-price {
  flex-shrink: 0;
  text-align: right;
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 400;
  color: var(--forest);
  line-height: 1.1;
}
.option-price small {
  display: block;
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 400;
  color: rgba(26,26,26,0.45);
  margin-top: 0.25rem;
}

.receipt-sub {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 0.9rem;
  color: rgba(26,26,26,0.6);
  margin-bottom: 0.5rem;
}
.receipt-perguest {
  margin-top: 0.9rem;
  margin-bottom: 0;
  padding-top: 0.9rem;
  border-top: 1px dashed rgba(26,26,26,0.15);
  font-weight: 500;
  color: var(--forest);
}

.config-cta-wrap { margin-top: 2.5rem; }

.proposal-field {
  background: rgba(201,168,76,0.06) !important;
  border-color: rgba(201,168,76,0.4) !important;
  font-size: 0.82rem !important;
  color: rgba(26,26,26,0.75) !important;
  cursor: default;
  resize: none;
}

@media (max-width: 720px) {
  .config-options { grid-template-columns: 1fr; }
  .option-card { flex-wrap: wrap; }
  .option-price { width: 100%; text-align: left; padding-left: 2.4rem; }
  .option-price small { display: inline; margin-left: 0.4rem; }
}

/* Fri bar-kortet: full bredde, tekstpris */
.option-card--wide { grid-column: 1 / -1; }
.option-price--text { font-size: 1.1rem; }

/* ========================================
   MOBILFIKSER
   ======================================== */
@media (max-width: 640px) {
  /* Kompakt navbar med fast bakgrunn, mindre logo */
  .nav {
    padding: 0.65rem 1.25rem;
    background: rgba(28,58,42,0.95);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
  }
  .nav-logo-img { height: 36px; }

  /* Hero-innholdet skal aldri ligge under navbaren på lave skjermer */
  .hero-content { margin-top: 80px; }

  /* Seksjonene har egen sidepolstring – fjern containerens doble innrykk */
  .container, .container-narrow { padding: 0; }
  .section-header { margin-bottom: 2.5rem; }

  /* Priskalkulatoren: mer plass og luft */
  .section-pricing { padding: 4.5rem 1.25rem; }
  .config-options { gap: 0.75rem; margin-bottom: 2rem; }
  .option-card { padding: 1.1rem 1rem; gap: 0.75rem; }
  .option-price { padding-left: 2.1rem; }
  .receipt-card { padding: 1.5rem 1.1rem; }
  .receipt-header { font-size: 1.05rem; }
  .receipt-lines { gap: 1rem; }

  /* Kvitteringslinjer: beløp på egen rad-slutt, forklaring under navnet */
  .receipt-line { grid-template-columns: 1fr auto; row-gap: 2px; }
  .rl-name  { grid-row: 1; grid-column: 1; }
  .rl-total { grid-row: 1; grid-column: 2; }
  .rl-unit  { grid-row: 2; grid-column: 1 / -1; text-align: left; }

  .receipt-total { gap: 0.75rem; font-size: 0.9rem; }
  #total-amount { font-size: 1.55rem; }
}
