/* =========================
   Remili Plomberie
   Mobile-first
   ========================= */

:root {
    --primary: #0f4c5c;
    --primary-dark: #0a3541;
    --primary-light: #d9eef1;
    --accent: #1d9bb5;
    --ink: #17323a;
    --muted: #61767c;
    --line: #dce7e9;
    --surface: #f4f8f8;
    --white: #ffffff;
    --warning: #f5b642;
    --radius: 18px;
    --shadow: 0 18px 50px rgba(12, 64, 77, 0.11);
    --container: 1180px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--white);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 1rem;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

body.modal-open {
    overflow: hidden;
}

img,
svg {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
}

button,
input,
textarea,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

section {
    scroll-margin-top: 80px;
}

.container {
    width: min(calc(100% - 2rem), var(--container));
    margin-inline: auto;
}

.skip-link {
    position: fixed;
    z-index: 9999;
    left: 1rem;
    top: 1rem;
    transform: translateY(-200%);
    padding: .75rem 1rem;
    border-radius: 8px;
    color: var(--white);
    background: var(--primary-dark);
    text-decoration: none;
}

.skip-link:focus {
    transform: translateY(0);
}

/* Header */

.site-header {
    position: sticky;
    z-index: 1000;
    top: 0;
    border-bottom: 1px solid rgba(15, 76, 92, .08);
    background: rgba(255, 255, 255, .96);
    backdrop-filter: blur(14px);
}

.header-inner {
    min-height: 70px;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 1rem;
}

.brand {
    width: max-content;
    display: inline-flex;
    align-items: center;
    gap: .65rem;
    color: var(--primary-dark);
    text-decoration: none;
}

.brand-mark {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 12px 12px 18px 18px;
    color: var(--white);
    background: linear-gradient(145deg, var(--accent), var(--primary));
    box-shadow: 0 8px 20px rgba(15, 76, 92, .18);
}

.brand-mark svg {
    width: 23px;
    fill: currentColor;
}

.brand strong,
.brand small {
    display: block;
    line-height: 1;
}

.brand strong {
    font-size: 1.05rem;
    letter-spacing: -.025em;
}

