/* ==============================================
   READING RENOVATIONS — Main Stylesheet
   Fonts: Sora (100-800) + Instrument Serif
   ============================================== */

/* ---------- RESET ---------- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    scroll-behavior: auto;
}

body {
    font-family: var(--f-sans);
    font-weight: 300;
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text);
    background: var(--white);
    overflow-x: hidden;
}

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

ul, ol {
    list-style: none;
}

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

button {
    font: inherit;
    color: inherit;
    background: none;
    border: none;
    cursor: pointer;
}

/* ---------- PREVENT FOUC (Flash of Unstyled Content) ---------- */
/* Hide animated elements before JS loads */
[data-split-chars],
[data-split-lines],
.hero-label,
.hero-ctas,
.hero-scroll {
    opacity: 0;
}

/* Loaded state - JS will add this class when ready */
body.loaded [data-split-chars],
body.loaded [data-split-lines],
body.loaded .hero-label,
body.loaded .hero-ctas,
body.loaded .hero-scroll {
    opacity: 1;
}

/* ---------- CUSTOM PROPERTIES ---------- */
:root {
    --f-sans: 'Sora', sans-serif;
    --f-serif: 'Instrument Serif', serif;

    --blue: #3A73C1;
    --blue-dark: #2A5A9C;
    --blue-light: #00ADEF;
    --accent: #E8612D;
    --accent-dark: #C44D1F;
    --accent-light: #F0734A;

    --dark: #0F1117;
    --dark-2: #1A1D26;
    --dark-3: #252830;

    --light: #F7F5F0;
    --light-2: #EDEAE3;
    --white: #FEFEFE;

    --text: #1A1D23;
    --text-2: #6B7080;
    --text-light: #F0EDE7;
    --text-muted: #9A9EAC;

    --border: #E0DDD6;
    --border-dark: #2D3040;

    --ease: cubic-bezier(0.77, 0, 0.175, 1);
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

    --nav-h: 80px;
}

/* ---------- LAYOUT ---------- */
.container {
    width: 100%;
    max-width: 1360px;
    margin: 0 auto;
    padding: 0 clamp(1.25rem, 4vw, 3rem);
}

.section {
    padding: clamp(5rem, 10vw, 10rem) 0;
}

/* ---------- TYPOGRAPHY HELPERS ---------- */
.section-label {
    display: inline-block;
    font-family: var(--f-sans);
    font-weight: 500;
    font-size: 0.8125rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    margin-bottom: 1.5rem;
    color: var(--accent);
}

.section-title {
    font-family: var(--f-sans);
    font-weight: 700;
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: var(--text);
}

.section-title em {
    font-family: var(--f-serif);
    font-style: italic;
    font-weight: 400;
}

.section-header {
    margin-bottom: clamp(3rem, 5vw, 5rem);
}

/* ---------- BUTTONS ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--f-sans);
    font-weight: 500;
    font-size: 0.9375rem;
    padding: 0.9rem 2rem;
    border-radius: 100px;
    transition: all 0.35s var(--ease);
    white-space: nowrap;
    cursor: pointer;
}

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

.btn-primary:hover {
    background: var(--blue-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(58, 115, 193, 0.3);
}

.btn-outline {
    border: 1px solid var(--border);
    color: var(--text);
}

.btn-outline:hover {
    background: var(--dark);
    color: #fff;
    border-color: var(--dark);
    transform: translateY(-2px);
}

.btn-outline-light {
    border: 1px solid rgba(255, 255, 255, 0.35);
    color: var(--text-light);
}

.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.6);
}

.btn-large {
    padding: 1.1rem 2.5rem;
    font-size: 1rem;
}

.btn-arrow {
    transition: transform 0.3s var(--ease);
}

.btn:hover .btn-arrow {
    transform: translateX(4px);
}

.link-arrow {
    font-weight: 500;
    font-size: 0.9375rem;
    color: var(--accent);
    transition: color 0.3s ease;
}

.link-arrow:hover {
    color: var(--accent-dark);
}

/* ---------- PRELOADER ---------- */
.preloader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: var(--dark);
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.preloader-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

.preloader-word {
    display: block;
    font-family: var(--f-sans);
    font-weight: 700;
    font-size: clamp(2rem, 5vw, 4rem);
    color: var(--text-light);
    letter-spacing: -0.03em;
    opacity: 0;
    transform: translateY(30px);
}

.preloader-word:first-child {
    font-family: var(--f-serif);
    font-style: italic;
    font-weight: 400;
}

/* ---------- NAVIGATION ---------- */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    height: var(--nav-h);
    display: flex;
    align-items: center;
    transition: background 0.4s ease, box-shadow 0.4s ease, height 0.4s ease;
}

.nav.scrolled {
    background: rgba(254, 254, 254, 0.88);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
    --nav-h: 68px;
}

.nav-inner {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 2rem;
}

.nav-logo-img {
    height: 44px;
    width: auto;
    display: block;
    border-radius: 4px;
    transition: opacity 0.4s ease;
}

.nav-links {
    display: flex;
    justify-content: center;
    gap: 2.5rem;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.nav-link {
    font-weight: 400;
    font-size: 0.9375rem;
    color: var(--text-muted);
    transition: color 0.3s ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent);
    transition: width 0.35s var(--ease);
}

