/* ============================================================
   OPERCONS — Tiny Houses  (/ro/portfolio/modulo)
   Redesign tipografic: aceeași paletă, un singur sistem.

   Se încarcă DUPĂ main.css și category.css:
   <link rel="stylesheet" href="/css/app/portfolio/tiny-houses-type.css">

   ATENȚIE: pe acest site html{font-size:10px} (Bootstrap 3),
   deci toate mărimile de aici sunt în px, nu în rem.
   ============================================================ */

/* ---------- 1. Tokens ---------- */
:root {
    /* paleta existentă, doar denumită */
    --th-cream:  #F7F2EB;
    --th-sand:   #EDE5D8;
    --th-ink:    #2C1A0E;   /* titluri                */
    --th-body:   #4A382C;   /* text curent            */
    --th-muted:  #7A6655;   /* meta, etichete         */
    --th-olive:  #6B7A3A;   /* accent: eyebrow + link */
    --th-line:   rgba(44, 26, 14, .14);

    --th-serif:  "Cormorant Garamond", Georgia, serif;
    --th-sans:   "DM Sans", Arial, Helvetica, sans-serif;

    /* o singură scară, patru trepte */
    --th-display:   clamp(44px, 5vw, 68px);   /* h1 hero            */
    --th-title:     clamp(30px, 2.9vw, 40px); /* titlu de secțiune  */
    --th-subtitle:  21px;                     /* titlu de card      */
    --th-body-size: 16px;
    --th-eyebrow:   11px;

    --th-gap-eyebrow: 14px;   /* eyebrow → titlu  */
    --th-gap-title:   20px;   /* titlu → paragraf */
    --th-section:     96px;   /* padding vertical de secțiune */
}

/* ---------- 2. O singură regulă pentru eyebrow ----------
   Înainte erau patru variante diferite:
   11/500/2.42px, 15/300/3.3px, 11/600/2.42px, 11/500/1.1px. */
.th-banner-supra,
.th-portfolio-label {
    font-family: var(--th-sans);
    font-size: var(--th-eyebrow);
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: .2em;
    text-transform: uppercase;
    margin: 0 0 var(--th-gap-eyebrow);
}

/* ---------- 3. Titluri: toate serif, niciodată sub 400 ---------- */
.th-banner h1,
.th-portfolio-modular h4 {
    font-family: var(--th-serif);
    font-weight: 400;
    font-style: normal;
    letter-spacing: 0;
    text-wrap: balance;
}

/* ---------- 4. Corp de text ---------- */
.th-banner-sub,
.th-portfolio-modular p {
    font-family: var(--th-sans);
    font-size: var(--th-body-size);
    font-weight: 400;          /* era 300 — prea firav pe fundal crem */
    line-height: 1.75;
    letter-spacing: 0;
}


/* ============================================================
   HERO
   ============================================================ */
.th-banner {
    position: relative;
    display: flex;
    align-items: flex-end;
    min-height: 620px;
    height: auto;
    padding: 0 0 72px;
    background-size: cover;
    background-position: center;
    isolation: isolate;
}

/* scrim — textul stă pe imagine, nu se luptă cu ea */
.th-banner::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(to top,   rgba(24,16,10,.70) 0%, rgba(24,16,10,.24) 40%, rgba(24,16,10,0) 70%),
        linear-gradient(to right, rgba(24,16,10,.42) 0%, rgba(24,16,10,.06) 50%, rgba(24,16,10,0) 100%);
}

.th-banner .container { position: relative; }

.th-banner-supra { color: rgba(247, 242, 235, .78); }

/* linie scurtă sub eyebrow — ancorează blocul de text */
.th-banner-supra::after {
    content: "";
    display: block;
    width: 34px;
    height: 1px;
    margin-top: 12px;
    background: rgba(247, 242, 235, .45);
}

.th-banner h1 {
    max-width: 14ch;
    margin: 0 0 var(--th-gap-title);
    font-size: var(--th-display);
    line-height: 1.02;
    color: #fff;
}

