/*
Theme Name: Professor Rubão
Theme URI: https://profrubao.com.br
Author: Professor Rubão
Author URI: https://profrubao.com.br
Description: Tema editorial moderno do Laboratório de Redação — tipografia serifada, papel cream e acentos em vermelhão. Mantém compatibilidade com WooCommerce e a área do aluno.
Version: 1.0.1
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: profrubao
Tags: editorial, education, courses, woocommerce, custom-menu, threaded-comments, translation-ready
*/

/* ============================================================
   PROFESSOR RUBÃO — Editorial Modern (Manuscrito Digital)
   ============================================================ */

:root{
  --ink:        #0F1419;
  --ink-soft:   #1B2330;
  --paper:      #F4EEE0;
  --paper-2:    #FAF6EC;
  --paper-3:    #ECE3D0;
  --pencil:     #5A5147;
  --pencil-2:   #8B8275;
  --vermilion:  #C24430;
  --vermilion-2:#A6371F;
  --gold:       #B68B3C;
  --gold-2:     #8E6A26;
  --line:       #2A2F38;
  --line-soft:  #C8BEA8;

  --radius: 2px;
  --maxw: 1240px;
  --gutter: clamp(20px, 4vw, 56px);

  --font-display: "Fraunces", "Georgia", serif;
  --font-italic:  "Instrument Serif", "Georgia", serif;
  --font-body:    "DM Sans", -apple-system, system-ui, sans-serif;

  --ease: cubic-bezier(.2,.7,.2,1);
}

*,*::before,*::after{ box-sizing:border-box; margin:0; padding:0; }
html{ scroll-behavior:smooth; -webkit-text-size-adjust:100%; }
body{
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  font-feature-settings: "ss01","ss02","cv11","kern";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  position: relative;
}
img{ max-width:100%; display:block; height: auto; }
a{ color:inherit; text-decoration:none; }
button{ font:inherit; color:inherit; background:none; border:0; cursor:pointer; }

/* Paper grain overlay */
body::before{
  content:"";
  position: fixed; inset:0;
  pointer-events:none;
  z-index: 1;
  opacity: .35;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.1  0 0 0 0 0.08  0 0 0 0 0.05  0 0 0 0.22 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

.container{ max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); position: relative; }
.eyebrow{
  font-family: var(--font-body);
  font-size: 11px; letter-spacing: .26em; text-transform: uppercase;
  color: var(--pencil); font-weight: 500;
  display: inline-flex; align-items: center; gap: 12px;
}
.eyebrow::before{ content:""; width: 28px; height: 1px; background: var(--vermilion); }

.display{
  font-family: var(--font-display);
  font-weight: 380;
  line-height: 0.98;
  letter-spacing: -0.02em;
  font-variation-settings: "opsz" 144, "SOFT" 50;
  color: var(--ink);
}
.italic{ font-family: var(--font-italic); font-style: italic; font-weight: 400; letter-spacing: -0.01em; }

/* ===================== NAV ===================== */
.topbar{
  position: sticky; top: 0; z-index: 50;
  background: rgba(244, 238, 224, 0.78);
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  border-bottom: 1px solid rgba(15,20,25,0.08);
}
.nav{ display: flex; align-items: center; justify-content: space-between; padding: 18px 0; }
.brand{
  display: flex; align-items: baseline; gap: 12px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 22px;
  letter-spacing: -0.02em;
  font-variation-settings: "opsz" 24, "SOFT" 40;
}
.brand .mark{
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper-2);
  display: inline-grid; place-items: center;
  font-family: var(--font-display); font-style: italic;
  font-size: 19px; transform: translateY(6px);
  box-shadow: 0 0 0 4px var(--paper), 0 0 0 5px rgba(15,20,25,0.18);
}
.brand small{
  font-family: var(--font-body); font-size: 10px;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--pencil); font-weight: 500;
  display: block; margin-top: 2px;
}
.nav-links{ display: flex; gap: 28px; align-items: center; font-size: 14px; font-weight: 500; list-style: none; }
.nav-links li{ position: relative; }
.nav-links a{ position: relative; padding: 4px 0; display: inline-block; }
.nav-links > li > a::after{
  content:""; position:absolute; left:0; right:100%; bottom:-2px;
  height: 1px; background: var(--vermilion);
  transition: right .35s var(--ease);
}
.nav-links > li > a:hover::after{ right: 0; }

