/*
Theme Name: Esther Codes Design
Theme URI: https://esthercodesdesign.com
Author: Anike Esther
Author URI: https://esthercodesdesign.com
Description: A custom one-page portfolio theme for Esther Codes Design, built by Anike Esther as a demonstration of custom WordPress theme development.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: anike-esther
*/

/* =========================================================
   ETHAN COLE — PORTFOLIO STYLESHEET
   Design tokens live at the top; everything else consumes them.
   Palette matches the client's inspiration: deep forest green
   + warm gold, on a clean white/warm-gray base.
   ========================================================= */

:root {
  /* ---- color: brand ---- */
  --green: #1E3B2C;         /* primary brand color — nav, footer, dark sections */
  --green-deep: #142A1F;    /* deeper shade for footer / hovers */
  --green-tint: #E9F0EA;    /* light tint of green for chips, hovers, icon boxes */
  --gold: #F2A93D;          /* accent — buttons, highlights, active states */
  --gold-deep: #DB9424;     /* accent hover */

  /* ---- color: base ---- */
  --paper: #FFFFFF;         /* page background */
  --surface: #F6F5F1;       /* alternating section / card background */
  --ink: #191B17;           /* primary text */
  --muted: #6C7268;         /* secondary text */
  --border: #E7E4DA;        /* hairline borders */

  /* ---- color: on dark green ---- */
  --on-green: #FFFFFF;
  --on-green-muted: #B7C3B8;
  --on-green-border: rgba(255,255,255,.14);

  /* ---- type ---- */
  --font-display: "Sora", "Inter", sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: "JetBrains Mono", monospace;

  /* ---- shape / motion ---- */
  --radius-s: 10px;
  --radius-m: 16px;
  --radius-l: 24px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --shadow-card: 0 1px 2px rgba(20,30,23,.05), 0 14px 28px -16px rgba(20,30,23,.18);
  --shadow-lift: 0 22px 46px -18px rgba(30,59,44,.35);
  --shadow-gold: 0 18px 38px -16px rgba(242,169,61,.45);

  --wrap: 1180px;
}

/* =========================== RESET =========================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body, h1, h2, h3, p, dl, dd, figure, blockquote { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, textarea { font: inherit; color: inherit; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.wrap {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: 24px;
}

/* =========================== TYPE =========================== */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.15; letter-spacing: -.01em; color: var(--ink); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: .85rem;
  color: var(--green);
  margin-bottom: 14px;
}
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); flex-shrink: 0; }
.eyebrow.light { color: var(--gold); }

.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head h2 { font-size: clamp(1.7rem, 1.3rem + 1.8vw, 2.3rem); margin-bottom: 14px; }
.section-sub { color: var(--muted); font-size: 1.02rem; }

.section-head.center { max-width: 640px; margin-inline: auto; text-align: center; }
.eyebrow.center { justify-content: center; }
.section-sub.center { margin-inline: auto; }

.on-green { color: var(--on-green); }
.on-green-muted { color: var(--on-green-muted); }

/* =========================== BUTTONS =========================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 14px 24px;
  border-radius: var(--radius-s);
  font-weight: 600;
  font-size: .95rem;
  white-space: nowrap;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background-color .25s var(--ease), border-color .25s var(--ease), color .25s var(--ease);
}
.btn i { font-size: .82em; transition: transform .25s var(--ease); }
.btn:hover i { transform: translateX(3px); }

.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-deep); transform: translateY(-2px); box-shadow: var(--shadow-lift); }

.btn-gold { background: var(--gold); color: var(--ink); }
.btn-gold:hover { background: var(--gold-deep); transform: translateY(-2px); box-shadow: var(--shadow-gold); }

.btn-outline { border: 1.5px solid var(--green); color: var(--green); background: transparent; }
.btn-outline:hover { background: var(--green); color: #fff; transform: translateY(-2px); }

.btn-header { background: #fff; color: var(--green); border-radius: 999px; }
.btn-header:hover { background: var(--gold); color: var(--ink); transform: translateY(-2px); }

.btn-sm { padding: 10px 18px; font-size: .88rem; }
.btn-block { width: 100%; justify-content: center; margin-top: 6px; }

/* =========================== HEADER =========================== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: var(--green);
  box-shadow: 0 4px 16px rgba(15,28,20,.12);
}
/* WordPress shows a 32px admin toolbar at the very top for logged-in
   users (46px on smaller screens) — push our fixed header below it
   so they don't overlap. Visitors who aren't logged in never see
   this bar, so the header sits at top:0 for them as normal. */
body.admin-bar .site-header { top: 32px; }
@media screen and (max-width: 782px) {
  body.admin-bar .site-header { top: 46px; }
}

.header-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding-block: 14px;
}

.brand { display: flex; align-items: center; gap: 10px; }
.logo-img { height: 42px; width: auto; display: block; }
.custom-logo-link { display: block; }
.custom-logo-link img.custom-logo { height: 54px; width: auto; max-width: 220px; object-fit: contain; display: block; }
.footer-brand .custom-logo-link img.custom-logo { height: 44px; max-width: 200px; }

