/* ============================================================
   PUR Topo SRL — styles.css
   Temă light profesională · o singură foaie de stil · fără dependențe
   Cadastru & topografie · Vălenii de Munte
   ============================================================ */

:root {
  /* Paletă */
  --bg:        #FFFFFF;
  --bg-2:      #F4F6F3;
  --panel:     #FFFFFF;
  --ink:       #12261C;
  --muted:     #5B6B62;

  --navy:      #163A5F;
  --green:     #1E6E4B;
  --green-600: #14563A;
  --accent-grad: linear-gradient(120deg, #1E6E4B 0%, #163A5F 100%);

  --line:        #E2E7E2;
  --line-strong: #CED6CF;

  /* Layout */
  --maxw: 1120px;
  --radius: 16px;
  --radius-sm: 10px;

  /* Tipografie */
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
          Helvetica, Arial, sans-serif;

  --shadow: 0 18px 44px -22px rgba(22, 58, 95, 0.35);
  --shadow-soft: 0 8px 24px -14px rgba(22, 58, 95, 0.25);
}

/* ----------------------------- Base ----------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3 { line-height: 1.15; margin: 0 0 0.5em; font-weight: 700; letter-spacing: -0.02em; color: var(--navy); }
h1 { font-size: clamp(2.3rem, 5.2vw, 3.6rem); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.5rem); }
h3 { font-size: 1.2rem; }
p  { margin: 0 0 1rem; }

a { color: inherit; text-decoration: none; }

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

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

.accent-text { color: var(--green); }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--green);
  margin: 0 0 0.9rem;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--green);
  color: #fff;
  padding: 10px 16px;
  border-radius: 0 0 8px 0;
  z-index: 200;
}
.skip-link:focus { left: 0; }

/* --------------------------- Butoane --------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.96rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.25s ease, background 0.25s ease, border-color 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}
.btn:focus-visible { outline: 2px solid var(--navy); outline-offset: 3px; }
.btn svg { width: 18px; height: 18px; }

.btn-primary {
  background: var(--green);
  color: #FFFFFF;
  box-shadow: var(--shadow-soft);
}

.btn-ghost {
  background: #FFFFFF;
  border-color: var(--line-strong);
  color: var(--navy);
}

/* --------------------------- Header --------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 6px 20px -16px rgba(22, 58, 95, 0.5);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 72px; }

.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; margin-right: auto; }
.site-header .brand-logo { height: 38px; width: auto; }

.nav-menu {
  display: flex;
  align-items: center;
  gap: 26px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-menu a { color: var(--muted); font-size: 0.95rem; font-weight: 500; transition: color 0.2s ease; }
.nav-menu a:hover, .nav-menu a.active { color: var(--navy); }
.nav-menu .nav-cta { color: #FFFFFF; padding: 9px 18px; }
.nav-menu .nav-cta:hover { color: #FFFFFF; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  background: #FFFFFF;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  cursor: pointer;
}
.nav-toggle span {
  width: 20px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease;
}
.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); }

/* ---------------------------- Hero ---------------------------- */
.hero {
  position: relative;
  padding: clamp(80px, 13vh, 150px) 0 clamp(64px, 9vh, 110px);
  overflow: hidden;
  background: var(--bg-2);
  border-bottom: 1px solid var(--line);
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url("../assets/contour-bg.svg");
  background-size: 900px auto;
  background-position: right -60px top -40px;
  background-repeat: no-repeat;
  opacity: 0.5;
  z-index: 0;
  -webkit-mask-image: linear-gradient(to left, #000 30%, transparent 85%);
  mask-image: linear-gradient(to left, #000 30%, transparent 85%);
}
.hero-inner { position: relative; z-index: 1; max-width: 720px; }
.hero-title { margin-bottom: 0.5em; }
.hero-title .accent-text { display: inline; }
.hero-sub { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--muted); max-width: 600px; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 2rem 0 0; }

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  list-style: none;
  margin: 3rem 0 0;
  padding: 1.6rem 0 0;
  border-top: 1px solid var(--line);
}
.hero-stats li { display: flex; flex-direction: column; }
.hero-stats strong { font-size: 1.7rem; letter-spacing: -0.02em; color: var(--green); }
.hero-stats span { color: var(--muted); font-size: 0.9rem; }

/* --------------------------- Secțiuni --------------------------- */
.section { padding: clamp(66px, 10vh, 110px) 0; position: relative; }
.section-alt { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.section-head { max-width: 660px; margin: 0 0 3rem; }
.section-lead { color: var(--muted); font-size: 1.05rem; }

/* ---------------------------- Grids ---------------------------- */
.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.card h3 { margin-bottom: 0.4em; }
.card p { color: var(--muted); margin: 0; font-size: 0.96rem; }

.card-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  margin-bottom: 18px;
  background: rgba(30, 110, 75, 0.10);
  border: 1px solid rgba(30, 110, 75, 0.22);
  color: var(--green);
}
.card-icon svg { width: 24px; height: 24px; }

/* ---------------------------- Domeniu ---------------------------- */
.domeniu-inner {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 48px;
  align-items: center;
}
.domeniu-copy p { color: var(--muted); }
.domeniu-copy strong { color: var(--ink); }
.domeniu-points { list-style: none; margin: 1.6rem 0 0; padding: 0; display: grid; gap: 12px; }
.domeniu-points li {
  position: relative;
  padding-left: 30px;
  color: var(--ink);
  font-weight: 500;
}
.domeniu-points li::before {
  content: "";
  position: absolute;
  left: 0; top: 8px;
  width: 15px; height: 15px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(30, 110, 75, 0.14);
}
.domeniu-figure {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-2);
  padding: 26px;
  box-shadow: var(--shadow);
}
.domeniu-figure img { width: 100%; height: auto; }
.domeniu-figure figcaption { margin-top: 16px; text-align: center; color: var(--muted); font-size: 0.9rem; }

