/* styles.css */
:root {
    --bg0: #0f1316;
    --bg1: #0b0e10;
    --acc: #11b57a;
    --acc-2: #6ee7c8;
    --ink: #e6f2ec;
    --muted: #a6b5ae;
    --card: #12171a;
    /* opaque, AMOLED friendly */
    --card-2: #141a1e;
    --chip: #1b2225;
    --line: #1e2622;
}

* {
    box-sizing: border-box
}

html {
    scroll-behavior: smooth
}

body {
    margin: 0;
    color: var(--ink);
    background: linear-gradient(180deg, var(--bg0), var(--bg1));
    font: 16px/1.6 system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Helvetica, Arial, sans-serif;
}

/* Freeze page while overlays open */
body.lb-open,
body.menu-open {
    overflow: hidden
}

body.lb-open .wa-fab {
    display: none
}

/* Background layers (z-index:0) */
.bg-grid {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-image:
        linear-gradient(to right, #ffffff22 1px, transparent 1px),
        linear-gradient(to bottom, #ffffff22 1px, transparent 1px);
    background-size: 40px 40px, 40px 40px;
    opacity: .2;
}

.bg-wm {
    position: fixed;
    left: 50%;
    top: 48%;
    transform: translate(-50%, -50%);
    z-index: 0;
    pointer-events: none;
    width: min(85vw, 900px);
    height: min(85vh, 900px);
    background: url('assets/logo_saydam.webp') center/contain no-repeat;
    opacity: .2;
}

/* Containers */
.container {
    width: min(1200px, 92%);
    margin-inline: auto
}

.section {
    padding: 80px 0;
    position: relative;
    z-index: 1
}

.section-head {
    margin-bottom: 28px
}

.section-head h2 {
    margin: 0 0 8px;
    font-size: clamp(1.4rem, 2.2vw, 2rem)
}

.section-sub {
    margin: 0;
    color: var(--muted)
}

/* Header (flex; left-aligned nav) */
.site-header {
    position: sticky;
    top: 0;
    z-index: 30;
    background: #0b0e10;
    border-bottom: 1px solid var(--line);
}

.header-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    height: 64px;
}

.left-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1 1 auto;
    min-width: 0;
    justify-content: space-between;
}



.nav-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto
}

/* Hamburger (left) */
.hamburger {
    display: none;
    width: 44px;
    height: 44px;
    background: var(--card);
    border: 1px solid #162024;
    border-radius: 12px;
    cursor: pointer
}

.hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: #eaf3ee;
    margin: 5px auto;
    transform-origin: center;
    transition: transform .2s ease
}

/* Brand with rounded logo + depth */
.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: inherit;
    text-decoration: none
}

.brand img {
    display: block;
    border-radius: 12px;
    border: 1px solid #1b2a2f;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .35), inset 0 0 0 1px #0e1518;
    background: #0f1417;
}

.brand-name {
    font-weight: 700;
    letter-spacing: .2px;
    white-space: nowrap
}

/* Nav list starts right after brand (left aligned) */
.nav-list {
    display: flex;
    gap: 16px;
    list-style: none;
    margin: 0;
    padding: 0;
    justify-content: flex-start
}

.nav-list a {
    color: var(--muted);
    text-decoration: none;
    padding: 8px 2px;
    white-space: nowrap
}

.nav-list a:hover,
.nav-list a:focus {
    color: var(--ink)
}

.icon-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 999px;
    background: var(--card);
    border: 1px solid #162024
}

.icon-link:hover {
    outline: 2px solid #1a2a24
}

.lang-switch-desktop {
    display: flex;
    gap: 6px
}

.lang-btn {
    background: var(--chip);
    border: 1px solid #203036;
    color: var(--ink);
    padding: 6px 10px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    line-height: 1;
    height: 32px
}

.lang-btn[aria-pressed="true"] {
    outline: 2px solid var(--acc)
}

/* Collapse brand text center */
/*
@media (max-width: 900px) {
    .brand-name {}
}
*/
/* Mobile menu — full screen with close button */
.mobile-menu {
    position: fixed;
    inset: 0;
    background: #0b0e10;
    z-index: 50;
    transform: translateX(-100%);
    transition: transform .26s ease;
    display: block;
    width: 100dvw;
    height: 100dvh;
}

.mobile-menu.open {
    transform: translateX(0)
}

.mobile-inner {
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 20px;
    position: relative
}

.mobile-close {
    position: absolute;
    right: 12px;
    top: 12px;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    border: 1px solid #1a262b;
    background: #12171a;
    color: #eaf3ee;
    font-size: 24px;
    cursor: pointer;
}

.mobile-menu ul {
    list-style: none;
    padding: 0;
    margin: 56px 0 0;
    display: grid;
    gap: 16px
}

.mobile-menu a {
    color: var(--ink);
    text-decoration: none;
    font-size: 1.2rem
}

.mobile-bottom {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px
}

.mobile-social {
    display: flex;
    gap: 10px
}

.lang-switch {
    display: flex;
    gap: 8px
}

.desktop-only {
    display: flex
}

