@charset "UTF-8";

/* shared stylesheet for the alinaivan.ro rebuild - calm, minimal, geometric sans */

/* self-hosted google fonts (latin + latin-ext for romanian diacritics), served from assets/fonts/ */
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url(fonts/cormorant-garamond-500-italic-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url(fonts/cormorant-garamond-500-italic.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(fonts/cormorant-garamond-500-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(fonts/cormorant-garamond-500.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(fonts/cormorant-garamond-600-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(fonts/cormorant-garamond-600.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Jost';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/jost-400-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Jost';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/jost-400.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Jost';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(fonts/jost-500-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Jost';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(fonts/jost-500.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Jost';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(fonts/jost-600-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Jost';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(fonts/jost-600.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}


:root {
    --clr-ink: #383838;
    --clr-ink-soft: #5c6a6e;
    --clr-slate: #42565c;
    --clr-slate-deep: #35464b;
    --clr-teal: #6ca0ac;
    --clr-teal-deep: #3f6d79;
    --clr-teal-soft: #dbe7ea;
    --clr-mist: #eef0f2;
    --clr-paper: #fbfbfa;
    --clr-white: #ffffff;
    --font-body: 'Jost', 'Futura', sans-serif;
    --font-display: 'Cormorant Garamond', Georgia, serif;
    --max-width: 1160px;
    --section-pad: clamp(3.5rem, 8vw, 6.5rem);
}

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

/* overflow-x clip (not hidden) kills the sideways scroll created by the offscreen mobile nav while keeping position: sticky working */
html { scroll-behavior: smooth; overflow-x: clip; }
html { scroll-padding-top: 90px; }
body { overflow-x: clip; }

body {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 1.0625rem;
    line-height: 1.7;
    color: var(--clr-ink);
    background: var(--clr-paper);
    -webkit-font-smoothing: antialiased;
}

/* height: auto lets aspect-ratio win over the height attribute's presentational hint */
img { max-width: 100%; height: auto; display: block; }

a { color: var(--clr-teal-deep); text-decoration: none; }

.container {
    max-width: var(--max-width);
    margin-inline: auto;
    padding-inline: clamp(1rem, 4vw, 2rem);
}

h1, h2, h3 {
    font-weight: 500;
    line-height: 1.25;
    color: var(--clr-slate);
    letter-spacing: 0.01em;
}

/* serif display voice for the two top heading levels, echoing the script logo and the original site */
h1, h2 {
    font-family: var(--font-display);
    font-weight: 500;
    line-height: 1.15;
    letter-spacing: 0;
}

h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.45rem); }

.eyebrow {
    display: block;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--clr-teal-deep);
    margin-bottom: 0.9rem;
}

.btn {
    display: inline-block;
    background: var(--clr-slate);
    color: var(--clr-white);
    padding: 0.85rem 2.2rem;
    border: 1px solid var(--clr-slate);
    border-radius: 999px;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.btn:hover { background: var(--clr-teal); border-color: var(--clr-teal); color: var(--clr-white); }

.btn-ghost {
    background: transparent;
    color: var(--clr-slate);
}

.btn-ghost:hover { background: var(--clr-slate); color: var(--clr-white); }

.btn-light {
    background: var(--clr-white);
    border-color: var(--clr-white);
    color: var(--clr-slate);
}

.btn-light:hover { background: var(--clr-teal-soft); border-color: var(--clr-teal-soft); color: var(--clr-slate); }

/* status label shaped like a button, for a programme with nothing to link to yet */
.btn-quiet {
    background: transparent;
    border-color: #c3cbce;
    color: var(--clr-ink-soft);
    cursor: default;
}

/* -- header ----------------------------------------------- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    /* dark slate header with the white script logo, as on the original site. no backdrop-filter -
       a filter here would become the containing block for the fixed mobile nav and collapse it */
    background: var(--clr-slate);
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    min-height: 76px;
}

.brand { line-height: 0; }
/* faint 1px white glow thickens the thin script strokes just enough to read on slate */
.brand .brand-logo { height: 58px; width: auto; filter: drop-shadow(0 0 1px rgba(255, 255, 255, 0.45)); }

.main-nav { display: flex; align-items: center; gap: clamp(1rem, 2.4vw, 2rem); }

.main-nav a {
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.95rem;
    letter-spacing: 0.04em;
    padding: 0.4rem 0;
    border-bottom: 2px solid transparent;
    transition: color 0.2s, border-color 0.2s;
}

.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--clr-white); border-color: var(--clr-teal-soft); }

.main-nav .nav-cta {
    background: transparent;
    color: var(--clr-white);
    padding: 0.6rem 1.4rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.65);
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.main-nav .nav-cta:hover { background: var(--clr-white); color: var(--clr-slate); }

/* servicii dropdown - slate panel on desktop, inline links on mobile */
.has-sub { position: relative; }

.sub-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
    min-width: 300px;
    padding: 1.2rem 1.6rem;
    background: var(--clr-slate);
    border-radius: 10px;
    box-shadow: 0 16px 38px rgba(30, 42, 46, 0.28);
}

.has-sub:hover .sub-menu, .has-sub:focus-within .sub-menu { display: flex; }

.main-nav .sub-menu a {
    color: var(--clr-white);
    border-bottom: none;
    padding: 0.55rem 0;
    white-space: nowrap;
}

.main-nav .sub-menu a:hover { color: var(--clr-teal-soft); }

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 44px;
    height: 44px;
    padding: 10px;
}

