/* =========================================================
   Pinetamare Azur — Site styles
   Built on tokens.css. Layout, chrome, components.
   ========================================================= */

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }

::selection { background: var(--accent-soft); color: var(--ink); }

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}
@media (min-width: 1024px) { .container { padding: 0 32px; } }

.container--editorial { max-width: 880px; }

.section { padding: var(--space-9) 0; }
.section--tight { padding: var(--space-8) 0; }
.section--bleed { padding: 0; }

.divider {
  height: 1px;
  background: var(--rule);
  width: 100%;
  border: 0;
  margin: 0;
}

/* ---------- Header / Nav ---------- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 28px;
  background: rgba(251, 249, 244, 0.78);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--rule);
}
.site-nav__brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: var(--ink);
}
.site-nav__brand img {
  height: 44px;
  width: auto;
  display: block;
}
@media (min-width: 1024px) {
  .site-nav__brand img { height: 52px; }
}
.site-nav__links {
  display: flex;
  gap: 26px;
  font-size: 13px;
  letter-spacing: 0.04em;
}
.site-nav__links a {
  color: var(--ink);
  text-decoration: none;
  transition: color var(--dur) var(--ease);
}
.site-nav__links a:hover { color: var(--accent); }
.site-nav__links a[aria-current="page"] { color: var(--accent); }

.site-nav__menu-btn {
  display: none;
  background: transparent;
  border: 0;
  padding: 8px;
  cursor: pointer;
  color: var(--ink);
}

@media (max-width: 820px) {
  .site-nav { padding: 14px 20px; }
  .site-nav__links { display: none; }
  .site-nav__cta { display: none; }
  .site-nav__menu-btn { display: inline-flex; }
}

/* Mobile drawer (progressive — falls back to full-page link list) */
.mobile-drawer {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 60;
  flex-direction: column;
  padding: 80px 32px 40px;
  gap: 24px;
}
.mobile-drawer[data-open="true"] { display: flex; }
.mobile-drawer a {
  font-family: var(--font-display);
  font-size: 32px;
  text-decoration: none;
  color: var(--ink);
}
.mobile-drawer__close {
  position: absolute;
  top: 18px;
  right: 20px;
  background: transparent;
  border: 0;
  font-size: 24px;
  cursor: pointer;
  color: var(--ink);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: var(--radius-md);
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background var(--dur) var(--ease),
              color var(--dur) var(--ease),
              border-color var(--dur) var(--ease),
              transform 120ms var(--ease);
  white-space: nowrap;
  text-decoration: none;
}
.btn:active { transform: scale(0.98); }

.btn--primary {
  background: var(--azur-700);
  color: var(--on-azur);
}
.btn--primary:hover { background: var(--azur-900); }

.btn--secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn--secondary:hover {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent);
}

.btn--link {
  background: transparent;
  color: var(--accent);
  border: 0;
  padding: 11px 0;
}
.btn--link:hover { text-decoration: underline; text-underline-offset: 4px; }

.btn--small { padding: 9px 18px; font-size: 13px; }

/* ---------- Eyebrows / labels ---------- */
.eyebrow {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-muted);
  display: inline-block;
}
.eyebrow--accent { color: var(--accent); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 78vh;
  display: flex;
  align-items: flex-end;
  background-size: cover;
  background-position: center;
  color: var(--on-azur);
  isolation: isolate;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(10, 58, 107, 0) 0%,
    rgba(10, 58, 107, 0) 45%,
    rgba(10, 58, 107, 0.55) 100%
  );
  z-index: -1;
}
.hero__inner {
  width: 100%;
  padding: var(--space-9) 0 var(--space-8);
}
.hero__eyebrow {
  color: var(--on-azur-muted);
  margin-bottom: var(--space-4);
}
.hero h1 {
  color: var(--on-azur);
  margin: 0 0 var(--space-4);
  max-width: 18ch;
}
.hero__lede {
  color: var(--on-azur);
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(18px, 1.6vw, 22px);
  line-height: 1.5;
  max-width: 48ch;
  margin: 0 0 var(--space-5);
  opacity: 0.95;
}
.hero__cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  align-items: center;
}
/* On-photo button overrides for legibility */
.hero .btn--secondary {
  color: var(--on-azur);
  border-color: var(--on-azur);
}
.hero .btn--secondary:hover {
  background: rgba(251, 249, 244, 0.14);
  color: var(--on-azur);
  border-color: var(--on-azur);
}

/* ---------- Section heading ---------- */
.section-head {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-bottom: var(--space-7);
  max-width: 60ch;
}
.section-head .eyebrow { margin-bottom: 4px; }

/* ---------- Cards ---------- */
.card {
  background: var(--surface);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--rule);
  box-shadow: var(--shadow-2);
  transition: box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.card:hover { box-shadow: var(--shadow-3); }
