/* ══════════════════════════════════════════
   Heron Cottage — Bala Park Island
   ══════════════════════════════════════════ */

/* ── Custom Properties ────────────────────── */
:root {
  /* Palette */
  --color-ink:          #2d3436;
  --color-muted:        #636e72;
  --color-label:        #8d9a8e;
  --color-bg:           #fafaf8;
  --color-surface:      #fff;
  --color-surface-alt:  #f4f3ef;
  --color-placeholder:  #e8e8e5;
  --color-accent:       #5a7d5a;
  --color-accent-light: #eef5ee;
  --color-bullet:       #c8d6c8;

  /* Dark surfaces */
  --color-dark:         #1a2634;
  --color-dark-deep:    #141e28;

  /* Transparency helpers */
  --white-80: rgba(255, 255, 255, .8);
  --white-65: rgba(255, 255, 255, .65);
  --white-60: rgba(255, 255, 255, .6);
  --white-40: rgba(255, 255, 255, .4);
  --white-35: rgba(255, 255, 255, .35);
  --white-30: rgba(255, 255, 255, .3);
  --white-12: rgba(255, 255, 255, .12);
  --white-10: rgba(255, 255, 255, .1);
  --white-07: rgba(255, 255, 255, .07);

  --shadow-soft:  rgba(0, 0, 0, .06);
  --shadow-med:   rgba(0, 0, 0, .08);

  /* Typography */
  --font-body:    'Inter', system-ui, sans-serif;
  --font-heading: 'DM Serif Display', serif;

  /* Radii */
  --radius:    1rem;
  --radius-sm: .75rem;
  --radius-xs: 12px;
  --radius-pill: 999px;
  --radius-circle: 50%;
}


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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}

body {
  font-family: var(--font-body);
  color: var(--color-ink);
  background: var(--color-bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}


/* ── Typography ───────────────────────────── */
h1, h2, h3 {
  font-family: var(--font-heading);
  font-weight: 400;
  line-height: 1.2;
}

h1 { font-size: clamp(2.4rem, 5vw, 4rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); margin-bottom: .75rem; }
h3 { font-size: 1.15rem; }

.section-label {
  font-size: .75rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--color-label);
  margin-bottom: .5rem;
  font-weight: 600;
}


/* ── Layout ───────────────────────────────── */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

section {
  padding: 5rem 0;
}


/* ── Nav ──────────────────────────────────── */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(250, 250, 248, .85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 0, 0, .06);
  transition: box-shadow .3s;
}

nav.scrolled {
  box-shadow: 0 1px 20px var(--shadow-med);
}

nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 3.75rem;
}

.nav-brand {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  color: var(--color-ink);
}

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

.nav-links a {
  font-size: .85rem;
  font-weight: 500;
  color: var(--color-muted);
  transition: color .2s;
}

.nav-links a:hover {
  color: var(--color-ink);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: .5rem;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-ink);
  margin: 5px 0;
  transition: all .3s;
  border-radius: 1px;
}


/* ── Hero ─────────────────────────────────── */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--color-dark);
}

.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .7;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(15, 25, 35, .85) 0%,
    rgba(15, 25, 35, .2) 50%,
    transparent 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 4rem 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
  color: #fff;
}

.hero h1 {
  color: #fff;
  margin-bottom: .75rem;
}

.hero p {
  font-size: 1.15rem;
  color: var(--white-80);
  max-width: 520px;
  margin-bottom: 2rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--white-80);
  margin-bottom: 1rem;
}

.hero-badge svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
}


/* ── Buttons ──────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .85rem 1.75rem;
  border-radius: var(--radius-pill);
  font-size: .9rem;
  font-weight: 600;
  transition: all .25s;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: #fff;
  color: var(--color-ink);
}

.btn-primary:hover {
  background: var(--color-placeholder);
  transform: translateY(-1px);
}

.btn-outline {
  border: 1.5px solid var(--white-30);
  color: #fff;
  background: transparent;
}

.btn-outline:hover {
  background: var(--white-10);
}


/* ── About / Intro ────────────────────────── */
.intro {
  background: var(--color-surface);
}

.intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.intro-text p {
  color: var(--color-muted);
  font-size: 1.05rem;
  margin-bottom: 1.25rem;
}

.intro-img {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  box-shadow: 0 20px 60px var(--shadow-med);
}

.intro-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}


/* ── Features ─────────────────────────────── */
.features {
  background: var(--color-surface-alt);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 2.5rem;
}

.feature-card {
  background: var(--color-surface);
  border-radius: var(--radius);
  padding: 2rem;
  transition: transform .25s, box-shadow .25s;
}

.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px var(--shadow-soft);
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-xs);
  background: var(--color-accent-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  color: var(--color-accent);
}

.feature-card h3 {
  margin-bottom: .5rem;
}

.feature-card p {
  font-size: .9rem;
  color: var(--color-muted);
}


/* ── Gallery ──────────────────────────────── */
.gallery {
  background: var(--color-surface);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: .75rem;
  margin-top: 2.5rem;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 4 / 3;
  background: var(--color-placeholder);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0);
  transition: background .3s;
}

.gallery-item:hover::after {
  background: rgba(0, 0, 0, .08);
}

.gallery-item.featured {
  grid-column: span 2;
  grid-row: span 2;
}

.gallery-item.align-top img {
  object-position: top;
}


