/* Restrained, photograph-led presentation over the existing SJ Projects layout. */
:root {
    --color-background: #141412;
    --color-soft: #1c1c19;
    --color-panel: #20201c;
    --color-default: #f6f2e9;
    --color-muted: #c3beb3;
    --color-primary: #e6a262;
    --color-secondary: #e6a262;
    --color-ember: #e6a262;
    --color-border: #46453e;
    --shadow: 0 8px 24px rgba(0, 0, 0, 0.16);
    --glow-orange: none;
    --glow-soft: none;
}

body { background: var(--color-background); }
h1, h2, h3 { text-wrap: balance; }
.section-title { font-weight: 700; font-size: clamp(1.9rem, 3.5vw, 2.9rem); }
.section-header { max-width: 48rem; margin: 0 0 2rem; text-align: left; }
.section-subtitle { max-width: 65ch; }
:focus-visible { outline: 3px solid #f2b97e; outline-offset: 5px; }
.skip-link { position: fixed; top: -6rem; left: 1rem; z-index: 3000; padding: 1rem; color: #141412; background: #f6f2e9; }
.skip-link:focus { top: 1rem; }

.navbar, .navbar.scrolled { background: #141412; border-bottom: 1px solid var(--color-border); box-shadow: none; backdrop-filter: none; }
.logo-sj, .logo-text, .text-accent { text-shadow: none; }
.logo-sj { color: var(--color-primary); }
.nav-link { color: var(--color-muted); font-weight: 600; }
.nav-link:hover, .nav-link.active { color: var(--color-default); }
.nav-link.nav-cta, .nav-link.nav-cta:hover { background: var(--color-primary); color: #141412; border: 1px solid var(--color-primary); box-shadow: none; }
.btn, .nav-cta { font-weight: 700; }
.btn:hover { transform: none; }
.btn-primary, .hero-actions .btn-primary { color: #141412; background: #e6a262; border-color: #e6a262; box-shadow: none; }
.btn-primary:hover, .hero-actions .btn-primary:hover { color: #141412; background: #f2b97e; border-color: #f2b97e; box-shadow: none; }
.btn-ghost, .hero-actions .btn-ghost { background: transparent; color: var(--color-default); border-color: #767268; box-shadow: none; }
.btn-ghost:hover, .hero-actions .btn-ghost:hover { background: #303029; color: var(--color-default); border-color: var(--color-muted); }
.btn-whatsapp, .whatsapp-float { box-shadow: none; border-radius: 4px; }

.hero { min-height: auto; padding: 8.5rem 0 4rem; background: var(--color-background); border-bottom: 1px solid var(--color-border); }
.hero::before, .hero::after, .hero-media::before, .hero-media::after { content: none; }
.hero-grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.hero-content { max-width: 42rem; }
.hero-title { max-width: none; font-size: clamp(2.5rem, 4.3vw, 4rem); font-weight: 700; line-height: 1.12; letter-spacing: -0.025em; text-shadow: none; }
.hero-title em { color: var(--color-primary); font-style: normal; font-weight: 500; }
.hero-intro { max-width: 58ch; color: var(--color-muted); font-size: 1.1rem; margin-top: 1.5rem; }
.hero-proof { display: flex; flex-wrap: wrap; gap: 0.5rem 1.3rem; margin: 1.4rem 0; }
.hero-proof span, .hero-proof span:first-child, .hero-proof span:last-child { padding: 0; border: 0; background: transparent; color: var(--color-muted); font-weight: 500; font-size: 0.88rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 1.5rem; }
.hero-contact-strip { margin-top: 1.5rem; border: 0; padding: 0; color: var(--color-muted); }
.hero-contact-strip a { color: var(--color-default); }
.hero-media { max-width: none; min-height: 0; height: auto; margin: 0; padding: 0; background: transparent; }
.hero-media img { width: 100%; height: 28rem; min-height: 0; max-height: none; object-fit: contain; object-position: center; background: #20201c; border: 0; border-radius: 3px; filter: none; box-shadow: none; }
.hero-media-card { display: none; }
.hero-media figcaption { position: static; padding: 0.8rem 0 0; writing-mode: horizontal-tb; transform: none; color: var(--color-muted); font-size: 0.85rem; letter-spacing: 0; }

.portfolio, .services, .process, .about, .contact, .work-standard { background: var(--color-background); padding: 4.5rem 0; }
.services, .process, .about, .contact { border-top: 1px solid var(--color-border); }
.portfolio-filters { justify-content: flex-start; gap: 0.5rem; margin-bottom: 1.5rem; }
.filter-btn { min-height: 2.75rem; border-color: #767268; color: var(--color-muted); border-radius: 3px; box-shadow: none; }
.filter-btn.active, .filter-btn:hover { color: #141412; background: var(--color-primary); border-color: var(--color-primary); box-shadow: none; }
.portfolio-item { border: 0; background: transparent; box-shadow: none; }
.portfolio-item[hidden] { display: none; }
.portfolio-img-wrap { height: auto; background: #20201c; }
.portfolio-img-wrap img { width: 100%; height: 17rem; object-fit: contain; filter: none; }
.portfolio-item:hover img { transform: none; }
.portfolio-overlay { position: static; inset: auto; padding: 0.8rem 0 1rem; background: transparent; opacity: 1; transform: none; }
.portfolio-cat { color: var(--color-muted); font-weight: 500; }
.portfolio-overlay h3 { font-size: 1rem; font-weight: 600; }
.portfolio-note { color: var(--color-muted); }

.services-grid { gap: 2rem; }
.service-card, .service-card:hover { padding: 1.25rem 0; background: transparent; border: 0; border-top: 1px solid var(--color-border); border-radius: 0; box-shadow: none; transform: none; }
.service-icon-wrap { width: 2.5rem; height: 2.5rem; background: transparent; border: 0; box-shadow: none; }
.service-card .service-icon-wrap *, .service-card:hover .service-icon-wrap * { animation: none; transform: none; }
.service-card h3 { font-weight: 650; }
.service-tags { display: none; }
.service-link { color: var(--color-primary); display: inline-flex; min-height: 2.75rem; align-items: center; }
.process-step { background: transparent; box-shadow: none; border: 0; border-top: 1px solid var(--color-border); padding: 1.2rem 0; }
.process-step > span { background: transparent; box-shadow: none; border: 0; color: var(--color-primary); }
.about-visual, .about-brand-panel { background: var(--color-soft); box-shadow: none; border-color: var(--color-border); }
.about-visual::before, .about-visual::after { content: none; }
.slogan-box { background: transparent; box-shadow: none; border: 0; padding-left: 0; }
.contact-cta-strip, .contact-info-card, .contact-form-card, .service-quote-card { background: var(--color-panel); border: 1px solid var(--color-border); box-shadow: none; }
.contact-icon { background: transparent; border: 0; box-shadow: none; color: var(--color-primary); }
.contact-form input, .contact-form select, .contact-form textarea { color: var(--color-default); background: #141412; border-color: #767268; }
.contact-form input::placeholder, .contact-form textarea::placeholder { color: #b5b1a8; }
.footer { background: #10100f; border-top: 1px solid var(--color-border); }
.footer-bottom { padding-bottom: 5rem; }
.service-hero { border-color: var(--color-border); }
.service-breadcrumb { letter-spacing: 0; text-transform: none; }
[data-aos], [data-aos].visible { opacity: 1; transform: none; transition: none; }
.lightbox-close, .video-modal-close, .lightbox-nav { color: #141412; background: #f6f2e9; }
body:has(.lightbox.open) .whatsapp-float, body:has(.video-modal.open) .whatsapp-float { visibility: hidden; }

@media (max-width: 1040px) {
    .hero-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
    .hero-title { font-size: 2.8rem; }
    .hero-media img { height: 25rem; }
}
@media (max-width: 820px) {
    .nav-menu { background: #141412; visibility: hidden; box-shadow: none; }
    .nav-menu.active { visibility: visible; }
    .hero { padding-top: 6.5rem; padding-bottom: 2.5rem; }
    .hero-grid { grid-template-columns: 1fr; }
    .hero-title { font-size: clamp(2.3rem, 7vw, 3.5rem); }
    .hero-actions { flex-direction: row; }
    .hero-actions .btn { width: auto; }
    .hero-media img { height: 22rem; }
    .hero-media figcaption { display: block; }
    .hero-contact-strip { display: flex; flex-wrap: wrap; gap: 0.6rem; }
    .portfolio, .services, .process, .about, .contact { padding: 3rem 0; }
}
@media (max-width: 560px) {
    .hero-actions { flex-direction: column; }
    .hero-actions .btn { width: 100%; }
    .hero-media img { height: 18rem; }
    .hero-proof { display: none; }
    .service-page .nav-container { gap: 0.8rem; }
    .service-page .logo-text { font-size: 0.85rem; }
    .lightbox { padding: 4rem 1rem 5rem; }
    .lightbox-content img { max-height: calc(100svh - 13rem); }
}

.hero-slides {
    display: grid;
    isolation: isolate;
}

.hero-slides img {
    grid-area: 1 / 1;
    opacity: 0;
    transition: opacity 650ms ease;
}

.hero-slides .is-active {
    opacity: 1;
    z-index: 1;
}

.hero-media figcaption {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
    min-height: 2.75rem;
}

#hero-gallery-toggle {
    padding: 0.35rem 0.6rem;
    background: transparent;
    border: 1px solid currentColor;
    border-radius: 3px;
    color: inherit;
    font: inherit;
    cursor: pointer;
}

@media (prefers-reduced-motion: reduce) {
    .hero-slides img { transition: none; }
}
