/* ═══════════════════════════════════════
   STRANDHUSET — Global Styles
   ═══════════════════════════════════════ */

:root {
  --sand: #E8DFD0;
  --sand-light: #F5F0E8;
  --ocean-dark: #1A2E3B;
  --ocean: #2C4F5E;
  --ocean-mid: #3A6B7E;
  --salt: #FAFAF7;
  --rust: #B8613A;
  --rust-light: #D4835E;
  --driftwood: #6B5E4F;
  --rope: #A39580;
  --foam: rgba(255,255,255,0.08);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Outfit', sans-serif;
  background: var(--salt);
  color: var(--ocean-dark);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ─── UTILITY ─── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section-label {
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--rust);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.section-label::before {
  content: '';
  width: 2rem;
  height: 1px;
  background: var(--rust);
}

h1 {
  font-family: 'DM Serif Display', serif;
  font-weight: 400;
  line-height: 1.1;
}

h2 {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 400;
  line-height: 1.15;
  color: var(--ocean-dark);
  margin-bottom: 1.5rem;
}

h3 {
  font-family: 'DM Serif Display', serif;
  font-weight: 400;
  font-size: 1.4rem;
  line-height: 1.3;
}

p {
  font-weight: 300;
  line-height: 1.75;
  font-size: 1.05rem;
  color: var(--driftwood);
}

p + p { margin-top: 1.25rem; }

a { transition: color 0.3s; }

/* ─── BUTTONS ─── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 2rem;
  font-family: 'Outfit', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.35s ease;
}

.btn-primary {
  background: var(--rust);
  color: var(--salt);
}

.btn-primary:hover {
  background: var(--rust-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(184, 97, 58, 0.35);
}

.btn-ghost {
  background: transparent;
  color: var(--salt);
  border: 1px solid rgba(255,255,255,0.3);
}

.btn-ghost:hover {
  border-color: rgba(255,255,255,0.7);
  background: rgba(255,255,255,0.05);
}

.btn-outline {
  background: transparent;
  color: var(--ocean-dark);
  border: 1px solid var(--sand);
}

.btn-outline:hover {
  border-color: var(--rust);
  color: var(--rust);
}

/* ─── NAVIGATION ─── */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.25rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.4s ease;
}

nav.scrolled {
  background: rgba(26, 46, 59, 0.95);
  backdrop-filter: blur(12px);
  padding: 0.75rem 2rem;
  box-shadow: 0 4px 30px rgba(0,0,0,0.15);
}

/* Non-hero pages start with solid nav */
nav.nav-solid {
  background: var(--ocean-dark);
  padding: 0.75rem 2rem;
}

.nav-logo {
  font-family: 'DM Serif Display', serif;
  font-size: 1.5rem;
  color: var(--salt);
  text-decoration: none;
  letter-spacing: -0.02em;
}

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

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: color 0.3s;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--rust-light);
  transition: width 0.3s;
}

.nav-links a:hover { color: #fff; }
.nav-links a:hover::after { width: 100%; }

.nav-links a.active { color: #fff; }
.nav-links a.active::after { width: 100%; }

.nav-phone {
  color: var(--salt);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  opacity: 0.8;
  transition: opacity 0.3s;
}

.nav-phone:hover { opacity: 1; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  z-index: 200;
  background: none;
  border: none;
}

.hamburger span {
  width: 24px;
  height: 2px;
  background: var(--salt);
  transition: all 0.3s;
  display: block;
}

/* ─── PAGE HEADER (subpages) ─── */
.page-header {
  padding: 10rem 0 4rem;
  background: var(--ocean-dark);
  position: relative;
  overflow: hidden;
}

.page-header::after {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

.page-header h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  color: var(--salt);
  position: relative;
  z-index: 1;
}

.page-header p {
  color: rgba(255,255,255,0.5);
  max-width: 550px;
  margin-top: 1rem;
  position: relative;
  z-index: 1;
}

.page-header .section-label {
  color: var(--rust-light);
  position: relative;
  z-index: 1;
}

.page-header .section-label::before { background: var(--rust-light); }

/* ─── FOOTER ─── */
footer {
  background: var(--ocean-dark);
  padding: 4rem 0 2rem;
  color: rgba(255,255,255,0.5);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand .nav-logo {
  display: inline-block;
  margin-bottom: 1rem;
  font-size: 1.8rem;
}

.footer-brand p {
  color: rgba(255,255,255,0.4);
  font-size: 0.9rem;
  max-width: 350px;
}

.footer-col h5 {
  font-family: 'Outfit', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  margin-bottom: 1rem;
}

.footer-col a {
  display: block;
  color: rgba(255,255,255,0.4);
  text-decoration: none;
  font-size: 0.9rem;
  padding: 0.3rem 0;
  transition: color 0.3s;
}

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

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
}

.footer-bottom a {
  color: rgba(255,255,255,0.4);
  text-decoration: none;
  transition: color 0.3s;
}

.footer-bottom a:hover { color: var(--rust-light); }

/* ─── ANIMATIONS ─── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

.is-lightbox-target {
  cursor: zoom-in;
}

.global-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(10, 18, 24, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.global-lightbox.is-visible {
  display: flex;
}

.global-lightbox-image {
  max-width: min(1200px, 92vw);
  max-height: 86vh;
  width: auto;
  height: auto;
  border: 1px solid rgba(255,255,255,0.2);
  box-shadow: 0 24px 40px rgba(0,0,0,0.45);
}

.global-lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255,255,255,0.35);
  background: rgba(255,255,255,0.08);
  color: white;
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
}

.global-lightbox-close:hover {
  background: rgba(255,255,255,0.18);
}

/* ─── RESPONSIVE ─── */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-phone { display: none; }
  .hamburger { display: flex; }

  .nav-links.active {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(26,46,59,0.98);
    justify-content: center;
    align-items: center;
    gap: 2rem;
    z-index: 150;
  }

  .nav-links.active a { font-size: 1.2rem; color: var(--salt); }

  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 0.5rem; text-align: center; }
  .page-header { padding: 8rem 0 3rem; }
}
