/* ===== CSS CUSTOM PROPERTIES ===== */
:root {
  --bg-primary: #0c0b09;
  --bg-secondary: #111010;
  --bg-header: rgba(10, 30, 80, 0.35);
  --text-primary: #fff;
  --text-secondary: rgba(255, 255, 255, 0.7);
  --text-muted: rgba(255, 255, 255, 0.5);
  --accent: #cda45e;
  --accent-hover: #d4af6e;
  --accent-glow: rgba(205, 164, 94, 0.25);
  --font-body: 'Poppins', sans-serif;
  --font-heading: 'Playfair Display', serif;
  --transition: 0.3s ease;
  --transition-slow: 0.6s ease;
  --border-radius: 4px;
  --container-width: 1140px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-secondary);
  line-height: 1.7;
  overflow-x: hidden;
}

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

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

ul {
  list-style: none;
}

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

/* ===== SECTION HEADERS ===== */
.section-header {
  text-align: center;
  margin-bottom: 50px;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: 8px;
}

.section-header h2 {
  font-family: var(--font-heading);
  font-size: 40px;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 10px;
}

.section-subhead {
  color: var(--text-secondary);
  font-size: 16px;
  font-weight: 500;
}

/* ===== SCROLL REVEAL ===== */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.reveal-delay-1 {
  transition-delay: 0.2s;
}

.reveal.reveal-delay-2 {
  transition-delay: 0.4s;
}

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

/* ===== GOLD ACCENT TEXT ===== */
.gold {
  color: var(--accent);
}

/* ===== CHECK ICON ===== */
.check-icon {
  color: var(--accent);
  font-weight: 700;
  margin-right: 10px;
  flex-shrink: 0;
}

/* ============================================
   HEADER / NAVBAR
============================================ */
#header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: transparent;
  transition: background var(--transition), box-shadow var(--transition);
}

#header.scrolled {
  background: var(--bg-header);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}

.header-container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  height: 80px;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 20px;
  color: var(--text-primary);
  letter-spacing: 3px;
  position: absolute;
  left: 100px;
}

.logo-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  background: var(--accent);
  color: var(--bg-primary);
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 700;
  border-radius: 50%;
}

/* Nav */
#navbar ul {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link {
  padding: 12px 22px;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 1px;
  color: var(--text-secondary);
  transition: color var(--transition);
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width var(--transition);
}

.nav-link:hover,
.nav-link.active {
  color: var(--accent);
}

.nav-link.active::after,
.nav-link:hover::after {
  width: 60%;
}

/* Mobile Toggle */
.mobile-nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
}

.mobile-nav-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--text-primary);
  transition: var(--transition);
}

.mobile-nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.mobile-nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ============================================
   HERO
============================================ */
#hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: url('../img/Rees/341812.jpg') center/cover no-repeat fixed;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
      rgba(0, 0, 0, 0.75) 0%,
      rgba(12, 11, 9, 0.85) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
  padding: 0 20px;
}

.hero-content h1 {
  font-family: var(--font-heading);
  font-size: 56px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 20px;
  line-height: 1.2;
}

.hero-content p {
  font-size: 18px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ============================================
   ABOUT
============================================ */
#about {
  padding: 100px 0;
  background: var(--bg-primary);
}

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

.about-carousel {
  position: relative;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
  height: 400px;
}

.about-slides {
  position: relative;
  width: 100%;
  height: 100%;
}

.about-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.8s ease, transform 0.8s ease;
  pointer-events: none;
  transform: scale(1.05);
}

.about-slide.active {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
}

.about-carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 40px;
  height: 40px;
  background: rgba(12, 11, 9, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  color: var(--text-primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  backdrop-filter: blur(4px);
  opacity: 0;
}

.about-carousel:hover .about-carousel-btn {
  opacity: 1;
}

.about-carousel-btn:hover {
  background: var(--accent);
  border-color: var(--accent);
}

.about-carousel-btn svg {
  width: 18px;
  height: 18px;
}

.about-carousel-prev {
  left: 15px;
}

.about-carousel-next {
  right: 15px;
}

.about-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}

.about-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: var(--transition);
}

.about-dot.active,
.about-dot:hover {
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent-glow);
}

.about-list li {
  display: flex;
  align-items: flex-start;
  gap: 2px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  font-size: 15px;
  line-height: 1.7;
}

.about-list li:last-child {
  border-bottom: none;
}

/* ============================================
   BRANCHES
============================================ */
#branches {
  padding: 100px 0;
  background: var(--bg-secondary);
}

.branches-sidebar-wrapper {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 30px;
  align-items: start;
}

.branch-sidebar {
  display: flex;
  flex-direction: column;
  border-right: 1px solid rgba(205, 164, 94, 0.2);
  padding-right: 20px;
}

