/* casa2001.ro — design system "Borderou" (docs/DESIGN.md, ales 24.08.2026).
   Tokens pe :root; zero stil inline în blade-uri (CSP). */

@font-face {
    font-family: 'Archivo';
    src: url('../fonts/archivo-100-900-latin-ext.woff2') format('woff2');
    font-weight: 100 900;
    font-stretch: 62% 125%;
    font-display: swap;
    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: 'Archivo';
    src: url('../fonts/archivo-100-900-latin.woff2') format('woff2');
    font-weight: 100 900;
    font-stretch: 62% 125%;
    font-display: swap;
    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: 'Source Sans 3';
    src: url('../fonts/source-sans-3-200-900-latin-ext.woff2') format('woff2');
    font-weight: 200 900;
    font-display: swap;
    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: 'Source Sans 3';
    src: url('../fonts/source-sans-3-200-900-latin.woff2') format('woff2');
    font-weight: 200 900;
    font-display: swap;
    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: 'IBM Plex Mono';
    src: url('../fonts/ibm-plex-mono-400-latin-ext.woff2') format('woff2');
    font-weight: 400;
    font-display: swap;
    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: 'IBM Plex Mono';
    src: url('../fonts/ibm-plex-mono-400-latin.woff2') format('woff2');
    font-weight: 400;
    font-display: swap;
    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: 'IBM Plex Mono';
    src: url('../fonts/ibm-plex-mono-500-latin-ext.woff2') format('woff2');
    font-weight: 500;
    font-display: swap;
    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: 'IBM Plex Mono';
    src: url('../fonts/ibm-plex-mono-500-latin.woff2') format('woff2');
    font-weight: 500;
    font-display: swap;
    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 {
    --bg: #FAF8F4;
    --ink: #161613;
    --ink-soft: #44443F;
    --ink-muted: #6B6B64;
    --rule: rgba(22, 22, 19, 0.13);
    --accent: #C4571E;
    --green: #2E4636;
    --paper: #FFFFFF;

    --font-display: 'Archivo', 'Arial Narrow', sans-serif;
    --font-body: 'Source Sans 3', -apple-system, 'Segoe UI', sans-serif;
    --font-mono: 'IBM Plex Mono', 'Consolas', monospace;

    --wrap: 1100px;
    --pad: 40px;
}

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

html { scroll-behavior: smooth; }

body {
    background: var(--bg);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }

a { color: inherit; }

/* ---------- header ---------- */
.site-header { border-bottom: 1px solid var(--rule); }
.header-row { display: flex; justify-content: space-between; align-items: center; padding-top: 8px; padding-bottom: 8px; gap: 16px; }
.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand-logo { display: block; height: 44px; width: auto; }
.site-nav { display: flex; gap: 26px; align-items: center; font-family: var(--font-display); font-size: 14px; font-weight: 500; }
.site-nav a { text-decoration: none; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--accent); }
.nav-login { color: var(--ink-muted); }
.lang-switch { display: inline-flex; gap: 8px; border-left: 1px solid var(--rule); padding-left: 18px; }
.lang-switch a[aria-current="true"] { color: var(--accent); font-weight: 500; }
.nav-toggle { display: none; font-family: var(--font-display); font-size: 13px; background: none; border: 1px solid var(--rule); padding: 8px 14px; cursor: pointer; color: var(--ink); text-transform: uppercase; letter-spacing: 0.1em; }

/* ---------- hero & page heads ---------- */
.hero { padding: 84px 0 72px; border-bottom: 1px solid var(--rule); text-align: center; }
.hero h1 { margin-left: auto; margin-right: auto; line-height: 1.28; max-width: none; font-size: clamp(38px, 5.9vw, 66px); }
/* Tamburul: randul de sus poarta banda negru->verde, cel de jos
   bordeaux->rosu; tamburul se roteste si culorile curg ORIZONTAL prin
   literele decupate. Ciclul e dublat in imagine => bucla fara cusatura. */
