/* ============================================================
   SAIL AWAY — FRAME SHOP
   style.css  |  Shared across all pages
   ============================================================ */

/* ── GOOGLE FONTS ─────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;1,300;1,400&family=Jost:wght@300;400;500&family=Cinzel:wght@300;400&display=swap');

/* ── CSS VARIABLES ────────────────────────────────────────── */
:root {
  --navy:      #1a2940;
  --navy-dk:   #0e1a28;
  --navy-lt:   #243550;
  --navy-mid:  #2a3f60;
  --cream:     #f4f0e8;
  --cream-dk:  #e8e2d4;
  --gold:      #c9a96e;
  --gold-lt:   #ddc08a;
  --white:     #ffffff;
  --muted:     rgba(244, 240, 232, 0.55);
  --border:    rgba(244, 240, 232, 0.08);
  --gold-line: rgba(201, 169, 110, 0.25);

  --ff-display: 'Cormorant Garamond', Georgia, serif;
  --ff-title:   'Cinzel', serif;
  --ff-body:    'Jost', sans-serif;

  --max-width:  1200px;
  --section-pad: 7rem 3rem;
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  background:   var(--navy-dk);
  color:        var(--cream);
  font-family:  var(--ff-body);
  font-weight:  300;
  line-height:  1.7;
}

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

a {
  color: inherit;
}

/* ── TYPOGRAPHY UTILITIES ─────────────────────────────────── */
.section-label {
  font-size:      0.68rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color:          var(--gold);
  margin-bottom:  1rem;
}

h1, h2, h3 {
  font-family: var(--ff-display);
  font-weight: 300;
  line-height: 1.15;
  color:       var(--white);
}

h2 {
  font-size:      clamp(2rem, 4vw, 3rem);
  letter-spacing: 0.06em;
}

h2 em {
  font-style: italic;
  color:      var(--gold-lt);
}

h3 {
  font-family:    var(--ff-display);
  font-size:      1.6rem;
  font-weight:    400;
  letter-spacing: 0.04em;
  color:          var(--white);
}

/* ── BUTTONS ──────────────────────────────────────────────── */
.btn {
  display:         inline-block;
  padding:         0.75rem 2rem;
  font-family:     var(--ff-body);
  font-size:       0.75rem;
  font-weight:     400;
  letter-spacing:  0.18em;
  text-transform:  uppercase;
  text-decoration: none;
  border:          1px solid;
  transition:      all 0.25s;
  cursor:          pointer;
}

.btn-primary {
  background:   var(--gold);
  border-color: var(--gold);
  color:        var(--navy-dk);
}
.btn-primary:hover {
  background:   var(--gold-lt);
  border-color: var(--gold-lt);
}

.btn-ghost {
  background:   transparent;
  border-color: rgba(244, 240, 232, 0.4);
  color:        var(--cream);
}
.btn-ghost:hover {
  border-color: var(--gold);
  color:        var(--gold);
}

/* ── NAVIGATION ───────────────────────────────────────────── */
nav {
  position:        fixed;
  top:             0;
  left:            0;
  right:           0;
  z-index:         9998;
  display:         flex;
  align-items:     center;
  justify-content: space-between;
  padding:         1.2rem 3rem;
  background:      linear-gradient(to bottom, rgba(14,26,40,0.92), transparent);
  transition:      background 0.3s;
}

/* backdrop-filter on nav itself creates a stacking context that traps
   the fixed-position .nav-links overlay. Use a pseudo-element instead
   so the blur sits behind nav content without creating that trap. */
nav::before {
  content:        '';
  position:       absolute;
  inset:          0;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index:        -1;
  pointer-events: none;
}

nav.scrolled {
  background: rgba(14, 26, 40, 0.97);
}

.nav-logo img {
  height: 44px;
}

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

.nav-links a {
  font-family:     var(--ff-body);
  font-weight:     400;
  font-size:       0.78rem;
  letter-spacing:  0.18em;
  text-transform:  uppercase;
  color:           var(--cream);
  text-decoration: none;
  opacity:         0.8;
  transition:      opacity 0.2s, color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  opacity: 1;
  color:   var(--gold-lt);
}

/* Hamburger — hidden on desktop */
.nav-toggle {
  display:    none;
  flex-direction: column;
  gap:        5px;
  background: none;
  border:     none;
  cursor:     pointer;
  padding:    4px;
}

.nav-toggle span {
  display:    block;
  width:      24px;
  height:     1.5px;
  background: var(--cream);
  transition: transform 0.3s, opacity 0.3s;
}

/* ── PAGE HERO (inner pages — not homepage) ───────────────── */
.page-hero {
  padding:    10rem 3rem 5rem;
  background: var(--navy);
  border-bottom: 1px solid var(--gold-line);
}

.page-hero .section-label {
  margin-bottom: 0.6rem;
}