.nav-toggle span {
    display: block;
    height: 2px;
    background: var(--clr-white);
    margin: 5px 0;
    transition: transform 0.25s, opacity 0.25s;
}

@media (max-width: 900px) {
    .nav-toggle { display: block; }
    .main-nav {
        position: fixed;
        inset: 76px 0 0 0;
        flex-direction: column;
        justify-content: flex-start;
        padding-top: 3rem;
        gap: 1.6rem;
        background: var(--clr-slate);
        transform: translateX(100%);
        visibility: hidden;
        transition: transform 0.3s ease, visibility 0.3s ease;
    }
    .main-nav.open { transform: translateX(0); visibility: visible; }
    .main-nav a { font-size: 1.15rem; }
    .has-sub { display: flex; flex-direction: column; align-items: center; }
    .sub-menu {
        position: static;
        transform: none;
        display: flex;
        min-width: 0;
        margin-top: 0.7rem;
        padding: 0.6rem 1.6rem;
        background: rgba(255, 255, 255, 0.07);
        border-radius: 8px;
        box-shadow: none;
    }
    .main-nav .sub-menu a { color: rgba(255, 255, 255, 0.75); font-size: 0.95rem; padding: 0.3rem 0; }
    body.nav-locked { overflow: hidden; }
    .nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .nav-toggle.open span:nth-child(2) { opacity: 0; }
    .nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* -- page building blocks --------------------------------- */

.section { padding-block: var(--section-pad); }
.section-mist { background: var(--clr-mist); }
.section-slate { background: var(--clr-slate); color: var(--clr-white); }
.section-slate h1, .section-slate h2, .section-slate h3 { color: var(--clr-white); }
.section-slate .eyebrow { color: var(--clr-teal-soft); }

.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(2rem, 5vw, 4.5rem);
    align-items: center;
}

.split .split-media img {
    width: 100%;
    height: 100%;
    max-height: 620px;
    object-fit: cover;
    border-radius: 14px;
}

/* image column matches the exact height of the text column: the absolutely
   positioned image fills the column without contributing to the row height */
/* portrait that would otherwise tower over the text beside it */
.split-media--small { max-width: 400px; align-self: start; justify-self: end; }

.split-fill { align-items: stretch; }
.split-fill .split-media { position: relative; }
.split-fill .split-media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-height: none;
    object-fit: cover;
}

/* uniform spacing between any mix of paragraphs, lists and definition lists */
.prose :is(p, ul, ol, dl) + :is(p, ul, ol, dl) { margin-top: 1.1rem; }
.prose dt { font-weight: 600; color: var(--clr-slate); }
.prose dd { margin: 0.3rem 0 1.1rem 1.2rem; }
.prose dd:last-child { margin-bottom: 0; }
.prose ul { padding-left: 1.2rem; }
.prose li + li { margin-top: 0.5rem; }
.prose strong { font-weight: 600; color: var(--clr-slate); }

.page-hero {
    background: var(--clr-mist);
    padding-block: clamp(3rem, 6vw, 5rem);
}