.brand small {
    margin-top: .25rem;
    color: var(--accent);
    font-size: .75rem;
    font-weight: 800;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.menu-toggle {
    width: 44px;
    height: 44px;
    display: grid;
    place-content: center;
    gap: 5px;
    border: 0;
    border-radius: 12px;
    background: var(--surface);
}

.menu-toggle span {
    width: 22px;
    height: 2px;
    background: var(--primary);
    transition: .2s ease;
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.main-nav {
    position: absolute;
    left: 1rem;
    right: 1rem;
    top: calc(100% + .5rem);
    display: none;
    padding: .75rem;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--white);
    box-shadow: var(--shadow);
}

.main-nav.open {
    display: grid;
}

.main-nav a {
    padding: .8rem .85rem;
    border-radius: 10px;
    color: var(--ink);
    font-weight: 700;
    text-decoration: none;
}

.main-nav a:hover,
.main-nav a:focus-visible {
    color: var(--primary);
    background: var(--surface);
}

.header-call {
    display: none;
}

/* Hero */

.hero {
    position: relative;
    overflow: hidden;
    padding: 4.5rem 0 4rem;
    background:
        radial-gradient(circle at 90% 15%, rgba(29, 155, 181, .14), transparent 28rem),
        linear-gradient(180deg, #f8fbfb 0%, #ffffff 100%);
}

.hero::after {
    content: "";
    position: absolute;
    width: 300px;
    height: 300px;
    right: -160px;
    bottom: -120px;
    border: 46px solid rgba(15, 76, 92, .035);
    border-radius: 50%;
}

.hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 2.5rem;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    margin-bottom: 1rem;
    color: var(--accent);
    font-size: .78rem;
    font-weight: 900;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.eyebrow::before {
    content: "";
    width: 24px;
    height: 2px;
    background: currentColor;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1,
h2,
h3 {
    line-height: 1.12;
}

h1 {
    max-width: 720px;
    margin-bottom: 1.25rem;
    color: var(--primary-dark);
    font-size: clamp(2.35rem, 11vw, 4.9rem);
    letter-spacing: -.055em;
}

h2 {
    margin-bottom: 1rem;
    color: var(--primary-dark);
    font-size: clamp(2rem, 8vw, 3.35rem);
    letter-spacing: -.045em;
}

h3 {
    color: var(--primary-dark);
    font-size: 1.2rem;
    letter-spacing: -.025em;
}

.hero-text {
    max-width: 690px;
    color: var(--muted);
    font-size: 1.08rem;
}

.hero-actions {
    display: grid;
    gap: .75rem;
    margin: 2rem 0 2.3rem;
}

.btn {
    min-height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .6rem;
    padding: .9rem 1.25rem;
    border: 1px solid transparent;
    border-radius: 12px;
    font-weight: 850;
    text-align: center;
    text-decoration: none;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    color: var(--white);
    background: var(--primary);
    box-shadow: 0 12px 26px rgba(15, 76, 92, .18);
}

.btn-primary:hover {
    background: var(--primary-dark);
    box-shadow: 0 16px 32px rgba(15, 76, 92, .24);
}

.btn-secondary {
    color: var(--primary);
    border-color: var(--line);
    background: var(--white);
}

.trust-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: .75rem;
}

.trust-row div {
    padding-right: .5rem;
}

.trust-row strong,
.trust-row span {
    display: block;
}

.trust-row strong {
    color: var(--primary-dark);
    font-size: 1rem;
}

.trust-row span {
    color: var(--muted);
    font-size: .78rem;
    line-height: 1.35;
}

.hero-card {
    position: relative;
    overflow: hidden;
    padding: 2rem;
    border-radius: 24px;
    color: var(--white);
    background: var(--primary-dark);
    box-shadow: var(--shadow);
}

.hero-card::after {
    content: "";
    position: absolute;
    width: 180px;
    height: 180px;
    right: -60px;
    bottom: -75px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .05);
}

.hero-card-icon {
    width: 62px;
    height: 62px;
    display: grid;
    place-items: center;
    margin-bottom: 2rem;
    border-radius: 18px;
    color: var(--white);
    background: var(--accent);
}

.hero-card-icon svg {
    width: 36px;
    fill: currentColor;
}

.hero-card-kicker {
    margin-bottom: .35rem;
    color: #a8d9e2;
    font-size: .8rem;
    font-weight: 900;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.hero-card h2 {
    max-width: 330px;
    margin-bottom: 1rem;
    color: var(--white);
    font-size: 2rem;
}

.hero-card p {
    color: #c9dbdf;
}

.hero-card a {
    position: relative;
    z-index: 1;
    display: inline-flex;
    gap: .5rem;
    color: var(--white);
    font-size: 1.2rem;
    font-weight: 900;
    text-decoration: none;
}

/* Sections */

.section {
    padding: 4.5rem 0;
}

.section-heading {
    max-width: 760px;
    margin-bottom: 2.5rem;
}

.section-heading p {
    color: var(--muted);
}

.services {
    background: var(--white);
}

.service-grid {
    display: grid;
    gap: 1rem;
}

.service-card {
    min-height: 230px;
    padding: 1.5rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--white);
    transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}

.service-card:hover {
    transform: translateY(-4px);
    border-color: #bad7dc;
    box-shadow: var(--shadow);
}

.service-number {
    display: block;
    margin-bottom: 2.1rem;
    color: var(--accent);
    font-size: .8rem;
    font-weight: 900;
}

.service-card p {
    margin: 0;
    color: var(--muted);
}

.service-card-highlight {
    color: var(--white);
    border-color: var(--primary);
    background: var(--primary);
}

.service-card-highlight .service-number,
.service-card-highlight h3,
.service-card-highlight p {
    color: var(--white);
}

.reassurance {
    overflow: hidden;
    background: var(--surface);
}

.reassurance-grid {
    display: grid;
    gap: 2.5rem;
}

.reassurance-content p {
    color: var(--muted);
}

.check-list {
    display: grid;
    gap: .8rem;
    margin: 1.7rem 0 0;
    padding: 0;
    list-style: none;
}

.check-list li {
    position: relative;
    padding-left: 2rem;
    font-weight: 750;
}

.check-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: .05rem;
    width: 1.35rem;
    height: 1.35rem;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: var(--white);
    background: var(--accent);
    font-size: .76rem;
}

