@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');

:root {
    --font-heading: "Poppins", Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --bg: #f8fafc;
    --surface: #ffffff;
    /* --accent: #1ab309; */
    --accent: #ea1b1b;
    /* --accent: #28a90e; */
    --muted: #64748b;
    --card: linear-gradient(180deg, #ffffff, #f1f5f9);
    --radius: 16px;
    --max-width: 1100px;
    --nav-height: 68px;
    color-scheme: light;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
}

* {
    box-sizing: border-box
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--nav-height) + 15px);
}

body {
    margin: 0;
    background: linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%);
    color: #0f172a;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.45;
    /* padding-bottom: 60px; */
    font-family: var(--font-body);
    font-weight: 400;
    line-height: 1.45;
    overflow-x: hidden;
}

/* Headings */
h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: -0.01em;
    /* margin: .4em 0 .6em; */
}

h1 {
    font-size: clamp(28px, 4vw, 44px)
}

h2 {
    font-size: clamp(20px, 3vw, 28px)
}

h3 {
    font-size: 18px
}

/* Header/Nav */
header {
    position: sticky;
    top: 0;
    z-index: 60;
    height: var(--nav-height);
    /* backdrop-filter: blur(6px); */
    background: rgba(255, 255, 255, 0.8);
    background-color: white;
    background: #770e0e;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
}

.brand div:nth-of-type(2) {
    color: white;
}

.nav-wrap {
    width: 100%;
    max-width: var(--max-width);
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700
}

.logo {
    /* width: 44px;
    height: 44px; */
    /* border-radius: 10px; */
    display: grid;
    place-items: center;
    /* background: linear-gradient(135deg, var(--accent), #ffd6b8); */
    color: #fff;
    font-weight: 800;
    /* padding-right: 3.5em; */
}

.logo img {
    border-radius: 7px;
}

nav {
    margin-left: auto
}

.nav-links {
    display: flex;
    gap: 14px;
    align-items: center
}

.nav-links a {
    color: var(--muted);
    color: white;
    text-decoration: none;
    font-weight: 600;
    padding: 8px 12px;
    border-radius: 8px
}

.nav-links a:hover {
    color: #0f172a;
    background: rgba(253, 247, 247, 0.04);
    background: rgb(237, 201, 201);
}

.cta {
    display: inline-block;
    padding: 10px 14px;
    border-radius: 10px;
    /* background: linear-gradient(90deg, var(--accent), #ff8f5b); */
    background: linear-gradient(90deg, var(--accent), #e14f4f);
    color: #fff;
    font-weight: 700;
    border: none;
    cursor: pointer;
    text-decoration: none
}

.menu-toggle {
    display: none;
    background: #f1f5f9;
    border: 1px solid rgba(0, 0, 0, 0.06);
    color: #0f172a;
    padding: 8px 12px;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer
}

.mobile-menu {
    position: absolute;
    top: var(--nav-height);
    left: 0;
    width: 100%;
    background: #ffffff;
    /* border-radius: 0 0 14px 14px; */
    border-radius: 0px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
    padding: 14px;
    display: none;
    flex-direction: column;
    gap: 6px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    animation: fadeIn 0.2s ease;
    z-index: 70;
}

.mobile-menu a {
    padding: 14px 16px;
    border-radius: 10px;
    font-weight: 600;
    color: #0f172a;
    text-decoration: none;
    width: 100%;
    display: block
}

.mobile-menu a:hover {
    background: #f1f5f9
}

.mobile-menu.open {
    display: flex
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-8px)
    }

    to {
        opacity: 1;
        transform: translateY(0)
    }
}

@media (max-width:900px) {
    .nav-links {
        display: none
    }

    .menu-toggle {
        display: inline-flex
    }
}

main {
    max-width: var(--max-width);
    margin: 28px auto;
    padding: 0 20px
}

/* HERO */
.hero {
    /* min-height: 60vh; */
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 28px;
    align-items: center;
}

