/*
Theme Name: Century Dark
Theme URI: https://centurylifescience.com
Author: Century Life Science
Description: A modern dark WordPress theme for Century Life Science Pvt. Ltd. — glassmorphism, scroll animations, gradient accents drawn from the brand logo (cyan + leaf green). Includes WooCommerce support.
Version: 1.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: century-dark
Tags: dark, one-column, custom-menu, featured-images, translation-ready
*/

/* ==========================================================
   1. DESIGN TOKENS
   ========================================================== */
:root {
  --bg-0: #050e14;
  --bg-1: #081724;
  --surface: #0b1e2c;
  --surface-2: #102938;
  --line: rgba(126, 190, 212, 0.12);
  --line-strong: rgba(126, 190, 212, 0.25);
  --cyan: #26c5e8;
  --cyan-soft: rgba(38, 197, 232, 0.14);
  --green: #90dc5e;
  --green-soft: rgba(144, 220, 94, 0.12);
  --text: #eaf4f8;
  --muted: #93aab6;
  --grad: linear-gradient(92deg, var(--cyan) 0%, var(--green) 100%);
  --grad-soft: linear-gradient(135deg, rgba(38,197,232,.16), rgba(144,220,94,.10));
  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.65);
  --glow-cyan: 0 0 40px -6px rgba(38, 197, 232, 0.45);
  --font-head: 'Sora', 'Segoe UI', sans-serif;
  --font-body: 'Inter', 'Segoe UI', sans-serif;
  --wrap: 1200px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ==========================================================
   2. RESET / BASE
   ========================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg-0);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--cyan); text-decoration: none; transition: color .25s var(--ease); }