.nav-link:hover {
    color: var(--text);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link--active {
    color: var(--text);
}

.nav-link--active::after {
    width: 100%;
}

.nav.scrolled .nav-link {
    color: var(--text-2);
}

.nav.scrolled .nav-link:hover {
    color: var(--text);
}

/* Navigation Dropdown */
.nav-dropdown {
    position: relative;
}

.nav-link-dropdown {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.nav-dropdown-arrow {
    transition: transform 0.3s ease;
}

.nav-dropdown:hover .nav-dropdown-arrow {
    transform: rotate(180deg);
}

.nav-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 12px;
    min-width: 240px;
    padding: 0.75rem;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition: all 0.3s var(--ease);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    z-index: 100;
}

.nav-dropdown-menu::before {
    content: '';
    position: absolute;
    top: -0.5rem;
    left: 0;
    right: 0;
    height: 0.5rem;
    background: transparent;
}

.nav.scrolled .nav-dropdown-menu {
    background: rgba(254, 254, 254, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.nav-dropdown:hover .nav-dropdown-menu {
    opacity: 1;
    pointer-events: all;
    transform: translateY(0);
}

.nav-dropdown-item {
    display: block;
    padding: 0.65rem 1rem;
    font-size: 0.9375rem;
    font-weight: 400;
    color: var(--text-muted);
    border-radius: 8px;
    transition: color 0.3s ease;
    position: relative;
}

.nav-dropdown-item::after {
    content: '';
    position: absolute;
    bottom: 0.5rem;
    left: 1rem;
    width: 0;
    height: 1px;
    background: var(--accent);
    transition: width 0.35s var(--ease);
}

.nav-dropdown-item:hover {
    color: var(--text);
}

.nav-dropdown-item:hover::after {
    width: calc(100% - 2rem);
}

.btn-nav {
    padding: 0.65rem 1.6rem;
    font-size: 0.875rem;
}

.nav-burger {
    display: none;
    flex-direction: column;
    gap: 6px;
    width: 28px;
    padding: 4px 0;
}

.nav-burger span {
    display: block;
    height: 2px;
    background: var(--accent);
    border-radius: 2px;
    transition: all 0.35s var(--ease);
    transform-origin: center;
}

.nav.scrolled .nav-burger span {
    background: var(--accent);
}

.nav-burger.active span:first-child {
    transform: rotate(45deg) translate(5px, 6px);
}

.nav-burger.active span:nth-child(2) {
    opacity: 0;
    transform: scale(0);
}

.nav-burger.active span:last-child {
    transform: rotate(-45deg) translate(5px, -6px);
}

/* ---------- MOBILE MENU ---------- */
.mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 99;
    background: var(--light);
    display: flex;
    flex-direction: column;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
    overflow: hidden;
    padding-top: 80px;
}

.mobile-menu.active {
    opacity: 1;
    pointer-events: all;
}

.mobile-menu-nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    padding: 2rem 1.5rem 3rem;
    overflow-y: auto;
    flex: 1;
    width: 100%;
    box-sizing: border-box;
}

.mobile-menu-link {
    font-family: var(--f-sans);
    font-weight: 600;
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    color: var(--text);
    letter-spacing: -0.02em;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s var(--ease-out), color 0.3s ease;
}

.mobile-menu.active .mobile-menu-link {
    opacity: 1;
    transform: translateY(0);
}

.mobile-menu-link:hover {
    color: var(--accent);
}

.mobile-menu-link.btn {
    color: #fff;
    font-size: clamp(1.125rem, 3vw, 1.5rem);
    padding: 0.85rem 2rem;
}

.mobile-menu-link.btn:hover {
    color: #fff;
}

/* stagger delay */
.mobile-menu.active .mobile-services { transition-delay: 0.1s; }
.mobile-menu.active .mobile-menu-link:nth-child(2) { transition-delay: 0.15s; }
.mobile-menu.active .mobile-menu-link:nth-child(3) { transition-delay: 0.2s; }
.mobile-menu.active .mobile-menu-link:nth-child(4) { transition-delay: 0.25s; }
.mobile-menu.active .mobile-menu-link:nth-child(5) { transition-delay: 0.3s; }

/* Mobile Services */
.mobile-services {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s var(--ease-out);
}

.mobile-menu.active .mobile-services {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.1s;
}

.mobile-menu-label {
    font-family: var(--f-sans);
    font-weight: 600;
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    color: var(--text);
    letter-spacing: -0.02em;
    margin-bottom: 0.5rem;
}

.mobile-service-link {
    font-family: var(--f-sans);
    font-weight: 500;
    font-size: clamp(1rem, 3vw, 1.25rem);
    color: var(--text-2);
    letter-spacing: -0.01em;
    transition: color 0.3s ease;
}

.mobile-service-link:hover {
    color: var(--accent);
}

/* Mobile Social */
.mobile-social {
    display: flex;
    gap: 1.5rem;
    margin-top: 2rem;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s var(--ease-out);
}

.mobile-menu.active .mobile-social {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.35s;
}

.mobile-social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(26, 29, 35, 0.1);
    color: var(--text);
    transition: all 0.3s ease;
}