.branch-tab-btn {
  background: transparent;
  border: none;
  border-left: 3px solid transparent;
  font-family: var(--font-heading);
  font-size: 17px;
  color: var(--text-secondary);
  font-weight: 500;
  cursor: pointer;
  padding: 14px 20px;
  text-align: left;
  transition: var(--transition);
  width: 100%;
}

.branch-tab-btn:hover {
  color: var(--accent);
  border-left-color: rgba(205, 164, 94, 0.5);
  background: rgba(205, 164, 94, 0.04);
}

.branch-tab-btn.active {
  color: var(--accent);
  border-left-color: var(--accent);
  background: rgba(205, 164, 94, 0.08);
  text-shadow: 0 0 10px rgba(205, 164, 94, 0.4);
}

.branch-panels {
  flex: 1;
}

.branch-panel {
  display: none;
  width: 100%;
  height: 500px;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.4);
  animation: branchFade 0.7s ease forwards;
}

.branch-panel.active {
  display: block;
}

.branch-panel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
  image-rendering: high-quality;
  transform: translateZ(0);
}

.branch-panel img.no-zoom {
  height: 100%;
  object-position: 50% 30%;
}

.branch-panel:hover img {
  transform: scale(1.03);
}

@keyframes branchFade {
  from {
    opacity: 0;
    transform: translateY(15px);
  }

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

.specials-deco-bg {
  position: absolute;
  top: 0;
  right: 0;
  width: 45%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.8s ease;
  z-index: 0;
}

.specials-deco-bg.active {
  opacity: 0.12;
}


/* ============================================
   SPECIALS (Tabs)
============================================ */
#specials {
  padding: 100px 0;
  background: var(--bg-primary);
  position: relative;
}



.specials-content {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 40px;
  position: relative;
  z-index: 1;
}

.specials-tabs {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.tab-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 500;
  padding: 14px 20px;
  text-align: left;
  cursor: pointer;
  border-left: 3px solid transparent;
  transition: var(--transition);
}

.tab-btn:hover {
  color: var(--accent);
  background: rgba(205, 164, 94, 0.05);
}

.tab-btn.active {
  color: var(--accent);
  border-left-color: var(--accent);
  background: rgba(205, 164, 94, 0.08);
}

/* Panels */
.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
  animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

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

.panel-content {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 30px;
  align-items: start;
}

.panel-image {
  border-radius: var(--border-radius);
  overflow: hidden;
}

.panel-image img {
  width: 100%;
  height: 280px;
  object-fit: cover;
}

/* TAB CAROUSELS */
.tab-carousel {
  position: relative;
  border-radius: var(--border-radius);
  overflow: hidden;
  aspect-ratio: 1 / 1;
  width: 100%;
}

.tab-slides {
  position: relative;
  width: 100%;
  height: 100%;
}

.tab-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1s ease;
  filter: blur(0.3px);
  image-rendering: high-quality;
  transform: translateZ(0);
}

.tab-slide.active {
  opacity: 1;
}

.panel-text h3 {
  font-family: var(--font-heading);
  font-size: 26px;
  color: var(--accent);
  margin-bottom: 15px;
}

.panel-text p {
  margin-bottom: 20px;
  font-size: 15px;
}

.panel-text ul li {
  display: flex;
  align-items: flex-start;
  gap: 2px;
  padding: 8px 0;
  font-size: 14px;
}

/* ============================================
   EVENTS CAROUSEL
============================================ */
#events {
  padding: 0;
  position: relative;
}

.events-carousel {
  position: relative;
  height: 550px;
  overflow: hidden;
}

.event-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.8s ease;
  pointer-events: none;
}

.event-slide.active {
  opacity: 1;
  pointer-events: auto;
}

.event-slide-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: blur(3px);
  transform: scale(1.05);
}

.event-slide-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
}

.event-slide-content {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 50px;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 60px 20px;
  height: 100%;
}

.event-image-wrapper {
  flex: 0 0 45%;
  max-width: 45%;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.event-image-wrapper img {
  width: 100%;
  height: 550px;
  object-fit: contain;
}

.event-info {
  flex: 1;
}

.event-info h3 {
  font-family: var(--font-heading);
  font-size: 32px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.event-info h4 {
  font-size: 18px;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 16px;
}

.event-info p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 20px;
}

.event-details {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.event-details span {
  font-size: 14px;
  color: var(--text-secondary);
}

/* Carousel Controls */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 44px;
  height: 44px;
  background: rgba(205, 164, 94, 0.15);
  border: 1px solid rgba(205, 164, 94, 0.3);
  border-radius: 50%;
  color: var(--accent);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  backdrop-filter: blur(4px);
}

.carousel-btn:hover {
  background: rgba(205, 164, 94, 0.3);
}

.carousel-btn svg {
  width: 20px;
  height: 20px;
}

.carousel-prev {
  left: 20px;
}

.carousel-next {
  right: 20px;
}

.carousel-dots {
  position: absolute;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: var(--transition);
}

.dot.active {
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent-glow);
}

