/* ═══════════════════════════════════════════════════════════════
   YABUNE THEME — Main Stylesheet
   Design: Light minimal — halvány piros / piros / zöld palette
   ═══════════════════════════════════════════════════════════════ */

/* ── CSS Variables ─────────────────────────────────────────── */
:root {
    --primary:        #ac4142;   /* piros */
    --primary-light:  #c45556;
    --secondary:      #477f88;   /* zöld */
    /* Brand gradient: piros → zöld */
    --gradient:       linear-gradient(135deg, #ac4142 0%, #477f88 100%);
    --gradient-hover: linear-gradient(135deg, #8f3536 0%, #365f66 100%);

    --bg-base:        #ffffff;
    --bg-surface:     #f8f4f3;   /* hint of halvány piros */
    --bg-card:        #ffffff;
    --bg-card-hover:  #fdf9f8;
    --bg-light:       #f0e6e4;   /* halvány piros tint */

    --text-primary:   #1a1a1a;
    --text-secondary: #555555;
    --text-muted:     #999999;
    --text-on-light:  #1a1a1a;

    --border:         rgba(0,0,0,0.09);
    --border-focus:   rgba(172,65,66,.45);
    --glass:          rgba(0,0,0,0.04);
    --glass-hover:    rgba(0,0,0,0.07);

    --radius-sm:  8px;
    --radius-md:  14px;
    --radius-lg:  20px;
    --radius-xl:  28px;

    --shadow-sm:  0 2px 8px rgba(0,0,0,.07);
    --shadow-md:  0 8px 32px rgba(0,0,0,.1);
    --shadow-lg:  0 20px 60px rgba(0,0,0,.14);
    --shadow-glow:0 0 40px rgba(172,65,66,.15);

    --transition: .25s cubic-bezier(.4,0,.2,1);
    --nav-height: 65px;

    --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
    --font-display: 'Cormorant Garamond', Georgia, serif;
}

/* ── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-height); font-size: 16px !important; }
body {
    font-family: var(--font-sans);
    background: var(--bg-base);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }
input, textarea, select { font-family: inherit; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; }

/* ── Utility ───────────────────────────────────────────────── */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 clamp(1rem, 4vw, 2rem);
}
.hero-content.container {
    max-width: 1600px;
}
.section {
    padding: clamp(4rem, 8vw, 7rem) 0;
}
.gradient-text {
    color: var(--primary);
    -webkit-text-fill-color: var(--primary);
}
.section-tag {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    font-size: .8rem;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--primary);
    background: #e3c9c3;
    border: 1px solid rgba(172,65,66,.2);
    padding: .4rem 1rem;
    border-radius: 999px;
    margin-bottom: 1.2rem;
}
.section-title {
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 4vw, 3.2rem);
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: 0em;
    margin-bottom: 1rem;
}
.section-subtitle {
    font-size: clamp(1rem, 1.5vw, 1.125rem);
    color: var(--text-secondary);
    max-width: 900px;
    line-height: 1.75;
}
.section-header {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.left-aligned { text-align: left; }

/* ── Buttons ───────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    font-weight: 600;
    font-size: .95rem;
    letter-spacing: .01em;
    border-radius: var(--radius-md);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    white-space: nowrap;
}
.btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0);
    transition: background var(--transition);
}
.btn:hover::before { background: rgba(0,0,0,.05); }
.btn:active { transform: scale(.97); }

.btn-primary {
    background: var(--gradient);
    color: #fff;
    padding: .75rem 1.75rem;
    box-shadow: 0 4px 20px rgba(172,65,66,.35);
}
.btn-primary:hover { background: var(--gradient-hover); box-shadow: 0 6px 28px rgba(172,65,66,.5); transform: translateY(-1px); }

.btn-ghost {
    background: var(--glass);
    color: var(--text-primary);
    border: 1px solid var(--border);
    padding: .75rem 1.75rem;
    backdrop-filter: blur(8px);
}
.btn-ghost:hover { background: var(--glass-hover); border-color: rgba(0,0,0,.18); }

.btn-outline {
    background: transparent;
    color: var(--primary-light);
    border: 1px solid rgba(172,65,66,.4);
    padding: .75rem 1.75rem;
}
.btn-outline:hover { background: rgba(172,65,66,.1); border-color: var(--primary); }

.btn-sm { padding: .5rem 1.2rem; font-size: .875rem; }
.btn-lg { padding: .875rem 2rem; font-size: 1rem; }
.btn-full { width: 100%; }

.btn-icon { width: 18px; height: 18px; transition: transform var(--transition); }
.btn:hover .btn-icon { transform: translateX(3px); }
.btn-spinner {
    display: none;
    width: 18px; height: 18px;
    border: 2px solid rgba(255,255,255,.4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin .6s linear infinite;
}
.btn.is-loading .btn-text { opacity: 0; }
.btn.is-loading .btn-icon { display: none; }
.btn.is-loading .btn-spinner { display: block; position: absolute; }

/* ── Navbar ────────────────────────────────────────────────── */
.site-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    background: rgba(255,255,255,.97);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    box-shadow: 0 1px 0 var(--border);
    transition: box-shadow var(--transition);
}
.site-header.scrolled {
    box-shadow: 0 1px 0 var(--border), 0 4px 24px rgba(0,0,0,.08);
}
.navbar { height: var(--nav-height); }
.nav-inner {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}
.nav-logo {
    display: flex;
    align-items: center;
    overflow: hidden;
    height: var(--nav-height);
}
/* object-fit: cover zooms into the artwork, cropping the PNG's empty padding */
.nav-logo img,
.site-logo-img {
    display: block;
    width: 180px;
    height: auto;
    object-fit: contain;
    flex-shrink: 0;
}
.footer-logo .site-logo-img {
    width: 220px;
    height: 110px;
    object-fit: contain;
    object-position: left center;
}
.logo-text {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 800;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.nav-links {
    display: flex;
    align-items: center;
    gap: .25rem;
}
.nav-link {
    font-size: .9rem;
    font-weight: 500;
    color: var(--text-secondary);
    padding: .5rem .9rem;
    border-radius: var(--radius-sm);
    transition: color var(--transition), background var(--transition);
}
.nav-link:hover { color: var(--text-primary); background: var(--glass); }
.nav-cta { margin-left: .75rem; }
.nav-lang-switcher { margin-left: .5rem; display: flex; align-items: center; }

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    width: 32px;
    padding: 4px;
    z-index: 10;
}
.hamburger span {
    display: block;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: var(--transition);
    transform-origin: center;
}
.hamburger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.is-open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Hero Section ──────────────────────────────────────────── */
.hero {
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding-top: var(--nav-height);
}

