/* Tomis Travel — stil unic al site-ului (mobil întâi) */
/* TODO: înlocuiește paleta cu culorile din logo, dacă diferă */
:root {
  --navy: #0A3D62;
  --sea: #1B7FA6;
  --sea-dark: #14607E;
  --sand: #F6F1E7;
  --coral: #E8613C;
  --coral-dark: #C4472A; /* folosit ca fundal de buton: contrast AA cu text alb */
  --wa: #25D366;
  --wa-dark: #0E7A3F; /* verde WhatsApp închis: contrast AA cu text alb */
  --text: #1F2933;
  --muted: #52606D;
  --line: #E1DCD0;
  --white: #fff;
  --radius: 14px;
  --shadow: 0 6px 24px rgba(10, 61, 98, .10);
  --font-head: "Montserrat", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --font-body: "Open Sans", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --header-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
  padding-bottom: 64px; /* loc pentru bara fixă de pe mobil */
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--sea-dark); }
a:hover { color: var(--navy); }
h1, h2, h3 { font-family: var(--font-head); color: var(--navy); line-height: 1.25; margin: 0 0 .6em; }
h1 { font-size: clamp(1.75rem, 5vw, 3rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 3.6vw, 2.2rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 600; }
p { margin: 0 0 1em; }

:focus-visible { outline: 3px solid var(--coral); outline-offset: 3px; border-radius: 4px; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.section { padding: 64px 0; }
.section--alt { background: var(--sand); }
.section__intro { max-width: 720px; color: var(--muted); font-size: 1.05rem; margin-bottom: 32px; }

.skip-link {
  position: absolute; left: -9999px; top: 8px; z-index: 200;
  background: var(--navy); color: var(--white); padding: 10px 16px; border-radius: 8px;
}
.skip-link:focus { left: 8px; }

.visually-hidden {
  position: absolute !important; 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: 8px;
  min-height: 48px; padding: 12px 22px; border-radius: 999px; border: 2px solid transparent;
  font-family: var(--font-head); font-weight: 600; font-size: 1rem; text-decoration: none;
  cursor: pointer; transition: background-color .15s, color .15s, border-color .15s;
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn--primary { background: var(--coral-dark); color: var(--white); }
.btn--primary:hover { background: #A83A21; color: var(--white); }
.btn--wa { background: var(--wa-dark); color: var(--white); }
.btn--wa:hover { background: #0B6332; color: var(--white); }
.btn--ghost { background: transparent; color: var(--white); border-color: rgba(255,255,255,.8); }
.btn--ghost:hover { background: var(--white); color: var(--navy); }
.btn--outline { background: var(--white); color: var(--navy); border-color: var(--navy); }
.btn--outline:hover { background: var(--navy); color: var(--white); }
.btn--small { min-height: 36px; padding: 6px 14px; font-size: .875rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--white); color: var(--navy);
  box-shadow: 0 2px 12px rgba(10,61,98,.12);
}
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: var(--header-h); }
.logo { display: inline-flex; align-items: center; flex: none; }
.logo img { height: 52px; width: auto; }
.logo--card { background: var(--white); border-radius: 10px; padding: 8px 12px; margin-bottom: 16px; }
.logo--card img { height: 52px; }

.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; background: transparent; border: 0; color: var(--navy); cursor: pointer;
}
.nav-toggle svg { width: 28px; height: 28px; }
.main-nav {
  display: none; position: absolute; top: var(--header-h); left: 0; right: 0;
  background: var(--white); border-top: 1px solid var(--line); padding: 8px 20px 20px;
  box-shadow: 0 10px 20px rgba(10,61,98,.12);
}
.main-nav.is-open { display: block; }
.main-nav ul { list-style: none; margin: 0; padding: 0; }
.main-nav a {
  display: block; padding: 14px 4px; color: var(--navy); text-decoration: none;
  font-family: var(--font-head); font-weight: 600; border-bottom: 1px solid var(--line);
}
.main-nav a:hover { color: var(--coral-dark); }
.header-phone { display: none; }

@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .main-nav { display: block; position: static; background: none; border: 0; padding: 0; box-shadow: none; }
  .main-nav ul { display: flex; gap: 28px; }
  .main-nav a { padding: 8px 0; border: 0; }
  .header-phone { display: inline-flex; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; color: var(--white);
  /* TODO: când există /img/hero.webp, adaugă imaginea în HTML (vezi comentariul din index.html) */
  background:
    radial-gradient(1200px 500px at 85% 110%, rgba(232, 97, 60, .35), transparent 60%),
    linear-gradient(135deg, #0A3D62 0%, #14607E 55%, #1B7FA6 100%);
  overflow: hidden;
}
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__img + .hero__shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10,61,98,.85), rgba(10,61,98,.45)); }
.hero__content { position: relative; padding: 72px 0 80px; max-width: 760px; }
.hero h1 { color: var(--white); }
.hero__lead { font-size: clamp(1.05rem, 2.2vw, 1.25rem); margin-bottom: 28px; color: #EAF4F9; }
.hero__actions { display: flex; flex-direction: column; gap: 12px; }
.hero__trust { margin: 24px 0 0; font-size: .9rem; color: #D5E7F0; }
.hero__waves { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: 40px; color: var(--white); }
@media (min-width: 600px) {
  .hero__actions { flex-direction: row; flex-wrap: wrap; }
  .hero__content { padding: 110px 0 120px; }
}

/* ---------- Carduri servicii ---------- */
.cards { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .cards { grid-template-columns: repeat(3, 1fr); } }
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 24px; box-shadow: var(--shadow); display: flex; flex-direction: column;
}
.card__icon {
  width: 56px; height: 56px; border-radius: 14px; background: #E5F2F7; color: var(--sea-dark);
  display: grid; place-items: center; margin-bottom: 16px;
}
.card__icon svg { width: 30px; height: 30px; }
.card p { color: var(--muted); flex: 1; }
.card__link { font-family: var(--font-head); font-weight: 600; text-decoration: none; color: var(--coral-dark); }
.card__link:hover { text-decoration: underline; color: #A83A21; }

/* ---------- Pași ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; counter-reset: step; }
@media (min-width: 800px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step { background: var(--white); border-radius: var(--radius); padding: 26px 24px; box-shadow: var(--shadow); position: relative; }
.step::before {
  counter-increment: step; content: counter(step);
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: var(--navy); color: var(--white); font-family: var(--font-head); font-weight: 700; margin-bottom: 14px;
}
.step p { margin: 0; color: var(--muted); }

/* ---------- De ce noi ---------- */
.reasons { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; }
@media (min-width: 640px) { .reasons { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .reasons { grid-template-columns: repeat(4, 1fr); } }
.reason { border-left: 4px solid var(--sea); padding: 4px 0 4px 18px; }
.reason p { margin: 0; color: var(--muted); }

/* ---------- Recenzii (secțiune ascunsă momentan) ---------- */
.reviews { display: grid; gap: 20px; }
@media (min-width: 800px) { .reviews { grid-template-columns: repeat(3, 1fr); } }
.review { background: var(--white); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); margin: 0; display: flex; flex-direction: column; }
.review__stars { color: #975A16; letter-spacing: 2px; font-size: 1.1rem; margin: 0 0 10px; }
.review blockquote { margin: 0 0 14px; flex: 1; }
.review blockquote p { margin: 0; color: var(--text); }
.review figcaption { font-family: var(--font-head); font-weight: 600; color: var(--navy); font-size: .95rem; }
.reviews__more { margin: 28px 0 0; }

/* ---------- FAQ ---------- */
.faq { max-width: 860px; }
.faq details { border: 1px solid var(--line); border-radius: 12px; background: var(--white); margin-bottom: 12px; }
.faq summary {
  cursor: pointer; list-style: none; padding: 18px 52px 18px 20px; position: relative;
  font-family: var(--font-head); font-weight: 600; color: var(--navy);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%);
  font-size: 1.5rem; line-height: 1; color: var(--sea-dark);
}
.faq details[open] summary::after { content: "−"; }
.faq details > div { padding: 0 20px 18px; color: var(--muted); }
.faq details > div p:last-child { margin-bottom: 0; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; gap: 32px; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 3fr 2fr; align-items: start; } }

.form { background: var(--white); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
@media (min-width: 600px) { .form { padding: 32px; } }
.form__row { display: grid; column-gap: 16px; row-gap: 0; }
@media (min-width: 600px) { .form__row--2 { grid-template-columns: 1fr 1fr; } }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; margin-bottom: 6px; color: var(--navy); }
.field .req { color: var(--coral-dark); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; color: var(--text); background: var(--white);
  border: 1.5px solid #B9C2CB; border-radius: 10px; padding: 12px 14px; min-height: 48px;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--sea); outline: 3px solid rgba(27,127,166,.25); outline-offset: 0; }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: #C0392B; }
.field__error { color: #B42318; font-size: .9rem; margin-top: 4px; }
.field--check { display: flex; gap: 12px; align-items: flex-start; }
.field--check input { width: 22px; height: 22px; min-height: 0; margin-top: 3px; flex: none; accent-color: var(--sea-dark); }
.field--check label { font-weight: 400; color: var(--text); margin: 0; }
.field--hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.field[hidden] { display: none; }

.form__status { border-radius: 10px; padding: 14px 16px; margin-bottom: 18px; font-weight: 600; }
.form__status--ok { background: #E3F6EA; color: #1E5631; border: 1px solid #A6D9B6; }
.form__status--err { background: #FDECEA; color: #8A1C12; border: 1px solid #F3B8B0; }
.form .btn { width: 100%; }
@media (min-width: 600px) { .form .btn { width: auto; } }
.form .btn[disabled] { opacity: .7; cursor: wait; }

.contact-info { background: var(--white); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
@media (min-width: 600px) { .contact-info { padding: 32px; } }
.contact-info h3 { margin-top: 1.4em; }
.contact-info h3:first-child { margin-top: 0; }
.contact-list { list-style: none; margin: 0; padding: 0; }
.contact-list li { margin-bottom: 10px; }
.contact-list strong { display: block; font-size: .85rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.contact-list a { font-weight: 600; }
.bank p { margin: 0 0 4px; }
.iban { margin: 12px 0; padding: 12px 14px; background: var(--sand); border-radius: 10px; }
.iban__label { font-size: .85rem; color: var(--muted); display: block; }
.iban__row { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.iban code { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: .85rem; color: var(--navy); font-weight: 600; white-space: nowrap; }
@media (min-width: 400px) { .iban code { font-size: .98rem; } }
.social { display: flex; gap: 12px; list-style: none; padding: 0; margin: 8px 0 16px; }
.social a {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: var(--navy); color: var(--white);
}
.social a:hover { background: var(--sea-dark); color: var(--white); }
.social svg { width: 22px; height: 22px; }

/* ---------- Pagini de politici ---------- */
.legal { padding: 48px 0 64px; }
.legal .container { max-width: 860px; }
.legal h2 { font-size: 1.4rem; margin-top: 1.8em; }
.legal h3 { margin-top: 1.4em; }
.legal__updated { color: var(--muted); font-style: italic; }
.table-wrap { overflow-x: auto; margin: 0 0 1.4em; border: 1px solid var(--line); border-radius: 10px; -webkit-overflow-scrolling: touch; }
.table-wrap:focus-visible { outline-offset: 2px; }
table { border-collapse: collapse; width: 100%; min-width: 560px; font-size: .95rem; }
th, td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--line); }
th { background: var(--sand); color: var(--navy); font-family: var(--font-head); font-weight: 600; }
tr:last-child td { border-bottom: 0; }

/* ---------- 404 ---------- */
.notfound { padding: 80px 0; text-align: center; }
.notfound .hero__actions { justify-content: center; }

/* ---------- Footer ---------- */
.site-footer { background: #072C47; color: #D6E2EA; padding: 56px 0 24px; font-size: .95rem; }
.site-footer a { color: #FFFFFF; }
.site-footer a:hover { color: #FFD7C9; }
.site-footer h2 { color: var(--white); font-size: 1.05rem; margin-bottom: 14px; }
.footer-grid { display: grid; gap: 32px; }
@media (min-width: 800px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr; } }
.footer-legal p { margin: 0 0 6px; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 8px; }
.linklike {
  background: none; border: 0; padding: 0; font: inherit; color: var(--white); text-decoration: underline; cursor: pointer;
}
.linklike:hover { color: #FFD7C9; }
.sal img { width: 250px; height: auto; background: var(--white); border-radius: 6px; }
.sal__fallback {
  display: inline-flex; align-items: center; justify-content: center; width: 250px; height: 50px;
  background: var(--white); color: var(--navy); border-radius: 6px; font-weight: 700; font-size: .85rem; text-decoration: none; text-align: center;
}
.footer-bottom { border-top: 1px solid rgba(255,255,255,.15); margin-top: 40px; padding-top: 20px; font-size: .875rem; color: #B7C8D4; }

/* ---------- Butoane fixe ---------- */
.mobile-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
  display: grid; grid-template-columns: 1fr 1fr; box-shadow: 0 -2px 12px rgba(0,0,0,.18);
}
.mobile-bar a {
  display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 56px;
  color: var(--white); text-decoration: none; font-family: var(--font-head); font-weight: 600;
}
.mobile-bar svg { width: 22px; height: 22px; }
.mobile-bar__call { background: var(--navy); }
.mobile-bar__wa { background: var(--wa-dark); }
.wa-float {
  display: none; position: fixed; right: 24px; bottom: 24px; z-index: 90;
  width: 60px; height: 60px; border-radius: 50%; background: var(--wa); color: var(--white);
  place-items: center; box-shadow: 0 6px 20px rgba(0,0,0,.25);
}
.wa-float:hover { color: var(--white); transform: scale(1.05); }
.wa-float svg { width: 32px; height: 32px; }
@media (min-width: 900px) {
  body { padding-bottom: 0; }
  .mobile-bar { display: none; }
  .wa-float { display: grid; }
}

/* ---------- Banner cookies ---------- */
.cookie-banner {
  position: fixed; left: 12px; right: 12px; bottom: 68px; z-index: 150;
  background: var(--white); color: var(--text); border-radius: var(--radius);
  box-shadow: 0 10px 40px rgba(0,0,0,.25); padding: 18px 20px; max-width: 640px; margin: 0 auto;
}
.cookie-banner[hidden] { display: none; }
.cookie-banner p { margin: 0 0 12px; font-size: .95rem; }
.cookie-banner__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cookie-banner__actions .btn { min-height: 44px; }
@media (min-width: 900px) { .cookie-banner { bottom: 24px; } }

/* Mesaje după trimitere fără JavaScript (trimite.php redirecționează spre #cerere-trimisa / #cerere-eroare) */
.nojs-msg { display: none; }
.nojs-msg:target { display: block; }
.linklike--dark { color: var(--sea-dark); font-weight: inherit; }
.linklike--dark:hover { color: var(--navy); }
