/* ============================================
   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;
}

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

html {
  scroll-behavior: smooth;
  -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: 0 1.25rem;
}

.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);
}

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

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

.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-shrink: 0;
}

.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;
}

.nav__list {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.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);
}

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

.header__cta {
  display: none;
}

.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: var(--radius);
}

.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: 1.5rem;
  overflow-y: auto;
}

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

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

.mobile-nav__link {
  display: block;
  padding: 0.875rem 1rem;
  font-size: 1.0625rem;
  font-weight: 500;
  color: var(--antracit);
  border-radius: var(--radius);
  border-bottom: 1px solid var(--gri-deschis);
}

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

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

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

/* ---- 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;
  }
}
