:root {
    --navy: #0b2942;
    --blue: #15578a;
    --blue-light: #eaf4fa;
    --orange: #f7931e;
    --orange-dark: #dc7410;
    --ink: #122231;
    --muted: #687787;
    --white: #ffffff;
    --bg: #f7f9fb;
    --border: #e3e9ee;
    --shadow: 0 16px 45px rgba(12, 42, 66, .10);
    --radius: 18px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Inter", sans-serif;
    color: var(--ink);
    background: var(--white);
    line-height: 1.65;
    overflow-x: hidden;
}

body.lightbox-open {
    overflow: hidden;
}

img {
    display: block;
    width: 100%;
}

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

button {
    font: inherit;
}

.container {
    width: min(1180px, calc(100% - 40px));
    margin-inline: auto;
}

/* =========================
   HEADER
========================= */

.site-header {
    position: fixed;
    z-index: 1000;
    inset: 0 0 auto;
    background: rgba(255,255,255,.96);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(12,42,66,.08);
    transition: .3s ease;
}

.site-header.scrolled {
    box-shadow: 0 8px 30px rgba(10,35,55,.09);
}

.nav-wrap {
    min-height: 78px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
}

.brand img {
    width: 185px;
    height: auto;
    object-fit: contain;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 5px;
}

.nav-link {
    position: relative;
    border: 0;
    background: transparent;
    color: var(--ink);
    padding: 12px 15px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: .25s ease;
}

.nav-link::after {
    content: "";
    position: absolute;
    left: 15px;
    right: 15px;
    bottom: 5px;
    height: 2px;
    background: var(--orange);
    transform: scaleX(0);
    transform-origin: center;
    transition: .25s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--orange-dark);
}

.nav-link:hover::after,
.nav-link.active::after {
    transform: scaleX(1);
}

.arrow {
    margin-left: 4px;
    font-size: 15px;
}

.nav-dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    min-width: 190px;
    padding: 8px;
    border-radius: 14px;
    background: var(--white);
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: .25s ease;
}

.nav-dropdown:hover .dropdown-menu,
.nav-dropdown.open .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu a {
    display: block;
    padding: 11px 13px;
    border-radius: 9px;
    font-size: 13px;
    font-weight: 600;
    transition: .2s ease;
}

.dropdown-menu a:hover {
    background: var(--blue-light);
    color: var(--blue);
    padding-left: 18px;
}

.nav-call {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-left: 8px;
    padding: 11px 16px;
    border-radius: 50px;
    color: var(--white);
    background: var(--orange);
    font-size: 13px;
    font-weight: 800;
    box-shadow: 0 8px 20px rgba(247,147,30,.22);
    transition: .25s ease;
}

.nav-call:hover {
    background: var(--navy);
    transform: translateY(-2px);
}

.call-icon {
    font-size: 16px;
}

.menu-toggle {
    display: none;
    width: 44px;
    height: 42px;
    border: 1px solid var(--border);
    background: var(--white);
    border-radius: 10px;
    cursor: pointer;
    padding: 9px;
}

.menu-toggle span {
    display: block;
    height: 2px;
    background: var(--navy);
    margin: 5px 0;
    transition: .25s;
}

/* =========================
   GALLERY HERO
========================= */

.gallery-hero {
    position: relative;
    min-height: 470px;
    margin-top: 78px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background:
        linear-gradient(90deg, rgba(5,22,35,.86), rgba(5,22,35,.50), rgba(5,22,35,.18)),
        url("../assets/gallery-img/gallery-banner.webp") center/cover no-repeat;
}

.gallery-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(11,41,66,.35), transparent 55%);
}

.gallery-hero-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 80% 50%, rgba(247,147,30,.16), transparent 35%);
}

.gallery-hero-content {
    position: relative;
    z-index: 2;
    color: var(--white);
    padding-top: 25px;
}

.section-kicker {
    display: inline-block;
    color: var(--orange);
    font-size: 11px;
    letter-spacing: 2px;
    font-weight: 800;
    margin-bottom: 12px;
}