.mobile-social-link:hover {
    background: var(--blue);
    color: #fff;
    transform: scale(1.1);
}

/* ---------- HERO ---------- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: var(--light);
    overflow: hidden;
    padding-top: var(--nav-h);
}

@media (min-width: 769px) {
    .hero {
        min-height: 100dvh;
    }
}

.hero-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.hero-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
}

.hero-blob--1 {
    width: 50vw;
    height: 50vw;
    top: -10%;
    right: -10%;
    background: radial-gradient(circle, rgba(58, 115, 193, 0.08) 0%, transparent 70%);
}

.hero-blob--2 {
    width: 35vw;
    height: 35vw;
    bottom: 5%;
    left: 5%;
    background: radial-gradient(circle, rgba(232, 97, 45, 0.06) 0%, transparent 70%);
}

.hero-content {
    position: relative;
    z-index: 2;
    padding-top: clamp(3rem, 6vw, 6rem);
    padding-bottom: clamp(4rem, 8vw, 8rem);
}

.hero-label {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: clamp(2rem, 3vw, 3rem);
    font-weight: 400;
    font-size: 0.875rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.hero-label-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
}

.hero-title {
    margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
}

.hero-title-line {
    display: block;
    overflow: hidden;
}

.hero-title-serif {
    display: block;
    font-family: var(--f-serif);
    font-style: italic;
    font-weight: 400;
    font-size: clamp(5rem, 13vw, 16rem);
    line-height: 0.95;
    letter-spacing: -0.02em;
    color: var(--text);
}

.hero-title-sans {
    display: block;
    font-family: var(--f-sans);
    font-weight: 800;
    font-size: clamp(3.5rem, 9vw, 11rem);
    line-height: 0.95;
    letter-spacing: -0.05em;
    text-transform: uppercase;
    color: var(--text);
}

.hero-subtitle {
    max-width: 540px;
    font-weight: 300;
    font-size: clamp(1rem, 1.2vw, 1.125rem);
    line-height: 1.7;
    color: var(--text-muted);
    margin-bottom: clamp(2rem, 3vw, 3rem);
}

.hero-ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.hero-scroll {
    position: absolute;
    bottom: 2.5rem;
    right: clamp(1.25rem, 4vw, 3rem);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    z-index: 2;
}

.hero-scroll span {
    font-size: 0.6875rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--text-muted);
    writing-mode: vertical-rl;
}

.hero-scroll-line {
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, var(--text-muted), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 1; transform: scaleY(1); }
    50% { opacity: 0.4; transform: scaleY(0.6); }
}

/* ---------- MARQUEE ---------- */
.marquee {
    background: var(--accent);
    padding: 1.25rem 0;
    overflow: hidden;
    position: relative;
    z-index: 1;
    will-change: auto;
    transform: translateZ(0);
}

.marquee-track {
    display: flex;
    width: max-content;
    animation: marqueeScroll 25s linear infinite;
}

.marquee-content {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding-right: 2rem;
    flex-shrink: 0;
}

.marquee-content span {
    font-family: var(--f-sans);
    font-weight: 600;
    font-size: clamp(0.875rem, 1.2vw, 1.125rem);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #fff;
    white-space: nowrap;
}

.marquee-dot {
    font-size: 0.5rem !important;
    opacity: 0.6;
}

@keyframes marqueeScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ---------- ABOUT ---------- */
.about {
    background: var(--light);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(3rem, 6vw, 8rem);
    align-items: start;
}

.about-title {
    font-family: var(--f-sans);
    font-weight: 700;
    font-size: clamp(2.25rem, 4vw, 3.5rem);
    line-height: 1.15;
    letter-spacing: -0.03em;
    color: var(--text);
}

.about-title em {
    font-family: var(--f-serif);
    font-style: italic;
    font-weight: 400;
}

.about-text {
    font-size: clamp(1rem, 1.1vw, 1.0625rem);
    color: var(--text-2);
    margin-bottom: 1.5rem;
}

/* ---------- STATS ---------- */
.stats {
    background: var(--blue);
    padding: clamp(4rem, 7vw, 7rem) 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    text-align: center;
}

.stat-top {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.15em;
    margin-bottom: 0.5rem;
}

.stat-number {
    font-family: var(--f-sans);
    font-weight: 200;
    font-size: clamp(3rem, 5.5vw, 5rem);
    line-height: 1;
    color: #fff;
    letter-spacing: -0.04em;
}

.stat-suffix {
    font-family: var(--f-sans);
    font-weight: 300;
    font-size: clamp(1.5rem, 2.5vw, 2.5rem);
    color: rgba(255, 255, 255, 0.7);
}

.stat-label {
    font-weight: 400;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* ---------- SERVICES ---------- */
.services {
    background: var(--white);
}

.services-list {
    border-top: 1px solid var(--border);
}

.service-item {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: clamp(1.5rem, 3vw, 3rem);
    align-items: center;
    padding: clamp(1.75rem, 3vw, 2.5rem) clamp(1.25rem, 2vw, 2rem);
    border-bottom: 1px solid var(--border);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.service-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--dark);
    transform: translateX(-101%);
    transition: transform 0.55s var(--ease);
    z-index: 0;
}

