/* Reparații Electrocasnice Vrancea — Site Custom Styles */

/* Self-hosted Inter (variable, weights 100–900) — replaces render-blocking
   Google Fonts CSS + the two fonts.g* preconnects. woff2 in css/fonts/. */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('fonts/inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('fonts/inter-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --brand-primary: #7fcc26;
  --brand-primary-dark: #6bb01f;     /* button/icon backgrounds */
  --brand-text-green: #356008;        /* AA on white (~7.6:1) — for links/text */
  --brand-dark: #0d1117;
  --brand-dark-2: #1a1f29;
  --body-bg: #ffffff;
  --body-text: #0d1117;
  --muted: #4a5568;
  --border: #e5e7eb;
  --surface: #f7f9fb;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { width: 100%; }
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--body-bg);
  color: var(--body-text);
  line-height: 1.6;
  margin: 0;
  -webkit-font-smoothing: antialiased;
  /* clip prevents the sticky-header backdrop-filter from reserving an
     asymmetric scrollbar gutter that shifted the whole layout left */
  overflow-x: clip;
}

/* Headings: user wants only ~25% bigger than body text, not the typical
   web hierarchy. Body is 16px, so H1≈21px tapering down to body size. */
h1 { font-size: 1.35rem; line-height: 1.25; font-weight: 800; letter-spacing: -0.01em; margin: 0 0 12px; }
h2 { font-size: 1.20rem; line-height: 1.3; font-weight: 800; letter-spacing: -0.01em; margin: 0 0 10px; }
h3 { font-size: 1.10rem; line-height: 1.35; font-weight: 700; margin: 0 0 8px; }
h4, h5, h6 { font-size: 1rem; line-height: 1.4; font-weight: 700; margin: 0 0 6px; }
img, iframe, video { max-width: 100%; height: auto; }

/* Skip link for a11y */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--brand-primary);
  color: var(--brand-dark);
  padding: 8px 16px;
  font-weight: 700;
  z-index: 100;
}
.skip-link:focus { top: 0; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  z-index: 50;
  transition: box-shadow 0.2s;
}
.site-header.scrolled { box-shadow: 0 2px 12px rgba(0,0,0,0.06); }
.site-header .inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--brand-dark);
  text-decoration: none;
  letter-spacing: -0.01em;
  line-height: 1.2;
}
.brand .brand-icon { width: 32px; height: 32px; flex-shrink: 0; display: block; }
@media (min-width: 640px) { .brand { font-size: 1.05rem; } }
.brand .accent { color: var(--brand-text-green); }
.nav-desktop { display: none; gap: 28px; align-items: center; }
.nav-desktop a { color: var(--body-text); text-decoration: none; font-weight: 500; font-size: 0.95rem; }
.nav-desktop a:hover { color: var(--brand-text-green); }
.header-phone {
  display: none;
  align-items: center;
  gap: 8px;
  background: var(--brand-primary);
  color: var(--brand-dark);
  padding: 8px 16px;
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none;
  font-size: 0.95rem;
}
.header-phone:hover { background: var(--brand-primary-dark); color: #fff; }
.menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 6px;
  cursor: pointer;
}
.menu-toggle svg { width: 22px; height: 22px; }

.nav-mobile {
  display: none;
  background: #fff;
  border-top: 1px solid var(--border);
  padding: 12px 20px 20px;
}
.nav-mobile.open { display: block; }
.nav-mobile a {
  display: block;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  color: var(--body-text);
  text-decoration: none;
  font-weight: 500;
}
.nav-mobile .phone-cta {
  margin-top: 16px;
  background: var(--brand-primary);
  color: var(--brand-dark);
  padding: 12px 18px;
  border-radius: 8px;
  border: none;
  text-align: center;
  font-weight: 700;
}

@media (min-width: 1024px) {
  .nav-desktop { display: flex; }
  .header-phone { display: inline-flex; }
  .menu-toggle { display: none; }
  .nav-mobile { display: none !important; }
}

/* Container */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.container-narrow { max-width: 780px; margin: 0 auto; padding: 0 20px; }

