/* Autogaz Moldova — shared styles (all languages) */
:root {
  --bg: #f3f6f4;
  --bg-deep: #e7eee9;
  --ink: #1a2420;
  --ink-soft: #53605a;
  --brand: #0b6b48;
  --brand-dark: #085237;
  --accent: #d4890a;
  --accent-soft: #f3c56a;
  --line: rgba(26, 36, 32, 0.12);
  --surface: #ffffff;
  --white: #ffffff;
  --shadow: 0 12px 32px rgba(10, 40, 28, 0.1);
  --radius: 8px;
  --container: 1120px;
  --header-h: 68px;
  --font-display: "Outfit", sans-serif;
  --font-body: "Outfit", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(ellipse 70% 45% at 0% 0%, rgba(11, 107, 72, 0.08), transparent 55%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-deep) 100%);
  background-attachment: fixed;
  font-size: 1rem;
  line-height: 1.6;
  font-weight: 400;
  letter-spacing: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 650;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--ink);
}

.hero-content {
  color: var(--white);
}

.hero-content h1,
.hero-content p {
  color: inherit;
}

.cta-band h2,
.cta-band p {
  color: inherit;
}

main {
  flex: 1;
}

.btn-ghost.on-dark,
.hero .btn-ghost {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.35);
}

.hero .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
}

img {
  max-width: 100%;
  display: block;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

button,
input,
textarea,
select {
  font: inherit;
}

.container {
  width: min(100% - 2rem, var(--container));
  margin-inline: auto;
}

/* ——— Header (identical structure all langs) ——— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  backdrop-filter: blur(14px);
  background: rgba(238, 243, 240, 0.88);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-display);
  font-weight: 650;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  flex-shrink: 0;
  color: var(--ink);
}

.logo-mark {
  width: 34px;
  height: 34px;
  border-radius: 7px;
  background: var(--brand);
  display: grid;
  place-items: center;
  color: var(--white);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.1rem;
}

.nav a {
  padding: 0.4rem 0.55rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink-soft);
  border-radius: 6px;
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
  white-space: nowrap;
}

.nav a:hover {
  color: var(--ink);
  background: transparent;
}

.nav a[aria-current="page"] {
  color: var(--brand);
  background: transparent;
  font-weight: 600;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-shrink: 0;
}

.lang-switch {
  display: flex;
  gap: 2px;
  padding: 2px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--white);
}

.lang-switch a {
  padding: 0.3rem 0.5rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--ink-soft);
  border-radius: 5px;
  transition: background 0.2s, color 0.2s;
  line-height: 1.2;
}

.lang-switch a:hover {
  color: var(--ink);
}

.lang-switch a[aria-current="true"] {
  background: var(--brand);
  color: var(--white);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.75rem 1.25rem;
  font-weight: 600;
  font-size: 0.94rem;
  line-height: 1.2;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.2s var(--ease), border-color 0.2s, color 0.2s, box-shadow 0.2s;
}

.btn:hover {
  transform: none;
}

.btn-primary {
  background: var(--brand);
  color: var(--white);
  box-shadow: none;
}

.btn-primary:hover {
  background: var(--brand-dark);
  box-shadow: none;
}

.btn-accent {
  background: var(--accent);
  color: #1a2420;
  box-shadow: none;
}

.btn-accent:hover {
  background: #c27b08;
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}

.btn-ghost:hover {
  background: rgba(26, 36, 32, 0.04);
}

.btn-sm {
  padding: 0.45rem 0.9rem;
  font-size: 0.84rem;
  font-weight: 600;
}

.header-actions .btn-sm {
  box-shadow: none;
  white-space: nowrap;
}

.nav-cta-mobile {
  display: none;
}

body.nav-open {
  overflow: hidden;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--white);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  padding: 0;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  transition: transform 0.25s var(--ease), opacity 0.2s;
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ——— Hero ——— */
.hero {
  position: relative;
  min-height: calc(100vh - var(--header-h));
  display: grid;
  align-items: end;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  animation: heroZoom 18s var(--ease) infinite alternate;
}

@keyframes heroZoom {
  from { transform: scale(1); }
  to { transform: scale(1.06); }
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(6, 30, 22, 0.35) 0%, rgba(6, 30, 22, 0.75) 100%),
    linear-gradient(90deg, rgba(6, 30, 22, 0.7) 0%, rgba(6, 30, 22, 0.25) 55%, transparent 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 4rem 0 5rem;
  color: var(--white);
  max-width: 640px;
  animation: riseIn 0.9s var(--ease) both;
}

@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.1rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: 0.85rem;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.6vw, 1.55rem);
  font-weight: 550;
  line-height: 1.35;
  letter-spacing: -0.01em;
  margin-bottom: 0.75rem;
  max-width: 32ch;
}

