/* AUREL Carpintero Ibiza */

@font-face { font-family: 'Fraunces'; font-style: normal; font-weight: 400 700; font-display: swap; src: url(../fonts/fraunces-latin.woff2) format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400 700; font-display: swap; src: url(../fonts/inter-latin.woff2) format('woff2'); }

/* ---------- Culori pe roluri ----------
   Tema se alege: automat după telefon/PC (prefers-color-scheme), sau manual din panoul
   de accesibilitate (html[data-theme="light|dark"]). */
:root {
  color-scheme: light;
  --navy: #1B2A3D;
  --bronze: #B8935A;
  --cream: #F6F1E9;

  --bg: #F6F1E9;
  --bg-alt: #EDE5D8;
  --surface: #FFFFFF;
  --field: #FDFBF8;
  --field-line: #CBC2B3;
  --text: #1B2A3D;
  --heading: #1B2A3D;
  --muted: #55606E;
  --line: #DDD3C3;
  --accent: #B8935A;          /* fundal butoane */
  --accent-hover: #C9A56C;
  --on-accent: #1B2A3D;       /* text pe butoane aurii */
  --accent-text: #7A5C30;     /* auriu folosit ca text pe fundal deschis (contrast AA ≥ 4.9 pe crem, bej și alb) */
  --strong-bg: #1B2A3D;       /* benzi închise: încredere, contact, filtru activ */
  --strong-text: #E7EBF0;
  --strong-heading: #FFFFFF;
  --footer-bg: #131F2E;
  --footer-text: #B9C2CE;
  --footer-line: #26354A;
  --header-bg: rgba(246, 241, 233, .94);
  --shadow: 0 10px 30px rgba(27, 42, 61, .12);
  --error: #B3261E;
  --ok: #1E6B3A;
  --note-bg: #FFF4DB;
  --note-line: #E8C877;
  --seal: #1B2A3D;            /* discul sigiliului din logo */
  --seal-ring: transparent;   /* contur exterior al sigiliului (vizibil doar pe fundal închis) */
  --logo-text: #1B2A3D;
  --logo-sub: #1B2A3D;

  --wa: #25D366;
  --radius: 10px;
  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --header-h: 76px;
}

/* Tema întunecată: aceleași valori în două locuri (automat + ales manual) */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #0F1720; --bg-alt: #141F2B; --surface: #1A2633; --field: #121C27; --field-line: #34465A;
    --text: #E4E8EE; --heading: #F4EFE6; --muted: #A5B0BD; --line: #2A394A;
    --accent: #C29D63; --accent-hover: #D4B179; --on-accent: #111A24; --accent-text: #D6B47E;
    --strong-bg: #0A1119; --strong-text: #D5DBE3; --strong-heading: #F4EFE6;
    --footer-bg: #080D14; --footer-text: #A5B0BD; --footer-line: #1C2836;
    --header-bg: rgba(15, 23, 32, .92); --shadow: 0 10px 30px rgba(0, 0, 0, .45);
    --error: #FF8A80; --ok: #7BD89A; --note-bg: #3A2F14; --note-line: #7A6230;
    --seal: #1B2A3D; --seal-ring: #B8935A; --logo-text: #F4EFE6; --logo-sub: #E6CFA6;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0F1720; --bg-alt: #141F2B; --surface: #1A2633; --field: #121C27; --field-line: #34465A;
  --text: #E4E8EE; --heading: #F4EFE6; --muted: #A5B0BD; --line: #2A394A;
  --accent: #C29D63; --accent-hover: #D4B179; --on-accent: #111A24; --accent-text: #D6B47E;
  --strong-bg: #0A1119; --strong-text: #D5DBE3; --strong-heading: #F4EFE6;
  --footer-bg: #080D14; --footer-text: #A5B0BD; --footer-line: #1C2836;
  --header-bg: rgba(15, 23, 32, .92); --shadow: 0 10px 30px rgba(0, 0, 0, .45);
  --error: #FF8A80; --ok: #7BD89A; --note-bg: #3A2F14; --note-line: #7A6230;
  --seal: #1B2A3D; --seal-ring: #B8935A; --logo-text: #F4EFE6; --logo-sub: #E6CFA6;
}

