/* ============================================
   Scandavia Construct Mircea SRL — Design System
   ============================================ */

:root {
  --visiniu:        #7A2E2E;
  --visiniu-dark:   #5C1F1F;
  --alb:            #FFFFFF;
  --antracit:       #1F2429;
  --gri-deschis:    #F5F3F1;
  --bronz:          #B0895A;
  --whatsapp:       #25D366;
  --text-secundar:  #55606B;
  --shadow-sm:      0 2px 8px rgba(31, 36, 41, 0.08);
  --shadow-md:      0 4px 20px rgba(31, 36, 41, 0.12);
  --radius:         7px;
  --radius-lg:      12px;
  --transition:     0.25s ease;
  --font-heading:   'Barlow', system-ui, sans-serif;
  --font-body:      'Inter', system-ui, sans-serif;
  --container:      1200px;
  --header-h:       72px;
  --gutter:           1.25rem;
  --gutter-tablet:    1.375rem;
  --gutter-mobile:    1.5rem;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--antracit);
  background: var(--alb);
  overflow-x: hidden;
}

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

a {
  color: var(--visiniu);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--visiniu-dark);
}

ul { list-style: none; }

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  line-height: 1.2;
  color: var(--antracit);
}

h1 { font-size: clamp(1.75rem, 4.5vw, 2.75rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.25rem); font-weight: 700; }
h3 { font-size: clamp(1.125rem, 2.5vw, 1.375rem); font-weight: 700; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
}

.section {
  padding: 4rem 0;
}

.section--alt {
  background: var(--gri-deschis);
}

.section__header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 2.5rem;
}

.section__subtitle {
  color: var(--text-secundar);
  font-size: 1.0625rem;
  margin-top: 0.75rem;
}

