/* Refinada Beauty — Site institucional (responsivo) */
@import url('design-system/colors_and_type.css');

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--bg-1); overflow-x: hidden; }
img { max-width: 100%; display: block; }
button { font: inherit; }

:root {
  --container: 1240px;
  --gutter: 64px;
  --page-pad: clamp(20px, 5vw, 64px);
  --section-pad: clamp(64px, 9vw, 120px);
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 48px; padding: 0 28px;
  border-radius: 999px;
  font-family: var(--font-sans); font-size: 12px; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase;
  border: 0; cursor: pointer; user-select: none;
  transition: all 280ms var(--ease-refined);
  text-decoration: none;
}
.btn--primary { background: var(--rb-rose); color: var(--rb-creme); }
.btn--primary:hover { background: var(--rb-rose-deep); box-shadow: 0 12px 32px rgba(201,138,125,0.30); }
.btn--secondary { background: transparent; color: var(--rb-espresso); border: 1px solid var(--rb-espresso); }
.btn--secondary:hover { background: var(--rb-espresso); color: var(--rb-creme); }
.btn--ghost { background: transparent; color: var(--rb-rose); padding: 4px 0; height: auto; border-radius: 0; border-bottom: 1px solid var(--rb-rose); }
.btn--ghost:hover { color: var(--rb-rose-deep); border-color: var(--rb-rose-deep); }
.btn--whatsapp { background: #25D366; color: #fff; }
.btn--whatsapp:hover { background: #1FB559; box-shadow: 0 12px 30px rgba(37,211,102,0.30); }
.btn--lg { height: 56px; padding: 0 36px; font-size: 13px; }
.btn--block { width: 100%; }
.btn:disabled { opacity: 0.4; cursor: not-allowed; pointer-events: none; }

/* ===== Eyebrow / kicker ===== */
.kicker {
  font-family: var(--font-sans); font-size: 18px; font-weight: 500;
  letter-spacing: 0.32em; text-transform: uppercase; color: var(--rb-rose);
  display: inline-flex; align-items: center; gap: 10px;
}

/* ===== Section + container ===== */
.section { padding: var(--section-pad) var(--page-pad); }
.container { max-width: var(--container); margin: 0 auto; }

/* ===== Card ===== */
.card {
  background: var(--rb-creme);
  border: 1px solid var(--rb-champagne);
  border-radius: 14px;
  padding: 28px;
  transition: box-shadow 280ms var(--ease-refined), transform 280ms var(--ease-refined);
}
.card:hover { box-shadow: var(--shadow-2); }

/* ===== Sparkle ===== */
.sparkle { display: inline-block; vertical-align: middle; color: var(--rb-rose); }

/* ===== Inputs ===== */
.input, .textarea, .select {
  width: 100%;
  background: var(--rb-creme);
  border: 1px solid var(--rb-champagne);
  border-radius: 8px;
  font-family: var(--font-sans); font-size: 15px; color: var(--fg-1);
  padding: 0 16px; height: 48px;
  outline: none;
  transition: border-color 200ms var(--ease-refined), box-shadow 200ms var(--ease-refined);
}
.textarea { padding: 14px 16px; height: auto; resize: vertical; min-height: 110px; line-height: 1.6; }
.input:focus, .textarea:focus, .select:focus {
  border-color: var(--rb-rose);
  box-shadow: 0 0 0 3px rgba(201,138,125,0.18);
}
.field-label {
  font-family: var(--font-sans); font-size: 10px; font-weight: 500;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--fg-3);
  margin-bottom: 6px; display: block;
}

/* ===== Float WhatsApp ===== */
.wa-fab {
  position: fixed; bottom: 24px; right: 24px;
  width: 58px; height: 58px; border-radius: 999px;
  background: #25D366; color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 14px 36px rgba(37,211,102,0.40);
  cursor: pointer; border: 0;
  z-index: 100;
  transition: transform 280ms var(--ease-refined);
}
.wa-fab:hover { transform: scale(1.06); }
.wa-fab svg { width: 28px; height: 28px; fill: #fff; }

/* ===== Display helpers (responsive) ===== */
@media (max-width: 860px) {
  .hide-mobile { display: none !important; }
}
@media (min-width: 861px) {
  .hide-desktop { display: none !important; }
}

/* ===== Animations ===== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
.reveal { animation: fadeUp 720ms var(--ease-refined) both; }

/* ===== Smooth scroll ===== */
html { scroll-behavior: smooth; }

/* ===== Selection ===== */
::selection { background: var(--rb-rose); color: var(--rb-creme); }

/* Hide scrollbar on horizontal scroll rows */
.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { scrollbar-width: none; }

/* ===== Responsive grid utilities ===== */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.split  { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.split--reverse { grid-template-columns: 1fr 1.1fr; }

/* Allow grid children to shrink below their intrinsic min-content width
   — without this, long unbreakable runs (numbers, monospace, letter-spaced
   labels) force the entire grid wider than the viewport. */
.grid-2 > *, .grid-3 > *, .grid-4 > *, .split > * { min-width: 0; }

@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr) !important; }
}
@media (max-width: 860px) {
  .grid-2, .grid-3, .split, .split--reverse { grid-template-columns: 1fr !important; }
}
@media (max-width: 640px) {
  .grid-4 { grid-template-columns: 1fr !important; }
}

/* ===== Services compact grid ===== */
.services-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 8px;
}
@media (max-width: 860px) {
  .services-grid { grid-template-columns: 1fr; }
}

/* ===== Gallery grid ===== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 1024px) { .gallery-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px)  { .gallery-grid { grid-template-columns: 1fr; } }

/* ===== Footer grid ===== */
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.4fr;
  gap: 40px;
}
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr !important; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr !important; } }

/* ===== Footer mobile alignment ===== */
@media (max-width: 860px) {
  .footer-brand { align-items: center; text-align: center; }
  .footer-brand p { max-width: none; }
  .footer-brand .footer-socials { justify-content: center; }
  .footer-brand .footer-logo { align-self: center !important; }
}

/* ===== Section heading block ===== */
.section-head { text-align: center; max-width: 760px; margin: 0 auto var(--s-7); display: flex; flex-direction: column; gap: 14px; align-items: center; }
.section-head h2 {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(32px, 4.5vw, 56px);
  line-height: 1.05; letter-spacing: -0.01em; color: var(--fg-1); margin: 0;
}
.section-head p {
  font-family: var(--font-sans); font-size: clamp(15px, 1.4vw, 17px);
  line-height: 1.7; color: var(--fg-2); margin: 0; max-width: 580px;
  text-wrap: pretty;
}

/* ===== Reduce hero padding on small screens ===== */
@media (max-width: 640px) {
  :root { --section-pad: 56px; --page-pad: 20px; }
  .wa-fab { bottom: 18px; right: 18px; width: 52px; height: 52px; }
}
