/* Design tokens: refined color palette */
:root {
    --bg: #0b0f14;
    --surface: #11151a;
    --text: #f8fafc;
    --brand: #0ea5a4;
    --accent: #f59e0b;

    --radius: 14px;
    --shadow-1: 0 10px 30px rgba(0, 0, 0, 0.35);
    --shadow-2: 0 6px 18px rgba(0, 0, 0, 0.25);
    --shadow-3: 0 15px 35px rgba(0, 0, 0, 0.4);

    --container: 1400px;
    --transition: 0.3s ease;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Poppins", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    overflow-x: hidden;
}

img,
svg {
    display: block;
    max-width: 100%;
    height: auto;
}

.text-balance {
    text-wrap: balance;
}

.text-pretty {
    text-wrap: pretty;
}

.container {
    width: 100%;
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: 1rem;
}

/* Header / Nav */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: saturate(140%) blur(6px);
    transition: background 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
    background: color-mix(in oklab, var(--bg) 70%, transparent);
    border-bottom: 1px solid color-mix(in oklab, var(--text) 12%, transparent);
}

.site-header.scrolled {
    background: color-mix(in oklab, var(--surface) 85%, transparent);
    box-shadow: var(--shadow-2);
}

.nav-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 80px;
    gap: 1rem;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    color: var(--text);
    text-decoration: none;
    font-weight: 600;
    letter-spacing: .2px;
    font-size: 1.1rem;
}

.brand-mark {
    display: inline-grid;
    place-items: center;
    width: 70px;
    height: 40px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--brand), color-mix(in oklab, var(--brand) 50%, var(--accent)));
    color: #031314;
    font-weight: 700;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.15);
}

.brand-text {
    white-space: nowrap;
}

.site-nav ul {
    list-style: none;
    display: flex;
    gap: 1.5rem;
    margin: 0;
    padding: 0;
}

.site-nav a {
    color: var(--text);
    text-decoration: none;
    opacity: 0.85;
    padding: .5rem .75rem;
    border-radius: 10px;
    transition: opacity 150ms ease, background 150ms ease, color 150ms ease, transform 150ms ease;
    font-weight: 500;
}

.site-nav a:hover {
    opacity: 1;
    background: color-mix(in oklab, var(--surface) 40%, transparent);
}

.site-nav a[aria-current="true"] {
    color: var(--brand);
    opacity: 1;
}

.site-nav .btn {
    background: color-mix(in oklab, var(--surface) 92%, transparent);
    border: 1px solid #ffffff4d;
}

/* Mobile nav */
.nav-toggle {
    display: inline-grid;
    gap: 4px;
    background: transparent;
    border: 0;
    padding: 6px;
    cursor: pointer;
}

.nav-toggle .bar {
    width: 22px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-toggle.active .bar:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.nav-toggle.active .bar:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active .bar:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

@media (min-width: 880px) {
    .nav-toggle {
        display: none;
    }
}

.site-nav {
    position: fixed;
    inset: 80px 0 auto 0;
    background: color-mix(in oklab, var(--bg) 92%, transparent);
    transform: translateY(-130%);
    transition: transform 250ms ease;
    padding: .75rem 1rem 1rem;
    backdrop-filter: blur(10px);
}

.site-nav.open {
    transform: translateY(0);
}

.site-nav ul {
    flex-direction: column;
    align-items: center;
}

@media (min-width: 880px) {
    .site-nav {
        position: static;
        transform: none !important;
        background: transparent;
        padding: 0;
        backdrop-filter: none;
    }

    .site-nav ul {
        flex-direction: row;
    }
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    padding: .75rem 1.5rem;
    border-radius: 12px;
    border: 1px solid color-mix(in oklab, var(--text) 12%, transparent);
    text-decoration: none;
    color: var(--text);
    background: color-mix(in oklab, var(--surface) 40%, transparent);
    transition: transform 160ms ease, background 160ms ease, box-shadow 160ms ease;
    will-change: transform;
    font-weight: 500;
    cursor: pointer;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn:active {
    transform: translateY(0);
}

.btn-primary {
    background: var(--brand);
    color: #061313;
    border-color: color-mix(in oklab, var(--brand) 60%, #000);
    box-shadow: 0 8px 20px color-mix(in oklab, var(--brand) 35%, transparent);
}

.btn-primary:hover {
    background: color-mix(in oklab, var(--brand) 85%, white 15%);
    box-shadow: 0 12px 25px color-mix(in oklab, var(--brand) 45%, transparent);
}

.btn-small {
    padding: .5rem .75rem;
}

/* Hero */
.hero {
    position: relative;
    min-height: clamp(560px, 85vh, 900px);
    display: grid;
    place-items: center;
    overflow: clip;
    margin-top: -80px;
    padding-top: 80px;
}

.hero-media {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(1200px 600px at 90% -20%,
            color-mix(in oklab, var(--brand) 45%, transparent) 0%,
            transparent 60%),
        radial-gradient(900px 500px at -10% 110%,
            color-mix(in oklab, var(--accent) 28%, transparent) 0%,
            transparent 60%),
        url("https://images.unsplash.com/photo-1555244162-803834f70033?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=2070&q=80");
    background-size: cover;
    background-position: center;
    filter: saturate(0.95) contrast(0.95) brightness(0.85);
    transform: scale(1.03);
}

.hero .overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.6));
}