/* ── Hero Slideshow ────────────────────────────────────────── */
.hero-slideshow {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

/* Single dark overlay covering all slides — more reliable than per-slide divs */
.hero-slideshow::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 10;
    background: rgba(0,0,0,.45);
    pointer-events: none;
}

/* Delays injected dynamically by front-page.php based on image count */
.slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    animation: fade-slide infinite;
    animation-fill-mode: both;
}

.slide-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
}

.slide--zoom-in .slide-bg  { animation-name: zoom-in;  animation-timing-function: linear; animation-iteration-count: 1; animation-fill-mode: forwards; }
.slide--zoom-out .slide-bg { animation-name: zoom-out; animation-timing-function: linear; animation-iteration-count: 1; animation-fill-mode: forwards; }

@keyframes fade-slide {
    0%    { opacity: 0; }
    5%    { opacity: 1; }
    17%   { opacity: 1; }
    21%   { opacity: 0; }
    100%  { opacity: 0; }
}

@keyframes zoom-in {
    0%   { transform: scale(1); }
    100% { transform: scale(1.15); }
}

@keyframes zoom-out {
    0%   { transform: scale(1.15); }
    100% { transform: scale(1); }
}

@keyframes kenburns {
    from { transform: scale(1);    }
    to   { transform: scale(1.07); }
}

/* Hero text overrides when slideshow is behind */
.hero--slideshow .hero-badge {
    color: #fff;
    background: rgba(255,255,255,.15);
    border-color: rgba(255,255,255,.25);
}
.hero--slideshow .badge-dot { background: #fff; box-shadow: 0 0 0 3px rgba(255,255,255,.25); }
.hero--slideshow .hero-title  { color: #fff; }
.hero--slideshow .hero-subtitle { color: rgba(255,255,255,.82); }
.hero--slideshow .hero-stats {
    background: rgba(0,0,0,.55);
    border-color: rgba(255,255,255,.15);
    backdrop-filter: blur(12px);
}
.hero--slideshow .stat-label  { color: rgba(255,255,255,.65); }
.hero--slideshow .scroll-down { color: rgba(255,255,255,.6); }
.hero--slideshow .btn-ghost {
    background: rgba(255,255,255,.12);
    border-color: rgba(255,255,255,.3);
    color: #fff;
}
.hero--slideshow .btn-ghost:hover { background: rgba(255,255,255,.2); }

/* Animated background */
.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}
.hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(0,0,0,.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0,0,0,.05) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, black 30%, transparent 100%);
}
.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    animation: float 8s ease-in-out infinite;
}
.orb-1 {
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(172,65,66,.1) 0%, transparent 70%);
    top: -200px; left: -150px;
    animation-delay: 0s;
}
.orb-2 {
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(255,108,58,.08) 0%, transparent 70%);
    bottom: -150px; right: -100px;
    animation-delay: -3s;
}
.orb-3 {
    width: 350px; height: 350px;
    background: radial-gradient(circle, rgba(172,65,66,.06) 0%, transparent 70%);
    top: 40%; left: 55%;
    animation-delay: -6s;
    animation-duration: 10s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33%       { transform: translate(30px, -30px) scale(1.05); }
    66%       { transform: translate(-20px, 20px) scale(.95); }
}

.hero-content {
    position: relative;
    z-index: 20;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0;
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    font-size: .8rem;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--primary-light);
    background: rgba(172,65,66,.1);
    border: 1px solid rgba(172,65,66,.25);
    padding: .45rem 1.1rem;
    border-radius: 999px;
    margin-bottom: 1.5rem;
}
.badge-dot {
    width: 8px; height: 8px;
    background: var(--primary);
    border-radius: 50%;
    box-shadow: 0 0 0 3px rgba(172,65,66,.25);
    animation: pulse-dot 2s ease infinite;
}
@keyframes pulse-dot {
    0%, 100% { box-shadow: 0 0 0 3px rgba(172,65,66,.25); }
    50%       { box-shadow: 0 0 0 6px rgba(172,65,66,.1); }
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(3rem, 8vw, 7.5rem);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -.01em;
    margin-bottom: 1.5rem;
    max-width: 1200px;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--text-secondary);
    max-width: 560px;
    line-height: 1.75;
    margin-bottom: 2.5rem;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 3.5rem;
}