/* ---------------------------- Lucrări ---------------------------- */
.work-card { display: flex; flex-direction: column; padding: 0; overflow: hidden; }
.work-thumb {
  aspect-ratio: 16 / 9;
  width: 100%;
  background: var(--accent-grad);
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.9);
}
.work-thumb svg { width: 56px; height: 56px; }
.work-body { padding: 24px 26px 28px; }
.work-body h3 { margin-bottom: 10px; }
.work-body p { color: var(--muted); font-size: 0.94rem; margin: 0; }

.tags { display: flex; flex-wrap: wrap; gap: 7px; list-style: none; margin: 0 0 14px; padding: 0; }
.tags li {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--green-600);
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(30, 110, 75, 0.08);
  border: 1px solid rgba(30, 110, 75, 0.20);
}

/* ---------------------------- De ce noi ---------------------------- */
.why-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.why-item {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 28px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  box-shadow: var(--shadow-soft);
}
.why-item .card-icon { margin-bottom: 0; flex-shrink: 0; }
.why-item h3 { margin: 0 0 6px; font-size: 1.08rem; }
.why-item p { color: var(--muted); margin: 0; font-size: 0.94rem; }

/* ---------------------------- Proces / Steps ---------------------------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.step {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  position: relative;
  box-shadow: var(--shadow-soft);
}
.step-num {
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--green);
}
.step h3 { margin: 12px 0 8px; font-size: 1.08rem; }
.step p { color: var(--muted); font-size: 0.94rem; margin: 0; }

/* ---------------------------- FAQ ---------------------------- */
.faq-list { display: grid; gap: 12px; max-width: 780px; }
.faq-item {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 18px 22px;
  box-shadow: var(--shadow-soft);
}
.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--navy);
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  flex: 0 0 auto;
  font-size: 1.3rem;
  color: var(--green);
  transition: transform 0.2s ease;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { color: var(--muted); margin: 14px 0 0; font-size: 0.96rem; }

/* ---------------------------- Testimoniale ---------------------------- */
.testimonial { display: flex; flex-direction: column; margin: 0; }
.testimonial .stars { display: flex; gap: 3px; color: #E8A33D; margin-bottom: 14px; }
.testimonial .stars svg { width: 18px; height: 18px; }
.testimonial blockquote {
  margin: 0 0 18px;
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.6;
  quotes: "„" "”";
}
.testimonial blockquote::before { content: open-quote; }
.testimonial blockquote::after { content: close-quote; }
.testimonial figcaption {
  margin-top: auto;
  font-weight: 600;
  color: var(--navy);
  font-size: 0.95rem;
}
.testimonial figcaption span {
  display: block;
  font-weight: 500;
  color: var(--muted);
  font-size: 0.85rem;
  margin-top: 2px;
}
.section-note {
  margin: 1.8rem 0 0;
  font-size: 0.85rem;
  color: var(--muted);
  font-style: italic;
}

/* --------------------------- Contact --------------------------- */
.section-contact { overflow: hidden; }
.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}
.contact-details { list-style: none; margin: 1.6rem 0 0; padding: 0; display: grid; gap: 20px; }
.contact-details li { display: flex; gap: 15px; align-items: flex-start; }
.contact-details .card-icon { margin-bottom: 0; flex-shrink: 0; width: 44px; height: 44px; }
.contact-details .c-label { display: block; font-size: 0.82rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 2px; }
.contact-details .c-value { color: var(--ink); font-weight: 600; }
.contact-details a.c-value:hover { color: var(--green); text-decoration: underline; }