/* Submenu (Cursos e Serviços) */
.nav-links .sub-menu, .nav-links .children{
  position: absolute; top: 100%; left: -16px;
  background: var(--paper-2);
  border: 1px solid var(--line-soft);
  min-width: 280px;
  padding: 10px 0;
  list-style: none;
  opacity: 0; visibility: hidden;
  transform: translateY(8px);
  transition: opacity .25s ease, transform .25s var(--ease), visibility .25s;
  z-index: 10;
}
.nav-links li:hover > .sub-menu,
.nav-links li:hover > .children,
.nav-links li:focus-within > .sub-menu,
.nav-links li:focus-within > .children{ opacity:1; visibility: visible; transform: translateY(0); }
.nav-links .sub-menu li, .nav-links .children li{ padding: 0; }
.nav-links .sub-menu a, .nav-links .children a{
  padding: 10px 20px; display: block;
  font-size: 13px; color: var(--ink-soft);
  transition: background .2s, color .2s;
}
.nav-links .sub-menu a:hover, .nav-links .children a:hover{ background: var(--paper-3); color: var(--vermilion); }

.nav-cta{
  background: var(--ink); color: var(--paper-2);
  padding: 10px 18px; border-radius: 999px;
  font-size: 13px; font-weight: 500; letter-spacing: 0.02em;
  display: inline-flex; align-items: center; gap: 8px;
  transition: transform .35s var(--ease), background .3s ease;
}
.nav-cta:hover{ background: var(--vermilion); transform: translateY(-1px); }
.nav-cta svg{ width: 14px; height: 14px; }
.menu-toggle{ display: none; }

@media (max-width: 900px){
  .nav-links{
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 0; align-items: stretch;
    background: var(--paper-2);
    border-bottom: 1px solid rgba(15,20,25,0.1);
    max-height: 0; overflow: hidden; transition: max-height .4s var(--ease);
  }
  .nav-links.open{ max-height: 720px; overflow-y: auto; }
  .nav-links > li{ border-top: 1px solid rgba(15,20,25,0.08); }
  .nav-links a{ padding: 16px var(--gutter); }
  .nav-links > li > a::after{ display: none; }
  .nav-links .sub-menu, .nav-links .children{
    position: static; opacity:1; visibility:visible; transform: none;
    border: 0; min-width: 0; padding: 0;
    background: var(--paper-3);
  }
  .nav-links .sub-menu a, .nav-links .children a{ padding-left: calc(var(--gutter) + 18px); }
  .nav-links .nav-cta{ margin: 16px var(--gutter); justify-content: center; }
  .menu-toggle{ display: inline-flex; flex-direction: column; gap: 5px; padding: 8px; cursor: pointer; }
  .menu-toggle span{ width: 22px; height: 1.5px; background: var(--ink); transition: transform .3s var(--ease), opacity .3s; }
  .menu-toggle.open span:nth-child(1){ transform: translateY(6.5px) rotate(45deg); }
  .menu-toggle.open span:nth-child(2){ opacity: 0; }
  .menu-toggle.open span:nth-child(3){ transform: translateY(-6.5px) rotate(-45deg); }
}

/* ===================== HERO ===================== */
.hero{ padding: clamp(48px, 8vw, 110px) 0 clamp(60px, 10vw, 140px); position: relative; overflow: hidden; }
.hero-grid{ display: grid; grid-template-columns: 1fr; gap: clamp(40px, 6vw, 80px); align-items: end; }
@media (min-width: 1000px){ .hero-grid{ grid-template-columns: 1.5fr 0.85fr; } }
.hero-eyebrow{
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: clamp(28px, 5vw, 56px); flex-wrap: wrap; gap: 16px;
}
.hero-eyebrow .place{
  font-family: var(--font-body); font-size: 12px;
  letter-spacing: 0.26em; text-transform: uppercase; color: var(--pencil);
}
.hero h1{
  font-family: var(--font-display);
  font-size: clamp(56px, 11vw, 168px);
  line-height: 0.92;
  letter-spacing: -0.035em;
  font-weight: 350;
  font-variation-settings: "opsz" 144, "SOFT" 50;
  color: var(--ink);
}
.hero h1 .line{ display: block; overflow: hidden; }
.hero h1 .line > span{ display: inline-block; transform: translateY(110%); animation: rise 1.1s var(--ease) forwards; }
.hero h1 .line.l2 > span{ animation-delay: .1s; }
.hero h1 .line.l3 > span{ animation-delay: .2s; }
.hero h1 em{ font-family: var(--font-italic); font-style: italic; font-weight: 400; color: var(--vermilion); position: relative; }
.hero h1 em::after{
  content:""; position: absolute; left: -4%; right: -4%; bottom: 8%; height: 12px;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 12' preserveAspectRatio='none'><path d='M2 8 C 40 2, 80 12, 120 6 S 180 4, 198 8' fill='none' stroke='%23C24430' stroke-width='2' stroke-linecap='round'/></svg>") no-repeat center/100% 100%;
  transform: scaleX(0); transform-origin: left; animation: draw 1s var(--ease) .9s forwards;
}
@keyframes rise{ to{ transform: translateY(0); } }
@keyframes draw{ to{ transform: scaleX(1); } }