/* ---- Butoane ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  text-align: center;
  white-space: nowrap;
}

.btn--primary {
  background: var(--visiniu);
  color: var(--alb);
  border-color: var(--visiniu);
}

.btn--primary:hover {
  background: var(--visiniu-dark);
  border-color: var(--visiniu-dark);
  color: var(--alb);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn--outline {
  background: transparent;
  color: var(--alb);
  border-color: var(--alb);
}

.btn--outline:hover {
  background: var(--alb);
  color: var(--antracit);
}

.btn--outline-dark {
  background: transparent;
  color: var(--visiniu);
  border-color: var(--visiniu);
}

.btn--outline-dark:hover {
  background: var(--visiniu);
  color: var(--alb);
}

.btn--lg {
  padding: 1rem 2rem;
  font-size: 1.0625rem;
}

.btn--block {
  width: 100%;
}

/* ---- Header / Nav ---- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--alb);
  box-shadow: var(--shadow-sm);
  height: var(--header-h);
  transition: box-shadow var(--transition);
  padding-top: env(safe-area-inset-top, 0px);
}

.header.scrolled {
  box-shadow: var(--shadow-md);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 0.75rem;
  min-width: 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.125rem;
  color: var(--antracit);
  flex: 1 1 auto;
  min-width: 0;
  max-width: calc(100% - 52px);
}

.logo:hover { color: var(--antracit); }

.logo__icon {
  width: 36px;
  height: 36px;
  background: var(--visiniu);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--alb);
  flex-shrink: 0;
}

.logo__icon svg {
  width: 20px;
  height: 20px;
}

.logo__text span {
  color: var(--visiniu);
}

.nav {
  display: none;
  flex: 1 1 auto;
  min-width: 0;
}

.nav__list {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.125rem;
  flex-wrap: nowrap;
}

.nav__link {
  display: block;
  padding: 0.5rem 0.875rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--antracit);
  border-radius: var(--radius);
  transition: all var(--transition);
  white-space: nowrap;
}

.nav__link:hover,
.nav__link--active {
  color: var(--visiniu);
  background: rgba(122, 46, 46, 0.06);
}

.header__cta {
  display: none;
  flex-shrink: 0;
  white-space: nowrap;
}

.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  border-radius: var(--radius);
  flex-shrink: 0;
  margin-right: -0.25rem;
  transition: background var(--transition);
}

.nav-toggle:hover,
.nav-toggle:focus-visible {
  background: var(--gri-deschis);
  outline: none;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--antracit);
  border-radius: 2px;
  transition: all var(--transition);
}

.nav-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-nav {
  display: none;
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--alb);
  z-index: 999;
  padding-top: 1.25rem;
  padding-bottom: max(1.75rem, env(safe-area-inset-bottom, 0px));
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
  overflow-y: auto;
}

.mobile-nav.open {
  display: block;
}

.mobile-nav__list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.mobile-nav__link {
  display: flex;
  align-items: center;
  padding: 1rem 1.125rem;
  font-size: 1.0625rem;
  font-weight: 500;
  color: var(--antracit);
  border-radius: var(--radius-lg);
  background: var(--gri-deschis);
  border-bottom: none;
  min-height: 52px;
  transition: background var(--transition), color var(--transition);
}

.mobile-nav__link:hover,
.mobile-nav__link--active {
  color: var(--visiniu);
  background: rgba(122, 46, 46, 0.04);
}

.mobile-nav__cta {
  margin-top: 1.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(31, 36, 41, 0.08);
}

@media (min-width: 768px) and (max-width: 1023px) {
  :root {
    --gutter: var(--gutter-tablet);
  }

  .header__inner {
    gap: 1rem;
  }

  .logo {
    max-width: none;
    flex: 0 1 auto;
  }

  .mobile-nav__list {
    max-width: 480px;
    margin: 0 auto;
    width: 100%;
  }

  .mobile-nav__cta {
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
  }
}

@media (min-width: 1024px) and (max-width: 1279px) {
  .header__inner {
    flex-wrap: wrap;
    height: auto;
    min-height: var(--header-h);
    padding-top: 0.625rem;
    padding-bottom: 0.625rem;
    row-gap: 0.5rem;
    gap: 0.5rem 0.75rem;
  }

  .header__cta {
    display: inline-flex;
    margin-left: auto;
    padding: 0.5rem 1rem;
    font-size: 0.8125rem;
  }

  .nav {
    display: block;
    flex: 1 0 100%;
    width: 100%;
    order: 3;
  }

  .nav__list {
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.25rem 0.5rem;
    padding: 0 0.25rem;
  }

  .nav__link {
    padding: 0.45rem 0.7rem;
    font-size: 0.8125rem;
  }
}

@media (min-width: 1024px) {
  .nav { display: block; }
  .header__cta { display: inline-flex; }
  .nav-toggle { display: none; }

  .logo {
    flex: 0 0 auto;
    max-width: none;
  }
}

@media (min-width: 1280px) {
  .header__inner {
    flex-wrap: nowrap;
    height: var(--header-h);
    padding: 0;
  }

  .nav {
    order: unset;
    flex: 1 1 auto;
    width: auto;
  }

  .nav__list {
    flex-wrap: nowrap;
    gap: 0.125rem;
  }

  .nav__link {
    padding: 0.5rem 0.875rem;
    font-size: 0.9375rem;
  }
}

/* ---- Hero ---- */
.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  margin-top: var(--header-h);
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(31, 36, 41, 0.82) 0%,
    rgba(31, 36, 41, 0.65) 100%
  );
  z-index: 1;
}

.hero__content {
  position: relative;
  z-index: 2;
  padding: 3rem 0;
  max-width: 780px;
}

.hero h1 {
  color: var(--alb);
  margin-bottom: 1.25rem;
}

.hero__subtitle {
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1rem, 2.5vw, 1.1875rem);
  margin-bottom: 1.75rem;
  line-height: 1.7;
}

.hero__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1rem;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius);
  color: var(--alb);
  font-size: 0.875rem;
  font-weight: 600;
}

