/*
Theme Name: Libertorch
Theme URI: https://libertorch.com
Author: Libertorch
Description: Tema institucional da Libertorch. Estatico, rapido, sem dependencias. Cria as paginas Home, About, Wholesale e Contact automaticamente na ativacao.
Version: 1.0
Requires at least: 5.9
Tested up to: 6.7
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: libertorch
*/

/* ==========================================================================
   LIBERTORCH — stylesheet
   Single file. No build step. No dependencies except Google Fonts.
   ========================================================================== */

:root {
  --ink:        #14161b;
  --ink-soft:   #23262e;
  --paper:      #ffffff;
  --shell:      #faf8f5;
  --shell-deep: #f2eee8;
  --rule:       #e3ddd4;
  --body:       #4a4f5a;
  --muted:      #7c828e;
  --flame:      #c07a2c;
  --flame-lit:  #e0a049;
  --flame-deep: #8a5418;

  --serif: "Fraunces", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --wrap: 1140px;
  --gut: 28px;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.7;
  color: var(--body);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--flame-deep); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  color: var(--ink);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2.4rem, 5.2vw, 3.9rem); }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.2rem; letter-spacing: -0.005em; }

p { margin: 0 0 1.15em; }
p:last-child { margin-bottom: 0; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gut);
}

.eyebrow {
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--flame);
  margin: 0 0 1.1rem;
}

.lede { font-size: 1.18rem; line-height: 1.65; color: var(--ink-soft); }

.narrow { max-width: 680px; }

/* ---------- Header ---------------------------------------------------- */

.site-header {
  background: var(--ink);
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 74px;
}

.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; }
.brand:hover { text-decoration: none; }

.brand svg { width: 26px; height: 34px; flex: none; }

.brand-name {
  font-family: var(--serif);
  font-size: 1.28rem;
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.01em;
}

.nav { display: flex; align-items: center; gap: 30px; }

.nav a {
  font-size: 0.86rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: rgba(255,255,255,0.72);
  text-decoration: none;
  padding: 6px 0;
  border-bottom: 1.5px solid transparent;
  transition: color .18s, border-color .18s;
}

.nav a:hover { color: #fff; text-decoration: none; }
.nav a[aria-current="page"] { color: #fff; border-bottom-color: var(--flame); }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 5px;
  color: #fff;
  padding: 7px 11px;
  font-size: 0.8rem;
  cursor: pointer;
}

/* ---------- Hero ------------------------------------------------------ */

.hero {
  background: var(--ink);
  color: rgba(255,255,255,0.74);
  padding: clamp(76px, 12vw, 132px) 0 clamp(84px, 13vw, 140px);
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  right: -160px;
  top: -120px;
  width: 620px;
  height: 620px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(192,122,44,0.20) 0%, rgba(192,122,44,0) 68%);
  pointer-events: none;
}

.hero .wrap { position: relative; z-index: 1; }
.hero-inner { max-width: 720px; }

.hero h1 { color: #fff; margin-bottom: 0.42em; }
.hero .lede { color: rgba(255,255,255,0.76); font-size: 1.22rem; max-width: 580px; }

.hero-rule {
  width: 60px;
  height: 3px;
  background: var(--flame);
  margin: 0 0 2rem;
  border-radius: 2px;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 2.4rem; }

/* ---------- Buttons --------------------------------------------------- */

.btn {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 13px 26px;
  border-radius: 4px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background .18s, color .18s, border-color .18s;
  text-decoration: none;
}
.btn:hover { text-decoration: none; }

.btn-primary { background: var(--flame); color: #fff; border-color: var(--flame); }
.btn-primary:hover { background: var(--flame-lit); border-color: var(--flame-lit); }

.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,0.32); }
.btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,0.07); }

.btn-dark { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn-dark:hover { background: var(--ink-soft); border-color: var(--ink-soft); }

/* ---------- Sections -------------------------------------------------- */

.section { padding: clamp(64px, 9vw, 104px) 0; }
.section-shell { background: var(--shell); }
.section-ink { background: var(--ink); }
.section-ink h2, .section-ink h3 { color: #fff; }
.section-ink p { color: rgba(255,255,255,0.72); }

.section-head { max-width: 660px; margin-bottom: 3rem; }

/* ---------- Pillars / cards ------------------------------------------- */

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
}

.card {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 7px;
  padding: 32px 28px;
}

.section-shell .card { background: var(--paper); }

.card-num {
  font-family: var(--serif);
  font-size: 0.95rem;
  color: var(--flame);
  display: block;
  margin-bottom: 14px;
  letter-spacing: 0.06em;
}

.card h3 { margin-bottom: 0.55em; }
.card p { font-size: 0.95rem; margin-bottom: 0; }

/* ---------- Split ----------------------------------------------------- */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 76px);
  align-items: center;
}