.service-item:hover::before {
    transform: translateX(0);
}

.service-item > * {
    position: relative;
    z-index: 1;
}

.service-num {
    font-family: var(--f-sans);
    font-weight: 200;
    font-size: clamp(2rem, 3.5vw, 3.5rem);
    color: var(--text-muted);
    letter-spacing: -0.04em;
    transition: color 0.4s ease;
    min-width: 3.5rem;
}

.service-item:hover .service-num {
    color: var(--accent);
}

.service-name {
    font-family: var(--f-sans);
    font-weight: 600;
    font-size: clamp(1.25rem, 2vw, 1.75rem);
    letter-spacing: -0.02em;
    margin-bottom: 0.5rem;
    transition: color 0.4s ease;
}

.service-item:hover .service-name {
    color: #fff;
}

.service-desc {
    font-weight: 300;
    font-size: clamp(0.875rem, 1vw, 0.9375rem);
    line-height: 1.65;
    color: var(--text-2);
    max-width: 550px;
    transition: color 0.4s ease;
}

.service-item:hover .service-desc {
    color: var(--text-muted);
}

.service-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid var(--border);
    color: var(--text-2);
    transition: all 0.4s var(--ease);
}

.service-item:hover .service-arrow {
    border-color: var(--accent);
    color: var(--accent);
    transform: rotate(45deg);
}

/* ---------- PROCESS ---------- */
.process {
    background: var(--dark);
}

.process .section-label {
    color: var(--accent-light);
}

.process .section-title {
    color: var(--text-light);
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: clamp(2rem, 3vw, 3rem);
    perspective: 2000px;
}

.process-step {
    padding-top: 2rem;
    border-top: 1px solid var(--border-dark);
    transform-style: preserve-3d;
    backface-visibility: hidden;
    transition: box-shadow 0.4s ease;
    border-radius: 8px;
    padding: 2rem 1.5rem;
    margin: -0.5rem;
    background: transparent;
}

.process-step:hover {
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.process-num {
    display: block;
    font-family: var(--f-sans);
    font-weight: 100;
    font-size: clamp(3rem, 4.5vw, 4.5rem);
    line-height: 1;
    color: var(--accent);
    letter-spacing: -0.04em;
    margin-bottom: 1.5rem;
}

.process-name {
    font-family: var(--f-sans);
    font-weight: 600;
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: 0.75rem;
}

.process-desc {
    font-weight: 300;
    font-size: 0.9375rem;
    line-height: 1.65;
    color: var(--text-muted);
}

/* ---------- GALLERY ---------- */
.gallery {
    background: var(--light);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

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

.gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--ease);
}

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

.gallery-overlay {
    display: none;
}

.gallery-icon {
    display: none;
}

/* ---------- LIGHTBOX ---------- */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.lightbox.active {
    opacity: 1;
    pointer-events: all;
}

.lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.lightbox-img {
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 8px;
    opacity: 0;
    transform: scale(0.9);
    transition: all 0.4s var(--ease);
}

.lightbox.active .lightbox-img {
    opacity: 1;
    transform: scale(1);
}

.lightbox-counter {
    font-family: var(--f-sans);
    font-weight: 500;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: 0.05em;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    transform: scale(1.1);
}

.lightbox-close {
    top: 2rem;
    right: 2rem;
}