.page-hero h1 {
  font-family:    var(--ff-display);
  font-weight:    300;
  font-size:      clamp(2.6rem, 5vw, 4rem);
  letter-spacing: 0.08em;
  color:          var(--white);
}

.page-hero h1 em {
  font-style: italic;
  color:      var(--gold-lt);
}

.page-hero p {
  max-width:   540px;
  color:       var(--muted);
  font-size:   1.05rem;
  margin-top:  1.2rem;
  line-height: 1.85;
}

/* ── SECTION WRAPPERS ─────────────────────────────────────── */
.section-navy {
  background: var(--navy);
}

.section-dk {
  background: var(--navy-dk);
}

.section-inner {
  max-width: var(--max-width);
  margin:    0 auto;
  padding:   var(--section-pad);
}

/* ── DECORATIVE OFFSET PHOTO FRAME ───────────────────────── */
.offset-photo {
  position: relative;
}

.offset-photo img {
  width:  100%;
  filter: saturate(0.85) brightness(0.92);
}

.offset-photo::before {
  content:         '';
  position:        absolute;
  inset:           -12px 12px 12px -12px;
  border:          1px solid var(--gold);
  opacity:         0.3;
  pointer-events:  none;
}

/* ── PHOTO STRIP (two-up) ─────────────────────────────────── */
.photo-strip {
  display:   grid;
  grid-template-columns: 1.4fr 1fr;
  height:    420px;
  overflow:  hidden;
}

.photo-strip-item {
  overflow: hidden;
}

.photo-strip-item img {
  width:       100%;
  height:      100%;
  object-fit:  cover;
  filter:      saturate(0.8) brightness(0.88);
  transition:  filter 0.5s, transform 0.5s;
}

.photo-strip-item:hover img {
  filter:    saturate(1) brightness(0.95);
  transform: scale(1.03);
}

/* ── CONTACT STRIP ────────────────────────────────────────── */
.contact-strip {
  background:     var(--navy-dk);
  padding:        5rem 3rem;
  display:        flex;
  justify-content: center;
  gap:            6rem;
  flex-wrap:      wrap;
  border-top:     1px solid var(--border);
}

.contact-item {
  text-align: center;
}

.contact-item .label {
  font-size:      0.65rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color:          var(--gold);
  margin-bottom:  0.5rem;
}

.contact-item p {
  font-size:   0.95rem;
  color:       var(--cream);
  line-height: 1.6;
}

.contact-item a {
  color:           var(--gold);
  text-decoration: none;
  transition:      color 0.2s;
}

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

/* ── FOOTER ───────────────────────────────────────────────── */
footer {
  background:  var(--navy-dk);
  padding:     2.5rem 3rem;
  border-top:  1px solid var(--border);
  display:     flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap:   wrap;
  gap:         1rem;
}

footer img {
  height:  36px;
  opacity: 0.6;
}

footer p {
  font-size:      0.72rem;
  letter-spacing: 0.1em;
  color:          var(--muted);
  opacity:        0.6;
}

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

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

/* ── RESPONSIVE — TABLET ──────────────────────────────────── */
@media (max-width: 900px) {
  :root {
    --section-pad: 5rem 2rem;
  }

  .photo-strip {
    grid-template-columns: 1fr 1fr;
    height: 320px;
  }
}

/* ── RESPONSIVE — MOBILE ──────────────────────────────────── */
@media (max-width: 680px) {
  :root {
    --section-pad: 4rem 1.5rem;
  }

  /* Nav: show hamburger, hide links */
  nav {
    padding: 1rem 1.5rem;
  }

  .nav-links {
    display:         none;
    position:        fixed;
    top:             0;
    left:            0;
    width:           100%;
    height:          100%;
    background:      rgba(8, 15, 24, 0.99);
    flex-direction:  column;
    align-items:     center;
    justify-content: flex-start;
    padding-top:     6rem;
    gap:             2rem;
    z-index:         9999;
    overflow-y:      hidden;
    box-sizing:      border-box;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links li {
    display:    block !important;
    width:      100% !important;
    text-align: center !important;
    list-style: none !important;
  }

  .nav-links a,
  .nav-links.open a,
  .nav-links.open li a {
    font-size:       1.2rem !important;
    letter-spacing:  0.2em !important;
    color:           #f4f0e8 !important;
    opacity:         1 !important;
    text-decoration: none !important;
    display:         block !important;
    padding:         0.5rem 1rem !important;
  }

  .nav-toggle {
    display:  flex;
    z-index:  10000;
    position: relative;
  }

  /* Animate hamburger → X when open */
  .nav-toggle.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

  .photo-strip {
    grid-template-columns: 1fr;
    height: auto;
  }

  .photo-strip-item {
    height: 260px;
  }

  .contact-strip {
    gap:     3rem;
    padding: 3.5rem 1.5rem;
  }

  .page-hero {
    padding: 8rem 1.5rem 3.5rem;
  }
}
