/* =========================
   BASE
========================= */

:root {
    --blue: #1f4fa3;
    --blue-dark: #173d80;
    --navy: #0f2340;
    --red: #c4442f;
    --red-dark: #a63826;
    --bg: #ffffff;
    --bg-alt: #f3f5f8;
    --text: #1b2533;
    --text-muted: #5a6574;
    --border: #dde2e9;

    --font-heading: "Barlow Condensed", "Arial Narrow", Arial, sans-serif;
    --font-body: "Barlow", Arial, Helvetica, sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

body {
    background-color: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
}

a {
    color: inherit;
}

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

h1,
h2,
h3 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.05;
    text-transform: uppercase;
}

h2 {
    color: var(--navy);
    font-size: 44px;
}


/* =========================
   BUTTONS
========================= */

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 26px;
    border: 2px solid transparent;
    border-radius: 6px;
    text-decoration: none;
    font-size: 16px;
    font-weight: 700;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.button-primary {
    background-color: var(--red);
    color: #ffffff;
}

.button-primary:hover {
    background-color: var(--red-dark);
}

.button-outline {
    border-color: rgba(255, 255, 255, 0.7);
    color: #ffffff;
}

.button-outline:hover {
    background-color: #ffffff;
    border-color: #ffffff;
    color: var(--navy);
}

.button-secondary {
    border-color: var(--blue);
    color: var(--blue);
}

.button-secondary:hover {
    background-color: var(--blue);
    color: #ffffff;
}


/* =========================
   HEADER
========================= */

.header {
    position: sticky;
    top: 0;
    z-index: 100;
    height: 76px;
    display: flex;
    align-items: center;
    padding: 0 6%;
    background-color: var(--navy);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.logo {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    line-height: 1;
}

.logo-name {
    color: #ffffff;
    font-family: var(--font-heading);
    font-size: 30px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.logo-subtitle {
    margin-top: 3px;
    color: #f07a63;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2.5px;
}

.nav {
    display: flex;
    gap: 32px;
    margin-left: auto;
}

.nav a {
    color: #ffffff;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
}

.nav a:hover {
    color: #9dbcf2;
}

.header-phone {
    margin-left: 36px;
    padding: 11px 18px;
    border-radius: 6px;
    background-color: var(--red);
    color: #ffffff;
    text-decoration: none;
    font-size: 15px;
    font-weight: 700;
}

.header-phone:hover {
    background-color: var(--red-dark);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    margin-left: 10px;
    padding: 0 9px;
    border: 0;
    background: none;
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    height: 2px;
    border-radius: 2px;
    background-color: #ffffff;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.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);
}


/* =========================
   HERO
========================= */

.hero {
    min-height: 600px;
    display: flex;
    align-items: center;
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background-color: var(--navy);
}

.hero-content {
    max-width: 680px;
    padding: 80px 6%;
}

.hero-badge {
    display: inline-block;
    margin-bottom: 20px;
    padding: 6px 12px;
    border-radius: 4px;
    background-color: var(--blue);
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.hero h1 {
    margin-bottom: 20px;
    color: #ffffff;
    font-size: 68px;
    line-height: 0.98;
}

.hero-subtext {
    max-width: 520px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 18px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 32px;
}

.hero-info {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 28px;
    margin-top: 28px;
    list-style: none;
    color: rgba(255, 255, 255, 0.85);
    font-size: 15px;
}

.hero-info strong {
    margin-right: 6px;
    color: #ffffff;
}

.hero-image {
    position: absolute;
    inset: 0;
    z-index: -1;
}

.hero-image::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(
        90deg,
        rgba(15, 35, 64, 0.95) 0%,
        rgba(15, 35, 64, 0.88) 35%,
        rgba(15, 35, 64, 0.55) 60%,
        rgba(15, 35, 64, 0.15) 100%
    );
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}


/* =========================
   TRUST STRIP
========================= */

.trust-strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    background-color: var(--blue);
    color: #ffffff;
}

.trust-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 26px 20px;
    text-align: center;
    border-right: 1px solid rgba(255, 255, 255, 0.2);
}

.trust-item:last-child {
    border-right: none;
}