.hero-card {
    background: var(--card);
    padding: 36px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.eyebrow {
    color: var(--accent);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 13px
}

h1 {
    font-size: clamp(28px, 4vw, 44px);
    /* margin: 8px 0 12px */
}

p.lead {
    color: var(--muted);
    margin: 0 0 18px
}

.hero-ctas {
    display: flex;
    gap: 12px
}

.hero-preview {
    display: flex;
    flex-direction: column;
    gap: 12px
}

.sample-card {
    border-radius: 12px;
    padding: 16px;
    background: #ffffff;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
    display: flex;
    gap: 10px;
    align-items: center
}

.sample-thumb {
    width: 88px;
    height: 64px;
    border-radius: 8px;
    background: linear-gradient(135deg, #e2e8f0, #cbd5e1);
    display: grid;
    place-items: center;
    color: #475569;
    font-weight: 700
}

/* SERVICES */
.service-list {
    /* margin-top: 44px; */
    display: flex;
    flex-direction: column;
    gap: 18px
}

.service-item {
    display: flex;
    flex-direction: column;
    gap: 18px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), #fbfdff);
    border-radius: 14px;
    border: 1px solid rgba(15, 23, 42, 0.04);
    box-shadow: 0 10px 30px rgba(14, 20, 30, 0.06);
    overflow: hidden;
    transition: transform .22s cubic-bezier(.2, .9, .2, 1), box-shadow .22s;
}

.service-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 22px 44px rgba(14, 20, 30, 0.10)
}

.svc-image {
    width: 100%;
    height: 220px;
    flex: 0 0 auto;
    display: block;
    background: #e6eef6;
    overflow: hidden
}

.svc-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block
}

.svc-content {
    padding: 0 18px 18px 18px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    text-align: left
}

.svc-title-badge {
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: flex-start
}

.svc-title-badge h3 {
    margin: 0;
    font-size: 20px
}

.badge {
    display: inline-block;
    align-self: flex-start;
    background: rgba(53, 120, 255, 0.08);
    color: var(--accent);
    padding: 6px 8px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 12px;
    white-space: nowrap
}

.svc-copy {
    margin: 0;
    color: var(--muted);
    font-size: 15px
}

.svc-foot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 6px;
    flex-wrap: wrap;
    gap: 10px
}

.svc-cta {
    background: linear-gradient(90deg, var(--accent), #e14f4f);
    color: white;
    padding: 8px 12px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 700;
    box-shadow: 0 6px 18px rgba(255, 107, 53, 0.12)
}

.svc-meta {
    color: var(--muted);
    font-weight: 600;
    font-size: 13px
}

/* NEW: Other services tag list */
.service-tags {
    margin-top: 18px;
    padding: 18px;
    border-radius: 12px;
    background: linear-gradient(180deg, #fff, #fff9fb);
    border: 1px solid rgba(123, 45, 109, 0.04);
    box-shadow: 0 8px 24px rgba(18, 24, 33, 0.03);
}

.service-tags h3 {
    /* margin: 0 0 12px 0; */
    margin: 0;
    font-size: 22px;
    font-family: var(--font-heading);
    /* color: var(--accent); */
}

.tags {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

.tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(123, 45, 109, 0.06), rgba(246, 198, 216, 0.04));
    color: var(--accent);
    font-weight: 600;
    font-size: 14px;
    border: 1px solid rgba(123, 45, 109, 0.06);
    cursor: default;
    user-select: none;
    transition: transform .14s ease, box-shadow .14s ease;
    white-space: nowrap;
}

.tag:focus {
    outline: none;
    box-shadow: 0 6px 18px rgba(123, 45, 109, 0.12);
    transform: translateY(-3px);
}

.tag:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(123, 45, 109, 0.08);
}

/* hidden class for collapsed tags */
.tag.hidden {
    display: none !important;
}

/* toggle button */
.tags-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    padding: 8px 12px;
    background: transparent;
    border: 1px solid rgba(123, 45, 109, 0.08);
    font-family: var(--font-body);
    font-size: 13px;
    color: var(--accent);
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
}

.tags-toggle:focus {
    outline: none;
    box-shadow: 0 6px 18px rgba(123, 45, 109, 0.12);
}

/* tiny secondary text for tag counts (optional) */
.tag small {
    display: inline-block;
    font-weight: 600;
    color: rgba(15, 23, 42, 0.6);
    font-size: 12px;
    margin-left: 4px;
}

/* Products grid (now placed above portfolio) */
.products {
    margin-top: 18px;
    /* padding: 18px; */
    border-radius: 12px;
    /* background: linear-gradient(180deg, #fff, #fff9fb); */
    /* border: 1px solid rgba(123, 45, 109, 0.04); */
    /* box-shadow: 0 8px 24px rgba(18, 24, 33, 0.03) */
}