a:hover { color: var(--green); }
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-head);
  color: var(--text);
  line-height: 1.15;
  margin: 0 0 .5em;
  font-weight: 700;
  letter-spacing: -0.02em;
}
p { margin: 0 0 1.2em; }
::selection { background: var(--cyan); color: #04141c; }

body::-webkit-scrollbar { width: 10px; }
body::-webkit-scrollbar-track { background: var(--bg-0); }
body::-webkit-scrollbar-thumb { background: var(--surface-2); border-radius: 8px; }
body::-webkit-scrollbar-thumb:hover { background: var(--cyan); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.section { padding: 110px 0; position: relative; }
.section--tight { padding: 70px 0; }

/* Gradient text */
.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* Eyebrow label */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 18px;
}
.eyebrow::before {
  content: "";
  width: 34px; height: 2px;
  background: var(--grad);
  border-radius: 2px;
}

.section-head { max-width: 720px; margin-bottom: 56px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .eyebrow::after {
  content: ""; width: 34px; height: 2px; background: var(--grad); border-radius: 2px;
}
.section-head h2 { font-size: clamp(30px, 4.2vw, 46px); }
.section-head p { color: var(--muted); font-size: 18px; }

/* ==========================================================
   3. BUTTONS
   ========================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 30px;
  border-radius: 999px;
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .02em;
  cursor: pointer;
  border: 0;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .3s;
  will-change: transform;
}
.btn svg { width: 17px; height: 17px; transition: transform .3s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn--primary { background: var(--grad); color: #04141c; box-shadow: var(--glow-cyan); }
.btn--primary:hover { transform: translateY(-3px); box-shadow: 0 0 60px -6px rgba(38,197,232,.6); color: #04141c; }
.btn--ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line-strong);
  backdrop-filter: blur(8px);
}
.btn--ghost:hover { border-color: var(--cyan); color: var(--cyan); transform: translateY(-3px); }

/* ==========================================================
   4. SCROLL PROGRESS + REVEAL ANIMATIONS
   ========================================================== */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0;
  background: var(--grad); z-index: 9999;
  box-shadow: 0 0 12px rgba(38,197,232,.8);
}

.reveal {
  opacity: 0;
  transform: translateY(46px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
  transition-delay: var(--d, 0s);
  will-change: opacity, transform;
}
.reveal--left { transform: translateX(-56px); }
.reveal--right { transform: translateX(56px); }
.reveal--zoom { transform: scale(.86); }
.reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal--left, .reveal--right, .reveal--zoom { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ==========================================================
   5. HEADER
   ========================================================== */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 1000;
  transition: background .4s var(--ease), box-shadow .4s var(--ease), padding .4s var(--ease);
  padding: 18px 0;
}
.site-header.is-scrolled {
  background: rgba(6, 17, 26, 0.82);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 10px 40px -18px rgba(0,0,0,.8);
  border-bottom: 1px solid var(--line);
  padding: 10px 0;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 46px; height: 46px; flex: none;
  display: grid; place-items: center;
  border-radius: 14px;
  background: var(--grad-soft);
  border: 1px solid var(--line-strong);
}
.brand-mark svg { width: 30px; height: 30px; }
.brand-mark--img { background: rgba(255,255,255,.94); }
.brand-mark--img img { display: block; }

/* WooCommerce hero + breadcrumb */
.page-hero--woo { padding: 170px 0 60px; }
.page-hero--woo .woocommerce-breadcrumb { color: var(--muted); font-size: 13.5px; letter-spacing: .1em; text-transform: uppercase; }
.page-hero--woo .woocommerce-breadcrumb a { color: var(--cyan); }
.brand-name { font-family: var(--font-head); font-weight: 700; font-size: 18px; line-height: 1.1; color: var(--text); letter-spacing: -0.01em; }
.brand-name small { display: block; font-size: 10.5px; font-weight: 600; letter-spacing: .28em; text-transform: uppercase; color: var(--cyan); margin-top: 3px; }
.brand:hover .brand-name { color: var(--text); }

.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav > ul { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.main-nav a {
  display: block; padding: 10px 15px;
  color: var(--muted); font-size: 15px; font-weight: 500;
  border-radius: 10px; position: relative;
}
.main-nav a:hover, .main-nav li.current a { color: var(--text); background: rgba(126,190,212,.07); }

.nav-item-sub { position: relative; }
.nav-item-sub > a::after { content: "▾"; font-size: 10px; margin-left: 7px; opacity: .7; }
.sub-menu {
  position: absolute; top: calc(100% + 12px); left: 0; min-width: 230px;
  background: rgba(10, 26, 38, 0.96);
  backdrop-filter: blur(20px);
  border: 1px solid var(--line); border-radius: 16px;
  padding: 10px; list-style: none; margin: 0;
  opacity: 0; visibility: hidden; transform: translateY(14px);
  transition: all .3s var(--ease);
  box-shadow: var(--shadow);
}
.nav-item-sub:hover .sub-menu, .nav-item-sub:focus-within .sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.sub-menu a { padding: 9px 14px; border-radius: 10px; font-size: 14px; }

.header-cta { display: flex; align-items: center; gap: 12px; }
.header-cta .btn { padding: 11px 22px; font-size: 13.5px; }

/* Mobile nav */
.nav-toggle {
  display: none; background: none; border: 1px solid var(--line-strong);
  border-radius: 12px; width: 46px; height: 46px; cursor: pointer;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.nav-toggle span { display: block; width: 20px; height: 2px; background: var(--text); border-radius: 2px; transition: all .3s var(--ease); }
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1020px) {
  .nav-toggle { display: flex; }
  .header-cta .btn { display: none; }
  .main-nav {
    position: fixed; top: 0; right: 0; bottom: 0; width: min(360px, 88vw);
    background: rgba(7, 18, 28, 0.98);
    backdrop-filter: blur(24px);
    border-left: 1px solid var(--line);
    padding: 110px 30px 40px;
    transform: translateX(100%);
    transition: transform .45s var(--ease);
    overflow-y: auto;
  }
  .main-nav.is-open { transform: translateX(0); }
  .main-nav > ul { flex-direction: column; align-items: stretch; gap: 2px; }
  .main-nav a { padding: 13px 16px; font-size: 16px; }
  .sub-menu {
    position: static; opacity: 1; visibility: visible; transform: none;
    background: transparent; border: 0; box-shadow: none; padding: 0 0 0 18px; display: none;
  }
  .nav-item-sub.is-expanded .sub-menu { display: block; }
}

/* ==========================================================
   6. HERO
   ========================================================== */
.hero {
  min-height: 100svh;
  display: flex; align-items: center;
  position: relative;
  padding: 160px 0 100px;
  background:
    radial-gradient(900px 500px at 78% 12%, rgba(38,197,232,.13), transparent 60%),
    radial-gradient(700px 460px at 12% 88%, rgba(144,220,94,.10), transparent 60%),
    var(--bg-0);
  overflow: hidden;
}
.hero-grid-bg {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(126,190,212,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(126,190,212,.05) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 40%, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 40%, black 30%, transparent 75%);
}
.orb { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .5; animation: orbFloat 14s ease-in-out infinite alternate; pointer-events: none; }
.orb--1 { width: 480px; height: 480px; top: -140px; right: -100px; background: rgba(38,197,232,.28); }
.orb--2 { width: 420px; height: 420px; bottom: -160px; left: -120px; background: rgba(144,220,94,.20); animation-delay: -6s; }
@keyframes orbFloat {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(-50px, 45px) scale(1.14); }
}

.hero-inner { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: 60px; align-items: center; }
@media (max-width: 960px) { .hero-inner { grid-template-columns: 1fr; } }

.hero-badge {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 8px 18px; border-radius: 999px;
  background: var(--grad-soft);
  border: 1px solid var(--line-strong);
  font-size: 13.5px; font-weight: 600; color: var(--text);
  margin-bottom: 26px;
}
.hero-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 rgba(144,220,94,.6); animation: pulse 2s infinite; }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(144,220,94,.55); }
  70% { box-shadow: 0 0 0 10px rgba(144,220,94,0); }
  100% { box-shadow: 0 0 0 0 rgba(144,220,94,0); }
}