/* Nudge the logo closer to the left edge of the navbar */
.site-header .wrap { max-width: none; padding-left: 0; }

.main-nav { display: flex; gap: 16px; list-style: none; margin: 0; padding: 0; }
.main-nav li { display: flex; }
.nav-link { font-size: .88rem; font-weight: 500; color: var(--on-green-muted); position: relative; padding-block: 4px; transition: color .2s var(--ease); }
.nav-link:hover, .nav-link.active { color: var(--gold); }

.header-actions { display: flex; align-items: center; gap: 14px; }
.nav-toggle { display: none; width: 40px; height: 40px; place-items: center; font-size: 1.1rem; color: #fff; }

/* =========================== HERO =========================== */
.hero {
  position: relative;
  padding-top: 100px;
  overflow: hidden;
  background-image: url('https://images.unsplash.com/photo-1754548930550-be9fa88874f4?fm=jpg&q=70&w=2000&auto=format&fit=crop');
  background-size: cover;
  background-position: center;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(15,28,20,.94) 10%, rgba(15,28,20,.82) 45%, rgba(15,28,20,.55) 100%);
  z-index: 0;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 1300px;
  margin-inline: auto;
  text-align: center;
  padding-block: 64px 56px;
}

.hero-title { font-size: clamp(2.2rem, 1.4rem + 3.4vw, 4rem); margin-bottom: 22px; color: #fff; }
.hero .eyebrow { color: var(--gold); }
.type-target { color: var(--gold); }
.type-cursor { display: inline-block; width: 3px; height: .9em; background: var(--gold); margin-left: 4px; animation: blink 1s steps(1) infinite; vertical-align: -0.1em; }
@keyframes blink { 50% { opacity: 0; } }

.hero .eyebrow { justify-content: center; }
.hero-text { color: var(--on-green-muted); font-size: 1.08rem; max-width: 80ch; margin-inline: auto; margin-bottom: 30px; }

.hero-actions { display: flex; align-items: center; justify-content: center; gap: 16px; flex-wrap: wrap; margin-bottom: 44px; }
.hero .btn-outline { border-color: #fff; color: #fff; background: transparent; }
.hero .btn-outline:hover { background: #fff; color: var(--green); }

.hero-stats { display: flex; justify-content: center; gap: 40px; }

/* Bordered stat bar with glow accent (replaces plain hero-stats) */
.hero-stats-bar {
  position: relative;
  display: flex;
  justify-content: center;
  flex-wrap: nowrap;
  overflow: hidden;
  border: 1px solid rgba(242,169,61,.5);
  border-radius: var(--radius-l);
  background: rgba(15,28,20,.55);
  backdrop-filter: blur(6px);
  padding: 26px 20px;
  margin-top: 8px;
}
.hero-stats-bar::before {
  content: "";
  position: absolute;
  top: -60px; left: 50%;
  width: 140%; height: 80px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(242,169,61,.55) 0%, transparent 70%);
  pointer-events: none;
}
.hero-stat-item {
  display: flex; align-items: center; gap: 14px;
  padding-inline: 28px;
  border-left: 1px solid rgba(255,255,255,.12);
}
.hero-stat-item:first-child { border-left: none; }
.hero-stat-icon {
  width: 42px; height: 42px; flex-shrink: 0;
  border-radius: 50%;
  background: rgba(242,169,61,.12);
  border: 1px solid rgba(242,169,61,.4);
  color: var(--gold);
  display: grid; place-items: center;
  font-size: 1rem;
}
.hero-stat-num { display: block; font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; color: #fff; text-align: left; }
.hero-stat-label { display: block; font-size: .74rem; color: var(--on-green-muted); text-transform: uppercase; letter-spacing: .03em; text-align: left; }
.stat { display: flex; flex-direction: column; gap: 4px; }
.stat-num { font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; color: #fff; }
.stat-label { font-size: .82rem; color: var(--on-green-muted); }

.hero-visual { position: relative; display: flex; align-items: center; justify-content: center; min-height: 380px; }

.code-card {
  position: relative;
  width: 100%;
  max-width: 340px;
  background: var(--green-deep);
  border-radius: var(--radius-m);
  overflow: hidden;
  box-shadow: var(--shadow-lift);
  border: 1px solid #26402F;
}
.code-card-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: #1B3325; }
.code-card-bar .dot { width: 9px; height: 9px; border-radius: 50%; }
.code-card-bar .dot.red { background: #FF5F57; }
.code-card-bar .dot.yellow { background: #FEBC2E; }
.code-card-bar .dot.green { background: #28C840; }
.code-card-name { margin-left: 8px; font-family: var(--font-mono); font-size: .72rem; color: #8FA491; }
.code-card-body { margin: 0; padding: 16px; font-family: var(--font-mono); font-size: .74rem; line-height: 1.7; color: #D5E0D6; overflow-x: auto; }
.code-card-body .c-kw { color: var(--gold); }
.code-card-body .c-fn { color: #9FD6B4; }
.code-card-body .c-str { color: #EFCB86; }

/* marquee */
.marquee { position: relative; z-index: 1; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--surface); overflow: hidden; padding-block: 16px; }
.marquee-track { display: flex; align-items: center; gap: 22px; white-space: nowrap; width: max-content; animation: scroll-left 34s linear infinite; }
.marquee-track span { font-family: var(--font-mono); font-size: .85rem; color: var(--muted); }
.marquee-track .sep { color: var(--gold); font-size: .7rem; }
@keyframes scroll-left { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* =========================== SECTION SHELL =========================== */
.section { padding-block: 96px; }
.section-alt { background: var(--surface); border-block: 1px solid var(--border); }

/* =========================== SERVICES =========================== */
.service-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius-m); overflow: hidden; }
.service-row { background: var(--paper); padding: 32px; display: flex; gap: 18px; transition: background .25s var(--ease); }
.service-row:hover { background: var(--green-tint); }
.service-icon {
  flex-shrink: 0; width: 46px; height: 46px; border-radius: 12px;
  display: grid; place-items: center;
  background: var(--green); color: var(--gold); font-size: 1.15rem;
}
.service-body h3 { font-size: 1.08rem; margin-bottom: 8px; }
.service-body p { color: var(--muted); font-size: .95rem; max-width: 42ch; }

/* =========================== PRICING =========================== */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; align-items: stretch; }

.price-card {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius-l);
  padding: 36px 30px;
  display: flex;
  flex-direction: column;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.price-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); }

.price-card h3 { font-size: 1.15rem; margin-bottom: 8px; }
.price-desc { color: var(--muted); font-size: .9rem; margin-bottom: 22px; min-height: 2.6em; }

.price-amount { font-family: var(--font-display); font-size: 2.4rem; font-weight: 700; color: var(--green); margin-bottom: 24px; display: flex; align-items: baseline; gap: 4px; }
.price-amount .currency { font-size: 1.1rem; font-weight: 600; }
.price-amount .period { font-family: var(--font-body); font-size: .8rem; font-weight: 500; color: var(--muted); margin-left: 6px; }

.price-features { display: flex; flex-direction: column; gap: 13px; margin-bottom: 28px; flex: 1; }
.price-features li { display: flex; align-items: flex-start; gap: 10px; font-size: .92rem; color: var(--ink); }
.price-features i { color: var(--green); margin-top: 3px; font-size: .8rem; }

.price-card.is-featured {
  background: var(--green);
  border-color: var(--green);
  transform: scale(1.03);
}
.price-card.is-featured:hover { transform: scale(1.03) translateY(-4px); }
.price-card.is-featured h3,
.price-card.is-featured .price-amount { color: #fff; }
.price-card.is-featured .price-desc,
.price-card.is-featured .price-amount .period { color: var(--on-green-muted); }
.price-card.is-featured .price-features li { color: #fff; }
.price-card.is-featured .price-features i { color: var(--gold); }

.price-badge {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--gold); color: var(--ink);
  font-size: .74rem; font-weight: 700; letter-spacing: .01em;
  padding: 6px 16px; border-radius: 999px;
  box-shadow: var(--shadow-gold);
}

/* =========================== ABOUT =========================== */
.about-inner { display: grid; grid-template-columns: .85fr 1.15fr; gap: 64px; align-items: center; }

.about-visual { position: relative; max-width: 380px; }
.about-photo-frame { border-radius: var(--radius-l); overflow: hidden; aspect-ratio: 3/3.6; box-shadow: var(--shadow-card); }
.about-photo { width: 100%; height: 100%; object-fit: cover; }
.about-badge {
  position: absolute; right: -20px; bottom: 26px;
  display: flex; align-items: center; gap: 12px;
  background: var(--gold); color: var(--ink);
  padding: 14px 18px; border-radius: var(--radius-m);
  box-shadow: var(--shadow-gold);
}
.about-badge i { color: var(--green); font-size: 1.2rem; }
.about-badge strong { display: block; font-family: var(--font-display); font-size: .95rem; }
.about-badge span { font-size: .78rem; color: #4E3814; }

.about-copy h2 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.1rem); margin-bottom: 20px; }
.about-copy p { color: var(--muted); max-width: 58ch; margin-bottom: 16px; }

.about-stats { display: flex; gap: 40px; margin: 28px 0 32px; }
.about-stat { display: flex; flex-direction: column; gap: 4px; }
.about-stat .num { font-family: var(--font-display); font-weight: 700; font-size: 1.6rem; color: var(--green); }
.about-stat .label { font-size: .82rem; color: var(--muted); }

/* =========================== HOMEPAGE ABOUT (dark, image left / text right) =========================== */
.about-dark { background: var(--green-deep); padding-block: 96px; }
.about-dark-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 60px; align-items: center; }

.about-dark-media { border-radius: var(--radius-l); overflow: hidden; box-shadow: var(--shadow-lift); aspect-ratio: 4/3.4; }
.about-dark-image { width: 100%; height: 100%; object-fit: cover; display: block; }

.about-dark-eyebrow { font-family: var(--font-mono); font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--gold); margin-bottom: 16px; }
.about-dark-title { color: #fff; font-size: clamp(1.7rem, 1.3rem + 1.8vw, 2.4rem); margin-bottom: 22px; }
.about-dark-content p { color: var(--on-green-muted); font-size: 1.02rem; line-height: 1.75; margin-bottom: 20px; }
.about-dark-content .btn { margin-top: 8px; }

/* =========================== TOOLS =========================== */
.tool-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.tool-card {
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  background: var(--paper); border: 1px solid var(--border); border-radius: var(--radius-m);
  padding: 26px 10px;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.tool-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); border-color: var(--gold); }
.tool-card img { width: 32px; height: 32px; object-fit: contain; }
.tool-card i { font-size: 1.8rem; color: var(--green); height: 32px; line-height: 32px; }
.tool-card span { font-size: .78rem; font-weight: 600; color: var(--muted); }

/* =========================== WORK / PROJECTS =========================== */
.project-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.project-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-m); overflow: hidden; transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.project-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-card); }

.mockup { background: var(--paper); }
.mockup-bar { display: flex; gap: 5px; padding: 10px 12px; border-bottom: 1px solid var(--border); }
.mockup-bar span { width: 7px; height: 7px; border-radius: 50%; background: var(--border); }
.mockup-body { padding: 16px; aspect-ratio: 16/11; display: flex; flex-direction: column; gap: 10px; }

.project-thumb-link { display: block; background: var(--paper); }
.project-thumb { width: 100%; aspect-ratio: 16/10; object-fit: contain; display: block; }

.m-nav { height: 10px; width: 40%; background: var(--border); border-radius: 4px; }
.m-hero { flex: 1; background: var(--green-tint); border-radius: 8px; }
.m-hero.small { flex: none; height: 46%; }
.m-row { display: flex; gap: 8px; height: 34%; }
.m-row.two .m-box { flex: 1; }
.m-box { flex: 1; background: var(--border); border-radius: 8px; }
.m-split { flex: 1; display: flex; gap: 10px; }
.m-block { width: 42%; background: var(--green-tint); border-radius: 8px; }
.m-lines { flex: 1; display: flex; flex-direction: column; gap: 8px; justify-content: center; }
.m-lines div { height: 9px; background: var(--border); border-radius: 4px; }
.m-lines div:nth-child(1) { width: 90%; }
.m-lines div:nth-child(2) { width: 75%; }
.m-lines div:nth-child(3) { width: 55%; }
.m-grid { flex: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.m-grid div { background: var(--border); border-radius: 8px; }
.m-grid div:first-child { background: var(--green-tint); }
.m-portfolio { flex: 1; display: grid; grid-template-columns: 1.4fr 1fr; grid-template-rows: 1fr 1fr; gap: 8px; }
.m-tile { background: var(--border); border-radius: 8px; }
.m-tile.big { grid-row: span 2; background: var(--green-tint); }
.m-form { flex: 1; display: flex; flex-direction: column; gap: 10px; justify-content: center; }
.m-field { height: 16px; background: var(--border); border-radius: 5px; }
.m-field.short { width: 50%; background: var(--gold); opacity: .6; }

.project-info { padding: 22px; }
.project-info h3 { font-size: 1.02rem; margin-bottom: 8px; }
.project-info p { color: var(--muted); font-size: .9rem; margin-bottom: 14px; }
.tags { display: flex; gap: 8px; flex-wrap: wrap; }
.tags span { font-family: var(--font-mono); font-size: .7rem; color: var(--green); background: var(--green-tint); padding: 4px 10px; border-radius: 999px; }

/* =========================== BLOG =========================== */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.blog-card { background: var(--paper); border: 1px solid var(--border); border-radius: var(--radius-m); overflow: hidden; transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.blog-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-card); }

.blog-media { aspect-ratio: 16/10; display: grid; place-items: center; font-size: 2.4rem; color: var(--gold); background: var(--green); overflow: hidden; }
.blog-media-2 { background: var(--green-deep); }
.blog-media-3 { background: #234931; }
.blog-thumb { width: 100%; height: 100%; object-fit: cover; display: block; }

.blog-body { padding: 24px; }
.blog-tag { display: inline-block; font-family: var(--font-mono); font-size: .7rem; color: var(--green); background: var(--green-tint); padding: 4px 10px; border-radius: 999px; margin-bottom: 14px; }
.blog-body h3 { font-size: 1.05rem; margin-bottom: 10px; line-height: 1.3; }
.blog-body p { color: var(--muted); font-size: .9rem; margin-bottom: 16px; }
.blog-meta { font-size: .78rem; color: var(--muted); display: flex; align-items: center; gap: 6px; margin-bottom: 16px; }
.blog-meta .dot-sep { color: var(--border); }
.blog-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: .88rem; color: var(--green); }
.blog-link i { font-size: .75em; transition: transform .25s var(--ease); }
.blog-link:hover i { transform: translateX(3px); }
.blog-link:hover { color: var(--gold-deep); }

/* =========================== TESTIMONIALS =========================== */
.testimonial-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.testimonial { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-m); padding: 30px; }
.quote-icon { color: var(--gold); font-size: 1.3rem; margin-bottom: 18px; }
.testimonial p { font-size: .98rem; color: var(--ink); margin-bottom: 22px; }
.testimonial footer { display: flex; flex-direction: column; gap: 2px; }
.t-name { font-weight: 600; font-size: .92rem; }
.t-role { font-size: .8rem; color: var(--muted); }