.hero-stats {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
    padding: 1.25rem 2.5rem;
    background: var(--glass);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(12px);
}
.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: .2rem;
}
.stat-number { white-space: nowrap; }
.stat-number {
    font-family: var(--font-display);
    font-size: 2.75rem;
    font-weight: 900;
    color: var(--primary);
    -webkit-text-fill-color: var(--primary);
}
.stat-label {
    font-size: .75rem;
    color: var(--text-muted);
    font-weight: 500;
    letter-spacing: .05em;
    text-transform: uppercase;
    text-align: center;
    max-width: 140px;
    word-wrap: break-word;
}
.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--border);
}

.scroll-down {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .5rem;
    color: var(--text-muted);
    font-size: .75rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    animation: bounce-down 2s ease infinite;
    transition: color var(--transition);
}
.scroll-down:hover { color: var(--text-secondary); }
.scroll-mouse {
    width: 22px; height: 36px;
    border: 2px solid currentColor;
    border-radius: 999px;
    display: flex;
    justify-content: center;
    padding-top: 6px;
}
.scroll-wheel {
    width: 3px; height: 6px;
    background: currentColor;
    border-radius: 999px;
    animation: scroll-wheel 2s ease infinite;
}
@keyframes scroll-wheel {
    0%   { transform: translateY(0); opacity: 1; }
    80%  { transform: translateY(8px); opacity: 0; }
    100% { transform: translateY(0); opacity: 0; }
}
@keyframes bounce-down {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50%       { transform: translateX(-50%) translateY(6px); }
}

/* ── About / Services ──────────────────────────────────────── */
.about-section { background: var(--bg-surface); }

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}
.services-grid--sectors {
    grid-template-columns: repeat(3, 1fr);
}
.podcast-section { background: var(--bg-base); }
.podcast-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: start;
}
.podcast-embed { display: flex; flex-direction: column; gap: .75rem; }
.embed-frame-wrap {
    position: relative;
    height: 352px;
    max-height: 352px;
    overflow: hidden;
    border-radius: 12px;
    flex-shrink: 0;
}
.embed-frame-wrap iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}
.podcast-platform-label {
    display: flex;
    align-items: center;
    gap: .5rem;
    font-weight: 600;
    font-size: .9rem;
    color: var(--text-secondary);
}
@media (max-width: 768px) {
    .podcast-grid { grid-template-columns: 1fr; }
}

.service-card {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}
.service-card:hover {
    transform: translateY(-6px);
    border-color: rgba(172,65,66,.25);
    box-shadow: var(--shadow-glow), var(--shadow-md);
}
.service-card:hover .service-card-glow {
    opacity: 1;
}
.service-card-glow {
    position: absolute;
    top: -60px; right: -60px;
    width: 200px; height: 200px;
    background: radial-gradient(circle, rgba(172,65,66,.15) 0%, transparent 70%);
    border-radius: 50%;
    opacity: 0;
    transition: opacity var(--transition);
    pointer-events: none;
}

/* About bottom text */
.about-bottom-text {
    max-width: 900px;
    margin: clamp(2.5rem, 5vw, 4rem) auto 0;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.about-bottom-text p {
    font-size: clamp(1rem, 1.5vw, 1.125rem);
    line-height: 1.75;
    color: var(--text-secondary);
}

/* About details grid */
.about-details-heading {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    text-align: center;
    margin: clamp(2.5rem, 5vw, 4rem) 0 clamp(2rem, 4vw, 3rem);
    line-height: 1.2;
}
.about-details-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem 3rem;
}
.about-detail-title {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: .5rem;
    line-height: 1.3;
}
.about-detail-text {
    font-size: .95rem;
    line-height: 1.75;
    color: var(--text-secondary);
    width: 100%;
    text-align: justify;
}
.about-detail-text p {
    margin: 0 0 .5rem;
}
.about-detail-text p:last-child { margin-bottom: 0; }
.about-detail-text ul {
    margin: .5rem 0;
    padding-left: 1.25rem;
    list-style: disc;
}
.about-detail-text ul:last-child { margin-bottom: 0; }
.about-detail-text li {
    margin-bottom: .35rem;
    line-height: 1.6;
}
.about-detail-text li:last-child { margin-bottom: 0; }
@media (max-width: 768px) {
    .about-details-grid {
        grid-template-columns: 1fr;
    }
}

/* Sector logo cards */
a.service-card--sector {
    text-decoration: none;
    color: inherit;
}
.service-card--sector {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2.5rem 2rem;
}
.sector-logo-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-bottom: 1.5rem;
}
.sector-logo {
    width: 100%;
    max-width: 220px;
    height: auto;
    object-fit: contain;
}

.service-icon {
    width: 56px; height: 56px;
    background: rgba(172,65,66,.12);
    border: 1px solid rgba(172,65,66,.2);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    transition: background var(--transition);
}
.service-card:hover .service-icon { background: rgba(172,65,66,.2); }
.icon-inner { font-size: 1.5rem; line-height: 1; }
.service-img-icon { width: 28px; height: 28px; object-fit: contain; filter: brightness(2); }