.hero h1 { font-size: clamp(40px, 6vw, 72px); margin-bottom: 22px; }
.hero-sub { font-size: clamp(17px, 1.6vw, 20px); color: var(--muted); max-width: 560px; margin-bottom: 38px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 60px; }

.type-wrap { color: var(--green); border-right: 3px solid var(--cyan); padding-right: 6px; white-space: nowrap; }

.hero-stats { display: flex; flex-wrap: wrap; gap: 0; border-top: 1px solid var(--line); padding-top: 30px; }
.hero-stat { padding: 0 36px 0 0; margin-right: 36px; border-right: 1px solid var(--line); }
.hero-stat:last-child { border-right: 0; margin-right: 0; padding-right: 0; }
.hero-stat b { font-family: var(--font-head); font-size: 32px; font-weight: 700; display: block; }
.hero-stat span { font-size: 13px; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; }

/* hero visual — molecule card */
.hero-visual { position: relative; display: grid; place-items: center; }
.molecule-card {
  width: min(420px, 100%);
  aspect-ratio: 1;
  border-radius: 32px;
  background: linear-gradient(160deg, rgba(16,41,56,.9), rgba(8,23,36,.85));
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255,255,255,.05);
  display: grid; place-items: center;
  position: relative;
  overflow: hidden;
  animation: cardFloat 7s ease-in-out infinite;
}
@keyframes cardFloat { 0%,100% { transform: translateY(0) rotate(0deg);} 50% { transform: translateY(-18px) rotate(.6deg);} }
.molecule-card svg { width: 78%; height: 78%; }
.float-chip {
  position: absolute;
  padding: 12px 18px; border-radius: 16px;
  background: rgba(10,26,38,.9);
  border: 1px solid var(--line-strong);
  backdrop-filter: blur(12px);
  font-family: var(--font-head); font-size: 13.5px; font-weight: 600;
  display: flex; align-items: center; gap: 9px;
  box-shadow: var(--shadow);
  animation: chipFloat 6s ease-in-out infinite;
}
.float-chip svg { width: 18px; height: 18px; flex: none; }
.float-chip--1 { top: 8%; left: -6%; animation-delay: -1s; }
.float-chip--2 { bottom: 16%; right: -8%; animation-delay: -3s; }
.float-chip--3 { bottom: -4%; left: 10%; animation-delay: -5s; }
@keyframes chipFloat { 0%,100% { transform: translateY(0);} 50% { transform: translateY(-14px);} }
@media (max-width: 960px) {
  .float-chip--1 { left: 0; } .float-chip--2 { right: 0; }
}

.scroll-hint {
  position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%);
  width: 26px; height: 44px; border: 2px solid var(--line-strong); border-radius: 999px;
}
.scroll-hint::after {
  content: ""; position: absolute; top: 8px; left: 50%; margin-left: -2px;
  width: 4px; height: 8px; border-radius: 4px; background: var(--cyan);
  animation: wheel 1.8s infinite;
}
@keyframes wheel { 0% { transform: translateY(0); opacity: 1;} 70% { transform: translateY(16px); opacity: 0;} 100% { opacity: 0;} }

