:root {
  --bg: linear-gradient(135deg, #e3f2fd 0%, #f3e5f5 100%);
  --card: #ffffff;
  --accent: #00796b;
  --accent-light: #4db6ac;
  --muted: #546e7a;
  --max-width: 1200px;
  --radius: 16px;
  --shadow: 0 10px 40px rgba(0,121,107,0.15);
  --shadow-hover: 0 15px 50px rgba(0,121,107,0.25);
}

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

html, body { 
  min-height: 100%; 
  background: var(--bg); 
  font-family: Inter, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif; 
  color: #263238; 
  scroll-behavior: smooth;
  line-height: 1.7;
  overflow-x: hidden;
  font-size: 16px;
}

/* Container */
.container { 
  max-width: var(--max-width); 
  margin: 0 auto; 
  padding: 1rem; 
}

main {
  padding-top: 96px;
}

[id] {
  scroll-margin-top: 120px;
}

/* Header */
.site-header { 
  position: fixed; 
  top: 0; 
  left: 0; 
  right: 0; 
  width: 100%;
  background: linear-gradient(135deg, #1a1a1a 0%, #252525 100%);
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
  z-index: 1000; 
  transition: all 0.25s ease;
}

.site-header.scrolled {
  background: linear-gradient(135deg, #0d0d0d 0%, #1a1a1a 100%);
  box-shadow: 0 12px 32px rgba(0,0,0,0.5);
}

.site-header:hover {
  box-shadow: 0 12px 32px rgba(0,0,0,0.5);
}

.header-inner { 
  display: flex; 
  align-items: center; 
  justify-content: space-between; 
  padding: 1.5rem 1.5rem; 
  gap: 2rem;
}

.brand { 
  display: flex; 
  align-items: center; 
  gap: 1.2rem; 
  text-decoration: none; 
  color: white; 
  transition: transform 0.3s ease;
  flex: 1;
}

.brand:hover {
  transform: scale(1.02);
}

.logo {
  width: 65px;
  height: 65px;
  border-radius: 10px;
  background: linear-gradient(135deg, #00796b 0%, #4db6ac 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 6px 16px rgba(0,0,0,0.3);
  overflow: hidden;
}

.logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand-text { 
  display: flex; 
  flex-direction: column; 
  line-height: 1.15; 
}

.brand-main { 
  font-weight: 900; 
  font-size: 2.2rem; 
  color: white;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.brand-subtitle { 
  font-weight: 500; 
  font-size: 0.85rem; 
  color: #88d6d1;
  letter-spacing: 0.4px;
}

/* Navigation */
.nav-toggle { 
  display: flex;
  flex-direction: column;
  gap: 5px;
  border: 0; 
  background: transparent; 
  cursor: pointer; 
  padding: 0.5rem;
  color: white;
}

.hamburger-line {
  width: 28px;
  height: 3px;
  background: white;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.nav-toggle:hover .hamburger-line {
  background: #4db6ac;
}

.site-nav { 
  display: none;
}

.site-nav.show {
  display: block;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: rgba(26,26,26,0.98);
  z-index: 999;
  border-bottom: 1px solid #333;
  box-shadow: 0 10px 24px rgba(0,0,0,0.18);
}

.menu {
  display: flex;
  flex-direction: column;
  list-style: none;
  gap: 0;
}

.menu li {
  flex: 1;
}

.menu li a {
  display: block;
  color: #ccc;
  text-decoration: none;
  padding: 1rem 1.5rem;
  text-align: left;
  font-weight: 500;
  font-size: 1rem;
  transition: all 0.3s ease;
  border-left: 4px solid transparent;
}

.menu li a:hover {
  background: rgba(0,121,107,0.15);
  color: #4db6ac;
  border-left-color: #4db6ac;
}

.menu li a.active {
  color: #4db6ac;
  border-left-color: #4db6ac;
  background: rgba(0,121,107,0.1);
}

.site-nav a, .nav-link-sub { 
  color: var(--muted); 
  text-decoration: none; 
  padding: 0.6rem 1rem; 
  border-radius: 12px; 
  font-weight: 600; 
  transition: all 0.3s ease; 
  position: relative;
}

.nav-link-sub.nav-icon {
  padding: 0.55rem 0.75rem;
  cursor: pointer;
}

.icon-bars {
  display: inline-block;
  width: 18px;
  height: 2px;
  background: currentColor;
  position: relative;
}

.icon-bars::before,
.icon-bars::after {
  content: '';
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: currentColor;
}

.icon-bars::before {
  top: -6px;
}

.icon-bars::after {
  top: 6px;
}

.site-nav a:hover, .nav-link-sub:hover {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
  color: white;
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.site-nav a.active {
  background: var(--accent);
  color: white;
}

/* Hero */
.hero { 
  padding: 5rem 0 4rem; 
  background: linear-gradient(135deg, rgba(255,255,255,0.92) 0%, rgba(255,255,255,0.75) 100%), url('https://raw.githubusercontent.com/unnatitrust/Unnati_Educational_And_Charitable_Trust/main/src/images/image10.jpeg') center/cover no-repeat;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, rgba(0,121,107,0.1) 0%, rgba(77,182,172,0.1) 100%);
  z-index: 1;
}

.hero-inner { 
  display: grid; 
  grid-template-columns: 1fr 450px; 
  gap: 3rem; 
  align-items: center; 
  position: relative;
  z-index: 2;
}

.hero-copy h1 { 
  font-size: clamp(1.8rem, 3.2vw + 1.8rem, 3.4rem); 
  line-height: 1.08; 
  margin-bottom: 1rem; 
  color: #263238; 
  text-shadow: 0 2px 4px rgba(0,0,0,0.06);
}

.hero-media img { 
  width: 100%; 
  height: clamp(240px, 32vw, 480px); 
  object-fit: cover; 
  object-position: center;
  border-radius: 20px; 
  box-shadow: var(--shadow); 
  transition: transform 0.45s ease, box-shadow 0.45s ease; 
}

.hero-media img:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: var(--shadow-hover);
}

.hero-ctas { 
  display: flex; 
  flex-wrap: wrap; 
  gap: 1rem; 
  margin-top: 1.8rem; 
}

.btn { 
  display: inline-flex; 
  align-items: center; 
  justify-content: center; 
  gap: 0.5rem; 
  padding: 1rem 2rem; 
  border-radius: 50px; 
  border: 2px solid transparent; 
  text-decoration: none; 
  font-weight: 700; 
  font-size: 1rem;
  transition: all 0.3s ease; 
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s;
}

.btn:hover::before {
  left: 100%;
}

.btn:hover { 
  transform: translateY(-3px); 
  box-shadow: 0 10px 30px rgba(0,121,107,0.3);
}

.btn-primary { 
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%); 
  color: #fff; 
  border-color: var(--accent);
}

.btn-primary:hover { 
  background: linear-gradient(135deg, var(--accent-light) 0%, var(--accent) 100%); 
  color: #fff;
}

.btn-secondary {
  background: #fff;
  color: #00695c;
  border-color: rgba(0,121,107,0.2);
}

.btn-secondary:hover {
  background: #f1f8f7;
  color: #004d40;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  background: rgba(38,50,56,0.95);
  color: #fff;
  padding: 0.95rem 1.5rem;
  border-radius: 999px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.25);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
  z-index: 1000;
}

.toast.show {
  opacity: 1;
  visibility: visible;
}

.section { 
  padding: 3.5rem 0; 
}

.section h2 { 
  font-size: clamp(1.4rem, 1.2vw + 1.2rem, 2rem); 
  margin-bottom: 1rem; 
  color: #052226; 
  letter-spacing: 0.2px;
}

.section p, .section li, .section label { 
  color: #33404d; 
}

/* Lead and highlights for better scannability */
.lead { 
  font-size: clamp(1rem, 1.2vw + 0.8rem, 1.125rem); 
  color: #07323a;
  line-height: 1.6;
}

.highlight-text {
  background: linear-gradient(90deg, rgba(77,182,172,0.06), rgba(13,148,136,0.03));
  padding: 0.6rem 0.9rem;
  border-left: 4px solid rgba(11,114,133,0.14);
  border-radius: 8px;
  display: inline-block;
}

/* Improved spacing for paragraphs */
.section p { 
  margin-bottom: 1rem;
}

.grid { 
  display: grid; 
  grid-template-columns: repeat(2, minmax(0, 1fr)); 
  gap: 2rem; 
  align-items: start; 
}

.stats { 
  display: grid; 
  grid-template-columns: repeat(3, minmax(120px, 1fr)); 
  gap: 1rem; 
  list-style: none; 
  margin-top: 1.5rem; 
}

.stats li { 
  background: rgba(255,255,255,0.8); 
  border: 1px solid rgba(11,114,133,0.08); 
  border-radius: var(--radius); 
  padding: 1rem; 
  text-align: center; 
}

.stats strong { 
  display: block; 
  margin-bottom: 0.35rem; 
  font-size: 1.35rem; 
  color: #0b7285; 
}

.card { 
  background: var(--card); 
  border-radius: var(--radius); 
  overflow: hidden; 
  box-shadow: var(--shadow); 
  border: 1px solid rgba(0,121,107,0.1); 
  display: flex; 
  flex-direction: column; 
  min-height: 100%; 
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.card-image { 
  width: 100%; 
  height: 200px; 
  object-fit: cover; 
  display: block; 
  transition: transform 0.3s ease;
}

.card:hover .card-image {
  transform: scale(1.05);
}

.card h3 { 
  margin: 1.5rem; 
  font-size: 1.4rem; 
  color: #263238; 
}

.card p { 
  margin: 0 1.5rem 1.5rem; 
  color: #546e7a; 
  line-height: 1.7; 
}

.team-grid { 
  display: grid; 
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); 
  gap: 1.5rem; 
  margin-top: 1.5rem; 
}

.team-member { 
  background: #fff; 
  border-radius: var(--radius); 
  padding: 1.5rem; 
  box-shadow: var(--shadow); 
  text-align: center; 
}

.team-photo { 
  width: 120px; 
  height: 120px; 
  border-radius: 50%; 
  object-fit: cover; 
  margin: 0 auto 1rem; 
  border: 4px solid rgba(11,114,133,0.12); 
}

.team-member h3 { 
  margin-bottom: 0.35rem; 
  font-size: 1.05rem; 
}

.team-member p { 
  color: #4b5861; 
  margin-bottom: 0.75rem; 
}

.team-bio { 
  font-size: 0.95rem; 
  line-height: 1.7; 
}

.impact-grid { 
  margin-top: 1.5rem; 
}

.impact-card { 
  background: #fff; 
  border-radius: var(--radius); 
  padding: 1.5rem; 
  box-shadow: var(--shadow); 
  border: 1px solid rgba(11,114,133,0.08); 
}

.impact-card h3 { 
  margin-bottom: 0.8rem; 
  font-size: 1.15rem; 
}

.highlight-card { 
  background: #fff; 
  border-radius: var(--radius); 
  overflow: hidden; 
  box-shadow: var(--shadow); 
  border: 1px solid rgba(11,114,133,0.08); 
  position: relative; 
}

.highlight-image { 
  width: 100%; 
  height: 170px; 
  object-fit: cover; 
}

.highlight-card h3 { 
  margin: 1rem; 
  font-size: 1.2rem; 
}

.highlight-card p { 
  margin: 0 1rem 1rem; 
  color: #4b5861; 
  line-height: 1.7; 
}

.highlight-card .date { 
  display: inline-flex; 
  margin: 0 1rem 1rem; 
  color: #0b7285; 
  font-weight: 700; 
}

.cta-inner { 
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%); 
  border-radius: var(--radius); 
  color: #fff; 
  padding: 3rem; 
  display: flex; 
  align-items: center; 
  justify-content: space-between; 
  gap: 3rem; 
  box-shadow: var(--shadow); 
  margin-top: 3rem; 
  position: relative;
  overflow: hidden;
}

.cta-inner::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
  animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 0.5; }
  50% { transform: scale(1.1); opacity: 0.8; }
}

