/* ════════════════════════════════════════════════════════════════
   Isabel Santamaría — Micropigmentación Avanzada en Sabadell
   Stylesheet — Mobile-first responsive design
   ════════════════════════════════════════════════════════════════ */

/* ─── CSS Custom Properties ─────────────────────────────────── */
:root {
  --color-primary: #8B5A43;
  --color-primary-dark: #6B4433;
  --color-primary-light: #C79F8C;
  --color-cream: #FDF8F5;
  --color-beige: #F5EDE8;
  --color-light-pink: #F0E0D8;
  --color-white: #FFFFFF;
  --color-text-dark: #2C1810;
  --color-text-body: #4A3728;
  --color-text-light: #8B7B6E;
  --color-accent-pink: #D4A59A;
  --color-accent-gold: #C9A96E;
  --color-footer-bg: #3D2B1F;
  --color-footer-text: #E8D8CE;
  --color-whatsapp: #25D366;
  --color-star: #F5A623;

  --shadow-soft: 0 2px 20px rgba(44, 24, 16, 0.06);
  --shadow-medium: 0 4px 30px rgba(44, 24, 16, 0.10);
  --shadow-hover: 0 8px 40px rgba(44, 24, 16, 0.14);

  --font-heading: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-body: 'Montserrat', system-ui, -apple-system, sans-serif;

  --header-height: 90px;
  --container-max: 1200px;
  --section-padding: 80px;
  --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ─── Reset & Base ──────────────────────────────────────────── */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: clamp(0.95rem, 1.2vw, 1.05rem);
  line-height: 1.7;
  color: var(--color-text-body);
  background-color: var(--color-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

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

ul {
  list-style: none;
}

button {
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
}

address {
  font-style: normal;
}

strong {
  font-weight: 600;
  color: var(--color-text-dark);
}

/* ─── Focus & Interaction ───────────────────────────────────── */
:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
  border-radius: 4px;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
}

a, button {
  touch-action: manipulation;
}

/* ─── Utilities ─────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: var(--section-padding) 0;
}

.section--cream {
  background-color: var(--color-cream);
}

/* ─── Section Headers ───────────────────────────────────────── */
.section__label {
  display: block;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.8rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 12px;
}

.section__label--light {
  color: var(--color-accent-pink);
}

.section__title {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: clamp(2rem, 4.5vw, 3rem);
  color: var(--color-text-dark);
  line-height: 1.2;
  margin-bottom: 16px;
  position: relative;
}

.section__title::after {
  content: '';
  display: block;
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent-pink));
  margin-top: 16px;
}

.section__title--light {
  color: var(--color-white);
}

.section__title--light::after {
  background: linear-gradient(90deg, rgba(255,255,255,0.8), rgba(255,255,255,0.2));
}

.section__subtitle {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: clamp(1rem, 1.5vw, 1.1rem);
  color: var(--color-text-light);
  max-width: 560px;
}

.section__header {
  margin-bottom: 48px;
}

/* ─── Buttons ───────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  border-radius: 50px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.9rem;
  letter-spacing: 0.3px;
  transition: background-color var(--transition), color var(--transition), border-color var(--transition), transform var(--transition), box-shadow var(--transition);
  border: 2px solid transparent;
  cursor: pointer;
  white-space: nowrap;
}

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

.btn--primary:hover {
  background: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
}

.btn--outline {
  background: transparent;
  color: var(--color-white);
  border-color: rgba(255, 255, 255, 0.6);
}

.btn--outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--color-white);
  transform: translateY(-2px);
}

.btn--outline-light {
  color: var(--color-white);
  border-color: rgba(255, 255, 255, 0.5);
}

.btn--outline-light:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--color-white);
}

.btn--whatsapp {
  background: var(--color-whatsapp);
  border-color: var(--color-whatsapp);
}

.btn--whatsapp:hover {
  background: #1fb855;
  border-color: #1fb855;
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.35);
}

.btn--lg {
  padding: 16px 40px;
  font-size: 1rem;
}

/* ─── Header ────────────────────────────────────────────────── */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  z-index: 1000;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: box-shadow var(--transition);
}