.service-title {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: .6rem;
    letter-spacing: -.01em;
}
.service-desc {
    font-size: .9rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ── Partners Marquee ──────────────────────────────────────── */
.partners-section {
    background: var(--bg-surface);
    overflow: hidden;
}

.marquee-rows {
    display: flex;
    flex-direction: column;
    gap: .75rem;
}

.marquee-outer {
    position: relative;
    overflow: hidden;
    padding: .5rem 0;
}

.marquee-track {
    display: flex;
    width: max-content;
}
.marquee-track:hover { animation-play-state: paused; }

.marquee-left  { animation: marquee-ltr 30s linear infinite; }
.marquee-right { animation: marquee-rtl 30s linear infinite; }

@keyframes marquee-ltr {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}
@keyframes marquee-rtl {
    from { transform: translateX(-50%); }
    to   { transform: translateX(0%); }
}

.marquee-set {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    padding: 0 1.25rem;
}

.partner-logo-item {
    flex-shrink: 0;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    transition: border-color var(--transition), background var(--transition);
}
.partner-logo-item:hover {
    border-color: rgba(172,65,66,.3);
    background: var(--bg-card-hover);
}
.partner-logo-item img {
    height: 56px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
    opacity: .7;
    transition: opacity var(--transition);
}
.partner-logo-item:hover img { opacity: 1; }
.partner-name-fallback {
    font-family: var(--font-display);
    font-size: .95rem;
    font-weight: 700;
    color: var(--text-secondary);
    white-space: nowrap;
    letter-spacing: -.01em;
    transition: color var(--transition);
}
.partner-logo-item:hover .partner-name-fallback { color: var(--text-primary); }

/* ── FAQ Section ───────────────────────────────────────────── */
.faq-section { background: var(--bg-base); }

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid var(--border);
}
.faq-item:first-child {
    border-top: 1px solid var(--border);
}

.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.25rem 0;
    cursor: pointer;
    list-style: none;
    font-size: 1.05rem;
    font-weight: 600;
    line-height: 1.4;
    color: var(--text-primary);
    transition: color var(--transition);
}
.faq-question::-webkit-details-marker { display: none; }
.faq-question::marker { display: none; content: ''; }
.faq-question:hover { color: var(--primary-light); }

.faq-chevron {
    width: 20px;
    height: 20px;
    min-width: 20px;
    min-height: 20px;
    max-width: 20px;
    max-height: 20px;
    flex-shrink: 0;
    color: var(--text-muted);
    transition: transform .3s ease;
}
.faq-item[open] .faq-chevron {
    transform: rotate(180deg);
}

.faq-answer {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows .3s ease;
    font-size: .95rem;
    line-height: 1.7;
    color: var(--text-secondary);
}
.faq-item[open] .faq-answer {
    grid-template-rows: 1fr;
}
.faq-answer-inner {
    overflow: hidden;
    padding: 0;
}
.faq-item[open] .faq-answer-inner {
    padding-bottom: 1.25rem;
}
.faq-answer p { margin: 0 0 .5rem; }
.faq-answer p:last-child { margin-bottom: 0; }
.faq-answer ul {
    margin: .5rem 0;
    padding-left: 1.25rem;
    list-style: disc;
}
.faq-answer ul:last-child { margin-bottom: 0; }
.faq-answer li {
    margin-bottom: .35rem;
    line-height: 1.6;
}
.faq-answer li:last-child { margin-bottom: 0; }

/* ── Contact Section ───────────────────────────────────────── */
.contact-section { background: var(--bg-surface); }

.contact-info {
    margin-bottom: 2.5rem;
}
.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin-top: 2rem;
}
.contact-details--inline {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 2rem;
}
.contact-detail-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}
.contact-icon-wrap {
    width: 44px; height: 44px;
    flex-shrink: 0;
    background: rgba(172,65,66,.1);
    border: 1px solid rgba(172,65,66,.2);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
}
.contact-icon-wrap svg { width: 18px; height: 18px; color: var(--primary-light); }
.detail-label {
    display: block;
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: .2rem;
}
.detail-value {
    font-size: .95rem;
    color: var(--text-secondary);
    transition: color var(--transition);
}
a.detail-value:hover { color: var(--primary-light); }

/* Contact Form */
.contact-form-wrap {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    box-shadow: var(--shadow-md);
}

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

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}
.form-group {
    position: relative;
}
.form-input {
    width: 100%;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: .95rem;
    padding: 1.1rem 1rem .5rem;
    transition: border-color var(--transition), box-shadow var(--transition);
    appearance: none;
}
.form-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(172,65,66,.2);
}
/* Floating label */
.form-label {
    position: absolute;
    left: 1rem;
    top: 1rem;
    font-size: .9rem;
    color: var(--text-muted);
    pointer-events: none;
    transition: all .18s ease;
    transform-origin: left top;
}
.form-input:focus ~ .form-label,
.form-input:not(:placeholder-shown) ~ .form-label {
    transform: translateY(-.7rem) scale(.78);
    color: var(--primary-light);
}
.form-textarea {
    resize: vertical;
    min-height: 140px;
    padding-top: 1.4rem;
}
.req { color: var(--primary-light); }

.hp-field {
    position: absolute;
    left: -9999px;
    top: -9999px;
    opacity: 0;
    pointer-events: none;
    tab-size: -1;
}

.cf-feedback {
    border-radius: var(--radius-md);
    padding: .9rem 1.1rem;
    font-size: .9rem;
    font-weight: 500;
    display: none;
}
.cf-feedback.is-success {
    display: block;
    background: rgba(16,185,129,.1);
    border: 1px solid rgba(16,185,129,.3);
    color: #6ee7b7;
}
.cf-feedback.is-error {
    display: block;
    background: rgba(239,68,68,.1);
    border: 1px solid rgba(239,68,68,.3);
    color: #fca5a5;
}