.products h3 {
    margin: 0 0 12px 0;
    font-size: 22px;
    font-family: var(--font-heading);
    /* color: var(--accent); */
}

.products-grid {
    display: grid;
    /* grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); */
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 12px;
    margin-top: 12px
}

.product-card {
    background: #fff;
    border-radius: 12px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(123, 45, 109, 0.04)
}

.product-card img {
    width: 100%;
    /* height: 140px; */
    height: 200px;
    object-fit: cover;
    border-radius: 8px
}

.product-title {
    font-weight: 700;
    color: #0f172a;
    font-size: 15px
}

.product-price {
    color: var(--accent);
    /* font-weight: 800; */
    font-weight: 500;
    font-size: 14px;
    /* margin-top: 4px */
}

.product-actions {
    margin-top: auto;
    display: flex;
    gap: 8px;
    align-items: center
}

.btn-outline {
    background: transparent;
    border: 1px solid rgba(123, 45, 109, 0.08);
    color: var(--accent);
    padding: 8px 10px;
    border-radius: 8px;
    font-weight: 700;
    font-family: var(--font-body);
    text-decoration: none;
    font-size: 13px;
    cursor: pointer;
}

/* Product modal overlay and content */
.product-modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 200;
    background: rgba(0, 0, 0, 0.5);
    padding: 20px
}

.product-modal.open {
    display: flex
}

/* centered content container with padding and max-height so it doesn't touch top/bottom */
.product-modal-content {
    width: 100%;
    max-width: 900px;
    background: #fff;
    border-radius: 12px;
    padding: 18px;
    position: relative;
    box-shadow: 0 30px 60px rgba(2, 6, 23, 0.45);
    max-height: calc(100vh - 80px);
    /* prevents touching top/bottom */
    overflow: auto;
    /* scroll when content is long */
}

.product-modal-content h3.modal-title {
    margin: 0 0 12px 0;
    font-size: 20px;
    /* color: var(--accent); */
}

.pm-close {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #fff;
    border-radius: 8px;
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border: 0;
    cursor: pointer;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.06)
}

/* modal inner card: image + body */
.product-modal-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 8px;
}

.product-modal-card .pm-img {
    background-size: cover;
    background-position: center;
    min-height: 320px;
    max-height: 400px;
    border-radius: 8px
}

.product-modal-card .pm-body {
    display: flex;
    flex-direction: column;
    /* gap: 12px; */
}

.pm-price {
    font-size: 18px;
    font-weight: 800;
    /* color: #0f172a; */
    color: var(--accent);
}

.pm-specs {
    color: var(--muted);
    font-size: 14px;
}

.pm-details {
    margin-top: 6px;
    color: var(--muted);
    font-size: 14px;
}

/* HIDE EXTRA PORTFOLIO CARDS ON GRID (they remain in DOM for lightbox navigation) */
.project.extra {
    display: none;
}

/* simple controls area below the portfolio grid */
#portfolioControls {
    margin-top: 12px;
    display: flex;
    gap: 10px;
    align-items: center;
}

#showAllProjects {
    cursor: pointer;
}

@media(max-width:900px) {
    .product-modal-card {
        grid-template-columns: 1fr;
    }
}


@media (min-width:900px) {
    .service-list {
        gap: 48px
    }

    .service-item {
        flex-direction: row;
        border-radius: 0px;
        align-items: center
    }

    .svc-image {
        flex: 0 0 48%;
        height: auto;
        min-height: 260px
    }

    .svc-content {
        flex: 1;
        padding: 24px 32px;
        align-self: center;
        max-width: 680px
    }

    .service-item:nth-child(even) {
        flex-direction: row-reverse
    }

    .service-item {
        background: transparent;
        border: none;
        box-shadow: none
    }

    .service-item:hover {
        transform: none;
        box-shadow: none
    }

    .svc-title-badge h3 {
        margin: 0;
        font-size: 26px
    }
}

@media (max-width:520px) {
    .svc-image {
        height: 180px
    }
}

/* Portfolio */
#portfolio {
    /* background: linear-gradient(90deg, var(--accent), #59e14f); */
    position: relative;
    padding: 20px 0;
}

#portfolio::before {
    content: "";
    position: absolute;
    inset: 0;
    left: 50%;
    width: 100vw;
    transform: translateX(-50%);
    background: rgb(242, 182, 182);
    z-index: -1;
}