.header--scrolled {
  box-shadow: 0 1px 20px rgba(44, 24, 16, 0.08);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.nav__logo img {
  height: 130px;
  width: auto;
  transition: opacity var(--transition);
  margin: -20px 0;
}

.nav__logo:hover img {
  opacity: 0.8;
}

.nav__list {
  display: flex;
  gap: 32px;
}

.nav__link {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--color-text-body);
  position: relative;
  padding: 4px 0;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--color-primary);
  transition: width var(--transition);
}

.nav__link:hover::after,
.nav__link.active::after {
  width: 100%;
}

.nav__link:hover {
  color: var(--color-primary);
}

.nav__toggle,
.nav__close {
  display: none;
  color: var(--color-text-dark);
}

/* Mobile nav */
@media (max-width: 767px) {
  .nav__menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: var(--color-white);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: right var(--transition);
    z-index: 1001;
  }

  .nav__menu.show {
    right: 0;
  }

  .nav__list {
    flex-direction: column;
    align-items: center;
    gap: 28px;
  }

  .nav__link {
    font-size: 1.1rem;
  }

  .nav__toggle {
    display: block;
  }

  .nav__close {
    display: block;
    position: absolute;
    top: 24px;
    right: 24px;
  }
}

/* ─── Hero ──────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #3D2B1F;
}

.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.35;
  z-index: 0;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 40%, rgba(139, 90, 67, 0.45), rgba(61, 43, 31, 0.65) 70%);
  z-index: 1;
}

.hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 120px 20px 60px;
}

.hero__logo {
  max-width: 320px;
  height: auto;
  margin: 0 auto 32px;
  filter: brightness(0) invert(1);
  opacity: 0.95;
}

.hero__title {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: clamp(2rem, 5vw, 3.5rem);
  color: var(--color-white);
  line-height: 1.15;
  margin-bottom: 20px;
  letter-spacing: -0.5px;
}

.hero__subtitle {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: clamp(0.95rem, 1.5vw, 1.15rem);
  color: rgba(255, 255, 255, 0.85);
  max-width: 600px;
  margin: 0 auto 36px;
  line-height: 1.7;
}

.hero__ctas {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.hero__badges {
  display: flex;
  gap: 24px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero__badge {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.82rem;
  font-weight: 400;
  letter-spacing: 0.3px;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50px;
  backdrop-filter: blur(4px);
}

.hero__badge svg {
  color: var(--color-accent-gold);
  flex-shrink: 0;
}

.hero__scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: rgba(255, 255, 255, 0.5);
  animation: float 2.5s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* ─── About ─────────────────────────────────────────────────── */
.about {
  background-color: var(--color-cream);
}

.about__grid {
  display: grid;
  gap: 48px;
  align-items: center;
}

.about__image-wrapper {
  position: relative;
}

.about__image {
  width: 100%;
  max-width: 460px;
  height: auto;
  border-radius: 16px;
  object-fit: cover;
  box-shadow: var(--shadow-medium);
}

.about__image-accent {
  position: absolute;
  top: -16px;
  right: -16px;
  width: 100%;
  height: 100%;
  border: 2px solid var(--color-accent-pink);
  border-radius: 16px;
  z-index: -1;
  max-width: 460px;
}

.about__content {
  max-width: 560px;
}

.about__text {
  margin-bottom: 20px;
  color: var(--color-text-body);
}

.about__quote {
  position: relative;
  padding: 24px 28px;
  margin: 28px 0;
  background: var(--color-white);
  border-left: 3px solid var(--color-primary);
  border-radius: 0 12px 12px 0;
  box-shadow: var(--shadow-soft);
}

.about__quote::before {
  content: '\201C';
  position: absolute;
  top: -8px;
  left: 12px;
  font-family: var(--font-heading);
  font-size: 4rem;
  color: var(--color-accent-pink);
  line-height: 1;
  opacity: 0.6;
}

