/* =========================================================
   PPS — Professional Plumbing Services
   Palette: white #FFFFFF · yellow #FFC72C · blue #0B66C2
   ========================================================= */
:root {
    --white: #ffffff;
    --yellow: #FFC72C;
    --yellow-soft: #FFE7A0;
    --blue: #0B66C2;
    --blue-deep: #074A8F;
    --blue-soft: #E8F2FB;
    --ink: #0E1B2C;
    --muted: #5A6B82;
    --line: #E3EAF3;
    --shadow-sm: 0 4px 14px rgba(11, 102, 194, .08);
    --shadow-md: 0 14px 40px rgba(11, 102, 194, .14);
    --radius: 14px;
    --radius-lg: 22px;
    --container: 1180px;
    --font: 'Manrope', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
    --font-display: 'Plus Jakarta Sans', var(--font);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: var(--font);
    color: var(--ink);
    background: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Icon sprite base */
.ico {
    width: 26px; height: 26px;
    display: inline-block; vertical-align: middle;
    color: currentColor; flex-shrink: 0;
}
.ico-sm { width: 16px; height: 16px; }
.ico-lg { width: 32px; height: 32px; }

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

/* Typography */
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--ink); line-height: 1.15; margin: 0 0 .5em; }
h1 { font-size: clamp(2.25rem, 4.5vw, 3.6rem); font-weight: 800; letter-spacing: -.02em; }
h2 { font-size: clamp(1.75rem, 3vw, 2.4rem); font-weight: 800; letter-spacing: -.015em; }
h3 { font-size: 1.25rem; font-weight: 700; }
p { margin: 0 0 1em; color: #2B3A52; }
.lead { font-size: 1.125rem; color: var(--muted); }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .8rem; font-weight: 700; color: var(--blue); margin-bottom: .75rem; display: inline-block; }
.eyebrow.on-blue { color: var(--yellow); }

