/* =============================================
   Armo tu Living — Modern One-Pager Styles
   ============================================= */

:root {
  --purple: #9561AC;
  --purple-dark: #7a4d8f;
  --lavender: #C3A3D2;
  --yellow: #E1E504;
  --olive: #BFC51D;
  --dark: #1a1a2e;
  --text: #4a4a5a;
  --text-light: #7a7a8a;
  --bg: #faf9fc;
  --white: #ffffff;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 4px 24px rgba(149, 97, 172, 0.10);
  --shadow-lg: 0 12px 48px rgba(149, 97, 172, 0.15);
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font-body: 'DM Sans', system-ui, sans-serif;
  --font-display: 'Playfair Display', Georgia, serif;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--purple);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--purple-dark);
}

.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  border-radius: 50px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
}

.btn--primary {
  background: var(--purple);
  color: var(--white);
  border-color: var(--purple);
}

.btn--primary:hover {
  background: var(--purple-dark);
  border-color: var(--purple-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.btn--outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.6);
}

.btn--outline:hover {
  background: rgba(255,255,255,0.15);
  border-color: var(--white);
  color: var(--white);
}

.btn--lg {
  padding: 16px 32px;
  font-size: 16px;
}

.btn--full {
  width: 100%;
  justify-content: center;
}

/* ---- Header / Nav ---- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(149,97,172,0.08);
  transition: box-shadow var(--transition);
}

.header--scrolled {
  box-shadow: var(--shadow);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 88px;
}

.nav__logo img {
  height: 78px;
  width: auto;
  display: block;
}

.nav__menu {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
}

.nav__link {
  display: block;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  border-radius: 8px;
  transition: all var(--transition);
}

.nav__link:hover {
  color: var(--purple);
  background: rgba(149,97,172,0.06);
}

.nav__link--cta {
  background: var(--purple);
  color: var(--white) !important;
  padding: 10px 20px;
  border-radius: 50px;
}

.nav__link--cta:hover {
  background: var(--purple-dark);
}

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--dark);
  border-radius: 2px;
  transition: all var(--transition);
}

/* ---- Hero ---- */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  max-height: 900px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero__slider {
  position: absolute;
  inset: 0;
}

.hero__slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1s ease;
}

.hero__slide--active {
  opacity: 1;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(26, 26, 46, 0.75) 0%,
    rgba(149, 97, 172, 0.45) 100%
  );
}

.hero__content {
  position: relative;
  z-index: 2;
  color: var(--white);
  max-width: 680px;
  padding-top: 88px;
}

.hero__eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  opacity: 0.85;
  margin-bottom: 16px;
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 20px;
}

.hero__subtitle {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  line-height: 1.7;
  opacity: 0.9;
  margin-bottom: 36px;
  max-width: 520px;
}

.hero__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero__dots {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 2;
}

.hero__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.5);
  background: transparent;
  cursor: pointer;
  transition: all var(--transition);
  padding: 0;
}

.hero__dot--active {
  background: var(--white);
  border-color: var(--white);
}

/* ---- Trust bar ---- */
.trust-bar {
  background: linear-gradient(90deg, var(--purple) 0%, var(--purple-dark) 100%);
  padding: 18px 24px;
  text-align: center;
}

.trust-bar__text {
  margin: 0;
  color: var(--white);
  font-size: clamp(0.95rem, 2.5vw, 1.1rem);
  font-weight: 600;
  letter-spacing: 0.5px;
}

/* ---- Sections ---- */
.section {
  padding: 96px 0;
}

.section__header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 56px;
}

.section__tag {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--purple);
  margin-bottom: 12px;
}

.section__title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 16px;
}

.section__desc {
  font-size: 17px;
  color: var(--text-light);
  line-height: 1.7;
}

/* ---- Services ---- */
.services {
  background: var(--white);
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.service-card {
  background: var(--bg);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: all var(--transition);
  border: 1px solid transparent;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(149,97,172,0.12);
}

.service-card__icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.service-card__icon svg {
  width: 26px;
  height: 26px;
}

.service-card__icon--purple {
  background: rgba(149, 97, 172, 0.12);
  color: var(--purple);
}

.service-card__icon--lavender {
  background: rgba(195, 163, 210, 0.25);
  color: #8a6a9e;
}

.service-card__icon--yellow {
  background: rgba(225, 229, 4, 0.2);
  color: #9a9d00;
}

.service-card__icon--olive {
  background: rgba(191, 197, 29, 0.2);
  color: #8a8f15;
}

.service-card__title {
  font-size: 18px;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 10px;
}

.service-card__text {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.65;
}

/* ---- Gallery ---- */
.gallery__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.gallery__item {
  position: relative;
  aspect-ratio: 1;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
}

.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery__item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(149, 97, 172, 0);
  transition: background var(--transition);
}

