/* ═══════════════════════════════════════
   MUMA — Manukau Urban Māori Authority
   Global Stylesheet
═══════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&family=DM+Sans:wght@300;400;500;600&display=swap');

:root {
  --teal: #00B4B3;
  --teal-dark: #008F8E;
  --navy: #004F63;
  --navy-deep: #003448;
  --white: #FFFFFF;
  --off-white: #F5FAFA;
  --light-border: #D0ECEC;
  --text: #0D2B35;
  --muted: #456070;
  --font-head: 'Playfair Display', Georgia, serif;
  --font-body: 'DM Sans', Helvetica, Arial, sans-serif;
  --radius: 12px;
  --radius-lg: 16px;
  --shadow: 0 4px 24px rgba(0,180,179,.12);
  --transition: all .2s ease;
}

*, *::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(--white); font-size: 15px; line-height: 1.65; -webkit-font-smoothing: antialiased; }

/* ─── TYPOGRAPHY ─────────────────────── */
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.15; }
h1 { font-size: clamp(28px, 5vw, 48px); font-weight: 700; }
h2 { font-size: clamp(22px, 3.5vw, 36px); font-weight: 700; }
h3 { font-size: clamp(18px, 2.5vw, 24px); font-weight: 600; }
h4 { font-size: 18px; font-weight: 600; }
p { color: var(--muted); line-height: 1.8; }
a { color: var(--teal); text-decoration: none; }

/* ─── LAYOUT ─────────────────────────── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }
.section { padding: 72px 0; }
.section-alt { background: var(--off-white); }
.section-dark { background: var(--navy); }

/* ─── BUTTONS ────────────────────────── */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 26px; border-radius: 7px; font-size: 14px; font-weight: 600; font-family: var(--font-body); cursor: pointer; border: none; transition: var(--transition); text-decoration: none; white-space: nowrap; }
.btn-primary { background: var(--teal); color: #fff; }
.btn-primary:hover { background: var(--teal-dark); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(0,180,179,.3); }
.btn-outline { border: 2px solid rgba(255,255,255,.4); color: #fff; background: transparent; }
.btn-outline:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.7); }
.btn-white { background: #fff; color: var(--navy); }
.btn-white:hover { background: var(--off-white); transform: translateY(-1px); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-deep); }