.cta-inner h2 { 
  margin: 0; 
  color: #fff; 
  position: relative;
  z-index: 2;
}

.cta-inner p { 
  margin: 0; 
  color: rgba(255,255,255,0.95); 
  max-width: 600px; 
  position: relative;
  z-index: 2;
}

.contact-grid { 
  display: grid; 
  grid-template-columns: 1.1fr 1fr; 
  gap: 2rem; 
  align-items: start;
  margin-top: 1.5rem;
}

.contact-panel { 
  background: rgba(255,255,255,0.92); 
  border-radius: var(--radius); 
  padding: 1.75rem; 
  box-shadow: var(--shadow); 
  border: 1px solid rgba(0,121,107,0.1); 
}

.contact-form-panel { 
  background: #ffffff; 
}

.contact-panel p { 
  color: #455a64; 
  margin-bottom: 1rem; 
  line-height: 1.7;
}

.small-note { 
  color: #607d8b; 
  font-size: 0.95rem; 
  margin-top: 1rem; 
}

.donation-cards { 
  display: grid; 
  grid-template-columns: repeat(3, minmax(220px, 1fr)); 
  gap: 1.5rem; 
  margin-top: 1.5rem;
}

.donation-card { 
  background: #ffffff; 
  border-radius: var(--radius); 
  padding: 1.5rem; 
  box-shadow: var(--shadow); 
  border: 1px solid rgba(0,121,107,0.1); 
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.donation-card:hover { 
  transform: translateY(-3px); 
  box-shadow: var(--shadow-hover); 
}

.donation-card h3 { 
  margin-bottom: 0.8rem; 
  color: #00695c; 
}

.donation-card p { 
  color: #546e7a; 
  line-height: 1.7; 
}

.note-text { 
  margin-top: 1.25rem; 
  font-size: 0.95rem; 
  color: #455a64; 
}

.section-intro { 
  color: #4b5861; 
  max-width: 780px; 
  margin-bottom: 1rem; 
}

form { 
  background: #fff; 
  border-radius: var(--radius); 
  padding: 2rem; 
  box-shadow: var(--shadow); 
  display: grid; 
  gap: 1rem; 
  border: 1px solid rgba(11,114,133,0.08); 
}

form label { 
  display: flex; 
  flex-direction: column; 
  gap: 0.5rem; 
  color: #33404d; 
  font-weight: 600; 
}

form input, form textarea { 
  width: 100%; 
  border: 1px solid rgba(11,114,133,0.18); 
  border-radius: 12px; 
  padding: 0.95rem 1rem; 
  font: inherit; 
  color: #0b1720; 
  background: #f9fcfc; 
}

form button { 
  width: fit-content; 
}

/* Contact form improvements */
.contact-panel form { 
  padding: 1.25rem; 
}

form label { 
  font-size: 0.95rem;
}

form input:focus, form textarea:focus {
  outline: none;
  border-color: rgba(11,114,133,0.35);
  box-shadow: 0 6px 18px rgba(11,114,133,0.08);
}

.form-actions {
  display: flex;
  justify-content: flex-start;
  gap: 1rem;
  margin-top: 0.5rem;
}

.form-note {
  font-size: 0.95rem;
  color: #607d8b;
  margin-top: 0.6rem;
}

.gallery-scroll { 
  display: flex; 
  gap: 1rem; 
  overflow-x: auto; 
  padding-bottom: 0.5rem; 
  scroll-snap-type: x proximity; 
  margin-top: 1rem; 
  scroll-behavior: smooth;
}

.gallery-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.gallery-btn {
  background: rgba(255,255,255,0.12);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 999px;
  padding: 0.75rem 1rem;
  cursor: pointer;
  font-weight: 700;
  transition: background 0.3s ease, transform 0.2s ease;
}

.gallery-btn:hover,
.gallery-btn:focus {
  background: rgba(255,255,255,0.2);
  transform: translateY(-1px);
}

@media (max-width: 768px) {
  .gallery-actions {
    justify-content: space-between;
  }
}

.gallery-item { 
  min-width: 240px; 
  flex: 0 0 auto; 
  border-radius: var(--radius); 
  overflow: hidden; 
  box-shadow: var(--shadow); 
  background: #fff; 
  scroll-snap-align: start; 
}

.gallery-item img { 
  display: block; 
  width: 100%; 
  height: 190px; 
  object-fit: cover; 
}

.gallery-scroll::-webkit-scrollbar { 
  height: 10px; 
}

.gallery-scroll::-webkit-scrollbar-thumb { 
  background: rgba(11,114,133,0.25); 
  border-radius: 999px; 
}

.gallery-scroll::-webkit-scrollbar-track { 
  background: rgba(11,114,133,0.05); 
}

.contact-info { 
  display: flex; 
  gap: 1rem; 
  align-items: center; 
  flex-wrap: wrap; 
}

/* Responsive tweaks */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .hero-copy h1 { font-size: clamp(1.6rem, 3.6vw + 0.8rem, 2.6rem); }
  .hero-media img { height: clamp(220px, 28vw, 420px); }
  .container { padding: 1rem 1rem; }
  .grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, minmax(120px, 1fr)); }
  .donation-cards { grid-template-columns: repeat(2, minmax(220px, 1fr)); }
}

