
*{box-sizing:border-box}
html:focus-within{scroll-behavior:smooth}
body.theme{margin:0;font-family:var(--font-sans);color:var(--text-primary);background:#fff;line-height:var(--lh-body)}
:root{--bg-dark:#000;--bg-darker:#111;--bg-light:#f5f5f7;--text-primary:#1d1d1f;--text-secondary:#6e6e73;--accent:#0071e3;--card:#fff;--border:#d2d2d7;--font-sans:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Inter,Helvetica,Arial,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol",sans-serif;--fs-hero:clamp(42px,6vw,64px);--fs-h1:clamp(32px,4.5vw,48px);--fs-h2:clamp(24px,3.5vw,32px);--fs-body:17px;--lh-body:1.6;--space-1:8px;--space-2:16px;--space-3:24px;--space-4:32px;--space-6:48px;--space-8:64px;--radius:18px;--shadow-soft:0 6px 30px rgba(0,0,0,.08)}

.container {
  padding-left: 1rem;
  padding-right: 1rem;
}

.container.narrow {
  max-width: 720px;
  margin: 0 auto;
}

.band {
  margin-top: 0;
  /*padding:var(--space-8) 0*/
  padding: 60px 16px;
}

.band.page-hero {
  text-align: center;
}

.band h1, .band h2 {
  margin-bottom: 16px;
  line-height: 1.3;
}

.band p {
  margin-bottom: 20px;
  line-height: 1.6;
}

.band.light {
  background:var(--bg-light)
}

.band.dark {
  background-color: #1b1b1b;
  color: #fff;
  padding: 60px 16px; /* consistent with other bands */
}

.band.dark h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 32px;
}

.band.dark a {
  color: #ffffff;          /* white link */
  text-decoration: underline;
}

.band.dark a:hover {
  color: #ffd966;          /* subtle highlight on hover */
}

.prose p {
  /*font-size:var(--fs-body);color:var(--text-primary)*/
  font-size: 1rem;
}

/* Centered text helper */
.center-text {
  text-align: center;
  margin-top: 20px;
}

/* Photo grid (desktop) */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 16px;
}

/* Photo cards */
.photo-card img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  display: block;
  box-shadow: 0 6px 16px rgba(0,0,0,0.3); /* subtle shadow for contrast on dark bg */
  transition: transform 0.2s ease;  
}

/* Base header layout */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
}

/* Brand */
.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-weight: bold;
  color: #000;
}

.site-header .brand {
    display: flex;
    flex-direction: column;   /* stack logo above text */
    align-items: center;      /* center horizontally */
    text-align: center;
    text-decoration: none;       
    font-weight:bold;
    letter-spacing:.2px;
    color: #000;
    text-decoration:none;
    gap: 8px;
}

.site-logo {
  height: 40px;
  width: auto;
}

.site-logo {
  height: 40px;
  width: auto;
}

/* Navigation */
.nav ul {
  list-style: none;
  display: flex;
  gap: 20px;
  margin: 0;
  padding: 0;
}

.nav a {
  text-decoration: none;
  color: #000;
  font-weight: 500;
}

/* Toggle button hidden on desktop */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
}

/* hide menu initially */
#navmenu {
  display: flex;
  list-style: none;
  padding: 0;
}

/* show when active */
.nav.open #navmenu {
  display: block;
}

.nav a.is-active{color:var(--accent)}
.nav .btn{margin-left:6px}

.hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;     /* vertical */
  justify-content: center; /* horizontal */
}

.hero.dark{color:#fff}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 720px;
  padding: 24px;
  text-align: center;
  color: #fff;
}

.hero h1 {
  font-size: clamp(1.8rem, 4vw, 3rem); /* responsive font */
  margin-bottom: 1rem;
  text-align: center;    /* centers text itself */
}

.hero p {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  margin-bottom: 2rem;
  max-width: 600px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
}

/* Background image */
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 65%;
  filter: brightness(1.08);
}