.page-hero p.lede { max-width: 62ch; margin-top: 1rem; color: var(--clr-ink-soft); }

.cta-band { text-align: center; }
.cta-band p { max-width: 60ch; margin: 1rem auto 2rem; color: var(--clr-teal-soft); }

@media (max-width: 800px) {
    .split { grid-template-columns: 1fr; }
    .split .split-media { order: -1; }
    .split .split-media img { max-height: 420px; }
    .split-fill .split-media img { position: static; height: auto; max-height: 420px; }
    .split-media--small { max-width: none; }
    .btn { width: 100%; text-align: center; }
    .btn-row { gap: 1.2rem; }
    .btn-row .link-arrow { width: 100%; justify-content: center; }
}

/* -- footer ----------------------------------------------- */

.site-footer {
    background: var(--clr-slate-deep);
    color: rgba(255, 255, 255, 0.85);
    padding-block: clamp(2.5rem, 5vw, 4rem) 1.5rem;
    font-size: 0.95rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1.4fr;
    align-items: start;
    gap: clamp(1.6rem, 4vw, 3rem);
}

.site-footer .footer-logo { width: 300px; }
.site-footer h4 {
    color: var(--clr-white);
    font-size: 1.15rem;
    font-weight: 500;
    margin-bottom: 1rem;
}
.site-footer ul { list-style: none; }
.site-footer li + li { margin-top: 0.55rem; }
.site-footer a { color: rgba(255, 255, 255, 0.85); }
.site-footer a:hover { color: var(--clr-teal-soft); }
.footer-tagline { max-width: 34ch; color: rgba(255, 255, 255, 0.7); line-height: 1.6; }

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    margin-top: 2.5rem;
    padding-top: 1.4rem;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.55);
}

.footer-bottom a { color: rgba(255, 255, 255, 0.55); text-decoration: underline; text-underline-offset: 2px; }

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

/* -- rhythm breakers -------------------------------------- */

/* image column bleeds to the left viewport edge */
.split-bleed-left .split-media { margin-left: calc(50% - 50vw); }
.split-bleed-left .split-media img { border-radius: 0 14px 14px 0; }


/* wide lede paragraph under a section heading */
.lede-wide {
    max-width: 75ch;
    margin-top: 1.2rem;
    font-size: 1.15rem;
    color: var(--clr-ink-soft);
}

/* primary pill next to a quiet arrow link - one pressable thing per hero */
.btn-row { display: flex; flex-wrap: wrap; align-items: center; gap: 1.5rem; margin-top: 2rem; }
.btn-row .btn { padding-inline: 1.8rem; }
.btn-row .link-arrow { white-space: nowrap; }

.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 0;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--clr-slate);
    transition: color 0.2s;
}

.link-arrow::after { content: '\2192'; transition: transform 0.15s ease; }
.link-arrow:hover { color: var(--clr-teal-deep); }
.link-arrow:hover::after { transform: translateX(4px); }

/* centered section intro - heading and lede stack on the container axis */
.section-head-center { text-align: center; }
.section-head-center h2 { margin-inline: auto; }
.section-head-center .lede-wide { margin-inline: auto; }

/* three method columns as white cards; subgrid keeps every body text starting at the height set by the longest title */
.method-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(1.2rem, 2.5vw, 2rem);
    margin-top: clamp(2rem, 4vw, 3.2rem);
}

.method-grid > div {
    display: grid;
    grid-template-rows: subgrid;
    grid-row: span 2;
    row-gap: 0;
    align-content: start;
    background: var(--clr-white);
    border: 1px solid var(--clr-mist);
    border-radius: 14px;
    padding: clamp(1.6rem, 2.5vw, 2.2rem);
}

/* the two subsections of the services section: pentru tine / pentru specialisti */
.work-group { margin-top: clamp(2.6rem, 5vw, 3.8rem); }

.work-group > h3 {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: clamp(1.55rem, 2.6vw, 2rem);
    text-align: center;
}

.work-group .group-lede { max-width: 68ch; margin: 0.7rem auto 1.8rem; text-align: center; color: var(--clr-ink-soft); }

.work-group .card h3 { font-family: var(--font-display); font-weight: 600; }

/* testimonial pull-quotes - no boxes, an oversized mark and serif italic text */
.quote-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(2.5rem, 6vw, 5rem);
}

