@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Playfair+Display:wght@500;600;700&display=swap');

:root {
  --primary: #001B6B;
  --primary-dark: #00124a;
  --accent: #FF0000;
  --accent-hover: #cc0000;
  --bg: #ffffff;
  --bg-soft: #f4f6fb;
  --text: #1a2744;
  --text-muted: #5a6478;
  --border: #e8ecf4;
  --shadow: 0 4px 24px rgba(0,27,107,.08);
  --shadow-lg: 0 20px 60px rgba(0,27,107,.12);
  --radius: 4px;
  --font-sans: 'Inter', system-ui, sans-serif;
  --font-display: 'Playfair Display', Georgia, serif;
  --header-h: 92px;
  --logo-header-h: 84px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font-sans); background: var(--bg); color: var(--text); line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1,h2,h3,h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.2; color: var(--primary); margin: 0 0 .75rem; }
p { margin: 0 0 1rem; color: var(--text-muted); }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 1.25rem; }
.section { padding: 5rem 0; }
.section-soft { background: var(--bg-soft); }
.section-dark { background: var(--primary-dark); color: #fff; }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-dark p { color: rgba(255,255,255,.8); }
.text-center { text-align: center; }
.label { font-size: .7rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--accent); margin-bottom: .75rem; display: block; }

/* Header */
.site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; background: rgba(255,255,255,.98); backdrop-filter: blur(14px); border-bottom: 1px solid transparent; transition: box-shadow .3s, border-color .3s; overflow: visible; }
.site-header.scrolled { box-shadow: var(--shadow); border-color: var(--border); }
.header-bar { width: 100%; overflow: visible; }
.header-bar .container { max-width: 1380px; padding-left: 1.5rem; padding-right: 1.5rem; overflow: visible; }
.header-inner { display: flex; align-items: center; gap: 1.5rem; height: var(--header-h); min-width: 0; overflow: visible; }
.header-nav-group { display: none; align-items: center; gap: 1.25rem; margin-left: auto; flex-shrink: 0; }
.logo { flex-shrink: 0; display: flex; align-items: center; text-decoration: none; line-height: 0; overflow: visible; min-height: var(--logo-header-h); }
.logo-img { height: var(--logo-header-h); width: auto; max-width: min(420px, 55vw); object-fit: contain; object-position: left center; display: block; transform: scale(1.2); transform-origin: left center; }
.logo-img--hidden { display: none !important; }
.logo-fallback { align-items: center; height: 48px; padding: 0 1rem; font-family: var(--font-display); font-weight: 700; font-size: 1.35rem; letter-spacing: .04em; color: var(--primary); border-left: 4px solid var(--accent); }
.nav-desktop { display: block; flex: none; min-width: 0; }
.nav-menu { display: flex; flex-wrap: nowrap; align-items: center; list-style: none; margin: 0; padding: 0; gap: 0; }
.nav-menu > li { position: relative; flex-shrink: 0; }
.nav-menu > li > a,
.nav-dropdown-btn { display: flex; align-items: center; gap: .25rem; padding: .45rem .65rem; font-size: .8rem; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--primary); text-decoration: none; white-space: nowrap; background: none; border: none; cursor: pointer; font-family: inherit; transition: color .2s; }
.nav-menu > li > a:hover,
.nav-menu > li > a.active,
.nav-dropdown:hover .nav-dropdown-btn,
.nav-dropdown.open .nav-dropdown-btn,
.nav-dropdown-btn.active { color: var(--accent); }
.caret { display: inline-block; width: 0; height: 0; margin-top: 2px; border-left: 4px solid transparent; border-right: 4px solid transparent; border-top: 5px solid currentColor; opacity: .7; }
.nav-dropdown-menu { position: absolute; top: calc(100% + 6px); left: 50%; transform: translateX(-50%) translateY(6px); min-width: 190px; margin: 0; padding: .4rem 0; list-style: none; background: #fff; border: 1px solid var(--border); box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .2s, transform .2s, visibility .2s; z-index: 1001; }
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown.open .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu { opacity: 1; visibility: visible; pointer-events: auto; transform: translateX(-50%) translateY(0); }
.nav-dropdown-menu a { display: block; padding: .7rem 1.25rem; font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--primary); text-decoration: none; white-space: nowrap; transition: background .15s, color .15s; }
.nav-dropdown-menu a:hover { background: var(--bg-soft); color: var(--accent); }
.header-cta { flex-shrink: 0; display: none; align-items: center; padding: .72rem 1.4rem; font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; text-decoration: none; color: #fff; background: var(--accent); border-radius: 2px; transition: background .2s, box-shadow .2s; white-space: nowrap; }
.header-cta:hover { background: var(--accent-hover); box-shadow: 0 6px 20px rgba(255,0,0,.28); color: #fff; }
.nav-toggle { display: flex; flex-shrink: 0; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--primary); transition: .3s; }
.nav-mobile { display: none; position: fixed; inset: var(--header-h) 0 0 0; background: #fff; padding: 1.5rem 1.5rem 2rem; flex-direction: column; gap: 0; z-index: 999; overflow-y: auto; }
.nav-mobile.open { display: flex; }
.nav-mobile a { font-size: 1.05rem; font-weight: 600; color: var(--primary); text-decoration: none; padding: .85rem 0; border-bottom: 1px solid var(--border); }
.nav-mobile-label { font-size: .65rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--text-muted); padding: 1rem 0 .35rem; border-bottom: none; }
.nav-mobile-sub { padding-left: .75rem !important; font-size: .95rem !important; font-weight: 500 !important; color: var(--text-muted) !important; }
.nav-mobile-cta { margin-top: 1.25rem; text-align: center; border-bottom: none !important; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .9rem 1.75rem; font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; text-decoration: none; border: none; cursor: pointer; border-radius: var(--radius); transition: transform .2s, background .2s, box-shadow .2s; font-family: inherit; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); box-shadow: 0 8px 24px rgba(255,0,0,.25); }
.btn-outline { background: transparent; color: var(--primary); border: 2px solid var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-white { background: #fff; color: var(--primary); }
.btn-white:hover { background: var(--bg-soft); color: var(--primary); }
.section-dark .btn-white { background: transparent; border: 2px solid #fff; color: #fff; }
.section-dark .btn-white:hover { background: #fff; color: var(--primary); }
.btn-sm { padding: .65rem 1.25rem; font-size: .7rem; }

/* Hero */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; justify-content: center; text-align: center; color: #fff; margin-top: 0; }
.hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(135deg, rgba(0,27,107,.88) 0%, rgba(0,18,74,.75) 50%, rgba(0,27,107,.85) 100%); }
.hero-content { position: relative; z-index: 2; padding: calc(var(--header-h) + 3rem) 1.25rem 4rem; max-width: 900px; animation: fadeUp .8s ease; }
.hero h1 { font-size: clamp(2.25rem, 5vw, 3.75rem); color: #fff; margin-bottom: 1rem; }
.hero h1 span { color: #fff; border-bottom: 3px solid var(--accent); }
.hero-lead { font-size: 1.1rem; color: rgba(255,255,255,.9); max-width: 640px; margin: 0 auto 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; margin-bottom: 3rem; }

.stats-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; max-width: 800px; margin: 0 auto; }
.stat-card { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2); padding: 1.5rem; backdrop-filter: blur(8px); transition: transform .3s; }
.stat-card:hover { transform: translateY(-4px); background: rgba(255,255,255,.15); }
.stat-card strong { display: block; font-family: var(--font-display); font-size: 2rem; color: #fff; }
.stat-card span { font-size: .7rem; text-transform: uppercase; letter-spacing: .1em; color: rgba(255,255,255,.75); }

/* Grids */
.grid-2 { display: grid; gap: 2.5rem; }
.grid-3 { display: grid; gap: 1.5rem; }
.grid-4 { display: grid; gap: 1.5rem; }
@media (min-width: 992px) {
  .header-nav-group { display: flex; }
  .header-cta { display: inline-flex; }
  .nav-toggle { display: none; }
}
@media (min-width: 1200px) {
  :root {
    --header-h: 96px;
    --logo-header-h: 88px;
  }
  .header-inner { height: var(--header-h); }
  .logo { min-height: var(--logo-header-h); }
  .logo-img { height: var(--logo-header-h); transform: scale(1.22); max-width: 480px; }
}
@media (min-width: 1100px) {
  .nav-menu > li > a,
  .nav-dropdown-btn { padding: .5rem .8rem; font-size: .85rem; }
}
@media (min-width: 768px) {
  .grid-2 { grid-template-columns: 1fr 1fr; align-items: center; }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
  .stats-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 992px) {
  .section { padding: 6rem 0; }
}

/* Cards */
.card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: box-shadow .35s, transform .35s; }
.card:hover { box-shadow: var(--shadow-lg); transform: translateY(-6px); }
.card-img { aspect-ratio: 16/10; overflow: hidden; position: relative; min-height: 200px; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.card-img-placeholder { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; min-height: 200px; background: linear-gradient(145deg, var(--primary-dark) 0%, var(--primary) 55%, #1a3a8f 100%); }
.card-img-placeholder span { font-size: 1.35rem; font-weight: 700; letter-spacing: .28em; text-transform: uppercase; color: #fff; text-align: center; padding: 1rem; }
.card-img-placeholder--completed span { font-size: .95rem; letter-spacing: .14em; color: rgba(255,255,255,.92); }
.card:hover .card-img img { transform: scale(1.06); }
.card-body { padding: 1.5rem; }
.card-tag { font-size: .65rem; font-weight: 700; text-transform: uppercase; letter-spacing: .15em; color: var(--accent); }
.card h3 { font-size: 1.25rem; margin: .5rem 0; }
.badge { display: inline-block; padding: .25rem .6rem; font-size: .65rem; font-weight: 700; text-transform: uppercase; background: var(--bg-soft); color: var(--primary); }

.why-card { padding: 2rem; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); transition: border-color .3s, box-shadow .3s; height: 100%; }
.why-card:hover { border-color: var(--accent); box-shadow: var(--shadow); }
.why-num { font-family: var(--font-display); font-size: 2.5rem; color: rgba(0,27,107,.12); line-height: 1; margin-bottom: .5rem; }
.why-card h3 { font-size: 1.1rem; }

.testimonial { background: #fff; border-left: 4px solid var(--accent); padding: 2rem; box-shadow: var(--shadow); height: 100%; }
.testimonial q { display: block; font-style: italic; font-size: 1rem; color: var(--text); margin-bottom: 1.25rem; }
.testimonial cite { font-style: normal; font-weight: 700; color: var(--primary); font-size: .9rem; }
.testimonial cite span { display: block; font-weight: 400; color: var(--text-muted); font-size: .8rem; }

.founder { display: grid; gap: 2rem; align-items: center; }
.founder-quote { font-family: var(--font-display); font-size: clamp(1.25rem, 3vw, 1.75rem); color: var(--primary); line-height: 1.5; border-left: 4px solid var(--accent); padding-left: 1.5rem; margin: 0; }

/* About split */
.split-img { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); }
.split-img img { width: 100%; height: 100%; object-fit: cover; min-height: 400px; }

/* Gallery */
.gallery-section-head { margin-bottom: 1.75rem; }
.gallery-section-head h2 { margin: 0.35rem 0 0.5rem; color: var(--primary); }
.gallery-section-head p { margin: 0; color: var(--text-muted); font-size: 0.95rem; }
.gallery-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .75rem; }
@media (min-width: 768px) { .gallery-grid { grid-template-columns: repeat(3, 1fr); gap: 1rem; } }
.gallery-item { position: relative; aspect-ratio: 4/3; overflow: hidden; cursor: pointer; border-radius: var(--radius); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.gallery-item:hover img { transform: scale(1.08); }
.gallery-item::after { content: '+'; position: absolute; inset: 0; background: rgba(0,27,107,.5); color: #fff; font-size: 2rem; display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity .3s; }
.gallery-item:hover::after { opacity: 1; }

/* Lightbox */
.lightbox { display: none; position: fixed; inset: 0; z-index: 2000; background: rgba(0,0,0,.92); align-items: center; justify-content: center; padding: 2rem; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 100%; max-height: 90vh; object-fit: contain; }
.lightbox-close { position: absolute; top: 1rem; right: 1rem; background: #fff; border: none; width: 44px; height: 44px; font-size: 1.5rem; cursor: pointer; border-radius: 50%; }

/* Forms */
.form-group { margin-bottom: 1rem; }
.form-control { width: 100%; padding: .85rem 1rem; border: 1px solid var(--border); border-radius: var(--radius); font-family: inherit; font-size: .95rem; transition: border-color .2s; }
.form-control:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(0,27,107,.1); }
textarea.form-control { resize: vertical; min-height: 120px; }
.form-card { background: #fff; padding: 2rem; border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.alert-ok { background: #e8f5e9; color: #2e7d32; padding: 1rem; border-radius: var(--radius); margin-bottom: 1rem; }

/* Page hero */
.page-hero { padding: calc(var(--header-h) + 4rem) 0 4rem; background: linear-gradient(135deg, var(--primary-dark), var(--primary)); color: #fff; text-align: center; }
.page-hero h1 { color: #fff; font-size: clamp(2rem, 4vw, 3rem); }
.page-hero p { color: rgba(255,255,255,.8); max-width: 600px; margin: 0 auto; }

/* Footer */
.site-footer { background: linear-gradient(180deg, var(--primary-dark) 0%, #000a2e 100%); color: rgba(255,255,255,.85); padding: 0 0 1.5rem; }
.footer-accent { height: 4px; background: linear-gradient(90deg, var(--accent) 0%, var(--accent) 40%, transparent 100%); }
.footer-top { display: grid; gap: 1.5rem; align-items: center; padding: 3rem 0 2.5rem; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer-brand { display: inline-block; line-height: 0; }
.footer-logo { height: 88px; width: auto; max-width: 360px; object-fit: contain; object-position: left center; display: block; }
.footer-about { margin: 0; max-width: 520px; font-size: .95rem; line-height: 1.7; color: rgba(255,255,255,.75); }
.footer-cta { justify-self: start; }
.footer-columns { display: grid; gap: 2.5rem; padding: 2.5rem 0; }
.footer-col { min-width: 0; }
.footer-heading { color: #fff; font-family: var(--font-sans); font-size: .72rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; margin: 0 0 1.25rem; padding-bottom: .75rem; border-bottom: 2px solid var(--accent); display: inline-block; }
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin-bottom: .55rem; }
.footer-links a,
.footer-contact a,
.footer-whatsapp { color: rgba(255,255,255,.78); text-decoration: none; transition: color .2s; font-size: .9rem; }
.footer-links a:hover,
.footer-contact a:hover,
.footer-whatsapp:hover { color: var(--accent); }
.footer-contact { list-style: none; margin: 0; padding: 0; }
.footer-contact li { margin-bottom: 1.25rem; }
.footer-contact li:last-child { margin-bottom: 0; }
.footer-contact-label { display: block; font-size: .65rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: .35rem; }
.footer-contact p { margin: 0; font-size: .88rem; line-height: 1.65; color: rgba(255,255,255,.8); }
.footer-contact a { font-size: .88rem; line-height: 1.8; }
.footer-rera { font-size: .78rem; line-height: 1.6; color: rgba(255,255,255,.65); margin: 0 0 1.25rem; }
.footer-whatsapp { display: inline-flex; align-items: center; padding: .55rem 1rem; border: 1px solid rgba(255,255,255,.25); font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.footer-whatsapp:hover { border-color: var(--accent); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-top: 1.25rem; text-align: center; font-size: .78rem; color: rgba(255,255,255,.5); }
.footer-bottom p { margin: 0; color: inherit; }
@media (min-width: 768px) {
  .footer-top { grid-template-columns: auto 1fr auto; gap: 2rem; }
  .footer-cta { justify-self: end; }
  .footer-columns { grid-template-columns: 1fr 1.6fr 1fr; }
}
/* Map */
.map-wrap { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 16/9; }
.map-wrap iframe { width: 100%; height: 100%; border: 0; min-height: 360px; }

/* Modal */
.modal-overlay { display: none; position: fixed; inset: 0; z-index: 1500; background: rgba(0,18,74,.6); backdrop-filter: blur(4px); align-items: center; justify-content: center; padding: 1rem; }
.modal-overlay.open { display: flex; }
.modal { background: #fff; width: 100%; max-width: 480px; max-height: 90vh; overflow-y: auto; border-radius: var(--radius); padding: 2rem; position: relative; animation: fadeUp .3s ease; }
.modal-close { position: absolute; top: 1rem; right: 1rem; background: none; border: none; font-size: 1.5rem; cursor: pointer; color: var(--text-muted); }

/* WhatsApp */
.whatsapp-float { position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 1100; width: 56px; height: 56px; background: #25D366; border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 20px rgba(37,211,102,.5); transition: transform .2s; text-decoration: none; }
.whatsapp-float:hover { transform: scale(1.08); }
.whatsapp-float svg { width: 28px; height: 28px; fill: #fff; }

/* Animations */
.fade-in { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

/* Admin legacy */
.admin-wrap { display: flex; min-height: 100vh; }
.admin-sidebar { width: 240px; background: var(--primary-dark); color: #fff; padding: 1.5rem; }
.admin-main { flex: 1; padding: 2rem; background: var(--bg-soft); }
.table { width: 100%; border-collapse: collapse; background: #fff; }
.table th, .table td { padding: .75rem 1rem; border-bottom: 1px solid var(--border); text-align: left; }

/* Legacy btn aliases */
.btn-gold, .btn-primary-alt { display: inline-flex; align-items: center; padding: .9rem 1.75rem; background: var(--accent); color: #fff; font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; text-decoration: none; border: none; cursor: pointer; border-radius: var(--radius); }
.btn-outline-gold { display: inline-flex; padding: .9rem 1.75rem; border: 2px solid var(--accent); color: var(--accent); font-size: .75rem; font-weight: 700; text-transform: uppercase; text-decoration: none; background: transparent; border-radius: var(--radius); }
.premium-card, .card { }
.form-control { width: 100%; padding: .85rem 1rem; border: 1px solid var(--border); margin-bottom: 1rem; font-family: inherit; }
.label-caps, .label { font-size: .7rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--accent); }
.text-gold { color: var(--accent); }
.section-brand { background: var(--primary-dark); color: #fff; }
.section-brand h2 { color: #fff; }
.main-content { padding-top: 0; }

/* About — Vision, Mission, Goal */
.about-vmg { padding: 4rem 0; }
.about-vmg-block { max-width: 820px; margin: 0 auto; }
.about-vmg-block h2 { margin-bottom: 1.25rem; }
.about-vmg-block p:last-child { margin-bottom: 0; }
.about-vmg-block--goal { max-width: 880px; }
.about-mission-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}
@media (min-width: 768px) {
  .about-mission-list { grid-template-columns: repeat(2, 1fr); gap: 1rem 2rem; }
}
.about-mission-list li {
  position: relative;
  padding: 0.85rem 0 0.85rem 1.5rem;
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.55;
  border-bottom: 1px solid var(--border);
}
.about-mission-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.15rem;
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
}

/* ==========================================================================
   Responsive — mobile, tablet, desktop
   ========================================================================== */
html { overflow-x: hidden; }
body { overflow-x: hidden; }

.container { padding-left: 1rem; padding-right: 1rem; }
@media (min-width: 768px) {
  .container { padding-left: 1.25rem; padding-right: 1.25rem; }
}

/* Touch-friendly controls */
.btn,
.nav-toggle,
.nav-mobile a,
.form-control,
.header-cta { min-height: 44px; }
.nav-toggle { min-width: 44px; justify-content: center; }
.btn-sm { min-height: 40px; }

/* Button groups stack on small screens */
.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}
.btn-row--stack-sm { flex-direction: column; align-items: stretch; }
@media (min-width: 576px) {
  .btn-row--stack-sm { flex-direction: row; align-items: center; }
}

/* Mobile / tablet header — keep logo readable */
@media (max-width: 991px) {
  :root {
    --header-h: 82px;
    --logo-header-h: 64px;
  }
  .header-bar .container { padding-left: 1rem; padding-right: 1rem; }
  .header-inner {
    gap: 0.75rem;
    justify-content: space-between;
    height: var(--header-h);
  }
  .logo {
    flex: 1;
    min-width: 0;
    max-width: calc(100% - 56px);
    min-height: var(--logo-header-h);
  }
  .logo-img {
    height: var(--logo-header-h);
    max-width: min(280px, 58vw);
    transform: scale(1.1);
    transform-origin: left center;
  }
  .nav-toggle { margin-left: auto; flex-shrink: 0; }
  .nav-mobile {
    padding: 1rem 1.25rem 2rem;
    -webkit-overflow-scrolling: touch;
  }
  .nav-mobile a {
    padding: 1rem 0;
    font-size: 1rem;
  }
  .nav-mobile-cta {
    width: 100%;
    margin-top: 1rem !important;
    justify-content: center;
  }
}

body.nav-open::before {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(0, 18, 74, 0.45);
  z-index: 998;
  pointer-events: auto;
}

.nav-toggle.is-active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle.is-active span:nth-child(2) { opacity: 0; }
.nav-toggle.is-active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Sections — tighter on phones */
@media (max-width: 767px) {
  .section { padding: 3rem 0; }
  .page-hero { padding: calc(var(--header-h) + 2.5rem) 0 2.5rem; }
  .page-hero h1 { font-size: 1.85rem; }
  .hero { min-height: auto; min-height: 100svh; }
  .hero-content { padding: calc(var(--header-h) + 2rem) 1rem 2.5rem; }
  .hero-lead { font-size: 1rem; margin-bottom: 1.5rem; }
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    margin-bottom: 2rem;
  }
  .hero-actions .btn { width: 100%; }
  .stats-grid { gap: 0.65rem; }
  .stat-card { padding: 1rem 0.75rem; }
  .stat-card strong { font-size: 1.5rem; }
  .split-img img { min-height: 240px; }
  .founder-quote { padding-left: 1rem; font-size: 1.15rem; }
  .why-card { padding: 1.35rem; }
  .testimonial { padding: 1.35rem; }
  .form-card { padding: 1.35rem; }
  .card-body { padding: 1.15rem; }
  .card h3 { font-size: 1.1rem; }
  .about-vmg { padding: 2.5rem 0; }
  .footer-top { padding: 2rem 0 1.5rem; text-align: center; }
  .footer-brand { margin: 0 auto; }
  .footer-logo { margin: 0 auto; height: 76px; max-width: 300px; }
  .footer-about { margin-left: auto; margin-right: auto; }
  .footer-cta { width: 100%; justify-content: center; }
  .footer-columns { gap: 2rem; padding: 2rem 0; }
  .footer-col { text-align: center; }
  .footer-heading { display: block; }
  .footer-contact li { text-align: center; }
  .whatsapp-float {
    bottom: 1rem;
    right: 1rem;
    width: 52px;
    height: 52px;
  }
  .modal { padding: 1.5rem; margin: 0.5rem; max-height: 85vh; }
  .lightbox { padding: 1rem; }
}

/* Tablet grids */
@media (min-width: 576px) and (max-width: 991px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (min-width: 768px) {
  .founder { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 992px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
}

/* Footer tablet */
@media (min-width: 768px) and (max-width: 991px) {
  .footer-columns {
    grid-template-columns: 1fr 1fr;
  }
  .footer-col--wide { grid-column: 1 / -1; }
}

.footer-col--wide { /* marker for wide contact col */ }

/* Map & tables */
.table-scroll,
.pricing-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 0 -0.25rem;
  padding: 0 0.25rem;
}
.map-wrap iframe { min-height: 280px; }
@media (max-width: 767px) {
  .map-wrap iframe { min-height: 220px; }
}

/* Utility */
.hide-mobile { display: none !important; }
@media (min-width: 768px) {
  .hide-mobile { display: block !important; }
  .hide-desktop { display: none !important; }
}
@media (max-width: 767px) {
  .hide-desktop { display: none !important; }
}

.text-break { overflow-wrap: anywhere; word-break: break-word; }
