/* =========================================================
   Pacific Living — Immersive / Cinematic
   Warm paper + deep navy · Fraunces display · Bebas wordmark
   Motion hero · full-bleed breaks · scroll reveals · restrained blue
   ========================================================= */

:root {
  --paper:    #f5f3ec;
  --paper-2:  #efece2;
  --ink:      #16242e;
  --ink-soft: #44545d;
  --muted:    #8d887c;
  --line:     #ddd8cb;
  --ocean:    #1b5a7f;
  --sky:      #2f9fdf;
  --night:    #0e171d;

  --serif: 'Fraunces', Georgia, serif;
  --sans:  'Inter', system-ui, -apple-system, sans-serif;
  --brand: 'Bebas Neue', var(--sans);

  --maxw: 1280px;
  --gutter: clamp(1.4rem, 5vw, 6rem);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans); font-weight: 300;
  background: var(--paper); color: var(--ink); line-height: 1.75;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
:focus-visible { outline: 2px solid var(--ocean); outline-offset: 3px; border-radius: 2px; }
.hero :focus-visible, .feature-overlay :focus-visible, .break :focus-visible { outline-color: #fff; }

/* ---------- Type primitives ---------- */
.kicker { font-family: var(--sans); font-weight: 500; font-size: 11px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--muted); }
.display { font-family: var(--serif); font-weight: 400; font-size: clamp(3rem, 8vw, 7rem); line-height: 0.96; letter-spacing: -0.015em; }
.display em, .h-large em, .h-entry em, .pull em, .break-text em, .teaser-cine em { font-style: italic; }
.h-large { font-family: var(--serif); font-weight: 400; font-size: clamp(2.1rem, 4.8vw, 3.9rem); line-height: 1.03; letter-spacing: -0.01em; }
.h-entry { font-family: var(--serif); font-weight: 400; font-size: clamp(1.9rem, 3.2vw, 2.8rem); line-height: 1.04; letter-spacing: -0.01em; }
.lede { font-weight: 300; font-size: clamp(1.05rem, 1.4vw, 1.3rem); line-height: 1.6; color: var(--ink-soft); max-width: 46ch; }
p.body { color: var(--ink-soft); max-width: 56ch; }
p.body + p.body { margin-top: 1.1rem; }

