/* === Layout === */

/* --- Header / Nav --- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: var(--space-md) 0;
  background: linear-gradient(to bottom, rgba(13, 36, 38, 0.7) 0%, transparent 100%);
  transition:
    background var(--transition-base),
    box-shadow var(--transition-base);
}

.site-header.scrolled {
  background: rgba(13, 36, 38, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--shadow-md);
}

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

.nav-logo {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-off-white);
}

.nav-logo span {
  color: var(--color-gold);
}

.nav-logo:hover {
  color: var(--color-off-white);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
}

.nav-link {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-light);
  position: relative;
  padding: var(--space-sm) var(--space-xs);
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-gold);
  transition: width var(--transition-fast);
}

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

.nav-link:hover {
  color: var(--color-gold);
}

.nav-cta {
  margin-left: var(--space-sm);
}

/* --- Hamburger --- */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 8px;
  cursor: pointer;
  position: relative;
  z-index: 1001;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--color-off-white);
  border-radius: 2px;
  transition: all var(--transition-fast);
}

.nav-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

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

.nav-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 767px) {
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    width: min(320px, 85vw);
    height: 100vh;
    flex-direction: column;
    justify-content: center;
    gap: var(--space-2xl);
    background-color: var(--color-teal-deep);
    padding: var(--space-3xl);
    transform: translateX(100%);
    transition: transform var(--transition-base);
    box-shadow: var(--shadow-xl);
    z-index: 1000;
  }

  .nav-links.open {
    transform: translateX(0);
  }

  .nav-link {
    font-size: var(--text-xl);
  }

  .nav-cta {
    margin-left: 0;
  }

  .nav-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 999;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-base);
  }

  .nav-overlay.open {
    opacity: 1;
    pointer-events: auto;
  }
}

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

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

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

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(13, 36, 38, 0.3) 0%,
    rgba(13, 36, 38, 0.6) 50%,
    rgba(13, 36, 38, 0.95) 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: var(--space-3xl) var(--space-lg);
  max-width: 800px;
}

.hero-title {
  font-size: var(--text-4xl);
  font-family: var(--font-heading);
  color: var(--color-off-white);
  margin-bottom: var(--space-sm);
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
}

@media (min-width: 768px) {
  .hero-title {
    font-size: var(--text-5xl);
  }
}

.hero-subtitle {
  font-size: var(--text-lg);
  color: var(--color-tan);
  margin-bottom: var(--space-2xl);
  font-style: italic;
}

.hero-actions {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  flex-wrap: wrap;
}

/* --- Page Hero (shorter, for secondary pages) --- */
.page-hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  min-height: 50vh;
  overflow: hidden;
}

.page-hero.short {
  min-height: 40vh;
}

.page-hero .hero-content {
  padding-bottom: var(--space-4xl);
}

.page-hero .hero-title {
  font-size: var(--text-3xl);
}

@media (min-width: 768px) {
  .page-hero .hero-title {
    font-size: var(--text-4xl);
  }
}

/* --- Sections --- */
.section {
  padding: var(--space-4xl) 0;
}

@media (min-width: 768px) {
  .section {
    padding: var(--space-5xl) 0;
  }
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-3xl);
}

.section-header .section-subtitle {
  margin-inline: auto;
}

/* --- Grid --- */
.grid {
  display: grid;
  gap: var(--space-xl);
}

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

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

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

@media (min-width: 768px) {
  .grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }

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

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

@media (min-width: 1024px) {
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }

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

/* --- Footer --- */
.site-footer {
  background-color: var(--color-teal-deep);
  border-top: 1px solid var(--color-teal-light);
  padding: var(--space-4xl) 0 var(--space-xl);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-2xl);
  margin-bottom: var(--space-3xl);
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr;
  }
}

.footer-brand p {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  margin-top: var(--space-md);
  max-width: 320px;
  line-height: 1.7;
}

.footer-brand .social-links {
  margin-top: var(--space-lg);
}

.footer-heading {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-gold);
  margin-bottom: var(--space-lg);
}

.footer-contact li {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  min-height: 44px;
}

.footer-links li + li {
  margin-top: var(--space-sm);
}

.footer-links a {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.footer-links a:hover {
  color: var(--color-gold-light);
}

.footer-contact li + li {
  margin-top: var(--space-sm);
}

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

.footer-contact svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
  flex-shrink: 0;
}

.footer-bottom {
  border-top: 1px solid var(--color-teal-light);
  padding-top: var(--space-xl);
  text-align: center;
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}
