/* ============================================
   SERVICE DAWG NATION — style.css v1
   Color palette:
     --navy:   #1a2744  (deep patriotic navy)
     --red:    #c0392b  (American red)
     --cream:  #f5f0e8  (aged parchment)
     --tan:    #d4b896  (warm tan accent)
     --white:  #ffffff
     --dark:   #111827
   Fonts:
     Bebas Neue — display/headings
     Lora       — body serif / quotes
     Source Sans 3 — UI / labels
   ============================================ */

:root {
  --navy:   #1a2744;
  --navy-light: #243459;
  --red:    #c0392b;
  --red-dark: #962d22;
  --cream:  #f5f0e8;
  --tan:    #d4b896;
  --white:  #ffffff;
  --dark:   #111827;
  --text:   #2d2d2d;
  --text-muted: #666;

  --font-display: 'Bebas Neue', sans-serif;
  --font-body:    'Lora', Georgia, serif;
  --font-ui:      'Source Sans 3', sans-serif;

  --radius: 6px;
  --shadow: 0 4px 24px rgba(0,0,0,0.13);
  --transition: 0.25s ease;
}

/* ---- RESET ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--cream);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ---- CONTAINER ---- */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- BUTTONS ---- */
.btn {
  display: inline-block;
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 1rem;
  padding: 14px 32px;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background var(--transition), color var(--transition), transform var(--transition);
  text-align: center;
  min-height: 50px;
  line-height: 1.2;
}
.btn-primary {
  background: var(--red);
  color: var(--white);
  border: 2px solid var(--red);
}
.btn-primary:hover {
  background: var(--red-dark);
  border-color: var(--red-dark);
  transform: translateY(-2px);
}
.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--white);
}
.btn-outline:hover {
  background: var(--white);
  color: var(--navy);
  transform: translateY(-2px);
}

/* ---- SECTION COMMON ---- */
.section { padding: 80px 0; }
.section-label {
  font-family: var(--font-ui);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 10px;
}
.section-label.light { color: var(--tan); }
.section-heading {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 6vw, 3.8rem);
  line-height: 1.05;
  color: var(--navy);
  margin-bottom: 36px;
  letter-spacing: 0.02em;
}
.section-heading.light { color: var(--white); }


/* ======================================================
   NAV
====================================================== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(26,39,68,0.97);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 2px solid var(--red);
}
.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.nav-logo-img {
  height: 58px;
  width: auto;
}
.nav-links {
  display: flex;
  gap: 28px;
  align-items: center;
}
.nav-links a {
  font-family: var(--font-ui);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--cream);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: color var(--transition);
}
.nav-links a:hover { color: var(--tan); }
.nav-links .nav-cta {
  background: var(--red);
  color: var(--white);
  padding: 8px 20px;
  border-radius: var(--radius);
}
.nav-links .nav-cta:hover {
  background: var(--red-dark);
  color: var(--white);
}
.nav-hamburger {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.6rem;
  cursor: pointer;
  padding: 8px;
}
.nav-mobile {
  display: none;
  flex-direction: column;
  background: var(--navy);
  padding: 16px 24px 20px;
  gap: 4px;
}
.nav-mobile.open { display: flex; }
.nav-mobile a {
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 1rem;
  color: var(--cream);
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  letter-spacing: 0.05em;
}

@media (max-width: 720px) {
  .nav-links { display: none; }
  .nav-hamburger { display: block; }
}

/* HERO IMAGE: mobile framing handled via object-position only */
@media (max-width: 640px) {
  .hero-bg-img {
    object-position: center center;
  }
}


/* ======================================================
   HERO
====================================================== */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 68px; /* nav height */
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  /* DESKTOP: wooden-flag.jpg (landscape) fills well */
  /* MOBILE: wooden-flag-mobile.jpg (portrait crop) used via CSS below */
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    rgba(26,39,68,0.55) 0%,
    rgba(26,39,68,0.42) 60%,
    rgba(192,57,43,0.18) 100%
  );
}
.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 60px 24px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  flex: 1;
  justify-content: center;
}
.hero-logo {
  width: clamp(240px, 50vw, 420px);
  height: auto;
  border-radius: 0;
  /* Logo is now transparent PNG - no blend mode needed */
  filter: drop-shadow(0 4px 24px rgba(0,0,0,0.4));
}
.hero-tagline {
  font-family: var(--font-body);
  font-style: italic;
  font-size: clamp(1.1rem, 3vw, 1.45rem);
  color: var(--cream);
  max-width: 520px;
  line-height: 1.55;
  opacity: 0.92;
}
.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

/* Stat bar */
.hero-stat-bar {
  position: relative;
  z-index: 1;
  background: rgba(26,39,68,0.92);
  border-top: 3px solid var(--red);
  display: flex;
  justify-content: center;
  align-items: stretch;
  flex-wrap: wrap;
  padding: 20px 24px;
  gap: 0;
}
.hero-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 12px 36px;
}
.hero-stat-divider {
  width: 1px;
  background: rgba(255,255,255,0.15);
  align-self: stretch;
}
.stat-number {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 2.8rem);
  color: var(--tan);
  line-height: 1;
  letter-spacing: 0.03em;
}
.stat-label {
  font-family: var(--font-ui);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  margin-top: 4px;
  text-align: center;
}
@media (max-width: 600px) {
  .hero-stat-divider { display: none; }
  .hero-stat { padding: 10px 20px; }
  .hero-stat-bar { gap: 4px; }
}


