/* ---------------------------------------------------------------
   Nikos Papadimitriou & Associates — site stylesheet (2026 refresh)
   Monochrome base, single teal accent, editorial serif headings.
----------------------------------------------------------------- */

:root {
    --bg: #ffffff;
    --bg-alt: #f5f5f3;
    --ink: #111111;
    --ink-soft: #454545;
    --muted: #7a7a76;
    --border: #e3e2dd;
    --border-dark: #2b2b2b;
    --accent: #3e606f;
    --accent-soft: #7fa0ac;
    --dark: #111111;
    --dark-2: #1b1b1b;
    --on-dark: #f2f1ee;
    --on-dark-muted: #b7b6b0;
    --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
    --sans: "Inter", "Helvetica Neue", Arial, sans-serif;
    --nav-h: 76px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--sans);
    color: var(--ink);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    line-height: 1.6;
}

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

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

section {
    scroll-margin-top: var(--nav-h);
}

.container {
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 32px;
}

.eyebrow {
    display: block;
    font-family: var(--sans);
    font-size: 12px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 14px;
}

.eyebrow.on-dark {
    color: var(--accent-soft);
}

h1, h2, h3, h4 {
    font-family: var(--serif);
    font-weight: 600;
    line-height: 1.15;
    margin: 0 0 18px;
    color: inherit;
}

h1 { font-size: clamp(34px, 5vw, 56px); }
h2 { font-size: clamp(28px, 3.6vw, 40px); }
h3 { font-size: 22px; }

p { margin: 0 0 16px; }

.lede {
    font-size: 19px;
    color: var(--ink-soft);
    max-width: 720px;
}

.section-head {
    max-width: 640px;
    margin-bottom: 52px;
}

.section-head.center {
    max-width: 680px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

/* ---------- buttons ---------- */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 30px;
    font-size: 13px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-weight: 600;
    border: 1px solid var(--accent);
    color: var(--accent);
    background: transparent;
    border-radius: 2px;
    transition: background 0.2s ease, color 0.2s ease;
    cursor: pointer;
}

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

.btn.on-dark {
    border-color: var(--accent-soft);
    color: var(--accent-soft);
}

.btn.on-dark:hover {
    background: var(--accent-soft);
    color: #0d0d0d;
}

/* ---------- nav ---------- */

.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-h);
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: saturate(180%) blur(8px);
    border-bottom: 1px solid var(--border);
    z-index: 100;
}

.nav .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

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

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

.brand span {
    color: var(--accent);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 34px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links a {
    font-size: 12.5px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--ink-soft);
    padding-bottom: 4px;
    border-bottom: 1px solid transparent;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--ink);
    border-color: var(--accent);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
}

.nav-toggle span {
    width: 22px;
    height: 2px;
    background: var(--ink);
}

/* ---------- hero ---------- */

.hero {
    position: relative;
    overflow: hidden;
    padding: calc(var(--nav-h) + 88px) 0 64px;
    background: var(--bg-alt);
    border-bottom: 1px solid var(--border);
}

.hero-watermark {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 640px;
    height: 640px;
    max-width: 90vw;
    transform: translate(-50%, -50%);
    object-fit: contain;
    opacity: 0.08;
    filter: grayscale(1) contrast(0.9);
    pointer-events: none;
    user-select: none;
    z-index: 0;
}

.hero-inner {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 56px;
}

.hero-logo {
    width: 200px;
    height: 200px;
    flex-shrink: 0;
    border-radius: 50%;
    object-fit: contain;
    object-position: center;
    padding: 14px;
    border: 1px solid var(--border);
    background: #fff;
}

.hero-text {
    flex: 1;
    text-align: center;
}

.hero-text h1 {
    margin-bottom: 12px;
    white-space: nowrap;
}

.hero-text .role {
    font-size: 18px;
    color: #2a2a2a;
    margin-bottom: 4px;
}

.hero-text .subrole {
    font-size: 15px;
    color: #5a5a5a;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* ---------- dark section base ---------- */

.section-dark {
    background: var(--dark);
    color: var(--on-dark);
}

.section-dark .muted,
.section-dark p {
    color: var(--on-dark-muted);
}

.section {
    padding: 64px 0;
}

/* ---------- about / project gallery ---------- */

.gallery-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
    margin-top: 48px;
}

