/* CSS Variables */
:root {
    --primary-yellow: #facc15;
    --primary-blue: #2563eb;
    --blue-dark: #1e4eb8;
    --navy: #102944;
    --text-dark: #333333;
    --text-light: #666666;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --border: #e3e8ef;
    --font-body: 'Work Sans', sans-serif;
    --font-title: 'DM Sans', sans-serif;
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--bg-white);
}

h1, h2, h3, h4 {
    font-family: var(--font-title);
    font-weight: 500;
    color: var(--primary-blue);
}

img { max-width: 100%; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 50px;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 3px solid var(--primary-blue);
    outline-offset: 2px;
    border-radius: 3px;
}

/* --- Header Navigation --- */
header {
    position: sticky;
    top: 0;
    width: 100%;
    background-color: var(--bg-white);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
    padding: 14px 0;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1500px;
    margin: 0 auto;
    padding: 0 40px;
}

.phone-container {
    flex: 1;
    display: flex;
    justify-content: flex-start;
}

.nav-center { flex: 0 0 auto; }

.logo-container {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.header-logo {
    height: 60px;
    width: auto;
    display: block;
    transition: transform 0.3s ease;
}

.logo-container a:hover .header-logo {
    transform: scale(1.05);
}

.bouncing-phone {
    display: inline-flex;
    align-items: center;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary-blue);
    text-decoration: none;
    padding: 10px 0;
    animation: bounce 2s infinite;
    transition: color 0.3s;
}

.bouncing-phone:hover { color: var(--blue-dark); }

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-12px); }
    60% { transform: translateY(-6px); }
}

@media (prefers-reduced-motion: reduce) {
    .bouncing-phone { animation: none; }
    html { scroll-behavior: auto; }
}

.nav-links {
    display: flex;
    gap: 34px;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: #3c4757;
    font-weight: 500;
    font-size: 1.05rem;
    transition: color 0.3s ease;
}

.nav-links a:hover { color: var(--primary-blue); }

/* --- Hero Section --- */
.hero {
    position: relative;
    height: 76vh;
    min-height: 540px;
    background: linear-gradient(rgba(10, 22, 40, 0.55), rgba(10, 22, 40, 0.68)),
                url('https://images.pexels.com/photos/3177257/pexels-photo-3177257.jpeg?auto=compress&cs=tinysrgb&w=1920&q=85') center/cover no-repeat;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 20px;
}

.hero h1 {
    color: white;
    margin-bottom: 18px;
}

.hero-lead {
    display: block;
    font-size: clamp(1.6rem, 3vw, 2.5rem);
    font-weight: 300;
    letter-spacing: 0.04em;
    margin-bottom: -0.12em;
}

.hero-word {
    display: block;
    font-size: clamp(4rem, 9vw, 6.8rem);
    font-weight: 500;
    line-height: 1;
    letter-spacing: -1px;
}

.hero-sub {
    font-size: 1.1rem;
    color: #eef2f8;
    max-width: 560px;
    margin: 0 auto 28px;
}

.hero-badges {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 34px;
}

.hero-badge {
    display: flex;
    align-items: center;
    gap: 9px;
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: 999px;
    padding: 9px 20px;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--navy);
}

.hero-badge svg {
    width: 19px;
    height: 19px;
    color: var(--primary-blue);
    flex-shrink: 0;
}

.hero-btn {
    display: inline-block;
    background-color: var(--primary-blue);
    color: #ffffff;
    padding: 16px 45px;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    border-radius: 4px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.25);
}

.hero-btn:hover {
    background-color: var(--blue-dark);
    transform: translateY(-3px);
}

/* --- Shared Section Title Style --- */
.section-title-container {
    text-align: center;
    margin-bottom: 45px;
}

.eyebrow {
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--primary-blue);
    margin-bottom: 8px;
}

.section-title {
    font-size: 2.5rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--primary-yellow);
}

/* --- Alternating Background Classes --- */
.bg-white { background-color: var(--bg-white); }
.bg-grey { background-color: var(--bg-light); }

/* --- Services Section --- */
.services { padding: 70px 0; }

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

/* Four services sit as a 2x2 block rather than a row of three plus a stray. */
.services-row-4 {
    grid-template-columns: repeat(2, 1fr);
    max-width: 820px;
    margin: 0 auto;
}

