/* ============================================================
   Coastal Photography — Area Subpage Design System
   area-subpage.css — load after style.css + areas.css
   To apply to any area page:
     1. Add <link rel="stylesheet" href="../css/area-subpage.css" />
     2. Add class "area-page--editorial" to <body>
     3. Add class "nav--editorial" to <nav id="nav">
        (the inline scroll script handles nav--scrolled toggling)
   ============================================================ */

/* ---------------------------------------------------------------
   EDITORIAL HERO — full-bleed photo, text anchored bottom-left
   Replaces the split two-column area-hero layout.
   Usage: <section class="area-hero area-hero--editorial">
--------------------------------------------------------------- */

.area-hero--editorial {
  position: relative;
  padding: 0;
  border-bottom: none;
  height: clamp(520px, 85vh, 800px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Full-bleed background photo */
.area-hero--editorial .area-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.area-hero--editorial .area-hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  display: block;
}

/* Dark gradient wash over photo — bottom-heavy for text legibility */
.area-hero--editorial .area-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(10, 15, 12, 0.90) 0%,
    rgba(10, 15, 12, 0.45) 45%,
    rgba(10, 15, 12, 0.18) 100%
  );
  z-index: 1;
}

/* Inner — full height flex column, content pushed to bottom */
.area-hero--editorial .area-hero__inner {
  position: relative;
  z-index: 2;
  height: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--container-padding);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-bottom: clamp(var(--s-10), 6vw, var(--s-16));
}

/* Breadcrumb — absolute top-left below nav */
.area-hero--editorial .area-hero__breadcrumb {
  position: absolute;
  top: calc(var(--nav-height) + var(--s-5));
  left: var(--container-padding);
  right: var(--container-padding);
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.8125rem;
}

.area-hero--editorial .area-hero__breadcrumb a {
  color: rgba(255, 255, 255, 0.6);
}

.area-hero--editorial .area-hero__breadcrumb a:hover {
  color: rgba(255, 255, 255, 0.9);
}

.area-hero--editorial .area-hero__breadcrumb span[aria-hidden] {
  opacity: 0.4;
}

.area-hero--editorial .area-hero__breadcrumb span[aria-current] {
  color: rgba(255, 255, 255, 0.88);
  font-weight: 500;
}

/* Content block — max width for readability */
.area-hero--editorial .area-hero__content {
  max-width: 660px;
}

/* Eyebrow — muted green-white */
.area-hero--editorial .area-hero__eyebrow {
  color: rgba(184, 214, 195, 0.9);
  margin-bottom: var(--s-3);
}

/* Headline — large, white, tight */
.area-hero--editorial .area-hero__title {
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  color: #fff;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35);
  max-width: 18ch;
  margin-bottom: var(--s-4);
}

/* Sub — white, readable, not too wide */
.area-hero--editorial .area-hero__sub {
  color: rgba(255, 255, 255, 0.78);
  max-width: 52ch;
  margin-bottom: var(--s-5);
}

/* Chips / tags — frosted glass style */
.area-hero--editorial .area-hero__tags {
  margin-bottom: var(--s-6);
}

.area-hero--editorial .area-hero__tag {
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.9);
  border-color: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(4px);
}

/* CTA row */
.area-hero--editorial .area-hero__actions {
  gap: var(--s-3);
}

/* Ghost button on dark hero */
.area-hero--editorial .btn--ghost {
  background: transparent;
  border: 1.5px solid rgba(255, 255, 255, 0.42);
  color: #fff;
  border-radius: var(--radius-lg, 12px);
  padding: 0.65rem 1.35rem;
  font-size: 0.9375rem;
  font-weight: 600;
  transition: background 0.2s, border-color 0.2s;
}

.area-hero--editorial .btn--ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.6);
}

/* ---------------------------------------------------------------
   NAV — transparent-over-hero → solid-on-scroll
   JS adds/removes .nav--scrolled; CSS handles the transition.
   Apply .nav--editorial to the <nav> element.
--------------------------------------------------------------- */