.portfolio-grid {
    margin-top: 18px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 12px;
    /* background: linear-gradient(90deg, var(--accent), #59e14f); */
    position: relative;
    padding: 20px 0;
}

.project {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    min-height: 120px;
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    padding: 0;
    background: #e9eef6
}

.project .proj-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    /* vertical-align: middle; */
    aspect-ratio: 16/9;
    transition: transform .28s ease
}

.project:hover .proj-img {
    transform: scale(1.03)
}

/* sticky overlay label on image */
.project .label {
    position: absolute;
    left: 9px;
    bottom: 9px;
    z-index: 3;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.82));
    padding: 6px 10px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 13px;
    box-shadow: 0 6px 18px rgba(2, 6, 23, 0.08);
    color: #0f172a;
}

/* subtle dark gradient to improve contrast for label */
.project::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.0) 40%, rgba(0, 0, 0, 0.18) 100%);
    pointer-events: none;
}

/* Lightbox */
.lightbox {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.5);
    z-index: 120;
    padding: 28px
}

.lightbox.open {
    display: flex
}

.lightbox-content {
    /* max-width: 1200px; */
    max-width: 700px;
    width: 100%;
    background: #ffffff;
    border-radius: 12px;
    padding: 18px;
    position: relative;
    box-shadow: 0 30px 60px rgba(2, 6, 23, 0.45)
}

.lb-img {
    width: 100%;
    height: 60vh;
    border-radius: 8px;
    background-size: cover;
    background-position: center
}

.lb-meta {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 12px;
    align-items: center
}

.lb-close {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.08);
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 0;
    cursor: pointer;
    color: #0f172a;
    z-index: 130
}

.lb-close svg {
    width: 14px;
    height: 14px;
    display: block;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round
}

.lb-nav {
    display: flex;
    gap: 8px
}

.lb-nav .icon-btn {
    background: #ffffff;
    border-radius: 50%;
    box-shadow: 0 8px 20px rgba(2, 6, 23, 0.12);
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 0;
    cursor: pointer;
    color: #0f172a;
    z-index: 130
}

.lb-nav .icon-btn svg {
    width: 18px;
    height: 18px;
    display: block;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round
}

/* Testimonials */
.testimonials {
    /* margin-top: 44px; */
    padding: 18px;
    padding-bottom: 60px;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
    position: relative;
}

.test-slider {
    display: flex;
    gap: 12px;
    overflow: hidden;
    padding-bottom: 6px
}

.test-card {
    min-width: 260px;
    padding: 16px;
    border-radius: 10px;
    background: #f8fafc
}

.stars {
    color: var(--accent);
    font-size: 20px;
    margin-bottom: 6px
}

.test-nav {
    position: absolute;
    right: 12px;
    bottom: 12px;
    display: flex;
    gap: 8px
}

.test-nav .icon-btn {
    background: #ffffff;
    border-radius: 50%;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.06);
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 0;
    cursor: pointer;
    color: #0f172a
}

.test-nav .icon-btn svg {
    width: 18px;
    height: 18px;
    display: block;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round
}

/* Locations */
.locations {
    /* margin-top: 28px; */
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px
}

.map-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px
}

.map-card {
    border-radius: 12px;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.04);
    box-shadow: 0 10px 30px rgba(14, 20, 30, 0.06);
    display: flex;
    flex-direction: column
}

.map-inner {
    display: flex;
    flex-direction: column
}

.map-frame {
    width: 100%;
    height: 260px;
    border: 0;
    display: block
}

.map-body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px
}

.map-body strong {
    font-weight: 700
}

.map-link {
    color: var(--accent);
    text-decoration: none;
    font-weight: 700
}

.map-note {
    color: var(--muted);
    font-size: 13px;
    margin-top: 6px
}

@media(min-width:900px) {
    .map-grid {
        grid-template-columns: 1fr 1fr
    }

    .map-frame {
        height: 300px
    }

    .map-card {
        background: transparent;
        border: none;
        border-radius: 0px;
        box-shadow: none
    }

    .map-body {
        padding: 16px 0
    }
}

/* Contact cards & form */
.contact {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 18px;
    margin-top: 24px;
}

.bottom {
    margin-top: 30px;
    position: relative;
    padding: 20px 0;
}

