/* ===================================
   DOGLEG GOLF — SIMULATORS & TAVERN
   Dark tavern warmth + golf green accents
   Mobile-first responsive design
   =================================== */

/* ---------- Reset & Base ---------- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Tavern darks */
  --bg-dark: #0f1a12;
  --bg-darker: #0a120c;
  --bg-card: #162419;
  --bg-surface: #1c2e22;

  /* Golf greens */
  --green-primary: #2d8a4e;
  --green-light: #3da863;
  --green-glow: rgba(61, 168, 99, 0.15);

  /* Warm accents (tavern amber) */
  --amber: #d4a543;
  --amber-light: #e8c36a;
  --amber-glow: rgba(212, 165, 67, 0.12);

  /* Text */
  --text-primary: #f0efe8;
  --text-secondary: #a8b5a0;
  --text-muted: #6b7a65;

  /* UI */
  --border: rgba(255, 255, 255, 0.06);
  --border-light: rgba(255, 255, 255, 0.1);
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);

  /* Spacing */
  --section-pad: 80px;
  --container-max: 1200px;
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-dark);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  line-height: 1.15;
}

a {
  color: var(--green-light);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--amber-light);
}

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

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

.section {
  padding: var(--section-pad) 0;
}

.section--dark {
  background: var(--bg-darker);
}

/* ---------- Lucide Icon Helpers ---------- */
.icon--inline {
  display: inline-block;
  width: 18px;
  height: 18px;
  vertical-align: -3px;
  margin-right: 4px;
}

.about__feature-icon i {
  width: 28px;
  height: 28px;
  color: var(--green-light);
}

.nav__logo-icon {
  width: 20px;
  height: 20px;
  color: var(--green-light);
}

.nav__logo-img {
  height: 36px;
  width: auto;
}

/* ---------- Section Typography ---------- */
.section__eyebrow {
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--green-light);
  margin-bottom: 12px;
}

.section__eyebrow--light {
  color: var(--amber);
}

.section__title {
  font-size: clamp(2rem, 5vw, 3.2rem);
  color: var(--text-primary);
  margin-bottom: 24px;
}

.section__title--light {
  color: var(--text-primary);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  border-radius: var(--radius-sm);
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: all var(--transition);
  cursor: pointer;
  border: 2px solid transparent;
}

.btn--primary {
  background: var(--green-primary);
  color: #fff;
  border-color: var(--green-primary);
}

.btn--primary:hover {
  background: var(--green-light);
  border-color: var(--green-light);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(45, 138, 78, 0.3);
}

.btn--ghost {
  background: transparent;
  color: var(--text-primary);
  border-color: var(--border-light);
}

.btn--ghost:hover {
  border-color: var(--text-primary);
  color: var(--text-primary);
  transform: translateY(-2px);
}

/* ---------- NAV ---------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: all var(--transition);
  background: transparent;
}

.nav--scrolled {
  background: rgba(15, 26, 18, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 10px 0;
}

.nav__inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--text-primary);
}

.nav__logo-icon {
  font-size: 1.4rem;
}

.nav__logo-text {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  font-weight: 700;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav__links a {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color var(--transition);
}

.nav__links a:hover {
  color: var(--text-primary);
}

.nav__cta {
  background: var(--green-primary) !important;
  color: #fff !important;
  padding: 10px 24px;
  border-radius: var(--radius-sm);
  font-weight: 600 !important;
}

.nav__cta:hover {
  background: var(--green-light) !important;
}

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  transition: all var(--transition);
  border-radius: 2px;
}

/* ---------- HERO ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: url('../photos/simulators/bay-active-1.JPG') center/cover no-repeat;
  overflow: hidden;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(10, 18, 12, 0.7), rgba(10, 18, 12, 0.85)),
              radial-gradient(ellipse at 30% 50%, var(--green-glow), transparent 60%),
              radial-gradient(ellipse at 70% 80%, var(--amber-glow), transparent 50%);
  pointer-events: none;
}

.hero__content {
  position: relative;
  text-align: center;
  padding: 120px 24px 80px;
  max-width: 720px;
}

.hero__eyebrow {
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 20px;
  opacity: 0;
  animation: fadeUp 0.8s ease forwards 0.2s;
}

.hero__title {
  font-size: clamp(2.8rem, 8vw, 5.5rem);
  font-weight: 900;
  line-height: 1.05;
  margin-bottom: 24px;
  opacity: 0;
  animation: fadeUp 0.8s ease forwards 0.4s;
}

.hero__sub {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: var(--text-secondary);
  margin-bottom: 40px;
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
  opacity: 0;
  animation: fadeUp 0.8s ease forwards 0.6s;
}

.hero__ctas {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 0.8s ease forwards 0.8s;
}

.hero__scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0;
  animation: fadeUp 0.8s ease forwards 1.2s;
}

.hero__scroll span {
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.hero__scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--text-muted), transparent);
  animation: scrollPulse 2s ease infinite;
}

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

@keyframes scrollPulse {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}

/* ---------- ABOUT ---------- */
.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.about__desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
  margin-bottom: 16px;
  line-height: 1.7;
}