.about__quote p {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  color: var(--color-text-dark);
  line-height: 1.6;
}

/* ─── Services ──────────────────────────────────────────────── */
.services {
  background-color: var(--color-white);
}

.services__grid {
  display: grid;
  gap: 32px;
}

.service-card {
  background: var(--color-white);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: transform var(--transition), box-shadow var(--transition);
  outline: none;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}

.service-card__image-wrapper {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
}

.service-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.service-card:hover .service-card__image {
  transform: scale(1.05);
}

.service-card__image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(139, 90, 67, 0.15) 0%, rgba(139, 90, 67, 0.4) 100%);
}

/* Gradient cards for services without images */
.service-card__image-wrapper--gradient {
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-card__image-wrapper--labios {
  background: linear-gradient(135deg, var(--color-light-pink) 0%, var(--color-accent-pink) 100%);
}

.service-card__image-wrapper--areolas {
  background: linear-gradient(135deg, var(--color-beige) 0%, var(--color-primary-light) 100%);
}

.service-card__icon {
  color: var(--color-primary);
  opacity: 0.7;
  transition: transform var(--transition), opacity var(--transition);
}

.service-card:hover .service-card__icon {
  transform: scale(1.1);
  opacity: 0.9;
}

.service-card__body {
  padding: 28px 24px;
}

.service-card__title {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: clamp(1.3rem, 2vw, 1.5rem);
  color: var(--color-text-dark);
  margin-bottom: 12px;
  line-height: 1.3;
}

.service-card__text {
  font-size: 0.92rem;
  color: var(--color-text-body);
  margin-bottom: 20px;
  line-height: 1.7;
}

.service-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  font-size: 0.85rem;
  color: var(--color-primary);
  letter-spacing: 0.3px;
  transition: color var(--transition), gap var(--transition);
}

.service-card__cta:hover {
  color: var(--color-primary-dark);
  gap: 12px;
}

/* ─── Gallery ───────────────────────────────────────────────── */
.gallery__grid {
  columns: 1;
  column-gap: 16px;
}

.gallery__item {
  break-inside: avoid;
  margin-bottom: 16px;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  box-shadow: var(--shadow-soft);
  transition: transform var(--transition), box-shadow var(--transition);
}

.gallery__item:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-medium);
}

.gallery__item img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.6s ease;
}

.gallery__item:hover img {
  transform: scale(1.05);
}

.gallery__cta-text {
  text-align: center;
  font-family: var(--font-heading);
  font-style: italic;
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  color: var(--color-text-dark);
  margin-top: 40px;
  margin-bottom: 20px;
}

.gallery__cta {
  text-align: center;
}

/* ─── Studio ────────────────────────────────────────────────── */
.studio__grid {
  display: grid;
  gap: 40px;
}

.studio__video-wrapper {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-medium);
}

.studio__video {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 16px;
}

.studio__info {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.studio__text {
  margin-bottom: 20px;
  color: var(--color-text-body);
}

.studio__images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 8px;
}

.studio__img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: var(--shadow-soft);
}

/* ─── Reviews ───────────────────────────────────────────────── */
.reviews {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
  position: relative;
  overflow: hidden;
}

.reviews::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(255,255,255,0.06) 0%, transparent 70%);
  border-radius: 50%;
}

.reviews .section__header {
  text-align: center;
}

.reviews .section__title::after {
  margin-left: auto;
  margin-right: auto;
}

/* Google badge in section header */
.reviews__google-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 28px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  padding: 20px 32px;
  backdrop-filter: blur(4px);
  max-width: 380px;
  margin-left: auto;
  margin-right: auto;
}

.reviews__google-logo {
  flex-shrink: 0;
}

.reviews__google-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.reviews__google-score {
  display: flex;
  align-items: center;
  gap: 8px;
}

.reviews__score {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 2.2rem;
  color: var(--color-white);
  line-height: 1;
}

.reviews__stars {
  display: flex;
  gap: 1px;
  align-items: center;
}

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

.reviews__count strong {
  color: var(--color-white);
}