.gallery-hero h1 {
    max-width: 720px;
    font-family: "Manrope", sans-serif;
    font-size: clamp(42px, 5.5vw, 72px);
    line-height: 1.06;
    letter-spacing: -2.5px;
    margin-bottom: 20px;
}

.gallery-hero h1 span {
    color: var(--orange);
}

.gallery-hero p {
    max-width: 620px;
    color: rgba(255,255,255,.86);
    font-size: 15px;
}

/* =========================
   GENERAL SECTION
========================= */

.section {
    padding: 100px 0;
}

.section-heading {
    max-width: 700px;
    margin-bottom: 45px;
}

.section-heading.centered {
    text-align: center;
    margin-inline: auto;
}

.section-heading h2 {
    font-family: "Manrope", sans-serif;
    font-size: clamp(34px, 4vw, 52px);
    line-height: 1.1;
    letter-spacing: -1.5px;
}

.section-heading h2 span {
    color: var(--orange);
}

.section-heading > p {
    margin-top: 13px;
    color: var(--muted);
    font-size: 15px;
}

/* =========================
   FILTERS
========================= */

.gallery-filters {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 9px;
    flex-wrap: wrap;
    margin-bottom: 35px;
}

.filter-btn {
    border: 1px solid var(--border);
    background: var(--white);
    color: var(--ink);
    padding: 10px 18px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: .25s ease;
}

.filter-btn:hover,
.filter-btn.active {
    color: var(--white);
    background: var(--orange);
    border-color: var(--orange);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(247,147,30,.18);
}

/* =========================
   MASONRY-STYLE GALLERY
========================= */

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 235px;
    gap: 18px;
}

.gallery-item {
    min-width: 0;
    min-height: 0;
    animation: galleryIn .5s ease both;
}

.gallery-item.gallery-large {
    grid-column: span 2;
    grid-row: span 2;
}

.gallery-item.gallery-tall {
    grid-row: span 2;
}

.gallery-item.gallery-wide {
    grid-column: span 2;
}

.gallery-item.hide {
    display: none;
}

.gallery-image {
    position: relative;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    border-radius: 16px;
    overflow: hidden;
    background: #ddd;
    cursor: pointer;
    display: block;
}

.gallery-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .65s cubic-bezier(.2,.7,.2,1);
}

.gallery-image::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(5,22,35,.72) 100%);
    opacity: .65;
    transition: .35s ease;
}

.gallery-image:hover img {
    transform: scale(1.08);
}

.gallery-image:hover::after {
    opacity: 1;
}

.image-overlay {
    position: absolute;
    z-index: 2;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: var(--white);
}

.zoom-icon {
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255,255,255,.55);
    border-radius: 50%;
    background: rgba(11,41,66,.45);
    backdrop-filter: blur(5px);
    opacity: 0;
    transform: translateY(12px) scale(.85);
    transition: .35s ease;
}

.gallery-image:hover .zoom-icon {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.image-caption {
    position: absolute;
    left: 20px;
    bottom: 18px;
    font-family: "Manrope", sans-serif;
    font-size: 15px;
    font-weight: 700;
    text-align: left;
    transform: translateY(8px);
    opacity: 0;
    transition: .35s ease;
}

.gallery-image:hover .image-caption {
    opacity: 1;
    transform: translateY(0);
}

@keyframes galleryIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========================
   MEMORY CTA
========================= */

.memory-cta {
    padding: 65px 0;
    background: var(--navy);
}

.memory-cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.memory-cta h2 {
    color: white;
    font-family: "Manrope", sans-serif;
    font-size: clamp(30px, 4vw, 48px);
    line-height: 1.15;
}

.memory-cta h2 span {
    color: var(--orange);
}

.memory-cta p {
    margin-top: 8px;
    color: rgba(255,255,255,.7);
    font-size: 14px;
}

.hero-btn {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    gap: 20px;
    padding: 14px 20px;
    border-radius: 50px;
    color: var(--white);
    background: var(--orange);
    font-size: 13px;
    font-weight: 800;
    transition: .25s ease;
    flex-shrink: 0;
}

.hero-btn span {
    font-size: 19px;
}

.hero-btn:hover {
    background: var(--orange-dark);
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(247,147,30,.25);
}

.hero-btn.light {
    color: var(--navy);
    background: white;
}

.hero-btn.light:hover {
    color: white;
    background: var(--orange);
}

/* =========================
   LIGHTBOX
========================= */

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: .3s ease;
}