.hero-lead {
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.55;
  opacity: 0.9;
  margin-bottom: 1.5rem;
  max-width: 44ch;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* ——— Page hero (inner pages) ——— */
.page-hero {
  padding: 3.5rem 0 2.5rem;
  border-bottom: 1px solid var(--line);
}

.page-hero .eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 0.65rem;
}

.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.15;
  margin-bottom: 0.75rem;
  max-width: 20ch;
}

.page-hero p {
  color: var(--ink-soft);
  max-width: 52ch;
  font-size: 1.02rem;
  line-height: 1.6;
}

/* ——— Sections ——— */
.section {
  padding: 4.5rem 0;
}

.section-head {
  margin-bottom: 2.5rem;
  max-width: 560px;
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 2.8vw, 1.95rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 0.55rem;
}

.section-head p {
  color: var(--ink-soft);
}

.section-alt {
  background: rgba(255, 255, 255, 0.45);
  border-block: 1px solid var(--line);
}

/* Split feature */
.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3rem;
  align-items: center;
}

.split-media {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  min-height: 360px;
  box-shadow: var(--shadow);
}

.split-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}

.split-copy h2 {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.6vw, 1.85rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.9rem;
  line-height: 1.2;
}

.split-copy p {
  color: var(--ink-soft);
  margin-bottom: 1rem;
}

.split-copy ul {
  margin: 1.25rem 0 1.75rem;
  display: grid;
  gap: 0.65rem;
}

.split-copy li {
  padding-left: 1.35rem;
  position: relative;
  color: var(--ink-soft);
}

.split-copy li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 1px;
}

/* Feature list (not cards for display — clean rows) */
.feature-list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.feature-item {
  display: grid;
  grid-template-columns: 4rem 1fr;
  gap: 1.25rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
  transition: background 0.25s var(--ease);
}

.feature-item:hover {
  background: rgba(10, 92, 64, 0.04);
}

.feature-num {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--brand);
  letter-spacing: -0.02em;
}

.feature-item h3 {
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 650;
  margin-bottom: 0.3rem;
  letter-spacing: -0.01em;
}

.feature-item p {
  color: var(--ink-soft);
  font-size: 0.95rem;
}

/* Service links — interaction containers */
.service-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.service-link {
  display: block;
  padding: 1.75rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 4px 20px rgba(10, 40, 28, 0.04);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.2s;
}

.service-link:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: rgba(10, 92, 64, 0.25);
}

.service-link h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 650;
  margin-bottom: 0.45rem;
  color: var(--brand);
  letter-spacing: -0.01em;
}

.service-link p {
  color: var(--ink-soft);
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.service-link .more {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--accent);
}

/* Price table */
.price-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.price-table th,
.price-table td {
  padding: 1rem 1.25rem;
  text-align: left;
  border-bottom: 1px solid var(--line);
}

.price-table th {
  background: var(--brand);
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
}

.price-table tr:last-child td {
  border-bottom: none;
}

.price-table td:last-child {
  font-weight: 700;
  color: var(--brand);
  white-space: nowrap;
}

.price-note {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

/* FAQ */
.faq-list {
  display: grid;
  gap: 0.65rem;
}

.faq-item {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.faq-item summary {
  padding: 1.05rem 1.2rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  font-family: var(--font-display);
  font-size: 0.98rem;
  letter-spacing: -0.01em;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  font-size: 1.25rem;
  color: var(--brand);
  font-weight: 400;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item .faq-body {
  padding: 0 1.35rem 1.25rem;
  color: var(--ink-soft);
}

/* Contact form */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 2.5rem;
  align-items: start;
}

.contact-info {
  display: grid;
  gap: 1.25rem;
}

.contact-info dt {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 0.25rem;
}

.contact-info dd {
  color: var(--ink-soft);
}

.contact-info a:hover {
  color: var(--brand);
}

.form {
  display: grid;
  gap: 1rem;
  padding: 1.75rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.form label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.9rem;
  font-weight: 600;
}

.form input,
.form textarea,
.form select {
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--ink);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form input:focus,
.form textarea:focus,
.form select:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(10, 92, 64, 0.15);
}

.form textarea {
  min-height: 120px;
  resize: vertical;
}

/* CTA band */
.cta-band {
  padding: 4rem 0;
  background:
    linear-gradient(135deg, var(--brand-dark) 0%, var(--brand) 55%, #0e7a55 100%);
  color: var(--white);
  text-align: center;
}

.cta-band h2 {
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 2.8vw, 1.95rem);
  font-weight: 700;
  margin-bottom: 0.55rem;
  letter-spacing: -0.02em;
}

.cta-band p {
  opacity: 0.9;
  margin-bottom: 1.5rem;
  max-width: 42ch;
  margin-inline: auto;
}

.cta-band .btn-accent:hover {
  transform: translateY(-2px);
}

/* Content prose */
.prose {
  max-width: 68ch;
}

.prose h2 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  margin: 1.75rem 0 0.65rem;
  letter-spacing: -0.02em;
}

