/* ============================================================
   BANGALORE BIRDING — SHARED STYLES
   Aesthetic: Organic / Field-guide / Natural Heritage
   Fonts: Playfair Display (headings) + Source Serif 4 (body)
   Colors: Forest greens, warm cream, terracotta accent
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400;1,600&family=Source+Serif+4:ital,opsz,wght@0,8..60,300;0,8..60,400;0,8..60,500;1,8..60,300;1,8..60,400&family=DM+Mono:wght@400;500&display=swap');

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

:root {
  --forest:   #1e3a2f;
  --fern:     #2d5a3d;
  --moss:     #4a7c59;
  --sage:     #8aad8e;
  --mist:     #d4e5d8;
  --cream:    #f7f3ec;
  --parchment:#ede7d9;
  --terracotta:#b85c38;
  --amber:    #d4882a;
  --charcoal: #2c2c2c;
  --ink:      #3d3d3d;
  --feather:  #f0ebe1;

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'Source Serif 4', Georgia, serif;
  --font-mono:    'DM Mono', monospace;

  --max-w: 1100px;
  --radius: 4px;
  --shadow: 0 2px 16px rgba(30,58,47,0.10);
  --shadow-lg: 0 8px 40px rgba(30,58,47,0.14);
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--ink);
  font-size: 17px;
  line-height: 1.75;
  min-height: 100vh;
}

/* ── TEXTURE OVERLAY ── */
body::before {
  content: '';
  position: fixed; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
  opacity: 0.6;
}

/* ── TYPOGRAPHY ── */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--forest);
  line-height: 1.25;
}
h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); font-weight: 700; }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 600; }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.4rem); font-weight: 600; }

a { color: var(--fern); text-decoration: none; transition: color .2s; }
a:hover { color: var(--terracotta); }

p { margin-bottom: 1.1em; }
strong { font-weight: 600; color: var(--charcoal); }

/* ── LAYOUT ── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 2.5rem);
  position: relative; z-index: 1;
}

/* ── HEADER / NAV ── */
.site-header {
  background: var(--forest);
  position: sticky; top: 0; z-index: 100;
  box-shadow: 0 2px 12px rgba(0,0,0,.25);
}
.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 2.5rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 1rem;
}
.site-logo {
  display: flex; align-items: center; gap: .75rem;
  text-decoration: none;
}
.site-logo img {
  height: 42px; width: auto;
  border-radius: 3px;
}
.site-logo-text {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-style: italic;
  color: var(--mist);
  white-space: nowrap;
  display: none;
}
@media (min-width: 480px) { .site-logo-text { display: block; } }

/* hamburger */
.nav-toggle {
  display: none;
  background: none; border: none;
  cursor: pointer;
  padding: .4rem;
  flex-direction: column;
  gap: 5px;
  z-index: 200;
}
.nav-toggle span {
  display: block; width: 24px; height: 2px;
  background: var(--mist);
  border-radius: 2px;
  transition: transform .3s, opacity .3s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.main-nav ul {
  list-style: none;
  display: flex;
  gap: .25rem;
  align-items: center;
}
.main-nav a {
  font-family: var(--font-display);
  font-size: .82rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--mist);
  padding: .5rem .75rem;
  border-radius: var(--radius);
  transition: background .2s, color .2s;
  white-space: nowrap;
}
.main-nav a:hover, .main-nav a.active {
  background: rgba(255,255,255,.1);
  color: #fff;
}
.main-nav a.active {
  color: var(--amber);
}

/* phone pill in nav */
.nav-phone {
  display: none;
  font-family: var(--font-display);
  font-size: .82rem;
  color: var(--amber);
  letter-spacing: .04em;
  white-space: nowrap;
}
@media (min-width: 860px) { .nav-phone { display: block; } }

@media (max-width: 700px) {
  .nav-toggle { display: flex; }
  .main-nav {
    position: fixed;
    top: 64px; right: 0;
    width: min(280px, 80vw);
    height: calc(100vh - 64px);
    background: var(--forest);
    transform: translateX(100%);
    transition: transform .35s cubic-bezier(.4,0,.2,1);
    box-shadow: -4px 0 24px rgba(0,0,0,.3);
    padding: 2rem 1.5rem;
    overflow-y: auto;
  }
  .main-nav.open { transform: translateX(0); }
  .main-nav ul { flex-direction: column; gap: .5rem; align-items: flex-start; }
  .main-nav a { font-size: .95rem; padding: .65rem 1rem; width: 100%; display: block; }
}

/* ── HERO BANNER ── */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--forest);
}
.hero img {
  width: 100%;
  max-height: 380px;
  object-fit: cover;
  object-position: center 40%;
  display: block;
  opacity: .8;
  filter: saturate(1.15) brightness(.85);
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(30,58,47,.15) 0%, rgba(30,58,47,.55) 100%);
}

/* ── PHONE STRIP ── */
.phone-strip {
  background: var(--parchment);
  border-bottom: 1px solid var(--mist);
  padding: .6rem clamp(1rem,4vw,2.5rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .5rem;
}
.phone-strip a {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--forest);
  font-size: 1rem;
}
.phone-strip a:hover { color: var(--terracotta); }
.phone-strip .email-link {
  font-size: .85rem;
  color: var(--fern);
  border: 1px solid var(--sage);
  padding: .3rem .8rem;
  border-radius: 50px;
  transition: background .2s, color .2s;
}
.phone-strip .email-link:hover {
  background: var(--fern);
  color: #fff;
}

/* ── MAIN CONTENT ── */
main {
  padding: clamp(2rem, 5vw, 4rem) 0;
  position: relative; z-index: 1;
}
.content-section {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 2.5rem);
}
.section-intro {
  max-width: 760px;
  margin-bottom: 2.5rem;
}
.section-intro h1, .section-intro h2 {
  margin-bottom: .75rem;
}
.section-intro p {
  color: var(--ink);
  font-size: 1.05rem;
}

/* ── DIVIDER ── */
.divider {
  border: none;
  border-top: 1px solid var(--mist);
  margin: 2.5rem 0;
}

/* leaf accent */
.leaf-accent {
  display: inline-block;
  color: var(--sage);
  font-size: 1.2em;
  margin-right: .35rem;
}

/* ── FOOTER ── */
.site-footer {
  background: var(--forest);
  color: var(--mist);
  padding: 2rem clamp(1rem,4vw,2.5rem);
  font-size: .85rem;
  position: relative; z-index: 1;
}
.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
}
.footer-links {
  display: flex; flex-wrap: wrap; gap: .5rem 1rem;
  list-style: none;
}
.footer-links a {
  color: var(--sage);
  font-size: .82rem;
}
.footer-links a:hover { color: #fff; }
.footer-copy { color: var(--sage); }

/* ── UTILITY ── */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.text-center { text-align: center; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