.lightbox.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(3,16,27,.90);
    backdrop-filter: blur(7px);
}

.lightbox-box {
    position: relative;
    z-index: 2;
    width: min(1050px, 94vw);
    height: min(760px, 88vh);
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-box img {
    width: auto;
    max-width: 100%;
    max-height: calc(100% - 45px);
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 25px 80px rgba(0,0,0,.45);
    animation: lightboxImage .3s ease;
}

@keyframes lightboxImage {
    from {
        opacity: 0;
        transform: scale(.96);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.lightbox-close {
    position: absolute;
    z-index: 5;
    top: 5px;
    right: 0;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(255,255,255,.25);
    border-radius: 50%;
    background: rgba(255,255,255,.10);
    color: white;
    font-size: 30px;
    line-height: 1;
    cursor: pointer;
    transition: .25s ease;
}

.lightbox-close:hover {
    background: var(--orange);
    border-color: var(--orange);
    transform: rotate(90deg);
}

.lightbox-nav {
    position: absolute;
    z-index: 5;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border: 1px solid rgba(255,255,255,.30);
    border-radius: 50%;
    background: rgba(255,255,255,.10);
    color: white;
    font-size: 35px;
    line-height: 1;
    cursor: pointer;
    transition: .25s ease;
}

.lightbox-nav:hover {
    background: var(--orange);
    border-color: var(--orange);
}

.lightbox-prev {
    left: -65px;
}

.lightbox-next {
    right: -65px;
}

.lightbox-caption {
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    color: white;
    font-size: 13px;
    font-weight: 700;
    background: rgba(11,41,66,.80);
    padding: 8px 15px;
    border-radius: 30px;
    white-space: nowrap;
}

/* =========================
   FOOTER
========================= */

.site-footer {
    color: rgba(255,255,255,.72);
    background: #071c2d;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.7fr 1fr 1fr;
    gap: 70px;
    padding: 70px 0 55px;
}

.footer-logo {
    width: 205px;
    height: auto;
    background: white;
    padding: 5px 10px;
    border-radius: 6px;
}

.footer-about > p {
    max-width: 380px;
    margin: 18px 0 22px;
    font-size: 13px;
}

.contact-list {
    display: grid;
    gap: 10px;
}

.contact-list a,
.contact-list p {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    font-size: 12px;
}

.contact-list span {
    color: var(--orange);
    font-size: 16px;
}

.footer-social {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
}

.footer-social a {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255,255,255,.15);
    border-radius: 50%;
    color: rgba(255,255,255,.75);
    background: rgba(255,255,255,.04);
    font-size: 16px;
    transition: all .3s ease;
}

.footer-social a:hover {
    color: #fff;
    background: var(--orange);
    border-color: var(--orange);
    transform: translateY(-3px);
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.footer-links h3 {
    color: white;
    font-family: "Manrope";
    font-size: 15px;
    margin-bottom: 8px;
}

.footer-links a {
    width: fit-content;
    font-size: 12px;
    transition: .2s;
}

.footer-links a:hover {
    color: var(--orange);
    padding-left: 5px;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.08);
    padding: 20px 0;
}

.footer-bottom p {
    text-align: center;
    font-size: 11px;
    color: rgba(255,255,255,.5);
}

/* =========================
   BACK TO TOP
========================= */

.back-top {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 900;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 50%;
    color: white;
    background: var(--orange);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: .25s;
}

.back-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-top:hover {
    background: var(--navy);
    transform: translateY(-3px);
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 1050px) {
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .gallery-item.gallery-large {
        grid-column: span 2;
    }

    .lightbox-prev {
        left: 10px;
    }

    .lightbox-next {
        right: 10px;
    }
}

@media (max-width: 820px) {

    .container {
        width: min(100% - 28px, 680px);
    }

    .nav-wrap {
        min-height: 70px;
    }

    .brand img {
        width: 155px;
    }

    .menu-toggle {
        display: block;
    }

    .main-nav {
        position: absolute;
        left: 14px;
        right: 14px;
        top: calc(100% + 8px);
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 10px;
        background: white;
        border: 1px solid var(--border);
        border-radius: 16px;
        box-shadow: var(--shadow);
    }

    .main-nav.open {
        display: flex;
    }

    .nav-link {
        width: 100%;
        text-align: left;
        padding: 13px 14px;
        border-radius: 9px;
    }

    .nav-link::after {
        display: none;
    }

    .nav-link:hover {
        background: var(--blue-light);
    }

    .nav-dropdown {
        width: 100%;
    }

    .dropdown-menu {
        position: static;
        display: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        width: 100%;
        box-shadow: none;
        border: 0;
        padding: 2px 5px 6px;
    }

    .nav-dropdown.open .dropdown-menu {
        display: block;
    }

    .dropdown-menu a {
        padding: 10px 18px;
        background: #f7fafc;
    }

    .nav-call {
        justify-content: center;
        margin: 7px 0 3px;
    }

    .gallery-hero {
        margin-top: 70px;
        min-height: 430px;
    }

    .section {
        padding: 75px 0;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 220px;
    }

    .gallery-item.gallery-large,
    .gallery-item.gallery-wide {
        grid-column: span 2;
    }

    .gallery-item.gallery-tall {
        grid-row: span 2;
    }

    .memory-cta-inner {
        align-items: flex-start;
        flex-direction: column;
    }

    .footer-grid {
        grid-template-columns: 1.4fr 1fr;
        gap: 40px;
    }
}

@media (max-width: 540px) {

    .container {
        width: min(100% - 24px, 100%);
    }

    .brand img {
        width: 140px;
    }

    .gallery-hero {
        min-height: 430px;
    }

    .gallery-hero h1 {
        font-size: 40px;
        letter-spacing: -1.5px;
    }

    .gallery-hero p {
        font-size: 13px;
    }

    .section-heading {
        margin-bottom: 32px;
    }

    .section-heading h2 {
        font-size: 34px;
    }

    .gallery-filters {
        justify-content: flex-start;
        overflow-x: auto;
        flex-wrap: nowrap;
        padding: 2px 2px 8px;
        scrollbar-width: none;
    }

    .gallery-filters::-webkit-scrollbar {
        display: none;
    }

    .filter-btn {
        flex: 0 0 auto;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: 260px;
        gap: 14px;
    }

    .gallery-item.gallery-large,
    .gallery-item.gallery-wide {
        grid-column: span 1;
        grid-row: span 1;
    }

    .gallery-item.gallery-tall {
        grid-row: span 1;
    }

    .gallery-item {
        grid-column: span 1 !important;
        grid-row: span 1 !important;
    }

    .zoom-icon {
        opacity: 1;
        transform: none;
    }

    .image-caption {
        opacity: 1;
        transform: none;
    }

    .lightbox {
        padding: 15px;
    }

    .lightbox-box {
        width: 100%;
        height: 85vh;
    }

    .lightbox-box img {
        max-width: 94%;
        max-height: calc(100% - 55px);
    }

    .lightbox-nav {
        width: 42px;
        height: 42px;
        font-size: 28px;
    }

    .lightbox-prev {
        left: 2px;
    }

    .lightbox-next {
        right: 2px;
    }

    .lightbox-close {
        top: 0;
        right: 0;
    }

    .lightbox-caption {
        max-width: 70%;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .footer-logo {
        width: 185px;
    }
}