/* ==========================================================
   7. MARQUEE
   ========================================================== */
.marquee {
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: 22px 0; overflow: hidden; background: var(--bg-1);
  position: relative;
}
.marquee::before, .marquee::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 120px; z-index: 2; pointer-events: none;
}
.marquee::before { left: 0; background: linear-gradient(90deg, var(--bg-1), transparent); }
.marquee::after { right: 0; background: linear-gradient(-90deg, var(--bg-1), transparent); }
.marquee-track { display: flex; gap: 56px; width: max-content; animation: marquee 32s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span {
  font-family: var(--font-head); font-size: 15px; font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase; color: var(--muted);
  display: flex; align-items: center; gap: 56px; white-space: nowrap;
}
.marquee-track span::after { content: "✦"; color: var(--green); font-size: 12px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ==========================================================
   8. CARDS / GRIDS
   ========================================================== */
.card {
  background: linear-gradient(160deg, rgba(16,41,56,.55), rgba(8,23,36,.65));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px 32px;
  position: relative;
  overflow: hidden;
  transition: transform .4s var(--ease), border-color .4s, box-shadow .4s;
}
.card::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px;
  background: linear-gradient(140deg, rgba(38,197,232,.55), transparent 40%, transparent 60%, rgba(144,220,94,.45));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity .4s var(--ease);
  pointer-events: none;
}
.card:hover { transform: translateY(-8px); box-shadow: var(--shadow); }
.card:hover::before { opacity: 1; }
.card h3 { font-size: 21px; margin: 0 0 10px; }
.card p { color: var(--muted); font-size: 15.5px; margin: 0; }

.icon-badge {
  width: 58px; height: 58px; border-radius: 16px;
  display: grid; place-items: center;
  background: var(--grad-soft);
  border: 1px solid var(--line-strong);
  margin-bottom: 22px;
  transition: transform .4s var(--ease);
}
.icon-badge svg { width: 28px; height: 28px; }
.card:hover .icon-badge { transform: scale(1.1) rotate(-6deg); }

.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
@media (max-width: 1020px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.card-link {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 20px; font-family: var(--font-head); font-size: 14px; font-weight: 600;
  color: var(--cyan);
}
.card-link svg { width: 15px; height: 15px; transition: transform .3s var(--ease); }
.card:hover .card-link svg, a.card:hover .card-link svg { transform: translateX(5px); }
a.card { display: block; color: inherit; }

/* ==========================================================
   9. ABOUT / SPLIT SECTION
   ========================================================== */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; }
@media (max-width: 960px) { .split { grid-template-columns: 1fr; gap: 44px; } }

.about-visual { position: relative; }
.about-frame {
  border-radius: 28px; overflow: hidden;
  border: 1px solid var(--line-strong);
  background: var(--grad-soft);
  aspect-ratio: 4/3.4;
  display: grid; place-items: center;
  box-shadow: var(--shadow);
}
.about-frame svg { width: 72%; height: 72%; }
.exp-badge {
  position: absolute; bottom: -26px; right: -14px;
  background: var(--grad); color: #04141c;
  padding: 22px 28px; border-radius: 22px;
  font-family: var(--font-head); text-align: center;
  box-shadow: var(--glow-cyan);
}
.exp-badge b { display: block; font-size: 34px; line-height: 1; }
.exp-badge span { font-size: 12.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
@media (max-width: 640px) { .exp-badge { right: 8px; } }

.tick-list { list-style: none; margin: 26px 0 34px; padding: 0; display: grid; gap: 14px; }
.tick-list li { display: flex; gap: 14px; align-items: flex-start; color: var(--muted); font-size: 16px; }
.tick-list li strong { color: var(--text); font-weight: 600; }
.tick-list .tick {
  flex: none; width: 24px; height: 24px; border-radius: 8px; margin-top: 2px;
  background: var(--green-soft); border: 1px solid rgba(144,220,94,.4);
  display: grid; place-items: center; color: var(--green); font-size: 13px; font-weight: 800;
}

/* ==========================================================
   10. STATS BAND
   ========================================================== */
.stats-band {
  background:
    radial-gradient(600px 300px at 20% 0%, rgba(38,197,232,.10), transparent 60%),
    radial-gradient(600px 300px at 85% 100%, rgba(144,220,94,.09), transparent 60%),
    var(--bg-1);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.stat-cell { text-align: center; padding: 20px 10px; }
.stat-cell b {
  font-family: var(--font-head); font-size: clamp(42px, 5vw, 62px); font-weight: 800;
  display: block; line-height: 1;
}
.stat-cell b em { font-style: normal; }
.stat-cell span { display: block; margin-top: 10px; color: var(--muted); font-size: 14px; letter-spacing: .14em; text-transform: uppercase; }

/* ==========================================================
   11. TESTIMONIALS
   ========================================================== */
.t-card { display: flex; flex-direction: column; gap: 22px; }
.t-stars { display: flex; gap: 4px; color: var(--green); }
.t-stars svg { width: 17px; height: 17px; }
.t-quote { font-size: 16.5px; color: var(--text); line-height: 1.75; margin: 0; flex: 1; }
.t-person { display: flex; align-items: center; gap: 14px; }
.t-avatar {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--grad); color: #04141c;
  display: grid; place-items: center;
  font-family: var(--font-head); font-weight: 700; font-size: 16px;
}
.t-person b { display: block; font-family: var(--font-head); font-size: 15.5px; }
.t-person span { font-size: 13px; color: var(--muted); }

/* ==========================================================
   12. CTA BAND
   ========================================================== */
.cta-band { padding: 70px 0; }
.cta-box {
  position: relative; overflow: hidden;
  border-radius: 32px;
  padding: clamp(44px, 6vw, 80px);
  background:
    radial-gradient(700px 360px at 85% -20%, rgba(38,197,232,.22), transparent 65%),
    radial-gradient(500px 300px at 8% 120%, rgba(144,220,94,.16), transparent 60%),
    var(--surface);
  border: 1px solid var(--line-strong);
  text-align: center;
}
.cta-box h2 { font-size: clamp(30px, 4vw, 48px); max-width: 720px; margin: 0 auto 18px; }
.cta-box p { color: var(--muted); max-width: 560px; margin: 0 auto 36px; font-size: 18px; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; }

/* ==========================================================
   13. FOOTER
   ========================================================== */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-1); padding: 80px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 44px; padding-bottom: 60px; }