/* ── Contact Form 7 ───────────────────────────────────────── */
.wpcf7 { max-width: 100%; }
.wpcf7-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .75rem;
}
/* Children 2-4 (Név, Email, Telefon) → col 1
   Children 5-7 (Irányítószám, Város, Utca) → col 2
   Child 8 (Milyen megoldások): full width
   Children 9-10 (Mikor + Honnan): auto-flow side by side
   Children 11+ (textarea, acceptance, submit): full width */
.wpcf7-form > p:nth-child(2) { grid-column: 1; grid-row: 1; }
.wpcf7-form > p:nth-child(3) { grid-column: 1; grid-row: 2; }
.wpcf7-form > p:nth-child(4) { grid-column: 1; grid-row: 3; }
.wpcf7-form > p:nth-child(5) { grid-column: 2; grid-row: 1; }
.wpcf7-form > p:nth-child(6) { grid-column: 2; grid-row: 2; }
.wpcf7-form > p:nth-child(7) { grid-column: 2; grid-row: 3; }
.wpcf7-form > p:nth-child(8) { grid-column: 1 / -1; }
.wpcf7-form > p:nth-child(n+11) { grid-column: 1 / -1; }
/* Non-<p> children (fieldset, response div) span full width */
.wpcf7-form > :not(p) { grid-column: 1 / -1; }

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

.wpcf7-form p { margin: 0; }
.wpcf7-form br { display: none; }
.wpcf7-form label {
    display: block;
    font-size: .8rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: .25rem;
    padding-left: .5rem;
}
.wpcf7-form label .wpcf7-form-control {
    margin-left: -.5rem;
}

/* Inputs, textarea, native selects */
.wpcf7-form-control:not(.wpcf7-submit):not(.wpcf7-checkbox):not(.wpcf7-radio):not(.wpcf7-acceptance) {
    width: 100%;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-family: inherit;
    font-size: .9rem;
    padding: .6rem .8rem;
    transition: border-color var(--transition), box-shadow var(--transition);
    appearance: none;
    -webkit-appearance: none;
}
.wpcf7-form-control:not(.wpcf7-submit):focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(172,65,66,.12);
}
.wpcf7-form textarea.wpcf7-form-control {
    resize: vertical;
    min-height: 100px;
}

/* Dropdown select */
.wpcf7-form select.wpcf7-form-control {
    cursor: pointer;
    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='%23999' stroke-width='2.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right .8rem center;
    padding-right: 2.2rem;
}

/* Hide native multi-select when JS chip UI is active */
.wpcf7-form select[multiple].cf7-chips-active { display: none; }