.trust-item strong {
    font-family: var(--font-heading);
    font-size: 26px;
    font-weight: 700;
    text-transform: uppercase;
    line-height: 1.1;
}

.trust-item span {
    color: rgba(255, 255, 255, 0.85);
    font-size: 15px;
}


/* =========================
   SECTION HEADER (shared)
========================= */

.section-header {
    max-width: 640px;
    margin: 0 auto 48px;
    text-align: center;
}

.section-header h2 {
    margin-bottom: 12px;
}

.section-header p {
    color: var(--text-muted);
    font-size: 17px;
}


/* =========================
   SERVICES
========================= */

.services {
    padding: 80px 6%;
    background-color: var(--bg-alt);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.service-card {
    padding: 32px 26px;
    border-top: 4px solid var(--blue);
    border-radius: 8px;
    background-color: #ffffff;
    box-shadow: 0 4px 16px rgba(15, 35, 64, 0.06);
}

.service-icon {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    border-radius: 50%;
    background-color: rgba(31, 79, 163, 0.1);
}

.service-icon svg {
    width: 26px;
    height: 26px;
    fill: none;
    stroke: var(--blue);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.service-card h3 {
    margin-bottom: 10px;
    color: var(--navy);
    font-size: 24px;
}

.service-card p {
    color: var(--text-muted);
    font-size: 15px;
}

.services-cta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 16px 28px;
    margin-top: 48px;
    text-align: center;
}

.services-cta p {
    color: var(--text);
    font-size: 18px;
    font-weight: 600;
}


/* =========================
   ABOUT
========================= */

.about {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 70px;
    align-items: center;
    padding: 80px 6%;
}

.about-image {
    position: relative;
}

.about-image img {
    width: 100%;
    border-radius: 8px;
}

.about-badge {
    position: absolute;
    right: -20px;
    bottom: -20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 18px 24px;
    border-radius: 8px;
    background-color: var(--red);
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18);
}

.about-badge strong {
    font-family: var(--font-heading);
    font-size: 40px;
    line-height: 1;
}

.about-content h2 {
    margin-bottom: 24px;
}

.about-content p {
    color: var(--text-muted);
    font-size: 17px;
}

.about-content p + p {
    margin-top: 16px;
}


/* =========================
   REVIEWS
========================= */

.reviews {
    padding: 80px 6%;
    background-color: var(--navy);
}

.reviews .section-header h2 {
    color: #ffffff;
}

.reviews .section-header p {
    color: rgba(255, 255, 255, 0.75);
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.review-card {
    display: flex;
    flex-direction: column;
    padding: 32px 28px;
    border-radius: 8px;
    background-color: #ffffff;
}

.review-stars {
    margin-bottom: 16px;
    color: #f2a91d;
    font-size: 20px;
    letter-spacing: 2px;
}

.review-card blockquote {
    flex-grow: 1;
    margin-bottom: 20px;
    color: var(--text);
    font-size: 17px;
}

.review-author {
    color: var(--navy);
    font-size: 16px;
    font-weight: 700;
}

.review-author span {
    color: var(--text-muted);
    font-weight: 500;
}


/* =========================
   VISIT / CONTACT
========================= */

.visit {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 60px;
    padding: 80px 6%;
    background-color: var(--bg-alt);
}

.visit-info h2 {
    margin-bottom: 12px;
}

.visit-info > p {
    margin-bottom: 28px;
    color: var(--text-muted);
    font-size: 17px;
}

.visit-details {
    border-top: 1px solid var(--border);
}

.visit-detail {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 15px;
    padding: 18px 0;
    border-bottom: 1px solid var(--border);
}

.visit-detail span {
    color: var(--blue);
    font-size: 15px;
    font-weight: 700;
}

.visit-detail p,
.visit-detail a {
    color: var(--text);
    text-decoration: none;
    font-size: 16px;
}

.visit-detail a:hover {
    color: var(--blue);
}

.visit-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
}

.visit-media {
    display: grid;
    gap: 20px;
}

.visit-map {
    width: 100%;
    height: 300px;
    border: 0;
    border-radius: 8px;
}

.visit-photo img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 8px;
}

