/* Casa Chique Aromas — identidade: azulejo português, azul + amarelo-limão + branco */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,500;0,600;0,700;1,500&family=Jost:wght@300;400;500;600&display=swap');

:root {
  --blue-deep: #17356b;
  --blue: #2b57a0;
  --blue-mid: #3f6fc2;
  --blue-soft: #a9c2e8;
  --blue-mist: #eef3fb;
  --yellow: #f2b705;
  --yellow-soft: #f7d24c;
  --cream: #fdf9ee;
  --white: #ffffff;
  --ink: #16264a;
  --ink-soft: #4a5a7d;

  --serif: 'Playfair Display', Georgia, serif;
  --sans: 'Jost', 'Segoe UI', sans-serif;

  --container: 1180px;
  --radius: 18px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--cream);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

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

.wrap {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
}

h1, h2, h3 {
  font-family: var(--serif);
  color: var(--blue-deep);
  font-weight: 600;
  line-height: 1.15;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--blue-mid);
  font-weight: 500;
}

.eyebrow::before {
  content: '';
  width: 26px;
  height: 1px;
  background: var(--yellow);
}

.lede {
  font-size: 1.08rem;
  color: var(--ink-soft);
  line-height: 1.7;
  max-width: 46ch;
}

/* Azulejo tile pattern — reusable SVG data-uri background */
:root {
  --tile-navy: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Crect width='120' height='120' fill='%2317356b'/%3E%3Cg fill='none' stroke='%23a9c2e8' stroke-width='1.4' opacity='0.55'%3E%3Cpath d='M60 6 C80 20 100 40 114 60 C100 80 80 100 60 114 C40 100 20 80 6 60 C20 40 40 20 60 6Z'/%3E%3Ccircle cx='60' cy='60' r='30'/%3E%3Cpath d='M60 30 C72 42 78 48 90 60 C78 72 72 78 60 90 C48 78 42 72 30 60 C42 48 48 42 60 30Z'/%3E%3C/g%3E%3Cg fill='%23f2b705' opacity='0.9'%3E%3Ccircle cx='60' cy='60' r='3'/%3E%3Ccircle cx='6' cy='6' r='2'/%3E%3Ccircle cx='114' cy='6' r='2'/%3E%3Ccircle cx='6' cy='114' r='2'/%3E%3Ccircle cx='114' cy='114' r='2'/%3E%3C/g%3E%3C/svg%3E");
  --tile-white: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Crect width='120' height='120' fill='%23fdf9ee'/%3E%3Cg fill='none' stroke='%232b57a0' stroke-width='1.4' opacity='0.5'%3E%3Cpath d='M60 6 C80 20 100 40 114 60 C100 80 80 100 60 114 C40 100 20 80 6 60 C20 40 40 20 60 6Z'/%3E%3Ccircle cx='60' cy='60' r='30'/%3E%3Cpath d='M60 30 C72 42 78 48 90 60 C78 72 72 78 60 90 C48 78 42 72 30 60 C42 48 48 42 60 30Z'/%3E%3C/g%3E%3C/svg%3E");
}

.tiles-navy { background-image: var(--tile-navy); background-size: 120px 120px; }
.tiles-white { background-image: var(--tile-white); background-size: 120px 120px; }

/* Fade-up reveal on scroll */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform .8s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ---------- Header ---------- */
header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(253, 249, 238, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(23, 53, 107, 0.08);
  transition: box-shadow .3s ease;
}

header.scrolled { box-shadow: 0 6px 24px rgba(23, 53, 107, 0.08); }

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

.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 54px; width: 54px; border-radius: 50%; }
.brand span {
  font-family: var(--serif);
  font-weight: 600;
  color: var(--blue-deep);
  font-size: 1.15rem;
  letter-spacing: 0.02em;
}

