/* Troop 803 site styles
   Palette: forest green #1F3D2E, deep green #142A1E, khaki #C9B896,
            cream #FAF6EC, gold #C89B3C, burgundy #7A2E2E, charcoal #2B2620 */

:root {
  --green-deep: #142A1E;
  --green: #1F3D2E;
  --green-mid: #2E5240;
  --khaki: #C9B896;
  --khaki-light: #E8DFC8;
  --cream: #FAF6EC;
  --gold: #C89B3C;
  --gold-light: #E0B75C;
  --burgundy: #7A2E2E;
  --charcoal: #2B2620;

  --shadow-sm: 0 4px 14px rgba(20, 42, 30, 0.10);
  --shadow: 0 12px 30px rgba(20, 42, 30, 0.16);
  --shadow-lg: 0 22px 50px rgba(20, 42, 30, 0.24);
  --radius: 14px;
  --radius-sm: 8px;

  --grad-gold: linear-gradient(135deg, #E0B75C 0%, #C89B3C 55%, #A97F27 100%);
  --grad-green: linear-gradient(160deg, #24462F 0%, #142A1E 100%);

  /* Subtle topographic contour texture used on deep-green surfaces */
  --topo: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240' viewBox='0 0 240 240'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='0.05' stroke-width='1.5'%3E%3Cpath d='M-20 60C40 20 90 90 140 60s90-40 140 0'/%3E%3Cpath d='M-20 110C40 70 90 140 140 110s90-40 140 0'/%3E%3Cpath d='M-20 160C40 120 90 190 140 160s90-40 140 0'/%3E%3Cpath d='M-20 210C40 170 90 240 140 210s90-40 140 0'/%3E%3C/g%3E%3C/svg%3E");
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--charcoal);
  background: var(--cream);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Fraunces', Georgia, serif;
  color: var(--green-deep);
  margin: 0 0 0.5em;
  line-height: 1.12;
  letter-spacing: -0.01em;
}

h2 { font-size: clamp(1.75rem, 3.2vw, 2.4rem); }
h3 { font-size: 1.3rem; }

p { margin: 0 0 1em; }

a { color: var(--green); }

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

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ---------- Header / Nav ---------- */
.site-header {
  background: rgba(250, 246, 236, 0.82);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid rgba(201, 184, 150, 0.6);
  position: sticky;
  top: 0;
  z-index: 50;
}

.site-header::after {
  content: "";
  display: block;
  height: 3px;
  background: var(--gold);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.7rem 1.5rem;
  max-width: 1120px;
  margin: 0 auto;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--green-deep);
  flex-shrink: 0;
}

.brand img {
  height: 50px;
  width: auto;
  filter: drop-shadow(0 3px 6px rgba(20,42,30,0.25));
  transition: transform 0.25s ease;
}

.brand:hover img { transform: rotate(-4deg) scale(1.04); }

.brand-text {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 700;
  font-size: 1.2rem;
  line-height: 1.05;
}

.brand-text span {
  display: block;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green-mid);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}

.nav-links a {
  position: relative;
  text-decoration: none;
  color: var(--charcoal);
  font-weight: 600;
  font-size: 0.92rem;
  padding: 0.35rem 0;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 0;
  background: var(--gold);
  transition: width 0.22s ease;
}

.nav-links a:hover { color: var(--green); }
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }
.nav-links a.active { color: var(--green); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.5rem;
  border-radius: 10px;
  font-weight: 700;
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-size: 0.92rem;
  letter-spacing: 0.01em;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.btn-gold {
  background: var(--gold);
  color: #fff;
  box-shadow: 0 6px 16px rgba(200, 155, 60, 0.28);
}

.btn-gold:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(200, 155, 60, 0.4);
}

.btn-outline {
  background: rgba(255,255,255,0.06);
  color: var(--cream);
  border: 2px solid rgba(250, 246, 236, 0.75);
}

.btn-outline:hover { background: rgba(255,255,255,0.16); transform: translateY(-2px); }

.btn-lg { padding: 0.85rem 1.9rem; font-size: 1rem; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 78vh;
  display: flex;
  align-items: flex-end;
  background-size: cover;
  background-position: center;
  color: var(--cream);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 90% at 15% 100%, rgba(20,42,30,0.85) 0%, rgba(20,42,30,0) 60%),
    linear-gradient(180deg, rgba(20,42,30,0.35) 0%, rgba(20,42,30,0.30) 45%, rgba(20,42,30,0.82) 100%);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--topo);
  opacity: 0.6;
  mix-blend-mode: overlay;
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 3.5rem 1.5rem;
  max-width: 1120px;
  margin: 0 auto;
  width: 100%;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 1rem;
}

.hero-eyebrow::before {
  content: "";
  width: 34px;
  height: 2px;
  background: var(--gold-light);
}

