@import url('https://fonts.googleapis.com/css2?family=Fjalla+One&family=Montserrat:wght@400;600;700&display=swap');

:root {
    --primary-color: #222222;
    --charcoal: #121212;
    --charcoal-soft: #1b1b1b;
    --accent-color: #d93832;
    --text-color: #2f2f2f;
    --muted-color: #666666;
    --bg-light: #f6f6f4;
    --border-color: #e5e2dd;
    --white: #ffffff;
    --font-heading: 'Fjalla One', sans-serif;
    --font-body: 'Montserrat', sans-serif;
    --transition: all 0.3s ease;
    --shadow-soft: 0 18px 45px rgba(0, 0, 0, 0.12);
}

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

body {
    font-family: var(--font-body);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    background: var(--white);
}

html {
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

.text-center { text-align: center; }
.bg-light { background-color: var(--bg-light); }

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

.section {
    padding: 88px 0;
}

#mission,
#services,
#reviews,
#contact,
#map {
    scroll-margin-top: 100px;
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 2.8rem);
    text-transform: uppercase;
    margin-bottom: 20px;
    letter-spacing: 1px;
    line-height: 1.12;
}

/* Navigation */
#navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    padding: 18px clamp(20px, 4vw, 46px);
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(12px);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 8px 30px rgba(0,0,0,0.05);
}

.logo {
    font-family: var(--font-heading);
    font-size: clamp(1.7rem, 3vw, 2rem);
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 1px;
    white-space: nowrap;
    line-height: 1;
}

.nav-links {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    gap: clamp(16px, 2vw, 30px);
}

.nav-links a {
    font-weight: 600;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    transition: var(--transition);
    white-space: nowrap;
}

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

.nav-contact {
    padding: 0.55rem 1.25rem;
    white-space: nowrap;
}

.nav-toggle {
    display: none;
    width: 44px;
    height: 42px;
    border: 1px solid var(--border-color);
    background: var(--white);
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}

/* Hero Section */
.hero {
    position: relative;
    min-height: calc(100vh - 78px);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    margin-top: 78px;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.hero-bg video,
.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero-bg .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0,0,0,0.52), rgba(0,0,0,0.58));
}

.hero-content {
    z-index: 1;
    max-width: 800px;
}

.hero h1 {
    font-family: var(--font-heading);
    font-size: clamp(2.6rem, 6vw, 4.6rem);
    line-height: 1.2;
    letter-spacing: 2px;
    text-shadow: 0 8px 30px rgba(0, 0, 0, 0.45);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 10px 20px;
    background: var(--primary-color);
    color: var(--white);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 3px;
    transition: var(--transition);
    border: 2px solid var(--primary-color);
    box-shadow: 5px 5px 0 rgba(0, 0, 0, 0.08);
}

.btn:hover {
    background: transparent;
    color: var(--primary-color);
    box-shadow: none;
}

.btn-large {
    padding: 15px 30px;
    font-size: 1.1rem;
}

/* Mission Section */
.mission-text {
    font-size: clamp(1rem, 2vw, 1.16rem);
    max-width: 800px;
    margin: 0 auto 30px auto;
    color: var(--muted-color);
}

.mission-subtext {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--accent-color);
}

/* Services Carousel */
.swiper {
    width: 100%;
    padding: 20px 0 50px 0; /* Space for pagination */
}

#services {
    background: linear-gradient(180deg, #ffffff 0%, #f7f7f5 100%);
}

.service-card {
    background: var(--white);
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: 0 8px 24px rgba(0,0,0,0.06);
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-7px);
    box-shadow: var(--shadow-soft);
}

.highlight-card {
    border: 1px solid rgba(217, 56, 50, 0.45);
}

.card-img {
    height: 250px;
    overflow: hidden;
}

.card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.service-card:hover .card-img img {
    transform: scale(1.05);
}