/* Contrast ridicat (panoul de accesibilitate) */
:root[data-contrast="alto"] {
  --text: #000; --heading: #000; --muted: #1F1F1F; --line: #000; --field-line: #000;
  --bg: #FFF; --bg-alt: #FFF; --surface: #FFF; --field: #FFF;
  --accent-text: #5C3F10; --accent: #F2C27A; --accent-hover: #FFD699; --on-accent: #000;
  --strong-bg: #000; --strong-text: #FFF; --strong-heading: #FFF;
  --footer-bg: #000; --footer-text: #FFF; --footer-line: #FFF;
  --header-bg: #FFF; --logo-text: #000; --logo-sub: #000;
}
:root[data-contrast="alto"][data-theme="dark"] {
  --text: #FFF; --heading: #FFF; --muted: #F0F0F0; --line: #FFF; --field-line: #FFF;
  --bg: #000; --bg-alt: #000; --surface: #000; --field: #000;
  --accent-text: #FFD699; --header-bg: #000; --logo-text: #FFF; --logo-sub: #FFD699;
}
@media (prefers-color-scheme: dark) {
  :root[data-contrast="alto"]:not([data-theme="light"]) {
    --text: #FFF; --heading: #FFF; --muted: #F0F0F0; --line: #FFF; --field-line: #FFF;
    --bg: #000; --bg-alt: #000; --surface: #000; --field: #000;
    --accent-text: #FFD699; --header-bg: #000; --logo-text: #FFF; --logo-sub: #FFD699;
  }
}

/* ---------- Bază ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 400 1.0625rem/1.65 var(--sans); color: var(--text); background: var(--bg); }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; color: var(--heading); }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--navy); color: #fff; padding: 8px 14px; border-radius: 6px; }
.skip:focus { left: 8px; }
.center { text-align: center; margin-top: 2rem; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- Butoane ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; padding: .85em 1.5em; border-radius: 999px; border: 2px solid var(--accent); background: var(--accent); color: var(--on-accent); font: 600 1rem/1.2 var(--sans); text-decoration: none; cursor: pointer; transition: background .2s, color .2s, transform .2s; }
.btn:hover { background: var(--accent-hover); border-color: var(--accent-hover); transform: translateY(-1px); }
.btn--sm { padding: .55em 1.1em; font-size: .9375rem; }
.btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.7); }
.btn--ghost:hover { background: rgba(255,255,255,.12); border-color: #fff; }
.btn--outline { background: transparent; color: var(--heading); border-color: var(--heading); }
.btn--outline:hover { background: var(--heading); color: var(--bg); border-color: var(--heading); }
.btn--full { width: 100%; }

/* ---------- Logo (varianta 6: sigiliu + AUREL + linie aurie + CARPINTERO · IBIZA) ---------- */
.logo { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--logo-text); }
.logo__seal { width: 54px; height: 54px; flex: none; }
.logo__seal .s-disc { fill: var(--seal); }
.logo__seal .s-ring { fill: none; stroke: var(--seal-ring); }
.logo__text { display: flex; flex-direction: column; line-height: 1; }
.logo__name { font: 600 1.55rem/1 var(--serif); letter-spacing: .16em; color: var(--logo-text); }
.logo__sub { display: flex; align-items: center; gap: 8px; margin-top: 6px; font: 600 .64rem/1 var(--sans); letter-spacing: .26em; color: var(--logo-sub); white-space: nowrap; }
.logo__sub::before { content: ''; width: 22px; height: 2px; background: var(--bronze); flex: none; }
.logo--footer { --seal-ring: #B8935A; --logo-text: #F4EFE6; --logo-sub: #E6CFA6; }
.logo--footer .logo__seal { width: 76px; height: 76px; }
.logo--footer .logo__name { font-size: 1.9rem; }
@media (max-width: 420px) {
  .logo__seal { width: 46px; height: 46px; }
  .logo__name { font-size: 1.35rem; }
  .logo__sub { font-size: .58rem; letter-spacing: .2em; }
}

/* ---------- Header ---------- */
.header { position: sticky; top: 0; z-index: 50; background: var(--header-bg); backdrop-filter: blur(8px); border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s; }
.header.is-scrolled { border-color: var(--line); box-shadow: 0 2px 12px rgba(0,0,0,.08); }
.header__in { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a:not(.btn) { text-decoration: none; font-weight: 500; font-size: .98rem; padding: 6px 0; border-bottom: 2px solid transparent; }
.nav a:not(.btn):hover, .nav a[aria-current] { border-color: var(--accent); }
.nav-toggle { display: none; }

@media (max-width: 860px) {
  .nav-toggle { display: grid; gap: 5px; width: 44px; height: 44px; place-content: center; border: 0; background: none; cursor: pointer; }
  .nav-toggle span { display: block; width: 24px; height: 2px; background: var(--heading); transition: transform .2s, opacity .2s; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .nav { position: absolute; top: var(--header-h); left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; padding: 8px 16px 20px; background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); display: none; }
  .nav.is-open { display: flex; }
  .nav a:not(.btn) { padding: 14px 4px; border-bottom: 1px solid var(--line); }
  .nav .btn { margin-top: 16px; }
}

/* ---------- Selector de limbă ---------- */
.lang { position: relative; margin-left: 20px; }
.lang summary { list-style: none; display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 12px; border: 1px solid var(--line); border-radius: 999px; font: 600 .9rem/1 var(--sans); letter-spacing: .06em; cursor: pointer; color: var(--heading); background: var(--surface); }
.lang summary::-webkit-details-marker { display: none; }
.lang summary::after { content: ''; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); }
.lang[open] summary::after { transform: rotate(-135deg) translateY(-2px); }
.lang ul { position: absolute; right: 0; top: calc(100% + 8px); min-width: 180px; padding: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); z-index: 60; }
.lang a { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 8px; text-decoration: none; color: var(--text); }
.lang a span { font-weight: 700; font-size: .8rem; letter-spacing: .06em; color: var(--accent-text); width: 22px; }
.lang a:hover, .lang a:focus-visible { background: var(--bg-alt); }
.lang a[aria-current] { background: var(--bg-alt); font-weight: 600; }
@media (max-width: 860px) {
  .lang { margin-left: auto; margin-right: 6px; }
}

