@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
  --bg: #f7f9fc;
  --surface: #ffffff;
  --surface-2: #f1f5f9;
  --text: #122033;
  --muted: #5c6b80;
  --line: #dbe4ef;
  --primary: #0f2b46;
  --primary-2: #173b5f;
  --accent: #be9b60;
  --accent-dark: #9c7f4d;
  --success: #0f8b6d;
  --danger: #b42318;
  --shadow: 0 18px 48px rgba(15, 43, 70, 0.08);
  --shadow-lg: 0 24px 70px rgba(15, 43, 70, 0.16);
  --radius: 22px;
  --radius-sm: 16px;
  --container: 1180px;
  --header-h: 82px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Manrope', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(190, 155, 96, 0.08), transparent 26%),
    linear-gradient(180deg, #fbfcfe 0%, #f4f7fb 100%);
  line-height: 1.65;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

.container {
  width: min(calc(100% - 32px), var(--container));
  margin-inline: auto;
}

.section {
  padding: 88px 0;
}

.section-sm {
  padding: 68px 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(190, 155, 96, 0.12);
  color: var(--primary);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.eyebrow::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.9;
}

.micro {
  margin-top: 10px;
  font-size: 0.9rem;
  color: #6b7280;
}

h1, h2, h3, h4 {
  margin: 0 0 16px;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2.2rem, 3.2vw, 3.2rem);
}

h2 {
  font-size: clamp(1.6rem, 2.2vw, 2.1rem);
  line-height: 1.3;
  font-weight: 700;
}

h3 {
  font-size: 1.25rem;
}

p {
  margin: 0 0 16px;
  color: var(--muted);
}

.lead {
  font-size: 1.1rem;
  max-width: 60ch;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
  cursor: pointer;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent) 0%, #d3b27c 100%);
  color: #1e293b;
  box-shadow: 0 16px 40px rgba(190, 155, 96, 0.24);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #d3b27c 0%, #e5c994 100%);
}

.btn-secondary {
  background: rgba(15, 43, 70, 0.06);
  border-color: rgba(15, 43, 70, 0.14);
  color: var(--primary);
}

.btn-dark {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 16px 40px rgba(15, 43, 70, 0.24);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(18px);
  background: rgba(247, 249, 252, 0.82);
  border-bottom: 1px solid rgba(219, 228, 239, 0.8);
}

.nav-shell {
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.brand-mark {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--primary), #274c72);
  color: #fff;
  font-weight: 800;
  box-shadow: var(--shadow);
}

.brand-copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.brand-title {
  font-weight: 800;
  color: var(--primary);
}

.brand-subtitle {
  font-size: 0.85rem;
  color: var(--muted);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-links a {
  padding: 12px 16px;
  border-radius: 999px;
  color: var(--primary);
  font-weight: 700;
}

.nav-links a.active,
.nav-links a:hover {
  background: rgba(15, 43, 70, 0.08);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mobile-toggle {
  display: none;
  width: 48px;
  height: 48px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 14px;
  cursor: pointer;
}

.mobile-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--primary);
  margin: 5px auto;
  transition: 0.2s ease;
}

/* FIX: ascunde meniul mobil pe desktop */
.nav-panel {
  display: none;
}

.hero {
  padding: 56px 0 44px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 34px;
  align-items: stretch;
}

.hero-copy {
  background: rgba(255,255,255,0.78);
  border: 1px solid rgba(219, 228, 239, 0.9);
  border-radius: 28px;
  padding: 42px;
  box-shadow: var(--shadow);
}

.hero-highlights {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 30px;
}

.stat-chip {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px;
}

.stat-chip strong {
  display: block;
  color: var(--primary);
  font-size: 1.3rem;
}

.hero-media,
.page-hero-media,
.story-media,
.cta-photo,
.contact-card-visual {
  min-height: 100%;
  border-radius: 28px;
  background-size: cover;
  background-position: center;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

/* FIX: blocul era incomplet */
.hero-media::after,
.page-hero-media::after,
.story-media::after,
.contact-card-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(15,43,70,0.05),
    rgba(15,43,70,0.25)
  );
}

.hero-media {
  min-height: 650px;
  background-image:
    linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.02)),
    url('../images/consultanta-fiscala.webp');
  background-size: cover;
  background-position: center;
}

.page-hero-media.about {
  min-height: 470px;
  background-image: url('../images/About_Ideal_Accountant.webp');
  background-size: cover;
  background-position: center;
}

.page-hero-media.services {
  min-height: 470px;
  background-image: url('../images/Servicii_contabilitate_bucurestil.webp');
  background-size: cover;
  background-position: center;
}

