/* ============================================
   MAIN.CSS — Own Time Home Club · Diretório
   ============================================ */

/* ── Roobert (font brand owntime.com.br) ── */
@font-face {
  font-family: 'Roobert';
  src: url('../fonts/Roobert-Light.otf') format('opentype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Roobert';
  src: url('../fonts/Roobert-Regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Roobert';
  src: url('../fonts/Roobert-Medium.otf') format('opentype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Roobert';
  src: url('../fonts/Roobert-SemiBold.otf') format('opentype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

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

:root {
  /* ── Cores base (DNA owntime.com.br) ── */
  --color-bg:        #0A0A0A;
  --color-bg-alt:    #111111;
  --color-bg-light:  #F7F5F2;
  --color-surface:   #1A1A1A;

  /* ── Texto ── */
  --color-text:      #FFFFFF;
  --color-text-inv:  #0E0E0E;
  --color-muted:     #8A8A8A;

  /* ── Acentos ── */
  --color-accent:    #3D5A3E;   /* pinheiro escuro */
  --color-accent-lt: #6B8F6C;   /* verde médio     */
  --color-gold:      #C9A96E;   /* dourado discreto */

  /* ── Bordas ── */
  --color-border:    rgba(255, 255, 255, 0.08);
  --color-border-lt: rgba(0, 0, 0, 0.09);

  /* ── Tipografia ── */
  --font-display: 'Cormorant Garamond', 'Raleway', Georgia, serif;
  --font-body:    'Roobert', system-ui, sans-serif;

  /* ── Espaço ── */
  --space-section: clamp(2.75rem, 6.5vw, 5rem);
  --space-cont:    clamp(1.5rem, 5vw, 5.5rem);
  --radius-sm: 3px;
  --radius:    6px;

  /* ── Motion ── */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --duration: 0.6s;
}

/* ── Reset & Base ── */
html {
  scroll-behavior: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: clamp(0.875rem, 1.4vw, 1rem);
  font-weight: 300;
  line-height: 1.75;
  overflow-x: hidden;
  /* Espaço para barra flutuante mobile */
  padding-bottom: 80px;
}

@media (min-width: 769px) {
  body { padding-bottom: 0; }
}

img, video { display: block; max-width: 100%; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }

/* ── Seções ── */
.section-dark     { background-color: var(--color-bg);     color: var(--color-text); }
.section-dark-alt { background-color: var(--color-bg-alt); color: var(--color-text); }
.section-light    { background-color: var(--color-bg-light); color: var(--color-text-inv); }

/* ── Container ── */
.container {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: var(--space-cont);
}

/* ── Padding de seção ── */
.section-pad { padding-block: var(--space-section); }

/* ── Tipografia ── */
.section-label {
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  opacity: 0.45;
  margin-bottom: 1.25rem;
  display: block;
}

.section-heading {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5.5vw, 4rem);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.section-heading em {
  font-style: italic;
  color: var(--color-accent-lt);
}

.section-light .section-heading em {
  color: var(--color-accent);
}

.section-sub {
  font-size: 0.9rem;
  font-weight: 300;
  line-height: 1.85;
  opacity: 0.6;
  max-width: 500px;
  margin-top: 1.25rem;
}

/* ── Divider ── */
.divider {
  display: block;
  width: 36px;
  height: 1px;
  background: currentColor;
  opacity: 0.18;
  margin-block: 1.75rem;
}

/* ── Reveal via IntersectionObserver ── */
.js-reveal {
  opacity: 0;
  transform: translateY(24px);
}

.js-reveal.js-revealed {
  opacity: 1;
  transform: none;
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

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

  /* Fallback: se js-reveal foi adicionado mas IO não disparou, força visível */
  .js-reveal {
    opacity: 1 !important;
    transform: none !important;
  }
}

:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: 3px;
}


/* ── Badge V1 no hero das tipologias ── */
.dir-badge-v1 {
  display: inline-block;
  padding: 0.25rem 0.65rem;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 100px;
  color: rgba(255,255,255,0.55);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  font-family: var(--font-body);
}

/* ── Telefones Úteis ── */
.telefones-section { background: #fff; }
.telefones__header  { margin-bottom: 2rem; }
.telefones__grupos  { display: flex; flex-direction: column; gap: 0; }

.tel-grupo { border-bottom: 1px solid rgba(0,0,0,0.07); padding-bottom: 0; }
.tel-grupo:last-child { border-bottom: none; }

.tel-grupo__cat {
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(0,0,0,0.35);
  padding: 1.1rem 0 0.5rem;
}

.tel-grupo__list { display: flex; flex-direction: column; padding-bottom: 0.25rem; }

.tel-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 0;
  text-decoration: none;
  color: var(--color-text);
  font-family: var(--font-body);
  border-bottom: 1px solid var(--color-border);
  -webkit-tap-highlight-color: transparent;
  cursor: pointer;
}
.tel-row:last-child { border-bottom: none; }
span.tel-row { cursor: default; opacity: 0.4; }

.tel-row__label {
  font-size: 0.875rem;
  font-weight: 400;
  color: inherit;
}
.tel-row__num {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--color-accent, #3D5A3E);
  font-family: var(--font-body);
  letter-spacing: 0.01em;
}
a.tel-row .tel-row__num { text-decoration: underline; text-underline-offset: 2px; }
a.tel-row:hover .tel-row__label { opacity: 0.7; }