.reassurance-quote {
    align-self: center;
    position: relative;
    padding: 2rem;
    border-radius: 24px;
    background: var(--white);
    box-shadow: var(--shadow);
}

.quote-mark {
    display: block;
    height: 50px;
    color: var(--primary-light);
    font-family: Georgia, serif;
    font-size: 5rem;
    line-height: .9;
}

.reassurance-quote blockquote {
    margin: 0 0 1.25rem;
    color: var(--primary-dark);
    font-size: 1.3rem;
    font-weight: 800;
    line-height: 1.45;
}

.reassurance-quote cite {
    color: var(--muted);
    font-size: .9rem;
    font-style: normal;
}

.reviews {
    background: var(--primary-dark);
}

.reviews .eyebrow,
.reviews h2 {
    color: var(--white);
}

.reviews .eyebrow {
    color: #8ad6e4;
}

.reviews-heading {
    max-width: none;
    display: grid;
    gap: 1.5rem;
}

.rating-summary {
    width: max-content;
}

.rating-summary strong,
.rating-summary small {
    display: block;
}

.rating-summary strong {
    color: var(--white);
    font-size: 2.8rem;
    line-height: 1;
}

.rating-summary small {
    margin-top: .25rem;
    color: #a9c0c5;
}

.stars {
    color: var(--warning);
    letter-spacing: .08em;
}

.review-grid {
    display: grid;
    gap: 1rem;
}

.review-card {
    display: flex;
    flex-direction: column;
    min-height: 255px;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: var(--radius);
    color: #d6e5e8;
    background: rgba(255, 255, 255, .055);
}

.review-card .stars {
    margin-bottom: 1.1rem;
}

.review-card p {
    flex: 1;
    font-size: 1rem;
}

.review-card footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, .1);
}

.review-card footer strong {
    color: var(--white);
}

.review-card footer span {
    color: #8fb2ba;
    font-size: .8rem;
}

.area {
    background: var(--white);
}

.area-grid {
    display: grid;
    gap: 2.5rem;
}

.area-map {
    position: relative;
    min-height: 320px;
    overflow: hidden;
    border-radius: 24px;
    background:
        linear-gradient(30deg, transparent 24%, rgba(15, 76, 92, .04) 25%, rgba(15, 76, 92, .04) 26%, transparent 27%, transparent 74%, rgba(15, 76, 92, .04) 75%, rgba(15, 76, 92, .04) 76%, transparent 77%),
        linear-gradient(120deg, transparent 24%, rgba(15, 76, 92, .04) 25%, rgba(15, 76, 92, .04) 26%, transparent 27%, transparent 74%, rgba(15, 76, 92, .04) 75%, rgba(15, 76, 92, .04) 76%, transparent 77%),
        var(--surface);
    background-size: 62px 108px;
}

.map-ring {
    position: absolute;
    left: 50%;
    top: 50%;
    border: 1px solid rgba(29, 155, 181, .23);
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

.map-ring-1 {
    width: 190px;
    height: 190px;
}

.map-ring-2 {
    width: 310px;
    height: 310px;
}

.map-pin {
    position: absolute;
    left: 50%;
    top: 48%;
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    border-radius: 50% 50% 50% 0;
    background: var(--primary);
    box-shadow: 0 14px 30px rgba(15, 76, 92, .22);
    transform: translate(-50%, -50%) rotate(-45deg);
}

.map-pin span {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--white);
}

.map-label {
    position: absolute;
    left: 50%;
    top: calc(48% + 60px);
    padding: .65rem 1rem;
    border-radius: 10px;
    background: var(--white);
    box-shadow: 0 8px 22px rgba(15, 76, 92, .1);
    text-align: center;
    transform: translateX(-50%);
}

.map-label strong,
.map-label span {
    display: block;
}

.map-label strong {
    color: var(--primary-dark);
}

