@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400;1,500;1,600;1,700&family=Jost:wght@300;400;500;600&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --cream:       #f7f2eb;
    --cream-mid:   #ede5d8;
    --cream-dark:  #e0d4c3;
    --stone:       #c8b9a8;
    --brown-dark:  #2b1d14;
    --brown:       #5c3d2e;
    --brown-mid:   #7a5c48;
    --brown-light: #a8876a;
    --gold:        #c4956a;
    --text:        #2b1d14;
    --text-muted:  #7a6a5e;
    --white:       #ffffff;
    --nav-height:  80px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Jost', sans-serif;
    background-color: var(--cream);
    color: var(--text);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* ─── TYPOGRAPHY ─────────────────────────────── */

h1, h2, h3, h4 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-weight: 600;
    line-height: 1.1;
}

p {
    color: var(--text-muted);
    line-height: 1.75;
    font-size: 1rem;
    font-weight: 300;
}

a {
    color: inherit;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

/* ─── INLINE BODY LINKS ───────────────────────── */
.content-block p a,
.profile-text p a,
.faq-answer p a,
.restoration-intro p a,
.seo-section p a,
.page-hero__content p a,
.contact-cell__value a {
    color: var(--brown);
    text-decoration: underline;
    text-underline-offset: 3px;
    border-bottom: none;
    padding-bottom: 0;
}

.content-block p a:hover,
.profile-text p a:hover,
.faq-answer p a:hover,
.restoration-intro p a:hover,
.seo-section p a:hover,
.page-hero__content p a:hover,
.contact-cell__value a:hover {
    color: var(--brown-dark);
    border-color: transparent;
}

/* ─── HEADER / NAV ────────────────────────────── */

header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    height: var(--nav-height);
    display: flex;
    align-items: center;
    padding: 0 3rem;
    justify-content: space-between;
    transition: background 0.4s ease, box-shadow 0.4s ease;
}

header.scrolled {
    background: rgba(247, 242, 235, 0.97);
    box-shadow: 0 1px 20px rgba(43, 29, 20, 0.08);
    backdrop-filter: blur(8px);
}

.logo {
    display: flex;
    flex-direction: column;
}

.logo h1, .logo .logo-name {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--white);
    line-height: 1;
    transition: color 0.4s ease;
}

header.scrolled .logo h1, .logo .logo-name {
    color: var(--text);
}

.logo span {
    font-family: 'Jost', sans-serif;
    font-size: 0.65rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.55);
    margin-top: 3px;
    font-weight: 400;
    transition: color 0.4s ease;
}

header.scrolled .logo span {
    color: var(--text-muted);
}

nav ul {
    list-style: none;
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

nav ul li a {
    font-family: 'Jost', sans-serif;
    font-size: 0.78rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-weight: 500;
    color: rgba(255,255,255,0.75);
    position: relative;
    padding-bottom: 3px;
    transition: color 0.2s ease;
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--gold);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s ease;
}

nav ul li a:hover,
nav ul li a.active {
    color: var(--white);
    opacity: 1;
}

nav ul li a:hover::after,
nav ul li a.active::after {
    transform: scaleX(1);
}

header.scrolled nav ul li a {
    color: var(--text-muted);
}

header.scrolled nav ul li a:hover,
header.scrolled nav ul li a.active {
    color: var(--text);
}

/* ─── HAMBURGER ───────────────────────────────── */

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 8px;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 1.5px;
    background: var(--white);
    transition: transform 0.3s ease, opacity 0.3s ease, background 0.4s ease;
}