.bottom::before {
    content: "";
    position: absolute;
    inset: 0;
    left: 50%;
    width: 100vw;
    transform: translateX(-50%);
    background: #770e0e;
    z-index: -1;
}

#contact-title {
    color: white;
}

/* ===== contact overflow fixes =====
   Prevent children from forcing the container wider than it should be.
   Add this after your existing contact styles.
*/
.contact,
.contact * {
    box-sizing: border-box;
}

/* allow direct children of the .contact grid to shrink properly */
.contact>* {
    min-width: 0;
}

/* same for the contact cards grid items and service-like cards inside */
.contact-cards,
.contact-cards>* {
    min-width: 0;
}

/* allow the contact-method flex items to shrink (fixes long links / unbreakable content) */
.contact-method {
    min-width: 0;
}

/* ensure images / icons never overflow their containers */
.contact-method .icon-img,
.contact .proj-img,
.svc-image img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* inputs/forms scale to fit the column and avoid overflow */
.contact-card input,
.contact-card textarea,
.contact input,
.contact textarea,
.svc-content input,
.svc-content textarea {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

/* make long links wrap instead of forcing width */
.contact-method .contact-link,
.contact .map-body,
.contact .svc-meta {
    overflow-wrap: anywhere;
    word-break: break-word;
    white-space: normal;
}

/* if you prefer to visually clip any tiny overflow (optional) */
/* .contact { overflow: hidden; } */

.contact-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
    margin-top: 12px
}

.contact-method {
    background: linear-gradient(180deg, #ffffff, #fbfdff);
    padding: 16px;
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(18, 24, 33, 0.06);
    display: flex;
    gap: 14px;
    align-items: center;
    transition: transform .22s cubic-bezier(.2, .9, .2, 1), box-shadow .22s;
    border: 1px solid rgba(15, 23, 42, 0.03);
    border: 1px solid var(--accent);
    text-decoration: none;
    color: inherit
}

.contact-method:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.08)
}

.contact-method .icon-img {
    width: 56px;
    height: 56px;
    border-radius: 10px;
    object-fit: cover;
    flex: 0 0 56px;
    /* background: linear-gradient(135deg, #fff, #f7f9fb); */
    /* box-shadow: 0 6px 12px rgba(0, 0, 0, 0.04) */
}

.contact-body {
    display: flex;
    flex-direction: column;
    gap: 6px
}

.contact-method h3 {
    margin: 0;
    font-size: 15px;
    color: #0f172a;
    font-weight: 700
}

.contact-method .contact-link {
    display: inline-block;
    color: var(--muted);
    font-weight: 600;
    font-size: 14px;
    text-decoration: none
}

.contact-method .contact-link:hover {
    color: #0f172a;
    text-decoration: none
}

.contact-card {
    padding: 18px;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06)
}

#contactForm input,
#contactForm textarea,
#contactForm button {
    font-family: var(--font-body);
    font-weight: 400;
    line-height: 1.45;
}

#contactForm button {
    font-weight: 700;
}

#contactForm input:focus,
#contactForm textarea:focus {
    outline: 1px solid var(--accent);
    border: none;
}

footer {
    text-align: center;
    margin-top: 36px;
    margin-bottom: 36px;
    /* color: var(--muted); */
    color: white;
    font-size: 14px
}

@media (max-width:900px) {
    .hero {
        grid-template-columns: 1fr
    }

    .svc-image {
        height: 200px
    }

    .contact {
        grid-template-columns: 1fr
    }

    .hero-card {
        padding: 20px
    }

    .lb-img {
        height: 50vh
    }

    .test-nav {
        right: 10px;
        bottom: 10px
    }

    .contact-cards {
        grid-template-columns: 1fr
    }

    .map-frame {
        height: 220px
    }

    .map-grid {
        grid-template-columns: 1fr
    }
}

/* small styling for the table in modal */
.pm-spec-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 8px;
}

.pm-spec-table th,
.pm-spec-table td {
    text-align: left;
    padding: 6px 8px;
    border-bottom: 1px solid #eee;
    vertical-align: top;
}

.pm-unnamed-list {
    margin: 6px 0 0 18px;
}

.pm-get-wrap {
    margin-top: 12px;
}

/* ==========================================================
   PRODUCT CARD CAROUSEL
   ========================================================== */

.product-carousel {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    border-radius: 8px;
    background: #e2e8f0;
}