.hero-content h1 {
  color: var(--cream);
  font-size: clamp(2.2rem, 6vw, 4rem);
  max-width: 760px;
  margin-bottom: 0.6rem;
  text-shadow: 0 2px 30px rgba(0,0,0,0.35);
}

.hero-content p {
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  max-width: 600px;
  color: var(--khaki-light);
  margin-bottom: 1.6rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  align-items: center;
}

/* Entrance animation */
.hero-content > * {
  opacity: 0;
  transform: translateY(22px);
  animation: heroIn 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
}
.hero-content > *:nth-child(1) { animation-delay: 0.05s; }
.hero-content > *:nth-child(2) { animation-delay: 0.18s; }
.hero-content > *:nth-child(3) { animation-delay: 0.30s; }
.hero-content > *:nth-child(4) { animation-delay: 0.42s; }

@keyframes heroIn {
  to { opacity: 1; transform: translateY(0); }
}

.hero-small {
  min-height: 46vh;
  align-items: center;
  text-align: center;
}
.hero-small .hero-content { text-align: center; }
.hero-small .hero-eyebrow { justify-content: center; }
.hero-small .hero-eyebrow::after {
  content: "";
  width: 34px;
  height: 2px;
  background: var(--gold-light);
}
.hero-small h1 { margin: 0 auto; font-size: clamp(2rem, 5vw, 3.2rem); }

/* ---------- Sections ---------- */
section {
  padding: 4.5rem 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--burgundy);
  margin-bottom: 0.75rem;
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--gold);
}

.section-alt { background: linear-gradient(180deg, var(--khaki-light) 0%, #EFE7D2 100%); }

.section-deep {
  position: relative;
  background: var(--grad-green);
  color: var(--khaki-light);
  overflow: hidden;
}
.section-deep::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--topo);
  opacity: 0.9;
}
.section-deep .container { position: relative; z-index: 1; }
.section-deep h2, .section-deep h3 { color: var(--cream); }
.section-deep .eyebrow { color: var(--gold-light); }
.section-deep .eyebrow::before { background: var(--gold-light); }

.section-head {
  max-width: 660px;
  margin-bottom: 2.5rem;
}

.section-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
.section-head.center .eyebrow { justify-content: center; }

/* ---------- Two-column ---------- */
.two-col {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3.5rem;
  align-items: center;
}

@media (max-width: 800px) {
  .two-col { grid-template-columns: 1fr; gap: 2rem; }
}

.media-frame {
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  position: relative;
}
.media-frame img { border-radius: var(--radius); }
.media-frame::before {
  content: "";
  position: absolute;
  inset: -12px -12px auto auto;
  width: 78px;
  height: 78px;
  background: var(--gold);
  border-radius: 18px;
  transform: rotate(12deg);
  z-index: -1;
  opacity: 0.9;
}

/* ---------- Stats band ---------- */
.stats-band {
  background: var(--green-deep);
  padding: 2.5rem 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  text-align: center;
}
.stat {
  padding: 0.5rem 1rem;
  border-left: 1px solid rgba(232,223,200,0.16);
}
.stat:first-child { border-left: 0; }
.stat .stat-num {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 700;
  font-size: clamp(2.2rem, 4.5vw, 3.1rem);
  line-height: 1;
  color: var(--gold);
}
.stat .stat-label {
  margin-top: 0.5rem;
  color: var(--khaki-light);
  font-size: 0.86rem;
  letter-spacing: 0.05em;
}
@media (max-width: 640px) {
  .stat { border-left: 0; padding: 1rem; }
}

/* ---------- Badge / shield motif (event date chip) ---------- */
.badge-shape {
  clip-path: polygon(
    0% 12%, 8% 4%, 20% 0%, 80% 0%, 92% 4%, 100% 12%,
    100% 68%, 50% 100%, 0% 68%
  );
  background: var(--gold);
  color: var(--green-deep);
  padding: 0.85rem 0.7rem 1.4rem;
  text-align: center;
  min-width: 74px;
  flex-shrink: 0;
  box-shadow: 0 6px 14px rgba(200,155,60,0.4);
}

.badge-shape .badge-month {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.9;
}

.badge-shape .badge-day {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.9rem;
  font-weight: 700;
  line-height: 1;
}

/* ---------- Upcoming dates ---------- */
.event-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.1rem;
}

.event-card {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  background: var(--cream);
  border: 1px solid rgba(201,184,150,0.7);
  border-radius: var(--radius);
  padding: 1.1rem 1.3rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.event-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: var(--gold);
}

.event-card .event-info h3 {
  margin-bottom: 0.15rem;
  font-size: 1.1rem;
}