.services-row-4 .service-item:nth-child(2n) { border-left: 1px solid #e5e7eb; }
.services-row-4 .service-item:nth-child(n+3) { border-top: 1px solid #e5e7eb; }

.service-item {
    display: block;
    text-decoration: none;
    text-align: center;
    padding: 34px 36px;
    transition: transform 0.3s ease;
}

.services-row:not(.services-row-4) .service-item + .service-item { border-left: 1px solid #e5e7eb; }

.service-item:hover { transform: translateY(-6px); }

.service-item svg {
    width: 52px;
    height: 52px;
    color: var(--primary-blue);
    margin-bottom: 16px;
}

.service-item h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.service-item:hover h3 { color: var(--primary-blue); }

.service-item p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.6;
    max-width: 300px;
    margin: 0 auto;
}

/* --- Why Choose Us Section --- */
.why-choose-us { padding: 70px 0; }

.zigzag-row {
    display: flex;
    align-items: center;
    gap: 55px;
    margin-bottom: 55px;
    text-align: left;
}

.zigzag-row:last-child { margin-bottom: 0; }

.why-choose-us .zigzag-row:nth-of-type(even) { flex-direction: row-reverse; }

.zigzag-image { flex: 0 0 auto; }

.zigzag-image img {
    width: 320px;
    height: 320px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.zigzag-text { flex: 1 1 auto; }

.zigzag-text h3 {
    font-size: 1.8rem;
    margin-bottom: 12px;
    color: var(--text-dark);
}

.zigzag-text p {
    color: var(--text-light);
    font-size: 1.02rem;
    line-height: 1.75;
}

.area-list {
    margin-top: 14px;
    font-size: 0.95rem;
}

.area-list strong { color: var(--text-dark); }

/* --- Catchment Map --- */
.zigzag-map {
    flex: 0 0 auto;
    text-align: center;
}

.map-circle {
    width: 320px;
    height: 320px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    background-color: #eaeff6;
    position: relative;
    z-index: 0;
}

.map-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 40px;
    font-size: 0.9rem;
    color: #8b95a3;
    text-align: center;
}

.map-controls {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 14px;
}

.map-controls button {
    min-width: 34px;
    height: 34px;
    padding: 0 12px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: var(--bg-white);
    color: var(--primary-blue);
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    transition: background-color 0.2s, border-color 0.2s;
}

.map-controls button:hover {
    border-color: var(--primary-blue);
    background-color: #f2f6fd;
}

.map-caption {
    margin-top: 12px;
    font-size: 0.78rem;
    color: #9aa4b2;
    max-width: 320px;
    line-height: 1.5;
}

.map-caption a { color: #8b95a3; }

.leaflet-container { font-family: var(--font-body); }

/* --- Testimonials Slider --- */
.testimonials-section {
    padding: 70px 0;
    overflow: hidden;
}

.slider-container {
    max-width: 620px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
    touch-action: pan-y;
}

#sliderTrack,
.slider-track {
    display: flex;
    width: 100%;
    cursor: grab;
    will-change: transform;
}

#sliderTrack:active,
.slider-track:active { 
    cursor: grabbing; 
}

.slide {
    min-width: 100%;
    max-width: 100%;
    flex: 0 0 100%;
    padding: 20px 10px;
    box-sizing: border-box;
    user-select: none;
    -webkit-user-select: none;
}

.testimonial-card {
    background: white;
    padding: 50px 35px;
    border-radius: 8px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.07);
    border: 1px solid #eef0f3;
    text-align: center;
    position: relative;
}

.quote-corner {
    position: absolute;
    top: 0;
    right: 0;
    background-color: var(--primary-blue);
    color: white;
    width: 70px;
    height: 70px;
    border-bottom-left-radius: 100%;
    display: flex;
    justify-content: flex-end;
    align-items: flex-start;
    padding: 10px 15px 0 0;
    font-size: 2.5rem;
    font-family: serif;
    line-height: 1;
}

.client-name {
    font-weight: 600;
    font-size: 1.2rem;
    color: var(--text-dark);
    margin-bottom: 5px;
}

.client-designation {
    color: #94a3b8;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.stars {
    color: var(--primary-yellow);
    font-size: 1.2rem;
    margin-bottom: 20px;
    letter-spacing: 2px;
}

.testimonial-text {
    color: var(--text-light);
    font-size: 1.05rem;
}

.slider-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.dot {
    width: 12px;
    height: 12px;
    padding: 0;
    border: none;
    background-color: #cbd5e1;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s;
}

.dot.active { background-color: var(--primary-blue); }

/* --- Contact Section --- */
.contact-section { padding: 70px 0; }

.contact-form-container {
    max-width: 760px;
    margin: 0 auto;
    background-color: var(--bg-white);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    border: 1px solid var(--border);
}

.form-intro {
    color: var(--text-light);
    font-size: 0.98rem;
    margin-bottom: 24px;
    text-align: center;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-group { margin-bottom: 18px; }

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-dark);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 13px 15px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--text-dark);
    background-color: var(--bg-white);
    transition: border-color 0.25s, box-shadow 0.25s;
}