/* the mark opens the quoted text and the first lines wrap around it, drop-cap style */
.pull-quote .quote-attribution + p::before {
    content: '\201E';
    float: left;
    font-family: var(--font-display);
    font-size: 5rem;
    line-height: 0.9;
    margin: -0.7em 0.05em 0 0;
    color: var(--clr-teal-deep);
    opacity: 0.45;
}

.pull-quote p {
    font-family: var(--font-display);
    font-style: italic;
    font-size: 1.2rem;
    line-height: 1.6;
}

.pull-quote p + p { margin-top: 1rem; }

.pull-quote .quote-attribution {
    font-family: var(--font-body);
    font-style: normal;
    font-size: 0.82rem;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--clr-teal-deep);
    margin-bottom: 1.2rem;
}

@media (max-width: 900px) {
    .split-bleed-left .split-media { margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); }
    .split-bleed-left .split-media img { border-radius: 0; }
    .method-grid { grid-template-columns: 1fr; }
    .method-grid > div { display: block; }
    .quote-grid { grid-template-columns: 1fr; }
}

/* -- program listings (pentru specialisti) ---------------- */

.program-card {
    background: var(--clr-white);
    border: 1px solid var(--clr-mist);
    border-radius: 14px;
    padding: clamp(1.6rem, 3vw, 2.4rem);
    margin-top: 1.6rem;
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: clamp(1.6rem, 3vw, 2.6rem);
    align-items: start;
}

/* a card without meta (in curand) keeps its text across the full width */
.program-card > .program-body:only-child { grid-column: 1 / -1; }

.program-card p { margin-top: 0.8rem; max-width: 75ch; }

/* the details box: mist panel with the entries stacked */
.program-meta {
    list-style: none;
    background: var(--clr-mist);
    border-radius: 14px;
    padding: clamp(1.3rem, 2vw, 1.8rem);
    margin: 0;
}

.program-meta li { line-height: 1.45; }
.program-meta li + li { margin-top: 0.9rem; }

.program-card-stacked .program-meta li + li { margin-top: 0; }

.program-meta li strong {
    display: block;
    font-weight: 600;
    color: var(--clr-slate);
    font-size: 0.82rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 0.15rem;
}

.program-card .btn { margin-top: 1.6rem; }

.program-card .program-note { margin-top: 1.4rem; max-width: none; font-size: 0.9rem; font-style: italic; color: var(--clr-ink-soft); }

.program-card h3 { font-size: clamp(1.5rem, 2.4vw, 1.9rem); }

/* the changing part of a program title, on its own row under the name */
.program-card .program-subtitle {
    margin-top: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--clr-teal-deep);
}

@media (max-width: 900px) {
    .program-card { grid-template-columns: 1fr; }
}

/* -- cards ------------------------------------------------ */

.card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(1.2rem, 2.5vw, 2rem);
}

.card-grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
    background: var(--clr-white);
    border: 1px solid var(--clr-mist);
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.25s, box-shadow 0.25s;
}

.card:hover { transform: translateY(-4px); box-shadow: 0 14px 34px rgba(66, 86, 92, 0.14); }

/* cards used as whole-card links keep the normal text colors */
a.card { color: inherit; }
a.card h3 { transition: color 0.2s; }
a.card:hover h3 { color: var(--clr-teal-deep); }
a.card:hover .card-link { color: var(--clr-teal-deep); }

.card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

.card .card-body { padding: 1.6rem 1.6rem 1.8rem; display: flex; flex-direction: column; flex: 1; }
.card .card-body p { color: var(--clr-ink-soft); margin: 0.7rem 0 1.2rem; flex: 1; }

/* text-only cards (testimonials): no flex stretching, normal prose spacing */
.card .card-body.prose { justify-content: flex-start; }
.card .card-body.prose p { flex: none; margin: 0; }
.card .card-body.prose p + p { margin-top: 1rem; }
.card .card-link {
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--clr-slate);
}
.card .card-link:hover { color: var(--clr-teal-deep); }

/* 3-column card grids align like the method grid: image, title, body and link sit on shared subgrid
   rows, so every body text starts at the level set by the longest title in the row */