/* =========================== FAQ =========================== */
.faq-section { background: var(--green); }

.faq-list { max-width: 820px; margin-inline: auto; display: flex; flex-direction: column; gap: 2px; }
.faq-item { border-bottom: 1px solid var(--on-green-border); }
.faq-trigger {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding-block: 22px; text-align: left;
  font-family: var(--font-display); font-weight: 600; font-size: 1rem;
  color: #fff;
}
.faq-icon { color: var(--gold); transition: transform .3s var(--ease); flex-shrink: 0; font-size: .85rem; }
.faq-item.is-open .faq-icon { transform: rotate(135deg); }
.faq-item.is-open .faq-trigger { color: var(--gold); }
.faq-panel { max-height: 0; overflow: hidden; transition: max-height .35s var(--ease); }
.faq-item.is-open .faq-panel { max-height: 220px; }
.faq-panel p { color: var(--on-green-muted); padding-bottom: 24px; max-width: 62ch; font-size: .95rem; }

/* =========================== CONTACT =========================== */
.contact-inner { display: grid; grid-template-columns: .9fr 1.1fr; gap: 60px; }

.contact-copy h2 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.1rem); margin: 0 0 16px; }
.contact-copy > p { color: var(--muted); max-width: 46ch; }

.contact-list { margin: 30px 0; display: flex; flex-direction: column; gap: 16px; }
.contact-list li { display: flex; align-items: center; gap: 14px; font-size: .95rem; }
.contact-list i { width: 20px; color: var(--green); }
.contact-list a { font-weight: 600; }