.hero-aside{
  border-left: 1px solid var(--line-soft);
  padding-left: clamp(20px, 3vw, 36px);
  padding-bottom: 6px; position: relative;
}
.hero-aside::before{
  content:"§ 01"; position: absolute; top: 0; left: -1px;
  background: var(--paper); padding: 0 12px 6px 0;
  font-family: var(--font-display); font-style: italic;
  font-size: 14px; color: var(--vermilion); letter-spacing: 0.04em;
}
.hero-aside p{ font-size: 17px; line-height: 1.55; color: var(--ink-soft); max-width: 38ch; margin-top: 8px; }
.hero-aside .signature{
  margin-top: 28px; font-family: var(--font-italic); font-style: italic;
  font-size: 22px; color: var(--ink); display: flex; align-items: baseline; gap: 8px;
}
.hero-aside .signature::after{ content:""; flex: 1; height: 1px; background: var(--line-soft); }

.hero-meta{
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 3vw, 40px);
  margin-top: clamp(40px, 6vw, 80px);
  padding-top: 28px; border-top: 1px solid var(--line-soft);
}
@media (max-width: 600px){ .hero-meta{ grid-template-columns: 1fr 1fr; } }
.meta-item{ display: flex; flex-direction: column; gap: 6px; }
.meta-item .num{
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 60px);
  font-weight: 350; line-height: 1; letter-spacing: -0.04em;
  color: var(--ink); font-variation-settings: "opsz" 144, "SOFT" 30;
}
.meta-item .num sup{
  font-size: 0.45em; vertical-align: super;
  color: var(--vermilion); font-family: var(--font-italic);
  font-style: italic; font-weight: 400;
}
.meta-item .lbl{
  font-size: 12px; color: var(--pencil);
  letter-spacing: 0.16em; text-transform: uppercase;
}

/* ===================== MANIFESTO ===================== */
.manifesto{ padding: clamp(60px, 10vw, 140px) 0; position: relative; }
.manifesto-grid{ display: grid; grid-template-columns: 1fr; gap: 40px; }
@media (min-width: 900px){ .manifesto-grid{ grid-template-columns: 0.7fr 1.3fr; gap: 80px; } }
.manifesto h2{
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 62px); line-height: 1;
  letter-spacing: -0.03em; font-weight: 350;
  font-variation-settings: "opsz" 144, "SOFT" 40;
}
.manifesto h2 em{ font-family: var(--font-italic); font-style: italic; color: var(--vermilion); }
.manifesto-body p{
  font-size: clamp(18px, 1.5vw, 22px); line-height: 1.55;
  color: var(--ink-soft); margin-bottom: 24px; max-width: 60ch;
}
.manifesto-body p:first-child::first-letter{
  font-family: var(--font-display); font-size: 5.2em;
  float: left; line-height: .85; padding: 6px 12px 0 0;
  color: var(--vermilion); font-weight: 400;
  font-variation-settings: "opsz" 144, "SOFT" 50;
}
.marginalia{
  font-family: var(--font-italic); font-style: italic;
  font-size: 15px; color: var(--vermilion);
  transform: rotate(-2deg); display: inline-block;
  border-bottom: 1px dashed var(--vermilion); padding-bottom: 2px;
}

