/* ===== VARIABLES ===== */
:root {
  --clr-bg: #0c0a0f;
  --clr-bg2: #141118;
  --clr-surface: #1c1923;
  --clr-surface2: #252230;
  --clr-gold: #c9a96e;
  --clr-gold-light: #e8d5a8;
  --clr-gold-dark: #8b6e3e;
  --clr-text: #e8e4ef;
  --clr-text-muted: #9a94a8;
  --clr-white: #fff;
  --clr-accent: var(--clr-gold);
  --glass-bg: rgba(28, 25, 35, 0.6);
  --glass-border: rgba(201, 169, 110, 0.15);
  --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  --radius: 16px;
  --radius-sm: 8px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Montserrat', Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: var(--font-body);
  background: var(--clr-bg);
  color: var(--clr-text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

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

button,
input,
select,
textarea {
  font-family: inherit;
  font-size: inherit;
}

ul {
  list-style: none;
}

/* ===== UTILITY ===== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.accent {
  color: var(--clr-gold);
}

.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  box-shadow: var(--glass-shadow);
}

.section {
  padding: 100px 0;
}

.section--dark {
  background: var(--clr-bg2);
}

.section__header {
  text-align: center;
  margin-bottom: 60px;
}

.section__tag {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--clr-gold);
  margin-bottom: 16px;
  position: relative;
}

.section__tag::before,
.section__tag::after {
  content: '—';
  margin: 0 10px;
  opacity: 0.4;
}

.section__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 600;
  line-height: 1.3;
  overflow-wrap: break-word;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.5px;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  text-transform: uppercase;
}

.btn--primary {
  background: linear-gradient(135deg, var(--clr-gold), var(--clr-gold-dark));
  color: var(--clr-bg);
  box-shadow: 0 4px 20px rgba(201, 169, 110, 0.3);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(201, 169, 110, 0.5);
}

.btn--outline {
  background: transparent;
  border: 1px solid var(--clr-gold);
  color: var(--clr-gold);
}

.btn--outline:hover {
  background: rgba(201, 169, 110, 0.1);
  transform: translateY(-2px);
}

.btn--header {
  background: transparent;
  border: 1px solid var(--clr-gold);
  color: var(--clr-gold);
  padding: 8px 20px;
  font-size: 12px;
}

.btn--header:hover {
  background: var(--clr-gold);
  color: var(--clr-bg);
}

.btn--lg {
  padding: 16px 36px;
  font-size: 15px;
}

.btn--full {
  width: 100%;
}

/* ===== HEADER ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: var(--transition);
}

.header.scrolled {
  background: rgba(12, 10, 15, 0.92);
  backdrop-filter: blur(12px);
  padding: 10px 0;
  border-bottom: 1px solid var(--glass-border);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.logo__icon {
  font-size: 24px;
  color: var(--clr-gold);
}

.logo__text {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 6px;
  color: var(--clr-gold);
}

.nav {
  display: flex;
  gap: 32px;
}

.nav__link {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--clr-text-muted);
  transition: var(--transition);
  position: relative;
}

.nav__link:hover,
.nav__link.active {
  color: var(--clr-gold);
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--clr-gold);
  transition: var(--transition);
}

.nav__link:hover::after {
  width: 100%;
}

.burger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--clr-gold);
  margin: 5px 0;
  transition: var(--transition);
}

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

/* Updated Hero with Image */
.hero__bg {
  position: absolute;
  inset: 0;
  background: url('hero-bg.jpg?v=1') no-repeat center/cover;
}

.hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(12, 10, 15, 0.75);
}

@keyframes gradientMove {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

.hero__particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero__particles .particle {
  position: absolute;
  width: 3px;
  height: 3px;
  background: var(--clr-gold);
  border-radius: 50%;
  opacity: 0;
  animation: particleFloat 6s ease-in-out infinite;
}

@keyframes particleFloat {
  0% {
    opacity: 0;
    transform: translateY(100vh) scale(0);
  }

  20% {
    opacity: 0.6;
  }

  80% {
    opacity: 0.3;
  }

  100% {
    opacity: 0;
    transform: translateY(-100px) scale(1);
  }
}

.hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 120px 0 80px;
}

.hero__badge {
  display: inline-block;
  padding: 8px 24px;
  border: 1px solid var(--glass-border);
  border-radius: 50px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--clr-gold-light);
  margin-bottom: 32px;
  background: rgba(201, 169, 110, 0.06);
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 7vw, 5rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 24px;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  overflow-wrap: break-word;
}

.hero__subtitle {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: var(--clr-text-muted);
  max-width: 600px;
  margin: 0 auto 40px;
  font-weight: 300;
}

.hero__actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 60px;
}

.hero__stats {
  display: flex;
  justify-content: center;
  gap: 60px;
}

.stat {
  text-align: center;
}

.stat__num {
  display: block;
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--clr-gold);
}

.stat__label {
  font-size: 13px;
  color: var(--clr-text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.hero__scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--clr-text-muted);
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.hero__scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--clr-gold), transparent);
  animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {

  0%,
  100% {
    opacity: 0.3;
    transform: scaleY(0.5);
  }

  50% {
    opacity: 1;
    transform: scaleY(1);
  }
}