.product-card .product-carousel-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.product-carousel-prev,
.product-carousel-next,
.pm-carousel-prev,
.pm-carousel-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.72);
    color: #fff;
    font-size: 17px;
    line-height: 1;
    cursor: pointer;
    z-index: 2;
    transition: background 0.2s ease, transform 0.2s ease;
}

.product-carousel-prev,
.pm-carousel-prev {
    left: 10px;
}

.product-carousel-next,
.pm-carousel-next {
    right: 10px;
}

.product-carousel-prev:hover,
.product-carousel-next:hover,
.pm-carousel-prev:hover,
.pm-carousel-next:hover {
    background: rgba(15, 23, 42, 0.95);
}

.product-carousel-prev:active,
.product-carousel-next:active,
.pm-carousel-prev:active,
.pm-carousel-next:active {
    transform: translateY(-50%) scale(0.94);
}

.product-carousel-counter,
.pm-carousel-counter {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.76);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.4;
    white-space: nowrap;
    z-index: 2;
}

/* Respect the hidden attribute even when other CSS sets display. */
.product-carousel [hidden],
.pm-carousel [hidden] {
    display: none !important;
}

/* ==========================================================
   PRODUCT DETAILS MODAL CAROUSEL
   ========================================================== */

.pm-carousel {
    position: relative;
    width: 100%;
    min-width: 0;
    min-height: 320px;
    max-height: 400px;
    overflow: hidden;
    border-radius: 8px;
    background: #e2e8f0;
}

.product-modal-card .pm-carousel .pm-img {
    width: 100%;
    height: 100%;
    min-height: 320px;
    max-height: 400px;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #f1f5f9;
    border-radius: 8px;
}

.product-modal-card {
    align-items: start;
}

@media (max-width: 900px) {
    .pm-carousel {
        min-height: 280px;
        height: 320px;
        max-height: none;
    }

    .product-modal-card .pm-carousel .pm-img {
        min-height: 0;
        height: 100%;
        max-height: none;
    }
}

@media (max-width: 520px) {
    .product-carousel {
        height: 200px;
    }

    .product-carousel-prev,
    .product-carousel-next,
    .pm-carousel-prev,
    .pm-carousel-next {
        width: 32px;
        height: 32px;
        font-size: 15px;
    }

    .product-modal {
        padding: 10px;
    }

    .product-modal-content {
        padding: 14px;
        max-height: calc(100vh - 30px);
    }

    .pm-carousel {
        height: 260px;
        min-height: 260px;
    }

    .product-modal-card .pm-carousel .pm-img {
        height: 100%;
    }
}

/* ==========================================================
   UPDATED PRODUCT CAROUSEL CONTROLS
   ========================================================== */

/* Move image counter to the top-right */
.product-carousel-counter,
.pm-carousel-counter {
    top: 10px;
    right: 10px;
    bottom: auto;
    left: auto;
    transform: none;
}

/* Position both navigation buttons at the bottom-right */
.product-carousel-prev,
.product-carousel-next,
.pm-carousel-prev,
.pm-carousel-next {
    top: auto;
    bottom: 10px;
    transform: none;
}

/* Previous button sits to the left of the next button */
.product-carousel-prev,
.pm-carousel-prev {
    left: auto;
    right: 54px;
}

/* Next button sits at the bottom-right */
.product-carousel-next,
.pm-carousel-next {
    right: 10px;
}

/* Keep the hover and active effects working with the new positions */
.product-carousel-prev:hover,
.product-carousel-next:hover,
.pm-carousel-prev:hover,
.pm-carousel-next:hover {
    transform: none;
}

.product-carousel-prev:active,
.product-carousel-next:active,
.pm-carousel-prev:active,
.pm-carousel-next:active {
    transform: scale(0.94);
}


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

.about-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 24px 60px;
    color: #263244;
}

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

/* Introduction */

.about-hero {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 40px;
    align-items: center;
    margin-bottom: 75px;
}

.about-banner {
    width: 100%;
    min-height: 300px;
    overflow: hidden;
    border-radius: 18px;
    background: #eef2f6;
}

.about-banner img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 300px;
    object-fit: cover;
}

.about-intro {
    min-width: 0;
}