/* ── Custom chip-based select UI ─────────────────────────── */
.cf7-chips-wrap {
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--bg-surface);
    padding: .4rem;
    display: flex;
    flex-wrap: wrap;
    gap: .35rem;
    transition: border-color var(--transition), box-shadow var(--transition);
}
.cf7-chips-wrap:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(172,65,66,.12);
}
.cf7-chip {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    padding: .35rem .7rem;
    font-size: .8rem;
    font-weight: 500;
    border-radius: 100px;
    cursor: pointer;
    user-select: none;
    transition: all .15s ease;
    border: 1px solid var(--border);
    background: var(--bg-card, #fff);
    color: var(--text-secondary);
}
.cf7-chip:hover {
    border-color: var(--primary);
    color: var(--primary);
}
.cf7-chip.selected {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}
.cf7-chip.selected:hover {
    background: var(--primary-dark, #8e3536);
    border-color: var(--primary-dark, #8e3536);
    color: #fff;
}
.cf7-chip-check {
    font-size: .7rem;
    line-height: 1;
}

/* ── Custom dropdown UI ──────────────────────────────────── */
.cf7-dropdown-wrap {
    position: relative;
}
.cf7-dropdown-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-family: inherit;
    font-size: .9rem;
    padding: .6rem .8rem;
    cursor: pointer;
    transition: border-color var(--transition), box-shadow var(--transition);
    user-select: none;
}
.cf7-dropdown-toggle:hover { border-color: var(--primary); }
.cf7-dropdown-toggle.open {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(172,65,66,.12);
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}
.cf7-dropdown-arrow {
    width: 12px;
    height: 12px;
    transition: transform .2s ease;
    flex-shrink: 0;
    color: var(--text-muted);
}
.cf7-dropdown-toggle.open .cf7-dropdown-arrow { transform: rotate(180deg); }
.cf7-dropdown-list {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 50;
    background: var(--bg-card, #fff);
    border: 1px solid var(--primary);
    border-top: none;
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    max-height: 200px;
    overflow-y: auto;
    display: none;
    box-shadow: 0 8px 24px rgba(0,0,0,.1);
}
.cf7-dropdown-list.open { display: block; }
.cf7-dropdown-option {
    padding: .5rem .8rem;
    font-size: .9rem;
    cursor: pointer;
    transition: background .1s ease;
    color: var(--text-primary);
}
.cf7-dropdown-option:hover { background: rgba(172,65,66,.06); }
.cf7-dropdown-option.selected {
    background: var(--primary);
    color: #fff;
}
.cf7-dropdown-option.selected:hover {
    background: var(--primary-dark, #8e3536);
}
.cf7-dropdown-placeholder { color: var(--text-muted); }

/* Checkbox & Radio — compact */
.wpcf7-list-item {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    margin: 0 .75rem .25rem 0 !important;
}
.wpcf7-list-item label {
    display: flex;
    align-items: center;
    gap: .4rem;
    font-weight: 400;
    font-size: .9rem;
    color: var(--text-primary);
    cursor: pointer;
    margin-bottom: 0;
}
.wpcf7-list-item input[type="checkbox"],
.wpcf7-list-item input[type="radio"] {
    width: 16px;
    height: 16px;
    accent-color: var(--primary);
    cursor: pointer;
    flex-shrink: 0;
}

/* Acceptance */
.wpcf7-acceptance label {
    display: flex;
    align-items: flex-start;
    gap: .4rem;
    font-weight: 400;
    font-size: .8rem;
    color: var(--text-secondary);
    cursor: pointer;
}

/* Submit */
.wpcf7-form input[type="submit"],
.wpcf7-form .wpcf7-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: .75rem 1.5rem;
    font-family: inherit;
    font-size: .95rem;
    font-weight: 600;
    color: #fff;
    background: var(--primary);
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
}
.wpcf7-form input[type="submit"]:hover,
.wpcf7-form .wpcf7-submit:hover {
    background: var(--primary-dark, #8e3536);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(172,65,66,.3);
}
.wpcf7-form input[type="submit"]:active,
.wpcf7-form .wpcf7-submit:active { transform: translateY(0); }

/* Spinner */
.wpcf7-spinner {
    display: inline-block;
    margin-left: .5rem;
    border: 2px solid rgba(172,65,66,.2);
    border-top-color: var(--primary);
    border-radius: 50%;
    width: 16px;
    height: 16px;
    animation: spin .7s linear infinite;
}

/* Validation */
.wpcf7-not-valid-tip {
    display: block;
    font-size: .75rem;
    color: #ef4444;
    margin-top: .2rem;
    font-weight: 500;
}
.wpcf7-not-valid { border-color: #ef4444 !important; box-shadow: 0 0 0 3px rgba(239,68,68,.1) !important; }

/* Response output */
.wpcf7-response-output {
    border-radius: var(--radius-md) !important;
    padding: .7rem 1rem !important;
    font-size: .85rem;
    font-weight: 500;
    margin: .5rem 0 0 !important;
    border-width: 1px !important;
}
.wpcf7-form.sent .wpcf7-response-output {
    background: rgba(16,185,129,.1);
    border-color: rgba(16,185,129,.3) !important;
    color: #059669;
}
.wpcf7-form.failed .wpcf7-response-output,
.wpcf7-form.aborted .wpcf7-response-output,
.wpcf7-form.invalid .wpcf7-response-output {
    background: rgba(239,68,68,.1);
    border-color: rgba(239,68,68,.3) !important;
    color: #dc2626;
}

/* File upload */
.wpcf7-form input[type="file"] { font-size: .85rem; color: var(--text-secondary); }
.wpcf7-form input[type="file"]::file-selector-button {
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 100px;
    padding: .35rem .8rem;
    font-family: inherit;
    font-size: .8rem;
    font-weight: 600;
    cursor: pointer;
    margin-right: .5rem;
    transition: background var(--transition);
}
.wpcf7-form input[type="file"]::file-selector-button:hover { background: var(--primary-dark, #8e3536); }

@media (max-width: 640px) {
    .wpcf7-form-control:not(.wpcf7-submit) { font-size: 16px; }
}

/* ── Blog Pages ────────────────────────────────────────────── */
/* ── Blog / Archive Hero (used by single/page heroes too) ──── */
.post-hero,
.page-hero {
    min-height: 40vh;
    display: flex;
    align-items: flex-end;
    padding: 6rem 0 4rem;
    position: relative;
    overflow: hidden;
    background: var(--bg-surface);
}

/* ── Category Cloud ────────────────────────────────────────── */
.category-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin-bottom: 2.5rem;
    justify-content: center;
}
.category-cloud-tag {
    display: inline-block;
    padding: .45rem 1.1rem;
    font-size: .85rem;
    font-weight: 600;
    color: var(--text-secondary);
    background: var(--bg-card);
    border: 1.5px solid var(--border);
    border-radius: 99px;
    text-decoration: none;
    transition: all .2s ease;
    white-space: nowrap;
}
.category-cloud-tag:hover {
    color: var(--primary);
    border-color: var(--primary);
    background: rgba(172,65,66,.06);
}
.category-cloud-tag.active {
    color: #fff;
    background: var(--primary);
    border-color: var(--primary);
}

/* ── Blog Feed (telex-style dense grid) ───────────────────── */
.blog-container { padding-top: 5rem; padding-bottom: 6rem; }

.archive-header {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid var(--border);
}
.archive-title {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 800;
    line-height: 1.2;
}
.archive-desc {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-top: .5rem;
}

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

/* ── Feed Item ─────────────────────────────────────────────── */
.feed-item-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    color: inherit;
    text-decoration: none;
}

.feed-item-image {
    position: relative;
    aspect-ratio: 16/10;
    overflow: hidden;
    border-radius: 6px;
    background: var(--bg-surface);
}
.feed-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}
.feed-item:hover .feed-item-image img {
    transform: scale(1.04);
}
.feed-item-placeholder {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    color: var(--text-muted);
}
.feed-item-placeholder svg { width: 40px; height: 40px; }

.feed-item-tag {
    position: absolute;
    bottom: 8px;
    left: 8px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: #fff;
    background: var(--primary);
    padding: 3px 9px;
    border-radius: 3px;
    line-height: 1.4;
}

.feed-item-body {
    padding: 12px 0 0;
    display: flex;
    flex-direction: column;
    gap: 5px;
    flex: 1;
}

.feed-item-title,
.blog-feed .feed-item .feed-item-title,
.blog-feed .feed-item h2.feed-item-title {
    font-family: var(--font-display) !important;
    font-size: 17px !important;
    font-weight: 700 !important;
    line-height: 1.35 !important;
    letter-spacing: -.01em;
    transition: color var(--transition);
    margin: 0;
    padding: 0;
}
.feed-item:hover .feed-item-title {
    color: var(--primary-light);
}

.feed-item-excerpt,
.blog-feed .feed-item .feed-item-excerpt {
    font-size: 14px !important;
    color: var(--text-secondary);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.feed-item-meta {
    margin-top: auto;
    padding-top: 6px;
}
.feed-item-meta time {
    font-size: 12px;
    color: var(--text-muted);
}

/* Responsive */
@media (max-width: 960px) {
    .blog-feed {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 600px) {
    .blog-feed {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

/* Pagination */
.blog-pagination {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}
.blog-pagination .nav-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: .5rem;
    flex-wrap: wrap;
}
.blog-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .6rem 1rem;
    border-radius: var(--radius-sm);
    font-size: .875rem;
    font-weight: 500;
    border: 1px solid var(--border);
    color: var(--text-secondary);
    background: var(--bg-card);
    transition: var(--transition);
}
.blog-pagination .page-numbers:hover,
.blog-pagination .page-numbers.current {
    background: var(--gradient);
    border-color: transparent;
    color: #fff;
}
.blog-pagination .page-numbers svg { width: 16px; height: 16px; }

/* No posts */
.no-posts {
    text-align: center;
    padding: 6rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}
.no-posts-icon { font-size: 3rem; }
.no-posts h2 { font-size: 1.5rem; font-weight: 700; }
.no-posts p { color: var(--text-secondary); max-width: 400px; }

/* ── Single Post ───────────────────────────────────────────── */
.post-header {
    padding-top: 6rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border);
    margin-bottom: 0;
}
.post-featured-image {
    margin-bottom: 1.5rem;
    border-radius: 6px;
    overflow: hidden;
}
.post-featured-image img {
    width: 100%;
    height: auto;
    display: block;
}
.post-category-badge {
    display: inline-block;
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: #fff;
    background: var(--primary);
    padding: .25rem .6rem;
    border-radius: 3px;
    margin-bottom: .75rem;
    transition: opacity var(--transition);
}
.post-category-badge:hover { opacity: .85; }
.post-title {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -.025em;
    max-width: 800px;
    margin: 0 0 1.25rem;
}
.post-meta {
    display: flex;
    align-items: center;
    gap: .75rem;
    flex-wrap: wrap;
}
.post-author-avatar { border-radius: 50%; object-fit: cover; }
.post-meta-text {
    display: flex;
    align-items: center;
    gap: .5rem;
    font-size: .875rem;
    color: var(--text-secondary);
    flex-wrap: wrap;
}
.post-author { font-weight: 600; color: var(--text-primary); }
.post-meta-sep { color: var(--text-muted); }

.post-layout {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 4rem;
    align-items: start;
    padding-top: 3rem;
    padding-bottom: 4rem;
}

/* Prose styles for post content */
.post-content {
    min-width: 0;
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-secondary);
}
.post-content h1, .post-content h2, .post-content h3,
.post-content h4, .post-content h5, .post-content h6 {
    font-family: var(--font-display);
    color: var(--text-primary);
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -.02em;
    margin: 2rem 0 .75rem;
}
.post-content h2 { font-size: 1.75rem; }
.post-content h3 { font-size: 1.35rem; }
.post-content p { margin-bottom: 1.5rem; }
.post-content a { color: var(--primary-light); text-decoration: underline; text-decoration-color: rgba(172,65,66,.4); }
.post-content a:hover { text-decoration-color: var(--primary); }
.post-content img { border-radius: var(--radius-md); margin: 2rem 0; width: 100%; }
.post-content blockquote {
    border-left: 3px solid var(--primary);
    padding: 1rem 1.5rem;
    margin: 2rem 0;
    background: rgba(172,65,66,.07);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    color: var(--text-primary);
    font-style: italic;
}
.post-content code {
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    font-size: .875em;
    background: rgba(172,65,66,.12);
    border: 1px solid rgba(172,65,66,.2);
    padding: .15em .4em;
    border-radius: 4px;
    color: var(--primary-light);
}
.post-content pre {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    overflow-x: auto;
    margin: 2rem 0;
}
.post-content pre code { background: none; border: none; padding: 0; color: var(--text-primary); font-size: .875rem; }
.post-content ul, .post-content ol {
    padding-left: 1.75rem;
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: .5rem;
}
.post-content li::marker { color: var(--primary); }

/* Sidebar */
.post-sidebar { position: sticky; top: calc(var(--nav-height) + 2rem); }
.sidebar-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}
.sidebar-heading {
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 1.25rem;
}
.author-card { text-align: center; }
.author-card-avatar { border-radius: 50%; object-fit: cover; margin: 0 auto .75rem; }
.author-card-name { font-weight: 700; margin-bottom: .5rem; }
.author-card-bio { font-size: .875rem; color: var(--text-secondary); line-height: 1.6; }
.recent-posts-list { display: flex; flex-direction: column; gap: 1rem; }
.recent-post-item { display: flex; align-items: center; gap: .75rem; }
.recent-post-thumb { width: 60px; height: 60px; flex-shrink: 0; border-radius: var(--radius-sm); overflow: hidden; display: block; }
.recent-post-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--transition); }
.recent-post-thumb:hover img { transform: scale(1.08); }
.recent-post-text { flex: 1; min-width: 0; }
.recent-post-title {
    display: block;
    font-size: .875rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: .25rem;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    transition: color var(--transition);
}
.recent-post-title:hover { color: var(--primary-light); }
.recent-post-date { font-size: .75rem; color: var(--text-muted); }

/* Post Navigation */
.post-navigation {
    border-top: 1px solid var(--border);
    padding: 2.5rem 0 4rem;
}
.post-navigation .nav-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}
.post-navigation .nav-previous,
.post-navigation .nav-next {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    transition: border-color var(--transition), background var(--transition);
    display: flex;
    flex-direction: column;
    gap: .4rem;
}
.post-navigation a { display: flex; flex-direction: column; gap: .4rem; }
.post-navigation .nav-next { text-align: right; }
.post-navigation .nav-previous:hover,
.post-navigation .nav-next:hover {
    border-color: rgba(172,65,66,.3);
    background: var(--bg-card-hover);
}
.post-navigation .nav-label {
    display: block;
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--text-muted);
}
.post-navigation .nav-title {
    display: block;
    font-size: .95rem;
    font-weight: 600;
    color: var(--text-secondary);
    line-height: 1.4;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    transition: color var(--transition);
}
.post-navigation a:hover .nav-title { color: var(--text-primary); }