.card__img {
  aspect-ratio: 4 / 3;
  background-size: cover;
  background-position: center;
}
.card__body { padding: 18px 20px 22px; }
.card__body .eyebrow { font-size: 10px; }
.card h3 {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 20px;
  margin: 8px 0 6px;
  line-height: 1.22;
}
.card p {
  font-size: 14px;
  color: var(--ink-muted);
  margin: 0;
  line-height: 1.5;
}
.card__meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-top: var(--space-4);
  font-size: 13px;
  color: var(--ink-soft);
}
.card__price { color: var(--ink); font-weight: 500; }

/* ---------- Grids ---------- */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-5);
}
@media (max-width: 820px) {
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
}

/* ---------- Photography mosaic ---------- */
.mosaic {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 4px;
  height: clamp(320px, 42vw, 520px);
}
.mosaic__cell {
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: flex-end;
}
.mosaic__cell .cap {
  color: var(--on-azur);
  font-family: var(--font-sans);
  font-size: 11px;
  letter-spacing: 0.08em;
  padding: 12px 14px;
  background: linear-gradient(transparent, rgba(10, 58, 107, 0.55));
  width: 100%;
  text-transform: uppercase;
  font-weight: 500;
}
@media (max-width: 720px) {
  .mosaic { grid-template-columns: 1fr 1fr; height: auto; grid-auto-rows: 200px; }
  .mosaic__cell:first-child { grid-column: 1 / -1; height: 280px; }
}

/* ---------- Editorial / about ---------- */
.editorial p { margin: 0 0 var(--space-5); }
.editorial p:last-child { margin-bottom: 0; }
.editorial .signature {
  font-family: var(--font-script);
  font-size: 44px;
  color: var(--accent);
  line-height: 1;
  margin-top: var(--space-5);
}

.host-portrait {
  width: 100%;
  aspect-ratio: 4 / 5;
  background-size: cover;
  background-position: center;
  border-radius: var(--radius-md);
}

.editorial-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-8);
  align-items: center;
}
@media (max-width: 820px) {
  .editorial-split { grid-template-columns: 1fr; gap: var(--space-6); }
}

/* ---------- Full-bleed quote ---------- */
.bleed-quote {
  background-size: cover;
  background-position: center;
  color: var(--on-azur);
  padding: clamp(80px, 14vw, 160px) 32px;
  position: relative;
  isolation: isolate;
}
.bleed-quote::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(10, 58, 107, 0.20),
    rgba(10, 58, 107, 0.45)
  );
  z-index: -1;
}
.bleed-quote__inner {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}
.bleed-quote .quote {
  color: var(--on-azur);
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1.35;
}
.bleed-quote .signature {
  font-family: var(--font-script);
  font-size: 36px;
  color: var(--on-azur);
  margin-top: var(--space-5);
  display: inline-block;
}

/* ---------- Booking panel ---------- */
.booking {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius-md);
  padding: var(--space-6);
  box-shadow: var(--shadow-2);
}
.booking__title {
  font-family: var(--font-display);
  font-size: 28px;
  line-height: 1.1;
  margin: 0 0 var(--space-2);
}
.booking__sub {
  color: var(--ink-muted);
  margin: 0 0 var(--space-5);
  font-size: 14px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 18px;
}
.form-grid .row { grid-column: 1 / -1; }
.form-grid label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.form-grid input,
.form-grid select,
.form-grid textarea {
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius-md);
  padding: 11px 12px;
  letter-spacing: normal;
  text-transform: none;
  font-weight: 400;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.form-grid textarea { min-height: 140px; resize: vertical; }
.form-grid input:focus,
.form-grid select:focus,
.form-grid textarea:focus {
  outline: 0;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.form-grid button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
.form-feedback {
  background: rgba(184, 106, 62, 0.10);
  border: 1px solid var(--terra-600);
  color: var(--terra-600);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  font-size: 14px;
  line-height: 1.45;
}

/* ---------- Tags ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  background: var(--calce-100);
  color: var(--ink-muted);
  border: 1px solid var(--rule);
}
.tag--accent { background: var(--accent-soft); color: var(--accent-deep); border-color: transparent; }
.tag--leaf { background: rgba(168, 196, 168, 0.45); color: var(--accent-leaf); border-color: transparent; }

.tag-row { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- Fact list ---------- */
.facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-5);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: var(--space-6) 0;
}
.facts__item .num {
  font-family: var(--font-display);
  font-size: 36px;
  line-height: 1;
  display: block;
  color: var(--ink);
}
.facts__item .lab {
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-top: 8px;
  display: block;
}
@media (max-width: 720px) {
  .facts { grid-template-columns: 1fr 1fr; gap: var(--space-5); }
}