.hero-inner {
    position: relative;
    text-align: center;
    padding-block: 5rem;
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    line-height: 1.15;
    letter-spacing: .2px;
    margin: 0 0 .75rem;
    text-shadow: 0 1px 0 rgba(0, 0, 0, 0.35);
    background: linear-gradient(to right, var(--text), color-mix(in oklab, var(--text) 80%, var(--brand)));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
    margin: 0 0 2rem;
    opacity: 0.9;
    font-weight: 400;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Sections */
.section {
    padding-block: clamp(4rem, 8vw, 6rem);
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section h2 {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    margin: 0 0 .5rem;
    position: relative;
    display: inline-block;
}

.section h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--brand);
    border-radius: 2px;
}

.muted {
    color: rgba(248, 250, 252, 0.7);
    max-width: 600px;
    margin: 0 auto;
}

/* About */
.about-grid {
    display: grid;
    gap: 2rem;
    align-items: center;
}

.about-text p {
    margin: 1rem 0;
    font-size: 1.05rem;
}

.about-media {
    position: relative;
}

.about-media .card-img {
    width: 100%;
    border-radius: var(--radius);
    box-shadow: var(--shadow-1);
    border: 1px solid color-mix(in oklab, var(--text) 10%, transparent);
    transition: transform 0.5s ease;
}

.about-media:hover .card-img {
    transform: scale(1.02);
}

@media (min-width: 880px) {
    .about-grid {
        grid-template-columns: 1.05fr .95fr;
        gap: 3rem;
    }
}

/* Services */
.services-grid {
    display: grid;
    gap: 1.5rem;
}

@media (min-width: 720px) {
    .services-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1040px) {
    .services-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.service-card {
    background: linear-gradient(180deg,
            color-mix(in oklab, var(--surface) 85%, transparent),
            color-mix(in oklab, var(--surface) 95%, transparent));
    border: 1px solid color-mix(in oklab, var(--text) 10%, transparent);
    border-radius: var(--radius);
    padding: 1.5rem;
    transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
    box-shadow: var(--shadow-2);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(to right, var(--brand), var(--accent));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-6px);
    background: color-mix(in oklab, var(--surface) 95%, transparent);
    box-shadow: var(--shadow-3);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card h3 {
    margin: .75rem 0 .5rem;
    font-size: 1.2rem;
}

.service-card p {
    margin: 0;
    color: rgba(248, 250, 252, 0.8);
}

.icon-wrap {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    background: color-mix(in oklab, var(--brand) 20%, transparent);
    color: var(--brand);
    box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--brand) 30%, #000);
}

