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

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

body {
  font-family: 'Raleway', sans-serif;
  background-color: #111827;
  color: #e2e8f0;
  overflow-x: hidden;
}

.font-cormorant {
  font-family: 'Cormorant Garamond', Georgia, serif;
}

.font-raleway {
  font-family: 'Raleway', sans-serif;
}

/* ─── HEADER ─── */
#site-header {
  background: transparent;
  transition: background 0.5s ease, box-shadow 0.5s ease, backdrop-filter 0.5s ease;
}

#site-header.scrolled {
  background: rgba(17, 24, 39, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04);
}

.nav-link::after {
  content: '';
  display: block;
  width: 0;
  height: 1px;
  background: #5eead4;
  transition: width 0.3s ease;
  margin-top: 2px;
}

.nav-link:hover::after {
  width: 100%;
}

/* ─── MOBILE MENU ─── */
#mobile-menu.open {
  opacity: 1;
  pointer-events: all;
}

.mobile-link {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.4s ease, transform 0.4s ease, color 0.3s ease;
}

#mobile-menu.open .mobile-link {
  opacity: 1;
  transform: translateY(0);
}

#mobile-menu.open .mobile-link:nth-child(1) { transition-delay: 0.05s; }
#mobile-menu.open .mobile-link:nth-child(2) { transition-delay: 0.1s; }
#mobile-menu.open .mobile-link:nth-child(3) { transition-delay: 0.15s; }
#mobile-menu.open .mobile-link:nth-child(4) { transition-delay: 0.2s; }
#mobile-menu.open .mobile-link:nth-child(6) { transition-delay: 0.25s; }

/* ─── HERO ─── */
.hero {
  position: relative;
}

.hero-img {
  animation: heroZoom 20s ease-in-out infinite alternate;
}

@keyframes heroZoom {
  from { transform: scale(1); }
  to { transform: scale(1.06); }
}

.hero-subtitle-overline {
  animation: fadeDown 1s ease 0.3s both;
}

.hero h1 {
  animation: fadeUp 1s ease 0.5s both;
}

.hero p {
  animation: fadeUp 1s ease 0.7s both;
}

.hero .flex {
  animation: fadeUp 1s ease 0.9s both;
}

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

@keyframes fadeDown {
  from { opacity: 0; transform: translateY(-12px); }
  to { opacity: 1; transform: translateY(0); }
}

.scroll-indicator {
  animation: fadeUp 1s ease 1.2s both;
}

/* ─── BUTTONS ─── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #1a6b6b;
  color: #f1f5f9;
  font-family: 'Raleway', sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 1rem 2rem;
  border-radius: 2px;
  text-decoration: none;
  transition: background 0.35s ease, transform 0.25s ease, box-shadow 0.35s ease;
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  background: #145252;
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(26, 107, 107, 0.35);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  color: #f1f5f9;
  font-family: 'Raleway', sans-serif;
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 1rem 2rem;
  border-radius: 2px;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: border-color 0.35s ease, background 0.35s ease, transform 0.25s ease;
}

.btn-secondary:hover {
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.05);
  transform: translateY(-2px);
}

/* ─── CARDS ─── */
.card {
  background: #1a2332;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.04);
  transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  border-color: rgba(26, 107, 107, 0.2);
}

.card-img {
  transition: transform 0.7s ease;
}

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

.card-overlay {
  transition: opacity 0.4s ease;
}

.card:hover .card-overlay {
  opacity: 80;
}

/* ─── GALLERY ─── */
.gallery-img {
  transition: transform 0.7s ease;
}

/* ─── INPUTS ─── */
.input-field {
  background: #0f172a;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 2px;
  padding: 0.8rem 1rem;
  color: #f1f5f9;
  font-family: 'Raleway', sans-serif;
  font-size: 0.9rem;
  font-weight: 300;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  width: 100%;
  outline: none;
}

.input-field::placeholder {
  color: #475569;
}

.input-field:focus {
  border-color: #1a6b6b;
  box-shadow: 0 0 0 3px rgba(26, 107, 107, 0.15);
}

.input-field option {
  background: #1a2332;
  color: #f1f5f9;
}

/* ─── REVEAL ANIMATIONS ─── */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* staggered children */
.reveal-grid > .reveal:nth-child(1) { transition-delay: 0s; }
.reveal-grid > .reveal:nth-child(2) { transition-delay: 0.1s; }
.reveal-grid > .reveal:nth-child(3) { transition-delay: 0.2s; }

/* ─── SECTION SPACING ─── */
.section {
  position: relative;
}

/* ─── DECORATIVE DIVIDER ─── */
.divider-ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin: 0 auto;
}

.divider-ornament::before,
.divider-ornament::after {
  content: '';
  height: 1px;
  width: 60px;
  background: linear-gradient(to right, transparent, rgba(26, 107, 107, 0.4), transparent);
}

/* ─── RESPONSIVE ─── */
@media (max-width: 767px) {
  .hero h1 {
    font-size: 2.75rem;
    line-height: 1.1;
  }

  .hero h1 br {
    display: none;
  }

  .font-cormorant.text-4xl {
    font-size: 2.25rem;
  }

  .font-cormorant.text-5xl {
    font-size: 2rem;
  }

  .card-badge {
    position: relative !important;
    top: auto !important;
    right: auto !important;
    display: inline-block;
    margin-bottom: 0.75rem;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .hero h1 {
    font-size: 4rem;
  }
}

/* ─── FOCUS VISIBLE ─── */
*:focus-visible {
  outline: 2px solid #5eead4;
  outline-offset: 2px;
}

/* ─── SELECTION ─── */
::selection {
  background: rgba(26, 107, 107, 0.4);
  color: #f1f5f9;
}

/* ─── REDUCED MOTION ─── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .hero-img {
    animation: none;
  }
}