/* ===================== METHOD CHAPTERS ===================== */
.chapters{ padding: clamp(60px, 10vw, 140px) 0; background: var(--ink); color: var(--paper); position: relative; }
.chapters::before, .chapters::after{
  content:""; position: absolute; left: 0; right: 0; height: 28px;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 28' preserveAspectRatio='none'><path d='M0 14 Q 25 0, 50 14 T 100 14' fill='none' stroke='%23F4EEE0' stroke-width='1'/></svg>") repeat-x;
  background-size: 200px 28px; opacity: 0.18;
}
.chapters::before{ top: 0; }
.chapters::after{ bottom: 0; transform: scaleY(-1); }
.chapters .eyebrow{ color: var(--paper-3); }
.chapters .eyebrow::before{ background: var(--gold); }
.chapters h2{
  font-family: var(--font-display);
  font-size: clamp(42px, 6vw, 84px); line-height: 0.96;
  letter-spacing: -0.03em; font-weight: 350;
  margin: 16px 0 60px;
  font-variation-settings: "opsz" 144, "SOFT" 30;
  color: var(--paper);
}
.chapters h2 em{ font-family: var(--font-italic); font-style: italic; color: var(--gold); }

.chapter-list{ display: grid; gap: 0; }
.chapter{
  display: grid; grid-template-columns: 80px 1fr 32px;
  gap: clamp(16px, 3vw, 40px); align-items: start;
  padding: clamp(28px, 4vw, 44px) 0;
  border-top: 1px solid rgba(244, 238, 224, 0.18);
  cursor: pointer; position: relative; transition: padding .4s var(--ease);
}
.chapter:last-child{ border-bottom: 1px solid rgba(244, 238, 224, 0.18); }
.chapter .num{
  font-family: var(--font-display); font-style: italic;
  font-size: clamp(22px, 2.4vw, 28px); color: var(--gold);
  font-weight: 400; padding-top: 6px;
}
.chapter .head{ display: flex; flex-direction: column; gap: 14px; }
.chapter .title{
  font-family: var(--font-display);
  font-size: clamp(24px, 3.6vw, 42px); line-height: 1.05;
  letter-spacing: -0.02em; font-weight: 380;
  color: var(--paper); font-variation-settings: "opsz" 144, "SOFT" 40;
  transition: color .3s ease;
}
.chapter .title em{ font-family: var(--font-italic); font-style: italic; color: var(--gold); }
.chapter:hover .title{ color: var(--gold); }
.chapter .body{
  max-height: 0; overflow: hidden;
  transition: max-height .6s var(--ease), margin-top .4s var(--ease);
  color: var(--paper-3);
}
.chapter.open .body{ max-height: 1400px; margin-top: 4px; }
.chapter .body p{ font-size: 16.5px; line-height: 1.7; max-width: 64ch; margin-bottom: 14px; }
.chapter .body p strong{ color: var(--paper); font-weight: 500; }
.chapter .body ul{ list-style: none; margin: 12px 0 4px; }
.chapter .body li{
  padding: 6px 0 6px 24px; position: relative;
  color: var(--paper-3); font-size: 16px;
}
.chapter .body li::before{ content:""; position: absolute; left: 0; top: 16px; width: 12px; height: 1px; background: var(--gold); }
.chapter .toggle{
  width: 32px; height: 32px; border-radius: 50%;
  border: 1px solid rgba(244,238,224,.4);
  display: grid; place-items: center;
  transition: background .3s, transform .4s var(--ease), border-color .3s;
  margin-top: 8px; position: relative;
}
.chapter .toggle::before, .chapter .toggle::after{
  content:""; position: absolute; width: 12px; height: 1px; background: var(--paper);
  transition: transform .4s var(--ease);
}
.chapter .toggle::after{ transform: rotate(90deg); }
.chapter.open .toggle{ background: var(--gold); border-color: var(--gold); transform: rotate(180deg); }
.chapter.open .toggle::after{ transform: rotate(0); }

/* ===================== RESULTS ===================== */
.results{ padding: clamp(60px, 10vw, 140px) 0; }
.results-head{ display: flex; flex-direction: column; gap: 18px; margin-bottom: clamp(40px, 6vw, 80px); }
.results h2{
  font-family: var(--font-display);
  font-size: clamp(42px, 6vw, 84px); line-height: 0.96;
  letter-spacing: -0.03em; font-weight: 350;
  font-variation-settings: "opsz" 144, "SOFT" 30; max-width: 14ch;
}
.results h2 em{ font-family: var(--font-italic); font-style: italic; color: var(--vermilion); }