.event-card .event-info p {
  margin: 0;
  color: var(--green-mid);
  font-size: 0.9rem;
}

.event-empty {
  padding: 2rem;
  text-align: center;
  color: var(--green-mid);
  font-style: italic;
  grid-column: 1 / -1;
}

/* ---------- Full calendar (Events page) ---------- */
.cal-month + .cal-month { margin-top: 2.75rem; }

.cal-month-heading {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 1.35rem;
  color: var(--green-deep);
  margin-bottom: 1.25rem;
}

.cal-month-heading::after {
  content: "";
  flex: 1;
  height: 2px;
  background: linear-gradient(90deg, rgba(200,155,60,0.55), rgba(200,155,60,0));
}

/* ---------- Cards grid (resources) ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.4rem;
}

.resource-card {
  position: relative;
  background: var(--cream);
  border: 1px solid rgba(201,184,150,0.7);
  border-radius: var(--radius);
  padding: 1.6rem 1.5rem;
  text-decoration: none;
  color: var(--charcoal);
  display: block;
  overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  box-shadow: var(--shadow-sm);
}

.resource-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.resource-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}
.resource-card:hover::before { transform: scaleX(1); }

.resource-card h3 {
  font-size: 1.08rem;
  margin-bottom: 0.4rem;
  color: var(--green-deep);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
}

.resource-card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--green-mid);
}

.resource-card .arrow {
  color: var(--gold);
  font-weight: 700;
  transition: transform 0.2s ease;
}
.resource-card:hover .arrow { transform: translateX(4px); }

/* ---------- Explore Our Activities ---------- */
.activities {
  position: relative;
  background: var(--cream);
  overflow: hidden;
}
/* faint filled mountain-range watermark, bottom-left (per design reference) */
.activities::before {
  content: "";
  position: absolute;
  left: -30px;
  bottom: 0;
  width: 560px;
  height: 340px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='520' height='320' viewBox='0 0 520 320'%3E%3Cpath d='M0 320 L90 170 L180 320 Z M140 320 L250 150 L360 320 Z M300 320 L400 175 L520 320 Z' fill='%231F3D2E'/%3E%3Cpath d='M40 320 L170 120 L300 320 Z M250 320 L380 140 L510 320 Z' fill='%232E5240'/%3E%3Cpath d='M170 120 L146 165 L159 158 L170 172 L182 156 L195 165 Z M380 140 L358 178 L370 171 L380 185 L391 170 L402 179 Z' fill='%23FAF6EC'/%3E%3Cpath d='M110 250 L92 288 L128 288 Z M110 270 L86 308 L134 308 Z M430 262 L416 292 L444 292 Z M430 278 L412 312 L448 312 Z' fill='%23142A1E'/%3E%3Cpath d='M104 306 h12 v14 h-12 Z M424 310 h12 v10 h-12 Z' fill='%236B4A2B'/%3E%3C/svg%3E") no-repeat bottom left;
  background-size: contain;
  opacity: 0.18;
  pointer-events: none;
}
.activities .container { position: relative; z-index: 1; }

.activity-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.4rem;
}

.activity-card {
  background: var(--cream);
  border: 1px solid rgba(201,184,150,0.7);
  border-radius: var(--radius);
  padding: 2rem 1.5rem 1.75rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.activity-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: var(--gold);
}

/* Signature element: embroidered merit-badge patch.
   A gold "rope" ring with a stitched inner edge, holding the activity glyph. */
.activity-icon {
  position: relative;
  width: 84px;
  height: 84px;
  margin: 0 auto 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 38%, #FCF9F0 0%, #F0E7CF 100%);
  color: var(--green);
  /* rope ring + soft outer lift */
  box-shadow:
    0 0 0 3px var(--gold),
    0 0 0 5px rgba(200,155,60,0.28),
    var(--shadow-sm);
}
.activity-card:hover .activity-icon {
  box-shadow:
    0 0 0 3px var(--gold-light),
    0 0 0 6px rgba(200,155,60,0.35),
    var(--shadow);
}
.activity-icon svg { position: relative; width: 42px; height: 42px; }

.activity-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

.activity-card p {
  font-size: 0.9rem;
  color: var(--green-mid);
  margin-bottom: 1rem;
}

.learn-more {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  text-decoration: none;
}
.learn-more:hover { color: var(--green); }
.learn-more .arrow { transition: transform 0.2s ease; }
.learn-more:hover .arrow { transform: translateX(3px); }

/* ---------- Calendar layout (events + photo) ---------- */
.calendar-layout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3rem;
  align-items: start;
}
@media (max-width: 860px) {
  .calendar-layout { grid-template-columns: 1fr; gap: 2rem; }
}

.calendar-layout .event-list { grid-template-columns: 1fr; }