/* Reviews grid */
.reviews__grid {
  display: grid;
  gap: 24px;
  margin-bottom: 40px;
}

/* Individual review card */
.review-card {
  background: var(--color-white);
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08), 0 0 0 1px rgba(0, 0, 0, 0.04);
  transition: box-shadow var(--transition), transform var(--transition);
}

.review-card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(0, 0, 0, 0.04);
  transform: translateY(-2px);
}

/* Card header: avatar + meta + google icon */
.review-card__header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.review-card__avatar {
  width: 40px;
  height: 40px;
  min-width: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  color: var(--color-white);
}

.review-card__meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
}

.review-card__author {
  font-style: normal;
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--color-text-dark);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.review-card__date {
  font-size: 0.78rem;
  color: #70757A;
}

.review-card__google {
  flex-shrink: 0;
  margin-left: auto;
}

/* Stars row */
.review-card__stars {
  display: flex;
  gap: 1px;
  margin-bottom: 10px;
}

/* Review text */
.review-card__text {
  border: none;
  padding: 0;
  margin: 0;
}

.review-card__text p {
  font-size: 0.9rem;
  color: var(--color-text-body);
  line-height: 1.7;
  font-style: normal;
}

/* Review nav — hidden on desktop, visible on mobile via media query */
.reviews__nav {
  display: none;
}

@keyframes reviewFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.reviews__link {
  text-align: center;
}

/* ─── Contact ───────────────────────────────────────────────── */
.contact__grid {
  display: grid;
  gap: 40px;
}

.contact__details {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact__item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.contact__item svg {
  flex-shrink: 0;
  margin-top: 2px;
}

.contact__item strong {
  display: block;
  font-weight: 600;
  color: var(--color-text-dark);
  margin-bottom: 4px;
  font-size: 0.9rem;
}

.contact__item p {
  font-size: 0.92rem;
  color: var(--color-text-body);
  line-height: 1.6;
}

.contact__item a {
  color: var(--color-primary);
  transition: color var(--transition);
}

.contact__item a:hover {
  color: var(--color-primary-dark);
}

.contact__cta {
  margin-top: 36px;
  padding-top: 32px;
  border-top: 1px solid var(--color-beige);
}

.contact__cta-text {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 500;
  color: var(--color-text-dark);
  margin-bottom: 16px;
}

.contact__map iframe {
  width: 100%;
  min-height: 350px;
  border-radius: 12px;
  box-shadow: var(--shadow-soft);
}

/* ─── Footer ────────────────────────────────────────────────── */
.footer {
  background: var(--color-footer-bg);
  padding: 60px 0 24px;
  color: var(--color-footer-text);
}

.footer__grid {
  display: grid;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer__logo {
  height: 50px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.85;
  margin-bottom: 12px;
}

.footer__tagline {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
}

.footer__heading {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 1.15rem;
  color: var(--color-white);
  margin-bottom: 16px;
}

.footer__links ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer__links a {
  font-size: 0.88rem;
  color: var(--color-footer-text);
  transition: color var(--transition);
}

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

.footer__social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: var(--color-footer-text);
  transition: background-color var(--transition), color var(--transition), transform var(--transition);
  margin-bottom: 16px;
}

.footer__social-link:hover {
  background: var(--color-primary);
  color: var(--color-white);
  transform: translateY(-2px);
}

.footer__aem {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.4);
  line-height: 1.6;
}

.footer__aem strong {
  color: rgba(255, 255, 255, 0.6);
  font-weight: 500;
}

.footer__bottom {
  padding-top: 24px;
  text-align: center;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.35);
}

/* ─── WhatsApp Float ────────────────────────────────────────── */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--color-whatsapp);
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 24px rgba(37, 211, 102, 0.4);
  transition: transform var(--transition), box-shadow var(--transition);
  animation: whatsapp-pulse 2s ease-in-out infinite;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 30px rgba(37, 211, 102, 0.55);
  animation: none;
}

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

/* ─── Lightbox ──────────────────────────────────────────────── */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0, 0, 0, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  backdrop-filter: blur(8px);
}

