/* =========================================================
   BESSIE BEAUTY CLUB - SETÚBAL
   Folha de estilos da landing page
   ========================================================= */

/* ---------- Variáveis de cor (seguir rigorosamente) ---------- */
:root {
  --color-primary: #FF5255;
  --color-primary-hover: #DB3A3C;
  --color-text-light: #FFFFFF;

  --color-background-main: #F1ECEC;
  --color-background-secondary: #FCE5D0; /* pêssego claro, usado em seções de destaque */
  --color-background-card: #FFFFFF;

  --color-text-heading: #222222;
  --color-text-main: #111111;
  --color-text-muted: #7A7A7A;

  --color-border-subtle: #E7DEDE;
  --color-border-main: #D3C6C6;

  --font-heading: 'Poppins', sans-serif;
  --font-body: 'Quicksand', sans-serif;

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 28px;

  --shadow-card: 0 10px 30px rgba(34, 34, 34, 0.08);
  --shadow-header: 0 4px 20px rgba(34, 34, 34, 0.08);

  --container-width: 1160px;
}

/* ---------- Reset básico ---------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--color-background-main);
  color: var(--color-text-main);
  line-height: 1.6;
  overflow-x: hidden;
}

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

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

h1, h2, h3 {
  font-family: var(--font-heading);
  color: var(--color-text-heading);
  line-height: 1.25;
}

.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Botões ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: background-color 0.25s ease, transform 0.2s ease, box-shadow 0.2s ease;
  white-space: nowrap;
}

.btn--primary {
  background-color: var(--color-primary);
  color: var(--color-text-light);
}

.btn--primary:hover,
.btn--primary:focus-visible {
  background-color: var(--color-primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(255, 82, 85, 0.35);
}

.btn--outline {
  background-color: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
  width: 100%;
}

.btn--outline:hover,
.btn--outline:focus-visible {
  background-color: var(--color-primary);
  color: var(--color-text-light);
}

.btn--light {
  background-color: var(--color-text-light);
  color: var(--color-primary);
}

.btn--light:hover,
.btn--light:focus-visible {
  background-color: var(--color-background-secondary);
  transform: translateY(-2px);
}

.btn--large {
  padding: 18px 40px;
  font-size: 1.125rem;
  border-radius: var(--radius-sm);
}

.btn--header {
  padding: 10px 20px;
  font-size: 0.9rem;
}

/* ---------- Animação fade-in ---------- */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* ---------- Header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--color-background-card);
  transition: box-shadow 0.3s ease;
}

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

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  padding-bottom: 12px;
  gap: 16px;
}

.header__logo img {
  height: 68px;
  width: auto;
}

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

.nav__link {
  font-family: var(--font-heading);
  font-weight: 500;
  color: var(--color-text-heading);
  position: relative;
  padding: 4px 0;
}

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

.nav__link:hover::after,
.nav__link:focus-visible::after {
  width: 100%;
}

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
}

.hamburger span {
  display: block;
  height: 2px;
  width: 100%;
  background-color: var(--color-text-heading);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

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

.hamburger.is-active span:nth-child(2) {
  opacity: 0;
}

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

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(180deg, var(--color-background-secondary) 0%, var(--color-background-main) 100%);
  padding: 64px 0;
}

.hero__inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 48px;
}

.hero__logo {
  height: 72px;
  width: auto;
  margin-bottom: 24px;
}

.hero__badge {
  display: inline-block;
  background-color: var(--color-primary);
  color: var(--color-text-light);
  font-family: var(--font-heading);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 10px 20px;
  border-radius: 999px;
  margin-bottom: 20px;
  box-shadow: 0 8px 18px rgba(255, 82, 85, 0.35);
  font-size: 0.9rem;
}

.hero__title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  margin-bottom: 20px;
}

.hero__subtitle {
  font-size: 1.1rem;
  color: var(--color-text-muted);
  margin-bottom: 32px;
  max-width: 46ch;
}

.hero__collage {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 16px;
}

.hero__collage-item {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  aspect-ratio: 1 / 1;
}

.hero__collage-item--large {
  grid-row: span 2;
  aspect-ratio: 1 / 2;
}

.hero__collage-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.4s ease;
}

.hero__collage-item:hover img {
  transform: scale(1.06);
}

/* ---------- Barra de confiança ---------- */
.trust {
  background-color: var(--color-background-card);
  border-top: 1px solid var(--color-border-subtle);
  border-bottom: 1px solid var(--color-border-subtle);
  padding: 32px 0;
}

.trust__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 24px;
}

.trust__item {
  flex: 1 1 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  color: var(--color-text-heading);
  text-align: center;
}

/* ---------- Seções gerais ---------- */
section {
  padding: 80px 0;
}

.section-title {
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 12px;
}

.section-title--light {
  color: var(--color-text-light);
}

.section-title--start {
  text-align: left;
}

.section-subtitle {
  text-align: center;
  color: var(--color-text-muted);
  font-size: 1.05rem;
  max-width: 60ch;
  margin: 0 auto 48px;
}

/* ---------- Serviços ---------- */
.services {
  background-color: var(--color-background-main);
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
  margin-top: 16px;
}

.card {
  background-color: var(--color-background-card);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 34px rgba(34, 34, 34, 0.14);
}

.card__photo {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background-color: var(--color-background-card);
}

.card__photo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  transform: scale(1.04);
}