.gallery__item:hover img {
  transform: scale(1.08);
}

.gallery__item:hover::after {
  background: rgba(149, 97, 172, 0.25);
}

/* ---- Catalog CTA ---- */
.catalog {
  background: linear-gradient(135deg, var(--purple) 0%, #7a4d8f 100%);
  color: var(--white);
}

.catalog__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.catalog .section__tag {
  color: var(--lavender);
}

.catalog .section__title {
  color: var(--white);
}

.catalog__text {
  font-size: 17px;
  line-height: 1.7;
  opacity: 0.9;
  margin-bottom: 32px;
}

.catalog .btn--primary {
  background: var(--white);
  color: var(--purple);
  border-color: var(--white);
}

.catalog .btn--primary:hover {
  background: var(--yellow);
  color: var(--dark);
  border-color: var(--yellow);
}

.catalog__visual {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.catalog__visual img {
  width: 100%;
  height: 360px;
  object-fit: cover;
}

/* ---- About ---- */
.about {
  background: var(--white);
}

.about__grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 64px;
  align-items: center;
}

.about__text {
  font-size: 16px;
  color: var(--text);
  line-height: 1.75;
  margin-bottom: 16px;
}

.about__stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.stat {
  background: var(--bg);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  text-align: center;
  border: 1px solid rgba(149,97,172,0.08);
  transition: all var(--transition);
}

.stat:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.stat__number {
  display: block;
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--purple);
  line-height: 1;
  margin-bottom: 8px;
}

.stat__label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ---- Contact ---- */
.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.contact__desc {
  font-size: 17px;
  color: var(--text-light);
  margin-bottom: 32px;
  line-height: 1.7;
}

.contact__details {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 32px;
}

.contact__item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.contact__item svg {
  flex-shrink: 0;
  color: var(--purple);
  margin-top: 2px;
}

.contact__item strong {
  display: block;
  font-size: 14px;
  color: var(--dark);
  margin-bottom: 2px;
}

.contact__item span,
.contact__item a {
  font-size: 15px;
  color: var(--text-light);
}

.contact__social {
  display: flex;
  gap: 12px;
}

.contact__social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg);
  color: var(--purple);
  transition: all var(--transition);
}

.contact__social a:hover {
  background: var(--purple);
  color: var(--white);
}

/* ---- Form ---- */
.contact__form {
  position: relative;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow);
  min-height: 420px;
}

.form-body {
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.form-body--fadeout {
  opacity: 0;
  transform: translateY(-12px);
  pointer-events: none;
}

.form-state {
  position: absolute;
  inset: 36px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.45s ease, transform 0.45s ease, visibility 0.45s;
}

.form-state--visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.form-sending__spinner {
  width: 52px;
  height: 52px;
  border: 4px solid rgba(149, 97, 172, 0.15);
  border-top-color: var(--purple);
  border-radius: 50%;
  animation: form-spin 0.8s linear infinite;
  margin-bottom: 20px;
}

.form-sending__title {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 600;
  color: var(--dark);
}

.form-sending__text {
  margin: 0;
  font-size: 15px;
  color: var(--text-light);
  animation: form-pulse 1.6s ease-in-out infinite;
}

.form-success__icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(191, 197, 29, 0.2);
  color: #6b7010;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  animation: form-pop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.form-success__title {
  margin: 0 0 10px;
  font-size: 20px;
  font-weight: 600;
  color: var(--dark);
}

.form-success__text {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-light);
  max-width: 280px;
}

@keyframes form-spin {
  to { transform: rotate(360deg); }
}

@keyframes form-pulse {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}

@keyframes form-pop {
  0% { transform: scale(0.5); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 14px 16px;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--dark);
  background: var(--bg);
  border: 2px solid transparent;
  border-radius: 10px;
  transition: all var(--transition);
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--purple);
  background: var(--white);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-message {
  margin: 0;
  padding: 14px 16px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
}

.form-message--success {
  background: transparent;
}

.form-message--error p {
  margin: 0;
}

.form-message--error {
  background: rgba(220, 53, 69, 0.1);
  color: #a71d2a;
}

/* ---- Footer ---- */
.footer {
  background: var(--dark);
  color: rgba(255,255,255,0.6);
  padding: 48px 0;
  text-align: center;
}

.footer__logo {
  margin: 0 auto 16px;
  display: block;
  width: 132px;
  height: auto;
}

