/* ==================================================
   ST IVES LOCAL LANDING PAGE
================================================== */

/* HERO */

.local-hero {
    background:
        linear-gradient(rgba(20,30,50,.62), rgba(20,30,50,.62)),
        url("images/Stives_hero.webp");
    background-size: cover;
    background-position: center;
    color: var(--ns-white);
    min-height: 520px;
    padding: 110px 0;
    display: flex;
    align-items: center;
    text-align: center;
}

.local-hero-content {
    max-width: 900px;
    margin: 0 auto;
}

.local-label {
    display: inline-block;
    color: var(--ns-red);
    font-size: 16px;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 14px;
}

.local-hero h1 {
    color: var(--ns-white);
    font-size: 54px;
    line-height: 1.08;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 24px;
}

.local-hero p {
    color: rgba(255,255,255,.92);
    font-size: 18px;
    line-height: 1.6;
    max-width: 760px;
    margin: 0 auto 10px;
}

/* SUBMENU */

.local-nav-section {
    background: #444B57;
}

.local-nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 14px 34px;
    padding: 18px 0;
}

.local-nav a {
    position: relative;
    color: var(--ns-white);
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color .25s ease;
}

.local-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 0;
    height: 2px;
    background: var(--ns-red);
    transition: width .25s ease;
}

.local-nav a:hover {
    color: var(--ns-red);
}

.local-nav a:hover::after {
    width: 100%;
}

/* SECTIONS */

.local-section {
    padding: 100px 0;
    background: var(--ns-white);
}

.local-section-light {
    background: var(--ns-light);
}

.local-heading {
    max-width: 850px;
    margin: 0 auto 48px;
    text-align: center;
}

.local-heading h2 {
    color: var(--ns-blue);
    font-size: 42px;
    line-height: 1.15;
    margin-bottom: 18px;
}

.local-heading p,
.local-text p {
    color: #4f5d8c;
    font-size: 17px;
    line-height: 1.65;
    margin-bottom: 18px;
}

/* CARDS */

.local-services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.local-card {
    background: var(--ns-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 12px 30px rgba(0,0,0,.13);
    transition: transform .28s ease, box-shadow .28s ease;
}

.local-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 38px rgba(0,0,0,.2);
}

.local-card img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    transition: transform .35s ease;
}

.local-card:hover img {
    transform: scale(1.05);
}

.local-card-content {
    padding: 28px 26px;
}

.local-card-content h3 {
    color: var(--ns-blue);
    font-size: 22px;
    line-height: 1.2;
    margin-bottom: 12px;
}

.local-card-content p {
    color: #4f5d8c;
    font-size: 15px;
    line-height: 1.55;
}

/* INFO BOX */

.local-box {
    max-width: 960px;
    margin: 0 auto;
    background: var(--ns-white);
    border-left: 6px solid var(--ns-red);
    border-radius: 12px;
    padding: 42px;
    box-shadow: 0 12px 30px rgba(0,0,0,.12);
}

/* IMAGES INSIDE INFO BOX */

.local-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
    margin-top: 36px;
}

.local-gallery img {
    width: 100%;
    height: 270px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0,0,0,.15);
    transition: .3s ease;
}

.local-gallery img:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 35px rgba(0,0,0,.22);
}

/* SERVICE AREA MAP */

.local-map {
    max-width: 600px;
    margin: 50px auto 0;
}

.local-map img {
    display: block;
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 15px 35px rgba(0,0,0,.15);
}

.local-map-note {
    max-width: 760px;
    margin: 28px auto 0;
    text-align: center;
    color: #4f5d8c;
    font-size: 17px;
    line-height: 1.7;
}

.local-map-note strong {
    color: var(--ns-blue);
}

/* FINAL CTA */

.local-cta {
    background:
        linear-gradient(rgba(255,255,255,.35), rgba(255,255,255,.35)),
        url("images/cta_background.webp");
    background-size: cover;
    background-position: center;
    padding: 80px 0;
    text-align: center;
}

.local-cta h2 {
    color: var(--ns-blue);
    font-size: 44px;
    line-height: 1.15;
    margin-bottom: 20px;
}

.local-cta p {
    color: var(--ns-blue);
    max-width: 760px;
    margin: 0 auto 18px;
    font-size: 17px;
    line-height: 1.6;
    font-weight: 500;
}

.local-cta-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 28px;
}

/* RESPONSIVE */

@media (max-width: 900px) {

    .local-services-grid {
        grid-template-columns: 1fr 1fr;
    }

    .local-hero {
        min-height: 460px;
        padding: 90px 0;
    }

    .local-hero h1 {
        font-size: 40px;
    }
}

@media (max-width: 650px) {

    .local-hero {
        min-height: 430px;
        padding: 80px 0;
    }

    .local-hero h1 {
        font-size: 34px;
    }

    .local-services-grid {
        grid-template-columns: 1fr;
    }

    .local-section {
        padding: 70px 0;
    }

    .local-heading {
        margin-bottom: 36px;
    }

    .local-heading h2,
    .local-cta h2 {
        font-size: 32px;
    }

    .local-heading p,
    .local-text p,
    .local-cta p {
        font-size: 16px;
    }

    .local-box {
        padding: 30px 24px;
    }

    .local-card img {
        height: 240px;
    }

    .local-cta-buttons {
        flex-direction: column;
    }

    .local-cta-buttons a {
        width: 100%;
    }
	
	.local-gallery {
    grid-template-columns: 1fr;
	}

	.local-gallery img {
    height: 220px;
	}
}