.nav-links { display: flex; gap: 34px; }
.nav-links a {
  font-size: 0.92rem;
  color: var(--ink);
  position: relative;
  padding: 4px 0;
}
.nav-links a::after {
  content: '';
  position: absolute; left: 0; bottom: -2px;
  width: 0; height: 2px;
  background: var(--yellow);
  transition: width .3s ease;
}
.nav-links a:hover::after { width: 100%; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: transform .25s ease, box-shadow .25s ease;
}
.btn-primary {
  background: linear-gradient(135deg, var(--yellow-soft), var(--yellow));
  color: var(--blue-deep);
  box-shadow: 0 10px 24px rgba(242, 183, 5, 0.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(242, 183, 5, 0.45); }
.btn-outline {
  background: transparent;
  color: var(--blue-deep);
  border: 1.5px solid var(--blue-deep);
}
.btn-outline:hover { background: var(--blue-deep); color: var(--white); }

.nav-cta { display: flex; align-items: center; gap: 14px; }
.burger {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--blue-deep);
  cursor: pointer;
  padding: 4px 6px;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 190px 0 120px;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 15% 20%, rgba(63, 111, 194, 0.14), transparent 55%),
    radial-gradient(ellipse at 85% 80%, rgba(242, 183, 5, 0.12), transparent 50%),
    var(--cream);
}

.hero-tile-border {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 14px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 40px;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 26px 0 34px;
}
.hero-badges span {
  font-size: 0.76rem;
  letter-spacing: 0.04em;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--white);
  border: 1px solid var(--blue-soft);
  color: var(--blue-mid);
  font-weight: 500;
}

.hero h1 {
  font-size: clamp(2.4rem, 4.2vw, 3.6rem);
  margin: 18px 0 20px;
}
.hero h1 em {
  font-style: italic;
  color: var(--blue-mid);
  position: relative;
}
.hero h1 em::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 6px;
  height: 10px;
  background: var(--yellow-soft);
  opacity: 0.55;
  z-index: -1;
}

.hero-ctas { display: flex; gap: 16px; margin-top: 38px; flex-wrap: wrap; }

.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 460px;
}

.scent-glow {
  position: absolute;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(124,79,196,0.4), rgba(124,79,196,0.12) 55%, transparent 72%);
  filter: blur(18px);
  z-index: 1;
  animation: glow-pulse 5.5s ease-in-out infinite;
}

.floating-product {
  position: relative;
  z-index: 3;
  width: 480px;
  animation: float 5.5s ease-in-out infinite;
  filter:
    drop-shadow(0 30px 22px rgba(23, 53, 107, 0.4))
    drop-shadow(0 14px 34px rgba(124, 79, 196, 0.35));
}
.floating-product img { border-radius: 10px; }

.product-shadow {
  position: absolute;
  bottom: 46px;
  width: 320px;
  height: 32px;
  background: radial-gradient(ellipse, rgba(23,53,107,0.42), transparent 70%);
  border-radius: 50%;
  z-index: 2;
  animation: shadow-pulse 5.5s ease-in-out infinite;
}

.scent-particles {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
}