.visit-photo figcaption {
    margin-top: 8px;
    color: var(--text-muted);
    font-size: 14px;
}


/* =========================
   FOOTER
========================= */

.footer {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    padding: 50px 6% 26px;
    background-color: var(--navy);
    color: #ffffff;
}

.footer-logo {
    display: inline-flex;
    flex-direction: column;
    margin-bottom: 14px;
    color: #ffffff;
    text-decoration: none;
    line-height: 1;
}

.footer-logo span {
    font-family: var(--font-heading);
    font-size: 30px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.footer-logo small {
    margin-top: 3px;
    color: #f07a63;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2.5px;
}

.footer-brand p,
.footer-contact p,
.footer-contact a {
    color: rgba(255, 255, 255, 0.75);
    font-size: 15px;
    text-decoration: none;
}

.footer-contact a:hover {
    color: #ffffff;
}

.footer-contact {
    justify-self: end;
    text-align: right;
}

.footer-bottom {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.55);
    font-size: 13px;
}

.back-to-top {
    color: rgba(255, 255, 255, 0.75);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
}

.back-to-top:hover {
    color: #ffffff;
}


/* =========================
   MOBILE CALL BAR
========================= */

.mobile-call-bar {
    display: none;
}


/* =========================
   TABLET
========================= */

@media (max-width: 1024px) {

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

    .reviews-grid {
        grid-template-columns: 1fr;
        max-width: 640px;
        margin: 0 auto;
    }

    .about,
    .visit {
        gap: 40px;
    }
}


/* =========================
   MOBILE
========================= */

@media (max-width: 768px) {

    body {
        padding-bottom: 60px;
    }

    h2 {
        font-size: 36px;
    }

    .header {
        height: 64px;
        padding: 0 5%;
    }

    .nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        gap: 0;
        margin-left: 0;
        padding: 4px 5% 12px;
        background-color: var(--navy);
        box-shadow: 0 10px 16px rgba(0, 0, 0, 0.2);
    }

    .nav.is-open {
        display: flex;
    }

    .nav a {
        padding: 14px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        font-size: 17px;
    }

    .nav a:last-child {
        border-bottom: none;
    }

    .nav-toggle {
        display: flex;
    }

    .header-phone {
        margin-left: auto;
        padding: 9px 12px;
        font-size: 14px;
    }

    .logo-name {
        font-size: 22px;
    }

    .logo-subtitle {
        font-size: 9px;
        letter-spacing: 2px;
    }

    .hero {
        min-height: 540px;
    }

    .hero-content {
        padding: 60px 6%;
    }

    .hero-image::before {
        background: rgba(15, 35, 64, 0.82);
    }

    .hero h1 {
        font-size: 46px;
    }

    .hero-subtext {
        font-size: 16px;
    }

    .hero-actions .button {
        flex: 1 1 100%;
    }

    .hero-info {
        flex-direction: column;
    }

    .trust-strip {
        grid-template-columns: 1fr;
    }

    .trust-item {
        padding: 18px 20px;
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    }

    .trust-item:last-child {
        border-bottom: none;
    }

    .services,
    .about,
    .reviews,
    .visit {
        padding: 60px 6%;
    }

    .section-header {
        margin-bottom: 32px;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .services-cta {
        margin-top: 36px;
    }

    .about {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .about-badge {
        right: 12px;
        bottom: -18px;
        padding: 12px 18px;
    }

    .about-badge strong {
        font-size: 32px;
    }

    .visit {
        grid-template-columns: 1fr;
    }

    .visit-detail {
        grid-template-columns: 80px 1fr;
    }

    .visit-actions .button {
        flex: 1 1 auto;
    }

    .visit-map {
        height: 240px;
    }

    .footer {
        grid-template-columns: 1fr;
        gap: 28px;
        padding: 44px 6% 24px;
    }

    .footer-contact {
        justify-self: start;
        text-align: left;
    }

    .mobile-call-bar {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 100;
        display: flex;
        align-items: center;
        justify-content: center;
        height: 60px;
        background-color: var(--red);
        color: #ffffff;
        text-decoration: none;
        font-size: 17px;
        font-weight: 700;
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
    }
}