.th-banner-sub {
    max-width: 34em;
    margin: 0;
    color: rgba(255, 255, 255, .88);
}


/* ============================================================
   INTRO — bandă bej, imediat sub banner, text de vânzare scurt
   ============================================================ */
.th-intro {
    background: var(--th-sand);
    padding: var(--th-section) 0;
}

.th-intro-in {
    max-width: 960px;
    margin: 0 auto;
    text-align: center;
}

.th-intro-lead {
    font-family: var(--th-serif);
    font-weight: 500;
    font-size: clamp(26px, 3vw, 36px);
    line-height: 1.3;
    color: var(--th-ink);
    margin: 0 0 26px;
    text-wrap: balance;
}

.th-intro-text {
    font-family: var(--th-sans);
    font-size: var(--th-body-size);
    line-height: 1.8;
    color: var(--th-body);
    margin: 0 0 26px;
}

.th-intro-close {
    font-family: var(--th-serif);
    font-style: italic;
    font-size: 19px;
    color: var(--th-olive);
    margin: 0;
}

@media (max-width: 767px) {
    .th-intro { padding: 56px 0; }
    .th-intro-text { line-height: 1.7; }
}


/* ============================================================
   SOLUȚII MODULARE — grid de carduri (redesign aprobat de client,
   2026-09-25: preview in artifact, comparat cu varianta veche).
   Culorile sunt cele din designul aprobat, nu tokenii --th-* —
   e o paletă puțin diferită, intenționat, pentru un aer "de produs".
   ============================================================ */
.th-usecases {
    background-color: #faf8f5;
    padding: 56px 0;
}

.th-usecases .container { max-width: 900px; text-align: center; }

.th-usecases-eyebrow {
    display: block;
    font-family: var(--th-sans);
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: .12em;
    font-weight: 600;
    color: #8c7355;
    margin: 0 0 8px;
}

.th-usecases h4 {
    font-family: var(--th-sans);
    font-weight: 600;
    font-size: 24px;
    line-height: 1.35;
    color: #2c2825;
    text-align: center;
    max-width: 600px;
    margin: 0 auto 36px;
}

.th-usecases-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}
@media (min-width: 768px) {
    .th-usecases-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; }
}

.th-usecase {
    background: #fff;
    border: 1px solid #e8e2d9;
    border-radius: 16px;
    padding: 24px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .02);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease, opacity .5s ease;
}
.th-usecase:hover {
    transform: translateY(-3px);
    border-color: #8c7355;
    box-shadow: 0 8px 20px rgba(140, 115, 85, .12);
}
.th-usecase.is-hidden { opacity: 0; transform: translateY(16px); }

.th-usecase-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background-color: #f4efe8;
    color: #634f37;
    display: flex;
    align-items: center;
    justify-content: center;
}
.th-usecase-icon svg { width: 24px; height: 24px; stroke: currentColor; }

.th-usecase span {
    font-family: var(--th-sans);
    font-size: 15px;
    font-weight: 600;
    line-height: 1.25;
    color: #38322e;
}


/* ============================================================
   CE GĂSEȘTI DOAR LA NOI — 3 deckuri (tip .home-filter-card),
   inlocuiesc vechea banda verde Transport/Montaj: deck 1 e nou
   (sarpanta), deck 2/3 reiau textul + poza de Transport/Montaj.
   ============================================================ */
.th-unique { background: var(--th-sand); padding: var(--th-section) 0; }

.th-unique-head { max-width: 640px; margin: 0 auto 44px; text-align: center; }

.th-unique-head h2 {
    font-family: var(--th-serif);
    font-weight: 400;
    font-size: var(--th-title);
    line-height: 1.15;
    color: var(--th-ink);
    margin: 0;
    text-wrap: balance;
}

.th-unique-lede {
    font-family: var(--th-sans);
    font-size: 15px;
    line-height: 1.6;
    color: var(--th-muted);
    max-width: 56ch;
    margin: 16px auto 0;
}

.th-unique-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}
@media (min-width: 860px) {
    .th-unique-list { grid-template-columns: repeat(3, 1fr); gap: 28px; }
}