.about__desc em {
  color: var(--amber);
  font-style: italic;
}

.about__features {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-top: 40px;
}

.about__feature {
  padding: 24px;
  background: var(--bg-surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  transition: all var(--transition);
}

.about__feature:hover {
  border-color: var(--green-primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.about__feature-icon {
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.about__feature h3 {
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.about__feature p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.about__image {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/5;
}

/* Images in containers */
.about__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius);
}

.simulators__card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tavern__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius);
}

.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition);
}

.gallery__item:hover img {
  transform: scale(1.05);
}

/* Image placeholders */
.about__image-placeholder,
.img-placeholder {
  width: 100%;
  height: 100%;
  min-height: 300px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--bg-surface);
  border: 2px dashed var(--border-light);
  border-radius: var(--radius);
  color: var(--text-muted);
  font-size: 0.85rem;
}

.about__image-placeholder span,
.img-placeholder span {
  font-size: 2.5rem;
  margin-bottom: 8px;
}

.img-placeholder--dark {
  background: var(--bg-card);
}

/* ---------- SIMULATORS ---------- */
.simulators__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 48px;
}

.simulators__card {
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: all var(--transition);
}

.simulators__card:hover {
  border-color: var(--green-primary);
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
}

.simulators__card-img {
  aspect-ratio: 16/10;
  overflow: hidden;
}

.simulators__card-img .img-placeholder {
  min-height: unset;
  height: 100%;
  border: none;
  border-radius: 0;
}

.simulators__card h3 {
  font-family: 'Inter', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  padding: 20px 24px 8px;
}

.simulators__card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  padding: 0 24px 24px;
  line-height: 1.6;
}

.simulators__cta {
  text-align: center;
  margin-top: 48px;
}

.simulators__note {
  margin-top: 12px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ---------- TAVERN ---------- */
.tavern__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.tavern__image {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/3;
}

.tavern__image .img-placeholder {
  border: none;
}

.tavern__text p {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 24px;
}

.tavern__taps {
  background: var(--bg-surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 24px;
  margin-bottom: 24px;
}

.tavern__taps h3 {
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--amber);
  margin-bottom: 12px;
}

.tavern__tap-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tavern__tap {
  background: var(--bg-card);
  padding: 6px 16px;
  border-radius: 100px;
  font-size: 0.85rem;
  color: var(--text-primary);
  border: 1px solid var(--border);
}

.tavern__food {
  font-size: 0.95rem !important;
  color: var(--text-muted) !important;
  font-style: italic;
}

/* ---------- GALLERY ---------- */
.gallery__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 48px;
}

.gallery__item {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/3;
  cursor: pointer;
  transition: all var(--transition);
}

.gallery__item:hover {
  transform: scale(1.02);
}

.gallery__item--wide {
  grid-column: span 2;
}

.gallery__item .img-placeholder {
  min-height: unset;
  height: 100%;
  border: none;
  border-radius: 0;
}

/* ---------- LOCATION ---------- */
.location__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.location__details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin: 32px 0;
}