.prose h3 {
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 650;
  margin: 1.35rem 0 0.45rem;
  letter-spacing: -0.01em;
}

.prose p {
  color: var(--ink-soft);
  margin-bottom: 1rem;
}

.prose ul {
  margin: 0 0 1.25rem 1.1rem;
  list-style: disc;
  color: var(--ink-soft);
}

.prose li {
  margin-bottom: 0.4rem;
}

/* Reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ——— Footer ——— */
.site-footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.82);
  padding: 3.5rem 0 1.5rem;
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.65rem;
  letter-spacing: -0.01em;
}

.footer-brand-desc {
  font-size: 0.92rem;
  line-height: 1.55;
  max-width: 28ch;
  opacity: 0.75;
}

.footer-col h3 {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-soft);
  margin-bottom: 0.9rem;
}

.footer-col a {
  display: block;
  padding: 0.25rem 0;
  font-size: 0.92rem;
  opacity: 0.8;
  transition: opacity 0.2s, color 0.2s;
}

.footer-col a:hover {
  opacity: 1;
  color: var(--accent-soft);
}

.footer-bottom {
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.85rem;
  opacity: 0.65;
}

/* ——— Responsive ——— */
@media (max-width: 1100px) {
  .nav a {
    padding: 0.4rem 0.42rem;
    font-size: 0.84rem;
  }

  .header-actions {
    gap: 0.4rem;
  }
}

@media (max-width: 960px) {
  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    background: rgba(243, 246, 244, 0.98);
    backdrop-filter: blur(12px);
    padding: 0.75rem 1rem 1.1rem;
    border-bottom: 1px solid var(--line);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.35s var(--ease), opacity 0.35s var(--ease);
    gap: 0.15rem;
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
    z-index: 99;
  }

  .nav.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav a {
    padding: 0.85rem 0.9rem;
    font-size: 1rem;
    border-radius: 7px;
  }

  .nav a[aria-current="page"] {
    background: rgba(11, 107, 72, 0.08);
  }

  .menu-toggle {
    display: flex;
  }

  .header-actions .btn-sm,
  .header-actions .header-cta {
    display: inline-flex;
    padding: 0.42rem 0.75rem;
    font-size: 0.8rem;
  }

  .nav-cta-mobile {
    display: none;
  }

  .logo {
    font-size: 0.98rem;
  }

  .split {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }

  .split-media {
    min-height: 260px;
  }

  .service-grid {
    grid-template-columns: 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .hero {
    min-height: calc(100svh - var(--header-h));
  }

  .hero-cta {
    width: 100%;
  }

  .hero-cta .btn {
    flex: 1 1 auto;
    min-height: 44px;
  }
}

@media (max-width: 560px) {
  .container {
    width: min(100% - 1.25rem, var(--container));
  }

  .header-actions .btn-sm,
  .header-actions .header-cta {
    display: none;
  }

  .nav-cta-mobile {
    display: flex;
    margin-top: 0.65rem;
    width: 100%;
    justify-content: center;
  }

  .logo-text {
    max-width: 42vw;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .hero-content {
    padding: 2.5rem 0 3rem;
  }

  .hero-brand {
    font-size: clamp(1.75rem, 9vw, 2.25rem);
  }

  .hero h1 {
    font-size: 1.15rem;
  }

  .hero-lead {
    font-size: 0.95rem;
  }

  .hero-cta {
    flex-direction: column;
  }

  .hero-cta .btn {
    width: 100%;
  }

  .page-hero {
    padding: 2.5rem 0 1.75rem;
  }

  .section {
    padding: 3.25rem 0;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .feature-item {
    grid-template-columns: 2.75rem 1fr;
    gap: 0.85rem;
  }

  .price-table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .price-table th,
  .price-table td {
    padding: 0.75rem;
    font-size: 0.88rem;
  }

  .lang-switch a {
    padding: 0.32rem 0.42rem;
  }
}

/* Skip link */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--brand);
  color: var(--white);
  padding: 0.75rem 1rem;
  z-index: 200;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}