.badge__icon {
  font-size: 1.125rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.hero__reassurance {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.875rem;
}

/* ---- Galerie lucrări ---- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

.gallery-grid__item {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
  box-shadow: var(--shadow-sm);
}

.gallery-grid__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gallery-grid__item:hover img {
  transform: scale(1.05);
}

.gallery-grid__item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 60%, rgba(31, 36, 41, 0.3));
  opacity: 0;
  transition: opacity var(--transition);
}

.gallery-grid__item:hover::after {
  opacity: 1;
}

.section-cta {
  text-align: center;
  margin-top: 2.5rem;
}

@media (min-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
  }
}

/* ---- Testimoniale ---- */
.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

.testimonial-card {
  background: var(--alb);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(31, 36, 41, 0.06);
  transition: box-shadow var(--transition);
}

.section--alt .testimonial-card {
  background: var(--alb);
}

.testimonial-card:hover {
  box-shadow: var(--shadow-md);
}

.testimonial-card__header {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  margin-bottom: 1rem;
}

.testimonial-card__avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--gri-deschis);
  flex-shrink: 0;
}

.testimonial-card__name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  color: var(--antracit);
}

.testimonial-card__city {
  font-size: 0.8125rem;
  color: var(--text-secundar);
}

.testimonial-card__stars {
  color: var(--bronz);
  font-size: 0.875rem;
  letter-spacing: 1px;
  margin-bottom: 0.75rem;
}

.testimonial-card__text {
  font-size: 0.9375rem;
  color: var(--text-secundar);
  line-height: 1.7;
  font-style: italic;
}

@media (min-width: 640px) {
  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .testimonials-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ---- Beneficii ---- */
.benefits-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

.benefit-card {
  background: var(--alb);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(31, 36, 41, 0.06);
  transition: transform var(--transition), box-shadow var(--transition);
}

.section--alt .benefit-card {
  background: var(--alb);
}

.benefit-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.benefit-card__icon {
  font-size: 1.75rem;
  margin-bottom: 0.875rem;
  display: block;
}

.benefit-card h3 {
  margin-bottom: 0.5rem;
}

.benefit-card p {
  font-size: 0.9375rem;
  color: var(--text-secundar);
}

@media (min-width: 640px) {
  .benefits-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .benefits-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ---- Servicii grid ---- */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

.service-card {
  display: block;
  background: var(--alb);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(31, 36, 41, 0.06);
  transition: all var(--transition);
  color: var(--antracit);
}

.service-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--visiniu);
  color: var(--antracit);
}

.service-card__icon {
  width: 48px;
  height: 48px;
  background: rgba(122, 46, 46, 0.08);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--visiniu);
  margin-bottom: 1rem;
}

.service-card__icon svg {
  width: 24px;
  height: 24px;
}

.service-card h3 {
  margin-bottom: 0.5rem;
}

.service-card p {
  font-size: 0.9375rem;
  color: var(--text-secundar);
  margin-bottom: 0.75rem;
}

.service-card__link {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--visiniu);
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

@media (min-width: 640px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ---- Materiale ---- */
.materials-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.material-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  background: var(--alb);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(31, 36, 41, 0.06);
}

.section--alt .material-card {
  background: var(--alb);
}

.material-card__img {
  aspect-ratio: 16/10;
  overflow: hidden;
}

.material-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.material-card__body {
  padding: 0 1.25rem 1.25rem;
}

.material-card__body h3 {
  margin-bottom: 0.5rem;
}

.material-card__body p {
  font-size: 0.9375rem;
  color: var(--text-secundar);
}

@media (min-width: 768px) {
  .materials-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .material-card {
    grid-template-columns: 140px 1fr;
    align-items: center;
  }

  .material-card__img {
    aspect-ratio: 1;
    height: 100%;
  }

  .material-card__body {
    padding: 1.25rem 1.25rem 1.25rem 0;
  }
}