header.scrolled .hamburger span {
    background: var(--text);
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.hamburger.active span:nth-child(2) {
    opacity: 0;
}
.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ─── NAV SOCIAL ICONS ───────────────────────── */

.nav-social-group {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding-left: 1.25rem;
    margin-left: 0.5rem;
    border-left: 1px solid rgba(255,255,255,0.2);
}

header.scrolled .nav-social-group {
    border-left-color: var(--cream-mid);
}

.nav-social-link {
    display: flex;
    align-items: center;
    color: rgba(255,255,255,0.65);
    transition: color 0.2s ease;
    line-height: 0;
}

.nav-social-link::after {
    display: none !important;
}

.nav-social-link:hover {
    color: var(--white);
    opacity: 1;
}

header.scrolled .nav-social-link {
    color: var(--text-muted);
}

header.scrolled .nav-social-link:hover {
    color: var(--text);
}

/* ─── HERO ────────────────────────────────────── */

.hero-home {
    position: relative;
    height: 100vh;
    min-height: 680px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.hero-home__bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: 50% 15%;
    transform: scale(1.04);
    transition: transform 8s ease;
}

.hero-home__bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(26, 15, 8, 0.42) 0%,
        rgba(26, 15, 8, 0.58) 50%,
        rgba(26, 15, 8, 0.75) 100%
    );
}

.hero-home__bg.loaded {
    transform: scale(1);
}

.hero-home__content {
    position: relative;
    z-index: 1;
    max-width: 780px;
    padding: 0 2rem;
}

.hero-eyebrow {
    font-family: 'Jost', sans-serif;
    font-size: 0.7rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.55);
    margin-bottom: 1.5rem;
    font-weight: 400;
}

.hero-home__heading {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(4rem, 9vw, 8rem);
    font-weight: 600;
    line-height: 1;
    color: var(--white);
    margin-bottom: 1.75rem;
}

.hero-home__heading em {
    font-style: italic;
    font-weight: 400;
    display: block;
}

.hero-home__subtitle {
    font-family: 'Jost', sans-serif;
    font-size: 1rem;
    line-height: 1.75;
    color: rgba(255,255,255,0.7);
    max-width: 500px;
    margin: 0 auto 2.5rem;
    font-weight: 300;
}

.btn-outline {
    display: inline-block;
    padding: 0.85rem 2.5rem;
    border: 1px solid rgba(255,255,255,0.55);
    color: var(--white);
    font-family: 'Jost', sans-serif;
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    font-weight: 500;
    transition: background 0.25s ease, border-color 0.25s ease;
}

.btn-outline:hover {
    background: rgba(255,255,255,0.1);
    border-color: var(--white);
    opacity: 1;
}

.btn-solid {
    display: inline-block;
    padding: 0.85rem 2.5rem;
    background: var(--gold);
    color: var(--white);
    font-family: 'Jost', sans-serif;
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    font-weight: 500;
    transition: background 0.25s ease;
}

.btn-solid:hover {
    background: var(--brown);
    opacity: 1;
}

/* ─── SECTION COMMONS ────────────────────────── */

.section-eyebrow {
    font-family: 'Jost', sans-serif;
    font-size: 0.68rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 1rem;
    font-weight: 500;
}

.section-heading {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(2.25rem, 4.5vw, 3.5rem);
    font-weight: 600;
    color: var(--text);
    line-height: 1.1;
    margin-bottom: 1rem;
}

.section-heading em {
    font-style: italic;
    font-weight: 400;
}

/* ─── SERVICES SECTION ───────────────────────── */

.services {
    background: var(--white);
    padding: 7rem 3rem;
    text-align: center;
}

.services__header {
    max-width: 600px;
    margin: 0 auto 4rem;
}

.services__header p {
    font-size: 1rem;
    color: var(--text-muted);
}

.services__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2px;
    max-width: 900px;
    margin: 0 auto;
    background: var(--cream-mid);
}

.service-card {
    background: var(--white);
    padding: 2.75rem 2.5rem;
    text-align: left;
    transition: background 0.25s ease;
}

.service-card:hover {
    background: var(--cream);
}

.service-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--cream);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    transition: background 0.25s ease;
}

.service-card:hover .service-icon {
    background: var(--cream-mid);
}

.service-icon svg {
    width: 20px;
    height: 20px;
    stroke: var(--gold);
    fill: none;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.service-card h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.6rem;
}