.sparkle {
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: radial-gradient(circle, #ffffff 0%, #c9a8f0 45%, transparent 72%);
  box-shadow: 0 0 10px 3px rgba(155, 111, 209, 0.75);
  opacity: 0;
  animation: sparkle-float 4.2s ease-in-out infinite;
}

.streak {
  position: absolute;
  width: 2px;
  height: 46px;
  background: linear-gradient(to bottom, transparent, rgba(201,168,240,0.9), transparent);
  border-radius: 2px;
  opacity: 0;
  transform-origin: center;
  animation: streak-shimmer 4.6s ease-in-out infinite;
}

@keyframes glow-pulse {
  0%, 100% { transform: scale(1); opacity: 0.85; }
  50%      { transform: scale(1.1); opacity: 0.55; }
}

@keyframes sparkle-float {
  0%   { transform: translateY(6px) scale(0.3); opacity: 0; }
  20%  { opacity: 1; }
  55%  { transform: translateY(-38px) scale(1); opacity: 0.9; }
  85%  { opacity: 0; }
  100% { transform: translateY(-64px) scale(0.3); opacity: 0; }
}

@keyframes streak-shimmer {
  0%, 100% { opacity: 0; transform: translateY(8px) rotate(12deg) scaleY(0.6); }
  50%      { opacity: 0.8; transform: translateY(-14px) rotate(12deg) scaleY(1); }
}

@keyframes float {
  0%   { transform: translateY(0px) rotate(-2deg); }
  50%  { transform: translateY(-24px) rotate(2deg); }
  100% { transform: translateY(0px) rotate(-2deg); }
}
@keyframes shadow-pulse {
  0%   { transform: scale(1);   opacity: 0.55; }
  50%  { transform: scale(0.78); opacity: 0.3; }
  100% { transform: scale(1);   opacity: 0.55; }
}

.hero-petal {
  position: absolute;
  z-index: 1;
  opacity: 0.85;
}

@media (prefers-reduced-motion: reduce) {
  .floating-product, .product-shadow, .sparkle, .streak, .scent-glow { animation: none; opacity: 0; }
}

/* ---------- Section shell ---------- */
section { padding: 108px 0; position: relative; }
.section-head { max-width: 640px; margin: 0 auto 60px; text-align: center; }
.section-head.left { margin: 0 0 56px; text-align: left; }
.section-head h2 { font-size: clamp(1.9rem, 3vw, 2.6rem); margin-top: 14px; }
.section-head p { margin-top: 16px; color: var(--ink-soft); font-size: 1.03rem; line-height: 1.7; }
.center { text-align: center; margin-left: auto; margin-right: auto; }

/* ---------- Fragrance families ---------- */
.families {
  background-image: var(--tile-navy);
  background-size: 130px 130px;
  color: var(--white);
  position: relative;
}
.families::before {
  content: '';
  position: absolute; inset: 0;
  background: rgba(23, 53, 107, 0.88);
}
.families .wrap { position: relative; z-index: 2; }
.families .eyebrow { color: var(--yellow-soft); }
.families h2 { color: var(--white); }
.families .lede { color: rgba(255,255,255,0.78); }

.family-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 50px;
}
.family-card {
  position: relative;
  display: flex;
  align-items: stretch;
  height: 240px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: var(--radius);
  overflow: hidden;
  backdrop-filter: blur(4px);
  transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
  cursor: default;
}
.family-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 46px rgba(0,0,0,0.28);
  border-color: rgba(247, 210, 76, 0.5);
}

.family-card .family-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.16;
  filter: saturate(0.9);
  transition: opacity .5s ease;
  z-index: 0;
}
.family-card:hover .family-bg { opacity: 0; }

.family-card .family-visual {
  position: relative;
  width: 0%;
  flex-shrink: 0;
  overflow: hidden;
  transition: width .5s cubic-bezier(.4,0,.2,1);
  z-index: 1;
}
.family-card .family-visual img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.family-card:hover .family-visual { width: 44%; }

.family-card .family-text {
  position: relative;
  z-index: 1;
  flex: 1;
  min-width: 0;
  padding: 28px 26px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  transition: padding .5s ease;
}
.family-card:hover .family-text { padding: 24px 20px; }

.family-card .num {
  font-family: var(--serif);
  color: var(--yellow-soft);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
}
.family-card h3 { color: var(--white); font-size: 1.15rem; margin: 10px 0 10px; }
.family-card p { color: rgba(255,255,255,0.72); font-size: 0.92rem; line-height: 1.6; }

/* ---------- Story ---------- */
.story .wrap {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 70px;
  align-items: center;
}
.story-media { position: relative; }
.story-media img {
  border-radius: var(--radius);
  box-shadow: 0 30px 60px rgba(23,53,107,0.18);
}
.story-media .frame {
  position: absolute;
  inset: -18px;
  border: 2px solid var(--yellow);
  border-radius: calc(var(--radius) + 10px);
  z-index: -1;
}
.story-stats {
  display: flex;
  gap: 40px;
  margin-top: 36px;
}
.story-stats div strong {
  display: block;
  font-family: var(--serif);
  font-size: 2rem;
  color: var(--blue-deep);
}
.story-stats div span { font-size: 0.85rem; color: var(--ink-soft); }