.lightbox-prev {
    left: 2rem;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-prev:hover {
    transform: translateY(-50%) scale(1.1);
}

.lightbox-next {
    right: 2rem;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-next:hover {
    transform: translateY(-50%) scale(1.1);
}

/* ---------- TESTIMONIALS ---------- */
.testimonials {
    background: var(--white);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.testimonial-card {
    padding: clamp(2rem, 3vw, 2.5rem);
    border: 1px solid var(--border);
    border-radius: 16px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-card:hover {
    border-color: transparent;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.08);
}

.testimonial-stars {
    font-size: 1rem;
    color: var(--accent);
    margin-bottom: 1.25rem;
    letter-spacing: 0.1em;
}

.testimonial-text {
    font-family: var(--f-serif);
    font-style: italic;
    font-size: clamp(1rem, 1.2vw, 1.125rem);
    line-height: 1.65;
    color: var(--text);
    margin-bottom: 1.5rem;
}

.testimonial-author {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.testimonial-name {
    font-weight: 600;
    font-size: 0.9375rem;
}

.testimonial-role {
    font-size: 0.8125rem;
    color: var(--text-2);
}

.testimonials-cta {
    margin-top: clamp(2.5rem, 4vw, 4rem);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.checkatrade-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.checkatrade-logo {
    height: 50px;
    width: auto;
    display: block;
}

.checkatrade-text {
    font-size: 0.8125rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-muted);
}

/* ---------- CTA / CONTACT ---------- */
.cta {
    background: var(--dark);
}

.cta-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(3rem, 6vw, 6rem);
    align-items: start;
}

.cta-info {
    padding-top: 1rem;
}

.cta .section-label {
    color: var(--accent-light);
}

.cta-title {
    font-family: var(--f-sans);
    font-weight: 700;
    font-size: clamp(2.25rem, 4.5vw, 3.75rem);
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.cta-title em {
    font-family: var(--f-serif);
    font-style: italic;
    font-weight: 400;
}

.cta-text {
    font-size: clamp(1rem, 1.2vw, 1.125rem);
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    line-height: 1.7;
}

.cta-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.cta-detail {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.cta-detail-label {
    font-weight: 500;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--text-muted);
}

.cta-detail-value {
    font-weight: 400;
    font-size: 1.0625rem;
    color: var(--text-light);
    transition: color 0.3s ease;
}

a.cta-detail-value:hover {
    color: var(--accent-light);
}

/* Form */
.cta-form-wrap {
    background: var(--dark-2);
    border: 1px solid var(--border-dark);
    border-radius: 16px;
    padding: clamp(2rem, 3vw, 2.5rem);
}

.cta-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-label {
    font-weight: 500;
    font-size: 0.8125rem;
    color: var(--text-muted);
    letter-spacing: 0.02em;
}

.form-input {
    font-family: var(--f-sans);
    font-weight: 300;
    font-size: 0.9375rem;
    color: var(--text-light);
    background: var(--dark-3);
    border: 1px solid var(--border-dark);
    border-radius: 10px;
    padding: 0.85rem 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    outline: none;
}

.form-input::placeholder {
    color: var(--text-muted);
    opacity: 0.5;
}

.form-input:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(58, 115, 193, 0.15);
}

.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%239A9EAC' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
    cursor: pointer;
}

.form-textarea {
    resize: vertical;
    min-height: 100px;
}

.form-submit {
    align-self: flex-start;
    margin-top: 0.5rem;
}

/* ---------- FOOTER ---------- */
.footer {
    background: #0A0C10;
    padding-top: clamp(4rem, 7vw, 6rem);
}

.footer-top {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: clamp(2rem, 4vw, 4rem);
    padding-bottom: clamp(3rem, 5vw, 5rem);
    border-bottom: 1px solid var(--border-dark);
}

.footer-logo {
    font-family: var(--f-serif);
    font-style: italic;
    font-size: 1.75rem;
    line-height: 1.15;
    color: var(--text-light);
    display: inline-block;
    margin-bottom: 1rem;
}

.footer-logo-img {
    height: 44px;
    width: auto;
    display: block;
}

.footer-tagline {
    font-size: 0.9375rem;
    color: var(--text-muted);
    max-width: 300px;
    line-height: 1.6;
}

.footer-heading {
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-light);
    margin-bottom: 1.25rem;
}

.footer-links li {
    margin-bottom: 0.65rem;
}

.footer-links a,
.footer-links li {
    font-size: 0.9375rem;
    color: var(--text-muted);
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--text-light);
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 2rem 0;
    font-size: 0.8125rem;
    color: var(--text-muted);
}

.footer-legal {
    display: flex;
    gap: 2rem;
}

.footer-legal a {
    color: var(--text-muted);
    transition: color 0.3s ease;
}

.footer-legal a:hover {
    color: var(--text-light);
}

.footer-social {
    display: flex;
    gap: 1rem;
    margin-top: 1.25rem;
}

.footer-social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    transition: all 0.3s ease;
}

.footer-social-link:hover {
    background: var(--blue);
    color: #fff;
    transform: translateY(-2px);
}

/* ---------- KITCHEN SUBPAGE STYLES ---------- */

/* Installation Journey Timeline - Based on codyhouse example */
:root {
    --timeline-counter-size: 80px;
    --timeline-counter-font-size: 2rem;
    --timeline-line-width: 3px;
    --timeline-line-radius: 2rem;
    --timeline-gap-x: 3rem; /* Increased for longer horizontal line */
    --timeline-gap-y: 4rem;
}

.journey-timeline {
    position: relative;
    max-width: 1100px;
    margin: 0 auto;
    padding: 2rem 0;
    counter-reset: timeline-counter;
    list-style: none;
}

.timeline-item {
    position: relative;
    counter-increment: timeline-counter;
}

.timeline-item:not(:last-child) {
    padding-bottom: calc(var(--timeline-gap-y) / 2);
    margin-bottom: calc(var(--timeline-gap-y) / 2);
}

/* Connecting lines using pseudo-elements */
.timeline-item {
    --line-opacity: 0.3; /* Default light opacity */
}

.timeline-item::before,
.timeline-item::after {
    content: '';
    position: absolute;
    width: calc(50% - var(--timeline-counter-size) / 2 + var(--timeline-line-width) / 2);
}

.timeline-item::before {
    top: calc(var(--timeline-counter-size) + var(--timeline-line-width));
    height: calc(100% - var(--timeline-counter-size) - var(--timeline-line-width));
    border-bottom: var(--timeline-line-width) solid rgba(232, 97, 45, var(--line-opacity));
}

.timeline-item::after {
    top: calc(100% - var(--timeline-line-width));
    height: calc(var(--timeline-gap-y) / 2);
    border-top: var(--timeline-line-width) solid rgba(232, 97, 45, var(--line-opacity));
}

/* Odd items (1, 3, 5) - number on left */
.timeline-item:nth-child(odd) {
    padding-right: calc(var(--timeline-counter-size) / 2);
}