.social-row { display: flex; gap: 12px; }
.social-row a { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 10px; background: var(--paper); border: 1px solid var(--border); transition: transform .25s var(--ease), background .25s var(--ease), color .25s var(--ease); }
.social-row a:hover { background: var(--green); color: var(--gold); transform: translateY(-3px); }

.contact-form { background: var(--paper); border: 1px solid var(--border); border-radius: var(--radius-l); padding: 34px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: .82rem; font-weight: 600; margin-bottom: 7px; }
.field input, .field textarea {
  width: 100%; padding: 12px 14px; border-radius: var(--radius-s); border: 1.5px solid var(--border); background: var(--surface);
  transition: border-color .2s var(--ease);
  resize: vertical;
}
.field input:focus, .field textarea:focus { border-color: var(--green); outline: none; }
.form-note { margin-top: 14px; font-size: .88rem; min-height: 1.2em; color: var(--green); font-weight: 600; }

/* =========================== ABOUT PAGE HERO (image + overlay) =========================== */
.about-hero {
  position: relative;
  background-image: url('https://images.unsplash.com/photo-1756946565798-382eb6bfeda2?fm=jpg&q=70&w=2000&auto=format&fit=crop');
  background-size: cover;
  background-position: center;
  padding-block: 118px 80px;
  text-align: center;
  overflow: hidden;
}
.about-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(15,28,20,.93) 25%, rgba(15,28,20,.78) 100%);
  z-index: 0;
}
.about-hero .wrap { position: relative; z-index: 1; }