/* Gallery */
.gallery-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 700px) {
    .gallery-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.gallery-item {
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    border-radius: 12px;
    overflow: clip;
    transition: transform 160ms ease, box-shadow 160ms ease;
    box-shadow: var(--shadow-2);
    position: relative;
}

.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.2);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
}

.gallery-item:hover::after {
    opacity: 1;
}

.gallery-item img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 4 / 3;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* Testimonials */
.testimonials-grid {
    display: grid;
    gap: 1.5rem;
}

@media (min-width: 880px) {
    .testimonials-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.testimonial-card {
    background: color-mix(in oklab, var(--surface) 92%, transparent);
    border: 1px solid color-mix(in oklab, var(--text) 10%, transparent);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow-2);
    position: relative;
    margin: 0;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: 10px;
    left: 15px;
    font-size: 4rem;
    color: color-mix(in oklab, var(--brand) 30%, transparent);
    line-height: 1;
    font-family: serif;
}

.testimonial-card blockquote {
    margin: 0 0 1rem;
    font-weight: 500;
    position: relative;
    z-index: 1;
}

.testimonial-card figcaption {
    font-weight: 600;
    color: var(--brand);
}

/* Contact */
.contact-grid {
    display: grid;
    gap: 2rem;
    align-items: center;
}

@media (min-width: 880px) {
    .contact-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.card {
    background: color-mix(in oklab, var(--surface) 92%, transparent);
    border: 1px solid color-mix(in oklab, var(--text) 10%, transparent);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow-2);
}

.map-container {
    height: 400px;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-2);
}

.map-placeholder {
    width: 100%;
    height: 100%;
    background: color-mix(in oklab, var(--surface) 80%, transparent);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(248, 250, 252, 0.6);
    font-size: 1.1rem;
}

.contact-info h3 {
    margin-top: 0;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.contact-list {
    list-style: none;
    margin: 1rem 0 2rem;
    padding: 0;
    display: grid;
    gap: 1rem;
}

.contact-list li {
    display: grid;
    grid-template-columns: 28px 1fr;
    align-items: center;
    gap: .8rem;
}

.icon {
    width: 22px;
    height: 22px;
    color: var(--brand);
}

.contact-list a {
    color: var(--text);
    text-decoration: none;
    border-bottom: 1px dashed transparent;
    transition: border-color 0.3s ease;
}

.contact-list a:hover {
    border-bottom-color: color-mix(in oklab, var(--brand) 35%, transparent);
}

.socials {
    display: flex;
    gap: .8rem;
    margin-top: 1.5rem;
}

.social {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    color: var(--text);
    background: color-mix(in oklab, var(--surface) 50%, transparent);
    border: 1px solid color-mix(in oklab, var(--text) 10%, transparent);
    transition: transform 150ms ease, background 150ms ease, color 150ms ease;
}

.social svg {
    width: 20px;
}

.social:hover {
    transform: translateY(-3px);
    background: var(--brand);
    color: #031314;
}

/* Footer */
.site-footer {
    padding-block: 2rem;
    border-top: 1px solid color-mix(in oklab, var(--text) 12%, transparent);
    background: color-mix(in oklab, var(--surface) 80%, transparent);
    text-align: center;
}

.site-footer p {
    margin: 0;
    color: rgba(248, 250, 252, 0.8);
}

/* Lightbox */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    z-index: 1001;
}

.lightbox-img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border-radius: 8px;
}

/* Reveal-on-scroll animations */
[data-reveal] {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 700ms ease, transform 700ms ease;
    will-change: opacity, transform;
}

.reveal-visible {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* Stats section */
.stats {
    background: color-mix(in oklab, var(--surface) 90%, transparent);
    border-top: 1px solid color-mix(in oklab, var(--text) 10%, transparent);
    border-bottom: 1px solid color-mix(in oklab, var(--text) 10%, transparent);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

@media (min-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.stat-card {
    text-align: center;
    padding: 1rem;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--brand);
    margin-bottom: 0.5rem;
}

.stat-label {
    color: rgba(248, 250, 252, 0.8);
    font-size: 0.9rem;
}
@media (max-width: 600px) {
    .brand-text{
        display: none;
    }
}