/*
Theme Name: REAB
Theme URI: https://reab.ro
Description: REAB Theme
Author: REAB
Template: twentytwentyone
Version: 1.0
Text Domain: reab
*/

:root {
    --cream: #FAF7F2;
    --warm-white: #FDF9F4;
    /* Contrast (WCAG AA, audit 2026-11-14): text and buttons need 4.5:1. The old terracotta #C4714A gave 3.6:1 with
       white text, 3.4:1 on cream; #9E5230 gives 5.7:1 / 5.3:1 and 4.6:1 on the pale badge. Sage #7A9E87 -> #557A62
       (4.8:1 with white text), text-soft #7A6458 -> #735D51 (5:1 under the translucent menu bar). Old values, for a
       quick revert: terracotta #C4714A, sage #7A9E87, text-soft #7A6458. */
    --terracotta: #9E5230;
    --terracotta-light: #E8A882;
    --terracotta-pale: #F5E6DC;
    --sage: #557A62;
    --sage-light: #B8D4C0;
    --sage-pale: #EAF2EC;
    --brown-dark: #3D2B1F;
    --brown-mid: #6B4C3B;
    --brown-light: #A07860;
    --text-main: #2C1F17;
    --text-soft: #735D51;
    --border: rgba(196, 113, 74, 0.15);

    /* One page width for the whole site: the menu and every page keep the same side space.
       Content is at most --wrap wide; --gutter is the minimum side space (24px on phones, 64px on desktops).
       --side is used as left/right padding of full-width bars (menu, sections, footer); the % is the width of the bar. */
    --wrap: 1200px;
    --gutter: clamp(1.5rem, 5vw, 4rem);
    --side: max(var(--gutter), calc((100% - var(--wrap)) / 2));
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'DM Sans', sans-serif;
    background: var(--cream);
    color: var(--text-main);
    overflow-x: hidden;
}

/* ─── NAV ─── */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.2rem var(--side);
    background: rgba(250, 247, 242, 0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    animation: fadeDown 0.8s ease both;
}

.nav-logo {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--brown-dark);
    letter-spacing: 0.04em;
}

.nav-logo span {
    color: var(--terracotta);
}

.nav-links {
    display: flex;
    gap: 1.4rem;
    list-style: none;
}

.nav-links a {
    font-size: 0.78rem;
    font-weight: 400;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text-soft);
    text-decoration: none;
    white-space: nowrap; /* a menu label never wraps onto two lines */
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--terracotta);
}

.nav-cta {
    background: var(--terracotta);
    color: white;
    padding: 0.6rem 1.4rem;
    border-radius: 2rem;
    font-size: 0.82rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-decoration: none;
    transition: background 0.3s, transform 0.2s;
}

.nav-cta:hover {
    background: var(--brown-mid);
    transform: translateY(-1px);
}

/* HAMBURGER MOBIL */
.hamburger{display:none;flex-direction:column;gap:5px;cursor:pointer;padding:.4rem;border:none;background-color:inherit !important;position:sticky;z-index:100}
.hamburger span{display:block;width:24px;height:2px;background:var(--brown-dark);border-radius:2px;transition:all .3s;}
.hamburger.open span:nth-child(1){transform:translateY(7px) rotate(45deg);}
.hamburger.open span:nth-child(2){opacity:0;}
.hamburger.open span:nth-child(3){transform:translateY(-7px) rotate(-45deg);}

.mobile-menu{display:none;flex-direction:column;background:rgba(250,247,242,.98);backdrop-filter:blur(14px);border-bottom:1px solid var(--border);padding:1rem var(--side);gap:.5rem;position:fixed;z-index:100;width:100%;}
.mobile-menu.open{display:flex;}
.mobile-menu a{background:none;border:none;cursor:pointer;font-family:'DM Sans',sans-serif;font-size:.9rem;letter-spacing:.05em;text-transform:uppercase;color:var(--text-soft);padding:.7rem 1rem;border-radius:1rem;text-align:left;transition:all .25s;}
.mobile-menu a:hover,.mobile-menu a.active{color:var(--terracotta);background:var(--terracotta-pale);}