@media (max-width: 900px) {
    .desktop-only {
        display: none
    }

    .hamburger {
        display: inline-block
    }

    .bg-wm {
        opacity: .2
    }
}

/* Hero */
.hero {
    padding-top: 72px
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 32px;
    align-items: center
}

.hero-text h1 {
    margin: 0 0 12px;
    font-size: clamp(1.8rem, 3vw, 2.6rem)
}

.lead {
    color: var(--muted);
    margin: 0 0 16px
}

.cta-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin: 18px 0
}

.btn {
    display: inline-block;
    text-decoration: none;
    font-weight: 700;
    padding: 12px 18px;
    border-radius: 14px;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden
}

.btn-acc {
    background: var(--acc);
    color: #072218
}

.btn-acc:hover {
    box-shadow: 0 0 0 4px #0f2f25
}

.btn-ghost {
    background: var(--card);
    color: var(--ink);
    border-color: #1a2428
}

.btn-ghost:hover {
    box-shadow: 0 0 0 3px #142320
}

.badges {
    display: flex;
    flex-wrap: wrap;

    gap: 16px;
    padding: 0;
    margin: 32px 16px 0;
    list-style: none;
    color: var(--muted);
    justify-content: center;
}

.badges .badge {
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .08);
    font-weight: 600;
    font-size: 13px;
    color: var(--ink)
}

.hero-media {
    position: relative
}

.card {
    background: var(--card-2);
    border: 1px solid #172025;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, .35);
}

.hero-card img {
    display: block;
    width: 100%;
    height: clamp(220px, 38vw, 460px);
    object-fit: cover;
    will-change: transform
}

.mini-logo {
    position: absolute;
    left: 50%;
    bottom: -18px;
    transform: translateX(-50%);
    width: clamp(90px, 14vw, 140px);
    height: auto;
    padding: 4px;
    animation: float 6s ease-in-out infinite;
}

.mini-logo::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(120deg, transparent, #ffffff10, transparent);
    transform: translateX(-120%);
    animation: shine 4s ease-in-out infinite;
}

.mini-logo img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 12px;
}

@keyframes float {
    0% {
        transform: translateX(-50%) translateY(0)
    }

    50% {
        transform: translateX(-50%) translateY(-6px)
    }

    100% {
        transform: translateX(-50%) translateY(0)
    }
}

@keyframes shine {

    0%,
    60% {
        transform: translateX(-120%)
    }

    80%,
    100% {
        transform: translateX(120%)
    }
}

@media (max-width:900px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 18px
    }

    .mini-logo {
        bottom: -20px
    }
}

/* Services */
.cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px
}

@media (max-width:1100px) {
    .cards {
        grid-template-columns: repeat(2, 1fr)
    }
}

@media (max-width:640px) {
    .cards {
        grid-template-columns: 1fr
    }
}

.service img {
    display: block;
    width: 100%;
    height: 220px;
    object-fit: cover
}

.service-body {
    padding: 14px
}

.service h3 {
    margin: 0 0 6px;
    font-size: 1.05rem
}

.service p {
    margin: 0;
    color: var(--muted)
}

.service .chip {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--chip);
    border: 1px solid #203035;
    color: #bfe9d4;
    padding: 6px 8px;
    border-radius: 999px;
    font-weight: 700
}

.service {
    position: relative;
    transition: transform .18s ease, box-shadow .18s ease;
    overflow: hidden
}

.service::after {
    content: "";
    position: absolute;
    inset: -200% -200% auto;
    height: 200%;
    background: conic-gradient(from 0deg at 50% 50%, transparent 0 20%, #6ee7c833 25%, transparent 30% 100%);
    transform: translateY(60%) rotate(0);
    transition: opacity .2s ease;
    opacity: 0;
}

.service:hover {
    transform: scale(1.03);
    box-shadow: 0 10px 32px rgba(0, 0, 0, .45)
}

.service:hover::after {
    opacity: 1;
    animation: spin 2.2s linear infinite
}

@keyframes spin {
    to {
        transform: translateY(60%) rotate(360deg)
    }
}

/* About */
.about-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 18px;
    align-items: stretch
}

@media (max-width:900px) {
    .about-grid {
        grid-template-columns: 1fr
    }
}

.about-card {
    padding: 18px;
    position: relative
}

.about-card::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(600px 140px at 10% 10%, #6ee7c811 0, transparent 60%);
    mix-blend-mode: normal;
}

.about-intro p {
    margin: 0 0 10px;
    color: #cfe2da
}

.about-list {
    margin: 10px 0 14px;
    padding: 0;
    list-style: none
}

.about-list li {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 6px 0
}

.about-list .tick {
    display: inline-grid;
    place-items: center;
    width: 22px;
    height: 22px;
    border-radius: 8px;
    background: var(--chip);
    border: 1px solid #223238;
    color: #bfe9d4;
    font-weight: 700
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: auto
}

.about-stats .stat {
    display: grid;
    gap: 2px;
    padding: 10px;
    border-radius: 12px;
    background: #10161a;
    border: 1px solid #1a252a;
    text-align: center
}

.about-stats .stat strong {
    font-size: 1.1rem
}

.about-visual img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover
}