.events-photo {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  min-height: 320px;
  display: flex;
  align-items: flex-end;
  background-size: cover;
  background-position: center;
}
.events-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20,42,30,0) 40%, rgba(20,42,30,0.8) 100%);
}
.events-photo .events-photo-cta {
  position: relative;
  z-index: 1;
  margin: 1.4rem;
}
.events-photo .members-note {
  margin: 0.7rem 0 0;
  color: var(--gold-light);
  font-weight: 600;
  font-size: 0.82rem;
}

/* ---------- Map ---------- */
.map-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 3px solid rgba(201,184,150,0.35);
}

.map-wrap iframe {
  width: 100%;
  height: 360px;
  border: 0;
  display: block;
}

.meet-details {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.5rem;
}

.meet-detail {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(232,223,200,0.18);
  border-radius: var(--radius-sm);
  padding: 1rem 1.2rem;
  min-width: 150px;
}

.meet-detail .label {
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold-light);
  margin-bottom: 0.3rem;
}

.meet-detail .value {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.2rem;
  color: var(--cream);
}

/* ---------- Photo grid ---------- */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.1rem;
  margin: 2.5rem 0 0.5rem;
}

.photo-grid img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.photo-grid img:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-lg);
}

/* ---------- Prose (article-style pages) ---------- */
.lede {
  font-size: 1.2rem;
  color: var(--green-mid);
  max-width: 720px;
}

/* ---------- Letter (Scoutmaster page) ---------- */
.letter {
  position: relative;
  background: var(--cream);
  border: 1px solid rgba(201,184,150,0.7);
  border-radius: var(--radius);
  padding: 3rem;
  box-shadow: var(--shadow-lg);
  max-width: 740px;
  margin: 0 auto;
}
.letter::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 6px;
  border-radius: var(--radius) var(--radius) 0 0;
  background: var(--gold);
}

.letter p { margin-bottom: 1.15rem; }
.letter p:first-of-type::first-letter {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 3rem;
  font-weight: 700;
  float: left;
  line-height: 0.8;
  padding: 0.35rem 0.6rem 0 0;
  color: var(--green);
}

.letter .signoff {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(201,184,150,0.7);
  font-family: 'Fraunces', Georgia, serif;
}

.smoke-photo {
  border-radius: 50%;
  width: 168px;
  height: 168px;
  object-fit: cover;
  border: 5px solid var(--cream);
  box-shadow: var(--shadow), 0 0 0 3px var(--gold);
  margin-bottom: 1rem;
}

/* ---------- Footer ---------- */
footer {
  position: relative;
  background: var(--green-deep);
  color: var(--khaki-light);
  padding: 3.5rem 0 1.75rem;
  overflow: hidden;
}
footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--topo);
  opacity: 0.9;
}
footer .container { position: relative; z-index: 1; }
footer::after {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--gold);
}

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

footer h4 {
  color: var(--cream);
  font-size: 0.95rem;
  margin-bottom: 0.85rem;
}

footer a {
  color: var(--khaki-light);
  text-decoration: none;
  display: block;
  margin-bottom: 0.45rem;
  font-size: 0.9rem;
  transition: color 0.15s ease, transform 0.15s ease;
}

footer a:hover { color: var(--gold-light); transform: translateX(3px); }

.footer-brand { display: flex; align-items: center; gap: 0.7rem; margin-bottom: 0.75rem; }
.footer-brand img { height: 44px; width: auto; }
.footer-brand span {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--cream);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 1.3rem;
  font-size: 0.82rem;
  color: var(--khaki);
  text-align: center;
}

@media (max-width: 760px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 1.75rem; }
}

/* ---------- Scroll reveal ---------- */
.js-reveal .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2,0.7,0.2,1);
  will-change: opacity, transform;
}
.js-reveal .reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js-reveal .reveal { opacity: 1; transform: none; }
  /* Hero content is hidden by default only so it can animate in; with motion
     off there's no animation to reveal it, so force it visible. */
  .hero-content > * { opacity: 1 !important; transform: none !important; }
}

/* ---------- Instagram gallery ---------- */
.insta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
}

.insta-tile {
  display: block;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.insta-tile:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.insta-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.insta-tile:hover img { transform: scale(1.05); }

.insta-cta {
  text-align: center;
  margin-top: 2rem;
}

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.mt-2 { margin-top: 2rem; }

.login-short { display: none; }

@media (max-width: 700px) {
  section { padding: 3rem 0; }
  .nav-wrap { flex-wrap: wrap; }
  .nav-links { order: 3; width: 100%; gap: 0.9rem 1.2rem; }
  .letter { padding: 1.75rem; }
  .letter p:first-of-type::first-letter { font-size: 2.4rem; }
  .login-full { display: none; }
  .login-short { display: inline; }
}