/* ── Footer ────────────────────────────────────────────────── */
.site-footer-wrap {
    background: var(--bg-surface);
}
.site-footer {
    padding: 0;
    max-width: 1200px;
    margin: 0 auto;
    background: transparent;
}
.footer-main {
    background: linear-gradient(180deg, #507f88 0%, #3d6b73 100%);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    padding: 2.5rem 0;
    box-shadow:
        0 -4px 24px rgba(0,0,0,.15),
        inset 0 1px 0 rgba(255,255,255,.1);
    border-top: 1px solid rgba(255,255,255,.12);
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}
.footer-col {
    display: flex;
    flex-direction: column;
    gap: .4rem;
}
.footer-heading {
    font-size: .85rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: .5rem;
}
.footer-text {
    font-size: .85rem;
    color: rgba(255,255,255,.6);
    line-height: 1.5;
}
.footer-link {
    font-size: .85rem;
    color: rgba(255,255,255,.6);
    transition: color var(--transition);
    text-decoration: none;
    line-height: 1.5;
}
.footer-link:hover { color: #fff; }
.footer-socials {
    display: flex;
    gap: .6rem;
    margin-top: .25rem;
}
.footer-social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,.2);
    color: rgba(255,255,255,.7);
    transition: all var(--transition);
}
.footer-social-icon:hover {
    color: #fff;
    border-color: #fff;
    background: rgba(255,255,255,.1);
}
.footer-social-icon svg { width: 16px; height: 16px; }