/* =========================== HOW I WORK — PROCESS STEPS =========================== */
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.process-step {
  text-align: center;
  padding: 32px 22px;
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius-m);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.process-step:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); }
.process-num {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--green); color: var(--gold);
  display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 700; font-size: 1.1rem;
  margin: 0 auto 18px;
}
.process-step h3 { font-size: 1.05rem; margin-bottom: 10px; }
.process-step p { color: var(--muted); font-size: .9rem; }

/* =========================== WORK PAGE PORTFOLIO GRID =========================== */
.work-head-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; margin-bottom: 44px; flex-wrap: wrap; }
.work-head-row h2 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.1rem); margin: 0; }
.work-head-sub { max-width: 380px; color: var(--muted); font-size: .98rem; }

.work-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.work-item { display: flex; flex-direction: column; gap: 14px; }

.work-shot {
  display: block;
  aspect-ratio: 3/5;
  border-radius: var(--radius-m);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  background-size: cover;
  background-repeat: no-repeat;
  background-position: top center;
  background-color: var(--surface);
  transition: background-position 5s ease, box-shadow .3s var(--ease);
}
.work-shot:hover {
  background-position: bottom center;
  transition-duration: 9s;
  box-shadow: var(--shadow-lift);
}

.work-item-label { font-weight: 700; font-size: .95rem; color: var(--ink); text-align: center; }

