/*
Theme Name: Davinci In-Out
Theme URI: https://inoutproducoes.com
Author: in-out produções
Author URI: https://inoutproducoes.com
Description: Tema premium para Davinci Strategy Group & in-out produções. Design imersivo com partículas 3D, typografia elegante e estética cinematográfica.
Version: 1.1.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: davinci-inout
Tags: full-width-template, custom-colors, custom-menu, custom-logo, featured-images, threejs, dark, portfolio, business
*/

/* ========================================================
   DESIGN TOKENS
   ======================================================== */
:root {
  --bg:      #040506;
  --ink:     #f4f6f8;
  --muted:   #8a9098;
  --line:    rgba(255,255,255,.12);
  --accent:  #7fe9ff;
  --accent2: #b0a6ff;
  --surface: rgba(255,255,255,.04);
  --radius:  12px;
  --nav-h:   80px;
}

/* ========================================================
   RESET & BASE
   ======================================================== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* overflow-x managed per-section */
}

/* ========================================================
   TYPOGRAPHY
   ======================================================== */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500;
  line-height: 1.15;
}
h1 { font-size: clamp(36px, 6vw, 72px); }
h2 { font-size: clamp(28px, 4vw, 52px); }
h3 { font-size: clamp(22px, 3vw, 36px); }
h4 { font-size: clamp(18px, 2.5vw, 26px); }
p  { font-size: clamp(14px, 1.5vw, 16px); line-height: 1.8; color: var(--muted); }
a  { color: inherit; text-decoration: none; }

/* ========================================================
   SCROLLBAR
   ======================================================== */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 2px; }

/* ========================================================
   SELECTION
   ======================================================== */
::selection { background: var(--accent); color: var(--bg); }

/* ========================================================
   HERO — CANVAS SECTION
   ======================================================== */
#hero-section {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}
#canvas-wrap {
  position: absolute;
  inset: 0;
  z-index: 1;
}
#canvas-wrap canvas { display: block; }
.vignette {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: radial-gradient(ellipse 80% 70% at 50% 46%, transparent 42%, rgba(0,0,0,.6) 100%);
}
.grain {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  opacity: .045;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ========================================================
   HERO COPY
   ======================================================== */
.hero-copy {
  position: absolute;
  left: 0;
  right: 0;
  z-index: 10;
  bottom: clamp(48px, 12vh, 120px);
  text-align: center;
  padding: 0 24px;
  pointer-events: none;
}
.hero-hint {
  font-size: 11px;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
  opacity: 0;
  animation: fadeIn 1s ease 2.0s forwards;
}
.hero-hint.gone { opacity: 0 !important; transition: opacity .6s; }
.hero-tag {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 500;
  font-size: clamp(20px, 3vw, 30px);
  opacity: 0;
  transform: translateY(16px);
  animation: riseIn 1.1s cubic-bezier(.2,.65,.3,.9) 2.2s forwards;
  text-shadow: 0 0 30px rgba(0,0,0,.6);
}
.hero-sub {
  margin-top: 14px;
  font-size: clamp(12px, 1.4vw, 14px);
  color: var(--muted);
  font-weight: 400;
  letter-spacing: .06em;
  opacity: 0;
  animation: fadeIn 1s ease 2.55s forwards;
}
.hero-actions {
  margin-top: 30px;
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  pointer-events: auto;
  opacity: 0;
  transform: translateY(16px);
  animation: riseIn 1s cubic-bezier(.2,.65,.3,.9) 2.85s forwards;
}

/* ========================================================
   BUTTONS
   ======================================================== */
.btn {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .05em;
  padding: 13px 28px;
  border-radius: 100px;
  cursor: pointer;
  text-decoration: none;
  transition: transform .3s, background .3s, border-color .3s, box-shadow .3s;
  border: 1px solid transparent;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn-primary {
  background: var(--ink);
  color: #050607;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 40px rgba(127,233,255,.18);
}
.btn-ghost {
  border-color: var(--line);
  color: var(--ink);
}
.btn-ghost:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}
.btn-accent {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #040506;
}
.btn-accent:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 40px rgba(127,233,255,.3);
}