.results-grid{
  display: grid; grid-template-columns: 1fr; gap: 1px;
  background: var(--line-soft); border: 1px solid var(--line-soft);
}
@media (min-width: 800px){ .results-grid{ grid-template-columns: repeat(3, 1fr); } }
.result-card{
  background: var(--paper-2); padding: clamp(32px, 4vw, 48px);
  position: relative; overflow: hidden; transition: background .35s ease;
}
.result-card::after{
  content:""; position: absolute; right: -40px; bottom: -40px;
  width: 180px; height: 180px; border-radius: 50%;
  border: 1.5px solid var(--vermilion);
  opacity: 0; transition: opacity .5s var(--ease), transform .8s var(--ease);
  transform: scale(.6);
}
.result-card:hover{ background: var(--paper); }
.result-card:hover::after{ opacity: .25; transform: scale(1); }
.result-card .num{
  font-family: var(--font-display);
  font-size: clamp(72px, 9vw, 132px); line-height: 0.85;
  letter-spacing: -0.05em; color: var(--ink); font-weight: 350;
  font-variation-settings: "opsz" 144, "SOFT" 50;
}
.result-card .num sup{
  font-size: 0.35em; vertical-align: super;
  font-family: var(--font-italic); font-style: italic; color: var(--vermilion);
}
.result-card .tag{
  font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--vermilion); font-weight: 500; margin-bottom: 12px;
  display: inline-flex; align-items: center; gap: 10px;
}
.result-card .tag::before{ content:""; width: 16px; height: 1px; background: var(--vermilion); }
.result-card h3{
  font-family: var(--font-display);
  font-size: clamp(22px, 2.4vw, 30px); line-height: 1.1;
  margin: 20px 0 14px; font-weight: 380; letter-spacing: -0.015em;
  font-variation-settings: "opsz" 36, "SOFT" 40;
}
.result-card p{ color: var(--pencil); font-size: 15px; line-height: 1.6; max-width: 38ch; }

.seal{
  position: absolute; top: 28px; right: 28px;
  width: 70px; height: 70px; border-radius: 50%;
  border: 1.5px solid var(--vermilion); color: var(--vermilion);
  display: grid; place-items: center;
  font-family: var(--font-italic); font-style: italic;
  font-size: 13px; text-align: center; line-height: 1;
  transform: rotate(-12deg); opacity: 0.85;
}

/* ===================== COURSES ===================== */
.courses{ padding: clamp(60px, 10vw, 140px) 0; background: var(--paper-3); position: relative; }
.courses-head{
  display: flex; flex-wrap: wrap; justify-content: space-between;
  align-items: end; gap: 30px; margin-bottom: clamp(40px, 6vw, 80px);
}
.courses h2{
  font-family: var(--font-display);
  font-size: clamp(42px, 6vw, 84px); line-height: 0.96;
  letter-spacing: -0.03em; font-weight: 350;
  max-width: 14ch; font-variation-settings: "opsz" 144, "SOFT" 30;
}
.courses h2 em{ font-family: var(--font-italic); font-style: italic; color: var(--vermilion); }
.courses-intro{ max-width: 36ch; color: var(--ink-soft); font-size: 16px; line-height: 1.6; }

.course-grid{ display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 700px){ .course-grid{ grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px){ .course-grid{ grid-template-columns: repeat(3, 1fr); } }

.course{
  background: var(--paper-2);
  border: 1px solid rgba(15,20,25,.08);
  padding: clamp(24px, 3vw, 36px);
  display: flex; flex-direction: column; gap: 24px;
  position: relative; overflow: hidden;
  transition: transform .4s var(--ease), border-color .3s ease;
  min-height: 280px;
}
.course:hover{ transform: translateY(-4px); border-color: var(--ink); }
.course::before{
  content:""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--ink); transform: scaleX(0); transform-origin: left;
  transition: transform .5s var(--ease);
}
.course:hover::before{ transform: scaleX(1); }
.course .num{ font-family: var(--font-display); font-style: italic; font-size: 16px; color: var(--vermilion); letter-spacing: 0.02em; }
.course h3{
  font-family: var(--font-display);
  font-size: clamp(22px, 2.2vw, 28px); line-height: 1.12;
  font-weight: 380; letter-spacing: -0.02em;
  font-variation-settings: "opsz" 36, "SOFT" 40; flex: 1;
}
.course h3 em{ font-family: var(--font-italic); font-style: italic; color: var(--vermilion); }
.course .tag{
  display: inline-flex; gap: 8px; flex-wrap: wrap;
  font-size: 11px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--pencil); font-weight: 500;
}
.course .tag span{ border: 1px solid rgba(15,20,25,.18); padding: 4px 10px; border-radius: 999px; }
.course .arrow{
  align-self: flex-end;
  width: 44px; height: 44px;
  border-radius: 50%; border: 1px solid var(--ink);
  display: grid; place-items: center;
  transition: background .3s, color .3s, transform .4s var(--ease);
}
.course:hover .arrow{ background: var(--ink); color: var(--paper-2); transform: rotate(-45deg); }
.course .arrow svg{ width: 16px; height: 16px; }