/* =========================== PRICING DISCLAIMER =========================== */
.pricing-disclaimer { text-align: center; margin-top: 32px; color: var(--muted); font-size: .88rem; }
.pricing-disclaimer i { color: var(--gold); margin-right: 6px; }
.pricing-disclaimer a { color: var(--green); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.pricing-disclaimer a:hover { color: var(--gold-deep); }

/* =========================== WHAT EVERY PACKAGE DELIVERS =========================== */
.package-delivers { background: var(--green-deep); padding-block: 80px; }
.package-delivers-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: end; margin-bottom: 60px; }
.package-delivers-grid h2 { font-size: clamp(1.6rem, 1.2rem + 1.8vw, 2.3rem); margin-top: 14px; }
.package-delivers-sub { font-size: 1.02rem; line-height: 1.7; }

.package-delivers-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.package-item { border-top: 1px solid var(--on-green-border); padding-top: 24px; }
.package-num { display: block; font-family: var(--font-mono); font-size: .95rem; color: var(--gold); margin-bottom: 14px; }
.package-item h3 { color: #fff; font-size: 1.1rem; margin-bottom: 10px; }
.package-item p { color: var(--on-green-muted); font-size: .92rem; line-height: 1.65; }

/* =========================== PRICING HERO =========================== */
.pricing-hero {
  position: relative;
  background-color: var(--green-deep);
  background-size: cover;
  background-position: center;
  padding-block: 118px 80px;
  text-align: center;
  overflow: hidden;
}
.pricing-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at center bottom, rgba(242,169,61,.35) 0%, rgba(242,169,61,.1) 45%, transparent 72%),
    linear-gradient(180deg, rgba(15,28,20,.90) 0%, rgba(15,28,20,.84) 100%);
  pointer-events: none;
}
.pricing-hero .wrap { position: relative; z-index: 1; }
.pricing-hero-title { color: #fff; font-size: clamp(2rem, 1.4rem + 3vw, 3.4rem); line-height: 1.15; margin-bottom: 22px; }
.pricing-hero-gradient {
  background: linear-gradient(90deg, var(--gold) 0%, #FFDA9E 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.pricing-hero-sub { max-width: 620px; margin-inline: auto; color: var(--on-green-muted); font-size: 1.08rem; margin-bottom: 36px; }
.pricing-hero-actions { display: flex; align-items: center; justify-content: center; gap: 16px; flex-wrap: wrap; }

/* Entrance animation — plays once on load for hero content, since
   heroes are visible immediately and don't need scroll-triggering.
   Shared by the Pricing, Work, and About page heroes. */
@keyframes heroFadeUp { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: translateY(0); } }
.pricing-hero .eyebrow { animation: heroFadeUp .8s var(--ease) both; }
.pricing-hero-title { animation: heroFadeUp .8s var(--ease) .12s both; }
.pricing-hero-sub { animation: heroFadeUp .8s var(--ease) .24s both; }
.pricing-hero-actions { animation: heroFadeUp .8s var(--ease) .36s both; }

.btn-outline-light { border: 1.5px solid rgba(255,255,255,.5); color: #fff; background: transparent; }
.btn-outline-light:hover { background: #fff; color: var(--green); border-color: #fff; }

/* =========================== CONTACT FORM 7 STYLING =========================== */
.wpcf7-not-valid-tip { display: block; color: #E14545; font-size: .82rem; margin-top: 6px; }
.wpcf7-response-output {
  margin-top: 16px; padding: 12px 16px;
  border-radius: var(--radius-s); border: 1px solid var(--border);
  font-size: .88rem; font-weight: 600;
}
.wpcf7-mail-sent-ok { color: var(--green); background: var(--green-tint); border-color: var(--green); }
.wpcf7-validation-errors, .wpcf7-mail-sent-ng, .wpcf7-spam-blocked { color: #E14545; background: #FDEDED; border-color: #E14545; }
.wpcf7-form-control-wrap { display: block; }
.wpcf7 .btn[disabled] { opacity: .7; cursor: not-allowed; }
.wpcf7-spinner { margin-left: 10px; }

/* =========================== CURRENCY TOGGLE =========================== */
.currency-toggle {
  display: flex; justify-content: center; width: max-content;
  gap: 4px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 999px; padding: 5px;
  margin: 36px auto 0;
}
.currency-btn { padding: 10px 22px; border-radius: 999px; font-size: .85rem; font-weight: 700; letter-spacing: .02em; color: var(--muted); transition: background-color .2s var(--ease), color .2s var(--ease); }
.currency-btn.is-active { background: var(--green); color: #fff; }

/* =========================== PRICING CARDS V2 (dark header) =========================== */
.pricing-grid-v2 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; align-items: stretch; }

.price-card-v2 {
  border-radius: var(--radius-l);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--paper);
  display: flex; flex-direction: column;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.price-card-v2:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); }
.price-card-v2.is-featured { border-color: var(--gold); box-shadow: var(--shadow-gold); }

.price-card-head { position: relative; background: var(--green); color: #fff; padding: 30px 28px 26px; }
.price-label { display: block; font-family: var(--font-mono); font-size: .78rem; letter-spacing: .04em; text-transform: uppercase; color: var(--on-green-muted); margin-bottom: 18px; }
.price-card-head .price-badge { position: absolute; top: 24px; right: 24px; transform: none; background: var(--gold); color: var(--ink); }
.price-amount-v2 { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.price-value { font-family: var(--font-display); font-weight: 700; font-size: 1.9rem; color: #fff; }
.price-amount-v2 .period { font-size: .78rem; color: var(--on-green-muted); }

.price-card-body { background: var(--paper); padding: 28px; display: flex; flex-direction: column; flex: 1; }
.price-card-body .price-desc { color: var(--muted); font-size: .9rem; margin-bottom: 20px; min-height: 2.6em; }
.price-features-v2 { display: flex; flex-direction: column; gap: 13px; margin-bottom: 26px; flex: 1; }
.price-features-v2 li { display: flex; align-items: flex-start; gap: 10px; font-size: .92rem; color: var(--ink); }
.price-features-v2 i { width: 20px; height: 20px; flex-shrink: 0; border-radius: 50%; background: var(--green-tint); color: var(--green); display: grid; place-items: center; font-size: .65rem; margin-top: 1px; }

/* =========================== STATIC PAGE HERO =========================== */
.page-hero { background: var(--green); padding-block: 100px 56px; text-align: center; }
.page-hero .post-back { justify-content: center; }
.page-hero .post-title { text-align: center; }
.page-hero-sub { max-width: 560px; margin-inline: auto; color: var(--on-green-muted); font-size: 1.02rem; }

/* =========================== SPLIT PILL BUTTON (icon capsule) =========================== */
.btn-split {
  display: inline-flex; align-items: center; gap: 16px;
  background: var(--green); color: #fff;
  border-radius: 999px;
  padding: 6px 6px 6px 26px;
  font-weight: 600; font-size: .95rem;
  transition: background-color .25s var(--ease), transform .25s var(--ease);
}
.btn-split:hover { background: var(--green-deep); transform: translateY(-2px); }
.btn-split-icon {
  width: 38px; height: 38px; flex-shrink: 0;
  border-radius: 50%;
  background: var(--gold); color: var(--ink);
  display: grid; place-items: center;
  transition: transform .25s var(--ease);
}
.btn-split:hover .btn-split-icon { transform: translateX(3px); }

/* =========================== SINGLE POST ============================ */
.post-hero { background: var(--green); padding-block: 100px 44px; }
.post-hero-inner { max-width: 760px; margin-inline: auto; }
.post-back { display: inline-flex; align-items: center; gap: 8px; color: var(--on-green-muted); font-size: .88rem; font-weight: 600; margin-bottom: 22px; transition: color .2s var(--ease); }
.post-back:hover { color: var(--gold); }
.post-hero-tag { margin-bottom: 16px; background: rgba(255,255,255,.12); color: var(--gold); }
.post-title { color: #fff; font-size: clamp(1.7rem, 1.3rem + 2vw, 2.6rem); margin-bottom: 18px; }
.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; color: var(--on-green-muted); font-size: .88rem; }
.post-meta .dot-sep { color: rgba(255,255,255,.25); }

.post-featured-wrap { margin-top: -32px; margin-bottom: 8px; }
.post-featured-frame { max-width: 760px; margin-inline: auto; border-radius: var(--radius-l); overflow: hidden; box-shadow: var(--shadow-card); aspect-ratio: 16/9; }
.post-featured-img { width: 100%; height: 100%; object-fit: cover; display: block; }

.post-body-section { padding-top: 56px; }

.entry-content { max-width: 720px; margin-inline: auto; font-size: 1.05rem; color: var(--ink); }
.entry-content > * + * { margin-top: 1.3em; }
.entry-content h2 { font-size: 1.5rem; margin-top: 2em; }
.entry-content h3 { font-size: 1.2rem; margin-top: 1.8em; }
.entry-content p { line-height: 1.75; color: #2A2C27; }
.entry-content a { color: var(--green); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.entry-content a:hover { color: var(--gold-deep); }
.entry-content ul, .entry-content ol { padding-left: 1.4em; }
.entry-content ul { list-style: disc; }
.entry-content ol { list-style: decimal; }
.entry-content li + li { margin-top: .5em; }
.entry-content blockquote { border-left: 3px solid var(--gold); padding-left: 20px; color: var(--muted); font-style: italic; }
.entry-content img { border-radius: var(--radius-m); }
.entry-content code { background: var(--surface); padding: 2px 6px; border-radius: 4px; font-family: var(--font-mono); font-size: .88em; }

.post-cta {
  max-width: 720px; margin: 64px auto 0;
  background: var(--green); color: #fff;
  border-radius: var(--radius-l);
  padding: 40px 36px;
  text-align: center;
}
.post-cta h3 { color: #fff; font-size: 1.3rem; margin-bottom: 10px; }
.post-cta p { color: var(--on-green-muted); margin-bottom: 22px; }

/* =========================== FOOTER =========================== */
.site-footer { background: var(--green-deep); color: var(--on-green-muted); }

.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding-block: 64px 44px; }

.footer-brand .brand { margin-bottom: 16px; }
.footer-note { font-size: .92rem; max-width: 30ch; margin-bottom: 22px; }
.footer-social a { background: transparent; border-color: var(--on-green-border); color: var(--on-green-muted); }
.footer-social a:hover { background: var(--gold); color: var(--green-deep); border-color: var(--gold); }

.footer-col h4 { color: #fff; font-size: .92rem; margin-bottom: 18px; }
.footer-links { display: flex; flex-direction: column; gap: 12px; }
.footer-links a { font-size: .9rem; transition: color .2s var(--ease); }
.footer-links a:hover { color: var(--gold); }
.footer-contact li { display: flex; align-items: center; gap: 10px; font-size: .88rem; }
.footer-contact i { color: var(--gold); width: 16px; }
.footer-cta { margin-top: 20px; }

.footer-bottom {
  display: flex; align-items: center; justify-content: space-between;
  padding-block: 22px; font-size: .82rem;
  border-top: 1px solid var(--on-green-border);
}

.to-top {
  position: fixed; right: 24px; bottom: 24px;
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--green); color: var(--gold);
  display: grid; place-items: center;
  box-shadow: var(--shadow-card);
  opacity: 0; pointer-events: none; transform: translateY(10px);
  transition: opacity .25s var(--ease), transform .25s var(--ease), background .25s var(--ease);
  z-index: 90;
}
.to-top.is-visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
.to-top:hover { background: var(--gold); color: var(--ink); }

/* =========================== SCROLL REVEAL =========================== */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* =========================== RESPONSIVE =========================== */
@media (max-width: 1024px) {
  .service-list { grid-template-columns: 1fr; }
  .tool-grid { grid-template-columns: repeat(4, 1fr); }
  .project-grid { grid-template-columns: repeat(2, 1fr); }
  .work-grid { grid-template-columns: repeat(2, 1fr); }
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; }
  .price-card.is-featured { transform: none; order: -1; }
  .price-card.is-featured:hover { transform: translateY(-4px); }
  .pricing-grid-v2 { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; }
  .price-card-v2.is-featured { order: -1; }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonial-grid { grid-template-columns: 1fr; }
  .about-inner, .contact-inner { grid-template-columns: 1fr; }
  .about-dark-grid { grid-template-columns: 1fr; }
  .package-delivers-grid { grid-template-columns: 1fr; gap: 20px; }
  .package-delivers-row { grid-template-columns: 1fr; }
  .about-visual { margin-inline: auto; }
  .hero-visual { margin-inline: auto; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 860px) {
  .main-nav {
    position: fixed; inset: 74px 16px auto 16px;
    background: var(--green); border: 1px solid var(--on-green-border); border-radius: var(--radius-m);
    box-shadow: var(--shadow-lift); padding: 10px;
    flex-direction: column; gap: 2px;
    transform: translateY(-12px); opacity: 0; pointer-events: none;
    transition: transform .25s var(--ease), opacity .25s var(--ease);
  }
  .main-nav.is-open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .main-nav a { display: block; padding: 12px 14px; border-radius: 8px; }
  .main-nav a:hover { background: rgba(255,255,255,.06); }
  .nav-toggle { display: grid; }
  .header-actions .btn-sm { display: none; }

  .hero-inner { grid-template-columns: 1fr; padding-block: 40px 90px; }
  .hero-visual { max-width: 420px; margin-inline: auto; order: -1; margin-bottom: 20px; }
  .code-card { margin-top: 20px; }
}

@media (max-width: 640px) {
  .wrap { padding-inline: 18px; }
  .section { padding-block: 64px; }
  .tool-grid { grid-template-columns: repeat(3, 1fr); }
  .process-grid { grid-template-columns: 1fr; }
  .project-grid { grid-template-columns: 1fr; }
  .work-grid { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-stats { gap: 26px; flex-wrap: wrap; }
  .hero-stats-bar { flex-direction: column; gap: 18px; align-items: flex-start; }
  .hero-stat-item { border-left: none; padding-inline: 0; width: 100%; }
  .about-badge { position: static; margin-top: -30px; margin-inline: 16px; }
  .footer-top { grid-template-columns: 1fr; padding-block: 48px 32px; }
  .footer-bottom { flex-direction: column; gap: 10px; text-align: center; }
}