/* Dropdown (second menu level, desktop) and indented sub-items (mobile) */
.nav-links li{position:relative;}
/* the parent theme (twentytwentyone) injects a +/- toggle button into every .menu-item-has-children */
.nav-links .sub-menu-toggle{display:none;}
.nav-links .menu-item-has-children > a::after{content:"▾";margin-left:.35em;font-size:.7em;}
.nav-links .sub-menu{display:none;position:absolute;top:100%;left:-1rem;min-width:15rem;margin:0;padding:.6rem 0;list-style:none;background:rgba(250,247,242,.98);backdrop-filter:blur(14px);border:1px solid var(--border);border-radius:1rem;box-shadow:0 8px 24px rgba(0,0,0,.08);}
.nav-links > li{padding:1.2rem 0;margin:-1.2rem 0;} /* top-level items span the full header height: no dead zone between link and dropdown, dropdown never covers the link */
.nav-links li:hover > .sub-menu,.nav-links li:focus-within > .sub-menu{display:block;}
.nav-links .sub-menu a{display:block;padding:.6rem 1.2rem;white-space:nowrap;}
.mobile-menu a.mobile-sub{padding-left:2.2rem;font-size:.82rem;}

/* ─── HERO ─── */
#acasa {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    padding: 8rem var(--side) 4rem;
    position: relative;
    overflow: hidden;
}

.hero-bg-circle {
    position: absolute;
    right: -10rem;
    top: -10rem;
    width: 70vw;
    height: 70vw;
    border-radius: 50%;
    background: radial-gradient(circle, var(--terracotta-pale) 0%, transparent 70%);
    opacity: 0.5;
    pointer-events: none;
}

.hero-bg-leaves {
    position: absolute;
    left: -5rem;
    bottom: -5rem;
    width: 40vw;
    height: 40vw;
    border-radius: 50%;
    background: radial-gradient(circle, var(--sage-pale) 0%, transparent 70%);
    opacity: 0.6;
    pointer-events: none;
}

.hero-text {
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--terracotta-pale);
    color: var(--terracotta);
    padding: 0.4rem 1rem;
    border-radius: 2rem;
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    animation: fadeUp 0.8s 0.2s ease both;
}

.hero-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(2.8rem, 5vw, 4.2rem);
    font-weight: 500;
    line-height: 1.15;
    color: var(--brown-dark);
    margin-bottom: 1.2rem;
    animation: fadeUp 0.8s 0.35s ease both;
}

.hero-title em {
    color: var(--terracotta);
    font-style: italic;
}

.hero-sub {
    font-size: 1rem;
    color: var(--text-soft);
    line-height: 1.75;
    max-width: 480px;
    margin-bottom: 2.5rem;
    animation: fadeUp 0.8s 0.5s ease both;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    animation: fadeUp 0.8s 0.65s ease both;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--terracotta);
    color: white;
    padding: 0.9rem 2rem;
    border-radius: 3rem;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s;
    box-shadow: 0 4px 20px rgba(196, 113, 74, 0.35);
}

.btn-primary:hover {
    background: var(--brown-mid);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(196, 113, 74, 0.4);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: transparent;
    color: var(--brown-dark);
    padding: 0.9rem 2rem;
    border-radius: 3rem;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    border: 1.5px solid var(--border);
    transition: all 0.3s;
}

.btn-secondary:hover {
    border-color: var(--terracotta);
    color: var(--terracotta);
}

.hero-visual {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeUp 0.8s 0.4s ease both;
}

.hero-card {
    background: white;
    border-radius: 2rem;
    padding: 2.5rem;
    box-shadow: 0 20px 60px rgba(61, 43, 31, 0.1);
    max-width: 380px;
    width: 100%;
    border: 1px solid var(--border);
}

.hero-card-icon {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 1rem;
    background: var(--terracotta-pale);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    margin-bottom: 1.2rem;
}

/* a card caption, not a heading of the page outline (it used to be an <h3> right after the <h1>: level skipped);
   the letter-spacing / line-height are the ones the parent theme gave to <h3>, so nothing changes visually */
.hero-card-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.4rem;
    font-weight: 600;
    letter-spacing: var(--heading--letter-spacing-h3);
    line-height: var(--heading--line-height-h3);
    color: var(--brown-dark);
    margin-bottom: 0.5rem;
}

.hero-card p {
    font-size: 0.88rem;
    color: var(--text-soft);
    line-height: 1.65;
    margin-bottom: 1.5rem;
}