.timeline-item:nth-child(odd)::before {
    left: calc(var(--timeline-counter-size) / 2 - var(--timeline-line-width) / 2);
    border-left: var(--timeline-line-width) solid rgba(232, 97, 45, var(--line-opacity));
    border-bottom-left-radius: var(--timeline-line-radius);
}

.timeline-item:nth-child(odd)::after {
    left: 50%;
    border-top-right-radius: var(--timeline-line-radius);
    border-right: var(--timeline-line-width) solid rgba(232, 97, 45, var(--line-opacity));
}

/* Even items (2, 4) - number on right */
.timeline-item:nth-child(even) {
    padding-left: calc(var(--timeline-counter-size) / 2);
}

.timeline-item:nth-child(even) .timeline-item-inner {
    flex-direction: row-reverse;
}

.timeline-item:nth-child(even)::before {
    right: calc(var(--timeline-counter-size) / 2 - var(--timeline-line-width) / 2);
    border-right: var(--timeline-line-width) solid rgba(232, 97, 45, var(--line-opacity));
    border-bottom-right-radius: var(--timeline-line-radius);
}

.timeline-item:nth-child(even)::after {
    right: 50%;
    border-top-left-radius: var(--timeline-line-radius);
    border-left: var(--timeline-line-width) solid rgba(232, 97, 45, var(--line-opacity));
}

/* Last item - no lines after */
.timeline-item:last-child::before,
.timeline-item:last-child::after {
    display: none;
}

.timeline-item-inner {
    display: flex;
    gap: var(--timeline-gap-x);
    align-items: start;
}

.timeline-number {
    width: var(--timeline-counter-size);
    height: var(--timeline-counter-size);
    border-radius: 50%;
    flex-shrink: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--dark);
    border: var(--timeline-line-width) solid rgba(232, 97, 45, var(--line-opacity));
    color: var(--accent);
    font-family: var(--f-sans);
    font-weight: 200;
    font-size: var(--timeline-counter-font-size);
    position: relative;
    z-index: 2;
}

.timeline-number::before {
    content: counter(timeline-counter);
}

.timeline-content {
    flex: 1;
    max-width: 380px; /* Narrower content blocks */
    background: var(--dark-2);
    border: 1px solid var(--border-dark);
    border-radius: 12px;
    padding: 2rem;
}

.timeline-step-name {
    font-family: var(--f-sans);
    font-weight: 600;
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: 0.75rem;
}

.timeline-step-desc {
    font-weight: 300;
    font-size: 0.9375rem;
    line-height: 1.65;
    color: var(--text-muted);
}

/* Services Timeline Style */
.services-timeline {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    padding-bottom: 0;
}

.services-timeline::before {
    content: '';
    position: absolute;
    left: 2rem;
    top: 0;
    bottom: 3rem; /* Stop line before last item ends */
    width: 2px;
    background: var(--border);
}

.service-timeline-item {
    display: flex;
    gap: 2rem;
    margin-bottom: 3rem;
    position: relative;
}

.service-timeline-item:last-child {
    margin-bottom: 0;
}

.service-timeline-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--blue);
    color: #fff;
    font-family: var(--f-sans);
    font-weight: 600;
    font-size: 1.5rem;
    flex-shrink: 0;
    z-index: 2;
    position: relative;
}

.service-timeline-content {
    flex: 1;
    padding-top: 0.5rem;
}

.service-timeline-title {
    font-family: var(--f-sans);
    font-weight: 600;
    font-size: 1.25rem;
    color: var(--text);
    margin-bottom: 0.75rem;
}

.service-timeline-desc {
    font-size: 0.9375rem;
    line-height: 1.7;
    color: var(--text-2);
}

/* ---------- GSAP BASE STATES ---------- */
[data-reveal] {
    opacity: 0;
}


[data-split-chars] .word {
    overflow: hidden;
    display: inline-flex;
    vertical-align: top;
}

[data-split-lines] .line {
    overflow: hidden;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
    .process-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 3rem;
    }

    .nav-inner {
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .nav-links {
        display: none;
    }

    .nav-actions {
        display: none;
    }

    .nav-burger {
        display: flex;
    }

    .nav-logo-img {
        height: 36px;
    }

    .btn-nav {
        padding: 0.55rem 1.3rem;
        font-size: 0.8125rem;
    }
}