.map-label span {
    color: var(--muted);
    font-size: .78rem;
}

.area-content p {
    color: var(--muted);
}

.area-tags {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin: 1.5rem 0;
}

.area-tags span {
    padding: .5rem .75rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--primary);
    background: var(--surface);
    font-size: .85rem;
    font-weight: 750;
}

.text-link {
    display: inline-flex;
    gap: .4rem;
    color: var(--primary);
    font-weight: 850;
    text-decoration: none;
}

.contact {
    background: var(--surface);
}

.contact-grid {
    display: grid;
    gap: 2rem;
}

.contact-info > p {
    color: var(--muted);
}

.contact-phone {
    display: block;
    margin: 2rem 0;
    padding: 1.25rem;
    border-radius: 16px;
    color: var(--white);
    background: var(--primary);
    text-decoration: none;
}

.contact-phone span,
.contact-phone strong {
    display: block;
}

.contact-phone span {
    margin-bottom: .25rem;
    color: #b4dfe6;
    font-size: .78rem;
    font-weight: 850;
    letter-spacing: .07em;
    text-transform: uppercase;
}

.contact-phone strong {
    font-size: clamp(1.6rem, 8vw, 2.35rem);
    line-height: 1.1;
}

.contact-details {
    display: grid;
    gap: 1rem;
}

.contact-details div {
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--line);
}

.contact-details span,
.contact-details strong {
    display: block;
}

.contact-details span {
    margin-bottom: .25rem;
    color: var(--muted);
    font-size: .8rem;
}

.contact-form {
    padding: 1.4rem;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: var(--white);
    box-shadow: var(--shadow);
}

.form-row {
    display: grid;
    gap: 1rem;
}

.field {
    margin-bottom: 1rem;
}

.field label {
    display: block;
    margin-bottom: .42rem;
    color: var(--primary-dark);
    font-size: .85rem;
    font-weight: 800;
}

.field input,
.field select,
.field textarea {
    width: 100%;
    min-height: 50px;
    padding: .8rem .9rem;
    border: 1px solid #cfdcdf;
    border-radius: 10px;
    outline: 0;
    color: var(--ink);
    background: var(--white);
    transition: border-color .2s ease, box-shadow .2s ease;
}

.field textarea {
    min-height: 130px;
    resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(29, 155, 181, .12);
}

.field input.invalid,
.field select.invalid,
.field textarea.invalid {
    border-color: #bd3535;
}

.consent {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: start;
    gap: .7rem;
    margin: .5rem 0 1.25rem;
    color: var(--muted);
    font-size: .8rem;
}

.consent input {
    margin-top: .2rem;
}

.btn-full {
    width: 100%;
    border: 0;
}

.form-note {
    margin: .9rem 0 0;
    color: var(--muted);
    font-size: .78rem;
}

.form-status {
    min-height: 1.3em;
    margin: .65rem 0 0;
    color: #a22f2f;
    font-size: .82rem;
    font-weight: 700;
}

/* Footer */

.site-footer {
    padding: 3.5rem 0 5.5rem;
    color: #b5c8cc;
    background: #082d36;
}

.footer-grid {
    display: grid;
    gap: 2rem;
}

.brand-footer {
    color: var(--white);
}

.footer-grid p {
    max-width: 340px;
    margin: 1rem 0 0;
}

.footer-grid h2 {
    margin-bottom: .9rem;
    color: var(--white);
    font-size: .85rem;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.footer-grid a,
.footer-grid span:not(.brand-mark) {
    width: fit-content;
    display: block;
    margin-bottom: .45rem;
    color: #b5c8cc;
    text-decoration: none;
}

.footer-grid a:hover {
    color: var(--white);
}

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    margin-top: 2.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, .1);
    font-size: .8rem;
}

.footer-bottom p {
    margin: 0;
}

.legal-open {
    padding: 0;
    border: 0;
    color: #b5c8cc;
    background: none;
    text-decoration: underline;
}