.lightbox.active {
  opacity: 1;
  visibility: visible;
}

.lightbox__img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 8px;
  transform: scale(0.95);
  transition: transform 0.3s ease;
}

.lightbox.active .lightbox__img {
  transform: scale(1);
}

.lightbox__close {
  position: absolute;
  top: 20px;
  right: 24px;
  color: white;
  font-size: 2.5rem;
  font-weight: 300;
  line-height: 1;
  cursor: pointer;
  transition: transform var(--transition);
  z-index: 2001;
}

.lightbox__close:hover {
  transform: scale(1.2);
}

.lightbox__prev,
.lightbox__next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: white;
  font-size: 2rem;
  padding: 16px;
  cursor: pointer;
  transition: opacity var(--transition);
  opacity: 0.6;
  z-index: 2001;
}

.lightbox__prev:hover,
.lightbox__next:hover {
  opacity: 1;
}

.lightbox__prev {
  left: 16px;
}

.lightbox__next {
  right: 16px;
}

/* ─── Scroll Reveal Animations ──────────────────────────────── */
.reveal-up,
.reveal-left,
.reveal-right,
.reveal-item {
  opacity: 0;
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal-up {
  transform: translateY(40px);
}

.reveal-left {
  transform: translateX(-40px);
}

.reveal-right {
  transform: translateX(40px);
}

.reveal-item {
  transform: translateY(20px);
}

.reveal-up.revealed,
.reveal-left.revealed,
.reveal-right.revealed,
.reveal-item.revealed {
  opacity: 1;
  transform: translate(0);
}

/* Stagger delay for grid children */
.services__grid .reveal-up:nth-child(2),
.reviews__grid .reveal-up:nth-child(2) {
  transition-delay: 0.1s;
}
.services__grid .reveal-up:nth-child(3),
.reviews__grid .reveal-up:nth-child(3) {
  transition-delay: 0.2s;
}
.services__grid .reveal-up:nth-child(4) {
  transition-delay: 0.15s;
}
.services__grid .reveal-up:nth-child(5) {
  transition-delay: 0.05s;
}
.services__grid .reveal-up:nth-child(6) {
  transition-delay: 0.1s;
}
.services__grid .reveal-up:nth-child(7) {
  transition-delay: 0.15s;
}
.services__grid .reveal-up:nth-child(8) {
  transition-delay: 0.05s;
}

.hero__badges .reveal-item:nth-child(2) {
  transition-delay: 0.15s;
}
.hero__badges .reveal-item:nth-child(3) {
  transition-delay: 0.3s;
}

/* ─── Responsive: Mobile Optimizations (< 768px) ────────────── */
@media (max-width: 767px) {
  :root {
    --section-padding: 48px;
    --header-height: 70px;
  }

  /* Header logo — smaller on mobile, no overflow hack */
  .nav__logo img {
    height: 80px;
    margin: -5px 0;
  }

  /* Nav buttons — 44px min tap targets */
  .nav__toggle,
  .nav__close {
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .nav__toggle {
    display: flex;
  }

  /* Hero — less padding, smaller logo */
  .hero {
    min-height: 100svh;
  }

  .hero__content {
    padding: 90px 20px 48px;
  }

  .hero__logo {
    max-width: 200px;
    margin-bottom: 24px;
  }

  .hero__title {
    font-size: clamp(1.6rem, 6vw, 2.2rem);
  }

  .hero__ctas {
    gap: 12px;
    margin-bottom: 36px;
  }

  .hero__badges {
    gap: 10px;
  }

  .hero__badge {
    font-size: 0.75rem;
    padding: 8px 12px;
    gap: 6px;
  }

  .hero__badge svg {
    width: 16px;
    height: 16px;
  }

  /* Gallery — 2 columns on mobile (user's main request) */
  .gallery__grid {
    columns: 2;
    column-gap: 10px;
  }

  .gallery__item {
    margin-bottom: 10px;
    border-radius: 8px;
  }

  .gallery__cta-text {
    margin-top: 24px;
    font-size: 1rem;
  }

  /* Service cards — more compact */
  .service-card__image-wrapper {
    aspect-ratio: 3 / 2;
  }

  .service-card__body {
    padding: 16px 14px;
  }

  .service-card__title {
    font-size: 1.1rem;
    margin-bottom: 8px;
  }

  .service-card__text {
    font-size: 0.85rem;
    line-height: 1.6;
  }

  .service-card__cta {
    padding: 10px 0;
    font-size: 0.83rem;
  }

  /* Reviews — single card carousel on mobile */
  .reviews__grid {
    display: block;
    position: relative;
    margin-bottom: 0;
  }

  .review-card {
    display: none;
  }

  .review-card.review-card--active {
    display: block;
    animation: reviewFadeIn 0.35s ease;
  }

  /* Hide cards 4-6 entirely on mobile */
  .review-card:nth-child(n+4) {
    display: none !important;
  }

  .reviews__google-badge {
    padding: 14px 20px;
    gap: 10px;
  }

  .reviews__score {
    font-size: 1.8rem;
  }

  /* Navigation dots + arrows */
  .reviews__nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 20px;
    margin-bottom: 24px;
  }

  .reviews__nav-arrow {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: var(--color-white);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.2s ease;
  }

  .reviews__nav-arrow:active {
    background: rgba(255, 255, 255, 0.3);
  }

  .reviews__dots {
    display: flex;
    gap: 10px;
    align-items: center;
  }

  .reviews__dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: background-color 0.2s ease, transform 0.2s ease;
  }

  .reviews__dot.active {
    background: var(--color-white);
    transform: scale(1.3);
  }

  /* Contact — smaller map */
  .contact__map iframe {
    min-height: 250px;
  }

  /* Tap targets — links and CTAs */
  .contact__item a {
    display: inline-block;
    padding: 6px 0;
  }

  .footer__links ul {
    gap: 2px;
  }

  .footer__links a {
    display: block;
    padding: 6px 0;
  }

  /* Animations — lighter on mobile */
  .reveal-up {
    transform: translateY(20px);
  }

  .reveal-left {
    transform: translateX(-20px);
  }

  .reveal-right {
    transform: translateX(20px);
  }

  /* Remove stagger delays on mobile */
  .services__grid .reveal-up:nth-child(n),
  .reviews__grid .reveal-up:nth-child(n) {
    transition-delay: 0s;
  }

  /* WhatsApp pulse — limit to 3 times */
  .whatsapp-float {
    animation: whatsapp-pulse 2s ease-in-out 3;
  }
}