.course.featured{ background: var(--ink); color: var(--paper-2); border-color: var(--ink); }
.course.featured .num{ color: var(--gold); }
.course.featured h3 em{ color: var(--gold); }
.course.featured .tag{ color: var(--paper-3); }
.course.featured .tag span{ border-color: rgba(244,238,224,.25); }
.course.featured .arrow{ border-color: var(--paper-2); }
.course.featured:hover .arrow{ background: var(--paper-2); color: var(--ink); }

/* ===================== PILLARS (MVV) ===================== */
.pillars{ padding: clamp(60px, 10vw, 140px) 0; position: relative; }
.pillars-grid{ display: grid; grid-template-columns: 1fr; gap: 0; }
@media (min-width: 900px){ .pillars-grid{ grid-template-columns: repeat(3, 1fr); } }
.pillar{
  padding: clamp(28px, 4vw, 48px) clamp(20px, 3vw, 40px);
  border-top: 1px solid var(--line-soft); position: relative;
}
@media (min-width: 900px){
  .pillar{ border-top: 0; border-left: 1px solid var(--line-soft); padding-top: 8px; }
  .pillar:first-child{ border-left: 0; padding-left: 0; }
}
.pillar .roman{ font-family: var(--font-italic); font-style: italic; color: var(--vermilion); font-size: 18px; letter-spacing: 0.04em; }
.pillar h3{
  font-family: var(--font-display);
  font-size: clamp(28px, 3vw, 38px);
  margin: 12px 0 20px; font-weight: 380;
  letter-spacing: -0.02em;
  font-variation-settings: "opsz" 144, "SOFT" 40;
}
.pillar p, .pillar li{ color: var(--ink-soft); font-size: 16px; line-height: 1.65; }
.pillar ul{ list-style: none; }
.pillar li{
  padding: 8px 0; border-bottom: 1px dotted rgba(15,20,25,.15);
  display: flex; align-items: flex-start; gap: 12px;
}
.pillar li::before{ content:"·"; color: var(--vermilion); font-weight: 700; font-size: 22px; line-height: 1; flex-shrink: 0; margin-top: -2px; }
.pillar li:last-child{ border-bottom: 0; }
.pillars-head{ display: flex; flex-direction: column; gap: 18px; margin-bottom: clamp(40px, 6vw, 70px); max-width: 720px; }
.pillars-head h2{
  font-family: var(--font-display);
  font-size: clamp(38px, 5vw, 64px); line-height: 1;
  letter-spacing: -0.03em; font-weight: 350;
  font-variation-settings: "opsz" 144, "SOFT" 40;
}
.pillars-head h2 em{ font-family: var(--font-italic); font-style: italic; color: var(--vermilion); }

/* ===================== MEDIA ===================== */
.media-sec{
  padding: clamp(60px, 10vw, 140px) 0;
  background: var(--paper-2);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}
.media-head{ display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: clamp(36px, 5vw, 64px); }
.media-head h2{
  font-family: var(--font-display);
  font-size: clamp(38px, 5vw, 64px); line-height: 1;
  letter-spacing: -0.03em; font-weight: 350;
  font-variation-settings: "opsz" 144, "SOFT" 40;
}
.media-head h2 em{ font-family: var(--font-italic); font-style: italic; color: var(--vermilion); }
.media-head .yt-cta{
  font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink); display: inline-flex; align-items: center; gap: 10px;
  border-bottom: 1px solid var(--ink); padding-bottom: 4px;
  transition: color .3s, border-color .3s, gap .3s var(--ease);
}
.media-head .yt-cta:hover{ color: var(--vermilion); border-color: var(--vermilion); gap: 14px; }