@media (min-width: 1024px) {
  .materials-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ---- Materiale pagină dedicată (secțiuni mari) ---- */
.material-sections {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.material-section {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  background: var(--alb);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(31, 36, 41, 0.06);
}

.material-section__img {
  aspect-ratio: 16/9;
  overflow: hidden;
}

.material-section__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.material-section:hover .material-section__img img {
  transform: scale(1.03);
}

.material-section__content {
  padding: 1.75rem 1.5rem;
}

.material-section__content h2 {
  margin-bottom: 0.75rem;
  color: var(--visiniu);
}

.material-section__content p {
  color: var(--text-secundar);
  font-size: 1rem;
  line-height: 1.7;
}

@media (min-width: 768px) {
  .material-section {
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
  }

  .material-section--reverse .material-section__img {
    order: 2;
  }

  .material-section--reverse .material-section__content {
    order: 1;
  }

  .material-section__img {
    aspect-ratio: auto;
    min-height: 280px;
  }

  .material-section__content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2.5rem;
  }
}

/* ---- Bandă garanție ---- */
.guarantee-band {
  background: var(--visiniu);
  color: var(--alb);
  padding: 3rem 0;
  text-align: center;
}

.guarantee-band h2 {
  color: var(--alb);
  font-size: clamp(1.125rem, 3vw, 1.5rem);
  margin-bottom: 1.5rem;
  letter-spacing: 0.02em;
}

.guarantee-band .btn--outline {
  border-color: var(--alb);
}

.guarantee-band .btn--outline:hover {
  background: var(--alb);
  color: var(--visiniu);
}

/* ---- FAQ ---- */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid rgba(31, 36, 41, 0.1);
}

.faq-item__question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 0;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-heading);
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--antracit);
  transition: color var(--transition);
}

.faq-item__question:hover {
  color: var(--visiniu);
}

.faq-item__icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  color: var(--visiniu);
  transition: transform var(--transition);
}

.faq-item.open .faq-item__icon {
  transform: rotate(45deg);
}

.faq-item__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
}

.faq-item.open .faq-item__answer {
  max-height: 300px;
  padding-bottom: 1.25rem;
}

.faq-item__answer p {
  color: var(--text-secundar);
  font-size: 0.9375rem;
  line-height: 1.7;
}

/* ---- Footer ---- */
.footer {
  background: var(--antracit);
  color: rgba(255, 255, 255, 0.8);
  padding: 3.5rem 0 1.5rem;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.footer h3, .footer h4 {
  color: var(--alb);
  font-size: 1rem;
  margin-bottom: 1rem;
}

.footer__brand p {
  font-size: 0.9375rem;
  margin-top: 0.75rem;
  line-height: 1.7;
}

.footer__phone {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--alb);
  margin: 1rem 0;
}

.footer__phone:hover {
  color: var(--bronz);
}

.footer__links li {
  margin-bottom: 0.5rem;
}

.footer__links a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9375rem;
  transition: color var(--transition);
}

.footer__links a:hover {
  color: var(--alb);
}

.footer__info li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 0.625rem;
  font-size: 0.9375rem;
}

.footer__info svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 3px;
  color: var(--bronz);
}

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  text-align: center;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.5);
}

.footer__bottom a {
  color: var(--bronz);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color var(--transition);
}

.footer__bottom a:hover {
  color: var(--alb);
}

@media (min-width: 768px) {
  .footer__grid {
    grid-template-columns: 2fr 1fr 1fr 1fr;
  }

  .footer__bottom {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

/* ---- WhatsApp Widget ---- */
.whatsapp-widget {
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  z-index: 1100;
  width: 58px;
  height: 58px;
  background: var(--whatsapp);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
  transition: transform var(--transition), box-shadow var(--transition);
  animation: whatsapp-pulse 2.5s infinite;
}

.whatsapp-widget:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.5);
  animation: none;
}

.whatsapp-widget svg {
  width: 30px;
  height: 30px;
  fill: var(--alb);
}

@keyframes whatsapp-pulse {
  0%, 100% { box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4); }
  50% { box-shadow: 0 4px 24px rgba(37, 211, 102, 0.65), 0 0 0 8px rgba(37, 211, 102, 0.15); }
}

/* ---- Page hero (interior) ---- */
.page-hero {
  margin-top: var(--header-h);
  background: var(--gri-deschis);
  padding: 3rem 0;
  border-bottom: 1px solid rgba(31, 36, 41, 0.06);
}