/* ─── LABELS ─────────────────────────── */
.label { font-family: var(--font-body); font-size: 11px; font-weight: 600; letter-spacing: 2.5px; text-transform: uppercase; color: var(--teal); display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.label::before { content: ''; width: 20px; height: 2px; background: var(--teal); border-radius: 2px; flex-shrink: 0; }
.label-w { color: #6ecde0; }
.label-w::before { background: #6ecde0; }

/* ─── NAVBAR ─────────────────────────── */
.navbar { background: var(--navy); position: sticky; top: 0; z-index: 500; border-bottom: 2px solid var(--teal); }
.navbar-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; padding: 0 2rem; max-width: 1400px; margin: 0 auto; }
.nav-logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.nav-logo img { height: 42px; width: auto; }
.nav-logo-text { color: #fff; font-size: 15px; font-weight: 600; font-family: var(--font-body); line-height: 1.2; }
.nav-logo-text span { display: block; color: rgba(255,255,255,.5); font-size: 10px; font-weight: 400; letter-spacing: 1px; }
.nav-links { display: flex; align-items: center; gap: 0; }
.nav-link { color: #ccedf5; font-size: 13px; font-weight: 500; padding: 0 16px; height: 68px; display: flex; align-items: center; text-decoration: none; transition: var(--transition); white-space: nowrap; position: relative; }
.nav-link:hover, .nav-link.active { color: #fff; }
.nav-link.active::after { content: ''; position: absolute; bottom: 0; left: 16px; right: 16px; height: 2px; background: var(--teal); border-radius: 2px 2px 0 0; }
.nav-dropdown { position: relative; }
.nav-dropdown-toggle { color: #ccedf5; font-size: 13px; font-weight: 500; padding: 0 16px; height: 68px; display: flex; align-items: center; gap: 5px; cursor: pointer; transition: var(--transition); white-space: nowrap; background: none; border: none; font-family: var(--font-body); }
.nav-dropdown-toggle:hover { color: #fff; }
.nav-dropdown-toggle svg { width: 12px; height: 12px; transition: transform .2s; opacity: .6; }
.nav-dropdown:hover .nav-dropdown-toggle svg { transform: rotate(180deg); }
.nav-dropdown-menu { display: none; position: absolute; top: 68px; left: 0; background: var(--navy); min-width: 220px; border-top: 2px solid var(--teal); border-radius: 0 0 var(--radius) var(--radius); box-shadow: 0 12px 32px rgba(0,0,0,.3); z-index: 600; }
.nav-dropdown:hover .nav-dropdown-menu { display: block; }
.nav-dropdown-menu a { display: block; color: #a8d8e8; font-size: 13px; padding: 12px 18px; text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.06); transition: var(--transition); }
.nav-dropdown-menu a:last-child { border-bottom: none; border-radius: 0 0 var(--radius) var(--radius); }
.nav-dropdown-menu a:hover { background: rgba(0,180,179,.15); color: #fff; padding-left: 24px; }
.nav-cta { background: var(--teal); color: #fff !important; padding: 10px 20px !important; border-radius: 7px; margin-left: 12px; height: auto !important; font-weight: 600 !important; }
.nav-cta:hover { background: var(--teal-dark) !important; }
.nav-cta::after { display: none !important; }
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; background: none; border: none; padding: 8px; }
.hamburger span { width: 24px; height: 2px; background: #fff; border-radius: 2px; transition: var(--transition); display: block; }
.mobile-menu { display: none; background: var(--navy-deep); border-top: 1px solid rgba(255,255,255,.1); }
.mobile-menu.open { display: block; }
.mobile-menu a { display: block; color: #ccedf5; font-size: 14px; padding: 14px 2rem; border-bottom: 1px solid rgba(255,255,255,.06); text-decoration: none; }
.mobile-menu a:hover { color: #fff; background: rgba(255,255,255,.04); }

/* ─── HERO ───────────────────────────── */
.hero { background: var(--navy); padding: 80px 0 72px; position: relative; overflow: hidden; }
.hero::before { content: ''; position: absolute; right: -10%; top: -20%; width: 60%; height: 140%; background: radial-gradient(ellipse, rgba(0,180,179,.12) 0%, transparent 65%); pointer-events: none; }
.hero-eyebrow { display: inline-flex; align-items: center; gap: 8px; color: var(--teal); font-size: 11px; font-weight: 600; letter-spacing: 2.5px; text-transform: uppercase; background: rgba(0,180,179,.1); border: 1px solid rgba(0,180,179,.25); padding: 6px 14px; border-radius: 20px; margin-bottom: 20px; }
.hero-title { color: #fff; margin-bottom: 10px; }
.hero-title em { color: var(--teal); font-style: normal; }
.hero-subtitle { color: rgba(255,255,255,.7); font-size: 18px; font-weight: 300; margin-bottom: 20px; font-family: var(--font-body); }
.hero-desc { color: rgba(255,255,255,.55); font-size: 15px; line-height: 1.8; max-width: 540px; margin-bottom: 32px; }
.hero-btns { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-two-col { display: grid; grid-template-columns: 1fr 420px; gap: 4rem; align-items: center; }

/* ─── CAROUSEL ───────────────────────── */
.carousel-wrap { position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: 0 20px 60px rgba(0,0,0,.4); }
.carousel { display: flex; transition: transform .5s ease; }
.carousel-slide { min-width: 100%; height: 380px; background-size: cover; background-position: center; position: relative; }
.carousel-slide::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(0,79,99,.2), rgba(0,79,99,.6)); }
.carousel-nav { position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; z-index: 2; }
.carousel-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.4); cursor: pointer; border: none; transition: var(--transition); }
.carousel-dot.active { background: var(--teal); width: 24px; border-radius: 4px; }
.carousel-btn { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; background: rgba(0,180,179,.7); border: none; color: #fff; width: 40px; height: 40px; border-radius: 50%; cursor: pointer; font-size: 18px; display: flex; align-items: center; justify-content: center; transition: var(--transition); }
.carousel-btn:hover { background: var(--teal); }
.carousel-prev { left: 14px; }
.carousel-next { right: 14px; }

/* ─── SERVICES STRIP ─────────────────── */
.services-strip { background: var(--white); border-bottom: 1px solid var(--light-border); padding: 24px 0; }
.strip-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.strip-label { font-size: 11px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; color: var(--navy); font-family: var(--font-body); }
.strip-link { color: var(--teal); font-size: 13px; font-weight: 600; text-decoration: none; }
.strip-grid { display: grid; grid-template-columns: repeat(9, 1fr); gap: 10px; }
.strip-item { background: var(--off-white); border: 1px solid var(--light-border); border-radius: 10px; padding: 14px 8px; text-align: center; text-decoration: none; display: flex; flex-direction: column; align-items: center; gap: 6px; transition: var(--transition); }
.strip-item:hover { border-color: var(--teal); background: #E6F9F9; transform: translateY(-2px); }
.strip-item span { font-size: 11px; color: var(--text); font-weight: 500; line-height: 1.3; font-family: var(--font-body); }

/* ─── CARDS ──────────────────────────── */
.cards-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.card { background: var(--white); border: 1px solid var(--light-border); border-radius: var(--radius); padding: 28px; transition: var(--transition); }
.card:hover { border-color: var(--teal); box-shadow: var(--shadow); transform: translateY(-3px); }
.card-icon { width: 52px; height: 52px; background: #E6F9F9; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 26px; margin-bottom: 16px; }
.card-title { font-family: var(--font-head); font-size: 18px; font-weight: 600; color: var(--navy); margin-bottom: 10px; }
.card-desc { font-size: 14px; line-height: 1.75; margin-bottom: 16px; }
.card-link { color: var(--teal); font-size: 13px; font-weight: 600; cursor: pointer; background: none; border: none; font-family: var(--font-body); display: inline-flex; align-items: center; gap: 5px; padding: 0; }
.card-link:hover { gap: 8px; }

/* ─── STATS ──────────────────────────── */
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px; background: rgba(255,255,255,.08); border-radius: var(--radius); overflow: hidden; margin-top: 40px; }
.stat { background: rgba(255,255,255,.04); padding: 28px 24px; text-align: center; }
.stat-num { font-family: var(--font-head); font-size: 40px; font-weight: 700; color: var(--teal); line-height: 1; margin-bottom: 6px; }
.stat-label { color: rgba(255,255,255,.6); font-size: 13px; font-weight: 500; }

/* ─── PAGE HERO (inner pages) ────────── */
.page-hero { background: var(--navy); padding: 56px 0 48px; }
.page-hero-label { color: var(--teal); font-size: 11px; font-weight: 600; letter-spacing: 2.5px; text-transform: uppercase; margin-bottom: 12px; font-family: var(--font-body); }
.page-hero h1 { color: #fff; margin-bottom: 12px; }
.page-hero p { color: rgba(255,255,255,.6); font-size: 16px; max-width: 640px; line-height: 1.8; }

/* ─── SERVICES PAGE ──────────────────── */
.svc-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 32px; }
.svc-card { background: var(--white); border: 1px solid var(--light-border); border-radius: var(--radius); padding: 28px; cursor: pointer; transition: var(--transition); }
.svc-card:hover { border-color: var(--teal); box-shadow: var(--shadow); transform: translateY(-3px); }
.svc-card.active { border-color: var(--teal); border-width: 2px; }

/* ─── MODAL ──────────────────────────── */
.modal-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.55); z-index: 1000; align-items: center; justify-content: center; padding: 20px; }
.modal-overlay.active { display: flex; }
.modal { background: var(--white); border-radius: var(--radius-lg); max-width: 520px; width: 100%; padding: 0; overflow: hidden; box-shadow: 0 24px 64px rgba(0,0,0,.3); position: relative; animation: modalIn .25s ease; }
@keyframes modalIn { from { opacity: 0; transform: translateY(20px) scale(.97); } to { opacity: 1; transform: translateY(0) scale(1); } }
.modal-header { background: linear-gradient(135deg, var(--navy), #006B82); padding: 32px; display: flex; align-items: center; gap: 16px; }
.modal-header-icon { width: 56px; height: 56px; background: rgba(255,255,255,.12); border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 28px; flex-shrink: 0; }
.modal-header h3 { color: #fff; font-size: 22px; margin-bottom: 2px; }
.modal-header p { color: rgba(255,255,255,.6); font-size: 12px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; }
.modal-close { position: absolute; top: 16px; right: 16px; background: rgba(255,255,255,.15); border: none; border-radius: 50%; width: 32px; height: 32px; cursor: pointer; color: #fff; font-size: 16px; display: flex; align-items: center; justify-content: center; }
.modal-close:hover { background: rgba(255,255,255,.25); }
.modal-body { padding: 28px 32px; }
.modal-body p { font-size: 15px; line-height: 1.85; color: var(--muted); margin-bottom: 24px; }
.modal-footer { display: flex; gap: 12px; flex-wrap: wrap; }

/* ─── REFERRAL BAR ───────────────────── */
.referral-bar { background: #E6F9F9; border: 1px solid var(--teal); border-radius: var(--radius); padding: 28px 32px; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.referral-bar h3 { font-family: var(--font-head); font-size: 20px; color: var(--navy); margin-bottom: 4px; }
.referral-bar p { font-size: 14px; color: var(--muted); }

/* ─── CONTACT BAR ────────────────────── */
.contact-bar { background: var(--navy); padding: 28px 0; border-top: 2px solid var(--teal); }
.contact-bar-inner { display: grid; grid-template-columns: 1fr 1fr 1fr auto; gap: 2rem; align-items: center; }
.contact-item strong { color: #fff; font-size: 12px; display: flex; align-items: center; gap: 6px; margin-bottom: 4px; }
.contact-item a, .contact-item span { color: rgba(255,255,255,.55); font-size: 13px; text-decoration: none; }
.contact-item a:hover { color: #fff; }

/* ─── FOOTER ─────────────────────────── */
footer { background: #002535; padding: 48px 0 20px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem; margin-bottom: 40px; }
.footer-brand p { color: rgba(255,255,255,.35); font-size: 13px; line-height: 1.7; margin-top: 10px; max-width: 240px; }
.footer-logo { font-family: var(--font-head); color: #fff; font-size: 24px; font-weight: 700; letter-spacing: 1px; }
.footer-logo span { color: var(--teal); }
.footer-col h5 { color: #fff; font-size: 11px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 16px; font-family: var(--font-body); }
.footer-col a { display: block; color: rgba(255,255,255,.4); font-size: 13px; text-decoration: none; margin-bottom: 10px; transition: var(--transition); }
.footer-col a:hover { color: rgba(255,255,255,.85); padding-left: 4px; }
.socials { display: flex; gap: 10px; margin-top: 16px; }
.socials a { width: 36px; height: 36px; background: rgba(0,180,179,.15); border: 1px solid rgba(0,180,179,.25); border-radius: 8px; display: flex; align-items: center; justify-content: center; color: var(--teal); font-size: 16px; text-decoration: none; transition: var(--transition); }
.socials a:hover { background: var(--teal); color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.06); padding-top: 20px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; }
.footer-bottom span { color: rgba(255,255,255,.25); font-size: 12px; }
.footer-bottom a { color: rgba(255,255,255,.25); font-size: 12px; text-decoration: none; }
.footer-bottom a:hover { color: rgba(255,255,255,.6); }

/* ─── RESPONSIVE ─────────────────────── */
@media (max-width: 1024px) {
  .hero-two-col { grid-template-columns: 1fr; }
  .carousel-wrap { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-bar-inner { grid-template-columns: 1fr 1fr; gap: 1rem; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .svc-grid { grid-template-columns: repeat(2, 1fr); }
  .strip-grid { grid-template-columns: repeat(5, 1fr); }
}
@media (max-width: 768px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .hero { padding: 48px 0; }
  .section { padding: 48px 0; }
  .cards-grid { grid-template-columns: 1fr; }
  .svc-grid { grid-template-columns: 1fr 1fr; }
  .strip-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .contact-bar-inner { grid-template-columns: 1fr; }
  .referral-bar { flex-direction: column; text-align: center; }
}
@media (max-width: 480px) {
  .container { padding: 0 1rem; }
  .svc-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .strip-grid { grid-template-columns: repeat(2, 1fr); }
  h1 { font-size: 28px; }
}