.card-content {
    padding: 28px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-content h3 {
    font-family: var(--font-heading);
    font-size: 1.55rem;
    margin-bottom: 10px;
    line-height: 1.15;
}

.card-content p {
    margin-bottom: 20px;
    flex-grow: 1;
    color: var(--muted-color);
}

.link-arrow {
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    color: var(--primary-color);
    display: flex;
    align-items: center;
}

.link-arrow span {
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.link-arrow:hover span {
    transform: translateX(5px);
}

.highlight-card .link-arrow {
    color: var(--accent-color);
}

/* Expertise Gallery (Surveillance page) */
.expertiseSwiper {
    width: 100%;
    padding-bottom: 50px;
    background: #0b0b0b;
}

.expertiseSwiper .swiper-slide {
    background: #0b0b0b;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 540px;
}

.gallery-img {
    width: 100%;
    height: min(72vh, 560px);
    object-fit: contain;
    display: block;
    background: #0b0b0b;
}

/* Service detail pages */
body:has(.expertiseSwiper) .section[style*="background-color: #1a1a1a"] {
    background: linear-gradient(135deg, #101010 0%, #1b1b1b 58%, #2a1715 100%) !important;
}

body:has(.expertiseSwiper) .section.bg-light {
    background: #f7f7f5;
}

body:has(.expertiseSwiper) .section.bg-light img,
body:has(.expertiseSwiper) .section[style*="background-color: #1a1a1a"] img,
body:has(.hero[style*="smart_living"]) img {
    border-radius: 6px;
}

.hero[style*="smart_living"] {
    min-height: 68vh;
    height: auto !important;
}

.hero[style*="smart_living"] .container {
    max-width: 960px;
}

.hero[style*="smart_living"] h1 {
    font-size: clamp(2.45rem, 5vw, 4.25rem) !important;
}

/* Reviews */
.reviews-section {
    position: relative;
    padding: 80px 0;
    min-height: 670px;
    display: flex;
    align-items: center;
    background:
        linear-gradient(rgba(0, 0, 0, 0.58), rgba(0, 0, 0, 0.62)),
        url("https://img1.wsimg.com/isteam/ip/db1cec1d-6369-4120-8de5-02345729949a/blob-b54a48c.png/:/rs=w:1600,m") center/cover;
    color: var(--white);
}

.reviews-section .container {
    position: relative;
    z-index: 1;
}

.reviews-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.2);
}

.reviews-header {
    margin-bottom: 35px;
}

.reviews-header .section-title {
    margin-bottom: 35px;
}

.reviews-summary {
    display: inline-flex;
    align-items: center;
    gap: 18px;
    text-align: left;
}

.reviews-summary strong {
    font-family: var(--font-heading);
    font-size: 3rem;
    line-height: 1;
}

.reviews-summary p {
    font-size: 1.2rem;
    margin-bottom: 3px;
}

.reviews-summary span {
    color: rgba(255, 255, 255, 0.85);
}

.google-mark,
.google-mini {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-family: var(--font-body);
    font-weight: 700;
    color: #4285f4;
    background: var(--white);
}

.google-mark {
    width: 46px;
    height: 46px;
    font-size: 1.5rem;
}

.google-mini {
    width: 24px;
    height: 24px;
    font-size: 0.85rem;
    border: 1px solid #eee;
}

.reviewsSwiper {
    width: min(100%, 560px);
    margin: 0 auto;
    padding: 0 58px 42px;
}

.reviewsSwiper .swiper-slide {
    display: flex;
    justify-content: center;
}

.reviewsSwiper .swiper-button-next,
.reviewsSwiper .swiper-button-prev {
    width: 44px;
    height: 44px;
    color: var(--primary-color);
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 50%;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.22);
    transition: var(--transition);
}

.reviewsSwiper .swiper-button-next:hover,
.reviewsSwiper .swiper-button-prev:hover {
    background: var(--accent-color);
    color: var(--white);
    border-color: var(--accent-color);
}

.reviewsSwiper .swiper-button-next::after,
.reviewsSwiper .swiper-button-prev::after {
    font-size: 1.05rem;
    font-weight: 700;
}

.reviewsSwiper .swiper-pagination-bullet {
    background: rgba(255, 255, 255, 0.8);
    opacity: 0.55;
}

.reviewsSwiper .swiper-pagination-bullet-active {
    background: var(--white);
    opacity: 1;
}

.google-review-card {
    width: min(100%, 420px);
    margin: 0 auto;
    padding: 42px 38px;
    background: var(--white);
    color: var(--text-color);
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.65);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.32);
}

.review-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 118px;
    height: 118px;
    margin: 0 auto 28px;
    border-radius: 50%;
    background: #3f7129;
    color: var(--white);
    font-size: 3.8rem;
    font-weight: 400;
}