.service-card p {
    font-size: 0.9rem;
    line-height: 1.7;
    color: var(--text-muted);
    font-weight: 300;
}

/* ─── PORTFOLIO SECTION ──────────────────────── */

.portfolio {
    background: var(--cream);
    padding: 7rem 3rem;
    text-align: center;
}

.portfolio__header {
    max-width: 600px;
    margin: 0 auto 3.5rem;
}

.portfolio__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: auto auto;
    gap: 6px;
    max-width: 1100px;
    margin: 0 auto 3rem;
}

.portfolio__item {
    overflow: hidden;
    background: var(--cream-mid);
    position: relative;
}

.portfolio__item:nth-child(1) { grid-column: span 1; }
.portfolio__item:nth-child(2) { grid-column: span 1; }
.portfolio__item:nth-child(3) { grid-column: span 2; }
.portfolio__item:nth-child(4) { grid-column: span 2; }
.portfolio__item:nth-child(5) { grid-column: span 1; }
.portfolio__item:nth-child(6) { grid-column: span 1; }

.portfolio__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    aspect-ratio: 1;
    transition: transform 0.5s ease;
}

.portfolio__item:nth-child(1) img {
    object-position: top;
}

.portfolio__item:nth-child(3) img,
.portfolio__item:nth-child(4) img {
    aspect-ratio: auto;
    height: 320px;
}

.portfolio__item:hover img {
    transform: scale(1.04);
}

.portfolio__item__overlay {
    position: absolute;
    inset: 0;
    background: rgba(43, 29, 20, 0);
    transition: background 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.portfolio__item:hover .portfolio__item__overlay {
    background: rgba(43, 29, 20, 0.35);
}

.portfolio__item__overlay span {
    font-family: 'Jost', sans-serif;
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--white);
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.portfolio__item:hover .portfolio__item__overlay span {
    opacity: 1;
    transform: translateY(0);
}

/* ─── ABOUT SECTION ──────────────────────────── */

.about {
    background: var(--white);
    padding: 7rem 3rem;
}

.about__inner {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: center;
}

.about__text .section-heading {
    margin-bottom: 1.5rem;
}

.about__text p {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-muted);
    font-weight: 300;
    margin-bottom: 1rem;
}

.about__text p:last-of-type {
    margin-bottom: 0;
}

.about__stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
}

.stat-item {
    text-align: left;
}

.stat-number {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    font-weight: 600;
    color: var(--text);
    line-height: 1;
    margin-bottom: 0.4rem;
}

.stat-number span {
    font-style: italic;
    color: var(--gold);
}

.stat-label {
    font-family: 'Jost', sans-serif;
    font-size: 0.78rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-muted);
    font-weight: 400;
}

/* ─── CONTACT FOOTER SECTION ─────────────────── */

.contact-footer {
    background: var(--brown-dark);
    padding: 6rem 3rem;
    text-align: center;
}

.contact-footer .section-eyebrow {
    color: var(--gold);
    opacity: 0.8;
}

.contact-footer .section-heading {
    color: var(--white);
    margin-bottom: 3rem;
}

.contact-footer__items {
    display: flex;
    justify-content: center;
    gap: 5rem;
    flex-wrap: wrap;
}

.contact-footer__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.contact-footer__icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid rgba(196, 149, 106, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-footer__icon svg {
    width: 20px;
    height: 20px;
    stroke: var(--gold);
    fill: none;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.contact-footer__icon svg path,
.contact-footer__icon svg circle,
.contact-footer__icon svg polyline,
.contact-footer__icon svg rect,
.contact-footer__icon svg line {
    stroke: var(--gold);
    fill: none;
}

.contact-footer__item p {
    color: rgba(255,255,255,0.65);
    font-size: 0.9rem;
    font-weight: 300;
}

.contact-footer__item a {
    color: rgba(255,255,255,0.65);
    font-size: 0.9rem;
    font-weight: 300;
    transition: color 0.2s ease;
}

.contact-footer__item a:hover {
    color: var(--white);
}

/* ─── FOOTER BAR ─────────────────────────────── */

footer.footer-bar {
    background: var(--brown-dark);
    padding: 0;
    display: flex;
    flex-direction: column;
}

.footer-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 3rem;
    border-top: 1px solid rgba(255,255,255,0.06);
}

footer.footer-bar p {
    font-family: 'Jost', sans-serif;
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.3);
    font-weight: 400;
}