/* ============================================
   CONTACT
============================================ */
#contact {
  padding: 100px 0 0;
  background: var(--bg-secondary);
}

.contact-info {
  display: flex;
  gap: 50px;
  margin-bottom: 60px;
  flex-wrap: wrap;
}

.contact-col {
  display: flex;
  flex-direction: column;
  gap: 50px;
  flex: 1;
  min-width: 280px;
}

.contact-col:last-child {
  padding-left: 80px;
}

.contact-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  flex: 1;
  min-width: 280px;
}

.contact-icon {
  font-size: 24px;
  flex-shrink: 0;
  width: 50px;
  height: 50px;
  background: rgba(205, 164, 94, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}

.contact-item strong {
  display: block;
  color: var(--accent);
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 4px;
}

.contact-item p {
  font-size: 14px;
  line-height: 1.6;
}

.map-container {
  width: 100%;
  line-height: 0;
}

.map-container iframe {
  width: 100%;
  height: 400px;
  border: 0;
  filter: grayscale(0.3) contrast(1.1);
}

/* ============================================
   FOOTER
============================================ */
#footer {
  background: #000;
  padding: 30px 0;
  text-align: center;
}

.footer-content p {
  font-size: 14px;
  color: var(--text-muted);
}

.footer-content strong {
  color: var(--accent);
}

/* ============================================
   BACK TO TOP
============================================ */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 44px;
  height: 44px;
  background: var(--accent);
  color: var(--bg-primary);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: var(--transition);
  z-index: 999;
  box-shadow: 0 4px 15px rgba(205, 164, 94, 0.4);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--accent-hover);
  transform: translateY(-3px);
}

.back-to-top svg {
  width: 20px;
  height: 20px;
}

/* ============================================
   RESPONSIVE
============================================ */
@media (max-width: 992px) {
  .hero-content h1 {
    font-size: 42px;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .about-image img {
    height: 300px;
  }

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

  .specials-content {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .specials-tabs {
    flex-direction: row;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .tab-btn {
    border-left: none;
    border-bottom: 3px solid transparent;
    white-space: nowrap;
    padding: 10px 16px;
    font-size: 14px;
  }

  .tab-btn.active {
    border-left-color: transparent;
    border-bottom-color: var(--accent);
  }

  .panel-content {
    grid-template-columns: 1fr;
  }

  .event-slide-content {
    flex-direction: column;
    gap: 30px;
    padding: 40px 20px;
    justify-content: center;
  }

  .event-image-wrapper {
    flex: none;
    max-width: 80%;
  }

  .event-image-wrapper img {
    height: 220px;
  }

  .events-carousel {
    height: auto;
    min-height: 650px;
  }
}

@media (max-width: 768px) {

  /* Mobile Nav */
  .mobile-nav-toggle {
    display: flex;
  }

  #navbar {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--bg-header);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 20px;
    transform: translateY(-120%);
    transition: transform 0.4s ease;
    opacity: 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  }

  #navbar.open {
    transform: translateY(0);
    opacity: 1;
  }

  #navbar ul {
    flex-direction: column;
    gap: 4px;
  }

  .nav-link {
    padding: 12px 16px;
    font-size: 16px;
    width: 100%;
  }

  .nav-link::after {
    display: none;
  }

  /* Hero */
  .hero-content h1 {
    font-size: 32px;
  }

  .hero-content p {
    font-size: 16px;
  }

  /* Sections */
  .section-header h2 {
    font-size: 30px;
  }

  #about,
  #branches,
  #specials,
  #contact {
    padding: 70px 0;
  }

  #contact {
    padding-bottom: 0;
  }

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

  .contact-info {
    flex-direction: column;
    gap: 24px;
  }

  .contact-col {
    gap: 24px;
  }

  .contact-col:last-child {
    padding-left: 0;
  }

  .event-info h3 {
    font-size: 22px;
  }

  .event-image-wrapper {
    max-width: 100%;
  }

  .events-carousel {
    min-height: 580px;
  }
}

@media (max-width: 480px) {
  .hero-content h1 {
    font-size: 26px;
  }

  .section-header h2 {
    font-size: 24px;
  }

  .events-carousel {
    min-height: 520px;
  }

  .event-image-wrapper img {
    height: 160px;
  }

  .panel-image img {
    height: 200px;
  }
}