.footer__inner p {
  font-size: 14px;
  margin-bottom: 4px;
}

.footer__copy {
  margin-top: 12px;
  font-size: 13px;
  opacity: 0.5;
}

/* ---- Lightbox ---- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0,0,0,0.92);
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox[hidden] {
  display: none;
}

.lightbox__img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 4px;
}

.lightbox__close,
.lightbox__prev,
.lightbox__next {
  position: absolute;
  background: none;
  border: none;
  color: var(--white);
  cursor: pointer;
  font-size: 36px;
  opacity: 0.7;
  transition: opacity var(--transition);
  padding: 12px;
  line-height: 1;
}

.lightbox__close:hover,
.lightbox__prev:hover,
.lightbox__next:hover {
  opacity: 1;
}

.lightbox__close {
  top: 16px;
  right: 20px;
  font-size: 40px;
}

.lightbox__prev {
  left: 16px;
}

.lightbox__next {
  right: 16px;
}

/* ---- WhatsApp Widget ---- */
.whatsapp-widget {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 999;
  display: flex;
  align-items: center;
  gap: 12px;
}

.whatsapp-tooltip {
  position: relative;
  max-width: 220px;
  padding: 12px 36px 12px 16px;
  background: var(--white);
  color: var(--dark);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
  opacity: 0;
  visibility: hidden;
  transform: translateX(12px) scale(0.95);
  transition: opacity 0.4s ease, transform 0.4s ease, visibility 0.4s;
  pointer-events: none;
}

.whatsapp-tooltip::after {
  content: '';
  position: absolute;
  right: -6px;
  top: 50%;
  transform: translateY(-50%);
  border: 6px solid transparent;
  border-left-color: var(--white);
}

.whatsapp-tooltip p {
  margin: 0;
}

.whatsapp-tooltip--visible {
  opacity: 1;
  visibility: visible;
  transform: translateX(0) scale(1);
  pointer-events: auto;
  animation: whatsapp-bounce 0.5s ease;
}

.whatsapp-tooltip__close {
  position: absolute;
  top: 6px;
  right: 8px;
  background: none;
  border: none;
  font-size: 18px;
  line-height: 1;
  color: var(--text-light);
  cursor: pointer;
  padding: 2px 4px;
  transition: color var(--transition);
}

.whatsapp-tooltip__close:hover {
  color: var(--dark);
}

@keyframes whatsapp-bounce {
  0% { transform: translateX(12px) scale(0.95); }
  60% { transform: translateX(-4px) scale(1.02); }
  100% { transform: translateX(0) scale(1); }
}

.whatsapp-btn {
  flex-shrink: 0;
  width: 60px;
  height: 60px;
  background: #25D366;
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  transition: all var(--transition);
}

.whatsapp-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 28px rgba(37, 211, 102, 0.5);
  color: var(--white);
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  .services__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .about__grid,
  .contact__grid,
  .catalog__inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .catalog__visual img {
    height: 280px;
  }
}

@media (max-width: 768px) {
  .nav__toggle {
    display: flex;
  }

  .nav__menu {
    position: fixed;
    top: 88px;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 16px 24px 24px;
    gap: 4px;
    box-shadow: var(--shadow);
    transform: translateY(-120%);
    opacity: 0;
    transition: all var(--transition);
    pointer-events: none;
  }

  .nav__menu--open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }

  .nav__link {
    width: 100%;
    padding: 12px 16px;
  }

  .section {
    padding: 64px 0;
  }

  .services__grid {
    grid-template-columns: 1fr;
  }

  .gallery__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about__stats {
    grid-template-columns: 1fr 1fr;
  }

  .contact__form {
    padding: 24px;
    min-height: 380px;
  }

  .form-state {
    inset: 24px;
  }

  .hero {
    min-height: 500px;
  }

  .hero__actions {
    flex-direction: column;
  }

  .hero__actions .btn {
    text-align: center;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .gallery__grid {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .about__stats {
    grid-template-columns: 1fr;
  }

  .whatsapp-widget {
    bottom: 20px;
    right: 20px;
    flex-direction: column-reverse;
    align-items: flex-end;
  }

  .whatsapp-tooltip {
    max-width: 200px;
    margin-right: 4px;
  }

  .whatsapp-tooltip::after {
    right: 24px;
    top: auto;
    bottom: -6px;
    transform: none;
    border: 6px solid transparent;
    border-top-color: var(--white);
    border-left-color: transparent;
  }

  .whatsapp-btn {
    width: 54px;
    height: 54px;
  }
}