/* ── Details / Info ───────────────────────── */
.details {
  background: var(--color-surface-alt);
}

.details-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  margin-top: 2.5rem;
}

.detail-block {
  margin-bottom: 2rem;
}

.detail-block h3 {
  margin-bottom: .75rem;
  color: var(--color-ink);
}

.detail-block p,
.detail-block li {
  color: var(--color-muted);
  font-size: .95rem;
}

.detail-block ul {
  list-style: none;
  padding: 0;
}

.detail-block li {
  padding: .35rem 0;
  padding-left: 1.5rem;
  position: relative;
}

.detail-block li::before {
  content: '';
  position: absolute;
  left: 0;
  top: .7rem;
  width: 8px;
  height: 8px;
  border-radius: var(--radius-circle);
  background: var(--color-bullet);
}

.pdf-link {
  display: inline-block;
  font-weight: 500;
  color: var(--color-accent);
  border-bottom: 1px solid var(--color-bullet);
  padding-bottom: 1px;
  transition: color .2s, border-color .2s;
}

.pdf-link:hover {
  color: var(--color-ink);
  border-color: var(--color-ink);
}


/* ── Contact / CTA ────────────────────────── */
.cta {
  background: var(--color-dark);
  color: #fff;
  text-align: center;
}

.cta h2 {
  color: #fff;
  margin-bottom: .5rem;
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
}

.cta p {
  color: var(--white-65);
  max-width: 500px;
  margin: 0 auto 2rem;
}

.contact-cards {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.contact-card {
  background: var(--white-07);
  border: 1px solid var(--white-10);
  border-radius: var(--radius);
  padding: 1.5rem 2rem;
  text-align: center;
  min-width: 200px;
  transition: background .25s;
}

.contact-card:hover {
  background: var(--white-12);
}

.contact-card .label {
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--white-40);
  margin-bottom: .35rem;
}

.contact-card .value {
  font-size: 1.05rem;
  font-weight: 500;
  color: #fff;
}

.contact-card a {
  color: #fff;
  border-bottom: 1px solid var(--white-30);
  transition: border-color .2s;
}

.contact-card a:hover {
  border-color: #fff;
}


/* ── Map section ──────────────────────────── */
.map-section {
  background: var(--color-surface);
  text-align: center;
}

.map-section img {
  border-radius: var(--radius);
  margin: 2rem auto 0;
  max-width: 600px;
  box-shadow: 0 8px 40px var(--shadow-soft);
}

.map-link {
  display: inline-block;
  position: relative;
  transition: transform .25s;
}

.map-link:hover {
  transform: translateY(-2px);
}

.map-link-label {
  display: inline-block;
  margin-top: 1rem;
  font-size: .85rem;
  font-weight: 600;
  color: var(--color-accent);
  transition: color .2s;
}

.map-link:hover .map-link-label {
  color: var(--color-ink);
}


/* ── Footer ───────────────────────────────── */
footer {
  background: var(--color-dark-deep);
  color: var(--white-40);
  text-align: center;
  padding: 2rem 1.5rem;
  font-size: .8rem;
}


/* ── Lightbox ─────────────────────────────── */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, .92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
  opacity: 0;
  transition: opacity .3s;
}

.lightbox.active {
  display: flex;
  opacity: 1;
}

.lightbox img {
  max-width: 90vw;
  max-height: 90vh;
  border-radius: .5rem;
  object-fit: contain;
  cursor: default;
  transform: scale(.95);
  transition: transform .3s;
}

.lightbox.active img {
  transform: scale(1);
}

.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 44px;
  height: 44px;
  background: var(--white-10);
  border: none;
  border-radius: var(--radius-circle);
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s;
}

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

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  background: var(--white-10);
  border: none;
  border-radius: var(--radius-circle);
  color: #fff;
  font-size: 1.25rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s;
}

.lightbox-nav:hover {
  background: rgba(255, 255, 255, .2);
}

.lightbox-prev { left: 1.5rem; }
.lightbox-next { right: 1.5rem; }

.lightbox-caption {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, .7);
  font-size: .9rem;
  text-align: center;
  max-width: 500px;
}


/* ── Responsive ───────────────────────────── */
@media (max-width: 900px) {
  .intro-grid       { grid-template-columns: 1fr; gap: 2rem; }
  .features-grid    { grid-template-columns: 1fr 1fr; }
  .gallery-grid     { grid-template-columns: repeat(3, 1fr); }
  .gallery-item.featured { grid-column: span 1; grid-row: span 1; }
  .details-grid     { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  section { padding: 3.5rem 0; }

  .nav-links {
    display: none;
    position: absolute;
    top: 3.75rem;
    left: 0;
    right: 0;
    background: rgba(250, 250, 248, .97);
    backdrop-filter: blur(12px);
    flex-direction: column;
    padding: 1.5rem;
    gap: 1rem;
    border-bottom: 1px solid rgba(0, 0, 0, .06);
  }

  .map-section img {
    max-width: 100%;
  }

  .nav-links.open { display: flex; }
  .nav-toggle     { display: block; }
  .features-grid  { grid-template-columns: 1fr; }
  .gallery-grid   { grid-template-columns: repeat(2, 1fr); }
  .hero           { min-height: 80vh; }
  .contact-cards  { flex-direction: column; align-items: center; }
}