.page-hero-media.contact {
  min-height: 470px;
  background-image: url('../images/Contactati_Ideal_accountant_contabilitate_bucuresti.webp');
  background-size: cover;
  background-position: center;
}

.hero-badge,
.media-note {
  position: absolute;
  z-index: 2;
  left: 24px;
  right: 24px;
  bottom: 24px;
  padding: 18px 20px;
  border-radius: 20px;
  background: rgba(255,255,255,0.9);
  color: var(--primary);
  box-shadow: var(--shadow);
}

.hero-badge strong,
.media-note strong {
  display: block;
  margin-bottom: 4px;
}

.grid-3,
.grid-2,
.cards {
  display: grid;
  gap: 22px;
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.card {
  background: rgba(255,255,255,0.85);
  border: 1px solid rgba(219,228,239,0.95);
  border-radius: 24px;
  padding: 28px;
  box-shadow: var(--shadow);
}

.card-icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: rgba(15, 43, 70, 0.08);
  color: var(--primary);
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 18px;
}

.card ul,
.check-list,
.info-list {
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
}

.card li,
.check-list li,
.info-list li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 12px;
  color: var(--muted);
}

.card li::before,
.check-list li::before,
.info-list li::before {
  content: "•";
  position: absolute;
  left: 10px;
  top: -1px;
  color: var(--accent);
  font-weight: 800;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.pill {
  padding: 10px 14px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--primary);
  font-weight: 700;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: center;
}

.story-media {
  min-height: 520px;
  background-image: url('../images/contabilitate-bucuresti.webp');
  background-size: cover;
  background-position: center;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.metric {
  background: #ffffff;
  padding: 24px;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.06);
  text-align: left;
  transition: 0.3s ease;
}

.metric:hover {
  transform: translateY(-5px);
}

.metric strong {
  display: block;
  font-size: 1.1rem;
  margin-bottom: 8px;
  color: #0f2b46;
}

@media (max-width: 900px) {
  .metrics {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 600px) {
  .metrics {
    grid-template-columns: 1fr;
  }
}

.cta-band {
  position: relative;
  overflow: hidden;
  border-radius: 32px;
  background: linear-gradient(135deg, var(--primary) 0%, #1f4368 100%);
  color: #fff;
  padding: 38px;
  box-shadow: var(--shadow-lg);
}

.cta-band p,
.cta-band h2,
.cta-band li {
  color: rgba(255,255,255,0.88);
}

.cta-band h2 {
  color: #fff;
}

.cta-band .eyebrow {
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
}

.cta-band .eyebrow::before {
  background: #f2c879;
}

.cta-band .btn-secondary {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.28);
  color: #ffffff;
}

.cta-band .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.22);
  color: #ffffff;
}

.cta-band .btn-primary {
  color: #122033;
}

.cta-band a:not(.btn) {
  color: #ffffff;
}

.cta-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 24px;
  align-items: center;
}

.cta-photo {
  min-height: 340px;
  border-radius: 24px;
  background:
    linear-gradient(
      180deg,
      rgba(15,43,70,0.2),
      rgba(15,43,70,0.4)
    ),
    url('../images/Solicita_oferta_contabilitate.avif');
  background-size: cover;
  background-position: center;
}

.testimonial {
  position: relative;
}

.testimonial::before {
  content: "“";
  position: absolute;
  right: 24px;
  top: 10px;
  color: rgba(15,43,70,0.12);
  font-size: 5rem;
  line-height: 1;
  font-weight: 800;
}

.contact-layout {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 28px;
}

.contact-panel {
  display: grid;
  gap: 20px;
}

.contact-card-visual {
  min-height: 280px;
  background-image: url('../images/Contabilitate_Precisă.avif');
}

.contact-box {
  background: rgba(255,255,255,0.88);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 26px;
  box-shadow: var(--shadow);
}