@media (max-width: 768px) {
    /* ========== PERFORMANCE OPTIMIZATIONS FOR MOBILE ========== */

    /* CRITICAL: Disable blur filter (very heavy on mobile GPU) */
    .hero-blob {
        filter: none !important;
        opacity: 0.3 !important;
    }

    /* Fix navbar height on mobile (prevent layout shifts) */
    .nav {
        height: 64px !important;
        transition: background 0.3s ease, box-shadow 0.3s ease;
    }

    .nav.scrolled {
        --nav-h: 64px;
    }

    :root {
        --nav-h: 64px;
    }

    /* Prevent horizontal scroll */
    html, body {
        overflow-x: hidden;
    }

    /* Timeline mobile */
    :root {
        --timeline-counter-size: 60px;
        --timeline-counter-font-size: 1.5rem;
        --timeline-gap-x: 1rem;
        --timeline-gap-y: 2.5rem;
    }

    .timeline-item {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .timeline-item::before,
    .timeline-item::after {
        display: none !important;
    }

    .timeline-item:nth-child(even) .timeline-item-inner {
        flex-direction: row !important;
    }

    /* Feature cards mobile */
    .feature-cards {
        grid-template-columns: 1fr;
    }

    .hero {
        min-height: auto;
        padding-bottom: 2rem;
    }

    .hero-content {
        padding-top: 2rem;
        padding-bottom: 2rem;
    }

    .hero-title-serif {
        font-size: clamp(3.5rem, 16vw, 8rem);
    }

    .hero-title-sans {
        font-size: clamp(2.5rem, 11vw, 5rem);
    }

    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 1rem;
    }

    .stat-number {
        font-size: clamp(1.75rem, 6vw, 2.5rem);
    }

    .stat-suffix {
        font-size: clamp(1rem, 3vw, 1.25rem);
    }

    .stat-label {
        font-size: 0.625rem;
        letter-spacing: 0.08em;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .lightbox-close {
        top: 1rem;
        right: 1rem;
        width: 40px;
        height: 40px;
    }

    .lightbox-content {
        max-width: 95vw;
        max-height: 80vh;
    }

    .lightbox-img {
        max-height: 70vh;
    }

    .lightbox-prev,
    .lightbox-next {
        bottom: 1rem;
        top: auto;
        transform: none;
        width: 40px;
        height: 40px;
    }

    .lightbox-prev {
        left: 50%;
        margin-left: -50px;
    }

    .lightbox-next {
        right: 50%;
        margin-right: -50px;
    }

    .lightbox-prev:hover,
    .lightbox-next:hover {
        transform: scale(1.1);
    }

    .lightbox-counter {
        position: absolute;
        bottom: 5rem;
        left: 50%;
        transform: translateX(-50%);
    }

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

    .checkatrade-logo {
        height: 40px;
    }

    .footer-top {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .footer-brand {
        grid-column: 1;
    }

    .footer-col {
        grid-column: 1;
    }

    .footer-bottom {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0;
        text-align: center;
        padding: 1.5rem 0;
    }

    .footer-bottom p {
        font-size: 0.75rem;
        order: 2;
        margin-top: 1.5rem;
    }

    .footer-legal {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
        order: 1;
        width: 100%;
    }

    .footer-legal a {
        font-size: 0.8125rem;
    }

    .hero-scroll {
        display: none;
    }

    .process-grid {
        grid-template-columns: 1fr;
        perspective: 1200px;
    }

    .process-step {
        padding: 1.5rem 1rem;
    }

    .service-item {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .service-num {
        font-size: 1.5rem;
    }

    .service-arrow {
        display: none;
    }

    .cta-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 1rem;
    }

    .stat-number {
        font-size: clamp(2rem, 8vw, 3rem);
    }

    .stat-suffix {
        font-size: clamp(1rem, 4vw, 1.5rem);
    }

    .stat-label {
        font-size: 0.625rem;
    }

    .footer-top {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-brand {
        grid-column: 1;
        max-width: 100%;
    }

    .footer-col {
        grid-column: 1;
    }

    .footer-tagline {
        max-width: 100%;
        font-size: 0.875rem;
    }

    .footer-logo {
        font-size: 1.5rem;
    }

    .footer-bottom {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0;
        text-align: center;
        padding: 1.5rem 0;
    }

    .footer-bottom p {
        font-size: 0.75rem;
        order: 2;
        margin-top: 1.5rem;
    }

    .footer-legal {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
        order: 1;
        width: 100%;
    }

    .footer-legal a {
        font-size: 0.8125rem;
    }

    .hero-ctas {
        flex-direction: column;
    }

    .hero-ctas .btn {
        text-align: center;
        justify-content: center;
    }

    .form-submit {
        align-self: stretch;
        justify-content: center;
    }
}


/* ==============================================
   BLOG — Single Post
   ============================================== */

/* ── Post Hero (header) ── */
.post-hero {
    padding-top: calc(var(--nav-h) + clamp(3rem, 6vw, 5rem));
    padding-bottom: clamp(2.5rem, 5vw, 4rem);
    background: var(--light);
    border-bottom: 1px solid var(--border);
}

.post-title {
    font-family: var(--f-sans);
    font-weight: 700;
    font-size: clamp(2rem, 5vw, 3.75rem);
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: var(--text);
    margin-top: 0.75rem;
    margin-bottom: 1.25rem;
    max-width: 900px;
}

.post-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    font-size: 0.875rem;
    color: var(--text-2);
    font-weight: 400;
}

.post-meta-sep {
    opacity: 0.4;
}

/* ── Post Body: image + content ── */
.post-body {
    padding-top: clamp(3rem, 6vw, 6rem);
    padding-bottom: clamp(3rem, 6vw, 6rem);
}

.post-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(2.5rem, 5vw, 6rem);
    align-items: start;
}

.post-layout--no-image {
    grid-template-columns: 1fr;
    max-width: 820px;
    margin: 0 auto;
}

.post-image {
    position: sticky;
    top: calc(var(--nav-h) + 2rem);
}

.post-featured-img {
    width: 100%;
    height: auto;
    border-radius: 16px;
    object-fit: cover;
    display: block;
}

/* ── Post Content (WordPress editor output) ── */
.post-content {
    font-size: 1.0625rem;
    line-height: 1.8;
    color: var(--text);
}

.post-content h2 {
    font-family: var(--f-sans);
    font-weight: 700;
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    line-height: 1.2;
    letter-spacing: -0.025em;
    color: var(--text);
    margin-top: 2.5rem;
    margin-bottom: 0.875rem;
}

.post-content h3 {
    font-family: var(--f-sans);
    font-weight: 600;
    font-size: 1.25rem;
    line-height: 1.3;
    color: var(--text);
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

.post-content h4 {
    font-family: var(--f-sans);
    font-weight: 600;
    font-size: 1.0625rem;
    color: var(--text);
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

.post-content p {
    margin-bottom: 1.25rem;
    color: var(--text);
}

.post-content p:last-child {
    margin-bottom: 0;
}

.post-content strong {
    font-weight: 600;
    color: var(--text);
}

.post-content em {
    font-style: italic;
}

.post-content a {
    color: var(--blue);
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.25s ease;
}

.post-content a:hover {
    color: var(--blue-dark);
}

.post-content ul,
.post-content ol {
    padding-left: 1.5rem;
    margin-bottom: 1.25rem;
}

.post-content ul {
    list-style: disc;
}

.post-content ol {
    list-style: decimal;
}

.post-content li {
    margin-bottom: 0.5rem;
    line-height: 1.7;
}

.post-content img {
    border-radius: 10px;
    margin: 1.5rem 0;
    max-width: 100%;
    height: auto;
    display: block;
}

.post-content blockquote {
    border-left: 3px solid var(--accent);
    padding: 1rem 1.5rem;
    margin: 2rem 0;
    background: var(--light);
    border-radius: 0 8px 8px 0;
    font-style: italic;
    color: var(--text-2);
}

.post-content hr {
    border: none;
    border-top: 1px solid var(--border);
    margin: 2.5rem 0;
}

/* ── Related Posts ── */
.related-posts {
    background: var(--light);
}

.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.related-post-card {
    display: flex;
    flex-direction: column;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
    color: var(--text);
}

.related-post-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.09);
}

.related-post-img {
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--light-2);
}