.form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 17px;
    padding-right: 42px;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.14);
}

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

/* Honeypot: kept in the layout but pushed off-screen, so bots that skip
   display:none fields still fill it in. Hidden from assistive tech too. */
.hp-wrap {
    position: absolute !important;
    left: -9999px !important;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.form-consent {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 22px;
}

.form-consent input {
    width: 18px;
    height: 18px;
    margin-top: 3px;
    flex-shrink: 0;
    accent-color: var(--primary-blue);
    cursor: pointer;
}

.form-consent label {
    font-size: 0.92rem;
    color: var(--text-light);
    line-height: 1.5;
    cursor: pointer;
}

.submit-btn {
    display: inline-block;
    width: 100%;
    padding: 15px;
    background-color: var(--primary-blue);
    color: white;
    font-family: var(--font-body);
    font-size: 1.08rem;
    font-weight: 600;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.submit-btn:hover { background-color: var(--blue-dark); }

.form-note {
    margin-top: 14px;
    font-size: 0.83rem;
    color: #8b95a3;
    text-align: center;
}

.form-note a { color: var(--primary-blue); }

/* --- Dedicated Service & Legal Pages --- */
.subpage-header {
    position: sticky;
    top: 0;
    background-color: var(--bg-white);
    border-bottom: 1px solid var(--border);
    padding: 14px 0;
}

.subpage-header .header-logo { height: 54px; }

.page-hero {
    background: linear-gradient(rgba(10, 22, 40, 0.6), rgba(10, 22, 40, 0.72)),
                url('https://images.pexels.com/photos/3177257/pexels-photo-3177257.jpeg?auto=compress&cs=tinysrgb&w=1600&q=85') center/cover no-repeat;
    color: white;
    text-align: center;
    padding: 70px 20px;
}

.page-hero h1 {
    color: white;
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 12px;
    position: relative;
    display: inline-block;
    padding-bottom: 18px;
}

.page-hero h1::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--primary-yellow);
}

.page-hero p {
    max-width: 620px;
    margin: 12px auto 0;
    font-size: 1.05rem;
}

.service-content { padding: 60px 0; }

.service-content .container { max-width: 860px; }

.service-content h2 {
    font-size: 1.6rem;
    margin: 36px 0 14px;
}

.service-content h2:first-child { margin-top: 0; }

.service-content h3 {
    font-size: 1.15rem;
    color: var(--text-dark);
    margin: 24px 0 10px;
}

.service-content p {
    color: var(--text-light);
    margin-bottom: 16px;
    line-height: 1.75;
}

.service-content ul,
.service-content ol {
    margin: 0 0 16px 22px;
    color: var(--text-light);
    line-height: 1.75;
}

.service-content li { margin-bottom: 8px; }

.service-content strong { color: var(--text-dark); }

.service-content a { color: var(--primary-blue); }

.service-content table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.service-content th,
.service-content td {
    border: 1px solid var(--border);
    padding: 10px 12px;
    text-align: left;
    vertical-align: top;
    color: var(--text-light);
}

.service-content th {
    background-color: var(--bg-light);
    color: var(--text-dark);
    font-weight: 600;
}

