/* ── Palette (from AVRA leaflet) ─────────────────────────────────────────────
   --navy   : #1b3f5c  deep water / AVRA brand
   --teal   : #1a6a8a  river teal / secondary
   --green  : #1e5c35  riparian green
   --earth  : #3d2b1f  riverbank earth
   --action : #1a4a7a  call-to-action blue
   ─────────────────────────────────────────────────────────────────────────── */

/* Base typography */
body, html {
  height: 100%;
  color: #1a1a1a;
  line-height: 1.7;
  background: #f8f8f6;
}
body, h1, h2, h3, h4, h5, h6 {
  font-family: 'Lato', sans-serif;
}
h1, h2, h3 {
  font-family: 'EB Garamond', Georgia, serif;
  font-weight: 600;
  letter-spacing: 0.02em;
}
p {
  font-family: 'Lato', sans-serif;
  font-size: 16px;
  text-align: left;
}
li {
  font-size: 16px;
  line-height: 1.8;
}

/* Navbar */
.w3-bar {
  background-color: #fff;
  border-bottom: 2px solid #1b3f5c;
}
.w3-bar a {
  font-size: 13px;
  letter-spacing: 0.08em;
  font-family: 'Lato', sans-serif;
}

/* Content panels */
.w3-content {
  background-color: transparent;
}
.w3-content .w3-container {
  padding-top: 16px;
  padding-bottom: 20px;
}

/* ── Accordion buttons ───────────────────────────────────────────────────────
   Main label: Lato uppercase, bold
   Sub-label (<em>): EB Garamond italic, lighter weight
   ─────────────────────────────────────────────────────────────────────────── */
.w3-btn.w3-block {
  font-family: 'Lato', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 14px 16px;
  transition: background-color 0.15s ease;
}
.w3-btn.w3-block em {
  font-family: 'EB Garamond', Georgia, serif;
  font-style: italic;
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0.02em;
  text-transform: none;
  opacity: 0.85;
  margin-left: 4px;
}