/* Hero */
.hero {
  padding: 56px 0 64px;
  background: linear-gradient(180deg, #f7f9fb 0%, #ffffff 100%);
}
.hero h1 {
  font-size: 1.45rem;
  overflow-wrap: break-word;
  line-height: 1.25;
  margin: 0 0 16px;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.hero p.lead {
  font-size: 1.05rem;
  color: var(--muted);
  margin: 0 0 28px;
  max-width: 640px;
}
.hero-img {
  width: 100%;
  height: auto;
  border-radius: 14px;
  box-shadow: 0 20px 60px -20px rgba(13,17,23,0.25);
  margin-top: 32px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.15s, background 0.15s;
}
.btn-primary { background: var(--brand-primary); color: var(--brand-dark); }
.btn-primary:hover { background: var(--brand-primary-dark); color: #fff; transform: translateY(-1px); }
.btn-dark { background: var(--brand-dark); color: #fff; }
.btn-dark:hover { background: var(--brand-dark-2); transform: translateY(-1px); }
.btn-ghost { background: #fff; color: var(--brand-dark); border: 1.5px solid var(--brand-dark); }
.btn-ghost:hover { background: var(--brand-dark); color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Sections */
section { padding: 56px 0; }
section h2 {
  font-size: 1.30rem;
  margin: 0 0 12px;
  font-weight: 800;
  letter-spacing: -0.01em;
}
section h3 { font-size: 1.10rem; margin: 16px 0 8px; font-weight: 700; }
section p { margin: 0 0 14px; }
section .lead {
  font-size: 1rem;
  color: var(--muted);
  margin-bottom: 28px;
}

/* Cards Grid */
.cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
@media (min-width: 640px) { .cards { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .cards { grid-template-columns: 1fr 1fr 1fr; } }

.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 40px -20px rgba(13,17,23,0.2);
  border-color: var(--brand-primary);
}
.card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  /* keep heads in frame: cards crop face-up portraits otherwise */
  object-position: center top;
  border-radius: 8px;
  margin-bottom: 16px;
}
.card h3 { margin: 0 0 8px; font-size: 1.10rem; }
.card p { color: var(--muted); font-size: 0.95rem; margin: 0 0 12px; }
.card .read-more { color: var(--brand-text-green); font-weight: 700; margin-top: auto; }

/* Steps / Process */
.steps {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step {
  background: var(--surface);
  border-radius: 14px;
  padding: 28px 24px;
}
.step .num {
  display: inline-flex;
  width: 36px;
  height: 36px;
  background: var(--brand-primary);
  color: var(--brand-dark);
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  margin-bottom: 14px;
}

/* FAQ */
.faq details {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px 20px;
  margin-bottom: 12px;
}
.faq summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 1.05rem;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq details[open] { border-color: var(--brand-primary); }
.faq details p { margin: 12px 0 0; color: var(--muted); }

/* CTA Banner */
.cta-banner {
  background: var(--brand-dark);
  color: #fff;
  border-radius: 18px;
  padding: 40px 28px;
  text-align: center;
  margin: 24px 0;
}
.cta-banner h2 { color: #fff; margin: 0 0 12px; }
.cta-banner p { color: #cbd5e0; margin: 0 0 20px; }

/* Footer */
.site-footer {
  background: var(--brand-dark);
  color: #cbd5e0;
  padding: 48px 0 24px;
  margin-top: 56px;
}
.site-footer h4 { color: #fff; margin: 0 0 14px; font-size: 1rem; }
.site-footer a { color: #cbd5e0; text-decoration: none; }
.site-footer a:hover { color: var(--brand-primary); }
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}
@media (min-width: 768px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr; }
}
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 8px; }
.footer-about p { margin-bottom: 20px; }
.footer-anpc {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
  max-width: 260px;
}
.footer-anpc img {
  display: block;
  height: 56px;
  width: auto;
  opacity: 0.95;
  transition: opacity .15s ease;
}
.footer-anpc a:hover img { opacity: 1; }
.footer-bottom {
  border-top: 1px solid #2a2f3a;
  margin-top: 32px;
  padding-top: 20px;
  font-size: 0.875rem;
  color: #8b93a5;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
}

/* Map embed wrapper — keeps iframe responsive without overflow */
.map-embed {
  position: relative;
  width: 100%;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 12px 28px rgba(13, 17, 23, 0.08), 0 2px 6px rgba(13, 17, 23, 0.04);
}
.map-embed iframe { display: block; width: 100%; }

/* Article / prose */
.prose { max-width: 720px; margin: 0 auto; }
.prose h2 { margin-top: 40px; }
.prose h3 { margin-top: 28px; }
.prose ul, .prose ol { padding-left: 22px; margin-bottom: 16px; }
.prose li { margin-bottom: 6px; }
.prose a { color: var(--brand-text-green); }

/* Breadcrumbs */
.crumbs {
  font-size: 0.875rem;
  color: var(--muted);
  padding: 16px 0 0;
}
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--brand-text-green); }

/* Contact form */
.form-grid {
  display: grid;
  gap: 16px;
  max-width: 600px;
}
.form-grid label { font-weight: 600; font-size: 0.95rem; }
.form-grid input, .form-grid textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
}
.form-grid input:focus, .form-grid textarea:focus {
  outline: 3px solid rgba(127, 204, 38, 0.35);
  outline-offset: 2px;
  border-color: var(--brand-primary);
}
.form-grid textarea { min-height: 140px; resize: vertical; }

/* Utility */
.text-muted { color: var(--muted); }
.mt-lg { margin-top: 32px; }
.mb-lg { margin-bottom: 32px; }
img { max-width: 100%; height: auto; }