.hero h1 .line-a {
    display: block;
    background: linear-gradient(90deg, #121712 0%, #5E8F72 25%, #121712 50%, #5E8F72 75%, #121712 100%);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    animation: drum-roll 16s linear infinite;
}
.hero h1 .accent {
    display: block;
    background: linear-gradient(90deg, #6D1321 0%, #C22033 25%, #6D1321 50%, #C22033 75%, #6D1321 100%);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    animation: drum-roll 16s linear infinite;
}
@keyframes drum-roll {
    from { background-position: 100% 50%; }
    to   { background-position: 0% 50%; }
}
@media (prefers-reduced-motion: reduce) {
    .hero h1 .line-a, .hero h1 .accent { animation: none; }
}
.hero .sub { margin-left: auto; margin-right: auto; }
.hero .cta-row { justify-content: center; }
.hero .cta-note { text-align: left; }
.page-head { padding: 64px 0 52px; }
.page-head h1 { line-height: 1.28; white-space: pre-line; max-width: none; font-size: clamp(32px, 4.8vw, 60px); }
.kicker { font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-muted); margin-bottom: 26px; }
h1 { font-family: var(--font-display); font-weight: 800; font-stretch: 115%; font-size: clamp(38px, 6vw, 64px); line-height: 1.02; letter-spacing: -0.01em; max-width: 820px; }
h1 .accent { color: var(--accent); }
.sub { font-size: 20px; color: var(--ink-soft); max-width: 580px; margin-top: 28px; line-height: 1.5; }
.sub-small { font-size: 17px; color: var(--ink-soft); max-width: 520px; margin-top: 10px; }

/* ---------- CTA ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.phone-btn .d { display: inline-block; min-width: 0.62em; text-align: center; height: 1em; overflow: hidden; vertical-align: baseline; position: relative; line-height: 1; }
.phone-btn .reel { display: block; will-change: transform; }
.phone-btn .reel-cell { display: block; height: 1em; line-height: 1; }
.phone-btn .d.lock-click .reel { animation: lock-click 0.22s ease-out; }
@keyframes lock-click {
    0%   { margin-top: 0; }
    35%  { margin-top: 0.07em; color: var(--accent); }
    70%  { margin-top: -0.03em; }
    100% { margin-top: 0; }
}
.cta-row { display: flex; align-items: center; gap: 36px; flex-wrap: wrap; margin-top: 40px; }
.cta-band { display: flex; align-items: center; gap: 36px; flex-wrap: wrap; padding-top: 44px; padding-bottom: 52px; }
.phone-btn { font-family: var(--font-mono); font-size: 28px; font-weight: 500; font-variant-numeric: tabular-nums; background: var(--ink); color: var(--bg); padding: 16px 30px; text-decoration: none; display: inline-flex; align-items: center; line-height: 1; }
.phone-btn:hover { background: var(--accent); }
.cta-note { font-size: 15px; color: var(--ink-muted); max-width: 300px; line-height: 1.45; white-space: pre-line; }

/* ---------- sections & columns ---------- */
.rule-top { border-top: 1px solid var(--rule); }
.section-title { font-family: var(--font-display); font-weight: 800; font-stretch: 112%; font-size: 30px; padding-top: 48px; margin-bottom: 8px; }
.cols-3, .cols-4 { display: grid; grid-template-columns: repeat(3, 1fr); padding-top: 28px; padding-bottom: 12px; }
.cols-4 { grid-template-columns: repeat(4, 1fr); }
.col { padding: 26px 28px 40px 0; border-right: 1px solid var(--rule); }
.col + .col { padding-left: 28px; }
.col:last-child { border-right: 0; }
.num { font-family: var(--font-mono); font-size: 13px; color: var(--accent); margin-bottom: 14px; }
h3 { font-family: var(--font-display); font-weight: 700; font-size: 21px; margin-bottom: 10px; }
.col p:not(.num) { font-size: 15.5px; color: var(--ink-soft); line-height: 1.55; }
.more-link { padding-bottom: 48px; }
.more-link a { font-family: var(--font-mono); font-size: 14px; color: var(--accent); text-decoration: none; }
.more-link a:hover { text-decoration: underline; text-underline-offset: 4px; }
.order-teaser { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; padding-bottom: 8px; }
.order-teaser .more-link { padding-bottom: 52px; }

/* ---------- fertilizers list ---------- */
.cat-list { padding-top: 12px; }
.cat-row { display: grid; grid-template-columns: 80px 260px 1fr; gap: 24px; padding: 30px 0; border-bottom: 1px solid var(--rule); align-items: baseline; }
.cat-row:last-of-type { border-bottom: 0; }
.cat-row h2 { font-family: var(--font-display); font-weight: 700; font-stretch: 110%; font-size: 24px; }
.cat-desc { font-size: 15.5px; color: var(--ink-soft); }
.note-line { font-family: var(--font-mono); font-size: 13px; color: var(--ink-muted); padding: 22px 0 44px; }

/* ---------- prose (about) ---------- */
.prose { max-width: 640px; padding-top: 40px; padding-bottom: 52px; text-align: justify; hyphens: auto; -webkit-hyphens: auto; }
.prose p { font-size: 17.5px; color: var(--ink-soft); line-height: 1.65; margin-bottom: 22px; }
.prose p:first-child { font-size: 19px; color: var(--ink); }

/* ---------- parteneri ---------- */
.named-partners { padding-top: 8px; padding-bottom: 20px; }
.named-partner { border-top: 1px solid var(--rule); padding: 26px 0; max-width: 760px; display: flex; gap: 28px; align-items: flex-start; }
.named-partner-logo { flex: 0 0 180px; }
.named-partner-logo img { width: 180px; height: auto; display: block; }
.named-partner h3 a { text-decoration: none; }
.named-partner h3 a:hover { color: var(--accent); }
.named-partner p { font-size: 15.5px; color: var(--ink-soft); margin-top: 8px; }

/* ---------- pagini legale ---------- */
.legal-prose h2 { font-family: var(--font-display); font-weight: 700; font-size: 20px; margin: 30px 0 8px; }
.legal-prose h2:first-child { margin-top: 0; }
.legal-prose p { font-size: 16px; }
.cookie-table { width: 100%; border-collapse: collapse; margin: 22px 0; font-size: 15px; }
.cookie-table th { font-family: var(--font-mono); font-size: 12.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-muted); text-align: left; padding: 10px 14px 10px 0; border-bottom: 1px solid var(--ink); }
.cookie-table td { padding: 12px 14px 12px 0; border-bottom: 1px solid var(--rule); vertical-align: top; color: var(--ink-soft); }
.cookie-table td:first-child { font-family: var(--font-mono); font-size: 13.5px; color: var(--ink); white-space: nowrap; }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0; padding-top: 20px; padding-bottom: 56px; }
.contact-item { padding: 34px 32px 34px 0; border-bottom: 1px solid var(--rule); }
.contact-item:nth-child(odd) { border-right: 1px solid var(--rule); }
.contact-item:nth-child(even) { padding-left: 32px; }
.contact-item:nth-last-child(-n+2) { border-bottom: 0; }
.label { font-family: var(--font-mono); font-size: 12.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-muted); margin-bottom: 12px; }
.contact-big { font-family: var(--font-mono); font-size: 22px; font-weight: 500; font-variant-numeric: tabular-nums; text-decoration: none; }
a.contact-big:hover { color: var(--accent); }
.contact-addr { font-family: var(--font-body); font-size: 18px; font-weight: 400; }
.map-link { font-family: var(--font-mono); font-size: 13px; color: var(--accent); text-decoration: none; }
.map-link:hover { text-decoration: underline; }