.card-grid:not(.card-grid-2) > .card { display: grid; grid-template-rows: subgrid; grid-row: span 4; row-gap: 0; }
.card-grid:not(.card-grid-2) > .card .card-body { display: contents; }
.card-grid:not(.card-grid-2) > .card .card-body h3 { padding: 1.6rem 1.6rem 0; }
.card-grid:not(.card-grid-2) > .card .card-body p { padding: 0 1.6rem; margin: 0.7rem 0 1.2rem; }
.card-grid:not(.card-grid-2) > .card .card-link, .card-grid:not(.card-grid-2) > .card .card-foot { padding: 0 1.6rem 1.8rem; align-self: end; }
.card-grid:not(.card-grid-2) > .card .card-foot .card-link { padding: 0; }

@media (max-width: 900px) {
    .card-grid, .card-grid-2 { grid-template-columns: 1fr; }
    .card-grid:not(.card-grid-2) > .card { display: flex; }
    .card-grid:not(.card-grid-2) > .card .card-body { display: flex; flex-direction: column; flex: 1; }
    .card-grid:not(.card-grid-2) > .card .card-body h3 { padding: 0; }
    .card-grid:not(.card-grid-2) > .card .card-body p { padding: 0; }
    .card-grid:not(.card-grid-2) > .card .card-link { padding: 0; }
}

/* -- forms ------------------------------------------------ */

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.form-grid .full { grid-column: 1 / -1; }

label { display: block; font-size: 0.9rem; font-weight: 500; color: var(--clr-slate); margin-bottom: 0.4rem; }
.label-hint { font-weight: 400; color: var(--clr-ink-soft); }

/* read badge: eye icon and the count, kept on one line */
.views {
    display: inline-flex;
    align-items: center;
    gap: 0.35em;
    white-space: nowrap;
}

.views-icon { width: 1.15em; height: 1.15em; opacity: 0.75; }

/* the count shares the card's bottom row with the "citește articolul" link, and the byline row at
   the head of an article */
.card-foot { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.card-foot .views { color: var(--clr-ink-soft); font-size: 0.9rem; }

.article-head-meta { display: flex; align-items: baseline; justify-content: space-between; gap: 1.4rem; flex-wrap: wrap; }
.article-head-meta .article-meta { margin-bottom: 0; }
.article-head-meta .views { color: var(--clr-ink-soft); font-size: 0.9rem; }

/* share icons under an article, the row her old blog ended with */
.share-row {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 1.6rem;
    margin-top: 2.4rem;
    padding-top: 1.6rem;
    border-top: 1px solid var(--clr-mist);
}

.share-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0;
    border: 0;
    background: none;
    color: var(--clr-slate);
    font: inherit;
    cursor: pointer;
    transition: color 0.2s;
}

.share-link svg { width: 20px; height: 20px; }
.share-link:hover { color: var(--clr-teal-deep); }
/* confirmation tooltip over the copy icon: the bubble and, on ::before, the little arrow under it */
.share-link.is-copied::after,
.share-link.is-copied::before {
    position: absolute;
    left: 50%;
    animation: tooltip-in 0.18s ease-out;
    pointer-events: none;
}

.share-link.is-copied::after {
    content: 'Link copiat';
    bottom: calc(100% + 0.7rem);
    transform: translateX(-50%);
    padding: 0.4rem 0.7rem;
    border-radius: 6px;
    background: var(--clr-slate);
    color: var(--clr-white);
    font-size: 0.78rem;
    letter-spacing: 0.03em;
    white-space: nowrap;
    box-shadow: 0 6px 18px rgba(66, 86, 92, 0.22);
}

.share-link.is-copied::before {
    content: '';
    bottom: calc(100% + 0.25rem);
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: var(--clr-slate);
}

