/*
 * Art direction: recepção de marca premium — flores bio-preservadas autorais
 * Palette: creme + verde musgo + sage + terracota (cores Florizzis)
 * Typography: Cormorant Garamond (display) + Jost (body)
 * Density: spacious — editorial, respiro generoso
 */

/* ─── TOKENS ─────────────────────────────────────────────────────────────── */
:root {
  /* Brand palette — Florizzis */
  --color-bg:           #f9f2e8;
  --color-surface:      #ffffff;
  --color-surface-off:  #f3ede3;
  --color-divider:      #e4ddd4;
  --color-border:       #d9d9d9;

  --color-text:         #2a2520;
  --color-text-muted:   #6b6158;
  --color-text-faint:   #a89f97;
  --color-text-inverse: #f9f2e8;

  --color-dark:         #3d514c;   /* verde escuro — cor âncora da marca */
  --color-sage:         #cddfdf;   /* sage claro */
  --color-moss:         #6e7d65;   /* verde musgo */
  --color-terracota:    #bc8779;   /* terracota */
  --color-mist:         #aec4c0;   /* azul-sage */
  --color-sand:         #cab9a9;   /* areia */

  /* Accent principal — dark green da marca */
  --color-accent:       #3d514c;
  --color-accent-hover: #2c3d39;

  /* Type */
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'Jost', 'Helvetica Neue', sans-serif;

  /* Type scale */
  --text-xs:   clamp(0.75rem,  0.7rem  + 0.25vw, 0.875rem);
  --text-sm:   clamp(0.875rem, 0.8rem  + 0.35vw, 1rem);
  --text-base: clamp(1rem,     0.95rem + 0.25vw, 1.125rem);
  --text-lg:   clamp(1.125rem, 1rem    + 0.75vw, 1.5rem);
  --text-xl:   clamp(1.5rem,   1.2rem  + 1.25vw, 2.25rem);
  --text-2xl:  clamp(2rem,     1.2rem  + 2.5vw,  3.5rem);
  --text-3xl:  clamp(2.5rem,   1rem    + 4vw,    5rem);
  --text-hero: clamp(3rem,     0.5rem  + 7vw,    8rem);

  /* Spacing */
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-5:  1.25rem;
  --space-6:  1.5rem;
  --space-8:  2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;

  /* Radius */
  --radius-sm: 0.25rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;

  /* Transitions */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --transition: 200ms var(--ease-out);

  /* Content widths */
  --content-narrow:  640px;
  --content-default: 1080px;
  --content-wide:    1320px;

  /* Shadows */
  --shadow-sm: 0 1px 3px oklch(0.15 0.02 160 / 0.06);
  --shadow-md: 0 6px 24px oklch(0.15 0.02 160 / 0.10);
  --shadow-lg: 0 16px 48px oklch(0.15 0.02 160 / 0.14);
}

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

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
  scroll-padding-top: var(--space-16);
}

body {
  min-height: 100dvh;
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 300;
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: 1.65;
}

img, picture, video, canvas, svg { display: block; max-width: 100%; height: auto; }
ul, ol { list-style: none; }
input, button, textarea, select { font: inherit; color: inherit; }
h1, h2, h3, h4, h5, h6 { text-wrap: balance; line-height: 1.1; }
p { text-wrap: pretty; max-width: 72ch; }

button { cursor: pointer; background: none; border: none; }

a, button, [role="button"] {
  transition: color var(--transition),
              background var(--transition),
              border-color var(--transition),
              opacity var(--transition),
              box-shadow var(--transition);
}

::selection {
  background: oklch(from var(--color-accent) l c h / 0.15);
  color: var(--color-text);
}

:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

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

/* ─── SKIP LINK ──────────────────────────────────────────────────────────── */
.skip-link {
  position: absolute;
  left: var(--space-4);
  top: var(--space-4);
  z-index: 9999;
  background: var(--color-accent);
  color: var(--color-text-inverse);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  text-decoration: none;
  transform: translateY(-200%);
  transition: transform var(--transition);
}
.skip-link:focus { transform: translateY(0); }