/* ---------- harta (modal) ---------- */
.map-open { background: none; border: 0; padding: 0; cursor: pointer; font-family: var(--font-mono); font-size: 13px; color: var(--accent); }
.map-open:hover { text-decoration: underline; }
.map-modal { border: 1px solid var(--rule); padding: 0; background: var(--bg); max-width: min(1100px, calc(100vw - 32px)); width: 100%; margin: auto; inset: 0; position: fixed; }
.map-modal::backdrop { background: rgba(22, 22, 19, 0.55); }
.map-modal-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 18px; border-bottom: 1px solid var(--rule); }
.map-modal-head .label { margin: 0; }
.map-close { font-family: var(--font-mono); font-size: 13px; background: var(--ink); color: var(--bg); border: 0; padding: 8px 14px; cursor: pointer; }
.map-close:hover { background: var(--accent); }
.map-frame { display: block; width: 100%; height: min(78vh, 780px); border: 0; }

/* ---------- login ---------- */
.login-card { max-width: 420px; margin: 44px 0 64px; border: 1px solid var(--rule); background: var(--paper); padding: 36px; }
.login-card label { display: block; font-family: var(--font-mono); font-size: 12.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-muted); margin: 18px 0 6px; }
.login-card label:first-of-type { margin-top: 0; }
.login-card input { width: 100%; font-family: var(--font-body); font-size: 16px; padding: 11px 12px; border: 1px solid var(--rule); background: var(--bg); color: var(--ink); }
.login-card input:focus { outline: 2px solid var(--accent); outline-offset: -1px; border-color: transparent; }
.login-card button { margin-top: 24px; width: 100%; font-family: var(--font-mono); font-size: 15px; font-weight: 500; background: var(--ink); color: var(--bg); border: 0; padding: 14px; cursor: pointer; }
.login-card button:hover { background: var(--accent); }
.status-note { font-size: 15px; color: var(--green); border: 1px solid var(--green); padding: 12px 14px; margin-bottom: 22px; background: rgba(46, 70, 54, 0.06); }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--rule); }
.footer-row { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding-top: 20px; padding-bottom: 26px; font-family: var(--font-mono); font-size: 12.5px; color: var(--ink-muted); }
.footer-row a { color: inherit; }
.footer-row a:hover { color: var(--accent); }
.footer-links { display: flex; gap: 28px; flex-wrap: wrap; padding-bottom: 24px; font-family: var(--font-mono); font-size: 12px; }
.footer-links a { color: var(--ink-muted); text-decoration: none; border-bottom: 1px solid var(--rule); }
.footer-links a:hover { color: var(--accent); border-bottom-color: var(--accent); }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
    .named-partner { flex-direction: column; gap: 16px; }
    :root { --pad: 24px; }
    .cols-3, .cols-4 { grid-template-columns: 1fr; }
    .col { border-right: 0; border-bottom: 1px solid var(--rule); padding: 24px 0 28px; }
    .col + .col { padding-left: 0; }
    .col:last-child { border-bottom: 0; }
    .cat-row { grid-template-columns: 56px 1fr; }
    .cat-desc { grid-column: 2; }
    .contact-grid { grid-template-columns: 1fr; }
    .contact-item, .contact-item:nth-child(even) { padding-left: 0; border-right: 0 !important; }
    .contact-item:nth-last-child(2) { border-bottom: 1px solid var(--rule); }

    .nav-toggle { display: block; }
    .site-nav { display: none; position: absolute; top: 64px; left: 0; right: 0; background: var(--bg); border-bottom: 1px solid var(--rule); flex-direction: column; align-items: flex-start; padding: 18px var(--pad) 24px; gap: 18px; z-index: 10; }
    .site-nav.open { display: flex; }
    .site-header { position: relative; }
    .lang-switch { border-left: 0; padding-left: 0; }
    .phone-btn { font-size: 22px; padding: 14px 22px; }
}