.nav--editorial {
  background: transparent;
  border-bottom: 1px solid transparent;
  box-shadow: none;
  transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.nav--editorial.nav--scrolled {
  background: rgba(255, 255, 255, 0.97);
  border-bottom-color: var(--card-border);
  box-shadow: 0 1px 20px rgba(0, 0, 0, 0.06);
}

/* Logo colour on transparent nav */
.nav--editorial .nav__logo                        { color: var(--white); }
.nav--editorial .nav__logo span                   { color: rgba(255, 255, 255, 0.65); }
.nav--editorial.nav--scrolled .nav__logo          { color: var(--charcoal); }
.nav--editorial.nav--scrolled .nav__logo span     { color: var(--charcoal); }

/* Links */
.nav--editorial .nav__links a                     { color: rgba(255, 255, 255, 0.8); }
.nav--editorial .nav__links a:hover               { color: rgba(255, 255, 255, 1); }
.nav--editorial .nav__links a[aria-current="page"]{ color: rgba(255, 255, 255, 1); }
.nav--editorial.nav--scrolled .nav__links a               { color: var(--muted); }
.nav--editorial.nav--scrolled .nav__links a:hover         { color: var(--charcoal); }
.nav--editorial.nav--scrolled .nav__links a[aria-current] { color: var(--charcoal); font-weight: 600; }

/* Book now button */
.nav--editorial .nav__cta {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  backdrop-filter: blur(4px);
}
.nav--editorial .nav__cta:hover {
  background: rgba(255, 255, 255, 0.25);
}
.nav--editorial.nav--scrolled .nav__cta {
  background: var(--evergreen);
  border-color: transparent;
  color: #fff;
}
.nav--editorial.nav--scrolled .nav__cta:hover {
  background: var(--evergreen-mid);
}

/* Hamburger toggle */
.nav--editorial .nav__toggle span                 { background: var(--white); }
.nav--editorial.nav--scrolled .nav__toggle span   { background: var(--charcoal); }

/* Mobile: open drawer always has solid background */
@media (max-width: 768px) {
  .nav--editorial .nav__links.is-open {
    background: var(--white);
  }
  .nav--editorial .nav__links.is-open a {
    color: var(--charcoal);
  }
}

/* ---------------------------------------------------------------
   GALLERY STRIP — horizontal scroll of area-specific portfolio photos
   Usage: <section class="area-gallery">
--------------------------------------------------------------- */

.area-gallery {
  padding: clamp(var(--s-10), 6vw, var(--s-16)) 0;
  background: var(--white);
  border-top: 1px solid var(--card-border);
}

.area-gallery__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.area-gallery__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--s-4);
  margin-bottom: var(--s-6);
  flex-wrap: wrap;
}

.area-gallery__heading {
  min-width: 0;
}

.area-gallery__eyebrow {
  display: block;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--evergreen);
  margin-bottom: var(--s-2);
}

.area-gallery__title {
  font-family: var(--font-heading);
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
  font-weight: 700;
  color: var(--charcoal);
  line-height: 1.15;
  letter-spacing: -0.025em;
  margin: 0;
}

.area-gallery__see-all-top {
  flex-shrink: 0;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--evergreen);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s;
}

.area-gallery__see-all-top:hover { color: var(--charcoal); }

/* Scroll rail */
.area-gallery__rail {
  display: flex;
  gap: var(--s-3);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding-bottom: var(--s-2);
}

.area-gallery__rail::-webkit-scrollbar { display: none; }