/* ========================================================
   NAVIGATION
   ======================================================== */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 26px clamp(20px, 5vw, 64px);
  transition: background .4s, backdrop-filter .4s, padding .4s;
}
.site-nav.scrolled {
  background: rgba(4,5,6,.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 16px clamp(20px, 5vw, 64px);
  border-bottom: 1px solid var(--line);
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  letter-spacing: .14em;
  font-size: 12px;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
}
.nav-brand .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 14px var(--accent);
  flex-shrink: 0;
}
.nav-brand .sep { color: var(--muted); font-weight: 300; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 34px;
  list-style: none;
}
.nav-links li a {
  color: var(--muted);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .04em;
  position: relative;
  transition: color .35s;
}
.nav-links li a:hover { color: var(--ink); }
.nav-links li a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  height: 1px;
  width: 0;
  background: var(--accent);
  transition: width .35s;
}
.nav-links li a:hover::after { width: 100%; }
.nav-links .nav-cta > a {
  color: var(--ink) !important;
  border: 1px solid var(--line);
  border-radius: 100px;
  padding: 9px 20px;
  transition: border-color .35s, background .35s;
}
.nav-links .nav-cta > a::after { display: none !important; }
.nav-links .nav-cta > a:hover {
  border-color: var(--accent);
  background: rgba(127,233,255,.06);
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
  z-index: 200;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .3s, opacity .3s;
}
.nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile menu */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(4,5,6,.97);
  backdrop-filter: blur(30px);
  z-index: 150;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(28px, 5vw, 44px);
  font-style: italic;
  color: var(--ink);
  text-decoration: none;
  transition: color .3s;
}
.mobile-menu a:hover { color: var(--accent); }

@media (max-width: 760px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
}

/* ========================================================
   SECTIONS — GENERAL
   ======================================================== */
.section {
  padding: clamp(80px, 12vw, 140px) clamp(24px, 6vw, 100px);
  position: relative;
}
.section-label {
  font-size: 11px;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
  display: block;
}
.section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(32px, 5vw, 58px);
  font-weight: 500;
  line-height: 1.1;
  margin-bottom: 24px;
}
.section-title em { font-style: italic; color: var(--accent); }
.section-lead {
  font-size: clamp(14px, 1.5vw, 17px);
  color: var(--muted);
  max-width: 600px;
  line-height: 1.8;
}
.divider {
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, transparent, var(--accent), transparent);
  margin: 0 auto;
}

/* ========================================================
   ABOUT SECTION
   ======================================================== */
#about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 8vw, 120px);
  align-items: center;
}
#about .about-visual {
  position: relative;
  aspect-ratio: 4/5;
  border-radius: 4px;
  overflow: hidden;
}
#about .about-visual img,
#about .about-visual .about-placeholder {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
#about .about-placeholder {
  background: linear-gradient(135deg, rgba(127,233,255,.08), rgba(176,166,255,.06));
  display: flex;
  align-items: center;
  justify-content: center;
}
#about .about-visual::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid var(--line);
  border-radius: 4px;
  pointer-events: none;
}
.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 40px;
}
.stat-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  transition: border-color .3s, transform .3s;
}
.stat-card:hover {
  border-color: rgba(127,233,255,.3);
  transform: translateY(-4px);
}
.stat-number {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 600;
  color: var(--accent);
  line-height: 1;
}
.stat-label {
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 6px;
}

@media (max-width: 900px) {
  #about { grid-template-columns: 1fr; }
  #about .about-visual { aspect-ratio: 16/9; }
}

/* ========================================================
   SERVICES SECTION
   ======================================================== */
#services {
  background: rgba(255,255,255,.015);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.services-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 64px;
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.service-card {
  padding: clamp(28px, 4vw, 48px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  position: relative;
  overflow: hidden;
  transition: border-color .4s, transform .4s, background .4s;
  cursor: default;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  opacity: 0;
  transition: opacity .4s;
}
.service-card:hover {
  border-color: rgba(127,233,255,.25);
  transform: translateY(-6px);
  background: rgba(127,233,255,.03);
}
.service-card:hover::before { opacity: 1; }
.service-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: rgba(127,233,255,.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  font-size: 22px;
}
.service-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(20px, 2.5vw, 26px);
  font-weight: 500;
  margin-bottom: 12px;
  color: var(--ink);
}
.service-desc {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
}
.service-num {
  position: absolute;
  top: 28px;
  right: 28px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 40px;
  font-weight: 600;
  color: rgba(127,233,255,.07);
  line-height: 1;
  user-select: none;
}