.about-eyebrow {
    display: inline-block;
    margin-bottom: 12px;
    /* color: #2563eb; */
    color: var(--accent);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.about-intro h1,
.about-section-heading h2,
.about-location h2,
.about-cta h2 {
    margin: 0 0 18px;
    color: #172033;
    line-height: 1.25;
}

.about-intro h1 {
    font-size: clamp(28px, 4vw, 42px);
}

.about-intro p,
.about-location p,
.about-cta p {
    font-size: 15px;
    line-height: 1.85;
}

.about-intro p {
    margin: 0 0 16px;
    color: #536174;
}

.about-intro .about-lead {
    color: #34445b;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.65;
}

/* Buttons */

.about-button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    min-height: 46px;
    padding: 12px 20px;
    /* border: 1px solid #2563eb; */
    border: 1px solid var(--accent);
    border-radius: 8px;
    /* background: #2563eb; */
    background: var(--accent);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
    text-align: center;
    text-decoration: none;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.about-button:hover {
    background: #7e0b0b;
    border-color: #7e0b0b;
    color: #fff;
}

.about-button-secondary {
    background: transparent;
    color: #fff;
    border-color: rgba(255, 255, 255, 0.65);
}

.about-button-secondary:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: #fff;
    color: #fff;
}

/* Service and product sections */

.about-section {
    margin-bottom: 75px;
}

.about-section-heading {
    max-width: 720px;
    margin-bottom: 28px;
}

.about-section-heading h2,
.about-location h2,
.about-cta h2 {
    font-size: clamp(24px, 3vw, 32px);
}

.about-section-heading > p {
    margin: 0;
    color: #647184;
    font-size: 15px;
    line-height: 1.8;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.about-card {
    min-width: 0;
    padding: 24px;
    border: 1px solid #e5eaf1;
    border-radius: 12px;
    background: #fff;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.about-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(20, 35, 60, 0.07);
}

.about-card h3 {
    margin: 0 0 12px;
    color: #1e293b;
    font-size: 17px;
    line-height: 1.5;
}

.about-card p {
    margin: 0;
    color: #647184;
    font-size: 14px;
    line-height: 1.8;
}

.about-text-link {
    display: inline-block;
    margin-top: 24px;
    /* color: #2563eb; */
    color: var(--accent);
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
}

.about-text-link:hover {
    text-decoration: underline;
}

/* Products section */

.about-products {
    /* padding: 38px; */
    border-radius: 16px;
    /* background: #faf8f8; */
}

/* Location */

.about-location {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(260px, 0.8fr);
    gap: 36px;
    align-items: start;
    margin-bottom: 70px;
}

.about-location p {
    color: #536174;
}

.about-location-card {
    padding: 28px;
    border: 1px solid #e3e9f2;
    border-radius: 14px;
    background: #f8fafc;
}

.about-location-card h3 {
    margin: 0 0 22px;
    color: #172033;
    font-size: 19px;
    line-height: 1.5;
}

.about-location-card p {
    margin: 0 0 20px;
    font-size: 14px;
    line-height: 1.9;
    overflow-wrap: anywhere;
}

.about-location-card strong {
    display: inline-block;
    margin-bottom: 4px;
    color: #263244;
}

/* Contact call to action */

.about-cta {
    padding: 42px 32px;
    border-radius: 16px;
    background: #770e0e;
    color: #fff;
    text-align: center;
}

.about-cta h2 {
    color: #fff;
}

.about-cta p {
    max-width: 760px;
    margin: 0 auto 24px;
    color: #e0e7f1;
}

.about-cta-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

/* Tablet */

@media (max-width: 900px) {
    .about-hero {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .about-banner,
    .about-banner img {
        min-height: 260px;
        max-height: 420px;
    }

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

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

/* Mobile */

@media (max-width: 600px) {
    .about-page {
        padding: 28px 16px 40px;
    }

    .about-hero {
        margin-bottom: 50px;
    }

    .about-banner,
    .about-banner img {
        min-height: 210px;
    }

    .about-intro h1 {
        font-size: 29px;
    }

    .about-intro .about-lead {
        font-size: 16px;
    }

    .about-section {
        margin-bottom: 50px;
    }

    .about-section-heading h2,
    .about-location h2,
    .about-cta h2 {
        font-size: 25px;
    }

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

    .about-card {
        padding: 20px;
    }

    .about-products {
        padding: 24px 0px;
    }

    .about-location-card {
        padding: 22px;
    }

    .about-cta {
        padding: 32px 20px;
    }

    .about-cta-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .about-cta-actions .about-button {
        width: 100%;
    }
}