.split-narrow { grid-template-columns: 0.9fr 1.1fr; }

.stat-stack { display: grid; gap: 26px; }

.stat {
  border-left: 3px solid var(--flame);
  padding-left: 20px;
}

.stat dt {
  font-family: var(--serif);
  font-size: 1.05rem;
  color: var(--ink);
  font-weight: 600;
  margin-bottom: 4px;
}

.section-ink .stat dt { color: #fff; }

.stat dd { margin: 0; font-size: 0.94rem; color: var(--muted); }
.section-ink .stat dd { color: rgba(255,255,255,0.6); }

/* ---------- Detail list ----------------------------------------------- */

.detail-list { list-style: none; margin: 0; padding: 0; }

.detail-list li {
  padding: 18px 0;
  border-bottom: 1px solid var(--rule);
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 24px;
  font-size: 0.96rem;
}

.detail-list li:first-child { border-top: 1px solid var(--rule); }

.detail-list dfn {
  font-style: normal;
  font-weight: 600;
  color: var(--ink);
}

/* ---------- CTA band -------------------------------------------------- */

.band {
  background: var(--shell-deep);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: clamp(52px, 7vw, 76px) 0;
  text-align: center;
}

.band h2 { margin-bottom: 0.5em; }
.band p { max-width: 520px; margin: 0 auto 2rem; }

/* ---------- Contact / forms ------------------------------------------- */

.form-grid { display: grid; gap: 20px; max-width: 560px; }
.form-row { display: grid; gap: 20px; grid-template-columns: 1fr 1fr; }

label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 7px;
}

input, select, textarea {
  width: 100%;
  font-family: var(--sans);
  font-size: 0.97rem;
  color: var(--ink);
  padding: 12px 14px;
  border: 1px solid var(--rule);
  border-radius: 4px;
  background: var(--paper);
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--flame);
  box-shadow: 0 0 0 3px rgba(192,122,44,0.13);
}

textarea { min-height: 140px; resize: vertical; }

.form-note { font-size: 0.86rem; color: var(--muted); }

.contact-block { margin-bottom: 2rem; }
.contact-block dt {
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 5px;
}
.contact-block dd {
  margin: 0 0 1.5rem;
  font-size: 1.02rem;
  color: var(--ink);
}

/* ---------- Footer ---------------------------------------------------- */

.site-footer {
  background: var(--ink);
  color: rgba(255,255,255,0.55);
  padding: 62px 0 34px;
  font-size: 0.89rem;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 44px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.site-footer .brand { margin-bottom: 16px; }
.site-footer p { max-width: 330px; font-size: 0.89rem; color: rgba(255,255,255,0.5); }

.footer-col h4 {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  margin: 0 0 16px;
}

.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 9px; }
.footer-col a { color: rgba(255,255,255,0.55); }
.footer-col a:hover { color: #fff; text-decoration: none; }

.footer-bottom {
  padding-top: 26px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.4);
}

/* ---------- Page header (inner pages) --------------------------------- */

.page-head {
  background: var(--ink);
  padding: clamp(56px, 8vw, 88px) 0 clamp(58px, 8vw, 90px);
  position: relative;
  overflow: hidden;
}

.page-head::after {
  content: "";
  position: absolute;
  right: -140px; top: -180px;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(192,122,44,0.16) 0%, rgba(192,122,44,0) 70%);
}

.page-head .wrap { position: relative; z-index: 1; }
.page-head h1 { color: #fff; max-width: 760px; }
.page-head p { color: rgba(255,255,255,0.7); max-width: 600px; font-size: 1.1rem; margin-bottom: 0; }

/* ---------- Prose ----------------------------------------------------- */

.prose { max-width: 680px; }
.prose h2 { margin-top: 2.6em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 2em; }

/* ---------- Responsive ------------------------------------------------ */

@media (max-width: 860px) {
  .split, .split-narrow { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .detail-list li { grid-template-columns: 1fr; gap: 4px; }
}

@media (max-width: 680px) {
  body { font-size: 16px; }
  .nav {
    display: none;
    position: absolute;
    top: 74px; left: 0; right: 0;
    background: var(--ink-soft);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 0 16px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px var(--gut); border-bottom: none; }
  .nav-toggle { display: block; }
  .form-row { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 32px; }
  .hero-actions .btn { width: 100%; text-align: center; }
}