/* ─── HEADER ─────────────────────────────────────────────────────────────── */
.site-header {
  position: fixed;
  top: 0;
  inset-inline: 0;
  z-index: 100;
  background: oklch(from var(--color-bg) l c h / 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid oklch(from var(--color-text) l c h / 0.06);
  transition: background var(--transition), box-shadow var(--transition);
}

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

.header-inner {
  max-width: var(--content-wide);
  margin-inline: auto;
  padding: var(--space-4) var(--space-8);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo */
.logo {
  display: inline-flex;
  align-items: center;
  color: var(--color-accent);
  text-decoration: none;
}
.logo-svg {
  width: 160px;
  height: 32px;
  color: var(--color-accent);
}
.logo:hover { opacity: 0.75; }

/* Header nav */
.header-nav {
  display: flex;
  gap: var(--space-8);
  align-items: center;
}
.header-nav a {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  text-decoration: none;
}
.header-nav a:hover { color: var(--color-accent); }

/* ─── HERO ───────────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding: var(--space-24) var(--space-8) var(--space-16);
}

/* Gradient background using brand palette */
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 70% at 20% 30%, oklch(from var(--color-sage) l c h / 0.45) 0%, transparent 60%),
    radial-gradient(ellipse 60% 60% at 80% 70%, oklch(from var(--color-terracota) l c h / 0.18) 0%, transparent 55%),
    radial-gradient(ellipse 50% 50% at 50% 100%, oklch(from var(--color-moss) l c h / 0.12) 0%, transparent 50%),
    var(--color-bg);
}

/* Grain overlay */
.hero-grain {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.035'/%3E%3C/svg%3E");
  pointer-events: none;
  opacity: 0.6;
}

.hero-vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 40%, oklch(from var(--color-bg) l c h / 0.3) 100%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 760px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-6);
}

.hero-eyebrow {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

.hero-title {
  font-family: var(--font-display);
  font-size: var(--text-hero);
  font-weight: 300;
  color: var(--color-accent);
  letter-spacing: -0.02em;
  line-height: 1.05;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.9s var(--ease-out) 0.1s, transform 0.9s var(--ease-out) 0.1s;
}

.hero-title em {
  font-style: italic;
  font-weight: 300;
  color: var(--color-terracota);
}

.hero-sub {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 300;
  color: var(--color-text-muted);
  line-height: 1.75;
  max-width: 52ch;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.9s var(--ease-out) 0.2s, transform 0.9s var(--ease-out) 0.2s;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-accent);
  text-decoration: none;
  border-bottom: 1px solid oklch(from var(--color-accent) l c h / 0.35);
  padding-bottom: var(--space-1);
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.9s var(--ease-out) 0.35s, transform 0.9s var(--ease-out) 0.35s,
              border-color var(--transition), color var(--transition);
}
.hero-cta:hover {
  color: var(--color-terracota);
  border-color: var(--color-terracota);
}
.hero-cta svg { transition: transform var(--transition); }
.hero-cta:hover svg { transform: translateY(3px); }

/* Hero reveal — triggered by JS */
.hero-revealed .hero-eyebrow,
.hero-revealed .hero-title,
.hero-revealed .hero-sub,
.hero-revealed .hero-cta {
  opacity: 1;
  transform: translateY(0);
}

/* ─── CHOICE SECTION ─────────────────────────────────────────────────────── */
.choice-section {
  padding-block: var(--space-24) var(--space-24);
  padding-inline: var(--space-8);
  background: var(--color-bg);
}

.choice-intro {
  text-align: center;
  margin-bottom: var(--space-12);
}

.section-label {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-text-faint);
}

/* Grid — 2 colunas em desktop, 1 em mobile */
.choice-grid {
  max-width: var(--content-default);
  margin-inline: auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-6);
}

/* Cards */
.choice-card {
  position: relative;
  background: var(--color-surface);
  border: 1px solid oklch(from var(--color-text) l c h / 0.07);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.4s var(--ease-out), transform 0.4s var(--ease-out);
  opacity: 0;
  transform: translateY(24px);
}
.choice-card.revealed {
  opacity: 1;
  transform: translateY(0);
}

.choice-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-14px);
}

/* Card image */
.card-image-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
}
.card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease-out);
}
.choice-card:hover .card-image { transform: scale(1.04); }

