/* =====================================
   RESET
===================================== */
*{
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

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

ul{
  list-style-position: outside;
}

:focus{
  outline: none;
}

/* =====================================
   DESIGN SYSTEM
===================================== */
:root{
  --paper: #f7f3e8;
  --surface: rgba(255,255,255,0.78);
  --surface-strong: rgba(255,255,255,0.90);

  --ink: #1f2933;
  --ink-soft: #2b3640;
  --muted: #4b5563;

  --line: rgba(0,0,0,0.10);
  --line-strong: rgba(0,0,0,0.14);

  --accent: #7c6f3d;
  --accent-ink: #ffffff;

  --max: 1100px;
  --max-wide: 1200px;

  --radius: 16px;
  --radius-sm: 12px;

  --shadow-sm: 0 8px 20px rgba(0,0,0,0.06);
  --shadow: 0 12px 30px rgba(0,0,0,0.08);
  --shadow-lg: 0 18px 44px rgba(0,0,0,0.12);

  --serif: "Georgia","Times New Roman",serif;
  --sans: system-ui,-apple-system,Segoe UI,Roboto,Helvetica,Arial,"Apple Color Emoji","Segoe UI Emoji";
}

/* =====================================
   BASE LAYOUT + TYPOGRAPHY
===================================== */
html{
  background: var(--paper);
}

body{
  font-family: var(--sans);
  color: var(--ink);
  line-height: 1.75;
  padding-top: 74px;
  min-height: 100vh;

  background-color: transparent;
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  background-attachment: scroll;

  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

p{
  color: var(--muted);
}

strong{
  color: var(--ink);
}

h1,
h2,
h3{
  font-family: var(--serif);
  color: var(--ink);
  letter-spacing: -0.2px;
}

h2{
  font-size: clamp(22px, 2.3vw, 30px);
  margin-bottom: 14px;
}

.section p{
  max-width: 70ch;
}

:focus-visible{
  outline: 3px solid rgba(124,111,61,0.45);
  outline-offset: 3px;
  border-radius: 10px;
}

@media (prefers-reduced-motion: reduce){
  *{
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}

/* =====================================
   PAGE BACKGROUNDS
===================================== */
body.page-home{
  background-image:
    linear-gradient(rgba(247,243,232,0.35), rgba(247,243,232,0.35)),
    url("../images/horse_background.png");
  background-size: cover;
  background-position: center;
}

body.page-schedule{
  background-image:
    linear-gradient(rgba(247,243,232,0.30), rgba(247,243,232,0.30)),
    url("../images/horse_background.png");
  background-size: contain;
  background-position: center;
}

body.page-speakers,
body.page-scouts,
body.page-register,
body.page-resources{
  background-image:
    linear-gradient(rgba(247,243,232,0.35), rgba(247,243,232,0.35)),
    url("../images/horse_background2.png");
  background-size: cover;
  background-position: center;
}

/* =====================================
   NAVBAR
===================================== */
.navbar{
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 74px;
  display: flex;
  justify-content: center;
  align-items: center;
  background: rgba(247,243,232,0.96);
  border-bottom: 1px solid var(--line-strong);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 999;
}

.navbar nav{
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  padding: 0 14px;
}

.navbar nav a{
  display: inline-block;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 700;
  padding: 10px 16px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.75);
  box-shadow: var(--shadow-sm);
  transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
}

.navbar nav a:hover{
  transform: translateY(-2px);
  background: rgba(255,255,255,0.92);
  box-shadow: var(--shadow);
}

.navbar nav a.active{
  background: var(--accent);
  border-color: rgba(124,111,61,0.85);
  color: var(--accent-ink);
  box-shadow: var(--shadow-lg);
}

.navbar nav a.btn{
  border-color: rgba(124,111,61,0.60);
}

/* =====================================
   HERO / PARALLAX
===================================== */
.parallax{
  min-height: 70vh;
  display: grid;
  place-items: center;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  position: relative;
}

.parallax::before{
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(0,0,0,0.62), rgba(0,0,0,0.36));
}

.parallax-home{
  background-image: url("../images/whiteswan_hero_home.jpg");
  background-attachment: fixed;
  background-position: center center;
  background-size: cover;
}

.parallax-schedule{
  background-image: url("../images/crowscoutshorse.jpg");
}

.parallax-speakers,
.parallax-scouts,
.parallax-register,
.parallax-resources{
  background-image: url("../images/whiteswan-painting-hero.png");
}

@media (max-width: 900px){
  .parallax,
  .parallax-home{
    background-attachment: scroll;
  }
}

.hero-inner{
  position: relative;
  text-align: center;
  color: #fff;
  padding: 28px 22px;
  max-width: var(--max);
}

.hero-title{
  font-family: var(--serif);
  font-size: clamp(34px, 5vw, 64px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.6px;
  color: #fff;
  text-shadow: 0 6px 22px rgba(0,0,0,0.55);
}

.hero-subtitle{
  margin-top: 10px;
  font-family: var(--sans);
  font-size: clamp(24px, 3vw, 38px);
  font-weight: 650;
  opacity: 0.96;
  text-shadow: 0 2px 12px rgba(0,0,0,0.45);
}

.hero-secondary{
  margin-top: 12px;
  opacity: 0;
  animation: heroFade 1.5s ease forwards;
  animation-delay: .6s;
}

.hero-meta{
  margin-top: 18px;
  font-family: var(--sans);
  font-size: 15px;
  letter-spacing: 0.35px;
  color: rgba(255,255,255,0.92);
  text-shadow: 0 2px 10px rgba(0,0,0,0.40);
}

@keyframes heroFade{
  from{
    opacity: 0;
    transform: translateY(10px);
  }
  to{
    opacity: 1;
    transform: translateY(0);
  }
}

/* =====================================
   HERO CTA BUTTONS
===================================== */
.hero-cta{
  margin-top: 24px;
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-cta a{
  display: inline-block;
  padding: 12px 22px;
  font-family: var(--sans);
  font-weight: 750;
  font-size: 14px;
  border-radius: 12px;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.hero-cta a.primary{
  background: var(--accent);
  color: #fff;
  border: 1px solid rgba(124,111,61,0.85);
  box-shadow: 0 12px 28px rgba(0,0,0,0.18);
}

.hero-cta a.primary:hover{
  transform: translateY(-3px);
  box-shadow: 0 16px 34px rgba(0,0,0,0.24);
}

.hero-cta a:not(.primary){
  background: rgba(255,255,255,0.86);
  color: var(--ink);
  border: 1px solid rgba(255,255,255,0.7);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.hero-cta a:not(.primary):hover{
  background: rgba(255,255,255,1);
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

/* =====================================
   SECTION WRAPPER
===================================== */
.section{
  width: min(var(--max), calc(100% - 36px));
  margin: 0 auto;
  padding: 56px 0;
}

.section h2{
  font-family: var(--serif);
}

.section p{
  color: var(--muted);
  margin-bottom: 14px;
}

/* =====================================
   GENERIC PANELS
===================================== */
.card,
.schedule-block,
.form,
.scout-bio,
.scout-photo{
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: var(--shadow);
}

/* =====================================
   GENERIC GRID
===================================== */
.grid{
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 18px;
  margin-top: 18px;
}

.card{
  grid-column: span 6;
  padding: 20px;
}

.card h3{
  font-family: var(--serif);
  margin-bottom: 8px;
}

@media (max-width: 900px){
  .card{
    grid-column: span 12;
  }
}

/* =====================================
   PAGE PANELS + HEADINGS
===================================== */
.page-home .section,
.page-register .section,
.page-scouts .section,
.page-speakers .speakers-section{
  background: rgba(255,255,255,0.55);
  padding: 60px 40px;
  border-radius: 16px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.page-home .section h2,
.page-scouts .section h2,
.page-speakers .speakers-section h2{
  text-align: center;
  margin-bottom: 10px;
}

.page-home .section h2::after,
.page-scouts .section h2::after,
.page-speakers .speakers-section h2::after{
  content: "";
  display: block;
  width: 120px;
  height: 2px;
  margin: 14px auto 28px auto;
  background: rgba(0,0,0,0.15);
}

/* =====================================
   HOME PAGE ABOUT
===================================== */
.page-home .section .card{
  max-width: 850px;
  margin: 20px auto 0 auto;
  font-size: 18px;
  line-height: 1.8;
}

/* =====================================
   SCHEDULE
===================================== */
.schedule-block{
  margin-top: 18px;
  padding: 20px;
}

.schedule-block ul{
  padding-left: 20px;
}

.schedule-block li{
  margin: 6px 0;
}

/* =====================================
   SCOUTS PAGE
===================================== */
.scout-list{
  margin-top: 32px;
  display: grid;
  gap: 28px;
}

.scout-row{
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  grid-template-areas: "bio photo";
  gap: 24px;
  max-width: 860px;
  margin: 0 auto;
  align-items: start;
}

.scout-row:nth-child(even){
  grid-template-columns: 320px minmax(0, 1fr);
  grid-template-areas: "photo bio";
}

.scout-bio{
  grid-area: bio;
  padding: 22px 24px;
  min-height: 420px;
  background: rgba(255,255,255,0.42);
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: var(--radius);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

.scout-photo{
  grid-area: photo;
  width: 320px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.scout-photo img{
  width: 100%;
  max-width: 320px;
  height: 420px;
  object-fit: cover;
  display: block;
  border-radius: var(--radius);
  border: 1px solid rgba(0,0,0,0.10);
  box-shadow: var(--shadow-sm);
}

.photo-caption{
  font-size: 12px;
  color: #555;
  text-align: center;
  margin-top: 6px;
  line-height: 1.4;
  font-style: italic;
  max-width: 280px;
}

@media (max-width: 900px){
  .scout-row,
  .scout-row:nth-child(even){
    grid-template-columns: 1fr;
    grid-template-areas:
      "photo"
      "bio";
    gap: 16px;
    max-width: 520px;
  }

  .scout-photo{
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
  }

  .scout-bio{
    min-height: auto;
  }
}

/* =====================================
   SPEAKERS PAGE
===================================== */
.speakers-section{
  max-width: 1100px;
  margin: 0 auto;
  padding: 56px 20px 90px 20px;
}

.speakers-grid{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
  margin-top: 30px;
  align-items: start;
}

.speaker-card{
  display: flex;
  flex-direction: column;
  height: 100%;
  background: rgba(255,255,255,0.82);
  padding: 2rem;
  border-radius: 18px;
  text-align: center;
  border: 1px solid rgba(0,0,0,0.08);
  box-shadow: 0 10px 24px rgba(0,0,0,0.08);
}

.speaker-card img{
  width: 260px;
  height: 260px;
  object-fit: cover;
  border-radius: 16px;
  margin: 0 auto 18px auto;
  box-shadow: 0 10px 24px rgba(0,0,0,0.12);
}

.speaker-card h3{
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 800;
  margin-top: 14px;
  margin-bottom: 12px;
  line-height: 1.25;
}

.speaker-card p{
  flex-grow: 1;
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.75;
  color: #333;
  margin: 0 auto;
  max-width: 52ch;
}

@media (max-width: 800px){
  .speakers-grid{
    grid-template-columns: 1fr;
  }
}

/* =====================================
   FORMS
===================================== */
.form{
  max-width: 760px;
  margin: 0 auto;
  padding: 24px;
}

.form-wrapper{
  width: 100%;
  max-width: var(--max);
  margin: 40px auto 0 auto;
  padding: 22px;
  background: rgba(255,255,255,0.80);
  backdrop-filter: blur(4px);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}

label{
  font-family: var(--sans);
  font-weight: 800;
  display: block;
  margin: 10px 0 6px 0;
  color: var(--ink);
}

input,
textarea{
  width: 100%;
  padding: 12px 12px;
  border-radius: 10px;
  border: 1px solid rgba(0,0,0,0.14);
  margin-bottom: 14px;
  font-family: var(--sans);
  font-size: 15px;
  background: rgba(255,255,255,0.92);
  box-shadow: inset 0 1px 0 rgba(0,0,0,0.03);
}

input:focus,
textarea:focus{
  border-color: rgba(124,111,61,0.75);
  box-shadow: 0 0 0 4px rgba(124,111,61,0.18);
}

textarea{
  min-height: 140px;
}

button{
  width: 100%;
  padding: 13px 14px;
  border-radius: 12px;
  border: 1px solid rgba(124,111,61,0.85);
  background: var(--accent);
  color: #fff;
  font-family: var(--sans);
  font-weight: 850;
  letter-spacing: 0.2px;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(0,0,0,0.16);
  transition: transform .16s ease, box-shadow .16s ease, opacity .16s ease;
}

button:hover{
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(0,0,0,0.20);
}

button:active{
  transform: translateY(0);
  opacity: 0.98;
}

/* =====================================
   REGISTER PAGE
===================================== */
.tour-notice{
  max-width: var(--max);
  margin: 25px auto 35px auto;
  padding: 18px 22px;
  background: rgba(255,255,255,0.85);
  border-left: 6px solid #8b0000;
  border-radius: var(--radius-sm);
  font-size: 16px;
  line-height: 1.6;
  box-shadow: 0 6px 18px rgba(0,0,0,0.15);
}

.page-register .tour-notice{
  margin-top: 18px;
}

.page-register .section{
  box-shadow: var(--shadow-sm);
}

.page-register .section p:first-of-type{
  font-size: 18px;
  max-width: var(--max);
  margin: 0 auto 18px auto;
  line-height: 1.6;
}

/* =====================================
   FOOTER
===================================== */
.site-footer{
  text-align: center;
  padding: 40px 20px;
  background: transparent;
  color: #ddd;
  border-top: 1px solid rgba(255,255,255,0.15);
}

.footer-logos{
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.footer-logos img{
  height: 60px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
  opacity: 0.9;
}

.site-footer p{
  font-size: 14px;
  margin: 0;
}