/* ===== Reset & Base ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --color-primary: #2c3e50;
    --color-accent: #e67e22;
    --color-accent-dark: #d35400;
    --color-light: #f8f9fa;
    --color-dark: #1a1a1a;
    --color-text: #333;
    --color-muted: #666;
    --font-main: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --max-width: 1200px;
    --nav-height: 70px;
}

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

body {
    font-family: var(--font-main);
    color: var(--color-text);
    line-height: 1.6;
}

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

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

/* ===== Utilities ===== */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.btn {
    display: inline-block;
    padding: 0.75rem 1.75rem;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    font-size: 1rem;
    transition: background 0.3s, transform 0.2s;
}

.btn--primary {
    background: var(--color-accent);
    color: #fff;
}

.btn--primary:hover {
    background: var(--color-accent-dark);
    transform: translateY(-1px);
}

.btn--outline {
    background: transparent;
    color: var(--color-accent);
    border: 2px solid var(--color-accent);
    margin-top: 1.5rem;
}

.btn--outline:hover {
    background: var(--color-accent);
    color: #fff;
}

.btn--nav {
    background: var(--color-accent);
    color: #fff;
    padding: 0.5rem 1.25rem;
    font-size: 0.9rem;
}

.btn--nav:hover {
    background: var(--color-accent-dark);
}

/* ===== Skip Link ===== */
.skip-link {
    position: absolute;
    top: -100%;
    left: 1rem;
    background: var(--color-accent);
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    z-index: 9999;
    font-weight: 600;
}

.skip-link:focus {
    top: 0.5rem;
}

/* ===== Focus ===== */
:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}

/* ===== Navigation ===== */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-height);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.nav__container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav__home {
    display: flex;
    align-items: center;
}

.nav__logo-img {
    height: 55px;
    width: auto;
    opacity: 0;
    transform: translateX(-10px);
    transition: opacity 0.3s, transform 0.3s;
}

.nav.nav--scrolled .nav__logo-img {
    opacity: 1;
    transform: translateX(0);
}

.nav__menu {
    display: flex;
    align-items: center;
    gap: 2rem;
    list-style: none;
}

.nav__menu a {
    font-weight: 500;
    transition: color 0.3s;
}

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

.nav__toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.nav__toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--color-dark);
    border-radius: 2px;
    transition: transform 0.3s, opacity 0.3s;
}

/* ===== Logo Banner ===== */
.logo-banner {
    background: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1.5rem 1.5rem;
    margin-top: var(--nav-height);
}

.logo-banner__img {
    max-height: 140px;
    width: auto;
}

@media (min-width: 769px) {
    .logo-banner {
        padding: 2rem 1.5rem;
    }

    .logo-banner__img {
        max-height: 220px;
    }
}

/* ===== Hero ===== */
.hero {
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
    background: linear-gradient(rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.55)),
                url('../images/hero/Point Suiter 7.jpg') center/cover no-repeat fixed;
    color: #fff;
}

.hero__content {
    max-width: 700px;
}

.hero h1 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    margin-bottom: 1rem;
    line-height: 1.15;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.hero__mission,
.hero__vision {
    font-size: clamp(1.05rem, 2vw, 1.3rem);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.9;
    line-height: 1.8;
    margin-bottom: 1rem;
}

.hero__vision {
    font-style: italic;
    margin-bottom: 2.5rem;
}

/* ===== Parallax Dividers ===== */
.parallax-divider {
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    position: relative;
}

.parallax-divider::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
}

.parallax-divider__text {
    position: relative;
    color: #fff;
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    font-style: italic;
    text-align: center;
    max-width: 600px;
    padding: 0 2rem;
    letter-spacing: 0.5px;
}

/* ===== Sections ===== */
.section {
    padding: 4rem 0;
}

.section__title {
    text-align: center;
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    margin-bottom: 2rem;
    color: var(--color-primary);
}

/* ===== Services — Image Cards ===== */
.services__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

.service-card {
    position: relative;
    aspect-ratio: 16/9;
    border-radius: 8px;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    cursor: pointer;
    display: block;
}

.service-card__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(transparent 30%, rgba(0, 0, 0, 0.75));
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.5rem;
    transition: background 0.3s;
}

.service-card:hover .service-card__overlay {
    background: linear-gradient(transparent 10%, rgba(0, 0, 0, 0.8));
}