@media (max-width: 768px) {
  .hero-inner { grid-template-columns: 1fr; gap: 1.25rem; }
  .hero-media { order: 2; }
  .hero-copy { order: 1; }
  .hero-copy h1 { text-align: left; }
  .hero { padding: 3rem 0 2.5rem; }
  .site-header { padding: 0.8rem 0.8rem; }
  .menu { display: block; }
  .contact-grid { grid-template-columns: 1fr; }
  .donation-cards { grid-template-columns: 1fr; }
  .gallery-item img { height: 160px; }
}

@media (max-width: 420px) {
  .brand-main { font-size: 1.25rem; }
  .brand-subtitle { display: none; }
  .hero-copy h1 { font-size: clamp(1.2rem, 6vw, 1.7rem); }
  .hero-media img { height: 180px; }
  .btn { padding: 0.7rem 1rem; font-size: 0.95rem; }
  .gallery-item { min-width: 200px; }
}

.contact-info a { 
  color: var(--muted); 
  text-decoration: none; 
  font-weight: 600; 
  padding: 0.5rem 0.8rem; 
  border-radius: 10px; 
  transition: background 0.2s, color 0.2s; 
}

.contact-info a:hover { 
  background: rgba(11,114,133,0.08); 
  color: var(--accent); 
}