.price-tag {
    display: inline-block;
    background: var(--terracotta);
    color: white;
    padding: 0.5rem 1.2rem;
    border-radius: 2rem;
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.hero-stats {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

.stat {
    text-align: center;
}

.stat-num {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--terracotta);
}

.stat-label {
    font-size: 0.72rem;
    color: var(--text-soft);
    letter-spacing: 0.04em;
}

.floating-badge {
    position: absolute;
    top: -1rem;
    right: -1rem;
    background: var(--sage);
    color: white;
    padding: 0.6rem 1rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 500;
    box-shadow: 0 4px 15px rgba(122, 158, 135, 0.4);
}

/* ─── SECTIONS COMMON ─── */
section {
    padding: 6rem var(--side);
}

/* the first block of every page starts at the same distance below the fixed menu */
main > section:first-child {
    padding-top: 8rem;
}

.section-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--terracotta);
    margin-bottom: 1rem;
}

.section-label::before {
    content: '';
    display: block;
    width: 2rem;
    height: 1.5px;
    background: var(--terracotta);
}

.section-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 500;
    line-height: 1.2;
    color: var(--brown-dark);
    margin-bottom: 1rem;
}

.section-title em {
    color: var(--terracotta);
    font-style: italic;
}

.section-sub {
    font-size: 1rem;
    color: var(--text-soft);
    line-height: 1.75;
    max-width: 540px;
}

/* ─── CUI SE ADRESEAZĂ ─── */
#cui {
    background: var(--warm-white);
}

.cui-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

.cui-card {
    background: white;
    border-radius: 1.5rem;
    padding: 2rem 1.5rem;
    border: 1px solid var(--border);
    transition: all 0.35s;
    position: relative;
    overflow: hidden;
}

.cui-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--terracotta);
    transform: scaleX(0);
    transition: transform 0.35s;
}

.cui-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(61, 43, 31, 0.1);
}

.cui-card:hover::after {
    transform: scaleX(1);
}

.cui-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.cui-card h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: var(--heading--letter-spacing-h4);
    line-height: var(--heading--line-height-h4);
    color: var(--brown-dark);
    margin-bottom: 0.5rem;
}

.cui-card p {
    font-size: 0.85rem;
    color: var(--text-soft);
    line-height: 1.6;
}

/* ─── BENEFICII ─── */
#beneficii {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.beneficii-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    margin-top: 2.5rem;
}

.beneficii-list li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.2rem 1.5rem;
    background: white;
    border-radius: 1rem;
    border: 1px solid var(--border);
    transition: all 0.3s;
}

.beneficii-list li:hover {
    border-color: var(--terracotta-light);
    box-shadow: 0 4px 20px rgba(196, 113, 74, 0.1);
}

.check {
    color: var(--sage);
    font-size: 1.2rem;
    flex-shrink: 0;
    margin-top: 0.1rem;
}

.beneficii-list span {
    font-size: 0.92rem;
    color: var(--text-main);
    line-height: 1.5;
}

.sedinta-box {
    background: var(--brown-dark);
    border-radius: 2rem;
    padding: 2.5rem;
    color: white;
}

.sedinta-box h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.6rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.sedinta-box p {
    font-size: 0.85rem;
    opacity: 0.7;
    margin-bottom: 2rem;
}

.sedinta-steps {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.step {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.07);
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.step-num {
    width: 2.2rem;
    height: 2.2rem;
    border-radius: 50%;
    background: var(--terracotta);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 500;
    flex-shrink: 0;
}

.step span {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* ─── SERVICII ─── */
#servicii {
    background: var(--warm-white);
}

.servicii-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 3rem;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.servicii-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.serviciu-card {
    background: white;
    border-radius: 2rem;
    padding: 2.5rem 2rem;
    border: 1px solid var(--border);
    transition: all 0.4s;
    position: relative;
    overflow: hidden;
}

.serviciu-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 50px rgba(61, 43, 31, 0.12);
}

.serviciu-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.serviciu-icon {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
}

.icon-terra {
    background: var(--terracotta-pale);
}

.icon-sage {
    background: var(--sage-pale);
}

.serviciu-card h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--brown-dark);
    margin-bottom: 0.4rem;
}

.serviciu-card .tagline {
    font-size: 0.82rem;
    color: var(--terracotta);
    font-weight: 500;
    margin-bottom: 1rem;
}

.serviciu-card p {
    font-size: 0.85rem;
    color: var(--text-soft);
    line-height: 1.65;
    margin-bottom: 1.5rem;
}

.serviciu-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.tag {
    font-size: 0.73rem;
    padding: 0.3rem 0.8rem;
    background: var(--cream);
    border-radius: 2rem;
    color: var(--text-soft);
    border: 1px solid var(--border);
}