.stars {
    color: #f4c430;
    font-size: 1.5rem;
    line-height: 1;
}

.google-review-card blockquote {
    margin: 28px 0 20px;
    font-size: 1.15rem;
    line-height: 1.55;
}

.review-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 32px;
    color: #8b7a7a;
    font-weight: 600;
}

.review-link:hover {
    color: var(--accent-color);
}

.review-author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.9rem;
    color: #555;
}

/* Map */
.map-section {
    position: relative;
    height: 420px;
    background: #e8e8e8;
}

.map-section iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

.map-directions {
    position: absolute;
    top: 24px;
    left: 24px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 24px;
    background: rgba(255, 255, 255, 0.96);
    color: var(--primary-color);
    box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.14);
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.map-directions:hover {
    color: var(--accent-color);
}

/* Footer */
.site-footer {
    background: var(--charcoal);
    color: #b9b9b9;
    padding: 60px 0 20px 0;
}

.site-footer h3 {
    color: var(--white);
    font-family: var(--font-heading);
    margin-bottom: 15px;
    letter-spacing: 1px;
}

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

.footer-grid a {
    color: #d0d0d0;
}

.footer-grid a:hover {
    color: var(--white);
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid #2c2c2c;
    padding-top: 20px;
}

.tagline {
    font-family: var(--font-heading);
    color: var(--white);
    margin-top: 10px;
    letter-spacing: 2px;
}

/* Animations */
.reveal {
    opacity: 1;
    transition: all 0.8s ease;
}

.fade-up {
    transform: translateY(0);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
    html,
    body {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }
    #navbar {
        left: 0;
        right: 0;
        width: auto;
        max-width: 100vw;
        gap: 12px;
        padding: 16px 20px;
        flex-wrap: wrap;
    }
    .logo {
        font-size: 1.75rem;
    }
    .nav-toggle {
        display: inline-flex;
        margin-left: auto;
    }
    .nav-contact {
        order: 2;
        padding: 0.5rem 0.95rem;
        font-size: 0.78rem;
    }
    .nav-links {
        order: 4;
        display: none;
        flex-basis: 100%;
        padding-top: 12px;
        border-top: 1px solid var(--border-color);
    }
    #navbar.nav-open .nav-links {
        display: grid;
        gap: 10px;
    }
    .nav-links a {
        padding: 10px 0;
        font-size: 0.82rem;
    }
    #navbar.nav-open .nav-toggle span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }
    #navbar.nav-open .nav-toggle span:nth-child(2) {
        opacity: 0;
    }
    #navbar.nav-open .nav-toggle span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }
    .hero {
        margin-top: 82px;
        min-height: calc(100vh - 82px);
    }
    .hero h1 { font-size: 2.65rem; }
    .section { padding: 58px 0; }
    .section-title {
        font-size: 2.25rem;
    }
    .container {
        width: 100%;
        max-width: 100%;
        padding-left: 18px;
        padding-right: 18px;
        overflow: hidden;
    }
    .swiper,
    .swiper-wrapper,
    .swiper-slide {
        max-width: 100%;
    }
    .card-img {
        height: 220px;
    }
    .service-card:hover {
        transform: none;
    }
    .expertiseSwiper .swiper-slide {
        min-height: 380px;
    }
    .gallery-img {
        height: 360px;
    }
    .hero[style*="smart_living"] {
        margin-top: 82px !important;
        min-height: 560px;
    }
    #mission,
    #services,
    #reviews,
    #contact,
    #map { scroll-margin-top: 140px; }
    .reviews-section {
        min-height: 680px;
        padding: 60px 0;
        overflow: hidden;
    }
    .reviews-summary {
        gap: 12px;
    }
    .reviews-summary strong {
        font-size: 2.5rem;
    }
    .google-review-card {
        width: 100%;
        max-width: 360px;
        padding: 36px 28px;
    }
    .reviewsSwiper {
        width: 100%;
        max-width: 390px;
        padding: 0 0 38px;
        overflow: hidden;
    }
    .reviewsSwiper .swiper-button-next,
    .reviewsSwiper .swiper-button-prev {
        display: none;
    }
    .map-section {
        height: 360px;
    }
    .map-directions {
        top: 18px;
        left: 18px;
        padding: 14px 18px;
        font-size: 0.85rem;
    }
}