.related-post-img--placeholder {
    background: var(--light-2);
}

.related-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.55s var(--ease);
}

.related-post-card:hover .related-img {
    transform: scale(1.05);
}

.related-post-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 0.5rem;
}

.related-post-cat {
    display: inline-block;
    font-family: var(--f-sans);
    font-weight: 500;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--accent);
}

.related-post-title {
    font-family: var(--f-sans);
    font-weight: 700;
    font-size: 1.0625rem;
    line-height: 1.35;
    letter-spacing: -0.01em;
    color: var(--text);
    margin-top: 0.25rem;
}

.related-post-excerpt {
    font-size: 0.9rem;
    color: var(--text-2);
    line-height: 1.6;
    flex: 1;
}

.related-post-body .link-arrow {
    margin-top: 0.75rem;
    font-size: 0.9rem;
}

/* ── Responsive ── */
@media (max-width: 960px) {
    .post-layout {
        grid-template-columns: 1fr;
    }

    .post-image {
        position: static;
        top: auto;
    }

    .related-posts-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 600px) {
    .related-posts-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
}

/* ==============================================
   BLOG — Archive / Posts Page (home.php)
   ============================================== */

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.blog-card {
    display: flex;
    flex-direction: column;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    color: var(--text);
    transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.blog-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.09);
}

.blog-card-img {
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--light-2);
}

.blog-card-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.55s var(--ease);
}

.blog-card:hover .blog-card-thumbnail {
    transform: scale(1.05);
}

.blog-card-no-img {
    width: 100%;
    height: 100%;
    background: var(--light-2);
}

.blog-card-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.blog-card-title {
    font-family: var(--f-sans);
    font-weight: 700;
    font-size: 1.125rem;
    line-height: 1.3;
    letter-spacing: -0.015em;
    color: var(--text);
    flex: 1;
}

.blog-empty {
    text-align: center;
    padding: 4rem 0;
    color: var(--text-2);
    font-size: 1.125rem;
}

.blog-pagination {
    margin-top: clamp(3rem, 5vw, 4rem);
    display: flex;
    justify-content: center;
}

.blog-pagination .nav-links {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.blog-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 100px;
    border: 1px solid var(--border);
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--text-2);
    transition: all 0.25s ease;
}

.blog-pagination .page-numbers:hover {
    background: var(--dark);
    color: #fff;
    border-color: var(--dark);
}

.blog-pagination .page-numbers.current {
    background: var(--blue);
    color: #fff;
    border-color: var(--blue);
}

.blog-pagination .page-numbers.prev,
.blog-pagination .page-numbers.next {
    width: auto;
    padding: 0 1.25rem;
}

@media (max-width: 960px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .blog-grid {
        grid-template-columns: 1fr;
    }
}