.service-card h3 {
    color: #fff;
    font-size: 1.4rem;
    margin-bottom: 0.3rem;
}

.service-card p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.9rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s, opacity 0.3s;
    opacity: 0;
}

.service-card:hover p {
    max-height: 4rem;
    opacity: 1;
}

.service-card.is-active {
    outline: 3px solid var(--color-accent);
    outline-offset: -3px;
}

/* ===== Gallery ===== */
.gallery {
    background: var(--color-light);
}

.gallery__filter-label {
    text-align: center;
    color: var(--color-accent);
    font-weight: 600;
    margin-bottom: 1.5rem;
    min-height: 1.5em;
}

.gallery__prompt {
    text-align: center;
    color: var(--color-muted);
    font-size: 1.1rem;
    padding: 2rem 0;
}

.gallery__grid.is-hidden {
    display: none;
}

.gallery__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
}

.gallery__item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    aspect-ratio: 4/3;
    cursor: pointer;
}

.gallery__item.is-hidden {
    display: none;
}

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

.gallery__item:hover img {
    transform: scale(1.08);
}

.gallery__item-title {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem 1rem 0.75rem;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    color: #fff;
    font-size: 0.9rem;
    font-weight: 600;
}

/* ===== Contact ===== */
.contact__content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.4rem;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: 2px solid var(--color-accent);
    outline-offset: 1px;
    border-color: var(--color-accent);
}

.form-group input:invalid:not(:placeholder-shown),
.form-group textarea:invalid:not(:placeholder-shown) {
    border-color: #c0392b;
}

.contact__details {
    padding: 2rem;
    background: var(--color-light);
    border-radius: 8px;
}

.contact__details p {
    margin-bottom: 1rem;
    font-size: 1.05rem;
}

/* ===== Footer ===== */
.footer {
    background: var(--color-dark);
    color: #aaa;
    text-align: center;
    padding: 2rem;
}

/* ===== Lightbox ===== */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

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

.lightbox__content {
    position: relative;
    max-width: 90vw;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.lightbox__img {
    max-width: 90vw;
    max-height: 75vh;
    object-fit: contain;
    border-radius: 4px;
}

.lightbox__close {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    background: none;
    border: none;
    color: #fff;
    font-size: 2.5rem;
    cursor: pointer;
    z-index: 2001;
    line-height: 1;
}

.lightbox__prev,
.lightbox__next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: #fff;
    font-size: 3rem;
    cursor: pointer;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    line-height: 1;
    transition: background 0.2s;
    z-index: 2001;
}

.lightbox__prev:hover,
.lightbox__next:hover {
    background: rgba(255, 255, 255, 0.3);
}

.lightbox__prev {
    left: 1rem;
}

.lightbox__next {
    right: 1rem;
}

.lightbox__title {
    color: #fff;
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
    text-align: center;
}

.lightbox__caption {
    color: #ccc;
    font-size: 0.95rem;
    margin-top: 0.75rem;
    text-align: center;
}

.lightbox__counter {
    color: #888;
    font-size: 0.85rem;
    margin-top: 0.25rem;
}

.lightbox__label {
    display: none;
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    background: var(--color-accent);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 0.25rem 0.75rem;
    border-radius: 3px;
    text-transform: uppercase;
    z-index: 1;
}

.lightbox__label.is-visible {
    display: inline-block;
}

/* ===== Mobile ===== */
@media (max-width: 768px) {
    .nav__toggle {
        display: flex;
    }

    .nav__menu {
        position: fixed;
        top: var(--nav-height);
        left: 0;
        right: 0;
        background: #fff;
        flex-direction: column;
        padding: 2rem;
        gap: 1.5rem;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        transform: translateY(-100%);
        opacity: 0;
        pointer-events: none;
        transition: transform 0.3s, opacity 0.3s;
    }

    .nav__menu.is-open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }

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

    .service-card p {
        max-height: 4rem;
        opacity: 1;
    }

    .parallax-divider {
        background-attachment: scroll;
        height: 200px;
    }

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

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

/* ===== Reduced Motion ===== */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .hero {
        background-attachment: scroll;
    }

    .parallax-divider {
        background-attachment: scroll;
    }

    .nav__logo-img,
    .service-card p,
    .service-card__overlay,
    .gallery__item img,
    .btn,
    .nav__menu {
        transition: none;
    }
}
