/* =========================================
   SWIM SAFE POOL CARE
   Main Website Styles
   ========================================= */

:root {
    --navy: #062b42;
    --dark-blue: #073f5c;
    --blue: #087ea4;
    --aqua: #12a9bd;
    --light-aqua: #eaf9fb;
    --white: #ffffff;
    --text: #163241;
    --muted: #607681;
    --border: #d9e7eb;
    --light-gray: #f6fafb;
}


/* =========================================
   BASIC RESET
   ========================================= */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    color: var(--text);
    line-height: 1.6;
    background: white;
}

h1,
h2,
h3,
strong {
    font-family: Arial, Helvetica, sans-serif;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

a {
    transition: 0.2s ease;
}


/* =========================================
   CONTAINERS
   ========================================= */

.container {
    width: 92%;
    max-width: 1120px;
    margin: 0 auto;
}

.narrow {
    max-width: 800px;
}

.center {
    text-align: center;
}


/* =========================================
   NAVIGATION
   ========================================= */

.navbar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10;

    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.nav-container {
    height: 80px;

    display: flex;
    align-items: center;
    justify-content: space-between;
}


/* Logo */

.logo {
    display: flex;
    align-items: center;
    gap: 11px;

    color: white;
}

.logo-circle {
    width: 42px;
    height: 42px;

    border: 2px solid white;
    border-radius: 50%;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 21px;
    font-weight: bold;
}

.logo-text {
    font-weight: bold;
    font-size: 17px;
    letter-spacing: 2px;
    line-height: 1;
}

.logo-text span {
    display: block;

    margin-top: 5px;

    font-size: 9px;
    letter-spacing: 3px;
}


/* Navigation Button */

.nav-button {
    color: white;
    text-decoration: none;

    border: 1px solid rgba(255, 255, 255, 0.7);

    padding: 10px 17px;

    border-radius: 50px;

    font-size: 13px;
    font-weight: bold;
}

.nav-button:hover {
    background: white;
    color: var(--navy);
}


/* =========================================
   HERO
   ========================================= */

.hero {
    min-height: 720px;

    display: flex;
    align-items: center;

    position: relative;

    overflow: hidden;

    background:
        radial-gradient(
            circle at 80% 25%,
            rgba(255,255,255,0.18),
            transparent 30%
        ),
        linear-gradient(
            120deg,
            #062b42,
            #075d7c 60%,
            #0aa4b5
        );
}


/* Decorative water effect */

.hero::after {
    content: "";

    position: absolute;

    left: -10%;
    right: -10%;
    bottom: -35%;

    height: 60%;

    background: rgba(255,255,255,0.06);

    border-radius: 50%;
}


/* Hero Content */

.hero-content {
    position: relative;

    z-index: 2;

    padding-top: 100px;

    color: white;
}

.eyebrow {
    color: var(--aqua);

    font-size: 12px;

    font-weight: bold;

    letter-spacing: 2px;

    margin-bottom: 12px;
}

.hero .eyebrow {
    color: #b8f4f7;
}


.hero h1 {
    font-size: clamp(46px, 7vw, 78px);

    line-height: 1.02;

    letter-spacing: -2px;

    margin-bottom: 25px;
}

.hero h1 span {
    color: #b8f3f5;
}


.hero-subtitle {
    max-width: 650px;

    font-size: 20px;

    color: #e2f5f7;

    margin-bottom: 30px;
}


/* Hero Buttons */

.hero-buttons {
    display: flex;

    gap: 12px;

    flex-wrap: wrap;
}

.button {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    padding: 13px 21px;

    border-radius: 8px;

    text-decoration: none;

    font-weight: bold;

    border: none;

    cursor: pointer;

    font-size: 14px;
}

.primary-button {
    background: #baf7fb;

    color: var(--navy);
}

.primary-button:hover {
    background: white;

    transform: translateY(-1px);
}

.secondary-button {
    color: white;

    border: 1px solid rgba(255,255,255,0.7);
}

.secondary-button:hover {
    background: white;

    color: var(--navy);
}


.service-area {
    margin-top: 27px;

    font-size: 13px;

    color: #d4eff1;
}


/* =========================================
   PROMISE
   ========================================= */

.promise {
    padding: 85px 0;

    text-align: center;

    background: var(--light-aqua);
}

.promise h2 {
    font-size: clamp(30px, 4vw, 46px);

    line-height: 1.15;

    letter-spacing: -1px;

    margin-bottom: 20px;
}

.promise p:last-child {
    color: var(--muted);

    font-size: 18px;
}


/* =========================================
   GENERAL SECTIONS
   ========================================= */

.section {
    padding: 90px 0;
}

.section-heading {
    max-width: 720px;

    margin-bottom: 42px;
}

.section-heading h2 {
    font-size: clamp(30px, 4vw, 46px);

    line-height: 1.15;

    letter-spacing: -1px;

    margin-bottom: 15px;
}

.section-heading p:last-child {
    color: var(--muted);

    font-size: 17px;
}


/* =========================================
   SERVICES
   ========================================= */

.service-grid {
    display: grid;

    grid-template-columns: repeat(4, 1fr);

    gap: 18px;
}

.service-card {
    padding: 28px;

    border: 1px solid var(--border);

    border-radius: 14px;

    background: white;

    box-shadow:
        0 8px 25px rgba(7, 45, 62, 0.05);
}

.service-icon {
    width: 43px;
    height: 43px;

    border-radius: 50%;

    background: var(--light-aqua);

    color: var(--blue);

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 19px;

    font-weight: bold;

    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 19px;

    margin-bottom: 8px;
}

.service-card p {
    color: var(--muted);

    font-size: 14px;

    margin-bottom: 0;
}


/* =========================================
   WHY US
   ========================================= */

.why-us {
    background: var(--light-gray);

    padding: 90px 0;
}

.why-grid {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 80px;

    align-items: center;
}

.why-grid > div:first-child p:last-child {
    color: var(--muted);

    font-size: 17px;
}

.why-grid h2 {
    font-size: clamp(30px, 4vw, 46px);

    line-height: 1.15;

    letter-spacing: -1px;
}


.benefits {
    display: grid;

    gap: 23px;
}

.benefit {
    display: grid;

    grid-template-columns: 34px 1fr;

    column-gap: 12px;
}

.check {
    width: 30px;
    height: 30px;

    border-radius: 50%;

    background: #dff6f7;

    color: var(--blue);

    display: flex;
    align-items: center;
    justify-content: center;

    font-weight: bold;
}

.benefit h3 {
    font-size: 16px;

    margin-bottom: 3px;
}

.benefit p {
    grid-column: 2;

    color: var(--muted);

    font-size: 14px;

    margin: 0;
}


/* =========================================
   SERVICE AREA
   ========================================= */

.service-area-section {
    background: white;
}

.area-list {
    display: flex;

    flex-wrap: wrap;

    justify-content: center;

    gap: 10px;

    margin: 30px 0;
}

.area-list span {
    padding: 10px 16px;

    border: 1px solid var(--border);

    border-radius: 50px;

    background: white;

    font-weight: bold;
}

.service-area-section p:last-child {
    color: var(--muted);
}


/* =========================================
   QUOTE SECTION
   ========================================= */

.quote-section {
    padding: 90px 0;

    background: var(--navy);

    color: white;
}

.quote-grid {
    display: grid;

    grid-template-columns: 0.8fr 1.2fr;

    gap: 70px;

    align-items: start;
}

.quote-information .eyebrow {
    color: #91e9ee;
}

.quote-information h2 {
    font-size: clamp(30px, 4vw, 46px);

    line-height: 1.15;

    letter-spacing: -1px;
}

.quote-information > p:not(.eyebrow) {
    color: #c7dce3;

    font-size: 17px;
}

.quote-points {
    margin-top: 35px;
}

.quote-points p {
    font-weight: bold;

    color: #dff6f7;
}


/* Quote Form */

.quote-form {
    background: white;

    color: var(--text);

    padding: 32px;

    border-radius: 16px;

    box-shadow:
        0 18px 50px rgba(0,0,0,0.15);
}

.quote-form label {
    display: block;

    font-size: 13px;

    font-weight: bold;

    margin-bottom: 16px;
}

.quote-form input,
.quote-form select,
.quote-form textarea {
    width: 100%;

    margin-top: 6px;

    padding: 12px 13px;

    border: 1px solid var(--border);

    border-radius: 7px;

    font: inherit;

    color: var(--text);

    background: white;
}

.quote-form input:focus,
.quote-form select:focus,
.quote-form textarea:focus {
    outline: 2px solid #9be9ee;

    border-color: var(--aqua);
}

.quote-form textarea {
    resize: vertical;
}

.form-row {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 14px;
}


.form-button {
    width: 100%;

    background: var(--blue);

    color: white;
}

.form-button:hover {
    background: var(--dark-blue);
}


.form-note {
    font-size: 12px;

    color: var(--muted);

    margin-top: 12px;
}

.form-message {
    padding: 12px;

    background: #e8f8f5;

    color: #155c4b;

    border-radius: 7px;

    font-weight: bold;

    margin-top: 12px;
}


/* =========================================
   FAQ
   ========================================= */

.faq details {
    border-top: 1px solid var(--border);

    padding: 20px 0;
}

.faq details:last-child {
    border-bottom: 1px solid var(--border);
}

.faq summary {
    cursor: pointer;

    font-weight: bold;

    font-size: 17px;
}

.faq details p {
    color: var(--muted);

    margin-top: 12px;
}


/* =========================================
   FOOTER
   ========================================= */

footer {
    background: #041b29;

    color: #c7dce3;

    padding: 45px 0 22px;
}

.footer-content {
    display: flex;

    justify-content: space-between;

    gap: 30px;
}

.footer-content strong {
    color: white;

    letter-spacing: 1px;
}

.footer-content p {
    margin: 5px 0 0;

    font-size: 13px;
}

.footer-content > div:last-child {
    font-size: 13px;

    text-align: right;
}

.copyright {
    border-top: 1px solid rgba(255,255,255,0.12);

    margin-top: 30px;

    padding-top: 18px;

    font-size: 12px;

    color: #8da8b3;
}


/* =========================================
   TABLET
   ========================================= */

@media (max-width: 850px) {

    .service-grid {
        grid-template-columns: 1fr 1fr;
    }

    .why-grid,
    .quote-grid {
        grid-template-columns: 1fr;

        gap: 45px;
    }

}


/* =========================================
   PHONE
   ========================================= */

@media (max-width: 600px) {

    .nav-container {
        height: 70px;
    }

    .logo-text {
        font-size: 14px;
    }

    .logo-text span {
        font-size: 8px;
    }

    .nav-button {
        font-size: 11px;

        padding: 8px 11px;
    }


    .hero {
        min-height: 680px;
    }

    .hero-content {
        padding-top: 100px;
    }

    .hero h1 {
        font-size: 46px;
    }

    .hero-subtitle {
        font-size: 17px;
    }


    .service-grid {
        grid-template-columns: 1fr;
    }


    .section,
    .why-us,
    .quote-section {
        padding: 65px 0;
    }


    .form-row {
        grid-template-columns: 1fr;

        gap: 0;
    }


    .footer-content {
        display: block;
    }

    .footer-content > div:last-child {
        text-align: left;

        margin-top: 20px;
    }

}