/* ========================================================
   PORTFOLIO SECTION
   ======================================================== */
#portfolio {
  overflow: hidden;
}
.portfolio-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 48px;
  flex-wrap: wrap;
  gap: 20px;
}
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
  grid-template-rows: 320px 240px;
}
.portfolio-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  group: true;
}
.portfolio-item:nth-child(1) { grid-column: 1 / 6; grid-row: 1; }
.portfolio-item:nth-child(2) { grid-column: 6 / 10; grid-row: 1; }
.portfolio-item:nth-child(3) { grid-column: 10 / 13; grid-row: 1; }
.portfolio-item:nth-child(4) { grid-column: 1 / 5; grid-row: 2; }
.portfolio-item:nth-child(5) { grid-column: 5 / 9; grid-row: 2; }
.portfolio-item:nth-child(6) { grid-column: 9 / 13; grid-row: 2; }
.portfolio-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .6s cubic-bezier(.25,.46,.45,.94);
}
.portfolio-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(127,233,255,.06) 0%, rgba(176,166,255,.08) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .6s cubic-bezier(.25,.46,.45,.94);
}
.portfolio-item:hover .portfolio-img,
.portfolio-item:hover .portfolio-placeholder { transform: scale(1.06); }
.portfolio-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(4,5,6,.9) 0%, transparent 50%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  opacity: 0;
  transition: opacity .4s;
}
.portfolio-item:hover .portfolio-overlay { opacity: 1; }
.portfolio-overlay-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 20px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 4px;
}
.portfolio-overlay-cat {
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--accent);
}
.portfolio-tag {
  position: absolute;
  top: 16px;
  left: 16px;
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink);
  background: rgba(4,5,6,.7);
  backdrop-filter: blur(8px);
  padding: 5px 10px;
  border-radius: 100px;
  border: 1px solid var(--line);
}

@media (max-width: 900px) {
  .portfolio-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
  }
  .portfolio-item { grid-column: auto !important; grid-row: auto !important; height: 220px; }
}
@media (max-width: 600px) {
  .portfolio-grid { grid-template-columns: 1fr; }
  .portfolio-item { height: 200px; }
}

/* ========================================================
   PROCESS / METHODOLOGY
   ======================================================== */
#process {
  background: rgba(255,255,255,.015);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.process-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0;
  margin-top: 64px;
  position: relative;
}
.process-steps::before {
  content: '';
  position: absolute;
  top: 32px;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line), var(--accent), var(--line), transparent);
}
.process-step {
  text-align: center;
  padding: 0 24px;
  position: relative;
}
.step-dot {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  font-weight: 600;
  color: var(--accent);
  position: relative;
  z-index: 1;
  transition: border-color .3s, box-shadow .3s;
}
.process-step:hover .step-dot {
  border-color: var(--accent);
  box-shadow: 0 0 30px rgba(127,233,255,.2);
}
.step-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 20px;
  font-weight: 500;
  margin-bottom: 10px;
}
.step-desc {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.7;
}

@media (max-width: 700px) {
  .process-steps::before { display: none; }
  .process-steps { gap: 40px; }
}

/* ========================================================
   TESTIMONIALS / CLIENTES
   ======================================================== */
#clients {
  text-align: center;
}
.clients-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(32px, 6vw, 80px);
  flex-wrap: wrap;
  margin-top: 56px;
  padding: 40px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.client-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 18px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: .05em;
  transition: color .3s;
}
.client-logo:hover { color: var(--ink); }

/* ========================================================
   CONTACT / CTA SECTION
   ======================================================== */
#contact {
  text-align: center;
  background: radial-gradient(ellipse 60% 60% at 50% 60%, rgba(127,233,255,.04) 0%, transparent 70%);
}
.contact-card {
  max-width: 700px;
  margin: 0 auto;
  padding: clamp(40px, 6vw, 80px) clamp(32px, 5vw, 72px);
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255,255,255,.025);
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
}
.contact-card::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 20%;
  right: 20%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), var(--accent2), transparent);
}
.contact-tagline {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(24px, 4vw, 40px);
  font-weight: 500;
  font-style: italic;
  margin-bottom: 16px;
  color: var(--ink);
}
.contact-desc {
  font-size: 15px;
  color: var(--muted);
  margin-bottom: 36px;
  line-height: 1.7;
}
.contact-info {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  margin-top: 36px;
  flex-wrap: wrap;
}
.contact-info-item {
  font-size: 13px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 8px;
}
.contact-info-item span { color: var(--ink); font-weight: 500; }