.card-image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom,
    transparent 50%,
    oklch(from var(--color-text) l c h / 0.12) 100%
  );
}

/* Card body */
.card-body {
  padding: var(--space-8) var(--space-8) var(--space-10);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  flex: 1;
}

.card-tag {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-text-faint);
}

.card-title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 400;
  color: var(--color-accent);
  line-height: 1.15;
}

.card-desc {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 300;
  color: var(--color-text-muted);
  line-height: 1.75;
  flex: 1;
}

/* Card CTA */
.card-cta {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius-sm);
  align-self: flex-end;
  margin-top: var(--space-2);
  transition: background var(--transition), color var(--transition), box-shadow var(--transition);
}

.card-cta--atelie {
  background: var(--color-accent);
  color: var(--color-text-inverse);
}
.card-cta--atelie:hover {
  background: var(--color-accent-hover);
  box-shadow: 0 4px 16px oklch(from var(--color-accent) l c h / 0.25);
}

.card-cta--loja {
  background: transparent;
  color: var(--color-accent);
  border: 1px solid oklch(from var(--color-accent) l c h / 0.45);
}
.card-cta--loja:hover {
  background: var(--color-accent);
  color: var(--color-text-inverse);
}

.card-cta svg { transition: transform var(--transition); }
.card-cta:hover svg { transform: translateX(3px); }

/* Diferenciação visual sutil entre cards */
.choice-card--atelie .card-tag { color: var(--color-terracota); }
.choice-card--loja  .card-tag { color: var(--color-moss); }

/* ─── BRAND SECTION ──────────────────────────────────────────────────────── */
.brand-section {
  padding-block: var(--space-24);
  padding-inline: var(--space-8);
  background: var(--color-dark);
}

.brand-inner {
  max-width: var(--content-narrow);
  margin-inline: auto;
  text-align: center;
}

.brand-quote {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 300;
  font-style: italic;
  color: var(--color-sage);
  line-height: 1.3;
  letter-spacing: 0.01em;
}

.brand-quote footer {
  margin-top: var(--space-6);
}

.brand-quote cite {
  font-family: var(--font-body);
  font-style: normal;
  font-size: var(--text-xs);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: oklch(from var(--color-sage) l c h / 0.55);
}

/* ─── FOOTER ─────────────────────────────────────────────────────────────── */
.site-footer {
  padding-block: var(--space-10);
  padding-inline: var(--space-8);
  border-top: 1px solid oklch(from var(--color-text) l c h / 0.07);
  background: var(--color-bg);
}

.footer-inner {
  max-width: var(--content-wide);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-4);
}

.footer-brand {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 400;
  letter-spacing: 0.1em;
  color: var(--color-accent);
}

.footer-nav {
  display: flex;
  gap: var(--space-6);
}
.footer-nav a {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  text-decoration: none;
}
.footer-nav a:hover { color: var(--color-accent); }

.footer-copy {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  max-width: none;
  letter-spacing: 0.04em;
}

/* ─── RESPONSIVE ─────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .header-inner {
    padding: var(--space-3) var(--space-4);
  }
  .header-nav { gap: var(--space-5); }
  .logo-svg { width: 130px; height: 26px; }

  .hero {
    padding: var(--space-20) var(--space-4) var(--space-12);
    min-height: 100dvh;
  }
  .br-desk { display: none; }

  .choice-section {
    padding-block: var(--space-16) var(--space-16);
    padding-inline: var(--space-4);
  }
  .choice-grid {
    grid-template-columns: 1fr;
    gap: var(--space-5);
  }
  .choice-card:hover { transform: none; }

  .brand-section { padding-block: var(--space-16); padding-inline: var(--space-6); }
  .brand-quote { font-size: var(--text-xl); }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-3);
  }
  .footer-nav { gap: var(--space-4); flex-wrap: wrap; }
}

@media (max-width: 480px) {
  .header-nav { display: none; }
  .card-body { padding: var(--space-6); }
}

/* ─── TOUCH STATES ───────────────────────────────────────────────────────── */
@media (hover: none) {
  .choice-card:hover { box-shadow: none; transform: none; }
  .card-cta:hover svg { transform: none; }
  .hero-cta:hover svg { transform: none; }
}