.page-hero h1 {
  margin-bottom: 0.75rem;
}

.page-hero p {
  color: var(--text-secundar);
  font-size: 1.0625rem;
  max-width: 700px;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
  font-size: 0.875rem;
  margin-bottom: 1rem;
  color: var(--text-secundar);
}

.breadcrumbs a {
  color: var(--visiniu);
}

.breadcrumbs span {
  color: var(--text-secundar);
}

/* ---- Content pages ---- */
.content-block {
  max-width: 800px;
}

.content-block h2 {
  margin: 2rem 0 1rem;
}

.content-block h3 {
  margin: 1.5rem 0 0.75rem;
}

.content-block p {
  color: var(--text-secundar);
  margin-bottom: 1rem;
}

.content-block ul {
  list-style: disc;
  padding-left: 1.5rem;
  margin-bottom: 1rem;
  color: var(--text-secundar);
}

.content-block ul li {
  margin-bottom: 0.375rem;
}

.content-block .btn {
  margin-top: 1rem;
}

.cta-box {
  background: var(--gri-deschis);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
  margin: 2.5rem 0;
  border-left: 4px solid var(--visiniu);
}

.cta-box h3 {
  margin-bottom: 0.75rem;
}

.cta-box p {
  color: var(--text-secundar);
  margin-bottom: 1.25rem;
}

/* ---- Contact page ---- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.contact-card {
  background: var(--gri-deschis);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
}

.contact-card__icon {
  width: 56px;
  height: 56px;
  background: var(--visiniu);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  color: var(--alb);
}

.contact-card__icon svg {
  width: 28px;
  height: 28px;
}

.contact-card h3 {
  margin-bottom: 0.5rem;
}

.contact-card p {
  color: var(--text-secundar);
  font-size: 0.9375rem;
  margin-bottom: 1rem;
}

.contact-phone {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--visiniu);
}

.contact-phone:hover {
  color: var(--visiniu-dark);
}

@media (min-width: 768px) {
  .contact-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ---- Portfolio page ---- */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.portfolio-item {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  position: relative;
}

.portfolio-item img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.portfolio-item:hover img {
  transform: scale(1.04);
}

.portfolio-item__caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1rem;
  background: linear-gradient(transparent, rgba(31, 36, 41, 0.8));
  color: var(--alb);
  font-size: 0.875rem;
  font-weight: 500;
}

@media (min-width: 768px) {
  .portfolio-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ---- Animations scroll ---- */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---- 404 ---- */
.error-page {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin-top: var(--header-h);
  padding: 3rem 1.25rem;
}

.error-page h1 {
  font-size: 5rem;
  color: var(--visiniu);
  margin-bottom: 0.5rem;
}

.error-page p {
  color: var(--text-secundar);
  margin-bottom: 2rem;
}

/* ---- Desktop spacing ---- */
@media (min-width: 768px) {
  .section {
    padding: 5rem 0;
  }
}

@media (min-width: 1024px) {
  .section {
    padding: 6.25rem 0;
  }
}

/* ---- Blog articole județe ---- */
.blog-article {
  max-width: 860px;
}

.blog-hero-img {
  width: 100%;
  border-radius: var(--radius-lg);
  margin: 1.5rem 0;
  box-shadow: var(--shadow-md);
}

.blog-materials-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin: 1.5rem 0 2rem;
}

.blog-material {
  background: var(--gri-deschis);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(31, 36, 41, 0.06);
}

.blog-material img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
}

.blog-material h3 {
  padding: 1rem 1.25rem 0.25rem;
  font-size: 1.0625rem;
  color: var(--visiniu);
}

.blog-material p {
  padding: 0 1.25rem 1.25rem;
  font-size: 0.9375rem;
  color: var(--text-secundar);
  margin: 0;
}

.blog-counties-grid {
  columns: 1;
  column-gap: 2rem;
}

.blog-counties-grid li {
  break-inside: avoid;
  margin-bottom: 0.5rem;
}

