/* ============================================================
   Caroline Bandeca — Landing Page
   Mobile-first · WCAG 2.1 AA · sem dependências
   ============================================================ */

/* ---- Fontes (self-hosted) -------------------------------------------
   Arquivos variaveis servidos pelo proprio dominio: nenhum dado do
   visitante vai para o Google. Subset latin, cobre o portugues.
   -------------------------------------------------------------------- */
@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url("assets/fonts/cormorant-garamond-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url("assets/fonts/inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---- Reset enxuto --------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 5rem; }
body, h1, h2, h3, p, ul, figure, form { margin: 0; }
ul { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; height: auto; }
button { font: inherit; cursor: pointer; background: none; border: 0; color: inherit; }
input, textarea, button { font-family: inherit; }
a { color: inherit; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ---- Tokens de design ---------------------------------------------- */
:root {
  --bg-primary:    #F5F1EA;
  --bg-secondary:  #EDE6D8;
  --bg-deep:       #D8CBB0;
  --text-primary:  #1F1F1F;
  --text-muted:    #5A5248;
  --accent-gold:   #B08D57;
  --accent-gold-dark: #8C6E40;
  --line:          #CFC5B2;

  --font-serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-sans:  "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --space-3xs: 0.25rem;
  --space-2xs: 0.5rem;
  --space-xs:  0.75rem;
  --space-sm:  1rem;
  --space-md:  1.5rem;
  --space-lg:  2.5rem;
  --space-xl:  clamp(3rem, 6vw, 5rem);
  --space-2xl: clamp(3rem, 7vw, 5.5rem);

  --radius-sm: 2px;
  --radius-md: 4px;
  --container-max: 72rem;
  --header-height: 5.25rem;

  --transition: 200ms ease;
}

/* ---- Base ---------------------------------------------------------- */
body {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text-primary);
  background-color: var(--bg-deep);
  background-image: url("assets/bg-pattern.svg");
  background-repeat: repeat;
  background-size: clamp(320px, 32vw, 520px);
  background-attachment: fixed;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  padding-top: var(--header-height);
  overflow-x: hidden;
}

h1, h2, h3 {
  font-family: var(--font-serif);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.005em;
  color: var(--text-primary);
}

p { color: var(--text-muted); max-width: 65ch; }

.eyebrow {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-gold-dark);
  margin-bottom: var(--space-sm);
}

.divider {
  width: 3rem;
  border: 0;
  border-top: 1px solid var(--accent-gold);
  margin: var(--space-md) 0;
}

/* ---- Foco acessível ------------------------------------------------ */
:focus { outline: none; }
:focus-visible {
  outline: 2px solid var(--accent-gold-dark);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

.skip-link {
  position: absolute;
  left: 0;
  top: -100px;
  background: var(--text-primary);
  color: var(--bg-primary);
  padding: 0.75rem 1.25rem;
  z-index: 1000;
  text-decoration: none;
  font-weight: 500;
}
.skip-link:focus-visible { top: 0.5rem; left: 0.5rem; }

/* ---- Container ----------------------------------------------------- */
.container {
  width: min(var(--container-max), 100% - 2rem);
  margin-inline: auto;
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
}

@media (min-width: 48em) {
  .container { width: min(var(--container-max), 100% - 4rem); }
}

/* ---- Botões -------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.75rem 1.75rem;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  transition: background-color var(--transition), color var(--transition), border-color var(--transition), transform var(--transition);
  white-space: nowrap;
}

.btn--primary {
  background: var(--text-primary);
  color: var(--bg-primary);
  border-color: var(--text-primary);
}
.btn--ghost {
  background: transparent;
  color: var(--text-primary);
  border-color: var(--line);
}

@media (hover: hover) {
  .btn--primary:hover { background: var(--accent-gold-dark); border-color: var(--accent-gold-dark); }
  .btn--ghost:hover   { background: var(--text-primary); color: var(--bg-primary); border-color: var(--text-primary); }
}
.btn:active { transform: translateY(1px); }

/* ---- Header -------------------------------------------------------- */
.site-header {
  position: fixed;
  inset-block-start: 0;
  inset-inline: 0;
  height: var(--header-height);
  background: rgba(245, 241, 234, 0.92);
  backdrop-filter: saturate(1.1) blur(8px);
  -webkit-backdrop-filter: saturate(1.1) blur(8px);
  border-bottom: 1px solid var(--line);
  z-index: 100;
  padding-top: env(safe-area-inset-top);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: var(--space-md);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--text-primary);
  min-height: 44px;
}
.logo__mark {
  width: 3.25rem;
  height: 3.25rem;
  flex-shrink: 0;
  object-fit: contain;
  mix-blend-mode: multiply;
}
.logo__text {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  white-space: nowrap;
  line-height: 1;
}