/* ---------- Products ---------- */
.products { background: var(--white); }
.tabs {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}
.tab {
  padding: 11px 24px;
  border-radius: 999px;
  border: 1.5px solid var(--blue-soft);
  color: var(--blue-mid);
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  background: var(--white);
  transition: all .25s ease;
}
.tab.active, .tab:hover { background: var(--blue-deep); border-color: var(--blue-deep); color: var(--white); }

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 210px;
  grid-auto-flow: dense;
  gap: 20px;
}
.product-card {
  display: none;
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 14px 30px rgba(23,53,107,0.1);
  transition: transform .35s ease, box-shadow .35s ease;
}
.product-card.show { display: block; }
.product-card.feature { grid-column: span 2; grid-row: span 2; }
.product-card.tall { grid-row: span 2; }
.product-card:hover { transform: translateY(-6px); box-shadow: 0 26px 48px rgba(23,53,107,0.2); }
.product-card img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .6s ease;
}
.product-card:hover img { transform: scale(1.07); }
.card-overlay {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 26px 22px 20px;
  background: linear-gradient(to top, rgba(15,31,63,0.92) 0%, rgba(15,31,63,0.55) 45%, transparent 100%);
  color: var(--white);
}
.card-overlay .tag {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--yellow-soft);
  font-weight: 600;
}
.card-overlay h3 {
  color: var(--white);
  font-size: 1.12rem;
  margin-top: 6px;
  font-weight: 600;
}
.product-card.feature .card-overlay h3 { font-size: 1.4rem; }
.card-overlay p {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.8);
  margin-top: 6px;
  line-height: 1.5;
}

.provisional-note {
  text-align: center;
  margin-top: 40px;
  font-size: 0.8rem;
  color: var(--ink-soft);
  opacity: 0.75;
}

/* ---------- Footer ---------- */
footer {
  background: var(--blue-deep);
  color: rgba(255,255,255,0.75);
  padding: 80px 0 30px;
  position: relative;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 50px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.footer-brand img { height: 46px; width: 46px; border-radius: 50%; }
.footer-brand span { font-family: var(--serif); color: var(--white); font-size: 1.05rem; }
footer h4 { color: var(--white); font-size: 0.85rem; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 18px; }
footer ul { list-style: none; display: flex; flex-direction: column; gap: 11px; }
footer ul a { font-size: 0.9rem; opacity: 0.85; }
footer ul a:hover { color: var(--yellow-soft); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 26px;
  font-size: 0.8rem;
  flex-wrap: wrap;
  gap: 12px;
}
.social-row { display: flex; gap: 12px; }
.social-row a {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.25);
  display: flex; align-items: center; justify-content: center;
  transition: background .25s ease;
}
.social-row a:hover { background: var(--yellow); color: var(--blue-deep); }

/* ---------- Whatsapp float button ---------- */
.wa-float {
  position: fixed;
  bottom: 26px; right: 26px;
  z-index: 200;
  width: 58px; height: 58px;
  border-radius: 50%;
  background: #25D366;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 12px 28px rgba(37, 211, 102, 0.45);
  transition: transform .25s ease;
}
.wa-float:hover { transform: scale(1.08); }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .lede { margin: 0 auto; }
  .hero-ctas { justify-content: center; }
  .hero-badges { justify-content: center; }
  .hero-visual { margin-top: 40px; min-height: 380px; }
  .scent-glow { width: 320px; height: 320px; }
  .floating-product { width: 380px; }
  .product-shadow { width: 260px; }
  .family-grid { grid-template-columns: repeat(2, 1fr); }
  .story .wrap { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 260px; }
  .product-card.feature { grid-column: span 2; grid-row: span 2; }
  .product-card.tall { grid-row: span 1; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .burger { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    top: 84px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: center;
    gap: 22px;
    padding: 26px 28px;
    background: var(--cream);
    border-bottom: 1px solid rgba(23, 53, 107, 0.08);
    box-shadow: 0 16px 30px rgba(23,53,107,0.1);
  }
  .nav-links.open { display: flex; }
  .family-grid { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: 1fr; grid-auto-rows: 300px; }
  .product-card.feature, .product-card.tall { grid-column: span 1; grid-row: span 1; }
  .hero { padding: 150px 0 80px; }
  .hero-visual { min-height: 260px; }
  .scent-glow { width: 210px; height: 210px; }
  .floating-product { width: 240px; }
  .product-shadow { width: 160px; bottom: 38px; }
  .footer-grid { grid-template-columns: 1fr; text-align: center; gap: 36px; }
  .footer-brand { justify-content: center; }
  .footer-grid p { margin-left: auto; margin-right: auto; }
  footer ul { align-items: center; }
  .footer-bottom { justify-content: center; text-align: center; }
  .social-row { justify-content: center; }
}