.video-grid{ display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 800px){ .video-grid{ grid-template-columns: repeat(3, 1fr); } }
.video{
  position: relative; aspect-ratio: 9/12; overflow: hidden;
  background: var(--ink); color: var(--paper);
  background-size: cover; background-position: center;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 20px; text-decoration: none;
  transition: transform .5s var(--ease);
}
.video:hover{ transform: translateY(-4px); }
.video::before{
  content:""; position: absolute; inset: 0;
  background:
    radial-gradient(circle at 30% 30%, rgba(182,139,60,.25), transparent 60%),
    linear-gradient(180deg, rgba(15,20,25,.2), rgba(15,20,25,.85));
  z-index: 1;
}
.video::after{
  content:""; position: absolute; inset: 0;
  background-image: repeating-linear-gradient(0deg, rgba(244,238,224,.04) 0px, rgba(244,238,224,.04) 1px, transparent 1px, transparent 4px);
  z-index: 1;
}
.video > *{ position: relative; z-index: 2; }
.video .play{
  width: 56px; height: 56px;
  border-radius: 50%; border: 1.5px solid var(--paper);
  display: grid; place-items: center;
  transition: background .3s, transform .4s var(--ease);
}
.video .play svg{ width: 16px; height: 16px; fill: var(--paper); margin-left: 3px; }
.video:hover .play{ background: var(--vermilion); border-color: var(--vermilion); transform: scale(1.06); }
.video h4{
  font-family: var(--font-display);
  font-size: clamp(20px, 2vw, 26px); line-height: 1.15;
  font-weight: 380; letter-spacing: -0.015em;
  font-variation-settings: "opsz" 36, "SOFT" 50;
}
.video h4 em{ font-family: var(--font-italic); font-style: italic; color: var(--gold); }
.video .meta{ font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--paper-3); display: flex; gap: 14px; }

/* ===================== CONTACT / FOOTER ===================== */
.contact{ padding: clamp(60px, 10vw, 140px) 0 clamp(40px, 6vw, 80px); position: relative; }
.contact-grid{ display: grid; grid-template-columns: 1fr; gap: 48px; }
@media (min-width: 900px){ .contact-grid{ grid-template-columns: 1.4fr 0.8fr; gap: 80px; } }
.contact h2{
  font-family: var(--font-display);
  font-size: clamp(48px, 7vw, 110px); line-height: 0.95;
  letter-spacing: -0.035em; font-weight: 350;
  font-variation-settings: "opsz" 144, "SOFT" 40;
}
.contact h2 em{ font-family: var(--font-italic); font-style: italic; color: var(--vermilion); }
.contact .intro{
  margin-top: 28px; font-size: clamp(18px, 1.6vw, 22px);
  line-height: 1.5; color: var(--ink-soft); max-width: 50ch;
}
.contact-actions{ display: flex; flex-direction: column; gap: 14px; margin-top: 40px; }
.btn{
  display: inline-flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 18px 24px;
  font-size: 15px; font-weight: 500; letter-spacing: 0.02em;
  border-radius: 999px;
  border: 1px solid var(--ink);
  transition: background .3s, color .3s, border-color .3s, transform .4s var(--ease);
}
.btn-primary{ background: var(--ink); color: var(--paper-2); }
.btn-primary:hover{ background: var(--vermilion); border-color: var(--vermilion); transform: translateY(-2px); }
.btn-outline:hover{ background: var(--ink); color: var(--paper-2); transform: translateY(-2px); }
.btn .icon{ width: 32px; height: 32px; border-radius: 50%; background: rgba(244,238,224,.14); display: grid; place-items: center; }
.btn-outline .icon{ background: rgba(15,20,25,.06); }
.btn:hover .icon{ background: rgba(244,238,224,.18); }
.btn .icon svg{ width: 14px; height: 14px; }