.hero-content {
  position: relative;
  z-index: 2;
}

/* Dark overlay */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  z-index: 1;
} 

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.22);
}

/* Logo */
.hero-logo {
  display: block;
  margin: 0 auto 20px;
  max-width: 525px;   /* ⬅ increase size */
  width: 100%;
  height: auto;
}

.overlay-img {
  position: absolute;
  top: 0px;
  right: 10px;
  width: 600px;
}

.justify-text {
  text-align: justify;
}

.cta-row {
  display:flex;
  gap:12px;
  justify-content:center;
  flex-wrap:wrap
}

.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:12px 18px;border-radius:999px;border:1px solid transparent;font-weight:600;transition:all .2s ease}
.btn-accent{background:var(--accent);color:#fff}
.btn-accent:hover{filter:brightness(1.05)}
.btn-ghost{background:transparent;border-color:#fff;color:#fff}
.btn-ghost:hover{background:rgba(255,255,255,.12)}

/* Stats section */
.stats {
  text-align: center;
}

.stat-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  padding: 0;
  margin: 0;
  text-align: center;
}

/* Individual stat */
.stat-grid li {
  border-bottom: 1px solid #eee;
}

.stat {
  display: block;
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.2;
}

.label {
  display:block;
  color:var(--text-secondary)
}

/* Card grid */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 24px;
}

/* Card */
.card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative; /* REQUIRED */
}

/* Card image */
.card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

/* Card content spacing */
.card h3 {
  margin: 16px 16px 8px;
}

.card p {
  margin: 0 16px 16px;
  flex-grow: 1;  
}

/* Link */
.card .link {
  margin: 0 16px 20px;
  font-weight: 600;
  align-self: flex-start
}

/* Stretched link */
.stretched-link::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
}

.feature {
  padding: 60px 16px;
}

/* Grid layout */
.feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

/* Image */
.feature-media img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  display: block;
}

.feature-copy a {
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-skip-ink: auto;
}

/* Text */
.feature-copy h2 {
  margin-bottom: 16px;
}

.feature-copy p {
  line-height: 1.6;
  margin-bottom: 20px;
}

/* Base callout styles */
.callout {
  padding: 60px 16px;
  background-color: #f9f9f9; /* light background for readability */
  text-align: center;
}

.callout h2 {
  font-size: 2rem;
  margin-bottom: 20px;
}

.callout p {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 16px;
}

/* Optional: make strong labels stand out */
.callout strong {
  font-weight: 600;
  color: #333;
}

.page-hero {
  background:linear-gradient(180deg,#fafafa 0,#fff 100%)
  margin-bottom: 0;
  padding-bottom: 0rem;  /* adjust as needed */  
}

.page-hero h1 {
  font-size:var(--fs-h1);margin:0 0 var(--space-2);
  /*white-space: nowrap;*/
}

.page-hero p {
  font-size:20px;color:var(--text-secondary);
  margin-bottom: 0;
}

.site-footer {
  background-color: #1b1b1b; /* dark footer */
  color: #fff;
  padding: 40px 20px;
  font-family: sans-serif;
}

.site-footer a {
  color: #f1f1f1;
  text-decoration: none;
  transition: color 0.2s ease;
}

.site-footer a:hover {
  color: #ffd700; /* accent color on hover */
}

/* Footer grid */
.footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

/* Left column: branding */
.footer-grid > div:first-child {
  flex: 1 1 250px;
}

.footer-grid strong {
  display: block;
  font-size: 1.2rem;
  margin-bottom: 8px;
}

/* Center column: links menu */
.footer-grid nav {
  flex: 1 1 250px;
}

.footer-grid nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  justify-content: center; /* center menu horizontally */
  gap: 24px;
}

.footer-grid nav ul li a {
  font-size: 0.95rem;
}

/* Footer nav */
.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.site-footer li {
  margin-bottom: 8px;
}

/* Legal text */
.footer-legal {
  flex: 1 1 250px;
  text-align: right;
  font-size: 0.85rem;
  opacity: 0.8;
}