.blog-counties-grid a {
  display: block;
  padding: 0.625rem 1rem;
  background: var(--gri-deschis);
  border-radius: var(--radius);
  font-weight: 500;
  color: var(--antracit);
  transition: all var(--transition);
}

.blog-counties-grid a:hover {
  background: rgba(122, 46, 46, 0.08);
  color: var(--visiniu);
}

/* Blog articol — stil cabanelemn */
.blog-lead {
  font-size: 1.125rem;
  line-height: 1.75;
  color: var(--antracit);
  margin-bottom: 1.25rem;
}

.blog-services-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin: 1.5rem 0 2rem;
}

.blog-service-card {
  background: var(--gri-deschis);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  border-left: 4px solid var(--visiniu);
}

.blog-service-card h3 {
  margin-bottom: 0.625rem;
  color: var(--visiniu);
}

.blog-service-card p {
  color: var(--text-secundar);
  font-size: 0.9375rem;
  margin-bottom: 0.75rem;
}

.blog-nationwide {
  background: linear-gradient(135deg, rgba(122, 46, 46, 0.06) 0%, var(--gri-deschis) 100%);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin: 2rem 0;
}

.blog-nationwide h2 {
  color: var(--visiniu);
  margin-bottom: 1rem;
}

.blog-nationwide p {
  color: var(--text-secundar);
  margin-bottom: 0.75rem;
}

.blog-why-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin: 1.5rem 0 2rem;
}