.site-footer { 
  padding: 3rem 0 4rem; 
  background: linear-gradient(135deg, #263238 0%, #37474f 100%); 
  color: #eceff1;
  position: relative; 
}

.site-footer::after { 
  content: ''; 
  display: block; 
  height: 100px; 
}

.footer-inner { 
  display: flex; 
  align-items: center; 
  justify-content: space-between; 
  gap: 2rem; 
  flex-wrap: wrap; 
}

.social { 
  display: flex; 
  gap: 1.5rem; 
  flex-wrap: wrap; 
}

.social a {
  color: #eceff1;
  text-decoration: none;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: 25px;
  background: rgba(255,255,255,0.1);
  transition: all 0.3s ease;
}

.social a:hover {
  background: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0,121,107,0.3);
}

.nav-item.has-sub { 
  position: relative; 
}

.nav-item.has-sub .sub-menu { 
  position: absolute; 
  top: calc(100% + 0.25rem); 
  left: 0; 
  min-width: 230px; 
  background: white; 
  border-radius: 14px; 
  box-shadow: 0 16px 40px rgba(0,0,0,0.12); 
  padding: 0.75rem; 
  display: none; 
  list-style: none; 
  z-index: 20; 
  gap: 0.5rem;
}

.nav-item.has-sub:hover .sub-menu,
.nav-item.has-sub.open .sub-menu { 
  display: flex; 
}