.footer-regions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem 1.2rem;
    justify-content: center;
    align-items: center;
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 0.75rem 3rem;
}

.footer-regions-label {
    font-family: 'Jost', sans-serif;
    font-size: 0.65rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.2);
    font-weight: 400;
    width: 100%;
    text-align: center;
    margin-bottom: 0.2rem;
}

.footer-regions a {
    font-family: 'Jost', sans-serif;
    font-size: 0.68rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.35);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-regions a:hover {
    color: var(--gold);
}

/* ─── PAGE HERO (inner pages) ────────────────── */

.page-hero {
    position: relative;
    height: 52vh;
    min-height: 380px;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
}

.page-hero__bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
}

.page-hero__bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(26, 15, 8, 0.25) 0%,
        rgba(26, 15, 8, 0.72) 100%
    );
}

.page-hero__content {
    position: relative;
    z-index: 1;
    padding: 4rem 3rem;
}

.page-hero__content .section-eyebrow {
    color: rgba(196, 149, 106, 0.85);
    margin-bottom: 0.75rem;
}

.page-hero__content h1,
.page-hero__content h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(2.75rem, 6vw, 5.5rem);
    font-weight: 600;
    color: var(--white);
    line-height: 1.05;
    margin-bottom: 1rem;
}

.page-hero__content p {
    color: rgba(255,255,255,0.7);
    font-size: 1rem;
    max-width: 560px;
    font-weight: 300;
}

/* ─── CONTENT SECTION (inner pages) ─────────── */

.content-block {
    background: var(--white);
    padding: 5rem 3rem;
    border-bottom: 1px solid var(--cream-mid);
}

.content-block:nth-child(even) {
    background: var(--cream);
}

.content-block__inner {
    max-width: 860px;
    margin: 0 auto;
}

.content-block h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 600;
    color: var(--text);
    margin-bottom: 2rem;
    line-height: 1.15;
}

.content-block p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 1.25rem;
    max-width: 660px;
    font-weight: 300;
}

.content-block ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.content-block ul li {
    padding: 0.9rem 0;
    border-bottom: 1px solid var(--cream-mid);
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.7;
    font-weight: 300;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.content-block ul li::before {
    content: '—';
    color: var(--gold);
    flex-shrink: 0;
    margin-top: 0.1em;
    font-weight: 400;
}

.content-block ul li:last-child {
    border-bottom: none;
}

.content-block ul li strong {
    color: var(--text);
    font-weight: 500;
}

/* ─── ABOUT PAGE PROFILE ─────────────────────── */

.profile-section {
    background: var(--white);
    padding: 5rem 3rem;
}

.profile-inner {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 5rem;
    align-items: start;
}

.profile-photo {
    position: relative;
}

.profile-photo img {
    width: 100%;
    display: block;
    filter: sepia(15%) saturate(0.9);
}

.profile-photo::before {
    content: '';
    position: absolute;
    top: -12px;
    left: -12px;
    right: 12px;
    bottom: 12px;
    border: 1px solid var(--cream-mid);
    z-index: -1;
}

.profile-text h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(2rem, 3.5vw, 3rem);
    font-weight: 600;
    color: var(--text);
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.profile-text h2 em {
    font-style: italic;
    font-weight: 400;
}

.profile-text p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 1.25rem;
    font-weight: 300;
}

/* ─── LICENCE CARDS ──────────────────────────── */

