/* ===========================================
   LAYOUT.CSS — Header, Footer, Nav, Container
   =========================================== */

/* ---- Container ---- */
.site-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: var(--container-padding);
  width: 100%;
}

/* ---- Header ---- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--color-border);
  transition: background var(--transition-base);
}

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

.header-logo a {
  display: flex;
  align-items: center;
}

.header-logo img {
  height: 44px;
  width: auto;
}

/* ---- Desktop Navigation ---- */
.header-nav {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav-link {
  color: var(--color-text-light);
  font-size: 0.9rem;
  font-weight: 400;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  position: relative;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.nav-link:hover {
  color: var(--color-gold);
  background: rgba(107, 128, 54, 0.06);
}

/* CTA Button in Nav */
.nav-cta {
  background: var(--color-gold);
  color: var(--color-on-accent) !important;
  padding: 10px 24px;
  border-radius: var(--radius-xl);
  font-weight: 600;
  font-size: 0.9rem;
  margin-left: 8px;
  transition: all var(--transition-base);
}

.nav-cta:hover {
  background: var(--color-gold-light);
  color: var(--color-on-accent) !important;
  transform: translateY(-1px);
  box-shadow: var(--shadow-gold);
}

/* ---- Mobile Menu Button ---- */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}

.mobile-menu-btn span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text-light);
  margin: 6px 0;
  border-radius: 2px;
  transition: all var(--transition-base);
}

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

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

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

/* ---- Main Content ---- */
.site-main {
  padding-top: 72px; /* header height */
  min-height: 100vh;
}

/* ---- Footer ---- */
.site-footer {
  background: var(--color-bg-darker);
  border-top: 1px solid var(--color-border);
  padding: 60px 0 40px;
}

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

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand h3 {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  color: var(--color-gold);
  margin-bottom: 16px;
}

.footer-brand p {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  line-height: 1.8;
}

.footer-col h4 {
  font-family: var(--font-main);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-gold);
  margin-bottom: 16px;
}

.footer-col a,
.footer-col p {
  display: block;
  color: var(--color-text-muted);
  font-size: 0.9rem;
  margin-bottom: 8px;
  transition: color var(--transition-fast);
}

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

.footer-bottom {
  border-top: 1px solid var(--color-border);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

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

.footer-legal {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-legal a {
  color: var(--color-text-muted);
  text-decoration: none;
  font-size: 0.8rem;
  transition: color 0.2s;
}

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

/* ---- Mobile Floating Actions ---- */
.mobile-floating-actions {
  display: none;
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
  flex-direction: column;
  gap: 12px;
}

.float-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  text-decoration: none;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-base);
}

.float-btn-phone {
  background: var(--color-gold);
  color: var(--color-on-accent);
}

.float-btn-reserve {
  background: var(--color-bg-card);
  color: var(--color-gold);
  border: 1px solid var(--color-border-gold);
}

.float-btn:hover {
  transform: scale(1.1);
}

/* ---- Flash Modal (dark theme) ---- */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2000;
  animation: fadeIn 0.2s ease;
}

.modal-content {
  background: var(--color-bg-card);
  padding: 36px;
  border-radius: var(--radius-lg);
  width: 90%;
  max-width: 400px;
  text-align: center;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--color-border-gold);
  animation: slideUp 0.3s ease;
}

.modal-content h3 {
  margin-top: 0;
  color: var(--color-gold);
  font-size: 1.2rem;
}

.modal-content p {
  color: var(--color-text-light);
  margin: 20px 0;
  font-size: 1.05rem;
}

.modal-btn {
  width: 100%;
  border: none;
  cursor: pointer;
  padding: 16px;
  font-size: 1rem;
  font-weight: 600;
  background: var(--color-gold);
  color: var(--color-on-accent);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.modal-btn:hover {
  background: var(--color-gold-light);
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
  .mobile-menu-btn {
    display: block;
  }

  .site-header:has(.header-nav.active) {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #fff;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    z-index: 1000;
  }

  .site-header:has(.header-nav.active) .header-inner {
    height: 100%;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding-top: 28px;
  }

  .site-header:has(.header-nav.active) .header-logo {
    width: 100%;
    display: flex;
    justify-content: center;
  }

  .header-nav {
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    width: 100%;
    padding: 8px 0 20px;
    overflow-y: auto;
    flex: 1;
    justify-content: flex-start;
  }

  .header-nav.active {
    display: flex;
  }

  .nav-link {
    font-size: 1.1rem;
    padding: 14px 24px;
    width: 100%;
    text-align: center;
  }

  .nav-cta {
    margin-left: 0;
    margin-top: 16px;
    padding: 14px 40px;
    font-size: 1rem;
  }

  .mobile-floating-actions {
    display: flex;
  }

  /* Footer */
  .footer-top {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}