@media (hover: hover) {
  .card:hover {
    transform: translateY(-4px);
    transition: transform 0.2s ease;
  }

  /* Centered caption */
  .center-text {
    text-align: center;
    margin-top: 24px;
    font-style: italic;
    opacity: 0.85;
    font-size: 0.95rem;
  }
}

/* 🔥 Mobile styles */
@media (max-width: 768px) {
  .nav {
    position: relative;
  }

  .nav-toggle {
    display: block;
  }

  /* menu hidden by default */
  #navmenu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 100%;         /* full width */    
    background: #fff;
    flex-direction: column;
    border-top: 1px solid #ddd;
    z-index: 1000;       /* ensures menu appears above content */
    margin: 0;
    padding: 0;
    box-sizing: border-box;  /* ensures padding doesn't break width */
  }

  /* show when JS adds class */
  .nav.open #navmenu {
    display: flex;
  }

  #navmenu li {
    border-bottom: 1px solid #eee;
    width: 100%;             /* full width */    
  }

  #navmenu a {
    display: block;
    padding: 14px 16px;
    width: 100%;             /* full width */
    box-sizing: border-box;    
  }

  .hero {
    min-height: 50vh;
  }

  .hero-copy {
    padding: 16px;
  }

  .hero-logo {
    max-width: 300px;
  }

  .hero-bg {
    min-height: 50vh; /* less height on phones */
  }

  .hero-bg img {
    object-position: center 80%; /* avoids chopping heads */
  }

  .stat-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .stat {
    font-size: 2rem;
  }

  .label {
    font-size: 0.95rem;
  }

  .card-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .card img {
    height: 180px;
  }

  .feature {
    padding: 40px 16px;
  }

  .feature-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .feature-copy {
    text-align: center;
  }

  .feature-copy .btn {
    margin: 0 auto;
  }

  .callout {
    padding: 40px 16px;
  }

  .callout h2 {
    font-size: 1.5rem;
  }

  .callout p {
    font-size: 0.95rem;
    line-height: 1.5;
  }

  .band {
    padding: 40px 16px;
  }

  .band h1 {
    font-size: 1.8rem;
  }

  .band h2 {
    font-size: 1.6rem;
  }

  .prose p {
    font-size: 0.95rem;
    line-height: 1.5;
  }

  /* Photo grid stacks vertically */
  .photo-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .footer-grid {
    display: grid;
    /* Adjust the first column to fit content, then add a fixed gap */
    grid-template-columns: auto 1fr auto; 
    gap: 40px; /* This controls the exact spacing between items */
    align-items: start;
  }

  .site-footer nav ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .footer-legal {
    text-align: center;
    margin-top: 16px;
  }

  .footer-grid nav ul {
    flex-direction: column;
    gap: 12px;
  }

  .center-text {
    font-size: 0.9rem;
  }  
}

/*
@media (max-width: 980px) {
  .card-grid,.stats .stat-grid{grid-template-columns:1fr 1fr}.feature .feature-grid{grid-template-columns:1fr}
}

@media (max-width: 640px) {
  .card-grid,.stats .stat-grid{grid-template-columns:1fr}.site-header{position:static}.nav-toggle{display:inline-block}
}*/


@media (min-width: 768px) and (max-width: 1024px) {
  #navmenu { 
    position: relative; 
    display: flex; 
    flex-direction: row; 
    width: auto; 
  }
  .nav-toggle { 
    display: none; 
  }
}

@media (min-width: 600px) and (max-width: 1024px) {
  .stat-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.75rem;
  }

  .stat {
    font-size: 2.5rem;
  }

  .label {
    font-size: 0.95rem;
  }

  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  } 

  .feature-grid {
    gap: 32px;
  }

  .photo-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }  

  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-grid nav ul {
    justify-content: center;
    flex-wrap: wrap;
  }

  .footer-legal {
    text-align: center;
  }  
}