.btn-navy {
  background-color: #1b3f5c !important;
  color: #fff !important;
}
.btn-navy:hover { background-color: #132e44 !important; }

.btn-teal {
  background-color: #1a6a8a !important;
  color: #fff !important;
}
.btn-teal:hover { background-color: #135470 !important; }

.btn-nature {
  background-color: #1e5c35 !important;
  color: #fff !important;
}
.btn-nature:hover { background-color: #174a2a !important; }

.btn-earth {
  background-color: #3d2b1f !important;
  color: #fff !important;
}
.btn-earth:hover { background-color: #2e2018 !important; }

.btn-action {
  background-color: #1a4a7a !important;
  color: #fff !important;
}
.btn-action:hover { background-color: #133a63 !important; }

/* Stats bar */
.w3-dark-grey {
  background-color: #1b3f5c !important;
}
.w3-dark-grey span.w3-xlarge {
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 2.2em;
  font-weight: 400;
}
.w3-dark-grey .w3-section {
  font-family: 'Lato', sans-serif;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.8);
}

/* Gallery heading */
#gallery h3 {
  font-family: 'EB Garamond', Georgia, serif;
  font-style: italic;
  font-weight: 400;
  font-size: 2em;
  letter-spacing: 0.05em;
  color: #1b3f5c;
}
#gallery p em {
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 1.1em;
  color: #555;
}

/* Contact heading */
#contact h3 {
  font-family: 'EB Garamond', Georgia, serif;
  font-style: italic;
  font-weight: 400;
  font-size: 2em;
  letter-spacing: 0.05em;
  color: #1b3f5c;
}

/* Hero text */
.hero-content {
  width: 90%;
  max-width: 680px;
  padding: 0 16px;
  box-sizing: border-box;
}
.hero-logo {
  margin-bottom: 20px;
}
.hero-headline {
  font-family: 'EB Garamond', Georgia, serif;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 2.4em;
  line-height: 1.3;
  color: #fff;
  margin: 0 0 18px;
  text-shadow: 0 2px 10px rgba(0,0,0,0.55);
}
.hero-headline span {
  display: block;
  font-style: italic;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0.03em;
  font-size: 0.55em;
  opacity: 0.95;
  margin-top: 4px;
}
.hero-sub {
  color: #fff;
  font-size: 1.05em;
  line-height: 1.6;
  margin: 0 auto 24px;
  text-shadow: 0 1px 6px rgba(0,0,0,0.55);
}
.hero-reasons {
  color: #fff;
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 1.6em;
  line-height: 1.3;
  margin: 0 auto 22px;
  text-align: center;
  text-shadow: 0 1px 6px rgba(0,0,0,0.6);
}
.hero-reasons strong {
  color: #f2c14e;
  font-weight: 600;
}
.hero-reasons span {
  display: block;
  font-family: 'Lato', sans-serif;
  font-size: 0.55em;
  font-style: italic;
  margin-top: 4px;
}
.hero-cta {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}
.hero-cta .w3-white {
  color: #1b3f5c !important;
}
@media only screen and (max-width: 600px) {
  .hero-headline { font-size: 1.7em; }
  .hero-sub { font-size: 0.95em; }
  .hero-reasons { font-size: 1.3em; }
}

/* USP strip */
.mission-strip {
  background-color: #1b3f5c;
  color: #fff;
  padding: 40px 0 36px;
  text-align: center;
}
.mission-title {
  font-family: 'EB Garamond', Georgia, serif;
  font-weight: 600;
  font-size: 1.1em;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #cfe3ee;
  margin: 0 0 14px;
}
.mission-text {
  max-width: 820px;
  margin: 0 auto;
  padding: 0;
  border: 0;
}
.mission-text p {
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 1.35em;
  line-height: 1.55;
  margin: 0;
}
.mission-text p::before { content: "\201C"; }
.mission-text p::after  { content: "\201D"; }
@media (max-width: 600px) {
  .mission-strip { padding: 32px 0 28px; }
  .mission-text p { font-size: 1.15em; }
}

.usp-strip {
  background-color: #f1efe8;
  border-bottom: 3px solid #1b3f5c;
  padding: 44px 0 40px;
}
.usp-stat {
  text-align: center;
  margin-bottom: 32px;
}
.usp-stat-num {
  display: block;
  font-family: 'EB Garamond', Georgia, serif;
  font-weight: 600;
  font-size: 3.2em;
  color: #1a4a7a;
  letter-spacing: 0.02em;
}
.usp-stat-label {
  display: block;
  font-family: 'Lato', sans-serif;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #555;
  margin-top: 6px;
}
.usp-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.usp-card {
  background: #fff;
  border: 1px solid #e2ded2;
  border-radius: 4px;
  padding: 22px 18px;
  text-align: center;
}
.usp-card i {
  font-size: 1.7em;
  color: #1a6a8a;
  margin-bottom: 10px;
  display: inline-block;
}
.usp-card h4 {
  font-family: 'EB Garamond', Georgia, serif;
  font-weight: 600;
  font-size: 1.15em;
  color: #1b3f5c;
  margin: 4px 0 8px;
}
.usp-card p {
  font-size: 13.5px;
  line-height: 1.55;
  color: #333;
  margin: 0;
  text-align: center;
}
@media only screen and (max-width: 900px) {
  .usp-grid { grid-template-columns: repeat(2, 1fr); }
}
@media only screen and (max-width: 500px) {
  .usp-grid { grid-template-columns: 1fr; }
  .usp-stat-num { font-size: 2.4em; }
}

/* Support AVRA strip */
.support-strip {
  padding: 44px 0 40px;
  border-bottom: 3px solid #1b3f5c;
}
.support-title {
  font-family: 'EB Garamond', Georgia, serif;
  font-weight: 600;
  color: #1b3f5c;
  text-align: center;
  margin: 0 0 8px;
}
.support-intro {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 28px;
  color: #444;
}
.support-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.support-card {
  border: 1px solid #e2ded2;
  border-radius: 4px;
  padding: 24px 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.support-card-main {
  border: 2px solid #1a4a7a;
}
.support-card i {
  font-size: 1.8em;
  color: #1a6a8a;
  margin-bottom: 8px;
}
.support-card h3 {
  font-family: 'EB Garamond', Georgia, serif;
  font-weight: 600;
  font-size: 1.3em;
  color: #1b3f5c;
  margin: 0 0 4px;
}
.support-card p {
  text-align: center;
  font-size: 14px;
  line-height: 1.55;
  color: #333;
  margin: 0 0 16px;
  flex-grow: 1;
}
.support-card p.support-price {
  flex-grow: 0;
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 1.6em;
  font-weight: 600;
  color: #1a4a7a;
  margin: 0 0 8px;
}
.support-price span {
  font-size: 0.55em;
  font-weight: 400;
  color: #555;
}
@media only screen and (max-width: 800px) {
  .support-grid { grid-template-columns: 1fr; }
}

/* Parallax */
.bgimg-1, .bgimg-2, .bgimg-3 {
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}
.bgimg-1 {
  background-image: linear-gradient(rgba(0,0,0,0.42), rgba(0,0,0,0.42)), url("../images/bgimg-1.jpg");
  min-height: 100%;
}
.bgimg-2 {
  background-image: linear-gradient(rgba(0,0,0,0.42), rgba(0,0,0,0.42)), url("../images/bgimg-2.jpg");
  min-height: 400px;
}
.bgimg-3 {
  background-image: linear-gradient(rgba(0,0,0,0.42), rgba(0,0,0,0.42)), url("../images/bgimg-3.jpg");
  min-height: 400px;
}
@media only screen and (max-device-width: 1600px) {
  .bgimg-1, .bgimg-2, .bgimg-3 {
    background-attachment: scroll;
    min-height: 400px;
  }
}

.w3-wide { letter-spacing: 10px; }
.w3-hover-opacity { cursor: pointer; }

/* Form cards (friend registration, login, membership management) */
.form-card {
  max-width: 560px;
  margin: auto;
  padding: 32px 36px;
  background: #fff;
  border-top: 4px solid #1b3f5c;
}
.form-card-narrow { max-width: 460px; }
.form-card-wide { max-width: 760px; }
.form-card h4 {
  font-family: 'EB Garamond', Georgia, serif;
  font-weight: 600;
  color: #1b3f5c;
  margin: 20px 0 10px;
  padding-bottom: 4px;
  border-bottom: 1px solid #e2ded2;
}
.form-logo {
  display: block;
  width: 230px;
  max-width: 75%;
  height: auto;
  margin: 0 auto 8px;
}
.form-card h3 {
  color: #1b3f5c;
  margin: 8px 0 4px;
}
.form-intro { margin: 0 0 22px; }
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 16px;
}
.form-field { margin-bottom: 16px; }
.form-field label {
  display: block;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 4px;
}
.form-field label span {
  font-weight: 400;
  color: #757575;
}
.form-field .w3-input, .form-field .w3-select {
  padding: 9px 10px;
  border-radius: 3px;
}
.form-field .w3-select { background: #fff; }
.form-field .w3-input:focus, .form-field .w3-select:focus {
  border-color: #1a6a8a !important;
  outline: none;
  box-shadow: 0 0 0 2px rgba(26,106,138,0.2);
}
.form-field textarea { resize: vertical; }
.bcc-members {
  border: 1px solid #ccc;
  border-radius: 3px;
  padding: 10px 14px 12px;
}
.bcc-members legend {
  font-size: 14px;
  font-weight: 700;
  padding: 0 4px;
}
.bcc-members legend span { font-weight: 400; color: #757575; }
.bcc-tools { margin: 0 0 8px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.bcc-count { font-size: 14px; color: #1b3f5c; margin-left: 4px; }
.bcc-group { margin-bottom: 6px; }
.bcc-group summary { cursor: pointer; padding: 4px 0; }
.form-field .bcc-group summary label { display: inline; font-size: 14px; margin: 0; }
.bcc-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 2px 14px;
  padding: 4px 0 6px 22px;
}
.form-field .bcc-list label {
  display: flex;
  gap: 6px;
  align-items: baseline;
  font-weight: 400;
  font-size: 14px;
  margin: 0;
  overflow-wrap: anywhere;
}
.bcc-list label em { color: #757575; }
.bcc-members .w3-check { top: 2px; flex-shrink: 0; }
.form-hint, .form-error, .form-footnote {
  font-size: 13px;
  margin: 4px 0 0;
}
.form-hint, .form-footnote { color: #757575; }
.form-hint ul {
  margin: 0;
  padding-left: 18px;
}
.form-hint li {
  font-size: 13px;
  line-height: 1.5;
}
.form-error { color: #b3261e; }
.form-footnote { margin-top: 18px; }
.form-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 20px;
  font-size: 15px;
  cursor: pointer;
}
.form-check .w3-check {
  top: 0;
  flex-shrink: 0;
}
@media only screen and (max-width: 600px) {
  .form-card { padding: 24px 18px; }
  .form-row { grid-template-columns: 1fr; }
}

/* Footer */
footer {
  border-top: 3px solid #1b3f5c;
}

/* Map page */
#map-container { margin-top: 60px; height: calc(100vh - 60px); }
#map { height: 100%; width: 100%; }