.gallery-card {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border-dark);
    flex: 1 1 240px;
    max-width: 280px;
    aspect-ratio: 4 / 3;
    background: var(--dark-2);
    cursor: pointer;
}

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

.gallery-card:hover img {
    transform: scale(1.06);
}

.gallery-card .cap {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 16px 18px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.88), rgba(0, 0, 0, 0));
}

.gallery-card .cap h4 {
    font-size: 16px;
    margin: 0 0 2px;
    color: #fff;
}

.gallery-card .cap span {
    font-size: 12.5px;
    color: var(--on-dark-muted);
}

/* ---------- services ---------- */

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 20px;
    margin-top: 48px;
}

.service-card {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border);
    background: var(--bg);
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.service-card:hover {
    border-color: var(--accent);
    transform: translateY(-3px);
}

.service-thumb {
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-bottom: 1px solid var(--border);
    background: var(--bg-alt);
}

.service-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.service-card h4 {
    font-family: var(--sans);
    font-weight: 600;
    font-size: 12.5px;
    line-height: 1.45;
    color: var(--ink);
    padding: 16px 16px 18px;
    margin: 0;
    flex: 1;
}

.service-card .go {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px 14px;
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent);
    font-weight: 600;
}

/* ---------- highlights ---------- */

.highlight-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 48px;
}

.highlight-card {
    text-align: center;
    padding: 40px 24px;
    background: var(--bg);
    border: 1px solid var(--border);
}

.highlight-card img {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    object-fit: contain;
}

.highlight-card .num {
    font-family: var(--serif);
    font-size: 15px;
    color: var(--accent);
    letter-spacing: 0.1em;
    margin-bottom: 10px;
}

.highlight-card p {
    font-size: 15px;
    color: var(--ink-soft);
    margin: 0;
}

/* ---------- statement banners ---------- */

.statement {
    padding: 64px 0;
    text-align: center;
    background: var(--dark);
}

.statement + #photos {
    padding-top: 0;
}

#photos + .statement {
    padding-top: 0;
}

.statement p {
    font-family: var(--serif);
    font-size: clamp(22px, 3vw, 30px);
    font-style: italic;
    color: var(--on-dark);
    max-width: 820px;
    margin: 0 auto;
    line-height: 1.4;
}

/* ---------- photos ---------- */

.photo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 48px;
}

.photo-card {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border-dark);
    aspect-ratio: 4 / 3;
}

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

.photo-card:hover img {
    transform: scale(1.06);
}

.photo-card figcaption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 14px 16px;
    font-size: 12.5px;
    color: var(--on-dark-muted);
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0));
}

/* ---------- clients cta ---------- */

.clients {
    padding: 64px 0;
    text-align: center;
    background: var(--bg-alt);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

/* ---------- location ---------- */

.map-frame {
    margin-top: 40px;
    border: 1px solid var(--border);
    aspect-ratio: 16 / 8;
    position: relative;
    overflow: hidden;
}

.map-frame iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* ---------- footer ---------- */

.footer {
    background: var(--dark);
    color: var(--on-dark);
    padding: 84px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    padding-bottom: 64px;
    border-bottom: 1px solid #2a2a2a;
}

.footer-item {
    display: flex;
    gap: 16px;
}

.footer-item i {
    color: var(--accent-soft);
    font-size: 20px;
    margin-top: 3px;
}

.footer-item h5 {
    font-size: 11.5px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--on-dark-muted);
    margin: 0 0 6px;
}

.footer-item p, .footer-item a {
    font-size: 15px;
    color: var(--on-dark);
    margin: 0;
}

.social-row {
    display: flex;
    justify-content: center;
    gap: 40px;
    padding: 40px 0;
}

.social-row a {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--on-dark-muted);
    transition: color 0.2s ease;
}

.social-row a:hover {
    color: var(--accent-soft);
}

.social-row i {
    font-size: 18px;
}

.copyright {
    text-align: center;
    padding: 26px 0;
    border-top: 1px solid #2a2a2a;
    font-size: 12px;
    letter-spacing: 0.05em;
    color: var(--on-dark-muted);
}

/* ---------- lightbox ---------- */

.lightbox {
    position: fixed;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 18px;
    padding: 40px;
    background: rgba(10, 10, 10, 0.92);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease;
    z-index: 200;
}

.lightbox.open {
    opacity: 1;
    visibility: visible;
}