/* ===== ANIMATE ===== */
.animate-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* ===== ABOUT ===== */
.about__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
}

.about__card {
  padding: 40px 32px;
  text-align: center;
  transition: var(--transition);
}

.about__card:hover {
  transform: translateY(-8px);
  border-color: rgba(201, 169, 110, 0.3);
}

.about__icon {
  font-size: 48px;
  margin-bottom: 20px;
}

.about__card h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  margin-bottom: 12px;
  color: var(--clr-gold-light);
}

.about__card p {
  color: var(--clr-text-muted);
  font-size: 14px;
  line-height: 1.7;
}

/* ===== SERVICES ===== */
.services__tabs {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.tab {
  padding: 12px 28px;
  border-radius: 50px;
  border: 1px solid var(--glass-border);
  background: transparent;
  color: var(--clr-text-muted);
  cursor: pointer;
  font-weight: 500;
  font-size: 14px;
  transition: var(--transition);
}

.tab:hover {
  border-color: var(--clr-gold);
  color: var(--clr-gold);
}

.tab.active {
  background: linear-gradient(135deg, var(--clr-gold), var(--clr-gold-dark));
  color: var(--clr-bg);
  border-color: transparent;
}

.services__panel {
  display: none;
  max-width: 700px;
  margin: 0 auto;
}

.services__panel.active {
  display: block;
  animation: fadeIn 0.4s ease;
}

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

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

.service-item {
  display: flex;
  align-items: baseline;
  padding: 16px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: var(--transition);
}

.service-item:hover {
  padding-left: 8px;
}

.service-name {
  font-weight: 500;
  white-space: nowrap;
}

.service-dots {
  flex: 1;
  border-bottom: 1px dotted rgba(201, 169, 110, 0.3);
  margin: 0 12px;
  min-width: 30px;
}

.service-price {
  color: var(--clr-gold);
  font-weight: 600;
  white-space: nowrap;
}

/* ===== TEAM ===== */
.team__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
}

.team__card {
  padding: 40px 28px;
  text-align: center;
  transition: var(--transition);
}

.team__card:hover {
  transform: translateY(-8px);
}

.team__avatar {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  color: var(--clr-white);
  /* Improved Avatar Placeholder Style */
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  border: 2px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.team__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.team__card h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  margin-bottom: 4px;
}

.team__role {
  color: var(--clr-gold);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.team__exp {
  color: var(--clr-text-muted);
  font-size: 13px;
  margin: 8px 0 12px;
}

.team__desc {
  color: var(--clr-text-muted);
  font-size: 14px;
  line-height: 1.6;
}

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

.gallery__item {
  aspect-ratio: 1;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  background-color: var(--clr-surface2);
}

.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

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

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

/* Improved Gallery Placeholders with Patterns */
.gallery__placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--accent-clr), rgba(0, 0, 0, 0.8));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  position: relative;
}

.gallery__placeholder::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.1;
  background-image: radial-gradient(#fff 1px, transparent 1px);
  background-size: 10px 10px;
}

.gallery__placeholder span {
  font-size: 48px;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.gallery__placeholder p {
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--clr-white);
  opacity: 0;
  transition: var(--transition);
  transform: translateY(10px);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.gallery__item:hover .gallery__placeholder p {
  opacity: 1;
  transform: translateY(0);
}

/* ===== REVIEWS ===== */
.reviews__slider {
  position: relative;
  overflow: hidden;
}

.reviews__track {
  display: flex;
  gap: 24px;
  transition: transform 0.5s ease;
}

.review-card {
  min-width: calc(50% - 12px);
  padding: 40px;
  flex-shrink: 0;
}

.review-card__stars {
  color: var(--clr-gold);
  font-size: 20px;
  margin-bottom: 16px;
  letter-spacing: 4px;
}

.review-card__text {
  font-family: var(--font-display);
  font-size: 1.15rem;
  line-height: 1.7;
  color: var(--clr-text);
  margin-bottom: 20px;
  font-style: italic;
}

.review-card__author {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.review-card__author strong {
  color: var(--clr-gold-light);
}

.review-card__author span {
  font-size: 13px;
  color: var(--clr-text-muted);
}

.reviews__controls {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 32px;
}

.reviews__btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  color: var(--clr-gold);
  font-size: 24px;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.reviews__btn:hover {
  background: var(--clr-gold);
  color: var(--clr-bg);
}

/* ===== PROMO ===== */
.promo__inner {
  padding: 60px;
  position: relative;
  overflow: hidden;
  text-align: center;
}

.promo__title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  margin: 16px 0;
  color: var(--clr-gold-light);
}

.promo__text {
  color: var(--clr-text-muted);
  max-width: 500px;
  margin: 0 auto 32px;
}

.promo__decor {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.promo__circle {
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  border: 1px solid rgba(201, 169, 110, 0.1);
  top: -100px;
  right: -100px;
  animation: rotateSlow 20s linear infinite;
}

.promo__circle--2 {
  width: 200px;
  height: 200px;
  bottom: -80px;
  left: -60px;
  top: auto;
  right: auto;
  animation-duration: 15s;
  animation-direction: reverse;
}

@keyframes rotateSlow {
  to {
    transform: rotate(360deg);
  }
}

/* ===== BOOKING ===== */
.booking__form {
  max-width: 700px;
  margin: 0 auto;
  padding: 48px;
}

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

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group:last-child {
  margin-bottom: 24px;
}

.form-group label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--clr-text-muted);
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  color: var(--clr-text);
  transition: var(--transition);
  outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--clr-gold);
  box-shadow: 0 0 0 3px rgba(201, 169, 110, 0.15);
}