.link { font-family: var(--sans); font-size: 0.8rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink); border-bottom: 1px solid var(--ink); padding-bottom: 3px; transition: color .25s, border-color .25s; }
.link:hover { color: var(--ocean); border-color: var(--ocean); }
.link--muted { color: var(--muted); border-color: var(--line); }
.link--light { color: #fff; border-color: rgba(255,255,255,0.6); }
.link--light:hover { color: #fff; border-color: #fff; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gutter); }
section { padding-block: clamp(4.5rem, 10vw, 9rem); }

/* ---------- Scroll reveal (progressive enhancement) ---------- */
.js .reveal { opacity: 0; transform: translateY(30px); transition: opacity 1s cubic-bezier(.2,.6,.2,1), transform 1s cubic-bezier(.2,.6,.2,1); }
.js .reveal.in { opacity: 1; transform: none; }
.js .reveal.d1 { transition-delay: .12s; }
.js .reveal.d2 { transition-delay: .24s; }
.js .reveal.d3 { transition-delay: .36s; }

/* =========================================================
   Nav — transparent over hero, solid on scroll
   ========================================================= */
.site-nav {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 60;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.1rem var(--gutter);
  transition: background .4s ease, border-color .4s ease, padding .4s ease;
  border-bottom: 1px solid transparent;
}
.site-nav.scrolled {
  background: rgba(245,243,236,0.9); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom-color: var(--line); padding-block: 0.85rem;
}
.brand { display: flex; align-items: center; gap: 0.7rem; }
.brand-badge { width: 46px; height: 46px; transition: opacity .3s; }
.brand-badge--dark { display: none; }
.site-nav.scrolled .brand-badge--light { display: none; }
.site-nav.scrolled .brand-badge--dark { display: block; }
.brand-name { font-family: var(--brand); font-size: 1.5rem; letter-spacing: 0.07em; text-transform: uppercase; line-height: 1; color: #fff; transition: color .4s; }
.site-nav.scrolled .brand-name { color: var(--ink); }
.nav-menu { display: flex; align-items: center; gap: 2.4rem; }
.nav-menu a { font-family: var(--sans); font-weight: 400; font-size: 0.8rem; letter-spacing: 0.13em; text-transform: uppercase; color: rgba(255,255,255,0.82); transition: color .25s; }
.nav-menu a:hover { color: #fff; }
.site-nav.scrolled .nav-menu a { color: var(--ink-soft); }
.site-nav.scrolled .nav-menu a:hover { color: var(--ink); }
.nav-enquire { border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.nav-toggle { display: none; font-size: 1.7rem; line-height: 1; color: #fff; position: relative; z-index: 70; width: 44px; height: 44px; }
.site-nav.scrolled .nav-toggle,
.site-nav.menu-open .nav-toggle { color: var(--ink); }
body.menu-open { overflow: hidden; }

/* =========================================================
   Hero — full-screen cinematic slideshow
   ========================================================= */
.hero { position: relative; height: 100svh; min-height: 600px; display: flex; align-items: flex-end; overflow: hidden; color: #fff; }
.hero-slides { position: absolute; inset: 0; z-index: 0; }
.hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.8s ease; }
.hero-slide:first-child { opacity: 1; }
.hero-slide.active { opacity: 1; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; }
.hero-slide.active img { animation: kenburns 16s ease-out both; }
@keyframes kenburns { from { transform: scale(1.06); } to { transform: scale(1.18); } }
.hero-overlay { position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(14,23,29,0.42) 0%, rgba(14,23,29,0.12) 32%, rgba(14,23,29,0.78) 100%); }
.hero-inner { position: relative; z-index: 2; width: 100%; padding-bottom: clamp(4.5rem, 12vh, 9rem); }
.hero .kicker { color: rgba(255,255,255,0.82); display: block; margin-bottom: 1.6rem; }
.hero .display { color: #fff; margin-bottom: 1.8rem; max-width: 16ch; }
.hero-lede { font-weight: 300; font-size: clamp(1.05rem, 1.4vw, 1.3rem); line-height: 1.6; color: rgba(255,255,255,0.92); max-width: 42ch; margin-bottom: 2.4rem; }
.hero-links { display: flex; gap: 2rem; align-items: center; flex-wrap: wrap; }
.scroll-cue { position: absolute; bottom: 1.8rem; left: 50%; transform: translateX(-50%); z-index: 2; font-family: var(--sans); font-size: 10px; letter-spacing: 0.3em; text-transform: uppercase; color: rgba(255,255,255,0.7); display: flex; flex-direction: column; align-items: center; gap: 0.6rem; }
.scroll-cue span { width: 1px; height: 38px; background: rgba(255,255,255,0.5); animation: cue 2s ease-in-out infinite; transform-origin: top; }
@keyframes cue { 0%,100% { transform: scaleY(0.3); opacity: .4;} 50% { transform: scaleY(1); opacity: 1;} }

/* =========================================================
   Statement
   ========================================================= */
.statement .wrap { display: grid; grid-template-columns: 0.3fr 0.7fr; gap: clamp(1.5rem,4vw,4rem); }
.statement-text { font-family: var(--serif); font-weight: 400; font-size: clamp(1.6rem, 3vw, 2.6rem); line-height: 1.24; letter-spacing: -0.005em; color: var(--ink); }

/* ---------- Section head ---------- */
.section-head { margin-bottom: clamp(2.2rem, 5vw, 4rem); }
.section-head .kicker { display: block; margin-bottom: 1.3rem; }
.section-head .h-large { max-width: 16ch; }

/* =========================================================
   Full-bleed cinematic break (parallax)
   ========================================================= */
.break { position: relative; height: clamp(360px, 72vh, 680px); display: flex; align-items: center; justify-content: center; text-align: center; color: #fff; overflow: hidden; background-size: cover; background-position: center; }
.break::after { content: ""; position: absolute; inset: 0; background: rgba(14,23,29,0.42); }
.break-text { position: relative; z-index: 1; font-family: var(--serif); font-weight: 400; font-size: clamp(1.9rem, 4.5vw, 3.6rem); line-height: 1.15; letter-spacing: -0.01em; max-width: 20ch; padding-inline: 1.5rem; }
@media (min-width: 880px) and (prefers-reduced-motion: no-preference) {
  .break { background-attachment: fixed; }
}

/* =========================================================
   Feature — wide photo with text overlaid + detail strip below
   (à la The Modern House / Fogo Island Inn)
   ========================================================= */
.feature { position: relative; }
.feature + .feature { margin-top: clamp(2.5rem, 6vw, 5rem); }
.feature-photo { position: relative; height: clamp(460px, 88vh, 840px); overflow: hidden; }
.feature-photo img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.05); transition: transform 1.8s cubic-bezier(.2,.6,.2,1); }
.feature.in .feature-photo img { transform: scale(1); }
.feature:hover .feature-photo img { transform: scale(1.07); }
.feature-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14,23,29,0) 30%, rgba(14,23,29,0.32) 60%, rgba(14,23,29,0.82) 100%); }
.feature-overlay { position: absolute; left: 0; bottom: 0; z-index: 2; width: 100%; color: #fff; padding: clamp(2rem,6vw,4.5rem) 0; }
.feature-overlay-inner { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gutter); }
.feature-num { font-family: var(--serif); font-size: 1.3rem; color: rgba(255,255,255,0.85); display: block; margin-bottom: 0.4rem; }
.feature-overlay .h-entry { color: #fff; margin-bottom: 0.4rem; }
.feature-loc { font-family: var(--sans); font-size: 0.76rem; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(255,255,255,0.82); margin-bottom: 1.1rem; }
.feature-overlay p.body { color: rgba(255,255,255,0.92); max-width: 48ch; }
.feature-detail { max-width: var(--maxw); margin: 0 auto; padding: clamp(1.6rem,3vw,2.4rem) var(--gutter); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem 2.5rem; border-bottom: 1px solid var(--line); }
.facts { list-style: none; display: flex; flex-wrap: wrap; gap: clamp(1.5rem, 4vw, 3.5rem); }
.facts li { display: flex; flex-direction: column; gap: 0.25rem; }
.facts li span:first-child { font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.facts li span:last-child { font-family: var(--serif); font-size: 1.2rem; color: var(--ink); }
.detail-links { display: flex; align-items: center; gap: clamp(1.2rem, 3vw, 2rem); flex-wrap: wrap; }

/* =========================================================
   Essentials — Good to know
   ========================================================= */
.ess-grid { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.6rem, 3vw, 2.6rem) clamp(2rem, 4vw, 3.5rem); }
.ess-grid li { border-top: 1px solid var(--line); padding-top: 1.1rem; }
.ess-grid h4 { font-family: var(--serif); font-weight: 400; font-size: clamp(1.2rem, 1.9vw, 1.55rem); line-height: 1.1; margin-bottom: 0.4rem; }
.ess-grid p { color: var(--ink-soft); font-size: 0.95rem; line-height: 1.6; max-width: 34ch; }
.ess-split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); margin-top: clamp(2.5rem, 5vw, 4rem); padding-top: clamp(2rem, 4vw, 3rem); border-top: 1px solid var(--line); }
.ess-place { font-family: var(--sans); font-weight: 500; font-size: 0.76rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.8rem; }
.ess-split p { color: var(--ink-soft); }
@media (max-width: 880px) { .ess-grid { grid-template-columns: 1fr 1fr; } .ess-split { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .ess-grid { grid-template-columns: 1fr; } }

/* =========================================================
   Horizontal lookbook gallery (draggable)
   ========================================================= */
.hgallery { display: flex; gap: clamp(0.8rem, 1.5vw, 1.4rem); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 1.2rem; cursor: grab; scrollbar-width: thin; }
.hgallery.dragging { cursor: grabbing; scroll-snap-type: none; }
.hgallery::-webkit-scrollbar { height: 4px; }
.hgallery::-webkit-scrollbar-thumb { background: var(--line); }
.hgallery figure { flex: 0 0 auto; width: clamp(280px, 44vw, 580px); scroll-snap-align: center; }
.hgallery img { width: 100%; height: clamp(320px, 56vh, 560px); object-fit: cover; pointer-events: none; }
.hgallery figcaption { font-family: var(--serif); font-style: italic; color: var(--muted); margin-top: 0.7rem; font-size: 0.98rem; }
.drag-hint { margin-top: 1.1rem; font-family: var(--sans); font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }

/* =========================================================
   Cinematic teaser (Asturias) — no giveaway
   ========================================================= */
.teaser-cine { position: relative; min-height: clamp(440px, 82vh, 760px); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; color: #fff; overflow: hidden; padding: var(--gutter); background: radial-gradient(120% 90% at 50% 25%, #4a5a3f 0%, #2c3528 45%, #11130e 100%); }
.teaser-cine .kicker { color: rgba(255,255,255,0.65); margin-bottom: 1.6rem; }
.teaser-cine .display { color: #fff; max-width: 18ch; margin-bottom: 1.6rem; }
.teaser-cine .display em { color: #c9d3b6; }
.teaser-note { font-family: var(--sans); font-size: 0.78rem; letter-spacing: 0.22em; text-transform: uppercase; color: rgba(255,255,255,0.7); max-width: 40ch; }

/* =========================================================
   About — pull quote
   ========================================================= */
.about { text-align: center; }
.about .kicker { display: block; margin-bottom: 2rem; }
.pull { font-family: var(--serif); font-weight: 400; font-style: italic; font-size: clamp(1.9rem, 4vw, 3.3rem); line-height: 1.2; letter-spacing: -0.01em; max-width: 22ch; margin: 0 auto 2rem; }
.about-by { font-family: var(--sans); font-size: 0.78rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }
.about-tag { font-family: var(--serif); font-style: italic; font-size: clamp(1.2rem, 2vw, 1.6rem); color: var(--ocean); margin-top: 1.6rem; }

/* =========================================================
   Enquire
   ========================================================= */
.enquire .wrap { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(2rem, 6vw, 5rem); }
.enquire .lede { margin-top: 1.4rem; }
.enquire-direct { margin-top: 2.4rem; display: flex; flex-direction: column; gap: 0.6rem; }
.enquire-direct a { font-family: var(--serif); font-size: 1.3rem; width: fit-content; border-bottom: 1px solid var(--line); }
.enquire-direct a:hover { border-color: var(--ocean); color: var(--ocean); }
.form label { display: block; margin-bottom: 1.5rem; }
.form span { display: block; font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.6rem; }
.form input, .form select, .form textarea { width: 100%; background: transparent; border: 0; border-bottom: 1px solid var(--line); padding: 0.6rem 0; font-family: var(--sans); font-weight: 300; font-size: 1rem; color: var(--ink); }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--ocean); }
.form textarea { resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.submit { margin-top: 0.5rem; font-family: var(--sans); font-size: 0.8rem; letter-spacing: 0.18em; text-transform: uppercase; border-bottom: 1px solid var(--ink); padding-bottom: 4px; transition: color .2s, border-color .2s; }
.submit:hover { color: var(--ocean); border-color: var(--ocean); }
.form-note { font-family: var(--serif); font-style: italic; color: var(--ocean); margin-top: 1.4rem; font-size: 1.1rem; min-height: 1.2em; }

/* =========================================================
   Footer
   ========================================================= */
.site-footer { background: var(--ink); color: rgba(255,255,255,0.7); padding-block: clamp(3.5rem, 7vw, 6rem); }
.site-footer .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: clamp(2rem,5vw,4rem); }
.foot-brand { display: flex; align-items: center; gap: 0.7rem; margin-bottom: 1.2rem; }
.foot-brand img { width: 64px; height: 64px; }
.foot-brand span { font-family: var(--brand); font-size: 1.5rem; letter-spacing: 0.07em; text-transform: uppercase; color: #fff; }
.foot-tag { font-family: var(--serif); font-style: italic; font-size: 1.25rem; color: rgba(255,255,255,0.85); margin-bottom: 1.2rem; }
.foot-addr { font-size: 0.9rem; line-height: 1.7; }
.foot-addr a { border-bottom: 1px solid rgba(255,255,255,0.25); }
.foot-col h4 { font-family: var(--sans); font-weight: 500; font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(255,255,255,0.5); margin-bottom: 1.2rem; }
.foot-col a { display: block; font-size: 0.95rem; padding: 0.32rem 0; color: rgba(255,255,255,0.78); transition: color .2s; }
.foot-col a:hover { color: #fff; }
.foot-bottom { max-width: var(--maxw); margin: clamp(2.5rem,5vw,4rem) auto 0; padding: 1.6rem var(--gutter) 0; border-top: 1px solid rgba(255,255,255,0.12); display: flex; justify-content: space-between; gap: 1rem; font-size: 0.78rem; color: rgba(255,255,255,0.5); }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 880px) {
  .nav-menu { position: fixed; inset: 0; z-index: 55; flex-direction: column; justify-content: center; align-items: center; gap: 2.2rem; background: var(--paper); padding: 2rem; opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .3s ease, transform .3s ease, visibility .3s; }
  .nav-menu.open { opacity: 1; visibility: visible; transform: none; }
  .nav-menu a { color: var(--ink) !important; font-family: var(--serif); font-size: 1.5rem; letter-spacing: 0; text-transform: none; }
  .nav-menu .nav-enquire { border-bottom: 1px solid var(--ink); padding-bottom: 4px; }
  .nav-toggle { display: flex; }
  .statement .wrap, .enquire .wrap { grid-template-columns: 1fr; }
  .site-footer .wrap { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
  .foot-bottom { flex-direction: column; }
}
@media (max-width: 520px) { .form-row { grid-template-columns: 1fr; } }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .hero-slide.active img { animation: none; }
  .scroll-cue span { animation: none; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}