@keyframes tooltip-in {
    from { opacity: 0; transform: translateX(-50%) translateY(4px); }
    to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

input[type="text"], input[type="email"], input[type="tel"], select, textarea {
    width: 100%;
    min-height: 48px;
    padding: 0.7rem 0.9rem;
    font-family: inherit;
    font-size: 1rem;
    color: var(--clr-ink);
    background: var(--clr-white);
    border: 1px solid #cfd8da;
    border-radius: 2px;
}

textarea { min-height: 140px; resize: vertical; }

input:focus, select:focus, textarea:focus {
    outline: 2px solid var(--clr-teal);
    outline-offset: 1px;
    border-color: var(--clr-teal);
}

/* confirmation / failure notice above the contact form */
.form-notice { margin-top: 1.4rem; padding: 0.9rem 1.2rem; border-radius: 10px; font-size: 0.95rem; }
.form-notice-ok { background: var(--clr-teal-soft); color: var(--clr-slate); }
.form-notice-error { background: #f6e3e3; color: #7a3b3b; }

.check-row { display: flex; gap: 0.6rem; align-items: flex-start; font-size: 0.92rem; color: var(--clr-ink-soft); }
.check-row input { width: 18px; height: 18px; margin-top: 0.25rem; }

/* -- map embed -------------------------------------------- */

/* the address shows through until google paints the map over it, so a slow load never looks broken */
.map-embed {
    position: relative;
    margin-top: 2rem;
    border-radius: 14px;
    overflow: hidden;
    background: var(--clr-mist);
}

.map-embed::before {
    content: attr(data-address);
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    text-align: center;
    color: var(--clr-ink-soft);
    font-size: 1.05rem;
}

/* -- article / policy prose pages ------------------------- */

.article {
    max-width: 760px;
    margin-inline: auto;
    padding-inline: clamp(1rem, 4vw, 2rem);
}

.page-hero .article h1 { line-height: 1.12; }

.article-meta { color: var(--clr-ink-soft); font-size: 0.92rem; margin-top: 0.8rem; }

/* .article and .prose sit on the same element, so no descendant combinator */
.article.prose h2, .article .prose h2 { margin-top: 2.4rem; margin-bottom: 1rem; }
.article.prose h3, .article .prose h3 { margin-top: 1.8rem; margin-bottom: 0.6rem; }
.article.prose ol, .article .prose ol { padding-left: 1.3rem; }
.article.prose li > ul, .article .prose li > ul { margin-top: 0.5rem; padding-left: 1.2rem; }
.article.prose ol li + li, .article .prose ol li + li { margin-top: 0.5rem; }
.article figure img { border-radius: 14px; }

/* white cards keep their own text colors on the dark blog listing */
.section-slate .card h3 { color: var(--clr-slate); }

/* informative-only disclaimer and author box at the end of blog articles */
.article-note { font-size: 0.88rem; font-style: italic; color: var(--clr-ink-soft); }

.article-author {
    margin-top: 2.2rem;
    padding: 1.3rem 1.6rem;
    background: var(--clr-mist);
    border-radius: 14px;
    font-size: 0.95rem;
}

/* -- reveal on scroll ------------------------------------- */

/* ease-out-quart deceleration; grid children stagger left to right */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s cubic-bezier(0.25, 1, 0.5, 1), transform 0.7s cubic-bezier(0.25, 1, 0.5, 1); }
.reveal.visible { opacity: 1; transform: none; }

:is(.card-grid, .method-grid, .quote-grid) > .reveal:nth-child(2) { transition-delay: 0.1s; }
:is(.card-grid, .method-grid, .quote-grid) > .reveal:nth-child(3) { transition-delay: 0.2s; }

@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; transition: none; }
    html { scroll-behavior: auto; }
    .share-link.is-copied::after,
    .share-link.is-copied::before { animation: none; }
}


/* firimituri: aceleași date ca json-ld-ul din head. fundalul urmează hero-ul, ca să citească
   drept parte din el, nu ca o bară separată */
.breadcrumb {
    background: var(--clr-mist);
    padding-top: clamp(1.4rem, 3vw, 2rem);
    font-size: 0.82rem;
    letter-spacing: 0.06em;
    color: var(--clr-ink-soft);
}

.breadcrumb .container { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.15rem 0.55rem; }

.breadcrumb a { color: var(--clr-ink-soft); }
.breadcrumb a:hover { color: var(--clr-slate); text-decoration: underline; text-underline-offset: 3px; }

/* inline-block ține separatorul în afara sublinierii de hover a linkului */
.breadcrumb a::after {
    content: '\203A';
    display: inline-block;
    margin-left: 0.55rem;
    color: #9aa5a9;
}

.breadcrumb [aria-current="page"] { color: var(--clr-slate); }

@media (max-width: 800px) {
    .breadcrumb { font-size: 0.78rem; }
}