.th-unique-card {
    display: flex;
    flex-direction: column;
    background: var(--th-cream);
    border: 1px solid var(--th-line);
    opacity: 1;
    transform: translateY(0);
    transition: opacity .5s ease, transform .5s ease, box-shadow .35s ease;
}
.th-unique-card.is-hidden { opacity: 0; transform: translateY(24px); }
.th-unique-card:hover { transform: translateY(-6px); box-shadow: 0 20px 40px rgba(44, 26, 14, .14); }

.th-unique-photo { height: 220px; overflow: hidden; }
.th-unique-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .6s ease;
}
.th-unique-card:hover .th-unique-photo img { transform: scale(1.08); }

/* poza de montaj e un cadru inalt cu mult cer sus — urcam cadrul ca sa
   se vada casa/macaraua, nu majoritar cer */
.th-unique-photo-bottom img { object-position: center 78%; }

.th-unique-body { padding: 26px 26px 30px; flex: 1; }

.th-unique-tag {
    font-family: var(--th-sans);
    font-size: var(--th-eyebrow);
    font-weight: 500;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--th-olive);
    margin: 0 0 10px;
}

.th-unique-body h3 {
    font-family: var(--th-serif);
    font-weight: 500;
    font-size: var(--th-subtitle);
    line-height: 1.2;
    color: var(--th-ink);
    margin: 0 0 10px;
}

.th-unique-body p:last-child {
    font-family: var(--th-sans);
    font-size: 13.6px;
    line-height: 1.6;
    color: var(--th-body);
    margin: 0;
}

@media (max-width: 767px) {
    .th-unique { padding: 56px 0; }
    .th-unique-head { margin-bottom: 32px; }
}


/* ============================================================
   PORTOFOLIU
   ============================================================ */
.section .th-portfolio-label {
    color: var(--th-olive);
    text-align: center;
    margin-bottom: 22px;
}

hr.category-line {
    max-width: 60px;
    margin: 0 auto 56px;
    border: 0;
    border-top: 1px solid var(--th-line);
}

/* grilă egală în locul coloanelor Bootstrap cu înălțimi diferite */
.category-projects .row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px 30px;
    margin: 0;
}
/* .row::before/::after e clearfix-ul Bootstrap (content:" "; display:table),
   ramas din grila veche pe float -- intr-un parinte display:grid, acele
   pseudo-elemente devin ele insele iteme de grid (o "gaura" invizibila in
   prima celula), impingand primul card real in coloana a doua. Le anulam
   doar aici, unde parintele a trecut pe CSS grid. */
.category-projects .row::before,
.category-projects .row::after {
    content: none;
    display: none;
}
.category-projects .row > [class*="col-"] {
    width: 100%;
    float: none;
    padding: 0;
}
.category-project { padding: 0; margin: 0; }

.category-project a.a-default {
    display: block;
    overflow: hidden;
    text-decoration: none;
    background: transparent;
}

.category-project img {
    width: 100%;
    aspect-ratio: 4 / 3;     /* grila era zimțată: poze de proporții diferite */
    object-fit: cover;
    display: block;
    background: var(--th-sand);
    transition: transform .6s cubic-bezier(.2, .7, .2, 1);
}
.category-project a.a-default:hover img { transform: scale(1.035); }

/* titlul proiectului: serif, nu DM Sans 16px */
.category-project-cnt {
    padding-top: 18px;
    font-family: var(--th-serif);
    font-size: var(--th-subtitle);
    font-weight: 500;
    line-height: 1.3;
    letter-spacing: 0;
    color: var(--th-ink);
    transition: color .25s ease;
}
.category-project:hover .category-project-cnt { color: var(--th-olive); }

.category-project-line {
    margin-top: 16px;
    border-top: 1px solid var(--th-line);
    height: 0;
}


/* spațiul gol dintre grila de proiecte și banda th-tour de mai jos:
   .section global adaugă 100px padding-bottom, peste care se aduna
   și margin-bottom-ul .category-projects — le reducem doar aici,
   la fel cum .th-portfolio-modular își reduce padding-top-ul mai jos */