.licence-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.licence-card {
    background: var(--cream);
    padding: 1.75rem 2rem;
    border-left: 3px solid var(--gold);
}

.licence-card strong {
    display: block;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.4rem;
    line-height: 1.4;
}

.licence-card span {
    font-size: 0.82rem;
    color: var(--text-muted);
    letter-spacing: 0.05em;
}

/* ─── CONTACT PAGE ───────────────────────────── */

.contact-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-bottom: 1px solid var(--cream-mid);
}

.contact-cell {
    padding: 2.5rem 2rem;
    border-right: 1px solid var(--cream-mid);
}

.contact-cell:last-child {
    border-right: none;
}

.contact-cell__label {
    font-family: 'Jost', sans-serif;
    font-size: 0.68rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 0.75rem;
    font-weight: 500;
}

.contact-cell__value {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.15rem;
    font-weight: 500;
    color: var(--text);
    line-height: 1.5;
}

.contact-cell__value a {
    color: var(--text);
    border-bottom: 1px solid var(--cream-mid);
    padding-bottom: 2px;
    transition: border-color 0.2s ease;
}

.contact-cell__value a:hover {
    border-color: var(--gold);
    opacity: 1;
}

/* ─── REFERENCES PAGE ────────────────────────── */

.reference-cards {
    display: grid;
    gap: 0;
    background: var(--white);
}

.reference-card {
    padding: 3.5rem 3rem;
    border-bottom: 1px solid var(--cream-mid);
    display: grid;
    grid-template-columns: 48px 1fr;
    gap: 2rem;
    align-items: start;
}

.reference-card:last-child {
    border-bottom: none;
}

.reference-card__quote-mark {
    font-family: 'Cormorant Garamond', serif;
    font-size: 5rem;
    line-height: 0.7;
    color: var(--gold);
    opacity: 0.4;
    font-weight: 600;
}

.reference-card blockquote {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
    font-weight: 400;
    color: var(--text);
    font-style: italic;
    line-height: 1.55;
    margin-bottom: 1.25rem;
}

.reference-card .author {
    font-family: 'Jost', sans-serif;
    font-size: 0.72rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-muted);
    font-weight: 500;
}

/* ─── PORTFOLIO / WORKS PAGE ─────────────────── */

.category-filter {
    background: var(--white);
    display: flex;
    flex-wrap: wrap;
    padding: 1.5rem 3rem;
    gap: 0.5rem;
    border-bottom: 1px solid var(--cream-mid);
}

.category-btn {
    padding: 0.5rem 1.5rem;
    background: transparent;
    border: 1px solid var(--cream-dark);
    font-family: 'Jost', sans-serif;
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-weight: 500;
    color: var(--text-muted);
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.category-btn:hover,
.category-btn.active {
    background: var(--brown-dark);
    color: var(--white);
    border-color: var(--brown-dark);
}

.portfolio-categories {
    background: var(--cream);
}

.category-section {
    border-bottom: 1px solid var(--cream-mid);
}

.category-section:last-child {
    border-bottom: none;
}

.category-header {
    padding: 2rem 3rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--white);
    transition: background 0.2s ease;
}

.category-header:hover {
    background: var(--cream);
}

.category-header h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text);
}

.category-header .arrow {
    font-size: 1.25rem;
    color: var(--gold);
    transition: transform 0.3s ease;
}

.category-section.open .category-header .arrow {
    transform: rotate(180deg);
}

.subcategories {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.45s ease;
}

.category-section.open .subcategories {
    max-height: 3000px;
}

.subcategory {
    border-top: 1px solid var(--cream-mid);
}

.subcategory-header {
    padding: 1.25rem 3rem 1.25rem 4rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--cream);
    transition: background 0.2s ease;
}

.subcategory-header:hover {
    background: var(--cream-mid);
}

.subcategory-header h4 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text);
}

.project-list {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.subcategory.open .project-list {
    max-height: 1200px;
}

.project-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.9rem 3rem 0.9rem 5rem;
    border-top: 1px solid var(--cream-mid);
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 300;
    transition: background 0.2s ease, color 0.2s ease;
    background: var(--white);
}

