/*
Theme Name: Modern Pools Premium
Theme URI: https://modernpools.com.sg/
Author: Modern Pools
Description: A premium, responsive WordPress theme for Modern Pools Singapore, featuring services, capabilities, projects, FAQs and a quotation enquiry form.
Version: 1.5.4
Requires at least: 6.2
Tested up to: 6.8
Requires PHP: 7.3
Text Domain: modern-pools-premium
*/

:root {
  --mp-navy: #061a2f;
  --mp-navy-2: #0b2a46;
  --mp-blue: #0b79b7;
  --mp-cyan: #4ad5ed;
  --mp-ice: #eaf8fb;
  --mp-sand: #e9dfcf;
  --mp-white: #fff;
  --mp-ink: #13202b;
  --mp-muted: #64717d;
  --mp-line: rgba(9, 44, 73, .14);
  --mp-radius: 22px;
  --mp-shadow: 0 24px 70px rgba(4, 22, 39, .14);
  --mp-container: 1240px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--mp-ink);
  background: var(--mp-white);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
body.menu-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
button, input, textarea, select { font: inherit; }
.container { width: min(calc(100% - 40px), var(--mp-container)); margin-inline: auto; }
.skip-link { position: absolute; left: -9999px; top: 12px; z-index: 999; background: #fff; padding: 12px 18px; }
.skip-link:focus { left: 12px; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  color: var(--mp-blue);
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .15em;
  text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 34px; height: 2px; background: currentColor; }
.section { padding: 110px 0; }
.section--soft { background: #f5f9fb; }
.section--dark { color: #fff; background: var(--mp-navy); }
.section-heading { max-width: 760px; margin-bottom: 48px; }
.section-heading--split { max-width: none; display: flex; align-items: end; justify-content: space-between; gap: 40px; }
.section-heading h2, .split-copy h2, .contact-copy h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  font-size: clamp(2.3rem, 5vw, 4.8rem);
  line-height: 1.02;
  letter-spacing: -.045em;
}
.section-heading p { max-width: 560px; margin: 18px 0 0; color: var(--mp-muted); font-size: 1.05rem; }
.section--dark .section-heading p { color: rgba(255,255,255,.68); }

/* Header */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  color: #fff;
  transition: background .25s ease, box-shadow .25s ease, color .25s ease;
}
.site-header.is-scrolled { color: var(--mp-ink); background: rgba(255,255,255,.94); box-shadow: 0 8px 35px rgba(0,0,0,.08); backdrop-filter: blur(16px); }
.header-inner { min-height: 88px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.site-branding { display: flex; align-items: center; gap: 12px; position: relative; z-index: 102; }
.custom-logo-link img { width: auto; max-height: 52px; }
.default-logo { width: auto; height: 64px; padding: 4px 10px; border-radius: 10px; object-fit: contain; background: rgba(255,255,255,.93); }
.brand-mark { width: 46px; height: 46px; display: grid; place-items: center; border: 2px solid currentColor; border-radius: 50% 50% 47% 53% / 58% 58% 42% 42%; font-weight: 800; font-size: .82rem; letter-spacing: -.05em; }
.brand-copy { display: grid; line-height: 1; }
.brand-copy strong { font-size: 1rem; letter-spacing: .08em; }
.brand-copy small { margin-top: 5px; font-size: .56rem; letter-spacing: .2em; text-transform: uppercase; opacity: .7; }
.primary-menu { display: flex; align-items: center; gap: 30px; margin: 0; padding: 0; list-style: none; }
.primary-menu a { font-size: .78rem; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.primary-menu a:hover { color: var(--mp-cyan); }
.header-cta { padding: 13px 19px; border: 1px solid currentColor; border-radius: 999px; font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.header-cta:hover { color: var(--mp-navy); background: #fff; }
.site-header.is-scrolled .header-cta:hover { color: #fff; background: var(--mp-navy); }
.menu-toggle { display: none; width: 46px; height: 46px; padding: 0; border: 0; background: none; color: inherit; position: relative; z-index: 102; }
.menu-toggle span { display: block; width: 25px; height: 2px; margin: 5px auto; background: currentColor; transition: .2s; }

/* Hero */
.hero { min-height: 100svh; display: grid; align-items: end; position: relative; isolation: isolate; color: #fff; background: var(--mp-navy); overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -2; background: var(--hero-image) center/cover no-repeat; transform: scale(1.02); }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(3,20,36,.94) 0%, rgba(3,20,36,.7) 38%, rgba(3,20,36,.1) 74%), linear-gradient(0deg, rgba(3,20,36,.75), transparent 45%); }
.hero-content { width: min(780px, 100%); padding: 190px 0 110px; }
.hero-kicker { margin: 0 0 24px; font-size: .8rem; font-weight: 800; letter-spacing: .17em; text-transform: uppercase; color: var(--mp-cyan); }
.hero h1 { margin: 0; max-width: 760px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(3.4rem, 8.3vw, 7.5rem); font-weight: 500; line-height: .9; letter-spacing: -.06em; }
.hero-text { max-width: 610px; margin: 28px 0 34px; color: rgba(255,255,255,.82); font-size: clamp(1rem, 1.7vw, 1.2rem); }
.button-row { display: flex; flex-wrap: wrap; gap: 13px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 54px; padding: 0 25px; border: 1px solid transparent; border-radius: 999px; font-size: .76rem; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; transition: transform .2s, background .2s, color .2s; }
.button:hover { transform: translateY(-2px); }
.button--primary { color: var(--mp-navy); background: var(--mp-cyan); }
.button--primary:hover { background: #fff; }
.button--ghost { color: #fff; border-color: rgba(255,255,255,.6); }
.button--ghost:hover { color: var(--mp-navy); background: #fff; }
.hero-meta { position: absolute; right: 42px; bottom: 42px; display: flex; gap: 30px; writing-mode: vertical-rl; font-size: .65rem; letter-spacing: .13em; text-transform: uppercase; opacity: .72; }

/* Services */
.service-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--mp-line); border-bottom: 1px solid var(--mp-line); }
.service-grid--core { grid-template-columns: repeat(3, 1fr); }
.service-card { min-height: 310px; padding: 36px 28px 30px; border-right: 1px solid var(--mp-line); position: relative; transition: color .25s, background .25s; }
.service-card:last-child { border-right: 0; }
.service-number { display: block; margin-bottom: 70px; color: var(--mp-blue); font-size: .74rem; font-weight: 800; letter-spacing: .15em; }
.service-card h3 { margin: 0 0 12px; font-family: Georgia, serif; font-size: 2rem; font-weight: 500; }
.service-card p { margin: 0; color: var(--mp-muted); font-size: .94rem; }
.service-card::after { content: "\2197"; position: absolute; right: 28px; top: 30px; font-size: 1.25rem; color: var(--mp-blue); }
.service-card:hover { color: #fff; background: var(--mp-navy); }
.service-card:hover p, .service-card:hover .service-number { color: rgba(255,255,255,.68); }

/* Split */
.split { display: grid; grid-template-columns: 1fr 1fr; min-height: 720px; }
.split-media { background: var(--split-image) center/cover no-repeat; min-height: 520px; }
.split-copy { display: flex; flex-direction: column; justify-content: center; padding: 80px max(40px, calc((100vw - var(--mp-container))/2)); padding-left: clamp(40px, 7vw, 110px); background: var(--mp-navy); color: #fff; }
.split-copy p { max-width: 560px; color: rgba(255,255,255,.68); }
.feature-list { display: grid; gap: 14px; margin: 30px 0 0; padding: 0; list-style: none; }
.feature-list li { display: flex; align-items: center; gap: 13px; border-top: 1px solid rgba(255,255,255,.15); padding-top: 14px; }
.feature-list li::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--mp-cyan); box-shadow: 0 0 0 5px rgba(74,213,237,.12); }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--mp-line); border: 1px solid var(--mp-line); border-radius: var(--mp-radius); overflow: hidden; }
.stats--three { grid-template-columns: repeat(3, 1fr); }
.stats--five { grid-template-columns: repeat(5, 1fr); }
.stat { padding: 42px 28px; background: #fff; }
.stat strong { display: block; color: var(--mp-navy); font-family: Georgia, serif; font-size: clamp(2.8rem, 5vw, 4.7rem); font-weight: 500; line-height: 1; }
.stat span { display: block; margin-top: 12px; color: var(--mp-muted); font-size: .75rem; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; }
.stat small { display: block; margin-top: 10px; color: var(--mp-blue); font-size: .7rem; font-weight: 700; }
.stat--experience { background: linear-gradient(145deg, #fff, #eaf8fb); }
.stat--trust { background: linear-gradient(145deg, #fff, #f5fafc); }
.stat--trust strong { padding-top: .35em; font-size: clamp(1.9rem, 3.2vw, 3.5rem); line-height: 1.05; }

/* Clients */
.client-section { background: #fff; }
.client-intro { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(50px, 10vw, 140px); align-items: start; }
.client-intro h2 { max-width: 690px; margin: 0; color: #b38d43; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2.6rem, 5vw, 5rem); font-weight: 500; line-height: 1.02; letter-spacing: -.045em; }
.client-intro h2 em { font-weight: 500; }
.client-copy { padding-top: 28px; color: var(--mp-muted); font-size: 1.05rem; }
.client-copy p { margin: 0 0 28px; }
.client-logos { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; align-items: stretch; margin-top: 72px; }
.client-logo { min-height: 150px; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 24px 16px; border: 1px solid var(--mp-line); border-radius: 16px; color: #30363b; background: #fff; text-align: center; filter: grayscale(1); transition: transform .2s ease, border-color .2s ease, filter .2s ease; }
.client-logo:hover { border-color: rgba(11,121,183,.42); filter: grayscale(0); transform: translateY(-3px); }
.client-logo strong { font-size: clamp(1.3rem, 2vw, 2rem); line-height: 1; letter-spacing: -.03em; }
.client-logo span { margin-top: 9px; color: var(--mp-muted); font-size: .62rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.client-logo--capitaland strong { font-family: Georgia, serif; font-size: clamp(1.7rem, 2.5vw, 2.5rem); font-weight: 500; }
.client-logo--esr strong { font-size: clamp(2rem, 3vw, 3.2rem); letter-spacing: .06em; }
.client-logo--sre { align-items: flex-start; text-align: left; }

/* Projects */
.text-link { color: var(--mp-cyan); border-bottom: 1px solid currentColor; padding-bottom: 4px; font-size: .76rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; white-space: nowrap; }
.project-grid { display: grid; grid-template-columns: 1.2fr .8fr; grid-template-rows: repeat(2, 330px); gap: 20px; }
.project-card { position: relative; overflow: hidden; border-radius: var(--mp-radius); min-height: 300px; }
.project-card:first-child { grid-row: 1 / 3; }
.project-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.project-card:hover img { transform: scale(1.035); }
.project-overlay { position: absolute; inset: auto 0 0; padding: 60px 28px 26px; color: #fff; background: linear-gradient(transparent, rgba(3,20,36,.9)); }
.project-overlay small { color: var(--mp-cyan); font-size: .68rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.project-overlay h3 { margin: 8px 0 0; font-family: Georgia, serif; font-size: clamp(1.5rem, 3vw, 2.6rem); font-weight: 500; }
.project-directory { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 28px; margin-top: 55px; border-top: 1px solid rgba(255,255,255,.15); }
.project-directory span { padding: 16px 0; border-bottom: 1px solid rgba(255,255,255,.15); color: rgba(255,255,255,.76); font-size: .88rem; }

/* Capabilities */
.product-feature { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(300px, .65fr); gap: 0; margin-bottom: 42px; overflow: hidden; border-radius: var(--mp-radius); background: var(--mp-navy); box-shadow: var(--mp-shadow); }
.product-feature__media { display: grid; place-items: center; min-height: 440px; padding: clamp(20px, 3vw, 38px); background: #fff; }
.product-feature__media img { width: 100%; height: 100%; max-height: 520px; object-fit: contain; }
.product-feature__copy { display: flex; flex-direction: column; justify-content: center; padding: clamp(42px, 6vw, 78px); color: #fff; }
.product-feature__copy .eyebrow { color: var(--mp-cyan); }
.product-feature__copy h2 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2.3rem, 4vw, 4.2rem); font-weight: 500; line-height: 1; letter-spacing: -.04em; }
.product-feature__copy > p:last-child { margin: 28px 0 0; color: rgba(255,255,255,.82); font-size: clamp(1.05rem, 1.5vw, 1.25rem); }
.capability-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.capability { padding: 30px; border: 1px solid var(--mp-line); border-radius: 18px; background: #fff; }
.capability--core { border-color: rgba(11,121,183,.42); background: linear-gradient(145deg, #fff, #effbfe); box-shadow: 0 18px 45px rgba(11,121,183,.09); }
.capability--core::before { content: "Core business"; display: inline-block; margin: 0 0 18px; color: var(--mp-blue); font-size: .67rem; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.capability-icon { width: 48px; height: 48px; display: grid; place-items: center; margin-bottom: 45px; border-radius: 50%; color: #fff; background: var(--mp-blue); font-size: 1.25rem; }
.capability h3 { margin: 0 0 9px; font-size: 1.1rem; }
.capability p { margin: 0; color: var(--mp-muted); font-size: .92rem; }
.brand-strip { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px 34px; margin-top: 42px; padding: 28px 0; border-top: 1px solid var(--mp-line); border-bottom: 1px solid var(--mp-line); }
.brand-strip span { color: var(--mp-navy); font-size: .78rem; font-weight: 850; letter-spacing: .14em; }

/* Project archive */
.projects-hero { min-height: 78svh; display: flex; align-items: end; position: relative; isolation: isolate; color: #fff; background: var(--mp-navy); }
.projects-hero::before { content: ""; position: absolute; inset: 0; z-index: -2; background: var(--projects-hero-image) center/cover no-repeat; }
.projects-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(3,20,36,.9), rgba(3,20,36,.15) 70%), linear-gradient(90deg, rgba(3,20,36,.6), transparent 65%); }
.projects-hero__inner { padding-top: 180px; padding-bottom: 82px; }
.projects-hero h1 { max-width: 950px; margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(4.2rem, 11vw, 10rem); font-weight: 500; line-height: .86; letter-spacing: -.065em; }
.projects-hero__inner > p:last-child { max-width: 620px; margin: 28px 0 0; color: rgba(255,255,255,.78); font-size: 1.1rem; }
.projects-intro__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 100px; align-items: start; }
.projects-intro h2, .project-detail__content h2 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2.6rem, 5vw, 5rem); font-weight: 500; line-height: 1; letter-spacing: -.045em; }
.projects-intro__grid > div:last-child { padding-top: 30px; color: var(--mp-muted); font-size: 1.05rem; }
.projects-catalogue { padding: 20px 0 120px; }
.project-filters { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 48px; }
.project-filter { padding: 10px 16px; border: 1px solid var(--mp-line); border-radius: 999px; color: var(--mp-ink); background: #fff; font-size: .7rem; font-weight: 800; letter-spacing: .06em; cursor: pointer; transition: color .2s, background .2s, border-color .2s; }
.project-filter:hover, .project-filter.is-active { color: #fff; border-color: var(--mp-navy); background: var(--mp-navy); }
.portfolio-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 65px 28px; }
.portfolio-card[hidden] { display: none; }
.portfolio-card__image { display: block; aspect-ratio: 1.28; position: relative; overflow: hidden; border-radius: var(--mp-radius); background: var(--mp-ice); }
.portfolio-card__image img { width: 100%; height: 100%; object-fit: cover; transition: transform .55s ease; }
.portfolio-card__image span { position: absolute; right: 18px; bottom: 18px; padding: 10px 14px; border-radius: 999px; color: var(--mp-navy); background: rgba(255,255,255,.92); font-size: .67rem; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; opacity: 0; transform: translateY(8px); transition: opacity .25s, transform .25s; }
.portfolio-card:hover .portfolio-card__image img { transform: scale(1.035); }
.portfolio-card:hover .portfolio-card__image span { opacity: 1; transform: none; }
.portfolio-card__copy { padding: 21px 4px 0; }
.portfolio-card__copy p { min-height: 2.8em; margin: 0 0 8px; color: var(--mp-blue); font-size: .68rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.portfolio-card__copy h2 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.65rem, 3vw, 2.6rem); font-weight: 500; line-height: 1.05; }
.portfolio-card__copy h2 a:hover { color: var(--mp-blue); }
.portfolio-card__copy small { display: block; margin-top: 10px; color: var(--mp-muted); }
.project-empty { padding: 35px; border-radius: var(--mp-radius); color: var(--mp-muted); background: var(--mp-ice); text-align: center; }
.project-contact { margin-top: 0; }
.project-contact__action { display: flex; align-items: center; justify-content: flex-end; min-height: 220px; }
.project-detail__hero { min-height: 82svh; display: flex; align-items: end; position: relative; isolation: isolate; color: #fff; background: var(--mp-navy); }
.project-detail__hero::before { content: ""; position: absolute; inset: 0; z-index: -2; background: var(--project-detail-image) center/cover no-repeat; }
.project-detail__hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(3,20,36,.92), transparent 75%); }
.project-detail__heading { padding-top: 180px; padding-bottom: 70px; }
.project-detail__heading > a, .project-detail__heading > p { display: block; width: fit-content; margin: 0 0 18px; color: var(--mp-cyan); font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.project-detail__heading h1 { max-width: 1000px; margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(3.4rem, 8vw, 7.6rem); font-weight: 500; line-height: .92; letter-spacing: -.055em; }
.project-detail__heading span { display: block; margin-top: 22px; color: rgba(255,255,255,.75); }
.project-detail__content { display: grid; grid-template-columns: 1fr 1fr; gap: 90px; }
.project-gallery-section { padding: 0 0 120px; background: #fff; }
.project-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.project-gallery figure { margin: 0; overflow: hidden; border-radius: var(--mp-radius); background: var(--mp-ice); }
.project-gallery img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.project-gallery--3 figure:first-child { grid-column: 1 / -1; }
.project-gallery--3 figure:first-child img { aspect-ratio: 16 / 9; }

/* FAQ */
.faq-layout { display: grid; grid-template-columns: .75fr 1.25fr; gap: 80px; align-items: start; }
.faq-intro { position: sticky; top: 130px; }
.faq-list { border-top: 1px solid var(--mp-line); }
.faq-item { border-bottom: 1px solid var(--mp-line); }
.faq-question { width: 100%; display: flex; justify-content: space-between; gap: 24px; padding: 26px 0; border: 0; color: var(--mp-ink); background: transparent; text-align: left; font-weight: 750; cursor: pointer; }
.faq-question span:last-child { color: var(--mp-blue); transition: transform .2s; }
.faq-answer { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .25s ease; }
.faq-answer > div { overflow: hidden; }
.faq-answer p { margin: 0; padding: 0 45px 14px 0; color: var(--mp-muted); }
.faq-answer p:last-child { padding-bottom: 26px; }
.faq-answer ul { margin: 0; padding: 0 45px 20px 22px; color: var(--mp-muted); }
.faq-answer li + li { margin-top: 6px; }
.faq-item.is-open .faq-answer { grid-template-rows: 1fr; }
.faq-item.is-open .faq-question span:last-child { transform: rotate(45deg); }

/* Contact */
.contact-section { padding: 110px 0; color: #fff; background: linear-gradient(130deg, var(--mp-navy), #0c3857); }
.contact-grid { display: grid; grid-template-columns: .82fr 1.18fr; gap: 100px; align-items: start; }
.contact-copy p { max-width: 470px; color: rgba(255,255,255,.66); }
.contact-details { display: grid; gap: 6px; margin-top: 35px; }
.contact-details a { width: fit-content; border-bottom: 1px solid rgba(255,255,255,.35); }
.quote-form { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; padding: 38px; border: 1px solid rgba(255,255,255,.15); border-radius: var(--mp-radius); background: rgba(255,255,255,.06); backdrop-filter: blur(8px); }
.field { display: grid; gap: 8px; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: .7rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.68); }
.field input, .field textarea, .field select { width: 100%; border: 0; border-bottom: 1px solid rgba(255,255,255,.3); border-radius: 0; padding: 12px 0; outline: 0; color: #fff; background: transparent; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--mp-cyan); }
.field select option { color: var(--mp-ink); }
.field textarea { min-height: 110px; resize: vertical; }
.hp-field { position: absolute; left: -9999px; }
.form-notice { grid-column: 1 / -1; padding: 12px 15px; border-radius: 10px; font-size: .9rem; }
.form-notice--success { color: #083a21; background: #c8f4da; }
.form-notice--error { color: #5b1010; background: #ffd7d7; }

/* Floating WhatsApp contact */
.whatsapp-float { position: fixed; right: 18px; top: 50%; bottom: auto; z-index: 2147483000; display: inline-flex; visibility: visible; opacity: 1; align-items: center; gap: 10px; min-height: 58px; padding: 0 20px 0 14px; border: 2px solid rgba(255,255,255,.95); border-radius: 999px; color: #fff; background: #25d366; box-shadow: 0 12px 36px rgba(3,20,36,.34); font-size: .75rem; font-weight: 850; letter-spacing: .05em; text-transform: uppercase; transform: translateY(-50%); transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.whatsapp-float:hover { color: #fff; background: #1fba59; box-shadow: 0 16px 42px rgba(3,20,36,.4); transform: translateY(-50%) scale(1.04); }
.whatsapp-float svg { width: 30px; height: 30px; fill: currentColor; flex: 0 0 auto; }

/* Footer and content */
.site-footer { padding: 70px 0 26px; color: rgba(255,255,255,.72); background: #03111f; }
.footer-grid { display: grid; grid-template-columns: 1.4fr .6fr .6fr; gap: 70px; }
.footer-brand { color: #fff; font-family: Georgia, serif; font-size: 2rem; }
.footer-copy { max-width: 430px; }
.footer-heading { margin: 0 0 15px; color: #fff; font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; }
.footer-links { display: grid; gap: 9px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; margin-top: 60px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.12); font-size: .75rem; }
.content-shell { min-height: 70vh; padding: 160px 0 100px; }
.entry-title { font-family: Georgia, serif; font-size: clamp(2.6rem, 6vw, 5rem); font-weight: 500; line-height: 1; }
.entry-content { max-width: 780px; }
.entry-content a { color: var(--mp-blue); text-decoration: underline; }

/* Populated inner pages */
.inner-hero { min-height: 72svh; display: flex; align-items: end; position: relative; isolation: isolate; color: #fff; background: var(--mp-navy); }
.inner-hero::before { content: ""; position: absolute; inset: 0; z-index: -2; background: var(--inner-hero-image) center/cover no-repeat; }
.inner-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(3,20,36,.92), rgba(3,20,36,.52) 56%, rgba(3,20,36,.16)), linear-gradient(0deg, rgba(3,20,36,.72), transparent 55%); }
.inner-hero__content { padding-top: 175px; padding-bottom: 76px; }
.inner-hero h1 { max-width: 950px; margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(3.8rem, 9vw, 8rem); font-weight: 500; line-height: .9; letter-spacing: -.06em; }
.inner-hero__content > p:last-child { max-width: 650px; margin: 27px 0 0; color: rgba(255,255,255,.8); font-size: 1.08rem; }
.numbered-list { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--mp-line); }
.numbered-list article { display: grid; grid-template-columns: 58px 1fr; gap: 16px; align-items: center; min-height: 105px; padding: 18px 24px 18px 0; border-bottom: 1px solid var(--mp-line); }
.numbered-list article:nth-child(odd) { margin-right: 34px; }
.numbered-list span { color: var(--mp-blue); font-size: .72rem; font-weight: 850; letter-spacing: .12em; }
.numbered-list h3 { margin: 0; font-family: Georgia, serif; font-size: clamp(1.2rem, 2vw, 1.65rem); font-weight: 500; line-height: 1.2; }
.services-overview { padding-top: 20px; }
.service-overview-cards article { position: relative; }
.service-overview-cards article > span { display: inline-block; margin-bottom: 48px; color: var(--mp-blue); font-size: .72rem; font-weight: 850; letter-spacing: .14em; }
.services-deep-dive { overflow: hidden; }
.service-detail-list { display: grid; gap: 28px; }
.service-detail { min-height: 480px; display: grid; grid-template-columns: 1.05fr .95fr; overflow: hidden; border: 1px solid var(--mp-line); border-radius: var(--mp-radius); background: #fff; }
.service-detail:nth-child(even) { grid-template-columns: .95fr 1.05fr; }
.service-detail:nth-child(even) .service-detail__media { order: 2; }
.service-detail__media { min-height: 440px; background: var(--mp-ice); }
.service-detail__media img { width: 100%; height: 100%; object-fit: cover; }
.service-detail__copy { display: flex; flex-direction: column; justify-content: center; padding: clamp(38px, 6vw, 78px); }
.service-detail__copy h3 { margin: 0 0 20px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2.25rem, 4vw, 4.4rem); font-weight: 500; line-height: .98; letter-spacing: -.035em; }
.service-detail__copy > p:not(.eyebrow) { margin: 0; color: var(--mp-muted); }
.service-detail__copy ul { display: grid; gap: 9px; margin: 28px 0 0; padding: 22px 0 0; border-top: 1px solid var(--mp-line); list-style: none; }
.service-detail__copy li { display: flex; gap: 11px; color: var(--mp-muted); font-size: .9rem; }
.service-detail__copy li::before { content: ""; width: 7px; height: 7px; flex: 0 0 auto; margin-top: .65em; border-radius: 50%; background: var(--mp-blue); }
.comparison-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.comparison-grid figure { margin: 0; overflow: hidden; border-radius: var(--mp-radius); background: var(--mp-navy); }
.comparison-grid img { width: 100%; aspect-ratio: 1.15; object-fit: cover; }
.comparison-grid figcaption { padding: 17px 22px; color: #fff; font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.maintenance-layout { display: grid; grid-template-columns: .75fr 1.25fr; gap: 75px; align-items: start; }
.detail-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.detail-cards--three { grid-template-columns: repeat(3, 1fr); }
.detail-cards article { min-height: 220px; padding: 31px; border: 1px solid var(--mp-line); border-radius: var(--mp-radius); background: #fff; }
.detail-cards h3 { margin: 0 0 14px; font-family: Georgia, serif; font-size: 1.7rem; font-weight: 500; line-height: 1.12; }
.detail-cards p { margin: 0; color: var(--mp-muted); }
.editorial-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 90px; align-items: start; }
.editorial-grid h2 { margin: 0; font-family: Georgia, serif; font-size: clamp(2.8rem, 5vw, 5.2rem); font-weight: 500; line-height: .98; letter-spacing: -.045em; }
.editorial-grid > div:last-child { color: var(--mp-muted); font-size: 1.08rem; }
.editorial-grid > div:last-child p:first-child { margin-top: 5px; }
.career-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.button--dark { color: #fff; background: var(--mp-navy); }
.button--dark:hover { background: var(--mp-blue); }
.button--outline { color: var(--mp-navy); border-color: var(--mp-navy); }
.button--outline:hover { color: #fff; background: var(--mp-navy); }
.contact-info-grid { display: grid; grid-template-columns: .85fr 1.25fr 1.1fr; gap: 1px; overflow: hidden; border: 1px solid var(--mp-line); border-radius: var(--mp-radius); background: var(--mp-line); }
.contact-info-grid article { min-height: 260px; padding: 34px; background: #fff; }
.contact-info-grid span { color: var(--mp-blue); font-size: .7rem; font-weight: 850; letter-spacing: .13em; text-transform: uppercase; }
.contact-info-grid h2 { margin: 30px 0 0; font-family: Georgia, serif; font-size: clamp(1.25rem, 2.2vw, 2rem); font-weight: 500; line-height: 1.25; overflow-wrap: anywhere; }
.contact-info-grid article > a { display: inline-block; margin-top: 24px; color: var(--mp-blue); border-bottom: 1px solid currentColor; font-size: .75rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }

@media (max-width: 980px) {
  .menu-toggle { display: block; }
  .header-cta { display: none; }
  .site-navigation { position: fixed; inset: 0; display: grid; place-items: center; color: #fff; background: var(--mp-navy); opacity: 0; visibility: hidden; pointer-events: none; transform: translateY(-105%); transition: transform .35s ease, opacity .25s ease, visibility 0s linear .35s; }
  .menu-open .site-navigation { opacity: 1; visibility: visible; pointer-events: auto; transform: none; transition-delay: 0s; }
  .primary-menu { display: grid; gap: 20px; text-align: center; }
  .primary-menu a { font-family: Georgia, serif; font-size: 2.2rem; font-weight: 500; letter-spacing: -.02em; text-transform: none; }
  .menu-open .menu-toggle span:first-child { transform: translateY(7px) rotate(45deg); }
  .menu-open .menu-toggle span:nth-child(2) { opacity: 0; }
  .menu-open .menu-toggle span:last-child { transform: translateY(-7px) rotate(-45deg); }
  .service-grid { grid-template-columns: 1fr 1fr; }
  .service-grid--core { grid-template-columns: 1fr; }
  .service-grid--core .service-card { border-right: 0; border-bottom: 1px solid var(--mp-line); }
  .service-card:nth-child(2) { border-right: 0; }
  .service-card:nth-child(-n+2) { border-bottom: 1px solid var(--mp-line); }
  .split { grid-template-columns: 1fr; }
  .split-copy { padding: 80px 40px; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stats--three { grid-template-columns: repeat(3, 1fr); }
  .stats--five { grid-template-columns: repeat(3, 1fr); }
  .project-grid { grid-template-columns: 1fr 1fr; grid-template-rows: 460px 300px; }
  .project-card:first-child { grid-column: 1 / -1; grid-row: auto; }
  .capability-grid { grid-template-columns: 1fr 1fr; }
  .product-feature { grid-template-columns: 1fr; }
  .product-feature__media { min-height: 0; }
  .project-directory { grid-template-columns: 1fr 1fr; }
  .projects-intro__grid, .project-detail__content { grid-template-columns: 1fr; gap: 45px; }
  .maintenance-layout, .editorial-grid { grid-template-columns: 1fr; gap: 45px; }
  .service-detail, .service-detail:nth-child(even) { grid-template-columns: 1fr; }
  .service-detail:nth-child(even) .service-detail__media { order: 0; }
  .service-detail__media { min-height: 380px; }
  .client-intro { grid-template-columns: 1fr; gap: 25px; }
  .client-copy { padding-top: 0; }
  .client-logos { grid-template-columns: repeat(3, 1fr); }
  .detail-cards--three { grid-template-columns: 1fr 1fr; }
  .contact-info-grid { grid-template-columns: 1fr; }
  .faq-layout, .contact-grid { grid-template-columns: 1fr; gap: 50px; }
  .faq-intro { position: static; }
}

@media (max-width: 680px) {
  .container { width: min(calc(100% - 28px), var(--mp-container)); }
  .section, .contact-section { padding: 78px 0; }
  .header-inner { min-height: 74px; }
  .brand-copy small { display: none; }
  .hero-content { padding: 150px 0 85px; }
  .hero h1 { font-size: clamp(3.3rem, 17vw, 5.2rem); }
  .hero-meta { display: none; }
  .button { width: 100%; }
  .section-heading--split { align-items: start; flex-direction: column; gap: 22px; }
  .service-grid, .stats, .capability-grid, .project-grid, .project-directory, .portfolio-grid, .quote-form, .footer-grid { grid-template-columns: 1fr; }
  .service-card { min-height: 250px; border-right: 0; border-bottom: 1px solid var(--mp-line); }
  .service-number { margin-bottom: 40px; }
  .split-media { min-height: 420px; }
  .split-copy { padding: 65px 24px; }
  .stats { gap: 1px; }
  .project-grid { display: grid; grid-template-rows: none; }
  .project-card, .project-card:first-child { min-height: 400px; grid-column: auto; }
  .projects-hero { min-height: 68svh; }
  .projects-hero__inner { padding-top: 135px; padding-bottom: 55px; }
  .projects-hero h1 { font-size: clamp(4rem, 22vw, 6.4rem); }
  .project-filters { flex-wrap: nowrap; overflow-x: auto; margin-inline: -14px; padding: 0 14px 14px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .project-filters::-webkit-scrollbar { display: none; }
  .project-filter { flex: 0 0 auto; white-space: nowrap; }
  .inner-hero { min-height: 62svh; }
  .inner-hero__content { padding-top: 135px; padding-bottom: 55px; }
  .inner-hero h1 { font-size: clamp(3.5rem, 18vw, 5.8rem); }
  .numbered-list, .comparison-grid, .detail-cards, .detail-cards--three { grid-template-columns: 1fr; }
  .product-feature__media { padding: 14px; }
  .product-feature__copy { padding: 42px 24px 46px; }
  .service-detail { min-height: 0; }
  .service-detail__media { min-height: 300px; }
  .service-detail__copy { padding: 38px 24px; }
  .client-logos { grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 48px; }
  .client-logo { min-height: 125px; }
  .numbered-list article:nth-child(odd) { margin-right: 0; }
  .comparison-grid img { aspect-ratio: auto; }
  .project-gallery { grid-template-columns: 1fr; }
  .project-gallery--3 figure:first-child { grid-column: auto; }
  .project-gallery--3 figure:first-child img { aspect-ratio: 4 / 3; }
  .project-gallery-section { padding-bottom: 78px; }
  .portfolio-grid { gap: 48px; }
  .portfolio-card__copy p { min-height: 0; }
  .project-contact__action { min-height: 0; justify-content: flex-start; }
  .quote-form { padding: 26px 20px; }
  .field--full { grid-column: auto; }
  .footer-grid { gap: 36px; }
  .footer-bottom { flex-direction: column; }
  .whatsapp-float { right: 14px !important; top: auto !important; bottom: 18px; width: 58px; height: 58px; min-height: 58px; padding: 0; justify-content: center; transform: none; }
  .whatsapp-float:hover { transform: scale(1.04); }
  .whatsapp-float span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