/* Contact Form */
.wpcf7-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: left;
}
.form-field label {
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
}
.form-field input,
.form-field textarea,
.form-field select {
  background: rgba(255,255,255,.04);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  font-family: 'Manrope', sans-serif;
  font-size: 14px;
  padding: 12px 16px;
  transition: border-color .3s, background .3s;
  width: 100%;
  outline: none;
  -webkit-appearance: none;
}
.form-field input:focus,
.form-field textarea:focus {
  border-color: var(--accent);
  background: rgba(127,233,255,.04);
}
.form-field textarea {
  resize: vertical;
  min-height: 120px;
}
@media (max-width: 600px) {
  .form-row { grid-template-columns: 1fr; }
}

/* ========================================================
   FOOTER
   ======================================================== */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 48px clamp(24px, 6vw, 100px);
}
.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  letter-spacing: .12em;
  font-size: 12px;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.footer-brand .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
}
.footer-desc {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.7;
  max-width: 280px;
}
.footer-col-title {
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 20px;
}
.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-links li a {
  font-size: 14px;
  color: var(--muted);
  text-decoration: none;
  transition: color .3s;
}
.footer-links li a:hover { color: var(--ink); }
.footer-bottom {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-copy {
  font-size: 12px;
  color: var(--muted);
}
.footer-social {
  display: flex;
  gap: 16px;
}
.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: var(--muted);
  text-decoration: none;
  transition: border-color .3s, color .3s, transform .3s;
}
.footer-social a:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}
@media (max-width: 900px) {
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .footer-inner { grid-template-columns: 1fr; }
}

/* ========================================================
   WORDPRESS CORE / WIDGETS
   ======================================================== */
.widget-area { padding: 40px 0; }
.widget { margin-bottom: 32px; }
.widget-title {
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.widget ul { list-style: none; }
.widget ul li { padding: 8px 0; border-bottom: 1px solid var(--line); }
.widget ul li a { color: var(--muted); font-size: 14px; transition: color .3s; }
.widget ul li a:hover { color: var(--accent); }

/* Blog / posts */
.post { margin-bottom: 48px; padding-bottom: 48px; border-bottom: 1px solid var(--line); }
.post:last-child { border-bottom: none; }
.post-meta { font-size: 12px; color: var(--muted); letter-spacing: .06em; margin-bottom: 12px; }
.post-title a { color: var(--ink); transition: color .3s; }
.post-title a:hover { color: var(--accent); }
.post-excerpt { color: var(--muted); font-size: 15px; line-height: 1.7; margin-top: 12px; }
.post-thumbnail { margin-bottom: 20px; border-radius: var(--radius); overflow: hidden; }
.post-thumbnail img { width: 100%; height: auto; display: block; }

/* Pagination */
.pagination { display: flex; gap: 8px; justify-content: center; padding: 40px 0; }
.pagination a, .pagination span {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: var(--muted);
  transition: all .3s;
}
.pagination a:hover, .pagination .current {
  border-color: var(--accent);
  color: var(--accent);
}

/* ========================================================
   ANIMATIONS
   ======================================================== */
@keyframes fadeIn { to { opacity: 1; } }
@keyframes riseIn { to { opacity: 1; transform: translateY(0); } }
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .4; }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
@keyframes glow {
  0%, 100% { box-shadow: 0 0 14px var(--accent); }
  50% { box-shadow: 0 0 28px var(--accent), 0 0 60px rgba(127,233,255,.3); }
}

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .8s ease, transform .8s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .2s; }
.reveal-delay-3 { transition-delay: .3s; }
.reveal-delay-4 { transition-delay: .4s; }

/* ========================================================
   UTILITY
   ======================================================== */
.text-center { text-align: center; }
.text-accent { color: var(--accent); }
.text-muted  { color: var(--muted); }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ========================================================
   SKIP LINK
   ======================================================== */
.skip-link {
  position: absolute;
  top: -100%;
  left: 24px;
  padding: 12px 20px;
  background: var(--accent);
  color: var(--bg);
  font-weight: 600;
  font-size: 14px;
  border-radius: 0 0 8px 8px;
  z-index: 9999;
  transition: top .2s;
}
.skip-link:focus { top: 0; }