.location__detail h3 {
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.location__detail p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.location__detail small {
  color: var(--text-muted);
  font-size: 0.8rem;
}

.location__detail a {
  color: var(--green-light);
}

.location__detail a:hover {
  color: var(--amber-light);
}

.location__map {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 400px;
  border: 1px solid var(--border);
}

/* ---------- FOOTER ---------- */
.footer {
  background: var(--bg-darker);
  border-top: 1px solid var(--border);
  padding: 48px 0 32px;
}

.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 24px;
}

.footer__brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.footer__brand p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.footer__logo {
  height: 120px;
  width: auto;
}

.footer__links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: center;
}

.footer__links a {
  color: var(--text-secondary);
  font-size: 0.85rem;
}

.footer__links a:hover {
  color: var(--text-primary);
}

.footer__bottom p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ---------- Gallery Zoom Icon ---------- */
.gallery__item {
  position: relative;
}

.gallery__zoom {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 50%;
  opacity: 0;
  transition: opacity var(--transition);
  pointer-events: none;
}

.gallery__zoom i {
  width: 18px;
  height: 18px;
  color: #fff;
}

.gallery__item:hover .gallery__zoom {
  opacity: 1;
}

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lightbox--open {
  opacity: 1;
  visibility: visible;
}

.lightbox__content {
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox__content img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: var(--radius);
  image-orientation: from-image;
}

.lightbox__close,
.lightbox__prev,
.lightbox__next {
  position: absolute;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  cursor: pointer;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  z-index: 2001;
}

.lightbox__close:hover,
.lightbox__prev:hover,
.lightbox__next:hover {
  background: rgba(255, 255, 255, 0.2);
}

.lightbox__close {
  top: 20px;
  right: 20px;
}

.lightbox__close i {
  width: 24px;
  height: 24px;
}

.lightbox__prev {
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox__next {
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox__prev i,
.lightbox__next i {
  width: 24px;
  height: 24px;
}

@media (max-width: 768px) {
  .lightbox__prev,
  .lightbox__next {
    width: 40px;
    height: 40px;
  }

  .lightbox__prev {
    left: 8px;
  }

  .lightbox__next {
    right: 8px;
  }

  .lightbox__close {
    top: 12px;
    right: 12px;
  }

  .gallery__zoom {
    opacity: 0.7;
  }
}

/* ---------- Scroll Reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal--visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- RESPONSIVE ---------- */

/* Tablet */
@media (max-width: 1024px) {
  :root {
    --section-pad: 64px;
  }

  .about__grid,
  .tavern__grid,
  .location__grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about__image {
    aspect-ratio: 16/9;
    max-height: 400px;
  }

  .tavern__image {
    order: -1;
  }

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

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

  .gallery__item--wide {
    grid-column: span 1;
  }

  .location__map {
    min-height: 300px;
  }
}

/* Mobile */
@media (max-width: 768px) {
  :root {
    --section-pad: 48px;
  }

  .nav__links {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #0a120c;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 32px;
    z-index: 1001;
  }

  .nav__links--open {
    display: flex;
  }

  .nav__links a {
    font-size: 1.2rem;
  }

  .nav__toggle {
    display: flex;
    z-index: 1002;
  }

  .nav__toggle--open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .nav__toggle--open span:nth-child(2) {
    opacity: 0;
  }

  .nav__toggle--open span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }

  .hero__content {
    padding: 100px 20px 60px;
  }

  .hero__ctas {
    flex-direction: column;
    align-items: center;
  }

  .hero__ctas .btn {
    width: 100%;
    max-width: 280px;
  }

  .hero__scroll {
    display: none;
  }

  .about__features {
    margin-top: 24px;
  }

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

  .gallery__grid {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .location__details {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .location__map {
    min-height: 250px;
  }

  .footer__links {
    gap: 16px;
  }
}

/* Small mobile */
@media (max-width: 400px) {
  .hero__title {
    font-size: 2.4rem;
  }

  .section__title {
    font-size: 1.8rem;
  }

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