@media (max-width: 23.99em) {
  .logo__text { display: none; }
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}
.primary-nav__list {
  display: flex;
  gap: var(--space-lg);
}
.primary-nav a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.95rem;
  padding: 0.5rem 0;
  position: relative;
  transition: color var(--transition);
}
.primary-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: var(--accent-gold);
  transition: width var(--transition);
}
@media (hover: hover) {
  .primary-nav a:hover { color: var(--text-primary); }
  .primary-nav a:hover::after { width: 100%; }
}
/* Menu hamburguer */
.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  border-radius: var(--radius-sm);
}
.menu-toggle__bar {
  width: 22px;
  height: 1.5px;
  background: var(--text-primary);
  transition: transform var(--transition), opacity var(--transition);
}
.menu-toggle[aria-expanded="true"] .menu-toggle__bar:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__bar:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] .menu-toggle__bar:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

@media (max-width: 47.99em) {
  .menu-toggle { display: inline-flex; }
  .primary-nav {
    position: fixed;
    inset-inline: 0;
    top: var(--header-height);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--bg-primary);
    border-bottom: 1px solid var(--line);
    padding: var(--space-md) 1rem calc(var(--space-md) + env(safe-area-inset-bottom));
    max-height: calc(100vh - var(--header-height));
    overflow-y: auto;
    transform: translateY(-110%);
    transition: transform var(--transition);
    visibility: hidden;
  }
  .primary-nav.is-open { transform: translateY(0); visibility: visible; }
  .primary-nav__list {
    flex-direction: column;
    gap: 0;
    border-bottom: 1px solid var(--line);
    padding-bottom: var(--space-sm);
    margin-bottom: var(--space-sm);
  }
  .primary-nav__list li { border-bottom: 1px solid var(--line); }
  .primary-nav__list li:last-child { border-bottom: 0; }
  .primary-nav a {
    display: block;
    padding: 0.9rem 0.25rem;
    font-size: 1rem;
  }
}

/* ---- Seções -------------------------------------------------------- */
.section {
  padding-block: var(--space-2xl);
  position: relative;
  background-color: rgba(245, 241, 234, 0.82);
}
.section--alt {
  background-color: rgba(237, 230, 216, 0.82);
  border-block: 1px solid var(--line);
}
.section__heading {
  text-align: center;
  margin-bottom: var(--space-xl);
}
.section__heading .eyebrow { margin-bottom: var(--space-2xs); }
.section__heading p { margin-inline: auto; }
.section__title {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 500;
}
.section__subtitle {
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  margin-block: var(--space-lg) var(--space-sm);
  font-weight: 500;
}

/* ---- Hero ---------------------------------------------------------- */
.hero { padding-block: var(--space-2xl); }
.hero__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
  align-items: center;
}
.hero__content { order: 1; }
.hero__visual  { order: 2; justify-self: center; max-width: 22rem; width: 100%; }
.hero__visual > * { filter: drop-shadow(0 8px 24px rgba(31, 31, 31, 0.08)); }
.hero__photo {
  display: block;
  padding: 0.5rem;
  border-radius: 50%;
  background: var(--bg-primary);
  box-shadow: inset 0 0 0 1px var(--accent-gold);
}
.hero__photo img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 50%;
}

.hero__title {
  font-size: clamp(2.5rem, 8vw, 4.75rem);
  font-weight: 500;
  letter-spacing: -0.01em;
}
.hero__subtitle {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  color: var(--text-muted);
  margin-top: var(--space-2xs);
}
.hero__tagline {
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  max-width: 40ch;
  margin-bottom: var(--space-lg);
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

@media (min-width: 48em) {
  .hero__inner {
    grid-template-columns: 1.1fr 0.9fr;
  }
  .hero__visual { order: 2; max-width: 26rem; }
}

/* Landscape mobile: header mais compacto */
@media (orientation: landscape) and (max-height: 500px) {
  .hero { padding-block: var(--space-xl); }
}

/* ---- Sobre --------------------------------------------------------- */
.sobre {
  display: grid;
  gap: var(--space-lg);
}
.sobre__intro .section__title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  max-width: 14ch;
}
.sobre__body p {
  font-size: 1.05rem;
  line-height: 1.75;
}
.sobre__photo {
  width: 100%;
  max-width: 18rem;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius-md);
  margin-top: var(--space-md);
}

@media (min-width: 56em) {
  .sobre {
    grid-template-columns: 1fr 2fr;
    gap: var(--space-xl);
  }
  .sobre__intro { position: sticky; top: calc(var(--header-height) + 2rem); align-self: start; }
}

/* ---- Cards (Especialidades) --------------------------------------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
  gap: var(--space-md);
}
.card {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  padding: var(--space-lg) var(--space-md);
  background: var(--bg-primary);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}
@media (hover: hover) {
  .card:hover {
    transform: translateY(-2px);
    border-color: var(--accent-gold);
    box-shadow: 0 8px 24px rgba(31, 31, 31, 0.06);
  }
}
.card__icon {
  width: 2.5rem;
  height: 2.5rem;
  color: var(--accent-gold-dark);
  margin-bottom: var(--space-xs);
}
.card__title {
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--text-primary);
}
.card__text {
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
}

/* ---- Contato ------------------------------------------------------- */
.contato__heading {
  text-align: center;
  margin-bottom: var(--space-xl);
}
.contato__heading p { margin-inline: auto; }
.contato__lead {
  font-size: 1.05rem;
  margin-top: var(--space-sm);
}