/* ---------- Hero (rămâne închis în ambele teme: text alb pe poză) ---------- */
.hero { position: relative; min-height: min(88vh, 760px); display: grid; align-items: end; color: #fff; overflow: hidden; }
.hero picture, .hero__img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__img { object-fit: cover; object-position: center 40%; }
.hero__shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(15,23,32,.15) 0%, rgba(15,23,32,.38) 45%, rgba(15,23,32,.9) 100%); }
.hero__in { position: relative; padding-block: 120px 64px; max-width: 760px; margin-left: max(16px, (100% - 1120px) / 2); }
.hero h1 { font-size: clamp(2.5rem, 7vw, 4.5rem); margin-bottom: .3em; color: #fff; }
.hero__lead { font-size: clamp(1.05rem, 2.2vw, 1.25rem); max-width: 34em; color: #EEF1F5; }
.hero__badge { display: inline-block; margin-bottom: 18px; padding: 6px 14px; border: 1px solid var(--bronze); border-radius: 999px; background: rgba(15,23,32,.6); font-size: .85rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: #E6CFA6; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* ---------- Banda de încredere ---------- */
.confianza { background: var(--strong-bg); color: var(--strong-text); border-top: 1px solid rgba(184,147,90,.35); }
.confianza__list { display: grid; grid-template-columns: repeat(4, 1fr); }
.confianza__list li { display: flex; flex-direction: column; gap: 2px; padding: 22px 20px; border-left: 1px solid rgba(255,255,255,.1); }
.confianza__list li:first-child { border-left: 0; padding-left: 0; }
.confianza__list strong { font: 600 1.45rem/1.2 var(--serif); color: #D6B47E; }
.confianza__list span { font-size: .9rem; }
@media (max-width: 760px) {
  .confianza__list { grid-template-columns: 1fr 1fr; }
  .confianza__list li { padding: 16px 12px; border-left: 0; }
  .confianza__list li:first-child { padding-left: 12px; }
  .confianza__list li:nth-child(odd) { border-right: 1px solid rgba(255,255,255,.1); }
  .confianza__list li:nth-child(-n+2) { border-bottom: 1px solid rgba(255,255,255,.1); }
}

/* ---------- Secțiuni ---------- */
.section { padding-block: clamp(64px, 10vw, 112px); }
.section--top { padding-top: clamp(40px, 6vw, 72px); }
.section--alt { background: var(--bg-alt); }
.section--dark { background: var(--strong-bg); color: var(--strong-text); }
.section--dark .h2 { color: var(--strong-heading); }
.section__lead { max-width: 40em; color: var(--muted); font-size: 1.1rem; margin-bottom: 2.5rem; }
.eyebrow { font-size: .8rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-text); margin-bottom: .75rem; }
.eyebrow::before { content: ''; display: inline-block; width: 28px; height: 2px; background: var(--bronze); vertical-align: middle; margin-right: 10px; }
.eyebrow--light { color: #D6B47E; }
.h2 { font-size: clamp(1.9rem, 4vw, 2.75rem); }
.h3 { font-size: 1.5rem; }

/* ---------- Servicii ---------- */
.servicios { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; }
.servicio { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px; transition: box-shadow .2s, transform .2s; }
.servicio:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.servicio__ico { width: 40px; height: 40px; color: var(--accent-text); margin-bottom: 16px; }
.servicio h3 { font-size: 1.25rem; margin-bottom: .4em; }
.servicio p { color: var(--muted); font-size: .98rem; margin: 0; }

/* ---------- Sobre nosotros ---------- */
.nosotros { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 6vw, 72px); align-items: center; }
.nosotros__img img { border-radius: var(--radius); box-shadow: var(--shadow); aspect-ratio: 4 / 5; object-fit: cover; width: 100%; }
.nosotros__zona { padding: 14px 18px; border-left: 3px solid var(--bronze); background: var(--surface); border-radius: 0 var(--radius) var(--radius) 0; }
@media (max-width: 860px) { .nosotros { grid-template-columns: 1fr; } .nosotros__img img { aspect-ratio: 4 / 3; } }

/* ---------- Grilă poze ---------- */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.grid__item { position: relative; }
.grid__item a, .grid__open { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: var(--radius); overflow: hidden; }
.grid__item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .5s; }
.grid__item a:hover img, .grid__open:hover img { transform: scale(1.04); }
.grid__cap { margin: 8px 2px 0; font-size: .85rem; color: var(--muted); }
.grid__item[hidden] { display: none; }
@media (max-width: 700px) { .grid { grid-template-columns: repeat(2, 1fr); gap: 10px; } }

.filtros { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.filtro { padding: .55em 1.1em; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font: 500 .92rem/1.2 var(--sans); color: var(--text); cursor: pointer; }
.filtro[aria-pressed="true"] { background: var(--heading); border-color: var(--heading); color: var(--bg); }

.cta-box { margin-top: 56px; padding: clamp(28px, 5vw, 48px); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); text-align: center; }
.cta-box p { color: var(--muted); }

/* ---------- Lightbox ---------- */
.lightbox { width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(8, 13, 20, .95); color: #fff; }
.lightbox[open] { display: grid; grid-template-columns: 64px 1fr 64px; align-items: center; }
.lightbox::backdrop { background: rgba(8, 13, 20, .95); }
.lightbox__fig { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 12px; min-width: 0; }
.lightbox__fig img { max-width: 100%; max-height: calc(100vh - 110px); width: auto; height: auto; object-fit: contain; border-radius: 6px; }
.lightbox__fig figcaption { font-size: .92rem; color: #C9D1DB; text-align: center; padding-inline: 8px; }
.lightbox__btn { border: 0; background: rgba(255,255,255,.1); color: #fff; width: 48px; height: 48px; border-radius: 50%; font-size: 2rem; line-height: 1; cursor: pointer; justify-self: center; }
.lightbox__btn:hover { background: rgba(255,255,255,.22); }
.lightbox__close { position: absolute; top: 16px; right: 16px; }
@media (max-width: 700px) {
  .lightbox[open] { grid-template-columns: 1fr; }
  .lightbox__prev, .lightbox__next { position: absolute; bottom: 20px; }
  .lightbox__prev { left: 25%; } .lightbox__next { right: 25%; }
  .lightbox__fig img { max-height: calc(100vh - 170px); }
}

/* ---------- Contact + formular ---------- */
.contacto { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 6vw, 72px); align-items: start; }
.contacto__list { margin: 24px 0; display: grid; gap: 10px; }
.contacto__list a { color: var(--strong-heading); font-weight: 600; font-size: 1.1rem; text-decoration-color: var(--bronze); text-underline-offset: 4px; }
.contacto__zona { color: #D6B47E; font-weight: 600; }
@media (max-width: 860px) { .contacto { grid-template-columns: 1fr; } }

.form { background: var(--surface); color: var(--text); padding: clamp(22px, 4vw, 36px); border-radius: var(--radius); display: grid; gap: 16px; box-shadow: 0 20px 50px rgba(0,0,0,.25); border: 1px solid var(--line); }
.form label { display: grid; gap: 6px; font-weight: 500; font-size: .94rem; }
.form input:not([type=checkbox]), .form select, .form textarea { width: 100%; font: 400 1rem/1.4 var(--sans); color: var(--text); padding: .75em .9em; border: 1px solid var(--field-line); border-radius: 8px; background: var(--field); }
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: var(--accent); }
.form input[type=file] { padding: .55em; font-size: .9rem; }
.form textarea { resize: vertical; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .form__row { grid-template-columns: 1fr; } }
.form__check { display: flex !important; align-items: flex-start; gap: 10px !important; font-weight: 400 !important; }
.form__check input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--accent); }
.form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form .is-invalid { border-color: var(--error) !important; }
.form__msg { margin: 0; font-size: .95rem; min-height: 1.4em; }
.form__msg.is-error { color: var(--error); }
.form__msg.is-ok { color: var(--ok); }

/* ---------- Footer ---------- */
.footer { background: var(--footer-bg); color: var(--footer-text); padding-top: 56px; font-size: .95rem; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
@media (max-width: 1000px) and (min-width: 761px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
.footer__zona { margin-top: 18px; }
.footer__zona strong { color: #D6B47E; }
.footer__anios { color: #F4EFE6; font-weight: 600; }
.footer__h { font: 600 .8rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: #F4EFE6; margin-bottom: 16px; }
.footer__list { display: grid; gap: 8px; }
.footer__list a, .footer__list button { text-decoration: none; }
.footer__list a:hover, .footer__list button:hover { color: #fff; text-decoration: underline; }
.footer__list button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; text-align: left; }
.footer__legal { border-top: 1px solid var(--footer-line); margin-top: 40px; padding-block: 20px 110px; font-size: .85rem; }
@media (max-width: 760px) { .footer__grid { grid-template-columns: 1fr; gap: 28px; } }

/* ---------- Butoane flotante ---------- */
.float { position: fixed; right: 16px; bottom: 16px; z-index: 60; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.float__btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 56px; min-width: 56px; border-radius: 999px; text-decoration: none; box-shadow: 0 8px 22px rgba(0,0,0,.3); transition: transform .2s; }
.float__btn:hover { transform: scale(1.06); }
.float__btn svg { width: 28px; height: 28px; }
.float__btn--wa { background: var(--wa); color: #fff; }
.float__btn--call { background: var(--bronze); color: #1B2A3D; padding: 0 22px 0 18px; font-weight: 700; position: relative; }
.float__btn--call svg { width: 22px; height: 22px; }
.float__btn--presu { background: var(--navy); color: #fff; border: 2px solid var(--bronze); padding: 0 20px 0 16px; font-weight: 700; position: relative; transition: transform .2s, opacity .25s, visibility .25s; }
.float__btn--presu svg { width: 22px; height: 22px; color: var(--bronze); }
.float__btn--presu::before { content: ''; position: absolute; inset: -2px; border-radius: inherit; pointer-events: none; animation: pulse-presu 2s 1.3s infinite; }
@keyframes pulse-presu { 0% { box-shadow: 0 0 0 0 rgba(27,42,61,.55); } 70% { box-shadow: 0 0 0 14px rgba(27,42,61,0); } 100% { box-shadow: 0 0 0 0 rgba(27,42,61,0); } }
:root[data-theme="dark"] .float__btn--presu::before { animation-name: pulse-presu-dark; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .float__btn--presu::before { animation-name: pulse-presu-dark; } }
@keyframes pulse-presu-dark { 0% { box-shadow: 0 0 0 0 rgba(184,147,90,.55); } 70% { box-shadow: 0 0 0 14px rgba(184,147,90,0); } 100% { box-shadow: 0 0 0 0 rgba(184,147,90,0); } }
.float__btn--presu.is-hidden { opacity: 0; visibility: hidden; transform: translateY(8px); }
@media (max-width: 420px) { .float__btn--presu { padding: 0 16px 0 13px; font-size: .92rem; } }
/* Puls: inel care se extinde + o mică „bătaie". Decalate în timp, ca butoanele să nu pulseze toate odată. */
.float__btn--call::before, .float__btn--wa::before { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; }
.float__btn--wa { position: relative; }
.float__btn--call::before { animation: pulse-call 2s infinite; }
.float__btn--wa::before { animation: pulse-wa 2s .65s infinite; }
.float__btn--call { animation: bataie 2s infinite; }
.float__btn--wa { animation: bataie 2s .65s infinite; }
@keyframes pulse-call { 0% { box-shadow: 0 0 0 0 rgba(184,147,90,.85); } 70% { box-shadow: 0 0 0 18px rgba(184,147,90,0); } 100% { box-shadow: 0 0 0 0 rgba(184,147,90,0); } }
@keyframes pulse-wa { 0% { box-shadow: 0 0 0 0 rgba(37,211,102,.75); } 70% { box-shadow: 0 0 0 18px rgba(37,211,102,0); } 100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); } }
@keyframes bataie { 0%, 100% { transform: scale(1); } 8% { transform: scale(1.07); } 16% { transform: scale(1); } }
.float__btn:hover { animation-play-state: paused; }

/* ---------- Panou accesibilitate ---------- */
.a11y { position: fixed; left: 16px; bottom: 16px; z-index: 70; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.theme-btn { width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--bronze); background: var(--surface); color: var(--heading); display: grid; place-items: center; cursor: pointer; box-shadow: 0 6px 18px rgba(0,0,0,.25); transition: transform .2s; }
.theme-btn:hover { transform: scale(1.06); }
.theme-btn svg { width: 22px; height: 22px; grid-area: 1 / 1; }
.theme-btn__sun { color: #E6B450; display: none; }
.theme-btn[data-efectiv="dark"] .theme-btn__sun { display: block; }
.theme-btn[data-efectiv="dark"] .theme-btn__moon { display: none; }
.a11y__btn { width: 52px; height: 52px; border-radius: 50%; border: 2px solid #fff; background: #1D4F91; color: #fff; display: grid; place-items: center; cursor: pointer; box-shadow: 0 8px 22px rgba(0,0,0,.3); }
.a11y__btn svg { width: 30px; height: 30px; }
.a11y__btn:hover { background: #163F75; }
.a11y__panel { position: absolute; left: 0; bottom: calc(100% + 12px); width: min(340px, calc(100vw - 32px)); max-height: calc(100vh - 100px); overflow: auto; background: var(--surface); color: var(--text); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 20px 50px rgba(0,0,0,.3); padding: 18px; font-size: 1rem; }
.a11y__panel[hidden] { display: none; }
.a11y__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.a11y__head h2 { font: 600 1.2rem/1.2 var(--sans); margin: 0; }
.a11y__close { width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--bg-alt); color: var(--text); font-size: 1.5rem; line-height: 1; cursor: pointer; }
.a11y__group { padding: 12px 0; border-top: 1px solid var(--line); }
.a11y__label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 8px; }
.a11y__size { display: grid; grid-template-columns: 52px 1fr 52px; align-items: center; gap: 8px; }
.a11y__size output { text-align: center; font-weight: 600; }
.a11y__seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.a11y__opt { min-height: 44px; border: 1px solid var(--field-line); background: var(--field); color: var(--text); border-radius: 8px; font: 600 .92rem/1.2 var(--sans); cursor: pointer; }
.a11y__opt[aria-pressed="true"] { background: var(--heading); color: var(--bg); border-color: var(--heading); }
.a11y__opt:disabled { opacity: .45; cursor: not-allowed; }
.a11y__switch { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; padding: 6px 0; border: 0; background: none; color: var(--text); font: 500 .98rem/1.3 var(--sans); cursor: pointer; text-align: left; }
.a11y__switch i { flex: none; width: 44px; height: 26px; border-radius: 13px; background: var(--field-line); position: relative; transition: background .2s; }
.a11y__switch i::after { content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform .2s; }
.a11y__switch[aria-checked="true"] i { background: #1D4F91; }
.a11y__switch[aria-checked="true"] i::after { transform: translateX(18px); }
.a11y__reset { width: 100%; margin-top: 8px; min-height: 44px; border: 1px solid var(--field-line); background: transparent; color: var(--text); border-radius: 8px; font: 600 .92rem var(--sans); cursor: pointer; }
.a11y__note { font-size: .8rem; color: var(--muted); margin: 10px 0 0; }

/* Opțiunile aplicate */
:root[data-links="1"] a { text-decoration: underline !important; text-underline-offset: 3px; }
:root[data-legible="1"] body { letter-spacing: .04em; word-spacing: .14em; line-height: 1.9; }
:root[data-legible="1"] h1, :root[data-legible="1"] h2, :root[data-legible="1"] h3, :root[data-legible="1"] .logo__name { font-family: var(--sans); letter-spacing: 0; }
:root[data-legible="1"] p { max-width: 70ch; }
:root[data-motion="off"] *, :root[data-motion="off"] *::before, :root[data-motion="off"] *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }

/* ---------- Banner cookie-uri ---------- */
.cookies { position: fixed; left: 0; right: 0; bottom: 0; z-index: 80; background: var(--surface); color: var(--text); border-top: 3px solid var(--bronze); box-shadow: 0 -10px 30px rgba(0,0,0,.18); }
.cookies[hidden] { display: none; }
.cookies__in { width: min(1120px, 100% - 32px); margin-inline: auto; padding: 18px 0 20px; display: grid; grid-template-columns: 1fr auto; gap: 8px 32px; align-items: center; }
.cookies__t { grid-column: 1 / -1; font: 600 1.1rem/1.2 var(--sans); margin: 0; }
.cookies p { margin: 0; font-size: .95rem; color: var(--muted); }
.cookies p a { color: var(--text); }
.cookies__opts { grid-column: 1 / -1; display: grid; gap: 10px; padding: 12px 0 4px; }
.cookies__opts[hidden] { display: none; }
.cookies__opt { display: flex; gap: 10px; align-items: flex-start; font-size: .95rem; }
.cookies__opt input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--accent); flex: none; }
.cookies__btns { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }
.cookies__btns .btn { padding: .7em 1.3em; }
.cookies__btns [hidden] { display: none; }
body.has-cookies .float, body.has-cookies .a11y { visibility: hidden; }
@media (max-width: 760px) {
  .cookies__in { grid-template-columns: 1fr; padding: 14px 0 16px; }
  .cookies__btns { justify-content: stretch; }
  .cookies__btns .btn { flex: 1 1 40%; }
}

/* ---------- Pagini legale ---------- */
.legal { max-width: 760px; }
.legal h1 { font-size: clamp(1.9rem, 4vw, 2.5rem); }
.legal h2 { font-size: 1.35rem; margin-top: 2em; }
.legal ul { list-style: disc; padding-left: 1.3em; margin-bottom: 1em; }
.legal li { margin-bottom: .35em; }
.legal table { width: 100%; border-collapse: collapse; margin-bottom: 1.5em; font-size: .95rem; }
.legal th, .legal td { text-align: left; padding: 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
@media (max-width: 700px) {
  .legal table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .legal th, .legal td { min-width: 150px; }
}
.legal .actualizado { color: var(--muted); font-size: .92rem; }
.borrador { background: var(--note-bg); border: 1px solid var(--note-line); padding: 12px 16px; border-radius: 8px; font-size: .92rem; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* Instalar app: instrucțiunile pentru iPhone (pe Android se deschide fereastra de instalare a telefonului) */
.inst { width: min(380px, calc(100vw - 32px)); border: 1px solid var(--line); border-radius: 14px; background: var(--surface); color: var(--text); padding: 18px; box-shadow: 0 20px 50px rgba(0,0,0,.3); }
.inst::backdrop { background: rgba(0,0,0,.45); }
.inst ol { margin: 0 0 12px; padding-left: 1.3em; line-height: 1.6; }
.inst li { margin-bottom: 8px; }
.inst p { margin: 0; color: var(--muted, inherit); }
.inst__ico { width: 1.25em; height: 1.25em; vertical-align: -.25em; color: #0A84FF; }

/* Bannerul de sus „Instala la app” (doar pe telefon, după ce s-a răspuns la cookies) */
.instbar { background: #1B2A3D; color: #F6F1E9; border-bottom: 2px solid var(--bronze); }
.instbar[hidden] { display: none; }
.instbar__in { width: min(1120px, 100% - 32px); margin-inline: auto; padding: 10px 0; display: flex; align-items: center; gap: 12px; }
.instbar img { flex: none; width: 40px; height: 40px; border-radius: 10px; }
.instbar p { flex: 1; min-width: 0; margin: 0; font-size: .88rem; line-height: 1.3; }
.instbar strong { display: block; font-size: .98rem; }
.instbar span { opacity: .85; }
.instbar .btn { flex: none; }
.instbar__x { flex: none; width: 36px; height: 36px; border: 0; border-radius: 50%; background: rgba(255,255,255,.12); color: inherit; font-size: 1.4rem; line-height: 1; cursor: pointer; }
.instbar__x:hover { background: rgba(255,255,255,.22); }
@media (max-width: 520px) { .instbar span { display: none; } .instbar__in { padding: 8px 0; gap: 10px; } }

/* Pagini de servicii (armarios, pérgolas) */
.migas { font-size: .9rem; color: var(--muted); margin-bottom: 14px; }
.migas a { color: inherit; }
.serv-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 22px 0 0; }
.serv-fotos { margin: 32px 0; }
.serv-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin: 8px 0 40px; }
@media (max-width: 800px) { .serv-cols { grid-template-columns: 1fr; gap: 8px; } }
.serv-lista, .serv-pasos { padding-left: 1.2em; line-height: 1.6; margin: 0 0 1.2em; }
.serv-lista li, .serv-pasos li { margin-bottom: .6em; }
.servicio__mas { display: inline-block; margin-top: 14px; font-weight: 600; color: var(--accent-text); text-decoration: none; }
.servicio__mas:hover { text-decoration: underline; }

/* Preguntas frecuentes (pagina principală) */
.faq { max-width: 860px; }
.faq__lista { margin-top: 28px; border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 4px; font-weight: 600; font-size: 1.05rem; color: var(--heading); }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: '+'; flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--line); color: var(--accent-text); font-size: 1.2rem; line-height: 1; transition: transform .2s; }
.faq__item[open] summary::after { transform: rotate(45deg); }
.faq__item summary:hover { color: var(--accent-text); }
.faq__item p { margin: 0 4px 20px; color: var(--muted); line-height: 1.65; }
.serv-video { margin: 0 auto 36px; max-width: 360px; text-align: center; }
.serv-video video { width: 100%; height: auto; aspect-ratio: 480 / 848; border-radius: var(--radius); box-shadow: var(--shadow); background: var(--bg-alt); display: block; }
.serv-video figcaption { margin-top: 10px; font-size: .9rem; color: var(--muted); }

/* Oferta (dispare singură după data de sfârșit, din data/oferta.php) */
.hero__oferta { display: block; width: fit-content; max-width: 100%; margin: 0 0 18px; padding: 6px 14px; border: 1px solid rgba(214,180,126,.7); border-radius: 18px; line-height: 1.45; background: rgba(15,23,32,.45); color: #F3E3C3; font-size: .92rem; font-weight: 600; text-decoration: none; backdrop-filter: blur(4px); }
.hero__oferta:hover { background: rgba(15,23,32,.65); color: #fff; }
.oferta-box { margin: 0 0 20px; padding: 14px 18px; border: 1px solid var(--bronze); border-left-width: 4px; border-radius: var(--radius); background: rgba(184,147,90,.12); }
.oferta-box strong { display: block; color: inherit; font-size: 1.02rem; }
.oferta-box p { margin: 4px 0 0; font-size: .9rem; opacity: .9; }
.oferta-box .oferta-box__ok { font-weight: 600; opacity: 1; }
.serv-oferta { margin: 14px 0 0; font-size: .95rem; }
.serv-oferta a { color: var(--accent-text); font-weight: 600; text-decoration: none; }
.serv-oferta a:hover { text-decoration: underline; }

/* Telefon: textele și butoanele de sus urcă spre partea de sus a pozei (poza rămâne la aceeași înălțime:
   spațiul de deasupra textelor trece dedesubt, 116 + 68 = 120 + 64). Desktop neschimbat. */
@media (max-width: 760px) {
  .hero { align-items: start; }
  .hero__in { padding-block: 116px 68px; }
  .hero__shade { background: linear-gradient(180deg, rgba(15,23,32,.55) 0%, rgba(15,23,32,.5) 55%, rgba(15,23,32,.85) 100%); }
}