.th-portfolio-section { padding-bottom: 40px; }
.th-portfolio-section .category-projects { margin-bottom: 0; }

/* sectiunea "Configuratii" sta imediat sub banda verde — mai putin
   padding sus decat .section standard, ca sa nu se departeze prea mult */
.th-config-section { padding-top: 56px; }


/* ============================================================
   BARA "NU AI GASIT CEVA PENTRU TINE" — intre Configuratii si
   Portofoliu. Logo-urile sunt text momentan (span-uri) pana vine
   PNG-ul real de la client pt fiecare soft — vezi TODO din blade.
   ============================================================ */
.th-design-bar { background: #A89070; padding: 26px 0; }

.th-design-bar-in {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 20px 28px;
}

.th-design-bar-text { flex: 1 1 320px; }

.th-design-bar-lead {
    font-family: var(--th-serif);
    font-weight: 500;
    font-size: 20px;
    color: var(--th-ink);
    margin: 0 0 4px;
}

.th-design-bar-sub {
    font-family: var(--th-sans);
    font-size: 13.6px;
    line-height: 1.5;
    color: var(--th-ink);
    opacity: .8;
    margin: 0;
    max-width: 60ch;
}

.th-design-bar-btn { flex: none; padding: 13px 24px; font-size: 12px; }

@media (max-width: 640px) {
    .th-design-bar-text { flex: 1 1 100%; }
    .th-design-bar-btn { flex: 1 1 100%; text-align: center; }
}

.th-design-bar-logos {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px 26px;
    flex: 1 1 100%;
    padding-top: 18px;
    border-top: 1px solid rgba(44, 26, 14, .16);
}

.th-design-bar-logo {
    height: 24px;
    width: auto;
    display: block;
    opacity: .82;
    transition: opacity .2s ease;
}
.th-design-bar-logo:hover { opacity: 1; }

/* sigla Lumion citeste mai mic decat celelalte la aceeasi inaltime
   (traseu subtire + literele UMION nu au aceeasi densitate ca un bloc
   plin ca AUTOCAD) — o urcam putin ca sa aiba aceeasi prezenta vizuala */
.th-design-bar-logo-lumion { height: 18px; }


/* ============================================================
   CONFIGURAȚII (MOD 2 / MOD 3 / MOD 4) — 3 carduri compacte pe rând.
   Poza e mare și necuprinsă de text (fără gradient) — tag/nume/
   subtitlu stau în cadranul alb de dedesubt, un panou tip "deck"
   (ca la .info-deck) ținut cât mai scund din tipografie/padding
   condensate, ca poza să domine cardul. Fără buton CTA — prețul e
   deja afișat, cardul întreg e clickable (stretched-link) + link-ul
   "Vezi detalii".

   .th-model-grid stă în afara lui .container (vezi category.blade.php
   — labelul + hr rămân în container, grid-ul e sibling, nu copil),
   ca să umple ecranul pe orizontală în loc să se oprească la
   max-width:1170px al containerului Bootstrap. Păstrăm doar un
   padding mic pe margini, ca să nu lipească exact de marginea
   ferestrei.
   ============================================================ */
.th-model-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 0 15px;
}
@media (min-width: 768px) {
    .th-model-grid { grid-template-columns: repeat(3, minmax(0,1fr)); gap: 24px; padding: 0 24px; }
}

.th-model-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: #FFFDF9;
    border: 1px solid var(--th-line);
}
.th-model-card-stretched-link { position: absolute; inset: 0; z-index: 1; }

.th-model-card-photo {
    position: relative;
    height: 380px;
    background: var(--th-sand);
}

.th-model-card-deck { padding: 18px 22px 20px; display: flex; flex-direction: column; flex: 1; }
.th-model-card-tag {
    font-family: var(--th-sans);
    font-size: 9.5px;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--th-muted);
    margin: 0 0 5px;
}
.th-model-card-name {
    font-family: var(--th-serif);
    font-size: 22px;
    line-height: 1.06;
    color: var(--th-ink);
    margin: 0 0 3px;
    font-weight: 500;
}
.th-model-card-sub { font-size: 12px; color: var(--th-muted); margin: 0; line-height: 1.35; }