.contact-item {
  display: grid;
  gap: 4px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.contact-item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.contact-label {
  font-size: 0.9rem;
  color: var(--muted);
  font-weight: 700;
}

.contact-value {
  color: var(--primary);
  font-weight: 800;
}

form {
  background: rgba(255,255,255,0.92);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 30px;
  box-shadow: var(--shadow-lg);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.field {
  display: grid;
  gap: 8px;
}

.field.full {
  grid-column: 1 / -1;
}

label {
  font-weight: 700;
  color: var(--primary);
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid #cfd8e3;
  border-radius: 16px;
  padding: 14px 16px;
  background: #fff;
  color: var(--text);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: rgba(15, 43, 70, 0.35);
  box-shadow: 0 0 0 4px rgba(15, 43, 70, 0.08);
}

textarea {
  min-height: 160px;
  resize: vertical;
}

.checkbox {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: var(--muted);
  font-size: 0.95rem;
}

.checkbox input {
  width: 18px;
  height: 18px;
  margin-top: 3px;
}

.notice {
  padding: 16px 18px;
  border-radius: 16px;
  margin-bottom: 18px;
  font-weight: 700;
}

.notice-success {
  background: rgba(15, 139, 109, 0.12);
  color: var(--success);
  border: 1px solid rgba(15, 139, 109, 0.18);
}

.notice-error {
  background: rgba(180, 35, 24, 0.08);
  color: var(--danger);
  border: 1px solid rgba(180, 35, 24, 0.14);
}

/* =========================
   FOOTER
========================= */

.footer {
  padding: 40px 0 48px;
  margin-top: 60px;
}

/* Layout 3 coloane */
.footer-shell {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1.2fr;
  gap: 48px;
  padding: 36px;
  border-radius: 28px;
  background: linear-gradient(
    180deg,
    rgba(255,255,255,0.88),
    rgba(255,255,255,0.96)
  );
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

/* Text general */
.footer p,
.footer small {
  color: var(--muted);
  line-height: 1.6;
}

/* Titluri coloane */
.footer h4 {
  margin-bottom: 14px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary);
}

/* Contact */
.contact-item {
  margin-bottom: 14px;
}

.contact-label {
  display: block;
  font-size: 0.8rem;
  color: var(--muted);
}

.contact-value {
  display: block;
  font-weight: 600;
  color: var(--primary);
  margin-top: 2px;
}

.contact-value:hover {
  opacity: 0.8;
}

/* Hartă */
.map-container {
  margin-top: 16px;
  overflow: hidden;
  border-radius: 12px;
}

.map-container iframe {
  width: 100%;
  height: 200px;
  border: 0;
  display: block;
}

/* Footer bottom */
.footer-bottom {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  text-align: center;
}

.footer-bottom p {
  font-size: 0.9rem;
  color: var(--muted);
}

/* Responsive */
@media (max-width: 900px) {
  .footer-shell {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

/* =========================
   FOOTER MINIMAL (CONTACT PAGE)
========================= */

.footer-minimal {
  margin-top: 60px;
  padding: 24px 0;
}

.footer-minimal-shell {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 20px 28px;
  border-radius: 20px;
  background: rgba(255,255,255,0.9);
  border: 1px solid var(--line);
}

/* text mic */
.footer-note {
  font-size: 0.9rem;
  color: var(--muted);
}

/* responsive */
@media (max-width: 700px) {
  .footer-minimal-shell {
    flex-direction: column;
    text-align: center;
  }
}

.wa-float {
  position: fixed;
  right: 16px;
  bottom: 16px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #25d366;
  color: #fff;
  font-weight: 900;
  box-shadow: 0 18px 36px rgba(37, 211, 102, 0.34);
  z-index: 1000;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.hide {
  position: absolute !important;
  left: -9999px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.page-hero {
  padding: 44px 0 20px;
}

.page-hero-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 26px;
  align-items: stretch;
}

.page-hero-copy {
  background: rgba(255,255,255,0.84);
  border-radius: 28px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  padding: 36px;
}

.info-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.info-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(190, 155, 96, 0.12);
  color: var(--primary);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.info-badge:hover {
  background: rgba(190, 155, 96, 0.2);
  transform: translateY(-1px);
}

@media (max-width: 600px) {
  .info-badges {
    gap: 8px;
  }

  .info-badge {
    flex: 1 1 calc(50% - 8px);
    justify-content: center;
    text-align: center;
  }
}

.info-badges span {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 14px;
  color: var(--primary);
  font-weight: 700;
}

@media (max-width: 1080px) {
  .hero-grid,
  .split,
  .cta-grid,
  .contact-layout,
  .page-hero-grid,
  .footer-shell {
    grid-template-columns: 1fr;
  }

  .metrics,
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-media,
  .page-hero-media.about,
  .page-hero-media.services,
  .page-hero-media.contact,
  .story-media {
    min-height: 420px;
  }
}

@media (max-width: 820px) {
  .mobile-toggle {
    display: block;
  }

  .nav-links,
  .nav-actions {
    display: none;
  }

  .nav-panel {
    gap: 12px;
    padding-bottom: 16px;
  }

  .nav-open .nav-panel {
    display: grid;
  }

  .nav-panel a {
    padding: 14px 16px;
    border-radius: 16px;
    background: #fff;
    border: 1px solid var(--line);
    color: var(--primary);
    font-weight: 700;
  }

  .hero-copy,
  .page-hero-copy,
  .card,
  form,
  .contact-box,
  .cta-band {
    padding: 24px;
  }

  .hero-highlights,
  .metrics,
  .grid-2,
  .grid-3,
  .form-grid {
    grid-template-columns: 1fr;
  }
}