.project-link:hover {
    background: var(--cream);
    color: var(--text);
    opacity: 1;
}

.project-link span {
    font-size: 0.8rem;
    color: var(--gold);
    font-weight: 400;
}

/* ─── PHOTO GALLERY (project pages) ─────────── */

.photo-gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 4px;
    background: var(--cream);
    padding: 3rem;
}

.photo-gallery--sectioned {
    display: block;
    padding: 0;
    padding-bottom: 3rem;
}

.photo-item {
    aspect-ratio: 1;
    overflow: hidden;
    background: var(--cream-mid);
    cursor: pointer;
    position: relative;
}

.photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.photo-item:hover img {
    transform: scale(1.05);
}

.photo-item__overlay {
    position: absolute;
    inset: 0;
    background: rgba(43, 29, 20, 0);
    transition: background 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.photo-item:hover .photo-item__overlay {
    background: rgba(43, 29, 20, 0.3);
}

/* ─── LIGHTBOX ────────────────────────────────── */

.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(26, 15, 8, 0.97);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
    display: block;
}

.lightbox-close {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 50%;
    color: var(--white);
    font-size: 1.25rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
    z-index: 1001;
}

.lightbox-close:hover {
    background: rgba(255,255,255,0.15);
}

.lightbox-nav {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    width: 52px;
    height: 52px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 50%;
    color: var(--white);
    font-size: 1.25rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
    z-index: 1001;
}

.lightbox-nav:hover {
    background: rgba(255,255,255,0.15);
}

.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }

.lightbox-counter {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    font-family: 'Jost', sans-serif;
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    color: rgba(255,255,255,0.4);
    text-transform: uppercase;
}

/* ─── PROJECT INFO ────────────────────────────── */

.project-info {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    background: var(--white);
    border-bottom: 1px solid var(--cream-mid);
}

.project-info-item {
    padding: 2rem 2.5rem;
    border-right: 1px solid var(--cream-mid);
}

.project-info-item:last-child {
    border-right: none;
}

.project-info-item h4 {
    font-family: 'Jost', sans-serif;
    font-size: 0.65rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.project-info-item p {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text);
}

/* ─── CTA SECTION ─────────────────────────────── */

.cta-section {
    background: var(--brown-dark);
    padding: 6rem 3rem;
    text-align: center;
}

.cta-section .section-eyebrow {
    color: var(--gold);
    opacity: 0.8;
}

.cta-section .section-heading {
    color: var(--white);
    margin-bottom: 1.25rem;
}

.cta-section > p {
    color: rgba(255,255,255,0.5);
    max-width: 480px;
    margin: 0 auto 2.5rem;
    font-weight: 300;
}

/* ─── PROJECT NAVIGATION ─────────────────────── */
.projekt-nav {
    max-width: 860px;
    margin: 0 auto;
    padding: 2rem 3rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    border-top: 1px solid var(--cream-mid);
}

.projekt-nav a {
    font-family: 'Jost', sans-serif;
    font-size: 0.88rem;
    color: var(--brown);
    text-decoration: underline;
    text-underline-offset: 3px;
    font-weight: 400;
}

.projekt-nav a:hover { color: var(--brown-dark); }

@media (max-width: 900px) {
    .projekt-nav { padding-left: 1.75rem; padding-right: 1.75rem; }
}

/* ─── SELECTION & SCROLLBAR ───────────────────── */

::selection {
    background: var(--gold);
    color: var(--white);
}

::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--cream); }
::-webkit-scrollbar-thumb { background: var(--stone); }
::-webkit-scrollbar-thumb:hover { background: var(--brown-light); }

/* ─── RESPONSIVE ──────────────────────────────── */

/* Prevent horizontal overflow on all screens */
html, body {
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
}