/* Gallery */
.filter-bar {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 14px
}

.filter-btn {
    background: var(--chip);
    border: 1px solid #233238;
    color: var(--ink);
    padding: 8px 12px;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600
}

.filter-btn.active {
    outline: 2px solid var(--acc)
}

.gallery-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
}

.g-card {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    background: var(--card);
    border: 1px solid #182227;
    cursor: zoom-in
}

.g-card img {
    display: block;
    width: 100%;
    height: 180px;
    object-fit: cover;
    transition: transform .25s ease;
    touch-action: manipulation
}

.g-card:hover img {
    transform: scale(1.04)
}

.g-chip {
    position: absolute;
    left: 10px;
    bottom: 10px;
    background: var(--chip);
    border: 1px solid #203035;
    color: #cdeee0;
    padding: 4px 8px;
    border-radius: 999px;
    font-size: .8rem
}

/* Lightbox — always above header, no horizontal overflow, centered mobile */
.lightbox {
    position: fixed;
    inset: 0;
    width: 100dvw;
    height: 100dvh;
    background: #000000d6;
    display: grid;
    place-items: center;
    z-index: 2147483000;
    padding: clamp(12px, 3vw, 24px);
    overflow: hidden;
}

.lightbox[hidden] {
    display: none
}

.lightbox .lb-img {
    max-width: min(calc(100dvw - 96px), 1200px);
    max-height: calc(100dvh - 160px);
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
    margin: auto;
    border-radius: 14px;
    border: 1px solid #233238;
    background: #0c1114
}

.lb-btn {
    /*
    position: fixed;

    background: #0e1417;
    border: 0.1px solid #3ad09f;
    color: #ffffff;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    cursor: pointer;
    display: grid;

    font-size: 28px;
    font-weight: 800;
    box-shadow: 0 6px 20px rgba(0, 0, 0, .6);
    z-index: 2147483600;
    pointer-events: auto
    */
    position: fixed;
    top: 18px;
    width: 42px;
    height: 42px;
    border: none;
    border-radius: 12px;
    color: #fff;
    background: rgba(255, 255, 255, .12);
    cursor: pointer;
    font-size: 24px;
    line-height: 42px;
}

.lb-close {
    top: 18px;
    right: 18px
}

.lb-prev {
    left: 18px;
    top: 50%;
    transform: translateY(-50%)
}

.lb-next {
    right: 18px;
    top: 50%;
    transform: translateY(-50%)
}

.lb-cap {
    margin-top: 10px;
    color: #d6d6d8;
    text-align: center;
}

.lb-btn:hover {
    filter: brightness(0.65)
}

.lb-btn:focus {
    outline: 1px thin #11b57a
}

/* Contact */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 24px;
    align-items: stretch;
}

@media (max-width:900px) {
    .contact-grid {
        grid-template-columns: 1fr
    }
}

.contact-cards {
    display: grid;
    gap: 12px;
    height: 100%;
    /* no wrapper card, no scrollbar */
}

.c-card {
    display: grid;
    grid-template-columns: 42px 1fr;
    gap: 12px;
    align-items: center;
    padding: 12px;
    border-radius: 14px;
    text-decoration: none;
    color: var(--ink);
    border: 1px solid #192227
}

.c-card .icon {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: #0d1417
}

.c-card .meta h3 {
    margin: 0 0 2px
}

.c-card .meta p {
    margin: 0;
    color: #b6c6bf
}

.c-card.wa {
    background: #0F6D4A
}

.c-card.tel {
    background: #202428
}

.c-card.mail {
    background: #262B31
}

.c-card.ig {
    background: #6E2B57
}

.c-card.tk {
    background: #5A3144
}

.map-wrap {
    height: 100%;
    border-radius: 18px;
    overflow: hidden;
    border: 0;
    box-shadow: 0 0 22px 0 #0f2f25;
    min-height: 450px;
    /* soft glow only, no thick border */
}

.map-wrap iframe {
    display: block;
    width: 100%;
    height: 100%
}

/* Footer */
.site-footer {
    background: #0e1113;
    border-top: 1px solid var(--line);
    padding: 18px 0
}

.foot-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center
}

.foot-inner p {
    margin: 0;
    color: #b3c3bc
}

.foot-inner a {
    color: var(--acc);
    text-decoration: none
}

.foot-inner a:hover {
    text-decoration: underline
}

/* WhatsApp FAB */
.wa-fab {
    position: fixed;
    right: 16px;
    bottom: 18px;
    width: 56px;
    height: 56px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    background: var(--acc);
    color: #052219;
    text-decoration: none;
    box-shadow: 0 10px 28px rgba(0, 0, 0, .45);
    z-index: 15;
    border: 2px solid #0a7e57
}

.wa-fab:hover {
    box-shadow: 0 10px 36px rgba(0, 0, 0, .6)
}

/* Reveal on scroll */
[data-reveal] {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity .5s ease, transform .5s ease
}

[data-reveal].shown {
    opacity: 1;
    transform: none
}

/* Utilities */
#home,
#services,
#about,
#gallery,
#contact {
    scroll-margin-top: 76px
}