.contact-card {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
}
.contact-card h3 { margin-bottom: 10px; }
.contact-card p { color: var(--muted); font-size: 0.96rem; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 1.6rem 0 0; }
.contact-note {
  display: block;
  margin: 1.4rem 0 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.contact-map { grid-column: 1 / -1; margin-top: 8px; }
.contact-map iframe {
  width: 100%;
  aspect-ratio: 21 / 9;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}
.map-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  font-weight: 600;
  font-size: 0.94rem;
  color: var(--green);
}
.map-link svg { width: 18px; height: 18px; }
.map-link:hover { color: var(--green-600); text-decoration: underline; }

/* --------------------------- Footer --------------------------- */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-2); padding: 44px 0; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.footer-brand { display: flex; flex-direction: column; gap: 8px; }
.footer-brand .brand-logo { height: 34px; width: auto; }
.footer-brand span { color: var(--muted); font-size: 0.86rem; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 22px; }
.footer-nav a { color: var(--muted); font-size: 0.92rem; transition: color 0.2s ease; }
.footer-nav a:hover { color: var(--navy); }
.footer-meta { display: flex; flex-direction: column; gap: 4px; text-align: right; margin: 0; font-size: 0.88rem; }
.footer-meta a { color: var(--muted); }
.footer-meta a:hover { color: var(--green); }
.footer-meta span { color: var(--muted); }

/* --------------------------- CTA flotant --------------------------- */
.floating-cta {
  position: fixed;
  right: 16px;
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  z-index: 90;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
}
.floating-cta.visible { opacity: 1; visibility: visible; transform: none; }

.floating-cta .fab {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border-radius: 999px;
  font-weight: 600;
  color: #FFFFFF;
  box-shadow: 0 10px 26px -8px rgba(18, 38, 28, 0.5);
  transition: transform 0.18s ease, box-shadow 0.25s ease;
}
.floating-cta .fab svg { width: 26px; height: 26px; }

.fab-call {
  padding: 14px 20px;
  background: var(--green);
  font-size: 0.98rem;
}
.fab-whatsapp {
  width: 56px;
  height: 56px;
  justify-content: center;
  background: #25D366;
}
.floating-cta .fab:focus-visible { outline: 2px solid var(--navy); outline-offset: 3px; }

/* pe desktop lat afișăm doar butonul de apel, mai discret */
@media (min-width: 901px) {
  .fab-whatsapp { display: none; }
}

/* --------------------------- Reveal --------------------------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in-view { opacity: 1; transform: none; }

/* --------------------------- Responsive --------------------------- */
@media (max-width: 900px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: 1fr; }
  .domeniu-inner { grid-template-columns: 1fr; gap: 34px; }
  .contact-inner { grid-template-columns: 1fr; gap: 34px; }
}

@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .nav-menu {
    position: fixed;
    top: 72px;
    right: 0;
    left: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    padding: 18px 24px 28px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    transform: translateY(-140%);
    transition: transform 0.32s ease;
    max-height: calc(100vh - 72px);
    overflow-y: auto;
  }
  .nav-menu.open { transform: translateY(0); }
  .nav-menu a { padding: 12px 4px; font-size: 1.05rem; }
  .nav-menu .nav-cta { margin-top: 8px; text-align: center; }
}

@media (max-width: 620px) {
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .hero-stats { gap: 26px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .footer-meta { text-align: left; }
  .contact-map iframe { aspect-ratio: 4 / 3; }
}

@media (max-width: 400px) {
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }
  .fab-call span { display: none; }
  .fab-call { width: 56px; height: 56px; padding: 0; justify-content: center; }
}

/* --------------------------- Hover (doar pointer fin) --------------------------- */
@media (hover: hover) and (pointer: fine) {
  .btn:hover { transform: translateY(-2px); }
  .btn-primary:hover { background: var(--green-600); box-shadow: 0 12px 28px -12px rgba(30, 110, 75, 0.6); }
  .btn-ghost:hover { border-color: var(--green); color: var(--green); }
  .card:hover { transform: translateY(-4px); border-color: var(--line-strong); box-shadow: var(--shadow); }
  .why-item:hover { border-color: var(--line-strong); }
}

/* --------------------------- Mișcare redusă --------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn:hover, .card:hover { transform: none; }
  * { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