/* ── Tablet & mobile (≤ 900px) */
@media (max-width: 900px) {

    :root { --nav-height: 68px; }

    header {
        padding: 0 1.5rem;
    }

    /* Remove nav from flex flow so hamburger sits flush right */
    nav {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    /* Mobile dropdown — fixed panel below header */
    nav.mobile-open {
        display: block;
        position: fixed;
        top: var(--nav-height);
        left: 0;
        right: 0;
        z-index: 99;
        background: rgba(247, 242, 235, 0.97);
        backdrop-filter: blur(8px);
        border-bottom: 1px solid var(--cream-mid);
        box-shadow: 0 12px 32px rgba(43,29,20,0.12);
    }

    nav.mobile-open ul {
        display: flex;
        flex-direction: column;
        gap: 0;
        list-style: none;
        padding: 0.5rem 0 1rem;
    }

    nav.mobile-open ul li a {
        color: var(--text-muted);
        display: block;
        padding: 0.95rem 1.75rem;
        border-bottom: 1px solid var(--cream-mid);
        font-size: 0.82rem;
    }

    nav.mobile-open ul li:last-child a {
        border-bottom: none;
    }

    .nav-social-group {
        border-left: none;
        border-top: 1px solid var(--cream-mid);
        padding: 1rem 1.75rem;
        margin-left: 0;
        justify-content: center;
        gap: 1.5rem;
        width: 100%;
    }

    nav:not(.mobile-open) .nav-social-group {
        display: none;
    }

    .nav-social-link {
        color: var(--text-muted);
    }

    .nav-social-link svg {
        width: 22px;
        height: 22px;
    }

    nav.mobile-open ul li a:hover,
    nav.mobile-open ul li a.active {
        color: var(--text);
        background: var(--cream-mid);
        opacity: 1;
    }

    /* Hero home */
    .hero-home {
        min-height: 520px;
    }

    .hero-home__heading {
        font-size: clamp(2.75rem, 13vw, 5rem);
    }

    .hero-home__subtitle {
        font-size: 0.92rem;
    }

    /* Services */
    .services {
        padding: 5rem 1.5rem;
    }

    .services__grid {
        grid-template-columns: 1fr 1fr;
    }

    /* Portfolio homepage */
    .portfolio {
        padding: 5rem 1.5rem;
    }

    .portfolio__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 4px;
    }

    .portfolio__item:nth-child(1),
    .portfolio__item:nth-child(2),
    .portfolio__item:nth-child(3),
    .portfolio__item:nth-child(4),
    .portfolio__item:nth-child(5),
    .portfolio__item:nth-child(6) {
        grid-column: span 1;
    }

    .portfolio__item img {
        aspect-ratio: 1 !important;
        height: auto !important;
    }

    /* About */
    .about {
        padding: 5rem 1.5rem;
    }

    .about__inner {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .about__stats {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }

    /* Contact footer */
    .contact-footer {
        padding: 4rem 1.5rem;
    }

    .contact-footer__items {
        gap: 2.5rem;
        flex-direction: column;
        align-items: center;
    }

    /* Footer bar */
    footer.footer-bar {
        padding: 1.25rem 1.5rem;
        flex-direction: column;
        gap: 0.4rem;
        text-align: center;
    }

    /* Page hero */
    .page-hero {
        height: 42vh;
        min-height: 280px;
    }

    .page-hero__content {
        padding: 2.5rem 1.5rem;
    }

    .page-hero__content h1,
    .page-hero__content h2 {
        font-size: clamp(2.25rem, 8vw, 4rem);
    }

    /* Content blocks */
    .content-block {
        padding: 3rem 1.5rem;
    }

    /* Profile page */
    .profile-section {
        padding: 3rem 1.5rem;
    }

    .profile-inner {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .profile-photo {
        max-width: 260px;
    }

    .licence-cards {
        grid-template-columns: 1fr;
    }

    /* Contact page */
    .contact-grid {
        grid-template-columns: 1fr 1fr;
    }

    .contact-cell {
        padding: 2rem 1.5rem;
    }

    .contact-cell:nth-child(2n) {
        border-right: none;
    }

    .contact-cell:nth-child(n+3) {
        border-top: 1px solid var(--cream-mid);
    }

    /* Restaurovani page */
    .category-filter {
        padding: 1.25rem 1.5rem;
    }

    .category-header {
        padding: 1.5rem 1.5rem;
    }

    .subcategory-header {
        padding: 1.1rem 1.5rem 1.1rem 2.25rem;
    }

    .project-link {
        padding: 0.85rem 1.5rem 0.85rem 2.75rem;
    }

    /* Photo gallery (project pages) */
    .photo-gallery {
        grid-template-columns: repeat(2, 1fr);
        gap: 3px;
        padding: 1.5rem;
    }
    .photo-gallery--sectioned {
        padding: 0;
        padding-bottom: 2rem;
    }

    /* Project info bar */
    .project-info {
        grid-template-columns: 1fr 1fr;
    }

    .project-info-item {
        padding: 1.5rem 1.75rem;
    }

    .project-info-item:nth-child(2n) {
        border-right: none;
    }

    .project-info-item:nth-child(n+3) {
        border-top: 1px solid var(--cream-mid);
    }

    /* Reference cards */
    .reference-card {
        padding: 2.25rem 1.5rem;
        grid-template-columns: 36px 1fr;
        gap: 1rem;
    }

    /* CTA section */
    .cta-section {
        padding: 4rem 1.5rem;
    }
}

/* ── Small tablet (≤ 680px) */
@media (max-width: 680px) {

    .services__grid {
        grid-template-columns: 1fr;
    }

    .portfolio__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .photo-gallery {
        grid-template-columns: repeat(2, 1fr);
        padding: 1rem;
    }
    .photo-gallery--sectioned {
        padding: 0;
        padding-bottom: 1.5rem;
    }
}

/* ── Mobile (≤ 480px) */
@media (max-width: 480px) {

    :root { --nav-height: 62px; }

    header {
        padding: 0 1.25rem;
    }

    .logo h1, .logo .logo-name {
        font-size: 1.05rem;
    }

    .logo span {
        display: none;
    }

    .hero-home {
        min-height: 480px;
    }

    .hero-home__heading {
        font-size: clamp(2.5rem, 15vw, 4rem);
        line-height: 1.02;
    }

    .hero-home__subtitle {
        font-size: 0.88rem;
        max-width: 100%;
    }

    .portfolio__grid {
        grid-template-columns: 1fr;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .contact-cell {
        border-right: none;
        border-bottom: 1px solid var(--cream-mid);
    }

    .about__stats {
        grid-template-columns: 1fr 1fr;
    }

    .stat-number {
        font-size: 2.25rem;
    }

    .section-heading {
        font-size: clamp(1.9rem, 8vw, 3rem);
    }

    .services {
        padding: 4rem 1.25rem;
    }

    .portfolio {
        padding: 4rem 1.25rem;
    }

    .about {
        padding: 4rem 1.25rem;
    }

    .contact-footer {
        padding: 3.5rem 1.25rem;
    }

    .content-block {
        padding: 2.75rem 1.25rem;
    }

    .profile-section {
        padding: 2.75rem 1.25rem;
    }

    .page-hero {
        min-height: 250px;
    }

    .page-hero__content {
        padding: 2rem 1.25rem;
    }

    .photo-gallery {
        grid-template-columns: repeat(2, 1fr);
        gap: 2px;
        padding: 0.75rem;
    }
    .photo-gallery--sectioned {
        padding: 0;
        padding-bottom: 1rem;
    }

    .project-info {
        grid-template-columns: 1fr;
    }

    .project-info-item {
        border-right: none;
        border-bottom: 1px solid var(--cream-mid);
        padding: 1.25rem 1.25rem;
    }

    .cta-section {
        padding: 3.5rem 1.25rem;
    }
}