.serviciu-card .link {
    font-size: 0.83rem;
    color: var(--terracotta);
    font-weight: 500;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    transition: gap 0.3s;
}

.serviciu-card .link:hover {
    gap: 0.6rem;
}

.serviciu-card h3 a {
    color: inherit;
    text-decoration: none;
}

.serviciu-card h3 a:hover {
    color: var(--terracotta);
}

.serviciu-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem 1.4rem;
}

/* ─── DESPRE ─── */
#despre {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 5rem;
    align-items: center;
}

.despre-visual {
    position: relative;
}

.despre-placeholder {
    width: 100%;
    aspect-ratio: 3/4;
    max-height: 520px;
    background: linear-gradient(135deg, var(--terracotta-pale) 0%, var(--sage-pale) 100%);
    border-radius: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    border: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}

.despre-placeholder::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23C4714A' fill-opacity='0.06'%3E%3Ccircle cx='30' cy='30' r='4'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.despre-badge-float {
    position: absolute;
    bottom: 2rem;
    right: -2rem;
    background: white;
    border-radius: 1.5rem;
    padding: 1.2rem 1.5rem;
    box-shadow: 0 10px 40px rgba(61, 43, 31, 0.15);
    border: 1px solid var(--border);
}

.despre-badge-float .num {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2rem;
    font-weight: 600;
    color: var(--terracotta);
}

.despre-badge-float .lbl {
    font-size: 0.75rem;
    color: var(--text-soft);
}

.calificari {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    margin: 2rem 0;
}

.calificare {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.9rem 1.2rem;
    background: var(--warm-white);
    border-radius: 0.8rem;
    border: 1px solid var(--border);
    font-size: 0.88rem;
    color: var(--text-main);
}

.calificare-icon {
    color: var(--sage);
}

.misiune-box {
    background: var(--terracotta-pale);
    border-radius: 1.5rem;
    padding: 2rem;
    margin-top: 1.5rem;
    border-left: 4px solid var(--terracotta);
}

.misiune-box blockquote {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.25rem;
    font-style: italic;
    color: var(--brown-dark);
    line-height: 1.6;
}

/* ─── CONTACT ─── */
#contact {
    background: var(--brown-dark);
    color: white;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

#contact .section-label {
    color: var(--terracotta-light);
}

#contact .section-label::before {
    background: var(--terracotta-light);
}

#contact .section-title {
    color: white;
}

#contact .section-title em {
    color: var(--terracotta-light); /* the dark terracotta is too dark on the brown background */
}

#contact .section-sub {
    color: rgba(255, 255, 255, 0.6);
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 2.5rem;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    padding: 1.2rem 1.5rem;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-decoration: none;
    color: white;
    transition: all 0.3s;
}

.contact-method:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(4px);
}