.contact-side{ border-left: 1px solid var(--line-soft); padding-left: clamp(20px, 3vw, 36px); }
.contact-side .label{ font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--pencil); margin-bottom: 8px; }
.contact-side .val{
  font-family: var(--font-display);
  font-size: 22px; font-weight: 400; letter-spacing: -0.01em;
  color: var(--ink); font-variation-settings: "opsz" 36, "SOFT" 40;
  margin-bottom: 24px;
}
.contact-side .val a{ transition: color .3s; }
.contact-side .val a:hover{ color: var(--vermilion); }
.socials{ display: flex; gap: 12px; margin-top: 12px; }
.socials a{
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--ink);
  display: grid; place-items: center;
  transition: background .3s, color .3s, transform .35s var(--ease);
}
.socials a:hover{ background: var(--ink); color: var(--paper-2); transform: translateY(-2px); }
.socials svg{ width: 16px; height: 16px; }

footer.site-footer{
  border-top: 1px solid var(--line-soft);
  padding: 40px 0; margin-top: clamp(40px, 8vw, 100px);
  font-size: 13px; color: var(--pencil);
}
.footer-row{ display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center; }
.footer-row em{ font-family: var(--font-italic); font-style: italic; color: var(--ink); }

/* Reveal */
.reveal{ opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.visible{ opacity: 1; transform: translateY(0); }
.reveal.d1{ transition-delay: .08s; }
.reveal.d2{ transition-delay: .16s; }
.reveal.d3{ transition-delay: .24s; }
.reveal.d4{ transition-delay: .32s; }
.reveal.d5{ transition-delay: .40s; }

/* Floating WhatsApp */
.wa-fab{
  position: fixed; bottom: 24px; right: 24px; z-index: 40;
  width: 58px; height: 58px; border-radius: 50%;
  background: var(--vermilion); color: var(--paper-2);
  display: grid; place-items: center;
  box-shadow: 0 14px 38px rgba(194,68,48,.35), 0 0 0 8px rgba(194,68,48,.12);
  transition: transform .4s var(--ease), background .3s;
}
.wa-fab:hover{ transform: translateY(-3px) scale(1.05); background: var(--vermilion-2); }
.wa-fab svg{ width: 26px; height: 26px; }
.wa-fab::after{
  content:""; position: absolute; inset: -4px;
  border-radius: 50%; border: 1px solid var(--vermilion);
  animation: pulse 2.4s ease-out infinite;
}
@keyframes pulse{
  0%{ transform: scale(.85); opacity: .8; }
  100%{ transform: scale(1.3); opacity: 0; }
}

::selection{ background: var(--vermilion); color: var(--paper-2); }

.ornament{ display: flex; align-items: center; justify-content: center; gap: 18px; margin: 60px auto; color: var(--vermilion); }
.ornament svg{ width: 22px; height: 22px; }
.ornament::before, .ornament::after{ content:""; height: 1px; flex: 1; background: var(--line-soft); max-width: 240px; }

/* ===================== WORDPRESS CONTENT (post / page templates) ===================== */
.entry{ padding: clamp(60px, 10vw, 120px) 0; }
.entry-content h1, .entry-content h2, .entry-content h3{
  font-family: var(--font-display);
  letter-spacing: -0.02em; font-weight: 380;
  margin: 1.4em 0 .6em;
  font-variation-settings: "opsz" 144, "SOFT" 40;
}
.entry-content h1{ font-size: clamp(36px, 5vw, 64px); line-height: 1; }
.entry-content h2{ font-size: clamp(28px, 3.5vw, 42px); line-height: 1.05; }
.entry-content h3{ font-size: clamp(22px, 2.5vw, 30px); line-height: 1.15; }
.entry-content p, .entry-content li{ font-size: 17px; line-height: 1.7; color: var(--ink-soft); margin-bottom: 1em; max-width: 68ch; }
.entry-content a{ color: var(--vermilion); border-bottom: 1px solid currentColor; transition: opacity .2s; }
.entry-content a:hover{ opacity: .7; }
.entry-content blockquote{
  border-left: 3px solid var(--vermilion); padding: 8px 0 8px 24px;
  margin: 28px 0; font-family: var(--font-italic); font-style: italic;
  font-size: 22px; color: var(--ink); max-width: 60ch;
}
.entry-content img{ border-radius: 4px; margin: 24px 0; }
.entry-title{ max-width: 22ch; }
.entry-meta{ font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--pencil); margin-bottom: 24px; }

/* WooCommerce light reset */
.woocommerce .container, body.woocommerce-page .container{ padding-top: 60px; padding-bottom: 60px; }
.woocommerce-page #co