/* ============================================================================
   T.Ser — Centro de Saberes Compartilhados (braço editorial do Grupo Espaço Integrar)
   Site dedicado, estático e autocontido. Identidade própria:
   Terracota + creme + dourado · Playfair Display + Lora.
   ============================================================================ */

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

:root {
  --terracotta: #B5532E;
  --terracotta-dark: #97421F;
  --terracotta-light: #D88A6B;
  --gold: #C9A24B;
  --gold-dark: #A9853A;
  --cream: #FAF5EC;
  --cream-2: #F3EADB;
  --cream-dark: #E7D9C3;
  --charcoal: #36393F;
  --charcoal-light: #6B6F76;
  --white: #FFFFFF;

  --font-display: "Playfair Display", Georgia, serif;
  --font-body: "Lora", Georgia, serif;

  --shadow-sm: 0 2px 12px rgba(54, 57, 63, 0.07);
  --shadow-md: 0 14px 34px rgba(54, 57, 63, 0.12);
  --shadow-lg: 0 26px 56px rgba(54, 57, 63, 0.18);
  --shadow-cover: 0 18px 40px rgba(54, 57, 63, 0.22);

  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 18px;
  --r-xl: 24px;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --maxw: 1240px;
  --header-h: 84px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body { margin: 0; font-family: var(--font-body); color: var(--charcoal); background: var(--cream);
  line-height: 1.7; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--charcoal); margin: 0; line-height: 1.14; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
em { font-style: italic; color: var(--terracotta); }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 32px; }
.section { padding: 96px 0; }
.eyebrow { display: inline-block; color: var(--terracotta); font-size: 0.8rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 18px; font-family: var(--font-body); }
.lead { font-size: 1.18rem; color: var(--charcoal-light); line-height: 1.75; }
.section-head { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.section-head.left { margin-left: 0; text-align: left; }
.section-head h2 { font-size: clamp(2rem, 4vw, 2.85rem); font-weight: 700; }
.section-head p { margin-top: 14px; }

/* Botões */
.btn { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 0.95rem;
  padding: 14px 28px; border-radius: var(--r-md); transition: all 0.25s var(--ease-out); white-space: nowrap; }
.btn .i { width: 1.1em; height: 1.1em; }
.btn-primary { background: var(--terracotta); color: #fff; box-shadow: 0 6px 22px rgba(181,83,46,0.26); }
.btn-primary:hover { background: var(--terracotta-dark); transform: translateY(-2px); }
.btn-outline { background: transparent; color: var(--terracotta); border: 1.5px solid var(--terracotta); }
.btn-outline:hover { background: var(--terracotta); color: #fff; }
.btn-ghost { background: rgba(255,255,255,0.14); color: #fff; border: 1px solid rgba(255,255,255,0.3); }
.btn-ghost:hover { background: rgba(255,255,255,0.24); }
.btn-lg { padding: 17px 34px; font-size: 1rem; }
.btn-gold { background: var(--gold); color: #fff; }
.btn-gold:hover { background: var(--gold-dark); transform: translateY(-2px); }

/* HEADER */
.site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(255,255,255,0.96); backdrop-filter: blur(8px); box-shadow: 0 1px 20px rgba(0,0,0,0.05); }
.header-accent { height: 4px; background: linear-gradient(90deg, var(--terracotta), var(--terracotta-light), var(--gold)); }
.header-inner { max-width: var(--maxw); margin: 0 auto; height: calc(var(--header-h) - 4px); padding: 0 32px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.header-logo img { height: 52px; width: auto; }
.header-nav { display: flex; align-items: center; gap: 2px; }
.header-nav a { padding: 9px 14px; font-size: 0.95rem; font-weight: 500; color: rgba(54,57,63,0.82);
  border-radius: 8px; transition: all 0.2s; white-space: nowrap; }
.header-nav a:hover { color: var(--terracotta); background: var(--cream); }
.header-nav a.active { color: var(--terracotta); }
.header-actions { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.burger { display: none; width: 44px; height: 44px; align-items: center; justify-content: center; color: var(--charcoal); }
.burger .i { width: 26px; height: 26px; }

.mobile-drawer { position: fixed; inset: 0; z-index: 99; background: rgba(54,57,63,0.45); opacity: 0; pointer-events: none; transition: opacity 0.3s; }
.mobile-drawer.open { opacity: 1; pointer-events: auto; }
.drawer-panel { position: absolute; top: 0; right: 0; height: 100%; width: min(86vw, 350px); background: #fff;
  padding: 96px 26px 32px; display: flex; flex-direction: column; gap: 4px; transform: translateX(100%);
  transition: transform 0.35s var(--ease-out); box-shadow: var(--shadow-lg); }
.mobile-drawer.open .drawer-panel { transform: translateX(0); }
.drawer-panel a { padding: 13px 12px; font-size: 1.08rem; font-weight: 600; color: var(--charcoal); border-radius: 10px; font-family: var(--font-display); }
.drawer-panel a:hover, .drawer-panel a.active { background: var(--cream); color: var(--terracotta); }
.drawer-panel .divider { height: 1px; background: var(--cream-dark); margin: 12px 0; }
.drawer-panel .btn { justify-content: center; margin-top: 6px; }

/* HERO */
.hero { padding: calc(var(--header-h) + 70px) 0 90px; background: linear-gradient(180deg, var(--cream) 0%, #fff 100%); overflow: hidden; }
.hero-inner { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 64px; align-items: center; }
.hero h1 { font-size: clamp(2.5rem, 5vw, 3.85rem); font-weight: 700; margin-bottom: 24px; }
.hero p { font-size: 1.22rem; color: var(--charcoal-light); max-width: 520px; margin-bottom: 36px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-stack { position: relative; height: 400px; }
.hero-stack img { position: absolute; height: 340px; border-radius: 6px; box-shadow: var(--shadow-cover); background: #fff; transition: transform 0.4s var(--ease-out); }
.hero-stack img:nth-child(1) { top: 36px; left: 4%; transform: rotate(-6deg); z-index: 1; }
.hero-stack img:nth-child(2) { top: 18px; left: 27%; transform: rotate(0deg); z-index: 3; }
.hero-stack img:nth-child(3) { top: 36px; left: 50%; transform: rotate(6deg); z-index: 2; }
.hero-stack:hover img:nth-child(1) { transform: rotate(-9deg) translateY(-6px); }
.hero-stack:hover img:nth-child(3) { transform: rotate(9deg) translateY(-6px); }

/* PAGE HERO (internas) */
.page-hero { padding: calc(var(--header-h) + 56px) 0 64px; background: linear-gradient(180deg, var(--cream-2) 0%, var(--cream) 100%); border-bottom: 1px solid var(--cream-dark); }
.breadcrumb { display: flex; gap: 8px; align-items: center; color: var(--charcoal-light); font-size: 0.85rem; margin-bottom: 18px; }
.breadcrumb a:hover { color: var(--terracotta); }
.breadcrumb .sep { opacity: 0.5; }
.page-hero h1 { font-size: clamp(2rem, 4.4vw, 3rem); font-weight: 700; margin-bottom: 14px; }
.page-hero p { color: var(--charcoal-light); font-size: 1.12rem; max-width: 640px; }

/* FILTROS */
.filters { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 48px; }
.filter { padding: 9px 18px; border-radius: 99px; font-size: 0.875rem; font-weight: 600; background: var(--cream);
  color: var(--charcoal-light); border: 1px solid var(--cream-dark); transition: all 0.2s; }
.filter:hover { border-color: var(--terracotta-light); color: var(--terracotta); }
.filter.active { background: var(--terracotta); color: #fff; border-color: var(--terracotta); }

/* GRID DE LIVROS */
.books-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.book-card { background: #fff; border-radius: var(--r-lg); border: 1px solid var(--cream-dark); overflow: hidden;
  box-shadow: var(--shadow-sm); transition: all 0.35s var(--ease-out); display: flex; flex-direction: column; }
.book-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.book-cover { position: relative; aspect-ratio: 3/4; background: var(--cream); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.book-cover img { height: 88%; border-radius: 3px; box-shadow: 0 8px 24px rgba(54,57,63,0.18); transition: transform 0.35s var(--ease-out); }
.book-card:hover .book-cover img { transform: scale(1.04); }
.book-badge { position: absolute; top: 12px; left: 12px; padding: 4px 11px; border-radius: 99px; font-size: 0.7rem;
  font-weight: 700; color: #fff; background: var(--gold); font-family: var(--font-body); letter-spacing: 0.02em; }
.book-body { padding: 20px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.book-cat { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--terracotta); }
.book-card h3 { margin: 9px 0 6px; font-size: 1.25rem; font-weight: 600; line-height: 1.22; }
.book-sub { font-size: 0.9rem; color: var(--charcoal-light); margin-bottom: 18px; flex: 1; }
.book-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.book-price { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.book-price .now { font-family: var(--font-display); font-weight: 700; font-size: 1.32rem; color: var(--terracotta); }
.book-price .was { font-size: 0.85rem; color: var(--charcoal-light); text-decoration: line-through; }
.book-buy { display: inline-flex; align-items: center; gap: 6px; padding: 9px 15px; background: var(--terracotta);
  color: #fff; border-radius: var(--r-sm); font-size: 0.82rem; font-weight: 600; transition: background 0.2s; }
.book-buy:hover { background: var(--terracotta-dark); }
.book-buy .i { width: 15px; height: 15px; }

/* PRODUTO (detalhe) */
.product { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 64px; align-items: start; }
.product-cover { position: sticky; top: calc(var(--header-h) + 24px); background: var(--cream-2); border-radius: var(--r-xl);
  padding: 48px; display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-sm); }
.product-cover img { max-height: 460px; border-radius: 5px; box-shadow: var(--shadow-cover); }
.product-info .cat { color: var(--terracotta); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; }
.product-info h1 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); font-weight: 700; margin: 12px 0 8px; }
.product-info .sub { font-size: 1.15rem; color: var(--charcoal-light); font-style: italic; margin-bottom: 24px; }
.product-price { display: flex; align-items: baseline; gap: 12px; margin-bottom: 28px; padding-bottom: 28px; border-bottom: 1px solid var(--cream-dark); }
.product-price .now { font-family: var(--font-display); font-weight: 700; font-size: 2.2rem; color: var(--terracotta); }
.product-price .was { font-size: 1.1rem; color: var(--charcoal-light); text-decoration: line-through; }
.product-price .off { background: var(--gold); color: #fff; font-size: 0.78rem; font-weight: 700; padding: 4px 10px; border-radius: 99px; font-family: var(--font-body); }
.product-desc { font-size: 1.05rem; color: var(--charcoal); margin-bottom: 16px; }
.product-desc p { margin-bottom: 14px; }
.product-actions { display: flex; gap: 14px; flex-wrap: wrap; margin: 30px 0; }
.product-meta { display: flex; flex-wrap: wrap; gap: 14px 32px; padding-top: 24px; border-top: 1px solid var(--cream-dark); }
.product-meta .m { display: flex; align-items: center; gap: 9px; color: var(--charcoal-light); font-size: 0.95rem; }
.product-meta .m .i { width: 18px; height: 18px; color: var(--terracotta); }

/* CURSOS EAD */
.courses-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.course-card { background: #fff; border-radius: var(--r-lg); border: 1px solid var(--cream-dark); overflow: hidden;
  box-shadow: var(--shadow-sm); transition: all 0.3s var(--ease-out); display: flex; flex-direction: column; }
.course-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.course-top { height: 140px; background: linear-gradient(135deg, var(--terracotta), var(--terracotta-light)); position: relative; display: flex; align-items: center; justify-content: center; }
.course-top.gold { background: linear-gradient(135deg, var(--gold), var(--gold-dark)); }
.course-top.charcoal { background: linear-gradient(135deg, var(--charcoal), #51555c); }
.course-top .i { width: 46px; height: 46px; color: rgba(255,255,255,0.92); }
.course-tagi { position: absolute; top: 14px; right: 14px; background: rgba(255,255,255,0.92); color: var(--terracotta);
  font-size: 0.7rem; font-weight: 700; padding: 4px 10px; border-radius: 99px; }
.course-body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.course-body .fmt { font-size: 0.74rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--terracotta); margin-bottom: 8px; }
.course-body h3 { font-size: 1.28rem; font-weight: 600; margin-bottom: 10px; }
.course-body p { color: var(--charcoal-light); font-size: 0.95rem; margin-bottom: 20px; flex: 1; }
.course-foot { display: flex; align-items: center; justify-content: space-between; }
.course-foot .price { font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; color: var(--terracotta); }

/* SOBRE / VALORES */
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.value { background: #fff; border-radius: var(--r-lg); padding: 32px; border: 1px solid var(--cream-dark); box-shadow: var(--shadow-sm); }
.value .vic { width: 54px; height: 54px; border-radius: var(--r-md); background: var(--cream); display: flex; align-items: center; justify-content: center; color: var(--terracotta); margin-bottom: 18px; }
.value .vic .i { width: 26px; height: 26px; }
.value h3 { font-size: 1.25rem; margin-bottom: 9px; }
.value p { color: var(--charcoal-light); }

/* CONTATO */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: start; }
.contact-card { background: #fff; border-radius: var(--r-lg); padding: 32px; border: 1px solid var(--cream-dark); box-shadow: var(--shadow-sm); }
.contact-card h3 { font-size: 1.35rem; margin-bottom: 18px; }
.contact-row { display: flex; gap: 13px; align-items: flex-start; margin-top: 16px; color: var(--charcoal-light); }
.contact-row .i { width: 19px; height: 19px; color: var(--terracotta); flex-shrink: 0; margin-top: 4px; }
.contact-row a:hover { color: var(--terracotta); }
.form-field { margin-bottom: 16px; }
.form-field label { display: block; font-weight: 600; font-size: 0.88rem; margin-bottom: 6px; color: var(--charcoal); }
.form-field input, .form-field textarea { width: 100%; padding: 12px 14px; border: 1.5px solid var(--cream-dark);
  border-radius: 10px; font-family: var(--font-body); font-size: 0.98rem; color: var(--charcoal); background: var(--cream); transition: border-color 0.2s; }
.form-field input:focus, .form-field textarea:focus { outline: none; border-color: var(--terracotta); background: #fff; }
.form-field textarea { resize: vertical; min-height: 120px; }

/* FAIXA CTA */
.cta-band { background: linear-gradient(135deg, var(--terracotta), var(--terracotta-dark)); position: relative; overflow: hidden; }
.cta-inner { text-align: center; max-width: 680px; margin: 0 auto; position: relative; z-index: 2; }
.cta-inner h2 { color: #fff; font-size: clamp(1.9rem, 4vw, 2.7rem); font-weight: 700; margin-bottom: 16px; }
.cta-inner p { color: rgba(255,255,255,0.9); font-size: 1.14rem; margin-bottom: 32px; }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* FOOTER */
.site-footer { background: var(--charcoal); color: rgba(255,255,255,0.82); padding: 64px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; }
.footer-logo { height: 46px; filter: brightness(0) invert(1); margin-bottom: 20px; }
.site-footer p { color: rgba(255,255,255,0.6); line-height: 1.7; max-width: 320px; }
.footer-social { display: flex; gap: 10px; margin-top: 20px; }
.footer-social a { width: 42px; height: 42px; border-radius: 50%; background: rgba(255,255,255,0.1); display: flex;
  align-items: center; justify-content: center; color: #fff; transition: all 0.2s; }
.footer-social a:hover { background: var(--terracotta); transform: translateY(-2px); }
.footer-social .i { width: 19px; height: 19px; }
.footer-col h4 { color: #fff; font-size: 1.05rem; font-weight: 600; margin-bottom: 18px; font-family: var(--font-display); }
.footer-col li { margin-bottom: 11px; }
.footer-col a, .footer-col span { color: rgba(255,255,255,0.6); font-size: 0.94rem; transition: color 0.2s; }
.footer-col a:hover { color: #fff; }
.footer-contact li { display: flex; gap: 11px; align-items: flex-start; }
.footer-contact .i { width: 17px; height: 17px; color: var(--gold); flex-shrink: 0; margin-top: 3px; }
.footer-bottom { max-width: var(--maxw); margin: 44px auto 0; padding: 26px 32px 0; border-top: 1px solid rgba(255,255,255,0.1);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; color: rgba(255,255,255,0.42); font-size: 0.86rem; }
.footer-bottom a { color: var(--gold); }

/* REVEAL */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* RESPONSIVO */
@media (max-width: 980px) {
  .header-nav { display: none; }
  .burger { display: flex; }
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-stack { order: -1; height: 320px; }
  .hero-stack img { height: 280px; }
  .books-grid, .courses-grid, .values { grid-template-columns: repeat(2, 1fr); }
  .product { grid-template-columns: 1fr; gap: 32px; }
  .product-cover { position: static; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .section { padding: 64px 0; }
}
@media (max-width: 600px) {
  .books-grid, .courses-grid, .values { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .wrap { padding: 0 20px; }
  .hero-stack img { height: 220px; }
}