/* ======================================================
   MISSION
====================================================== */
.mission { background: var(--cream); }
.mission-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}
.mission-text p {
  font-size: 1.05rem;
  margin-bottom: 18px;
  color: var(--text);
}
.mission-text strong { color: var(--navy); }
.mission-text em { color: var(--red-dark); font-style: italic; }
.mission-photo-wrap {
  position: relative;
}
.mission-photo {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 4px solid var(--navy);
}
.mission-photo-caption {
  font-family: var(--font-ui);
  font-size: 0.82rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: 10px;
  font-style: italic;
}
@media (max-width: 768px) {
  .mission-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  /* show photo first on mobile */
  .mission-photo-wrap { order: -1; }
}


/* ======================================================
   IMPACT
====================================================== */
.impact {
  background: var(--navy);
  position: relative;
  overflow: hidden;
}
.impact-bg-stripe {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 6px;
  background: repeating-linear-gradient(
    90deg,
    var(--red) 0px,
    var(--red) 40px,
    var(--white) 40px,
    var(--white) 80px,
    var(--navy) 80px,
    var(--navy) 120px
  );
}
.impact-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  margin-bottom: 56px;
}
.impact-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius);
  padding: 32px 24px;
  transition: background var(--transition);
}
.impact-card:hover { background: rgba(255,255,255,0.1); }
.impact-card-icon {
  font-size: 2rem;
  margin-bottom: 14px;
}
.impact-card h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--tan);
  letter-spacing: 0.04em;
  margin-bottom: 10px;
}
.impact-card p {
  font-family: var(--font-ui);
  font-size: 0.95rem;
  color: rgba(255,255,255,0.75);
  line-height: 1.6;
}
.impact-quote {
  border-left: 4px solid var(--red);
  padding: 24px 32px;
  background: rgba(192,57,43,0.1);
  border-radius: 0 var(--radius) var(--radius) 0;
  max-width: 800px;
  margin: 0 auto;
}
.impact-quote p {
  font-family: var(--font-body);
  font-style: italic;
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  color: var(--cream);
  line-height: 1.7;
  margin-bottom: 12px;
}
.impact-quote cite {
  font-family: var(--font-ui);
  font-size: 0.85rem;
  color: var(--tan);
  font-style: normal;
}


/* ======================================================
   PHOTOS
====================================================== */
.photos { background: var(--white); }
.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto;
  gap: 12px;
}
.photo-item {
  border-radius: var(--radius);
  overflow: hidden;
  background: #ddd;
}
.photo-item img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.photo-item:hover img { transform: scale(1.04); }
.photo-tall {
  grid-row: span 2;
}
.photo-tall img {
  height: 100%;
  min-height: 300px;
}
@media (max-width: 640px) {
  .photo-grid {
    grid-template-columns: 1fr 1fr;
  }
  .photo-tall { grid-row: span 1; }
  .photo-tall img { height: 200px; min-height: unset; }
  .photo-item img { height: 180px; }
}
@media (max-width: 420px) {
  .photo-grid { grid-template-columns: 1fr; }
  .photo-item img, .photo-tall img { height: 220px; min-height: unset; }
}


/* ======================================================
   HOW TO HELP
====================================================== */
.help { background: var(--cream); }
.help-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
}
.help-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px 28px;
  box-shadow: var(--shadow);
  border-top: 4px solid var(--navy);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.help-card-num {
  font-family: var(--font-display);
  font-size: 3rem;
  color: var(--red);
  line-height: 1;
  opacity: 0.25;
  letter-spacing: 0.02em;
}
.help-card h3 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--navy);
  letter-spacing: 0.03em;
}
.help-card p {
  font-family: var(--font-ui);
  font-size: 0.97rem;
  color: var(--text-muted);
  line-height: 1.6;
  flex: 1;
}
.help-card .btn { align-self: flex-start; margin-top: 6px; }


/* ======================================================
   CONTACT / DONATE
====================================================== */
.contact {
  position: relative;
  overflow: hidden;
  padding: 100px 0;
}
.contact-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.contact-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.contact-overlay {
  position: absolute;
  inset: 0;
  background: rgba(26,39,68,0.90);
}
.contact-inner {
  position: relative;
  z-index: 1;
  text-align: center;
}
.contact-sub {
  font-family: var(--font-ui);
  font-size: 1.05rem;
  color: rgba(255,255,255,0.75);
  margin-bottom: 40px;
  margin-top: -20px;
}
.donate-options {
  display: flex;
  gap: 28px;
  justify-content: center;
  flex-wrap: wrap;
}
.donate-card {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius);
  padding: 36px 32px;
  width: 280px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}
.donate-icon {
  font-size: 2.5rem;
}
.donate-card h3 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: var(--tan);
  letter-spacing: 0.04em;
}
.donate-handle {
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 1rem;
  color: var(--white);
}
.donate-note {
  font-family: var(--font-ui);
  font-size: 0.88rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.5;
}
.donate-card .btn { width: 100%; margin-top: 8px; }


/* ======================================================
   FOOTER
====================================================== */
.footer {
  background: var(--dark);
  padding: 48px 0 32px;
  border-top: 3px solid var(--red);
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
}
.footer-logo {
  height: 80px;
  width: auto;
  border-radius: 10px;
}
.footer-text p {
  font-family: var(--font-ui);
  font-size: 0.93rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.7;
}
.footer-text strong { color: var(--tan); }
.footer-text a {
  color: var(--tan);
  text-decoration: underline;
}
.footer-credit {
  font-family: var(--font-ui);
  font-size: 0.8rem;
  color: rgba(255,255,255,0.35);
  margin-top: 8px;
}
.footer-credit a {
  color: rgba(255,255,255,0.5);
  text-decoration: underline;
}
