/* =====================================================
   ACAR „Carpathia” — replică modernă
   Culori brand: albastru #002780 · galben #FCD20E · roșu #CF0821
   ===================================================== */

:root {
  --blue: #002780;
  --blue-dark: #001a57;
  --yellow: #fcd20e;
  --red: #cf0821;
  --accent: #2ea3f2;
  --teal: #0078a8;
  --text: #4b5563;
  --heading: #1f2937;
  --bg: #ffffff;
  --bg-alt: #f7f8fb;
  --radius: 18px;
  --shadow: 0 10px 30px rgba(0, 39, 128, 0.10);
  --shadow-lg: 0 24px 60px rgba(0, 39, 128, 0.16);
  --font-head: "Rubik", Helvetica, Arial, sans-serif;
  --font-body: "Open Sans", Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  font-size: 16px;
}

img { max-width: 100%; display: block; }

.container { width: min(1180px, 92%); margin-inline: auto; }

h1, h2, h3 { font-family: var(--font-head); color: var(--heading); line-height: 1.15; }

.section-eyebrow {
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 18px;
}
.section-eyebrow.light { color: var(--yellow); }

/* ---------- Butoane ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 15px;
  padding: 14px 32px;
  border-radius: 999px;
  text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}
.btn:hover { transform: translateY(-3px); }
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 10px 24px rgba(0, 39, 128, 0.35); }
.btn-primary:hover { background: var(--blue-dark); }
.btn-ghost { background: rgba(255, 255, 255, 0.16); color: #fff; border: 1.5px solid rgba(255, 255, 255, 0.55); backdrop-filter: blur(6px); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.3); }
.btn-outline { color: var(--blue); border: 2px solid var(--blue); }
.btn-outline:hover { background: var(--blue); color: #fff; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  padding: 14px 0;
  transition: background 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease;
}
.site-header.scrolled {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  box-shadow: 0 6px 24px rgba(0, 20, 70, 0.10);
  padding: 8px 0;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; flex-shrink: 0; }
.brand-roundels { display: flex; gap: 4px; flex-shrink: 0; }
.brand-roundels img { width: 38px; height: 38px; flex-shrink: 0; }
.brand-name {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--heading);
  line-height: 1.35;
}

.main-nav { display: flex; align-items: center; gap: 26px; }
.main-nav a {
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 500;
  color: var(--heading);
  text-decoration: none;
  position: relative;
  transition: color 0.2s;
}
.main-nav a:not(.btn-login)::after {
  content: "";
  position: absolute;
  left: 0; bottom: -6px;
  width: 0; height: 2.5px;
  background: var(--red);
  border-radius: 2px;
  transition: width 0.25s ease;
}
.main-nav a:hover::after, .main-nav a.active::after { width: 100%; }
.main-nav a:hover { color: var(--blue); }
.main-nav .btn-login {
  background: var(--blue);
  color: #fff;
  padding: 9px 22px;
  border-radius: 999px;
  transition: background 0.25s;
}
.main-nav .btn-login:hover { background: var(--blue-dark); color: #fff; }
.main-nav .lang { font-size: 14px; opacity: 0.85; }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 6px; }
.nav-toggle span { display: block; width: 26px; height: 3px; background: var(--blue); margin: 5px 0; border-radius: 2px; transition: 0.3s; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(160deg, #6fb4e8 0%, #9ccdf0 35%, #d7ecfb 70%, #f2f9ff 100%);
  padding: 140px 0 120px;
}
.hero-sky { position: absolute; inset: 0; pointer-events: none; }
.cloud {
  position: absolute;
  background: rgba(255, 255, 255, 0.75);
  border-radius: 999px;
  filter: blur(22px);
  animation: drift 40s linear infinite;
}
.cloud-1 { width: 420px; height: 110px; top: 18%; left: -10%; }
.cloud-2 { width: 560px; height: 140px; top: 52%; left: 30%; animation-duration: 55s; animation-delay: -20s; }
.cloud-3 { width: 340px; height: 90px; top: 74%; left: 65%; animation-duration: 48s; animation-delay: -35s; }
@keyframes drift {
  from { transform: translateX(-30vw); }
  to { transform: translateX(130vw); }
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 48px;
  align-items: center;
}

.hero-eyebrow {
  display: inline-block;
  background: var(--blue);
  color: #fff;
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 14px;
  padding: 10px 20px;
  border-radius: 12px;
  margin-bottom: 28px;
  max-width: 560px;
}
.hero h1 {
  font-size: clamp(52px, 7.5vw, 88px);
  font-weight: 800;
  text-transform: uppercase;
  color: var(--blue);
  letter-spacing: -0.01em;
  margin-bottom: 26px;
}
.hero-sub {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 18px;
  color: var(--blue);
  max-width: 520px;
  margin-bottom: 36px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-actions .btn-ghost { color: var(--blue); border-color: var(--blue); background: rgba(255,255,255,0.4); }

.hero-badge { display: flex; justify-content: center; }
.badge-circle {
  width: clamp(240px, 26vw, 340px);
  aspect-ratio: 1;
  background: var(--yellow);
  border-radius: 50%;
  display: grid;
  place-items: center;
  box-shadow: 0 30px 70px rgba(160, 120, 0, 0.35);
  animation: float 6s ease-in-out infinite;
}
.plane-svg { width: 62%; }
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-18px); }
}

.hero-wave { position: absolute; left: 0; right: 0; bottom: -1px; line-height: 0; }
.hero-wave svg { width: 100%; height: 90px; display: block; }

/* ---------- Banda roșie servicii ---------- */
.services-band { background: var(--red); padding: 46px 0 60px; }
.services-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
  text-align: center;
}
.service { color: #fff; }
.service svg {
  width: 58px; height: 58px;
  margin-inline: auto;
  margin-bottom: 12px;
  transition: transform 0.3s ease;
}
.service:hover svg { transform: translateY(-6px) scale(1.08); }
.service span {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ---------- Statistici ---------- */
.stats { background: var(--bg-alt); padding: 90px 0; }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}
.stat {
  background: #fff;
  border-radius: var(--radius);
  padding: 30px 22px;
  text-align: center;
  box-shadow: var(--shadow);
  border-top: 4px solid var(--yellow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.stat:nth-child(odd) { border-top-color: var(--blue); }
.stat:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.stat-num {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(22px, 2vw, 30px);
  color: var(--blue);
  min-height: 1.3em;
  overflow-wrap: anywhere;
}
.stat-label {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--red);
  margin: 6px 0 8px;
}
.stat p { font-size: 14px; }

/* ---------- Cine suntem ---------- */
.who { padding: 110px 0; }
.who-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 60px; align-items: center; }
.who h2 { font-size: clamp(30px, 3.4vw, 42px); font-weight: 700; margin-bottom: 20px; }
.who-text > p { margin-bottom: 26px; }

.quote {
  background: linear-gradient(135deg, var(--blue) 0%, #003aa8 100%);
  color: rgba(255, 255, 255, 0.92);
  border-radius: var(--radius);
  padding: 34px 36px;
  position: relative;
  box-shadow: var(--shadow-lg);
}
.quote::before {
  content: "“";
  position: absolute;
  top: -6px; left: 22px;
  font-family: var(--font-head);
  font-size: 90px;
  font-weight: 800;
  color: var(--yellow);
  line-height: 1;
}
.quote p { font-style: italic; font-size: 15px; margin-bottom: 18px; }
.quote footer { display: flex; flex-direction: column; }
.quote footer strong { font-family: var(--font-head); font-size: 17px; color: #fff; }
.quote footer span { font-size: 13px; color: var(--yellow); text-transform: uppercase; letter-spacing: 0.08em; }

.carousel {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 16 / 10;
  background: var(--blue-dark);
}
.carousel img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.9s ease;
}
.carousel img.is-active { opacity: 1; }
.carousel-dots {
  position: absolute;
  bottom: 14px; left: 0; right: 0;
  display: flex; justify-content: center; gap: 8px;
  z-index: 2;
}
.carousel-dots button {
  width: 10px; height: 10px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: 0.25s;
}
.carousel-dots button.is-active { background: var(--yellow); transform: scale(1.25); }

/* ---------- Tabs ---------- */
.brief { background: var(--bg-alt); padding: 100px 0; }
.tabs { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.tab-buttons { display: flex; flex-wrap: wrap; border-bottom: 1px solid #e5e9f2; }
.tab-btn {
  flex: 1;
  min-width: 120px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 15px;
  padding: 18px 12px;
  border: 0;
  background: none;
  color: var(--text);
  cursor: pointer;
  position: relative;
  transition: color 0.2s, background 0.2s;
}
.tab-btn::after {
  content: "";
  position: absolute;
  left: 20%; right: 20%; bottom: 0;
  height: 3px;
  background: var(--red);
  border-radius: 3px 3px 0 0;
  transform: scaleX(0);
  transition: transform 0.25s ease;
}
.tab-btn:hover { color: var(--blue); background: #f6f8fd; }
.tab-btn.is-active { color: var(--blue); }
.tab-btn.is-active::after { transform: scaleX(1); }
.tab-panels { padding: 38px 42px; }
.tab-panel { display: none; animation: fadeUp 0.45s ease; }
.tab-panel.is-active { display: block; }
.tab-panel .more { display: inline-block; margin-top: 14px; }

.more {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 14px;
  color: var(--red);
  text-decoration: none;
}
.more:hover { text-decoration: underline; }

/* ---------- Evenimente + vreme ---------- */
.events-weather { padding: 100px 0; }
.ew-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 48px; align-items: start; }

.event-card {
  display: flex;
  gap: 22px;
  align-items: center;
  background: #fff;
  border: 1px solid #e7ebf4;
  border-radius: var(--radius);
  padding: 22px 26px;
  margin-bottom: 18px;
  box-shadow: 0 6px 18px rgba(0, 39, 128, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.event-card:hover { transform: translateX(6px); box-shadow: var(--shadow); }
.event-date {
  flex: 0 0 72px;
  background: var(--blue);
  color: #fff;
  border-radius: 14px;
  text-align: center;
  padding: 12px 0;
  font-family: var(--font-head);
}
.event-date .d { display: block; font-size: 28px; font-weight: 800; line-height: 1; }
.event-date .m { display: block; font-size: 12px; font-weight: 600; letter-spacing: 0.14em; color: var(--yellow); }
.event-day {
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
}
.event-info h3 { font-size: 18px; font-weight: 600; margin-top: 4px; }
.events .btn { margin-top: 10px; }

.side-widgets { display: flex; flex-direction: column; gap: 20px; }
.share-docs {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--blue);
  color: #fff;
  font-family: var(--font-head);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 14px;
  padding: 20px 24px;
  border-radius: var(--radius);
  text-decoration: none;
  box-shadow: var(--shadow);
  transition: background 0.25s, transform 0.25s;
}
.share-docs:hover { background: var(--blue-dark); transform: translateY(-4px); }
.share-docs svg { width: 26px; height: 26px; color: var(--yellow); }

.weather-card {
  background: linear-gradient(150deg, var(--blue) 0%, #0a3fb0 100%);
  color: #fff;
  border-radius: var(--radius);
  padding: 26px 28px;
  box-shadow: var(--shadow-lg);
}
.weather-card h3 { color: #fff; font-size: 20px; margin-bottom: 10px; }
.weather-main { display: flex; align-items: baseline; gap: 14px; margin-bottom: 18px; }
.weather-temp { font-family: var(--font-head); font-size: 46px; font-weight: 800; }
.weather-desc { font-size: 14px; color: var(--yellow); font-weight: 600; }
.weather-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 18px;
  font-size: 13px;
}
.weather-details div { display: flex; justify-content: space-between; border-bottom: 1px dashed rgba(255,255,255,0.25); padding-bottom: 6px; }
.weather-details span { opacity: 0.75; }
.weather-updated { margin-top: 14px; font-size: 11px; opacity: 0.6; }

/* ---------- Știri ---------- */
.news { background: var(--bg-alt); padding: 100px 0; }
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.news-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.news-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.news-img { aspect-ratio: 16 / 10; overflow: hidden; }
.news-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.news-card:hover .news-img img { transform: scale(1.06); }
.news-body { padding: 24px 26px 28px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.news-cat {
  font-family: var(--font-head);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}
.news-body h3 { font-size: 18px; font-weight: 600; }
.news-body p { font-size: 14px; flex: 1; }
.news-cta { text-align: center; margin-top: 40px; }

/* ---------- Virtual tour ---------- */
.tour { background: var(--blue); padding: 100px 0; }
.tour-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 150px;
  gap: 14px;
}
.tour-grid img {
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: 12px;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.tour-grid img:hover { transform: scale(1.04); box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45); z-index: 2; position: relative; }
.tour-grid img.tall { grid-row: span 2; }

/* ---------- Contact ---------- */
.contact { background: linear-gradient(180deg, var(--blue) 0%, var(--blue-dark) 100%); padding: 100px 0 110px; }
.contact-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 48px; align-items: start; }

.contact-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 42px 44px;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}
.contact-accent { position: absolute; top: 0; left: 0; right: 0; height: 8px; background: var(--yellow); }
.contact-card h2 { font-size: 36px; font-weight: 800; margin-bottom: 16px; }
.contact-org {
  font-family: var(--font-head);
  font-weight: 600;
  color: var(--heading);
  border-left: 4px solid var(--blue);
  padding-left: 12px;
  margin-bottom: 18px;
}
.contact-card p { margin-bottom: 10px; font-size: 15px; }
.contact-card a { color: var(--accent); }
.contact-card .btn { margin-top: 16px; }
.contact-map {
  margin-top: 28px;
  height: 260px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid #e5e9f2;
  z-index: 1;
}

.useful-list { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.useful-list a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 14px;
  padding: 15px 22px;
  border-radius: 12px;
  text-decoration: none;
  transition: background 0.25s, transform 0.25s;
}
.useful-list a:hover { background: var(--red); transform: translateX(6px); }
.useful-list a span {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  display: grid;
  place-items: center;
  font-weight: 700;
}

/* ---------- Footer ---------- */
.site-footer { background: #0d0d12; color: #9aa1ad; }
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  padding: 34px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.footer-nav { display: flex; flex-wrap: wrap; gap: 26px; }
.footer-nav a {
  color: #d3d7de;
  text-decoration: none;
  font-family: var(--font-head);
  font-size: 14px;
  transition: color 0.2s;
}
.footer-nav a:hover { color: var(--yellow); }
.footer-social { display: flex; gap: 14px; }
.footer-social a {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  display: grid;
  place-items: center;
  color: #d3d7de;
  transition: background 0.25s, color 0.25s, transform 0.25s;
}
.footer-social a:hover { background: var(--red); color: #fff; transform: translateY(-3px); }
.footer-social svg { width: 18px; height: 18px; }
.footer-bottom { padding: 20px 0; font-size: 13px; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: none; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .services-grid, .stats-grid { grid-template-columns: repeat(3, 1fr); gap: 22px; }
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-badge { order: -1; }
  .badge-circle { width: 200px; }
  .hero-actions { justify-content: center; }
  .hero-eyebrow { max-width: none; }
  .who-grid, .ew-grid, .contact-grid { grid-template-columns: 1fr; }
  .news-grid { grid-template-columns: 1fr 1fr; }
  .tour-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 720px) {
  .main-nav {
    position: fixed;
    top: 64px; right: 0;
    background: #fff;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    width: min(320px, 84vw);
    padding: 18px;
    border-radius: 0 0 0 var(--radius);
    box-shadow: var(--shadow-lg);
    transform: translateX(110%);
    transition: transform 0.3s ease;
  }
  .main-nav.open { transform: none; }
  .main-nav a { padding: 10px 8px; width: 100%; }
  .nav-toggle { display: block; }
  .brand-name { font-size: 11px; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .news-grid { grid-template-columns: 1fr; }
  .tour-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 120px; }
  .tab-panels { padding: 26px 22px; }
  .contact-card { padding: 30px 24px; }
  .footer-top { flex-direction: column; }
}