.blog-why-card {
  background: var(--alb);
  border: 1px solid rgba(31, 36, 41, 0.08);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.blog-why-card__icon {
  font-size: 1.75rem;
  display: block;
  margin-bottom: 0.5rem;
}

.blog-why-card h3 {
  margin-bottom: 0.5rem;
}

.blog-why-card p {
  font-size: 0.9375rem;
  color: var(--text-secundar);
  margin: 0;
}

.blog-internal-links,
.blog-related-counties {
  background: var(--gri-deschis);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin: 2rem 0;
}

.blog-internal-links h3,
.blog-related-counties h3 {
  margin-bottom: 0.75rem;
  font-size: 1.0625rem;
}

.blog-internal-links p,
.blog-related-counties p {
  color: var(--text-secundar);
  font-size: 0.9375rem;
  margin: 0;
  line-height: 1.8;
}

.blog-counties-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.blog-county-card {
  display: block;
  background: var(--alb);
  border: 1px solid rgba(31, 36, 41, 0.08);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  color: var(--antracit);
  transition: all var(--transition);
}

.blog-county-card:hover {
  border-color: var(--visiniu);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  color: var(--antracit);
}

.blog-county-card h2 {
  font-size: 1.125rem;
  margin-bottom: 0.25rem;
}

.blog-county-card p {
  font-size: 0.875rem;
  color: var(--text-secundar);
  margin-bottom: 0.5rem;
}

/* Footer județe SEO */
.footer__counties {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
  margin-bottom: 2rem;
}

.footer__counties h4 {
  color: var(--alb);
  margin-bottom: 1rem;
  font-size: 0.9375rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer__counties-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.375rem 1rem;
  columns: unset;
}

.footer__counties-grid li {
  margin: 0;
}

.footer__counties-grid a {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.8125rem;
  transition: color var(--transition);
  display: block;
  padding: 0.125rem 0;
}

.footer__counties-grid a:hover,
.footer__county-link--active {
  color: var(--bronz) !important;
}

.footer__brand .logo:hover {
  color: #fff;
}

@media (min-width: 640px) {
  .blog-services-row {
    grid-template-columns: repeat(3, 1fr);
  }

  .blog-why-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .blog-counties-cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer__counties-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1024px) {
  .blog-counties-cards {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer__counties-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (min-width: 640px) {
  .blog-materials-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .blog-counties-grid {
    columns: 2;
  }
}

@media (min-width: 1024px) {
  .blog-materials-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .blog-counties-grid {
    columns: 3;
  }
}

/* ============================================
   MOBILE & TOUCH OPTIMIZATIONS
   ============================================ */

body.nav-open {
  overflow: hidden;
  position: fixed;
  width: 100%;
}

/* Zone sigure iPhone / notch */
@supports (padding: max(0px)) {
  .whatsapp-widget {
    bottom: max(1.25rem, env(safe-area-inset-bottom));
    right: max(1.25rem, env(safe-area-inset-right));
  }
}

/* Imagini în pagini de conținut */
.content-block > img {
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  margin-bottom: 2rem;
}

.materials-intro {
  color: var(--text-secundar);
  margin-bottom: 2rem;
  text-align: center;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Tap targets & performanță touch */
.btn,
.nav-toggle,
.mobile-nav__link,
.nav__link,
.faq-item__question {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.nav-toggle {
  min-width: 44px;
  min-height: 44px;
}

.mobile-nav {
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

.mobile-nav.open {
  display: flex;
  flex-direction: column;
}

/* Tablete & ecrane medii */
@media (max-width: 1023px) {
  .hero__actions {
    flex-wrap: wrap;
  }

  .hero__actions .btn {
    white-space: normal;
    flex: 1 1 auto;
    min-width: min(100%, 220px);
  }

  .section-cta .btn,
  .guarantee-band .btn {
    white-space: normal;
  }
}

/* Ecrane mici & telefoane */
@media (max-width: 767px) {
  :root {
    --header-h: 64px;
    --gutter: var(--gutter-mobile);
  }

  .section {
    padding: 2.75rem 0;
  }

  .section__header {
    margin-bottom: 2rem;
  }

  .section__subtitle {
    font-size: 0.9375rem;
  }

  /* Header mobil */
  .header__inner {
    gap: 0.625rem;
  }

  .logo {
    font-size: 1rem;
    gap: 0.5rem;
    max-width: calc(100% - 48px);
  }

  .logo__icon {
    width: 32px;
    height: 32px;
  }

  .logo__icon svg {
    width: 18px;
    height: 18px;
  }

  .logo__text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .nav-toggle {
    width: 44px;
    height: 44px;
    padding: 11px;
    margin-right: -0.125rem;
  }

  .mobile-nav {
    padding-top: 1rem;
    padding-bottom: max(2rem, env(safe-area-inset-bottom, 0px));
  }

  .mobile-nav__link {
    padding: 1rem 1.25rem;
    font-size: 1rem;
  }

  .mobile-nav__cta {
    margin-top: 1.5rem;
    padding-top: 1.25rem;
  }

  /* Hero mobil */
  .hero {
    min-height: auto;
    min-height: calc(100svh - var(--header-h));
    min-height: calc(100dvh - var(--header-h));
  }

  .hero__content {
    padding: 2rem 0 2.5rem;
  }

  .hero__subtitle {
    font-size: 0.9375rem;
    margin-bottom: 1.25rem;
  }

  .hero__badges {
    gap: 0.5rem;
    margin-bottom: 1.5rem;
  }

  .badge {
    font-size: 0.75rem;
    padding: 0.5rem 0.75rem;
    flex: 1 1 calc(50% - 0.25rem);
    justify-content: center;
    text-align: center;
  }

  .hero__actions {
    flex-direction: column;
    width: 100%;
    gap: 0.625rem;
  }

  .hero__actions .btn {
    width: 100%;
    white-space: normal;
    line-height: 1.35;
    padding: 0.875rem 1rem;
    font-size: 0.9375rem;
  }

  /* Butoane full-width în CTA-uri */
  .section-cta .btn,
  .guarantee-band .btn,
  .cta-box .btn {
    width: 100%;
    max-width: 100%;
    white-space: normal;
  }

  .btn--lg {
    padding: 0.875rem 1.25rem;
    font-size: 0.9375rem;
  }

  /* Galerii */
  .gallery-grid {
    gap: 0.5rem;
  }

  .portfolio-grid {
    gap: 0.625rem;
  }

  .portfolio-item__caption {
    padding: 0.625rem 0.75rem;
    font-size: 0.75rem;
  }

  /* Carduri */
  .benefit-card,
  .service-card,
  .testimonial-card {
    padding: 1.25rem;
  }

  .material-card__body {
    padding: 0 1rem 1rem;
  }

  .material-section__content {
    padding: 1.25rem 1rem;
  }

  /* Garanție — text lung */
  .guarantee-band {
    padding: 2rem 0;
  }

  .guarantee-band h2 {
    font-size: 0.9375rem;
    line-height: 1.5;
    padding: 0 0.5rem;
    margin-bottom: 1.25rem;
  }

  /* FAQ */
  .faq-item__question {
    font-size: 0.9375rem;
    padding: 1rem 0;
    gap: 0.75rem;
  }

  .faq-item.open .faq-item__answer {
    max-height: 500px;
  }

  /* Pagini interioare */
  .page-hero {
    padding: 2rem 0;
  }

  .page-hero p {
    font-size: 0.9375rem;
  }

  .breadcrumbs {
    font-size: 0.8125rem;
  }

  .cta-box {
    padding: 1.5rem 1rem;
    margin: 2rem 0;
    text-align: left;
  }

  .cta-box .btn {
    width: 100%;
  }

  /* Contact */
  .contact-card {
    padding: 1.5rem 1rem;
  }

  .contact-phone {
    font-size: clamp(1.25rem, 7vw, 1.75rem);
    word-break: break-word;
  }

  /* Footer */
  .footer {
    padding: 2.5rem 0 1.25rem;
  }

  .footer__grid {
    gap: 1.5rem;
    margin-bottom: 2rem;
  }

  .footer__phone {
    font-size: 1.25rem;
  }

  .footer__counties-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.25rem 0.75rem;
  }

  .footer__counties-grid a {
    font-size: 0.75rem;
    padding: 0.25rem 0;
  }

  .footer__bottom {
    font-size: 0.75rem;
    gap: 0.75rem;
  }

  /* WhatsApp — mai mic pe mobil */
  .whatsapp-widget {
    width: 52px;
    height: 52px;
    bottom: 1rem;
    right: 1rem;
  }

  .whatsapp-widget svg {
    width: 26px;
    height: 26px;
  }

  /* Blog */
  .blog-lead {
    font-size: 1rem;
  }

  .blog-hero-img {
    margin: 1rem 0;
    border-radius: var(--radius);
  }

  .blog-service-card,
  .blog-why-card,
  .blog-county-card {
    padding: 1.25rem;
  }

  .blog-internal-links,
  .blog-related-counties,
  .blog-nationwide {
    padding: 1.25rem;
  }

  /* 404 */
  .error-page {
    padding: 2rem 1rem;
    min-height: 60vh;
  }

  .error-page h1 {
    font-size: 3.5rem;
  }

  .error-page .btn {
    width: 100%;
  }

  .error-page div[style*="display:flex"] {
    flex-direction: column !important;
    width: 100%;
  }
}

/* Telefoane foarte înguste */
@media (max-width: 359px) {
  :root {
    --gutter-mobile: 1.25rem;
  }

  .gallery-grid,
  .portfolio-grid {
    grid-template-columns: 1fr;
  }

  .badge {
    flex: 1 1 100%;
  }

  .logo {
    font-size: 0.9375rem;
  }
}

/* Landscape mobil */
@media (max-width: 767px) and (orientation: landscape) {
  .hero {
    min-height: auto;
  }

  .hero__content {
    padding: 1.5rem 0;
  }

  .mobile-nav {
    padding-top: 0.75rem;
    padding-bottom: max(1.25rem, env(safe-area-inset-bottom, 0px));
  }

  .mobile-nav__list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
  }

  .mobile-nav__link {
    min-height: 48px;
    justify-content: center;
    text-align: center;
    font-size: 0.9375rem;
    padding: 0.875rem 0.75rem;
  }

  .mobile-nav__cta {
    margin-top: 1rem;
    padding-top: 1rem;
  }
}

/* Accesibilitate */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .fade-in {
    opacity: 1;
    transform: none;
  }

  .whatsapp-widget {
    animation: none;
  }
}