.policy-meta {
    background-color: var(--bg-light);
    border-left: 3px solid var(--primary-blue);
    padding: 16px 20px;
    margin-bottom: 30px;
    font-size: 0.92rem;
}

.policy-meta p { margin-bottom: 6px; }

.policy-meta p:last-child { margin-bottom: 0; }

.review-notice {
    background-color: #fffbea;
    border: 1px solid #f5e3a3;
    border-radius: 8px;
    padding: 16px 20px;
    margin-bottom: 30px;
    font-size: 0.92rem;
}

.review-notice p { margin-bottom: 0; color: #7a6410; }

.faq-item {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 20px 24px;
    margin-bottom: 14px;
    background: var(--bg-white);
}

.faq-item h3 {
    font-size: 1.1rem;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.faq-item p { margin-bottom: 0; font-size: 0.98rem; }

.page-cta {
    background-color: var(--primary-blue);
    text-align: center;
    padding: 55px 20px;
    color: white;
}

.page-cta h2 {
    color: white;
    font-size: 2rem;
    margin-bottom: 10px;
}

.page-cta p { margin-bottom: 25px; opacity: 0.9; }

.page-cta .hero-btn {
    background-color: var(--primary-yellow);
    color: var(--text-dark);
    font-weight: 600;
}

.page-cta .hero-btn:hover { background-color: #eab308; }

/* --- Footer --- */
footer {
    background-color: #1a1a1a;
    color: #d1d5db;
    padding: 50px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 40px;
    margin-bottom: 35px;
}

.footer-col h4 {
    color: #ffffff;
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-col ul { list-style: none; }

.footer-col ul li { margin-bottom: 12px; }

.footer-col ul li a {
    color: #d1d5db;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-col ul li a:hover { color: var(--primary-yellow); }

.footer-col p { margin-bottom: 12px; line-height: 1.6; }

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #333;
    font-size: 0.9rem;
}

/* --- Responsive --- */
@media (max-width: 900px) {
    .header-container {
        flex-direction: column;
        gap: 12px;
        padding: 0 20px;
    }
    .phone-container,
    .logo-container { justify-content: center; }
    .header-logo { height: 50px; }
    .nav-links {
        gap: 18px;
        flex-wrap: wrap;
        justify-content: center;
    }
    .hero { height: auto; min-height: 82vh; padding: 60px 20px; }
    .container { padding: 0 20px; }
    html { scroll-padding-top: 165px; }

    .services-row,
    .services-row-4 {
        grid-template-columns: 1fr;
        max-width: 480px;
        margin: 0 auto;
        border-top: none;
    }
    .services-row .service-item + .service-item,
    .services-row-4 .service-item:nth-child(2n) {
        border-left: none;
        border-top: 1px solid #e5e7eb;
    }
    .services-row-4 .service-item:first-child { border-top: none; }

    .zigzag-row,
    .why-choose-us .zigzag-row:nth-of-type(even) {
        flex-direction: column;
        text-align: center;
        gap: 25px;
        margin-bottom: 45px;
    }
    .zigzag-image img { width: 280px; height: 280px; }
    .zigzag-text { flex: 1 1 auto; }
    .map-circle { width: 280px; height: 280px; }
    .map-caption { margin-left: auto; margin-right: auto; }

    .testimonial-card { padding: 40px 22px; }
    .contact-form-container { padding: 30px 20px; }
}

@media (max-width: 560px) {
    .form-row { grid-template-columns: 1fr; gap: 0; }
    .hero-badges { gap: 9px; }
    .hero-badge { padding: 8px 16px; font-size: 0.88rem; }
}

.map-circle.map-tiles-failed::after {
    content: 'Map tiles need an internet connection.';
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    text-align: center;
    font-size: 0.85rem;
    color: #7c8797;
    background: rgba(234, 239, 246, 0.94);
}
/* --- Enquiry form error banner --- */
.form-error {
    margin: 0 0 22px;
    padding: 14px 18px;
    border: 1px solid #f0b4b4;
    border-left: 4px solid #d64545;
    border-radius: 8px;
    background-color: #fdf2f2;
    color: #8a2b2b;
    font-size: 0.95rem;
    line-height: 1.6;
}

.form-error a { color: #8a2b2b; font-weight: 600; }