.form-group select {
  cursor: pointer;
}

.form-group select option {
  background: var(--clr-surface);
}

.form-group textarea {
  resize: vertical;
}

.booking__note {
  text-align: center;
  font-size: 13px;
  color: var(--clr-text-muted);
  margin-top: 16px;
}

/* ===== CONTACTS ===== */
.contacts__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.contacts__info {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-item {
  padding: 24px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  transition: var(--transition);
}

.contact-item:hover {
  border-color: rgba(201, 169, 110, 0.3);
}

.contact-item__icon {
  font-size: 28px;
}

.contact-item h4 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  margin-bottom: 4px;
  color: var(--clr-gold-light);
}

.contact-item p {
  color: var(--clr-text-muted);
  font-size: 14px;
  line-height: 1.6;
}

.contact-item a {
  color: var(--clr-gold);
  transition: var(--transition);
}

.contact-item a:hover {
  color: var(--clr-gold-light);
}

.contacts__map {
  min-height: 380px;
  overflow: hidden;
}

.contacts__map iframe {
  border-radius: var(--radius);
}

/* ===== FOOTER ===== */
.footer {
  padding: 32px 0;
  border-top: 1px solid var(--glass-border);
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer__copy {
  font-size: 13px;
  color: var(--clr-text-muted);
}

.footer__socials {
  display: flex;
  gap: 12px;
}

.social-link {
  padding: 8px 16px;
  border: 1px solid var(--glass-border);
  border-radius: 50px;
  font-size: 13px;
  font-weight: 600;
  color: var(--clr-text-muted);
  transition: var(--transition);
}

.social-link:hover {
  color: var(--clr-gold);
  border-color: var(--clr-gold);
}

/* ===== TOAST ===== */
.toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--clr-gold);
  color: var(--clr-bg);
  padding: 16px 32px;
  border-radius: 50px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 9999;
  opacity: 0;
  transition: 0.4s ease;
  box-shadow: 0 8px 32px rgba(201, 169, 110, 0.4);
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .nav {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(12, 10, 15, 0.97);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 24px;
    z-index: 999;
  }

  .nav.open {
    display: flex;
  }

  .nav__link {
    font-size: 18px;
  }

  .burger {
    display: block;
    z-index: 1001;
  }

  .btn--header {
    display: none;
  }

  .hero__stats {
    gap: 30px;
  }

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

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

  .review-card {
    min-width: 100%;
    width: 100%;
    max-width: calc(100vw - 48px);
    padding: 24px;
    box-sizing: border-box;
    text-align: center;
  }

  .review-card__text {
    white-space: normal;
  }

  .review-card__author {
    align-items: center;
  }

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

  .footer__inner {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }

  .promo__inner {
    padding: 40px 24px;
  }

  .hero__scroll {
    display: none;
  }
}

@media (max-width: 600px) {
  .section {
    padding: 64px 0;
  }

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

  .hero__stats {
    flex-wrap: wrap;
    gap: 15px;
    /* Tighter gap */
  }

  .booking__form {
    padding: 32px 20px;
  }

  .hero__title {
    font-size: 2.2rem;
    line-height: 1.25;
    word-break: break-word;
    hyphens: auto;
    /* Allow CSS hyphenation */
  }

  .section__title {
    font-size: 2rem;
    line-height: 1.3;
  }

  p {
    line-height: 1.5;
  }

  /* Fix for overflowing service prices */
  .service-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 20px 0;
  }

  .service-name {
    white-space: normal;
    line-height: 1.4;
    font-size: 1.05rem;
  }

  .service-dots {
    display: none;
  }

  .service-price {
    align-self: flex-start;
    font-size: 1.15rem;
  }
}

/* Aggressive fix for very small phones / narrow screens */
@media (max-width: 400px) {
  .hero__content {
    padding: 100px 0 60px;
    /* Reduce top padding on small screens */
  }

  .hero__title {
    font-size: 1.8rem;
    /* Force much smaller font */
  }

  .hero__subtitle {
    font-size: 0.95rem;
    margin-bottom: 25px;
  }

  .section__title {
    font-size: 1.6rem;
  }

  .stat__num {
    font-size: 2rem;
  }

  .hero__actions {
    flex-direction: column;
    width: 100%;
  }

  .hero__actions .btn {
    width: 100%;
  }
}