.mobile-call {
    position: fixed;
    z-index: 900;
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .7rem;
    min-height: 58px;
    padding: .7rem 1rem;
    border-radius: 15px;
    color: var(--white);
    background: var(--primary);
    box-shadow: 0 14px 35px rgba(6, 46, 55, .3);
    text-decoration: none;
}

.mobile-call > span:first-child {
    font-size: 1.25rem;
}

.mobile-call small,
.mobile-call strong {
    display: block;
    line-height: 1.1;
}

.mobile-call small {
    margin-bottom: .2rem;
    color: #c9e8ed;
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.mobile-call strong {
    font-size: 1.05rem;
}

/* Legal */

.legal-modal {
    width: min(92vw, 760px);
    max-height: 86vh;
    padding: 0;
    border: 0;
    border-radius: 18px;
    color: var(--ink);
    background: var(--white);
    box-shadow: 0 30px 80px rgba(0, 0, 0, .28);
}

.legal-modal::backdrop {
    background: rgba(5, 26, 31, .7);
    backdrop-filter: blur(4px);
}

.legal-modal-header {
    position: sticky;
    top: 0;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.25rem 1.4rem;
    border-bottom: 1px solid var(--line);
    background: var(--white);
}

.legal-modal-header h2 {
    margin: 0;
    font-size: 1.45rem;
}

.legal-modal-header button {
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 50%;
    color: var(--primary-dark);
    background: var(--surface);
    font-size: 1.6rem;
    line-height: 1;
}

.legal-modal-content {
    padding: 1.4rem;
}

.legal-modal-content h3 {
    margin: 1.5rem 0 .5rem;
}

.legal-modal-content h3:first-child {
    margin-top: 0;
}

.legal-modal-content p {
    color: var(--muted);
}

/* Animations */

.reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .55s ease, transform .55s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* Tablets */

@media (min-width: 680px) {
    .container {
        width: min(calc(100% - 3rem), var(--container));
    }

    .hero-actions {
        display: flex;
        flex-wrap: wrap;
    }

    .service-grid,
    .review-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .form-row,
    .contact-details {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: 1.5fr 1fr 1fr;
    }
}

/* Desktop */

@media (min-width: 980px) {
    section {
        scroll-margin-top: 90px;
    }

    .header-inner {
        min-height: 82px;
        grid-template-columns: auto 1fr auto;
    }

    .menu-toggle {
        display: none;
    }

    .main-nav {
        position: static;
        display: flex;
        justify-self: center;
        padding: 0;
        border: 0;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
    }

    .main-nav a {
        padding: .6rem .75rem;
        font-size: .88rem;
    }

    .header-call {
        display: block;
        padding-left: 1.4rem;
        border-left: 1px solid var(--line);
        text-decoration: none;
        text-align: right;
    }

    .header-call span,
    .header-call strong {
        display: block;
    }

    .header-call span {
        color: var(--accent);
        font-size: .68rem;
        font-weight: 900;
        letter-spacing: .08em;
        text-transform: uppercase;
    }

    .header-call strong {
        color: var(--primary-dark);
        font-size: 1rem;
    }

    .hero {
        min-height: 650px;
        display: grid;
        align-items: center;
        padding: 5.2rem 0;
    }

    .hero-grid {
        grid-template-columns: minmax(0, 1.55fr) minmax(330px, .75fr);
        align-items: center;
        gap: 4rem;
    }

    h1 {
        font-size: clamp(3.9rem, 6.2vw, 5.65rem);
    }

    .hero-card {
        padding: 2.4rem;
    }

    .section {
        padding: 6.5rem 0;
    }

    .service-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .reassurance-grid {
        grid-template-columns: 1.05fr .8fr;
        align-items: center;
        gap: 5rem;
    }

    .reviews-heading {
        grid-template-columns: 1fr auto;
        align-items: end;
    }

    .review-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .area-grid,
    .contact-grid {
        grid-template-columns: 1fr 1fr;
        align-items: center;
        gap: 5rem;
    }

    .contact-form {
        padding: 2rem;
    }

    .mobile-call {
        display: none;
    }

    .site-footer {
        padding-bottom: 3rem;
    }
}

@media (min-width: 1200px) {
    .main-nav a {
        padding-inline: .95rem;
    }
}