/* Individual photo card */
.area-gallery__item {
  flex: 0 0 clamp(220px, 32vw, 300px);
  scroll-snap-align: start;
  border-radius: var(--radius-card);
  overflow: hidden;
  border: 1px solid var(--card-border);
  background: #fff;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

.area-gallery__photo {
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.area-gallery__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s ease;
}

.area-gallery__item:hover .area-gallery__photo img {
  transform: scale(1.04);
}

.area-gallery__caption {
  padding: var(--s-3) var(--s-4);
  font-size: 0.8125rem;
  color: var(--muted);
  line-height: 1.4;
  margin: 0;
}

/* ---------------------------------------------------------------
   NEARBY AREAS — internal SEO links to neighbouring area pages
   Usage: <section class="area-nearby">
--------------------------------------------------------------- */

.area-nearby {
  padding: clamp(var(--s-8), 4vw, var(--s-10)) 0;
  background: #f7f6f2;
  border-top: 1px solid var(--card-border);
  border-bottom: 1px solid var(--card-border);
}

.area-nearby__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.area-nearby__eyebrow {
  display: block;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--evergreen);
  margin-bottom: var(--s-3);
}

.area-nearby__links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
  list-style: none;
  margin: 0;
  padding: 0;
}

.area-nearby__links li { display: contents; }

.area-nearby__link {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 1.1rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--card-border);
  background: var(--white);
  font-size: 0.875rem;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.area-nearby__link:hover {
  color: var(--charcoal);
  border-color: var(--evergreen);
  background: color-mix(in srgb, var(--evergreen) 6%, white);
}

/* ---------------------------------------------------------------
   INTRO — two-column layout for editorial pages
   Overrides the single-column default in area-template.css
--------------------------------------------------------------- */

.area-page--editorial .area-intro {
  padding: clamp(var(--s-10), 6vw, var(--s-16)) 0;
  background: #f7f6f2;
}

.area-page--editorial .area-intro__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(var(--s-8), 5vw, var(--s-16));
  align-items: start;
}

.area-page--editorial .area-intro__text h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.65rem, 3vw, 2.2rem);
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: var(--charcoal);
  margin-bottom: var(--s-4);
}

.area-page--editorial .area-intro__text p {
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: var(--s-5);
}

.area-page--editorial .area-intro__highlights {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  justify-content: flex-start;
}

.area-page--editorial .area-intro__highlight {
  background: var(--white);
  border-left: 3px solid var(--evergreen);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: var(--s-4) var(--s-5);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.area-page--editorial .area-intro__highlight::before {
  display: none;
}

.area-page--editorial .area-intro__highlight strong {
  display: block;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--charcoal);
  margin-bottom: var(--s-1);
}

.area-page--editorial .area-intro__highlight span {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.6;
}

.area-page--editorial .area-intro__actions {
  margin-top: var(--s-6);
}

/* ---------------------------------------------------------------
   CTA BAND — dark gradient with area accent
--------------------------------------------------------------- */

.area-page--editorial .area-cta {
  background: linear-gradient(135deg, #1a2420 0%, #2d3f32 100%);
}

/* ---------------------------------------------------------------
   RESPONSIVE
--------------------------------------------------------------- */

@media (max-width: 1024px) {
  .area-page--editorial .area-intro__grid {
    grid-template-columns: 1fr;
    gap: var(--s-8);
  }
}

@media (max-width: 768px) {
  .area-hero--editorial {
    height: clamp(480px, 78vh, 640px);
  }

  .area-hero--editorial .area-hero__title {
    font-size: clamp(1.85rem, 6.5vw, 2.6rem);
  }

  .area-hero--editorial .area-hero__actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .area-gallery__item {
    flex: 0 0 clamp(200px, 72vw, 260px);
  }

  .area-gallery__header {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--s-2);
  }
}

@media (max-width: 580px) {
  .area-hero--editorial {
    height: clamp(440px, 80svh, 580px);
  }

  .area-hero--editorial .area-hero__tags {
    display: flex;
    flex-wrap: wrap;
  }

  .area-gallery__item {
    flex: 0 0 240px;
  }

  .area-nearby__link {
    font-size: 0.8125rem;
    padding: 0.4rem 0.9rem;
  }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .area-gallery__photo img {
    transition: none;
  }
  .nav--editorial {
    transition: none;
  }
}