/* ---------- Specs / room list ---------- */
.specs {
  margin: var(--space-5) 0 0;
  padding: 0;
  border-top: 1px solid var(--rule);
}
.specs > div {
  border-bottom: 1px solid var(--rule);
  padding: var(--space-4) 0;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--space-5);
}
.specs dt {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-muted);
  flex-shrink: 0;
}
.specs dd {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 18px;
  color: var(--ink);
  text-align: right;
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--rule);
  padding: var(--space-6) 0 var(--space-7);
  margin-top: var(--space-9);
  font-size: 13px;
  color: var(--ink-muted);
}
.site-footer__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-5);
}
.site-footer__row + .site-footer__row {
  border-top: 1px solid var(--rule);
  margin-top: var(--space-5);
  padding-top: var(--space-5);
  font-size: 12px;
  color: var(--ink-soft);
}
.site-footer__brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}
.site-footer__brand img {
  height: 40px;
  width: auto;
  display: block;
}
.site-footer__links {
  display: flex;
  gap: var(--space-5);
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-footer__links a {
  color: var(--ink-muted);
  text-decoration: none;
}
.site-footer__links a:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 4px; }
.site-footer__row + .site-footer__row a {
  color: var(--ink-soft);
  text-decoration: none;
  transition: color var(--dur) var(--ease);
}
.site-footer__row + .site-footer__row a:hover {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.site-footer__fico { width: 32px; height: 32px; opacity: 0.6; }
@media (max-width: 720px) {
  .site-footer__row { flex-direction: column; align-items: flex-start; gap: var(--space-3); }
}

/* ---------- Page header (interior pages) ---------- */
.page-head {
  padding: var(--space-9) 0 var(--space-7);
  border-bottom: 1px solid var(--rule);
}
.page-head .eyebrow { margin-bottom: var(--space-3); }
.page-head h1 { margin: 0 0 var(--space-4); }
.page-head .lede { margin: 0; }

/* ---------- Utility ---------- */
.stack > * + * { margin-top: var(--space-4); }
.stack-lg > * + * { margin-top: var(--space-6); }
.text-muted { color: var(--ink-muted); }
.center { text-align: center; }

.fico-anchor {
  position: absolute;
  width: clamp(120px, 14vw, 180px);
  opacity: 0.18;
  pointer-events: none;
}

/* ---------- Feature breakout (full-bleed photo, optional caption) ---------- */
.feature {
  position: relative;
  width: 100%;
  aspect-ratio: 21 / 9;
  background-size: cover;
  background-position: center;
  isolation: isolate;
}
.feature__cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: var(--space-7) 32px var(--space-6);
  color: var(--on-azur);
  background: linear-gradient(transparent, rgba(10, 58, 107, 0.55));
}
.feature__cap .eyebrow { color: var(--on-azur-muted); margin-bottom: 6px; }
.feature__cap p {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(20px, 2.2vw, 28px);
  line-height: 1.35;
  color: var(--on-azur);
  margin: 0;
  max-width: 36ch;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}
@media (max-width: 720px) {
  .feature { aspect-ratio: 4 / 5; }
}

/* ---------- Photo strip (rooftop, home features, etc.) ---------- */
.rooftop-strip-wrap,
.photo-strip-wrap {
  margin: var(--space-6) 0;
}
.rooftop-strip,
.photo-strip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  gap: 6px;
}
.rooftop-strip__cell,
.photo-strip__cell {
  aspect-ratio: 4 / 5;
  background-size: cover;
  background-position: center;
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.rooftop-strip__cell:nth-child(even),
.photo-strip__cell:nth-child(even) {
  margin-top: var(--space-6);
}
.photo-strip--3 .photo-strip__cell:nth-child(even) { margin-top: 0; }
@media (max-width: 820px) {
  .rooftop-strip,
  .photo-strip {
    grid-auto-columns: 70vw;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 0 24px var(--space-3);
    gap: 8px;
    -webkit-overflow-scrolling: touch;
  }
  .rooftop-strip__cell,
  .photo-strip__cell {
    scroll-snap-align: start;
    aspect-ratio: 4 / 5;
    margin-top: 0 !important;
  }
}

/* ---------- Map embed ---------- */
.map-embed {
  margin-top: var(--space-5);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--rule);
  box-shadow: var(--shadow-2);
  aspect-ratio: 16 / 9;
  background: var(--calce-100);
}
.map-embed iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* ---------- Instagram grid ---------- */
.ig-section {
  padding: var(--space-9) 0 var(--space-8);
  border-top: 1px solid var(--rule);
}
.ig-head {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: var(--space-4);
  margin-bottom: var(--space-6);
}
.ig-head h2 { margin: 6px 0 0; }
.ig-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 4px;
}
.ig-tile {
  aspect-ratio: 1 / 1;
  background-size: cover;
  background-position: center;
  position: relative;
  display: block;
  overflow: hidden;
  transition: transform var(--dur-slow) var(--ease-out);
}
.ig-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(10, 58, 107, 0);
  transition: background var(--dur) var(--ease);
}
.ig-tile:hover::after { background: rgba(10, 58, 107, 0.18); }
.ig-tile:hover { transform: scale(1.02); }
@media (max-width: 820px) {
  .ig-grid { grid-template-columns: repeat(3, 1fr); }
}