.lightbox-img {
    max-width: min(1100px, 90vw);
    max-height: 80vh;
    width: auto;
    height: auto;
    border: 1px solid #2a2a2a;
    background: #000;
}

.lightbox-caption {
    color: var(--on-dark-muted);
    font-size: 14px;
    text-align: center;
    max-width: 700px;
}

.lightbox-close {
    position: absolute;
    top: 24px;
    right: 28px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: transparent;
    border: 1px solid #2a2a2a;
    color: var(--on-dark);
    font-size: 18px;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.lightbox-close:hover {
    background: var(--accent);
    color: #fff;
}

/* ---------- back to top ---------- */

.back-to-top {
    position: fixed;
    right: 28px;
    bottom: 28px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--dark);
    color: var(--accent-soft);
    border: 1px solid #2a2a2a;
    font-size: 18px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.25s ease, transform 0.25s ease, background 0.2s ease, color 0.2s ease;
    z-index: 90;
}

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

.back-to-top:hover {
    background: var(--accent);
    color: #fff;
}

/* ---------- scroll reveal ---------- */

.reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.in-view {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* ---------- lazy image fade-in ---------- */

img[loading="lazy"] {
    opacity: 0;
    transition: opacity 0.5s ease;
}

img[loading="lazy"].img-loaded {
    opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
    img[loading="lazy"] {
        opacity: 1;
        transition: none;
    }
}

/* ---------- focus states ---------- */

a:focus-visible,
button:focus-visible,
iframe:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
    border-radius: 2px;
}

.service-card:focus-visible,
.gallery-card:focus-visible,
.photo-card:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: -2px;
}

/* ---------- nav scrolled state ---------- */

.nav.scrolled {
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}

/* ---------- hero scroll cue ---------- */

.scroll-cue {
    position: absolute;
    left: 50%;
    bottom: 28px;
    transform: translateX(-50%);
    width: 24px;
    height: 40px;
    z-index: 1;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 8px;
    border: 1px solid var(--ink-soft);
    border-radius: 12px;
    opacity: 0.55;
    transition: opacity 0.2s ease, border-color 0.2s ease;
}

.scroll-cue:hover {
    opacity: 1;
    border-color: var(--accent);
}

.scroll-cue span {
    width: 3px;
    height: 7px;
    border-radius: 2px;
    background: var(--ink-soft);
    animation: scroll-cue-move 1.8s ease-in-out infinite;
}

.scroll-cue:hover span {
    background: var(--accent);
}

@keyframes scroll-cue-move {
    0% { transform: translateY(0); opacity: 1; }
    70% { transform: translateY(10px); opacity: 0; }
    71% { transform: translateY(0); opacity: 0; }
    100% { transform: translateY(0); opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
    .scroll-cue span {
        animation: none;
    }
}

/* ---------- lightbox nav ---------- */

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: transparent;
    border: 1px solid #2a2a2a;
    color: var(--on-dark);
    font-size: 20px;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.lightbox-nav:hover {
    background: var(--accent);
    color: #fff;
}

.lightbox-prev {
    left: 24px;
}

.lightbox-next {
    right: 24px;
}

.lightbox-nav.hidden {
    display: none;
}

/* ---------- responsive ---------- */

@media (max-width: 900px) {
    .hero-inner {
        flex-direction: column;
        text-align: center;
    }

    .hero-text h1 {
        white-space: normal;
    }

    .highlight-grid,
    .photo-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .scroll-cue {
        bottom: 16px;
    }

    .lightbox-nav {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    .lightbox-prev {
        left: 8px;
    }

    .lightbox-next {
        right: 8px;
    }

    .nav-links {
        position: fixed;
        top: var(--nav-h);
        left: 0;
        right: 0;
        background: #fff;
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        padding: 8px 32px 20px;
        border-bottom: 1px solid var(--border);
        transform: translateY(-8px);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.2s ease, transform 0.2s ease;
    }

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

    .nav-links li {
        width: 100%;
        border-bottom: 1px solid var(--border);
    }

    .nav-links a {
        display: block;
        padding: 14px 0;
    }

    .nav-toggle {
        display: flex;
    }

    .section {
        padding: 48px 0;
    }
}

@media (max-width: 600px) {
    .container {
        padding: 0 20px;
    }

    .service-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
}