@media (max-width: 960px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-about p { color: var(--muted); font-size: 15px; margin-top: 18px; max-width: 320px; }
.site-footer h4 { font-size: 15px; letter-spacing: .16em; text-transform: uppercase; color: var(--text); margin-bottom: 22px; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.footer-links a { color: var(--muted); font-size: 15px; display: inline-flex; align-items: center; gap: 8px; }
.footer-links a::before { content: "→"; color: var(--cyan); font-size: 13px; opacity: 0; margin-left: -18px; transition: all .3s var(--ease); }
.footer-links a:hover { color: var(--text); }
.footer-links a:hover::before { opacity: 1; margin-left: 0; }
.footer-contact li { display: flex; gap: 12px; align-items: flex-start; color: var(--muted); font-size: 15px; }
.footer-contact svg { width: 18px; height: 18px; flex: none; margin-top: 4px; color: var(--cyan); }
.socials { display: flex; gap: 10px; margin-top: 26px; }
.socials a {
  width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center;
  border: 1px solid var(--line-strong); color: var(--muted);
  transition: all .3s var(--ease);
}
.socials a:hover { background: var(--grad); color: #04141c; border-color: transparent; transform: translateY(-4px); }
.socials svg { width: 18px; height: 18px; }
.footer-bottom {
  border-top: 1px solid var(--line);
  padding: 26px 0; display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between;
  color: var(--muted); font-size: 13.5px;
}

/* ==========================================================
   14. INNER PAGES
   ========================================================== */
.page-hero {
  padding: 190px 0 90px;
  background:
    radial-gradient(800px 400px at 80% 0%, rgba(38,197,232,.12), transparent 60%),
    radial-gradient(500px 300px at 5% 100%, rgba(144,220,94,.08), transparent 60%),
    var(--bg-0);
  border-bottom: 1px solid var(--line);
  position: relative; overflow: hidden;
}
.page-hero h1 { font-size: clamp(38px, 5.5vw, 62px); max-width: 800px; }
.page-hero p { color: var(--muted); font-size: 19px; max-width: 640px; }
.breadcrumbs { font-size: 13.5px; color: var(--muted); letter-spacing: .1em; text-transform: uppercase; margin-bottom: 22px; }
.breadcrumbs a { color: var(--cyan); }

/* prose (blog/single/basic pages) */
.prose { max-width: 760px; margin: 0 auto; }
.prose h2 { font-size: 30px; margin-top: 1.6em; }
.prose h3 { font-size: 23px; margin-top: 1.4em; }
.prose p, .prose li { color: #c4d4dc; font-size: 17px; }
.prose img { border-radius: var(--radius); }
.prose blockquote {
  margin: 2em 0; padding: 24px 30px; border-left: 3px solid var(--cyan);
  background: var(--surface); border-radius: 0 16px 16px 0; font-style: italic;
}
.prose a { text-decoration: underline; text-underline-offset: 3px; }

/* blog cards */
.post-card { display: flex; flex-direction: column; }
.post-card .thumb {
  border-radius: 14px; overflow: hidden; margin-bottom: 22px; aspect-ratio: 16/9;
  background: var(--grad-soft); border: 1px solid var(--line);
  display: grid; place-items: center;
}
.post-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.post-card:hover .thumb img { transform: scale(1.06); }
.post-meta { font-size: 13px; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; margin-bottom: 10px; }
.post-card h3 a { color: var(--text); }
.post-card h3 a:hover { color: var(--cyan); }

.pagination { display: flex; gap: 8px; justify-content: center; margin-top: 60px; }
.pagination .page-numbers {
  min-width: 44px; height: 44px; padding: 0 14px; display: inline-grid; place-items: center;
  border: 1px solid var(--line-strong); border-radius: 12px; color: var(--muted);
  font-family: var(--font-head); font-weight: 600; font-size: 14px;
}
.pagination .page-numbers.current, .pagination .page-numbers:hover { background: var(--grad); color: #04141c; border-color: transparent; }

/* contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 44px; }
@media (max-width: 960px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-info-card { display: flex; gap: 18px; align-items: flex-start; }
.contact-info-card .icon-badge { margin: 0; width: 50px; height: 50px; flex: none; }
.contact-info-card h3 { font-size: 17px; margin-bottom: 4px; }
.contact-info-card p, .contact-info-card a { font-size: 15.5px; color: var(--muted); word-break: break-word; }
.contact-info-card a:hover { color: var(--cyan); }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.field label { display: block; font-size: 13.5px; font-weight: 600; letter-spacing: .04em; margin-bottom: 8px; color: var(--text); }
.field input, .field textarea, .field select {
  width: 100%; padding: 15px 18px;
  background: rgba(8, 23, 36, .8);
  border: 1px solid var(--line-strong); border-radius: 14px;
  color: var(--text); font-family: var(--font-body); font-size: 15.5px;
  transition: border-color .3s, box-shadow .3s;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--cyan); box-shadow: 0 0 0 4px rgba(38,197,232,.15);
}
.field textarea { min-height: 140px; resize: vertical; }
.form-note { font-size: 13px; color: var(--muted); margin-top: 14px; }
.form-success {
  padding: 16px 20px; border-radius: 14px; margin-bottom: 24px;
  background: var(--green-soft); border: 1px solid rgba(144,220,94,.4); color: var(--green);
  font-weight: 600; font-size: 15px;
}

/* steps (franchise) */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
@media (max-width: 1020px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .steps { grid-template-columns: 1fr; } }
.step { position: relative; padding-top: 10px; }
.step::before {
  counter-increment: step; content: "0" counter(step);
  font-family: var(--font-head); font-weight: 800; font-size: 54px; line-height: 1;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  opacity: .9; display: block; margin-bottom: 16px;
}
.step h3 { font-size: 19px; }
.step p { color: var(--muted); font-size: 15px; }

/* values */
.value-num { font-family: var(--font-head); font-size: 14px; font-weight: 700; color: var(--green); letter-spacing: .2em; margin-bottom: 14px; }

/* 404 */
.err-wrap { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 160px 24px 100px; }
.err-code {
  font-family: var(--font-head); font-size: clamp(110px, 20vw, 220px); font-weight: 800; line-height: 1;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}

/* utility */
.mt-40 { margin-top: 40px; }
.center { text-align: center; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
