/*
Theme Name:   MANDIE Child
Description:  Child theme for MANDIE — Mobile Water Quality Laboratory
Author:       MANDIE
Template:     hello-elementor
Version:      2.0.0
Text Domain:  mandie-child
*/

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800&family=Open+Sans:wght@400;500;600&display=swap');

:root {
  --blue:   #1A6B9A;
  --teal:   #29B8D4;
  --lcyan:  #7DD8EC;
  --navy:   #0D3F5C;
  --green:  #5BAF23;
  --dgreen: #3D7A14;
  --bg:     #EFF9FC;
  --tdark:  #0C1E28;
  --tmid:   #3A5A68;
  --foot:   #071820;
  --sh1: 0 2px 12px rgba(13,63,92,.08);
  --sh2: 0 6px 28px rgba(13,63,92,.14);
  --sh3: 0 12px 48px rgba(13,63,92,.22);
  --r:   14px;
  --rsm: 8px;
  --rlg: 22px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Open Sans', system-ui, sans-serif; color: var(--tdark); background: #fff; line-height: 1.65; font-size: 16px; -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4 { font-family: 'Montserrat', system-ui, sans-serif; line-height: 1.2; color: var(--tdark); }
h1 { font-size: clamp(2rem, 4.5vw, 3.5rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3vw, 2.5rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 600; }
p { color: var(--tmid); line-height: 1.78; }
a { text-decoration: none; color: inherit; cursor: pointer; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul { list-style: none; }

/* ── LAYOUT ─── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 28px; }
.section { padding: 90px 0; }
.section-sm { padding: 56px 0; }
.section-bg { background: var(--bg); }
.section-gray { background: #f2f6f8; }
.text-center { text-align: center; }

/* ── GRID ─── */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
@media (max-width: 960px) { .grid-3 { grid-template-columns: 1fr 1fr; } .grid-4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

/* ── OVERLINE ─── */
.overline { font-family: 'Montserrat', sans-serif; font-size: .7rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--green); display: block; margin-bottom: 12px; }

/* ── SECTION HEADER ─── */
.sec-head { text-align: center; margin-bottom: 52px; }
.sec-head h2 { margin-bottom: 14px; }
.sec-head p { max-width: 600px; margin: 0 auto; color: var(--tmid); }

/* ── BUTTONS ─── */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 13px 26px; border-radius: var(--rsm); font-family: 'Montserrat', sans-serif; font-weight: 600; font-size: .86rem; cursor: pointer; transition: all .22s; border: 2px solid transparent; white-space: nowrap; }
.btn-primary { background: var(--green); color: #fff; border-color: var(--green); }
.btn-primary:hover { background: var(--dgreen); border-color: var(--dgreen); transform: translateY(-1px); }
.btn-teal { background: var(--teal); color: #fff; border-color: var(--teal); }
.btn-teal:hover { background: var(--blue); border-color: var(--blue); transform: translateY(-1px); }
.btn-blue { background: var(--blue); color: #fff; border-color: var(--blue); }
.btn-blue:hover { background: var(--navy); border-color: var(--navy); }
.btn-outline { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.btn-outline:hover { background: rgba(255,255,255,.12); border-color: #fff; }
.btn-outline-dark { background: transparent; color: var(--blue); border-color: var(--blue); }
.btn-outline-dark:hover { background: var(--blue); color: #fff; }
.btn-lg { padding: 16px 36px; font-size: .94rem; }
.btn-block { width: 100%; justify-content: center; }

/* ── NAVBAR ─── */
.navbar { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; background: #fff; height: 72px; display: flex; align-items: center; transition: box-shadow .25s; border-bottom: 1px solid rgba(13,63,92,.07); }
.navbar--scrolled { box-shadow: 0 2px 20px rgba(13,63,92,.12); }
.navbar__inner { display: flex; align-items: center; width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 28px; }
.navbar__logo { display: flex; align-items: center; cursor: pointer; flex-shrink: 0; margin-right: 28px; }
.navbar__logo img { height: 52px; width: auto; object-fit: contain; }
.navbar__links { display: flex; align-items: center; gap: 2px; flex: 1; }
.navbar__links a { padding: 8px 13px; border-radius: 6px; font-family: 'Montserrat', sans-serif; font-weight: 600; font-size: .83rem; color: var(--tmid); transition: all .2s; position: relative; }
.navbar__links a::after { content: ''; position: absolute; bottom: 4px; left: 13px; right: 13px; height: 2px; background: var(--teal); border-radius: 2px; transform: scaleX(0); transition: transform .22s; }
.navbar__links a:hover, .navbar__links a.active { color: var(--blue); }
.navbar__links a:hover::after, .navbar__links a.active::after { transform: scaleX(1); }
.navbar__right { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.navbar__cta { padding: 9px 20px; font-size: .82rem; }
.lang-switch { display: flex; align-items: center; border: 1.5px solid #daeaf0; border-radius: 6px; overflow: hidden; }
.lang-switch button { padding: 6px 11px; font-family: 'Montserrat', sans-serif; font-weight: 600; font-size: .76rem; color: var(--tmid); transition: all .18s; border: none; background: none; cursor: pointer; }
.lang-switch button.active { background: var(--teal); color: #fff; }
.lang-switch button:hover:not(.active) { background: var(--bg); color: var(--blue); }
.lang-switch .sep { color: #c8dde6; font-size: .85rem; padding: 0 1px; }
.hamburger { display: none; flex-direction: column; gap: 5px; padding: 6px; cursor: pointer; border: none; background: none; }
.hamburger span { display: block; width: 22px; height: 2px; background: var(--tdark); border-radius: 2px; transition: all .25s; }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
@media (max-width: 860px) {
  .hamburger { display: flex; }
  .navbar__links { position: fixed; top: 72px; left: 0; right: 0; background: #fff; flex-direction: column; align-items: stretch; gap: 0; padding: 8px 20px 16px; box-shadow: 0 8px 32px rgba(13,63,92,.12); transform: translateY(-110%); opacity: 0; pointer-events: none; transition: transform .28s, opacity .28s; }
  .navbar__links.open { transform: translateY(0); opacity: 1; pointer-events: all; }
  .navbar__links a { padding: 12px 8px; border-bottom: 1px solid #eef4f7; border-radius: 0; }
  .navbar__links a::after { display: none; }
  .navbar__cta { display: none; }
}

/* ── HERO ─── */
.hero { min-height: 100vh; position: relative; overflow: hidden; display: flex; align-items: center; background: linear-gradient(155deg, #0A3349 0%, #1A6B9A 52%, #29B8D4 100%); padding-top: 72px; }
.hero__bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.hero__overlay { position: absolute; inset: 0; background: linear-gradient(155deg, rgba(10,51,73,.96) 0%, rgba(26,107,154,.88) 55%, rgba(41,184,212,.8) 100%); }
.hero__rings { position: absolute; right: -40px; top: 50%; transform: translateY(-52%); pointer-events: none; }
.hero__rings svg { width: 580px; height: 580px; opacity: .18; }
.hero__content { position: relative; z-index: 2; max-width: 760px; padding: 80px 0 180px; }
.hero__overline { font-family: 'Montserrat', sans-serif; font-size: .72rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--lcyan); display: block; margin-bottom: 20px; }
.hero__content h1 { color: #fff; margin-bottom: 22px; }
.hero__sub { color: rgba(255,255,255,.82); font-size: 1.05rem; line-height: 1.82; margin-bottom: 38px; max-width: 620px; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__stats { display: flex; gap: 44px; flex-wrap: wrap; margin-top: 52px; padding-top: 36px; border-top: 1px solid rgba(255,255,255,.14); }
.hero__stat-n { font-family: 'Montserrat', sans-serif; font-weight: 800; font-size: 1.3rem; color: #fff; display: block; }
.hero__stat-l { font-size: .74rem; color: rgba(255,255,255,.6); text-transform: uppercase; letter-spacing: .1em; margin-top: 3px; display: block; }
.hero__wave { position: absolute; bottom: -1px; left: 0; right: 0; pointer-events: none; }
.hero__wave svg { display: block; width: 100%; height: auto; }

/* ── PAGE HEADER ─── */
.page-header { padding: 148px 0 88px; background: linear-gradient(155deg, #0A3349 0%, #1A6B9A 52%, #29B8D4 100%); position: relative; overflow: hidden; }
.page-header .container { position: relative; z-index: 2; }
.page-header h1 { color: #fff; margin-bottom: 16px; }
.page-header .ph-sub { color: rgba(255,255,255,.82); font-size: 1.05rem; max-width: 580px; line-height: 1.75; }
.ph-deco { position: absolute; right: 4%; top: 50%; transform: translateY(-50%); opacity: .12; pointer-events: none; }
.page-header__wave { position: absolute; bottom: -1px; left: 0; right: 0; }
.page-header__wave svg { display: block; width: 100%; height: auto; }

/* ── IMAGE PLACEHOLDER ─── */
.img-ph { background: repeating-linear-gradient(45deg, #cce9f3, #cce9f3 10px, #e0f3fa 10px, #e0f3fa 20px); display: flex; align-items: center; justify-content: center; border-radius: var(--r); overflow: hidden; }
.img-ph img { width: 100%; height: 100%; object-fit: cover; }
.img-ph span { font-family: 'Courier New', monospace; font-size: .7rem; color: var(--tmid); background: rgba(255,255,255,.88); padding: 4px 12px; border-radius: 4px; text-align: center; max-width: 85%; }

/* ── CARDS ─── */
.card { background: #fff; border-radius: var(--r); box-shadow: var(--sh1); padding: 28px; transition: box-shadow .22s, transform .22s; }
.card:hover { box-shadow: var(--sh2); transform: translateY(-4px); }
.card-teal { border-top: 4px solid var(--teal); }
.card-green { border-top: 4px solid var(--green); }
.card-blue { border-top: 4px solid var(--blue); }

/* ── SERVICE CARD ─── */
.svc-card { background: #fff; border-radius: var(--r); border-top: 4px solid var(--teal); box-shadow: var(--sh1); overflow: hidden; transition: box-shadow .22s, transform .22s; }
.svc-card:hover { box-shadow: var(--sh2); transform: translateY(-4px); }
.svc-card__img { height: 180px; overflow: hidden; }
.svc-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.svc-card:hover .svc-card__img img { transform: scale(1.04); }
.svc-card__body { padding: 24px; }
.svc-card__body h3 { margin-bottom: 8px; }
.svc-card__icon { font-size: 1.4rem; margin-bottom: 10px; }
.svc-card__desc { font-size: .88rem; margin-bottom: 16px; }

/* ── TAGS ─── */
.tag-list { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 12px; }
.tag { background: var(--bg); color: var(--blue); font-size: .68rem; font-weight: 600; font-family: 'Montserrat', sans-serif; padding: 3px 9px; border-radius: 20px; border: 1px solid #b8dde9; }

/* ── STEP NUMBER ─── */
.step-num { width: 58px; height: 58px; border-radius: 50%; background: linear-gradient(135deg, var(--teal), var(--blue)); display: flex; align-items: center; justify-content: center; font-family: 'Montserrat', sans-serif; font-weight: 800; font-size: 1.4rem; color: #fff; flex-shrink: 0; box-shadow: 0 4px 16px rgba(41,184,212,.35); }

/* ── STAT ITEM ─── */
.stat-item { text-align: center; padding: 20px 14px; background: #fff; border-radius: var(--r); box-shadow: var(--sh1); border-top: 3px solid var(--teal); }
.stat-num { font-family: 'Montserrat', sans-serif; font-weight: 800; font-size: 1.9rem; color: var(--teal); display: block; line-height: 1.1; }
.stat-label { font-size: .78rem; color: var(--tmid); margin-top: 6px; display: block; }

/* ── ABOUT 2-COL ─── */
.about-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.about-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 22px; }
.about-btns { display: flex; gap: 14px; margin-top: 28px; flex-wrap: wrap; }
@media (max-width: 860px) { .about-2col { grid-template-columns: 1fr; gap: 40px; } }

/* ── PHOTO STRIP ─── */
.photo-strip { display: grid; grid-template-columns: repeat(4, 1fr); height: 230px; overflow: hidden; }
.photo-strip-item { overflow: hidden; }
.photo-strip-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; display: block; }
.photo-strip-item:hover img { transform: scale(1.05); }
@media (max-width: 600px) { .photo-strip { grid-template-columns: 1fr 1fr; height: 280px; } }

/* ── CTA BANNER ─── */
.cta-banner { padding: 80px 0; background: linear-gradient(135deg, var(--navy), var(--blue) 60%, var(--teal)); text-align: center; }
.cta-banner h2 { color: #fff; margin-bottom: 14px; }
.cta-banner .sub-p { color: rgba(255,255,255,.78); margin-bottom: 32px; }
.cta-banner__btns { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; margin-top: 28px; }

/* ── MISSION QUOTE ─── */
.mission-quote { border-left: 5px solid var(--green); padding: 22px 26px; background: #fff; border-radius: 0 var(--r) var(--r) 0; box-shadow: var(--sh1); margin: 28px 0; font-style: italic; color: var(--tmid); font-size: 1.02rem; line-height: 1.82; }

/* ── NUMBERED STEP ─── */
.num-step { display: flex; align-items: flex-start; gap: 20px; padding: 24px; background: #fff; border-radius: var(--r); box-shadow: var(--sh1); }
.num-step__n { width: 50px; height: 50px; flex-shrink: 0; border-radius: 50%; background: #fff; border: 2.5px solid var(--green); display: flex; align-items: center; justify-content: center; font-family: 'Montserrat', sans-serif; font-weight: 800; font-size: 1.1rem; color: var(--teal); }

/* ── HELP CARD ─── */
.help-card { text-align: center; padding: 36px 24px; }
.help-card__icon { font-size: 2.4rem; margin-bottom: 14px; }

/* ── CLOSING CTA ─── */
.closing-cta { padding: 92px 0; text-align: center; background: linear-gradient(160deg, #0A3349, var(--blue) 55%, var(--teal)); }
.closing-cta h2 { color: #fff; margin-bottom: 14px; }
.closing-cta .sub-p { color: rgba(255,255,255,.78); margin-bottom: 36px; max-width: 580px; margin-left: auto; margin-right: auto; }
.closing-cta__btns { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; }

/* ── CONTACT ─── */
.contact-2col { display: grid; grid-template-columns: 5fr 7fr; gap: 32px; align-items: start; }
.contact-info-panel { border-radius: var(--r); background: linear-gradient(160deg, var(--navy), var(--blue)); padding: 36px; color: #fff; }
.contact-info-panel h3 { color: #fff; margin-bottom: 28px; }
.cip-item { display: flex; gap: 14px; margin-bottom: 22px; align-items: flex-start; }
.cip-item .ic { font-size: 1.2rem; flex-shrink: 0; margin-top: 2px; }
.cip-item strong { color: rgba(255,255,255,.9); display: block; margin-bottom: 3px; font-size: .85rem; font-family: 'Montserrat', sans-serif; font-weight: 600; }
.cip-item p, .cip-item a { color: rgba(255,255,255,.75); font-size: .88rem; line-height: 1.65; }
.cip-item a:hover { color: #fff; text-decoration: underline; }
.map-ph { height: 190px; margin: 20px 0; border-radius: var(--rsm); background: repeating-linear-gradient(45deg, rgba(125,216,236,.12), rgba(125,216,236,.12) 8px, rgba(41,184,212,.06) 8px, rgba(41,184,212,.06) 16px); display: flex; align-items: center; justify-content: center; font-size: 2rem; border: 1.5px solid rgba(125,216,236,.25); }
.wa-note-card { background: rgba(91,175,35,.22); border-radius: var(--rsm); padding: 14px 18px; margin-top: 20px; font-size: .84rem; color: rgba(255,255,255,.9); line-height: 1.6; }
.contact-form-panel { background: #fff; border-radius: var(--r); box-shadow: var(--sh2); padding: 36px; }
.contact-form-panel h3 { margin-bottom: 26px; }
@media (max-width: 860px) { .contact-2col { grid-template-columns: 1fr; } }

/* ── FORMS ─── */
.form-wrapper { max-width: 880px; margin: 0 auto; }
.form-section { background: #fff; border-radius: var(--r); box-shadow: var(--sh1); padding: 32px; margin-bottom: 24px; }
.form-section-title { font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: .82rem; color: var(--blue); text-transform: uppercase; letter-spacing: .09em; padding-bottom: 10px; border-bottom: 2px solid var(--bg); margin-bottom: 22px; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-family: 'Montserrat', sans-serif; font-weight: 600; font-size: .8rem; color: var(--tdark); margin-bottom: 6px; }
.form-group input, .form-group select, .form-group textarea { width: 100%; padding: 11px 14px; border: 1.5px solid #cddde6; border-radius: var(--rsm); font-family: 'Open Sans', sans-serif; font-size: .9rem; color: var(--tdark); background: #fff; transition: border-color .2s, box-shadow .2s; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(41,184,212,.14); }
.form-group textarea { resize: vertical; min-height: 130px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-row-3 { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 20px; }
.checkbox-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
.checkbox-item { display: flex; align-items: center; gap: 10px; cursor: pointer; font-size: .87rem; color: var(--tmid); }
.checkbox-item input[type="checkbox"] { width: 17px; height: 17px; accent-color: var(--teal); cursor: pointer; flex-shrink: 0; }
.sel-all-btn { font-size: .76rem; font-weight: 600; color: var(--teal); font-family: 'Montserrat', sans-serif; background: var(--bg); border: 1.5px solid var(--lcyan); border-radius: 4px; padding: 4px 12px; cursor: pointer; transition: all .2s; }
.sel-all-btn:hover { background: var(--teal); color: #fff; border-color: var(--teal); }
.form-note { text-align: center; color: var(--tmid); font-size: .8rem; margin-top: 14px; }
.form-success { background: linear-gradient(135deg, var(--green), var(--dgreen)); color: #fff; padding: 40px; border-radius: var(--r); text-align: center; }
.form-success .fs-icon { font-size: 3rem; margin-bottom: 14px; }
.form-success h3 { color: #fff; margin-bottom: 10px; }
.form-success p { color: rgba(255,255,255,.88); }
@media (max-width: 600px) { .form-row, .form-row-3 { grid-template-columns: 1fr; } .checkbox-grid { grid-template-columns: 1fr; } }

/* ── FOOTER ─── */
.footer { background: var(--foot); color: #fff; padding-top: 72px; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 40px; padding-bottom: 56px; border-bottom: 1px solid rgba(255,255,255,.07); }
.footer__logo-box { display: inline-block; background: #fff; padding: 7px 14px; border-radius: 8px; margin-bottom: 18px; }
.footer__logo-box img { height: 44px; width: auto; }
.footer__tagline { color: rgba(255,255,255,.55); font-size: .86rem; line-height: 1.72; margin-bottom: 22px; }
.footer__social { display: flex; gap: 10px; }
.footer__social a { width: 36px; height: 36px; border-radius: 8px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,.6); font-size: .82rem; transition: all .2s; }
.footer__social a:hover { background: var(--teal); border-color: var(--teal); color: #fff; }
.footer__col h4 { font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; color: var(--lcyan); margin-bottom: 18px; }
.footer__col ul { display: flex; flex-direction: column; gap: 10px; }
.footer__col ul li a { color: rgba(255,255,255,.6); font-size: .86rem; transition: color .2s; }
.footer__col ul li a:hover { color: #fff; }
.footer__ci { display: flex; gap: 11px; margin-bottom: 14px; align-items: flex-start; }
.footer__ci .ic { color: var(--teal); font-size: .9rem; margin-top: 2px; flex-shrink: 0; }
.footer__ci p, .footer__ci a { color: rgba(255,255,255,.58); font-size: .83rem; line-height: 1.62; }
.footer__ci a:hover { color: #fff; }
.footer__bottom { padding: 22px 0; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; }
.footer__bottom p { color: rgba(255,255,255,.38); font-size: .78rem; }
.footer__bottom strong { color: rgba(255,255,255,.65); font-style: italic; }
@media (max-width: 900px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer__grid { grid-template-columns: 1fr; } }

/* ── WHATSAPP FAB ─── */
.wa-fab { position: fixed; bottom: 28px; right: 28px; z-index: 999; width: 56px; height: 56px; border-radius: 50%; background: #25D366; box-shadow: 0 4px 20px rgba(37,211,102,.38); display: flex; align-items: center; justify-content: center; transition: transform .22s, box-shadow .22s; }
.wa-fab:hover { transform: scale(1.1); box-shadow: 0 6px 28px rgba(37,211,102,.52); }
.wa-fab svg { width: 28px; height: 28px; fill: #fff; }

/* ── ANIMATIONS ─── */
.anim { opacity: 0; transform: translateY(22px); transition: opacity .5s ease, transform .5s ease; }
.anim.in { opacity: 1; transform: none; }
.anim-d1 { transition-delay: .08s; }
.anim-d2 { transition-delay: .16s; }
.anim-d3 { transition-delay: .24s; }

/* ── WordPress overrides ─── */
.site-header, .site-footer, .wp-site-blocks > header, .wp-site-blocks > footer { display: none !important; }
.wp-site-blocks { padding: 0 !important; }
.entry-content { margin: 0 !important; padding: 0 !important; }
body.page { padding-top: 0 !important; }