/* Header */
.site-header {
    position: sticky; top: 0; z-index: 1000;
    background: rgba(255,255,255,.92);
    backdrop-filter: saturate(160%) blur(10px);
    border-bottom: 1px solid var(--line);
    transition: padding .25s, box-shadow .25s;
}
.site-header.scrolled { box-shadow: var(--shadow-sm); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; padding: 14px 24px; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand-mark {
    background: linear-gradient(135deg, var(--yellow), #ffd451);
    color: var(--ink); font-family: var(--font-display); font-weight: 800;
    padding: 8px 12px; border-radius: 10px; letter-spacing: .04em;
    box-shadow: 0 6px 16px rgba(255, 199, 44, .4);
}
.brand-word {
    font-family: var(--font-display); font-weight: 800; font-size: 1.25rem;
    line-height: 1; white-space: nowrap; color: var(--ink);
}
.brand-i { position: relative; display: inline-block; font-style: normal; }
.brand-drop {
    position: absolute; left: 50%; top: -.55em;
    width: .5em; height: .7em; transform: translateX(-50%);
}
.brand--footer .brand-mark { background: var(--yellow); color: var(--ink); }
.brand--footer .brand-word { color: #fff; }

/* Nav */
.primary-nav { display: flex; align-items: center; gap: 6px; }
.primary-nav a {
    text-decoration: none; color: var(--ink); font-weight: 600;
    padding: 10px 14px; border-radius: 10px; font-size: .95rem;
    transition: background .2s, color .2s;
}
.primary-nav a:hover { background: var(--blue-soft); color: var(--blue); }
.primary-nav a.active { color: var(--blue); }
.primary-nav a.active::after {
    content: ""; display: block; height: 3px; width: 24px;
    background: var(--yellow); border-radius: 3px; margin: 4px auto 0;
}
.btn-book {
    background: var(--yellow); color: var(--ink) !important;
    padding: 10px 18px !important; border-radius: 999px !important;
    box-shadow: 0 6px 18px rgba(255, 199, 44, .45);
}
.btn-book:hover { background: #ffd451 !important; transform: translateY(-1px); }
.btn-book.active::after { display: none; }

.nav-toggle { display: none; background: none; border: 0; padding: 8px; flex-direction: column; gap: 5px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: .25s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 880px) {
    .nav-toggle { display: flex; }
    .primary-nav {
        position: absolute; top: 100%; left: 0; right: 0;
        background: #fff; flex-direction: column; align-items: stretch;
        padding: 16px; gap: 4px; border-bottom: 1px solid var(--line);
        transform: translateY(-10px); opacity: 0; pointer-events: none;
        transition: .2s;
    }
    .primary-nav.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
    .primary-nav a { padding: 14px 16px; }
    .primary-nav a.active::after { display: none; }
}

/* Keep the hamburger toggle in view on narrow screens by shrinking / hiding the brand wordmark */
@media (max-width: 720px) {
    .brand-word { font-size: 1.05rem; }
    .nav-inner { padding: 12px 20px; gap: 12px; }
}
@media (max-width: 520px) {
    .brand-word { display: none; }
    .brand { gap: 8px; }
    .nav-inner { padding: 12px 16px; gap: 8px; }
    .brand-mark { padding: 7px 11px; font-size: .9rem; }
}

/* Buttons */
.btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 14px 24px; border-radius: 999px;
    font-weight: 700; text-decoration: none; border: 0; cursor: pointer;
    font-family: var(--font); font-size: 1rem;
    transition: transform .15s, box-shadow .2s, background .2s;
}
.btn-primary { background: var(--yellow); color: var(--ink); box-shadow: 0 10px 24px rgba(255,199,44,.45); }
.btn-primary:hover { transform: translateY(-2px); background: #ffd451; }
.btn-outline { background: transparent; color: var(--white); border: 2px solid rgba(255,255,255,.6); }
.btn-outline:hover { background: rgba(255,255,255,.1); border-color: #fff; }
.btn-ghost { background: transparent; color: var(--blue); border: 2px solid var(--blue); }
.btn-ghost:hover { background: var(--blue); color: #fff; }
.btn-whatsapp { background: #25D366; color: #fff; }
.btn-whatsapp:hover { background: #1EBE5A; transform: translateY(-2px); }

/* Hero */
.hero {
    position: relative; overflow: hidden;
    background: linear-gradient(135deg, #0B66C2 0%, #074A8F 60%, #053C76 100%);
    color: #fff; padding: 80px 0 160px;
}
.hero::before {
    content: ""; position: absolute; inset: 0;
    background-image: radial-gradient(rgba(255,255,255,.08) 1px, transparent 1px);
    background-size: 28px 28px; opacity: .5;
}
.hero-inner { position: relative; display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: center; }
.hero h1 { color: #fff; }
.hero h1 .highlight {
    background: linear-gradient(180deg, transparent 60%, rgba(255,199,44,.55) 60%);
    padding: 0 4px;
}
.hero p { color: rgba(255,255,255,.85); font-size: 1.15rem; max-width: 540px; }
.hero-cta { display: flex; gap: 14px; margin-top: 28px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 36px; margin-top: 48px; flex-wrap: wrap; }
.hero-stats .stat strong { display: block; font-family: var(--font-display); font-size: 2rem; color: var(--yellow); font-weight: 800; }
.hero-stats .stat span { color: rgba(255,255,255,.75); font-size: .9rem; }

.hero-visual { position: relative; }
.hero-card {
    background: rgba(255,255,255,.08); backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,.18); border-radius: var(--radius-lg);
    padding: 24px; box-shadow: var(--shadow-md);
}
.hero-card h3 { color: #fff; }
.hero-card ul { list-style: none; padding: 0; margin: 16px 0 0; }
.hero-card li {
    display: flex; align-items: center; gap: 12px; padding: 10px 0;
    border-bottom: 1px dashed rgba(255,255,255,.15); color: rgba(255,255,255,.9);
}
.hero-card li:last-child { border-bottom: 0; }
.hero-card .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--yellow); flex-shrink: 0; }

.wave {
    position: absolute; bottom: -1px; left: 0; right: 0; width: 100%;
    height: 120px; display: block;
}

@media (max-width: 880px) {
    .hero { padding: 60px 0 130px; }
    .hero-inner { grid-template-columns: 1fr; }
}

/* Section base */
section.section { padding: 96px 0; }
section.section.alt { background: var(--blue-soft); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.section-head p { color: var(--muted); font-size: 1.075rem; }

/* Cards / grid */
.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card {
    background: #fff; border: 1px solid var(--line);
    border-radius: var(--radius); padding: 28px;
    transition: transform .25s, box-shadow .25s, border-color .25s;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: transparent; }
.card .icon {
    width: 56px; height: 56px; border-radius: 14px;
    background: #EEF2F7;
    display: grid; place-items: center; color: var(--blue);
    margin-bottom: 18px; border: 1px solid var(--line);
    transition: background .3s ease, color .3s ease, border-color .3s ease, transform .3s ease;
}
.card:hover .icon {
    background: var(--blue); color: #fff; border-color: var(--blue);
    transform: scale(1.05);
}
.card h3 { margin-bottom: 8px; }
.card p { color: var(--muted); margin: 0; }

/* Reveal animation */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }
.reveal[data-delay="4"] { transition-delay: .32s; }

/* CTA banner */
.cta-banner {
    background: linear-gradient(135deg, var(--yellow), #ffd451);
    border-radius: var(--radius-lg);
    padding: 48px; display: flex; align-items: center;
    justify-content: space-between; gap: 24px; flex-wrap: wrap;
    box-shadow: var(--shadow-md);
}
.cta-banner h2 { margin: 0; max-width: 640px; }
.cta-banner .btn { background: var(--ink); color: #fff; box-shadow: 0 10px 24px rgba(14,27,44,.25); }
.cta-banner .btn:hover { background: var(--blue); }

/* Split section */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
@media (max-width: 880px) { .split { grid-template-columns: 1fr; gap: 40px; } }
.split-visual {
    position: relative; aspect-ratio: 4/3;
    background: linear-gradient(135deg, var(--blue), var(--blue-deep));
    border-radius: var(--radius-lg); overflow: hidden;
    box-shadow: var(--shadow-md);
}
.split-visual::after {
    content: ""; position: absolute; inset: 0;
    background-image: radial-gradient(rgba(255,255,255,.1) 1.5px, transparent 1.5px);
    background-size: 22px 22px;
}
.split-visual .badge {
    position: absolute; bottom: 24px; left: 24px;
    background: var(--yellow); color: var(--ink);
    border-radius: 14px; padding: 18px 22px; font-family: var(--font-display);
    font-weight: 800; box-shadow: var(--shadow-md); z-index: 1;
}
.split-visual .badge strong { display: block; font-size: 1.8rem; line-height: 1; }
.split-visual .badge span { font-size: .85rem; }
.split-photo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}
.split-visual:has(.split-photo)::after { display: none; }

/* Process steps */
.steps { counter-reset: step; display: grid; gap: 24px; grid-template-columns: repeat(4,1fr); }
@media (max-width: 980px) { .steps { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }
.step {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    padding: 28px; position: relative;
}
.step::before {
    counter-increment: step; content: counter(step, decimal-leading-zero);
    font-family: var(--font-display); font-weight: 800; font-size: 2.2rem;
    color: var(--yellow); display: block; margin-bottom: 8px;
}
.step h3 { margin-bottom: 6px; }
.step p { margin: 0; color: var(--muted); }

/* Testimonials */
.testimonial {
    background: #fff; border-radius: var(--radius); padding: 28px;
    border: 1px solid var(--line);
}
.testimonial p { font-style: italic; color: var(--ink); }
.testimonial .who { display: flex; align-items: center; gap: 12px; margin-top: 12px; }
.testimonial .who .avatar {
    width: 42px; height: 42px; border-radius: 50%;
    background: linear-gradient(135deg, var(--blue), var(--yellow));
    display: grid; place-items: center; color: #fff; font-weight: 700;
}
.testimonial .who span { color: var(--muted); font-size: .9rem; }
.stars { color: var(--yellow); display: inline-flex; gap: 2px; margin-bottom: 8px; }

/* Testimonials coverflow — active centered in front, prev/next peek behind */
.testimonials-carousel {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 12px;
    max-width: 1080px;
    margin: 48px auto 0;
}
.testimonials-stage {
    overflow: hidden;
    padding: 24px 0;
}
.testimonials-track {
    display: grid;
    grid-template-areas: "stack";
    place-items: center;
}
.testimonials-track > .testimonial {
    grid-area: stack;
    width: min(460px, 100%);
    margin: 0;
    transition: transform .55s cubic-bezier(.22, .61, .36, 1), opacity .45s, box-shadow .45s;
}
.testimonial[data-pos="0"] {
    transform: scale(1);
    opacity: 1;
    z-index: 3;
    box-shadow: 0 24px 50px rgba(11, 102, 194, .22);
}
.testimonial[data-pos="-1"] {
    transform: translateX(-72%) scale(0.82);
    opacity: 0.45;
    z-index: 2;
    pointer-events: none;
}
.testimonial[data-pos="1"] {
    transform: translateX(72%) scale(0.82);
    opacity: 0.45;
    z-index: 2;
    pointer-events: none;
}
.testimonial[data-pos="hidden"] {
    transform: scale(0.55);
    opacity: 0;
    z-index: 1;
    pointer-events: none;
}

.carousel-btn {
    width: 48px; height: 48px;
    border-radius: 50%;
    border: 1px solid var(--line);
    background: #fff;
    color: var(--blue);
    display: grid;
    place-items: center;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: background .2s, color .2s, border-color .2s, box-shadow .2s;
    z-index: 4;
}
.carousel-btn:hover {
    background: var(--blue);
    color: #fff;
    border-color: var(--blue);
    box-shadow: 0 10px 22px rgba(11, 102, 194, .35);
}
.carousel-prev .ico { transform: rotate(180deg); }

@media (max-width: 640px) {
    .testimonials-carousel { gap: 4px; }
    .carousel-btn { width: 40px; height: 40px; }
    .testimonial[data-pos="-1"] { transform: translateX(-72%) scale(0.78); opacity: 0.3; }
    .testimonial[data-pos="1"]  { transform: translateX(72%)  scale(0.78); opacity: 0.3; }
}

/* Accordion */
.accordion { border-top: 1px solid var(--line); }
.accordion-item { border-bottom: 1px solid var(--line); }
.accordion-trigger {
    width: 100%; text-align: left; background: none; border: 0; cursor: pointer;
    padding: 20px 0; font-family: var(--font-display); font-weight: 700;
    font-size: 1.075rem; color: var(--ink);
    display: flex; justify-content: space-between; align-items: center;
}
.accordion-trigger::after {
    content: "+"; color: var(--blue); font-size: 1.5rem; font-weight: 400; transition: transform .3s;
}
.accordion-trigger[aria-expanded="true"]::after { transform: rotate(45deg); }
.accordion-panel {
    max-height: 0; overflow: hidden; transition: max-height .35s ease;
    color: var(--muted);
}
.accordion-panel > div { padding: 0 0 20px; }

/* Page header */
.page-head {
    background: linear-gradient(135deg, #0B66C2, #074A8F);
    color: #fff; padding: 80px 0 100px; position: relative; overflow: hidden;
}
.page-head::before {
    content: ""; position: absolute; inset: 0;
    background-image: radial-gradient(rgba(255,255,255,.08) 1px, transparent 1px);
    background-size: 28px 28px;
}
.page-head h1 { color: #fff; position: relative; }
.page-head p { color: rgba(255,255,255,.85); max-width: 640px; position: relative; }
.page-head .crumbs { color: rgba(255,255,255,.65); font-size: .85rem; margin-bottom: 12px; position: relative; }
.page-head .crumbs a { color: var(--yellow); text-decoration: none; }

/* Projects */
.project-card {
    background: #fff; border-radius: var(--radius); padding: 0; overflow: hidden;
    border: 1px solid var(--line); transition: transform .25s, box-shadow .25s;
}
.project-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.project-illu {
    aspect-ratio: 16/10; background: linear-gradient(135deg, var(--blue-soft), #fff);
    display: grid; place-items: center; position: relative; border-bottom: 1px solid var(--line);
}
.project-illu svg { width: 50%; height: auto; }
.project-card .tag {
    position: absolute; top: 14px; left: 14px;
    background: var(--yellow); color: var(--ink); border-radius: 999px;
    padding: 4px 12px; font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em;
}
.project-card .body { padding: 22px 24px 26px; }
.project-card h3 { margin: 0 0 6px; }
.project-card .meta { display: flex; gap: 12px; flex-wrap: wrap; color: var(--muted); font-size: .85rem; margin-top: 12px; align-items: center; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; }
@media (max-width: 880px) { .contact-grid { grid-template-columns: 1fr; } }
.info-card {
    background: #fff; border-radius: var(--radius); border: 1px solid var(--line);
    padding: 28px; margin-bottom: 16px; display: flex; gap: 18px;
    transition: transform .25s, box-shadow .25s, border-color .25s;
}
.info-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: transparent; }
.info-card .icon {
    width: 48px; height: 48px; border-radius: 12px;
    background: #EEF2F7; color: var(--blue);
    display: grid; place-items: center; flex-shrink: 0;
    border: 1px solid var(--line);
    transition: background .3s ease, color .3s ease, border-color .3s ease;
}
.info-card:hover .icon { background: var(--blue); color: #fff; border-color: var(--blue); }
.info-card h3 { margin: 0 0 4px; }
.info-card p { margin: 0; color: var(--muted); }

/* Forms */
.form {
    background: #fff; border-radius: var(--radius-lg); padding: 32px;
    border: 1px solid var(--line); box-shadow: var(--shadow-sm);
}
.form .row { display: grid; gap: 16px; grid-template-columns: 1fr 1fr; }
@media (max-width: 640px) { .form .row { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field label { font-weight: 600; font-size: .9rem; color: var(--ink); }
.field input, .field select, .field textarea {
    font: inherit; padding: 12px 14px; border: 1px solid var(--line);
    border-radius: 10px; background: #fff; color: var(--ink);
    transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field select:focus, .field textarea:focus {
    outline: 0; border-color: var(--blue);
    box-shadow: 0 0 0 4px rgba(11,102,194,.12);
}
.field textarea { min-height: 130px; resize: vertical; }
.field .help { color: var(--muted); font-size: .8rem; }
.field .error { color: #C0392B; font-size: .82rem; min-height: 1em; }
.form .actions { display: flex; gap: 12px; align-items: center; margin-top: 8px; flex-wrap: wrap; }
.form .actions .note { color: var(--muted); font-size: .85rem; }
.urgency-group { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; }
.urgency-group label {
    display: flex; align-items: center; justify-content: center; gap: 6px;
    padding: 12px; text-align: center;
    border: 1px solid var(--line); border-radius: 10px; cursor: pointer;
    font-size: .9rem; font-weight: 600; transition: .2s;
}
.urgency-group input { display: none; }
.urgency-group input:checked + label { border-color: var(--blue); background: var(--blue-soft); color: var(--blue); }

.form-success {
    background: #E8F8EE; border: 1px solid #B5E2C4; color: #1e6b3a;
    padding: 16px 18px; border-radius: 12px; margin-bottom: 16px;
    display: none;
}
.form-success.show { display: block; }
.form-success a { color: #1e6b3a; text-decoration: underline; font-weight: 600; }

/* Footer */
.site-footer { background: #0A1626; color: rgba(255,255,255,.95); padding: 64px 0 24px; margin-top: 0; }
.site-footer p { color: rgba(255,255,255,.9); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.3fr 1.2fr; gap: 40px; }
@media (max-width: 880px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: 18px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer ul li { padding: 8px 0; }
.site-footer a { color: #fff; text-decoration: none; transition: color .2s; }
.site-footer a:hover { color: var(--yellow); }
.site-footer .slogan { color: var(--yellow); font-style: italic; margin-top: 12px; }
.contact-list li {
    padding: 14px 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
    word-break: break-word;
    overflow-wrap: anywhere;
    line-height: 1.4;
}
.contact-list li + li { border-top: 1px solid rgba(255,255,255,.08); }
.contact-list li span {
    display: block;
    color: var(--yellow);
    font-weight: 700;
    font-size: .72rem;
    text-transform: uppercase;
    letter-spacing: .1em;
    min-width: 0;
}
.footer-bottom {
    display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
    padding-top: 24px; margin-top: 40px; border-top: 1px solid rgba(255,255,255,.2);
    font-size: .9rem; color: #fff;
}
.footer-bottom p { margin: 0; color: rgba(255,255,255,.9); }

/* Utility */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.mt-4 { margin-top: 2rem; } .mb-4 { margin-bottom: 2rem; }