.th-model-card-specs {
    list-style: none;
    margin: 0 0 12px;
    padding: 12px 0 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 9px 14px;
    border-top: 1px solid var(--th-line);
}
.th-model-card-specs dt {
    font-family: var(--th-sans);
    font-size: 9px;
    letter-spacing: .13em;
    text-transform: uppercase;
    color: var(--th-muted);
    margin-bottom: 2px;
}
.th-model-card-specs dd { margin: 0; font-size: 13px; color: var(--th-ink); font-weight: 500; line-height: 1.3; }

.th-model-card-price {
    display: flex;
    align-items: baseline;
    gap: 8px;
    flex-wrap: wrap;
    border-top: 1px solid var(--th-line);
    padding-top: 12px;
    margin-top: auto;
}
.th-model-card-price .from {
    font-family: var(--th-sans);
    font-size: 9.5px;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--th-muted);
}
.th-model-card-price .v { font-family: var(--th-serif); font-size: 22px; line-height: 1; color: var(--th-ink); }
.th-model-card-price .u { font-size: 11.5px; color: var(--th-muted); }

.th-model-card-cta { margin-top: 10px; position: relative; z-index: 2; }
.th-model-card-cta .arrowlink {
    font-size: 13px;
    font-weight: 500;
    color: var(--th-olive);
    text-decoration: none;
    border-bottom: 1px solid transparent;
}
.th-model-card-cta .arrowlink:hover { border-bottom-color: var(--th-olive); }

.btn-dark {
    display: inline-block;
    background: var(--th-ink);
    color: var(--th-cream);
    border: 1px solid var(--th-ink);
    font-family: var(--th-sans);
    font-size: 12.5px;
    font-weight: 500;
    letter-spacing: .16em;
    text-transform: uppercase;
    padding: 14px 28px;
    text-decoration: none;
    transition: background .15s;
    position: relative;
    z-index: 2;
}
.btn-dark:hover { background: var(--th-olive); border-color: var(--th-olive); color: #fff; }


/* ============================================================
   TURNEUL FOOD TRUCK — intenționat neatins (rămâne exact ca pe
   staging: layout flex cu accordion la hover, raport 4:5).
   ============================================================ */


/* ============================================================
   CTA FINAL
   ============================================================ */
.th-portfolio-modular { padding: var(--th-section) 0; }

.th-portfolio-modular hr {
    max-width: 60px;
    margin: 0 auto;
    border: 0;
    border-top: 1px solid var(--th-line);
}

.th-portfolio-modular h4 {
    margin: 56px 0 var(--th-gap-title);
    font-size: var(--th-title);
    line-height: 1.2;
    color: var(--th-ink);
}

.th-portfolio-modular p.margin-bottom-sec {
    max-width: 520px;
    margin: 0 auto 28px;
    color: var(--th-body);
}

.th-portfolio-modular a {
    font-family: var(--th-sans);
    font-size: var(--th-eyebrow);
    font-weight: 600;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--th-olive);
    text-decoration: none;
    border-bottom: 1px solid rgba(107, 122, 58, .45);
    padding-bottom: 4px;
    transition: border-color .25s ease;
}
.th-portfolio-modular a:hover { border-bottom-color: var(--th-olive); }


/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
    :root { --th-section: 72px; }

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

@media (max-width: 767px) {
    :root {
        --th-section: 56px;
        --th-display: 40px;
        --th-title:   28px;
    }

    .th-banner      { min-height: 480px; padding-bottom: 48px; }
    .th-banner h1   { max-width: none; }

    .th-usecases { padding: 40px 0; }

    .category-projects .row { grid-template-columns: 1fr; gap: 32px; }

    /* pe telefon randurile de logo-uri nu umplu latimea (6 logo-uri,
       latimi diferite) -- centram fiecare rand in parte, nu doar primul */
    .th-design-bar-logos { justify-content: center; }
}