/* ── Scroll Animations ─────────────────────────────────────── */
.animate-fade-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp .7s cubic-bezier(.22,1,.36,1) forwards;
    animation-delay: var(--delay, 0s);
}

@keyframes fadeUp {
    to { opacity: 1; transform: translateY(0); }
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity .7s cubic-bezier(.22,1,.36,1), transform .7s cubic-bezier(.22,1,.36,1);
    transition-delay: var(--delay, 0s);
}
.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger children in grid */
.services-grid .service-card:nth-child(2) { --delay: .08s; }
.services-grid .service-card:nth-child(3) { --delay: .16s; }
.services-grid .service-card:nth-child(4) { --delay: .24s; }
.services-grid .service-card:nth-child(5) { --delay: .32s; }
.services-grid .service-card:nth-child(6) { --delay: .40s; }
/* ── Page Content ──────────────────────────────────────────── */
.page-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    letter-spacing: -.025em;
}
.page-content {
    padding-top: 3rem;
    padding-bottom: 5rem;
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-secondary);
    max-width: 740px;
}

/* ── Misc ──────────────────────────────────────────────────── */
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 1024px) {
    .post-layout { grid-template-columns: 1fr; }
    .post-sidebar { position: static; }
    .post-navigation .nav-links { grid-template-columns: 1fr; }
    .contact-details--inline { flex-direction: column; }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: var(--nav-height);
        left: 0; right: 0;
        background: rgba(255,255,255,.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-bottom: 1px solid var(--border);
        box-shadow: 0 8px 24px rgba(0,0,0,.08);
        flex-direction: column;
        align-items: stretch;
        padding: 1rem 1.5rem 2rem;
        gap: .5rem;
        transform: translateY(-120%);
        opacity: 0;
        pointer-events: none;
        transition: transform .3s cubic-bezier(.4,0,.2,1), opacity .3s ease;
        z-index: 999;
    }
    .nav-links.is-open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }
    .nav-link { padding: .75rem 1rem; font-size: 1rem; border-radius: var(--radius-sm); }
    .nav-cta { margin-left: 0; margin-top: .5rem; }
    .hamburger { display: flex; }

    .services-grid--sectors { grid-template-columns: 1fr; }

    .hero-stats {
        flex-wrap: wrap;
        gap: 1rem 1.5rem;
        justify-content: center;
        padding: 1rem 1.5rem;
    }
    .stat-divider { display: none; }

    .form-row { grid-template-columns: 1fr; }
    .contact-form-wrap { padding: 1.75rem; }

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

@media (max-width: 480px) {
    .hero-cta { flex-direction: column; align-items: center; }
    .btn-lg { width: 100%; }
}