/* ─── Responsive: Tablet (768px+) ───────────────────────────── */
@media (min-width: 768px) {
  .container {
    padding: 0 40px;
  }

  .section {
    padding: 100px 0;
  }

  .hero__logo {
    max-width: 380px;
  }

  .about__grid {
    grid-template-columns: 1fr 1fr;
    gap: 60px;
  }

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

  .gallery__grid {
    columns: 2;
  }

  .studio__grid {
    grid-template-columns: 1fr 1fr;
    gap: 48px;
  }

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

  .contact__grid {
    grid-template-columns: 1fr 1fr;
    gap: 48px;
  }

  .footer__grid {
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
  }
}

/* ─── Responsive: Desktop (1024px+) ─────────────────────────── */
@media (min-width: 1024px) {
  :root {
    --section-padding: 120px;
  }

  .hero__logo {
    max-width: 420px;
  }

  .hero__content {
    padding-top: 140px;
  }

  .about__grid {
    gap: 80px;
  }

  .gallery__grid {
    columns: 3;
  }

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

  .studio__images .studio__img {
    height: 240px;
  }
}

/* ─── Responsive: Large (1280px+) ───────────────────────────── */
@media (min-width: 1280px) {
  .container {
    padding: 0 60px;
  }
}

/* ─── Reduced Motion ────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }

  .reveal-up,
  .reveal-left,
  .reveal-right,
  .reveal-item {
    opacity: 1;
    transform: none;
  }
}