.contato__list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
  gap: var(--space-md);
  max-width: 48rem;
  margin-inline: auto;
}
.contato__list a {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 0.5rem;
  padding: var(--space-lg);
  background: var(--bg-primary);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  text-decoration: none;
  color: var(--text-primary);
  min-height: 44px;
  transition: border-color var(--transition), background-color var(--transition), transform var(--transition);
  word-break: break-word;
}
.contato__list svg {
  width: 2rem;
  height: 2rem;
  color: var(--accent-gold-dark);
  flex-shrink: 0;
  margin-bottom: var(--space-2xs);
}
.contato__label {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-gold-dark);
}
.contato__value {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--text-primary);
  word-break: break-word;
  line-height: 1.3;
}
@media (hover: hover) {
  .contato__list a:hover {
    border-color: var(--accent-gold);
    background: var(--bg-primary);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(31, 31, 31, 0.06);
  }
}

.contato__local {
  display: grid;
  gap: var(--space-lg);
  margin-top: var(--space-xl);
  max-width: 64rem;
  margin-inline: auto;
  align-items: stretch;
}

@media (min-width: 48rem) {
  .contato__local {
    grid-template-columns: 1fr 1.4fr;
    gap: var(--space-xl);
  }
}

.contato__address {
  font-style: normal;
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.contato__address-line {
  color: var(--text-primary);
  margin: 0;
}

.contato__hours {
  color: var(--text-muted);
  margin-top: var(--space-sm);
}

.contato__directions {
  align-self: flex-start;
  margin-top: var(--space-md);
}

.contato__map {
  position: relative;
  /* largura definida pela coluna: sem isto, o align-items:stretch estica a altura
     e o aspect-ratio passa a derivar a largura dela, estourando o grid */
  width: 100%;
  aspect-ratio: 16 / 10;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg-secondary);
}

.contato__map iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* ---- Footer -------------------------------------------------------- */
.site-footer {
  background: var(--text-primary);
  color: var(--bg-primary);
  padding: var(--space-xl) 0 calc(var(--space-lg) + env(safe-area-inset-bottom));
}
.site-footer p { color: inherit; }

.footer__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
  text-align: center;
  justify-items: center;
}
.footer__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.75rem;
  height: 3.75rem;
  background: var(--bg-primary);
  border-radius: 50%;
  padding: 0.4rem;
  margin-bottom: var(--space-sm);
}
.footer__mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  mix-blend-mode: multiply;
}
.footer__name {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 500;
}
.footer__oab {
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  color: #CFC5B2;
  margin-top: var(--space-3xs);
}

.footer__social {
  display: flex;
  gap: var(--space-md);
}
.footer__social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(245, 241, 234, 0.3);
  color: var(--bg-primary);
  transition: background-color var(--transition), border-color var(--transition);
}
@media (hover: hover) {
  .footer__social a:hover { background: var(--accent-gold-dark); border-color: var(--accent-gold-dark); }
}

.footer__meta {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  font-size: 0.85rem;
  color: #CFC5B2;
}
.footer__meta a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
@media (hover: hover) {
  .footer__meta a:hover { color: var(--accent-gold); }
}

@media (min-width: 48em) {
  .footer__inner {
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    text-align: left;
    justify-items: stretch;
  }
  .footer__social { justify-self: center; }
  .footer__meta { justify-self: end; text-align: right; }
  .footer__mark { margin: 0 0 var(--space-2xs); }
}

/* ---- Botão flutuante WhatsApp ------------------------------------- */
.whatsapp-float {
  position: fixed;
  right: calc(1rem + env(safe-area-inset-right));
  bottom: calc(1rem + env(safe-area-inset-bottom));
  z-index: 200;
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.85rem 1.1rem;
  background: #25D366;
  color: #ffffff;
  text-decoration: none;
  border-radius: 999px;
  box-shadow: 0 10px 24px rgba(37, 211, 102, 0.35), 0 2px 6px rgba(0, 0, 0, 0.1);
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  transition: transform var(--transition), box-shadow var(--transition), background-color var(--transition);
  min-height: 48px;
}
.whatsapp-float svg {
  width: 1.6rem;
  height: 1.6rem;
  flex-shrink: 0;
}
.whatsapp-float__label { white-space: nowrap; }

@media (hover: hover) {
  .whatsapp-float:hover {
    background: #1fb855;
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(37, 211, 102, 0.45), 0 4px 10px rgba(0, 0, 0, 0.12);
  }
}
.whatsapp-float:active { transform: translateY(0); }
.whatsapp-float:focus-visible {
  outline: 3px solid var(--accent-gold-dark);
  outline-offset: 3px;
}

/* Em telas pequenas: só ícone, em pill circular */
@media (max-width: 29.99em) {
  .whatsapp-float {
    padding: 0;
    width: 56px;
    height: 56px;
    justify-content: center;
  }
  .whatsapp-float__label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
  .whatsapp-float svg { width: 1.9rem; height: 1.9rem; }
}