.contact-method-icon {
    width: 2.8rem;
    height: 2.8rem;
    border-radius: 0.8rem;
    background: var(--terracotta);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.contact-method-icon.wa {
    background: #25D366;
}

.contact-method-info {
    display: flex;
    flex-direction: column;
}

.contact-method-label {
    font-size: 0.72rem;
    opacity: 0.6;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.contact-method-val {
    font-size: 1rem;
    font-weight: 500;
}

.contact-cta-box {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 2rem;
    padding: 3rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.contact-cta-box h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.8rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.contact-cta-box p {
    font-size: 0.9rem;
    opacity: 0.65;
    margin-bottom: 2rem;
    line-height: 1.65;
}

.price-display {
    font-family: 'Cormorant Garamond', serif;
    font-size: 3rem;
    font-weight: 600;
    color: var(--terracotta-light);
    margin-bottom: 0.3rem;
}

.price-note {
    font-size: 0.8rem;
    opacity: 0.75;
    margin-bottom: 2rem;
}

.btn-cta-large {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: var(--terracotta);
    color: white;
    padding: 1rem 2.5rem;
    border-radius: 3rem;
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s;
    box-shadow: 0 4px 20px rgba(196, 113, 74, 0.4);
}

.btn-cta-large:hover {
    background: var(--brown-mid);
    transform: translateY(-2px);
}

/* ─── FOOTER ─── */
footer {
    background: #28180E;
    padding: 2rem var(--side);
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.82rem;
    flex-wrap: wrap;
    gap: 1rem;
}

footer .logo-f {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.7);
}

footer .logo-f span {
    color: var(--terracotta-light);
}

/* ─── ANIMATIONS ─── */
/* The first screen must never start fully transparent: Chrome ignores opacity:0 elements as "largest contentful
   paint", so the home page had no LCP at all (Lighthouse / PageSpeed: performance 0). Start at 0.2 instead. */
@keyframes fadeUp {
    from {
        opacity: 0.2;
        transform: translateY(24px);
    }

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

@keyframes fadeDown {
    from {
        opacity: 0.2;
        transform: translateY(-16px);
    }

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

/* Scroll reveal. Content is visible without JavaScript; the script (functions.php) first marks what is already on
   the first screen as visible, then adds .reveal-on, so only content further down starts hidden and fades in. */
.reveal-on .reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal-on .reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* hamburger menu up to 1200px (below that the six labels no longer fit next to the logo and the button);
   after the .hamburger rule above so that it wins */
@media (max-width: 1200px) {
    nav {
        padding-top: 1rem;
        padding-bottom: 1rem;
    }

    .nav-links {
        display: none;
    }

    .hamburger {
        display: flex;
    }
}

/* Logged-in editors: the WordPress admin bar (32px, 46px on narrow screens) sits on top of the fixed menu
   and covered the logo and the button; push the menu below it. Visitors never get the .admin-bar class. */
.admin-bar nav {
    top: 32px;
}

@media (max-width: 782px) {
    .admin-bar nav {
        top: 46px;
    }
}

/* ─── RESPONSIVE ─── */
@media (max-width: 900px) {
    nav {
        padding: 1rem var(--side);
    }

    .nav-links {
        display: none;
    }

    .hamburger{display:flex;}

    section {
        padding: 4rem var(--side);
    }

    main > section:first-child {
        padding-top: 7rem;
    }

    #acasa {
        grid-template-columns: 1fr;
        padding: 7rem var(--side) 3rem;
    }

    .hero-visual {
        display: none;
    }

    #beneficii,
    #despre,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .servicii-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .despre-badge-float {
        right: 0;
    }

    footer {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem var(--side);
    }
}


blockquote:before {
	content: "“";
	position: absolute;
	left: calc(-0.5 * var(--global--spacing-horizontal));
}

blockquote:after {
	content: "”";
	position: absolute;
	left: calc(0.5 * var(--global--spacing-horizontal));
}

/* ─── PAGINI STANDARD (page.php) ─── */
.page-generic {
    padding: 8rem var(--side) 5rem;
}

/* full page width for titles, photos, lists, cards and boxes; running text keeps a readable line length */
.page-content > :is(p, h2, h3, h4, ol, ul:not(.ticks), blockquote, .page-note),
.page-content details p {
    max-width: 48rem;
}

.page-generic__head {
    margin-bottom: 2rem;
}

.page-generic__head .section-sub {
    max-width: none;
}

.page-generic__back {
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.page-generic__back a {
    color: var(--terracotta);
    text-decoration: none;
}

.page-generic__back a:hover {
    text-decoration: underline;
}

.page-generic__image img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 1.5rem;
    margin-bottom: 2rem;
}

/* pages with a photo (service pages, Despre REAB): text on the left, photo on the right */
.page-generic--hero .page-generic__head {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 3rem;
    align-items: center;
    margin-bottom: 3rem;
}

.page-generic--hero .page-generic__image img {
    max-height: 36rem; /* portrait photos: keep the hero no taller than a laptop screen */
    object-fit: cover;
    object-position: 50% 35%;
    margin-bottom: 0;
    box-shadow: 0 20px 50px rgba(61, 43, 31, 0.15);
}

.page-generic__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 1.8rem;
}

/* lists / notes / FAQ that Constantin's texts use (also available in the editor: Text tab) */
.page-content ul.ticks {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0.8rem;
}

.page-content ul.ticks li {
    margin: 0;
    padding: 0.9rem 1.1rem 0.9rem 2.4rem;
    position: relative;
    background: white;
    border: 1px solid var(--border);
    border-radius: 1rem;
    font-size: 0.95rem;
    line-height: 1.55;
}

.page-content ul.ticks li::before {
    content: "✓";
    position: absolute;
    left: 1rem;
    top: 0.9rem;
    color: var(--terracotta);
    font-weight: 700;
}

.page-content ol.steps {
    list-style: none;
    padding: 0;
    counter-reset: step;
}

.page-content ol.steps li {
    counter-increment: step;
    position: relative;
    padding-left: 3.2rem;
    margin: 0 0 1.1rem;
}

.page-content ol.steps li::before {
    content: counter(step);
    position: absolute;
    left: 0;
    top: 0.1rem;
    width: 2.1rem;
    height: 2.1rem;
    border-radius: 50%;
    background: var(--terracotta-pale);
    color: var(--terracotta);
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-content ol.steps li strong {
    display: block;
    color: var(--brown-dark);
}

.page-note {
    background: white;
    border: 1px solid var(--border);
    border-left: 4px solid var(--terracotta);
    border-radius: 0.8rem;
    padding: 1rem 1.3rem;
    font-size: 0.97rem;
}

.page-note--warn {
    background: var(--terracotta-pale);
}

/* review cards (page "Evaluări și recenzii"): <div class="reviews"><figure class="review"><blockquote>…</blockquote>
   <figcaption><strong>Prenume I.</strong> · context</figcaption></figure>…</div> */
.page-content .reviews {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1rem;
}

.page-content .review {
    margin: 0;
    padding: 1.3rem 1.4rem;
    background: white;
    border: 1px solid var(--border);
    border-radius: 1.2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 0.9rem;
}

.page-content .review blockquote {
    background: none;
    border: 0;
    border-radius: 0;
    padding: 0;
    margin: 0;
    font-size: 1.15rem;
    line-height: 1.5;
}

.page-content .review blockquote::before {
    content: "“";
    position: static;
    display: block;
    height: 1.4rem;
    font-size: 2.6rem;
    line-height: 1;
    color: var(--terracotta);
}

.page-content .review figcaption {
    margin: 0;
    text-align: left;
    font-size: 0.88rem;
    color: var(--text-soft);
}

.page-content .review figcaption strong {
    color: var(--brown-dark);
}

.page-content details {
    background: white;
    border: 1px solid var(--border);
    border-radius: 1rem;
    padding: 0 1.2rem;
}

.page-content details + details {
    margin-top: 0.7rem;
}

.page-content summary {
    cursor: pointer;
    font-weight: 600;
    color: var(--brown-dark);
    padding: 0.95rem 0;
    list-style: none;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

.page-content summary::-webkit-details-marker {
    display: none;
}

.page-content summary::after {
    content: "+";
    color: var(--terracotta);
    font-size: 1.3rem;
    line-height: 1.2;
}

.page-content details[open] summary::after {
    content: "–";
}

.page-content details p {
    margin: 0 0 1.1rem;
    color: var(--text-soft);
}

.page-content {
    font-size: 1.02rem;
    line-height: 1.8;
    color: var(--text-main);
}

.page-content > * + * {
    margin-top: 1.1rem;
}

.page-content h2,
.page-content h3,
.page-content h4 {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 500;
    line-height: 1.25;
    color: var(--brown-dark);
    margin-top: 2.2rem;
}

.page-content h2 {
    font-size: clamp(1.6rem, 3vw, 2.1rem);
}

.page-content h3 {
    font-size: clamp(1.3rem, 2.4vw, 1.6rem);
}

.page-content h4 {
    font-size: 1.15rem;
}

.page-content a {
    color: var(--terracotta);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.page-content a:hover {
    color: var(--brown-mid);
}

.page-content ul,
.page-content ol {
    padding-left: 1.4rem;
}

.page-content li + li {
    margin-top: 0.4rem;
}

.page-content li::marker {
    color: var(--terracotta);
}

.page-content img,
.page-content figure img {
    max-width: 100%;
    height: auto;
    border-radius: 1rem;
}

.page-content figcaption,
.page-content .wp-caption-text {
    font-size: 0.85rem;
    color: var(--text-soft);
    margin-top: 0.5rem;
}

.page-content blockquote {
    position: static;
    margin-left: 0;
    margin-right: 0;
    font-weight: 400;
    background: var(--terracotta-pale);
    border-left: 4px solid var(--terracotta);
    border-radius: 1rem;
    padding: 1.4rem 1.6rem;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.2rem;
    font-style: italic;
    color: var(--brown-dark);
}

.page-content blockquote::before,
.page-content blockquote::after {
    content: none;
}

/* the editor wraps the quote text in a <p>, and the parent theme styles that <p> on its own */
.page-content blockquote p {
    font-family: inherit;
    font-size: inherit;
    font-weight: inherit;
    font-style: inherit;
    line-height: inherit;
    letter-spacing: inherit;
    margin: 0;
}

.page-content table {
    width: 100%;
    border: 0;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.page-content th,
.page-content td {
    text-align: left;
    padding: 0.7rem 0.9rem;
    border: 0;
    border-bottom: 1px solid var(--border);
}

.page-content th {
    background: var(--warm-white);
    color: var(--brown-dark);
}

.page-content hr {
    border: 0;
    border-top: 1px solid var(--border);
    margin: 2rem 0;
}

.page-cta {
    margin-top: 3rem;
    padding: 1.8rem 2rem;
    background: var(--sage-pale);
    border-radius: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.page-cta h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--brown-dark);
    margin-bottom: 0.4rem;
}

.page-cta p {
    color: var(--text-soft);
    font-size: 0.97rem;
    max-width: 36rem;
}

.page-cta__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

@media (max-width: 900px) {
    .page-generic {
        padding: 7rem var(--side) 3rem;
    }

    .page-cta {
        flex-direction: column;
        align-items: flex-start;
    }

    .page-generic--hero .page-generic__head {
        grid-template-columns: 1fr;
        gap: 1.8rem;
    }

    .page-generic--hero .page-generic__image {
        max-width: 420px;
    }
}

/* ─── COOKIE BANNER (inc/cookie-consent.php, assets/js/cookie-consent.js) ─── */
.cookie-banner {
    position: fixed;
    z-index: 1000;
    left: 50%;
    bottom: 1.2rem;
    transform: translateX(-50%);
    width: min(46rem, calc(100% - 2 * var(--gutter)));
    max-height: calc(100vh - 2.4rem);
    overflow-y: auto;
    padding: 1.4rem 1.6rem;
    background: white;
    color: var(--text-main);
    border: 1px solid var(--border);
    border-radius: 1.2rem;
    box-shadow: 0 18px 50px rgba(61, 43, 31, 0.22);
    font-size: 0.92rem;
    line-height: 1.6;
}

.cookie-banner[hidden] {
    display: none;
}

.cookie-banner__title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--brown-dark);
    margin-bottom: 0.4rem;
}

.cookie-banner a {
    color: var(--terracotta);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.cookie-banner__prefs {
    display: grid;
    gap: 0.6rem;
    margin-top: 1rem;
}

.cookie-banner__prefs[hidden] {
    display: none;
}

.cookie-pref {
    display: flex;
    gap: 0.8rem;
    align-items: flex-start;
    padding: 0.8rem 1rem;
    border: 1px solid var(--border);
    border-radius: 0.8rem;
    background: var(--warm-white);
    cursor: pointer;
}

/* native checkboxes (the parent theme draws its own) */
.cookie-pref input[type="checkbox"] {
    -webkit-appearance: checkbox;
    appearance: auto;
    margin-top: 0.3rem;
    width: 1.1rem;
    height: 1.1rem;
    border: initial;
    background: initial;
    outline-offset: 2px;
    accent-color: var(--terracotta);
    flex: none;
}

.cookie-pref input[type="checkbox"]::after {
    content: none;
}

.cookie-pref strong {
    display: block;
    color: var(--brown-dark);
}

.cookie-banner__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 1.1rem;
}

/* "Accept" and "Refuz" look the same: refusing is as easy as accepting */
.cookie-btn {
    font: inherit;
    font-weight: 500;
    padding: 0.7rem 1.4rem;
    border-radius: 2rem;
    border: 1px solid var(--brown-dark);
    background: var(--brown-dark);
    color: white;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.cookie-btn:hover,
.cookie-btn:focus-visible {
    background: var(--terracotta);
    border-color: var(--terracotta);
    color: white;
}

.cookie-btn--settings {
    background: none;
    color: var(--brown-dark);
}

.cookie-btn--settings:hover,
.cookie-btn--settings:focus-visible {
    color: white;
}

.cookie-btn[hidden] {
    display: none;
}

.cookie-settings-link {
    font: inherit;
    color: inherit;
    background: none;
    border: 0;
    padding: 0;
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
}

.footer-legal a {
    color: inherit;
}

@media (max-width: 600px) {
    .cookie-banner {
        bottom: 0;
        width: 100%;
        border-radius: 1.2rem 1.2rem 0 0;
        padding: 1.2rem var(--gutter);
    }

    .cookie-btn {
        flex: 1 1 auto;
    }
}