.nav-item.has-sub .sub-menu li { 
  flex: 1;
}

.nav-item.has-sub .sub-menu li a { 
  display: inline-flex; 
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1rem; 
  border-radius: 12px;
  color: var(--muted); 
  background: #f8fafb;
  transition: all 0.2s ease;
}

.nav-item.has-sub .sub-menu li a:hover { 
  background: rgba(11,114,133,0.08); 
  color: var(--accent); 
}

.reveal { 
  opacity: 0; 
  transform: translateY(20px); 
  transition: opacity 0.6s ease, transform 0.6s ease; 
}

.reveal.show { 
  opacity: 1; 
  transform: translateY(0); 
}

.hero-copy h1 { 
  max-width: 45rem; 
}

.hero-copy .lead { 
  font-size: 1.05rem; 
  color: #41555e; 
  margin-top: 1rem; 
  max-width: 36rem; 
}

@media (max-width: 1024px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .hero-media img {
    height: 320px;
  }
}

/* Cards & Grids */
.card-grid, .impact-grid, .team-grid, .highlights-grid { 
  display: grid; 
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); 
  gap: 1.5rem; 
  margin-top: 1.5rem; 
}

/* Footer */
.footer-inner { 
  display: flex; 
  align-items: center; 
  justify-content: space-between; 
  gap: 1rem; 
  flex-wrap: wrap; 
}