.card__photo-placeholder {
  aspect-ratio: 3 / 4;
  background-color: var(--color-background-main);
  border: 1px dashed var(--color-border-main);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--color-text-muted);
  text-align: center;
  padding: 16px;
}

.card__photo-placeholder--no-border {
  border: none;
}

.card__camera-icon {
  width: 36px;
  height: 36px;
  fill: var(--color-text-muted);
}

.card__body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex-grow: 1;
}

.card__title {
  font-size: 1.2rem;
  font-weight: 600;
}

.card__list {
  flex-grow: 1;
  column-count: 2;
  column-gap: 20px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.card__list li {
  position: relative;
  padding-left: 14px;
  margin-bottom: 8px;
  color: var(--color-text-muted);
  font-size: 0.88rem;
  line-height: 1.35;
  break-inside: avoid;
}

.card__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background-color: var(--color-primary);
}

/* ---------- Bessie Teen ---------- */
.teen {
  background-color: var(--color-background-secondary);
}

.teen__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.teen__text {
  color: var(--color-text-main);
  font-size: 1.05rem;
  margin: 16px 0 28px;
  max-width: 50ch;
}

.teen__gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.teen__gallery-item {
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.teen__gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.4s ease;
}

.teen__gallery-item:hover img {
  transform: scale(1.08);
}

.teen__gallery-item--placeholder {
  background-color: var(--color-background-card);
  border: 1px dashed var(--color-border-main);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: var(--color-text-muted);
  text-align: center;
  padding: 10px;
  font-size: 0.8rem;
}

.teen__gallery-item--placeholder .card__camera-icon {
  width: 28px;
  height: 28px;
  fill: var(--color-text-muted);
}

/* ---------- Sobre / Galeria ---------- */
.about {
  background-color: var(--color-background-main);
}

.about__text {
  text-align: center;
  max-width: 70ch;
  margin: 0 auto 48px;
  color: var(--color-text-muted);
  font-size: 1.05rem;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.gallery__item {
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.4s ease;
}

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

/* ---------- Localização ---------- */
.location {
  background-color: var(--color-background-main);
}

.location__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.location__address {
  margin: 16px 0;
  font-size: 1.05rem;
}

.location__phone {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 24px;
}

.location__map {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  aspect-ratio: 4 / 3;
}

.location__map iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* ---------- CTA final ---------- */
.cta-final {
  background-color: var(--color-text-heading);
  background-image: linear-gradient(135deg, #2A1414 0%, var(--color-primary-hover) 100%);
}

.cta-final__inner {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.cta-final__title {
  color: var(--color-text-light);
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 700;
}

.cta-final__text {
  color: #F1DEDE;
  font-size: 1.1rem;
  max-width: 55ch;
  margin-bottom: 12px;
}

/* ---------- Footer ---------- */
.footer {
  background-color: var(--color-primary);
  color: var(--color-text-light);
  padding-top: 64px;
}

.footer__inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.25);
}

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

.footer__brand p {
  color: rgba(255, 255, 255, 0.85);
}

.footer__col h3 {
  color: var(--color-text-light);
  font-size: 1rem;
  margin-bottom: 16px;
}

.footer__col ul li {
  margin-bottom: 10px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.95rem;
}

.footer__col ul li a {
  transition: opacity 0.2s ease;
}

.footer__col ul li a:hover {
  opacity: 0.7;
  text-decoration: underline;
}

.footer__bottom {
  text-align: center;
  padding: 24px 0;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.75);
}

/* ---------- Botão flutuante do WhatsApp ---------- */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 60px;
  height: 60px;
  background-color: #25D366;
  color: #FFFFFF;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  z-index: 200;
  animation: pulse 2.2s infinite;
}

.whatsapp-float:hover {
  transform: scale(1.08);
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.55), 0 8px 24px rgba(0, 0, 0, 0.25);
  }
  70% {
    box-shadow: 0 0 0 16px rgba(37, 211, 102, 0), 0 8px 24px rgba(0, 0, 0, 0.25);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0), 0 8px 24px rgba(0, 0, 0, 0.25);
  }
}

/* =========================================================
   RESPONSIVO
   ========================================================= */
@media (max-width: 900px) {
  .hero__inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero__logo {
    margin-left: auto;
    margin-right: auto;
  }

  .hero__subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .hero__collage {
    max-width: 420px;
    margin: 0 auto;
  }

  .location__inner {
    grid-template-columns: 1fr;
  }

  .teen__inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .teen__text {
    margin-left: auto;
    margin-right: auto;
  }

  .footer__inner {
    grid-template-columns: 1fr 1fr;
  }

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

@media (max-width: 720px) {
  .nav {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background-color: var(--color-background-card);
    box-shadow: var(--shadow-header);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
  }

  .nav.is-open {
    max-height: 320px;
  }

  .nav__list {
    flex-direction: column;
    gap: 0;
    padding: 8px 24px 16px;
  }

  .nav__list li {
    border-bottom: 1px solid var(--color-border-subtle);
  }

  .nav__link {
    display: block;
    padding: 14px 0;
  }

  .hamburger {
    display: flex;
  }

  .btn--header {
    display: none;
  }

  .footer__inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  section {
    padding: 56px 0;
  }

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

  .whatsapp-float {
    width: 52px;
    height: 52px;
    bottom: 16px;
    right: 16px;
  }
}