/* WhatsApp Float Button */
.whatsapp-float { 
  position: fixed; 
  bottom: 24px; 
  right: 20px; 
  background: #25d366; 
  color: white; 
  padding: 14px 18px; 
  border-radius: 50px; 
  text-decoration: none; 
  font-weight: 600; 
  box-shadow: 0 4px 15px rgba(0,0,0,0.25); 
  display: flex; 
  align-items: center; 
  gap: 8px; 
  z-index: 100; 
  transition: transform 0.3s ease; 
}

/* ==================== RESPONSIVE BREAKPOINTS ==================== */

@media (max-width: 1024px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .hero-media img {
    height: 320px;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0.8rem;
  }
  
  .hero {
    padding: 3rem 0 2rem;
  }
  
  .hero-copy h1 {
    font-size: 2.1rem;
  }
  
  .hero-media img {
    height: 280px;
  }
  
  .grid {
    grid-template-columns: 1fr;
    align-items: start;
  }
  
  .cta-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
  }
}

@media (max-width: 768px) {
  .brand-main { 
    font-size: 1.6rem;
  }
  
  .brand-subtitle { 
    font-size: 0.75rem;
  }

  .logo {
    width: 50px;
    height: 50px;
  }
}

@media (max-width: 640px) {
  .header-inner {
    padding: 1.2rem 1rem;
    gap: 1rem;
  }
  
  .brand-main {
    font-size: 1.4rem;
    letter-spacing: 0.5px;
  }

  .brand-subtitle {
    font-size: 0.65rem;
  }

  .logo {
    width: 45px;
    height: 45px;
  }

  .hamburger-line {
    width: 24px;
    height: 2.5px;
  }
  
  .card-grid, .impact-grid, .team-grid, .highlights-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.2rem;
  }
  
  .team-photo {
    width: 90px;
    height: 90px;
  }
}

@media (max-width: 480px) {
  .hero-copy h1 {
    font-size: 1.85rem;
  }
  
  .hero-media img {
    height: 240px;
  }
  
  .container {
    padding: 0.7rem;
  }
  
  .section {
    padding: 1.8rem 0;
  }
  
  .whatsapp-float {
    bottom: 90px;
    right: 15px;
    padding: 12px 16px;
    font-size: 0.95rem;
  }
}

/* Desktop navigation layout and small-screen form behavior */
@media (min-width: 1025px) {
  .nav-toggle { display: flex; }
  .site-nav { display: none; }
}

@media (max-width: 768px) {
  .form-actions { flex-direction: column; align-items: stretch; }
  .form-actions .btn { width: 100%; }
}

/* Safe area for iPhone (notch devices) */
@supports (padding: max(0px)) {
  .site-header {
    padding-top: max(0px, env(safe-area-inset-top));
  }
}

/* Final micro-adjustments: spacing, focus states, and small-screen polish */
:root {
  --header-height: 96px;
}

main {
  padding-top: calc(var(--header-height) + env(safe-area-inset-top, 0px));
}

.hero-copy { 
  max-width: 62ch;
}

.section-intro { 
  margin-bottom: 1.25rem;
}

.gallery-scroll { 
  justify-content: flex-start;
}

.btn:focus, .btn:focus-visible, a:focus-visible {
  outline: 3px solid rgba(11,114,133,0.16);
  outline-offset: 3px;
}

/* Slightly reduce heavy shadows on very small devices for readability */
@media (max-width: 420px) {
  :root {
    --shadow: 0 6px 18px rgba(0,121,107,0.08);
    --shadow-hover: 0 10px 30px rgba(0,121,107,0.12);
  }
}

/* Ensure readable gutters on small screens so paragraphs don't touch edges */
@media (max-width: 768px) {
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .section {
    padding-left: 0.9rem;
    padding-right: 0.9rem;
  }

  /* Make paragraph and highlight text respect container gutters */
  .section p, .section li, .section .section-intro, .hero-copy .lead, .highlight-text {
    padding-inline: 0;
    word-break: break-word;
  }
}