/*
Theme Name: 000air
Theme URI: https://000air.com.au
Author: Senior WP Architect
Author URI: https://000air.com.au
Description: Custom, plugin-free, block-enhanced classic-hybrid WordPress theme for 000air HVAC. Licensed, punctual, straight-talking comfort experts in Sydney, NSW.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: 000air
Tags: custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready, block-patterns, block-styles, wide-blocks
*/

/* ==========================================================================
   1. TOKENS
   ========================================================================== */
:root {
  /* Colors */
  --accent: #0079C1;
  --accent-h: #00619B;
  --ok: #22c55e;
  --bg: #F7FAFC;
  --surface: #FFFFFF;
  --ink: #0E1A24;
  --ink-2: #3C4E5C;
  --mut: #7A8B99;
  --line: #E2E8F0;
  --panel: #0B1F2A;
  --panel-ink: #EAF4FB;
  --panel-mut: rgba(234, 244, 251, 0.62);
  --panel-line: rgba(234, 244, 251, 0.14);

  /* Typography */
  --serif: 'Space Grotesk', sans-serif; /* Used for headings per brand pairing */
  --sans: 'Inter', sans-serif;
  --mono: 'Fira Code', monospace;

  /* Layout & Spacing */
  --w: 1280px;
  --pad: 1.5rem;
  --nav: 80px;
  
  /* Radii */
  --r-s: 0.5rem;
  --r-m: 1rem;
  --r-l: 1.5rem;
  --pill: 9999px;

  /* Effects */
  --sh: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --sh-l: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  --e: cubic-bezier(0.4, 0, 0.2, 1);
  --t: 0.3s;
}

/* Gradients */
.grad-1 { background: linear-gradient(135deg, #E3F1FB 0%, #BBDCF2 100%); }
.grad-2 { background: linear-gradient(135deg, #0B3245 0%, #2E7EA6 100%); }
.grad-3 { background: linear-gradient(135deg, #0090D9 0%, #00619B 100%); }
.grad-4 { background: linear-gradient(135deg, #10222E 0%, #2B5266 100%); }
.grad-5 { background: linear-gradient(135deg, #EDF6FC 0%, #CFE6F5 100%); }

/* ==========================================================================
   2. RESET + BASE
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background-color: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  position: relative;
}

/* Grain Overlay */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='1'/%3E%3C/svg%3E");
  opacity: 0.05;
  pointer-events: none;
  z-index: 9999;
}
body.ebw-no-grain::after { display: none; }

::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* Scroll Reveal */
.js .reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s var(--e), transform 0.8s var(--e);
}
.js .reveal.in {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
}

/* ==========================================================================
   3. UTILITIES & BUTTONS
   ========================================================================== */
.wrap { max-width: var(--w); margin-inline: auto; padding-inline: var(--pad); }
.sec { padding-block: 5rem; }
.sec--flush { padding-block: 0; }
.sec__head { margin-bottom: 3rem; }
.sec__head--center { text-align: center; max-width: 700px; margin-inline: auto; }
.sec__title { font-family: var(--serif); font-size: clamp(2rem, 4vw, 3rem); font-weight: 700; color: var(--ink); margin: 0 0 1rem; line-height: 1.2; }
.sec__desc { font-size: 1.125rem; color: var(--ink-2); margin: 0; }
.eyebrow { font-size: 0.875rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--accent); margin-bottom: 0.5rem; display: block; }
.em { color: var(--accent); font-style: normal; font-weight: 600; }
.tag { display: inline-block; padding: 0.25rem 0.75rem; background: var(--panel-mut); color: var(--panel); border-radius: var(--pill); font-size: 0.875rem; font-weight: 600; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.875rem 1.75rem; border-radius: var(--r-m); font-weight: 600; text-decoration: none;
  transition: all var(--t) var(--e); border: 2px solid transparent; cursor: pointer; font-size: 1rem;
}
.btn--fill { background: var(--accent); color: #fff; }
.btn--fill:hover { background: var(--accent-h); }
.btn--line { background: transparent; border-color: var(--line); color: var(--ink); }
.btn--line:hover { border-color: var(--accent); color: var(--accent); }
.btn--accent { background: var(--accent); color: #fff; }
.btn--white { background: #fff; color: var(--ink); }
.btn--white:hover { background: var(--bg); }
.btn--sm { padding: 0.5rem 1rem; font-size: 0.875rem; border-radius: var(--r-s); }
.btn__ico { transition: transform var(--t) var(--e); }
.btn:hover .btn__ico { transform: translateX(4px); }

/* WP Block Bridge */
.wp-block-button__link {
  background: var(--accent) !important; color: #fff !important; border-radius: var(--r-m) !important;
  padding: 0.875rem 1.75rem !important; font-weight: 600 !important; text-decoration: none !important;
  transition: background var(--t) var(--e) !important; border: none !important;
}
.wp-block-button__link:hover { background: var(--accent-h) !important; }
.wp-block-group__inner-container { display: contents; }

/* ==========================================================================
   4. HEADER & NAV
   ========================================================================== */
.header { position: fixed; top: 1rem; left: 0; right: 0; z-index: 1000; transition: top var(--t) var(--e); }
.header.is-scroll { top: 0.5rem; }
.header.is-scroll .header__bar { background: rgba(255, 255, 255, 0.85); backdrop-filter: blur(12px); border-color: var(--line); }
.header__bar {
  display: flex; align-items: center; flex-wrap: nowrap; gap: 1rem;
  max-width: var(--w); margin-inline: auto; padding: 0.75rem 1.5rem;
  background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(8px);
  border: 1px solid var(--line); border-radius: var(--pill);
  box-shadow: var(--sh); transition: all var(--t) var(--e);
}
.logo { display: flex; align-items: center; gap: 0.5rem; text-decoration: none; color: var(--ink); font-family: var(--serif); font-weight: 800; font-size: 1.5rem; }
.logo__dot { color: var(--accent); }
.logo--img { height: auto; max-height: 40px; width: auto; display: block; }
.nav { margin-inline: auto; }
.nav__list { display: flex; gap: 2rem; list-style: none; margin: 0; padding: 0; }
.nav__list a { text-decoration: none; color: var(--mut); font-weight: 500; position: relative; transition: color var(--t) var(--e); }
.nav__list a:hover, .nav__list a.current { color: var(--ink); }
.nav__list a::after { content: ''; position: absolute; bottom: -4px; left: 0; width: 0; height: 2px; background: var(--accent); transition: width var(--t) var(--e); }
.nav__list a:hover::after, .nav__list a.current::after { width: 100%; }

.sub-menu {
  position: absolute; top: 100%; left: 0; background: var(--panel); color: var(--panel-ink);
  padding: 1rem; border-radius: var(--r-m); min-width: 200px; opacity: 0; visibility: hidden;
  transform: translateY(10px); transition: all var(--t) var(--e); list-style: none; box-shadow: var(--sh-l);
}
.nav__list li:hover .sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.sub-menu a { color: var(--panel-ink); display: block; padding: 0.5rem 0; }
.sub-menu a:hover { color: #fff; }

.header__cta { display: flex; align-items: center; gap: 1rem; }
.status { display: flex; align-items: center; gap: 0.5rem; font-size: 0.875rem; font-weight: 600; color: var(--ink-2); }
.status__dot { width: 8px; height: 8px; background: var(--ok); border-radius: 50%; animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.4); } 70% { box-shadow: 0 0 0 6px rgba(34, 197, 94, 0); } 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); } }

.burger {
  display: none; width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line);
  background: transparent; cursor: pointer; position: relative; flex-direction: column;
  align-items: center; justify-content: center; gap: 5px; transition: all var(--t) var(--e);
}
.burger:hover { background: var(--bg); border-color: var(--accent); }
.burger span { display: block; width: 20px; height: 2px; background: var(--ink); transition: all var(--t) var(--e); }
.burger span:nth-child(2) { width: 14px; }
.burger:hover span:nth-child(2) { width: 20px; }

/* ==========================================================================
   5. MOBILE MENU
   ========================================================================== */
.mobile-menu {
  position: fixed; inset: 0; background: var(--panel); z-index: 1001;
  display: flex; flex-direction: column; padding: 2rem;
  transform: translateX(100%); transition: transform 0.4s var(--e);
}
.mobile-menu.is-open { transform: translateX(0); }
.mobile-menu__inner { display: flex; flex-direction: column; height: 100%; }
.mobile-menu__top { display: flex; justify-content: flex-end; margin-bottom: 2rem; }
.mobile-menu__close {
  width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--panel-line);
  background: transparent; color: var(--panel-ink); cursor: pointer; display: flex;
  align-items: center; justify-content: center; font-size: 1.5rem; transition: all var(--t) var(--e);
}
.mobile-menu__close:hover { background: var(--accent); color: #fff; border-color: var(--accent); transform: rotate(90deg); }
.mobile-menu__nav { flex: 1; overflow-y: auto; }
.mobile-menu__list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 1.5rem; }
.mobile-menu__list a { color: var(--panel-ink); text-decoration: none; font-family: var(--serif); font-size: 1.5rem; font-weight: 600; display: block; opacity: 0; transform: translateX(20px); transition: all 0.4s var(--e); }
.mobile-menu.is-open .mobile-menu__list a { opacity: 1; transform: translateX(0); }
.mobile-menu__list a:nth-child(1) { transition-delay: 0.1s; }
.mobile-menu__list a:nth-child(2) { transition-delay: 0.15s; }
.mobile-menu__list a:nth-child(3) { transition-delay: 0.2s; }
.mobile-menu__list a:nth-child(4) { transition-delay: 0.25s; }
.mobile-menu__list a:nth-child(5) { transition-delay: 0.3s; }
.mobile-menu__footer { margin-top: auto; padding-top: 2rem; border-top: 1px solid var(--panel-line); }
.mobile-menu__label { font-size: 0.875rem; color: var(--mut); margin-bottom: 0.5rem; display: block; }
.mobile-menu__info { color: var(--panel-ink); font-size: 1.125rem; font-weight: 600; margin-bottom: 1rem; display: block; text-decoration: none; }
.mobile-menu__socials { display: flex; gap: 1rem; }
.mobile-menu__socials a { color: var(--panel-ink); font-size: 1.25rem; transition: color var(--t) var(--e); }
.mobile-menu__socials a:hover { color: var(--accent); }

/* ==========================================================================
   6. ANNOUNCEMENT BAR
   ========================================================================== */
.announce {
  position: relative; z-index: 1002; padding: 0.75rem 0; text-align: center;
  font-size: 0.875rem; font-weight: 600; color: #fff;
}
.announce--gradient { background: linear-gradient(90deg, var(--accent), var(--accent-h)); }
.announce--dark { background: var(--panel); color: var(--panel-ink); }
.announce--accent { background: var(--ok); color: #fff; }
.announce__inner { display: flex; align-items: center; justify-content: center; gap: 1rem; flex-wrap: wrap; }
.announce__text { margin: 0; }
.announce__cta { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.announce__close {
  background: none; border: none; color: inherit; cursor: pointer; font-size: 1.25rem;
  padding: 0 1rem; opacity: 0.7; transition: opacity var(--t) var(--e);
}
.announce__close:hover { opacity: 1; }

/* ==========================================================================
   7. HERO & PAGE-HERO
   ========================================================================== */
.hero { padding-top: calc(var(--nav) + 4rem); padding-bottom: 4rem; }
.hero__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.hero__title { font-family: var(--serif); font-size: clamp(2.5rem, 5vw, 4rem); font-weight: 800; line-height: 1.1; color: var(--ink); margin: 0 0 1.5rem; }
.hero__lead { font-size: 1.25rem; color: var(--ink-2); margin-bottom: 2rem; max-width: 500px; }
.hero__act { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 2rem; }
.hero__panel {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-l);
  padding: 1.5rem; box-shadow: var(--sh-l); position: relative; overflow: hidden;
}
.hero__panel::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: var(--accent); }
.hero__panel-tag { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--mut); margin-bottom: 0.5rem; }
.hero__panel-title { font-family: var(--serif); font-size: 1.5rem; font-weight: 700; color: var(--ink); margin: 0 0 1rem; }
.hero__list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.75rem; }
.hero__list li { display: flex; align-items: center; gap: 0.75rem; font-size: 0.95rem; color: var(--ink-2); }
.hero__list li i { color: var(--ok); }

.page-hero {
  padding-top: calc(var(--nav) + 3rem); padding-bottom: 3rem; text-align: center;
  background: var(--surface); border-bottom: 1px solid var(--line);
}
.page-hero__title { font-family: var(--serif); font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; color: var(--ink); margin: 0 0 1rem; }

/* ==========================================================================
   8. MARQUEE, BENTO, WORK
   ========================================================================== */
.marquee { overflow: hidden; padding: 2rem 0; background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.marquee__track { display: flex; gap: 4rem; animation: scroll 30s linear infinite; width: max-content; }
.marquee__item { font-family: var(--serif); font-size: 1.5rem; font-weight: 700; color: var(--mut); white-space: nowrap; display: flex; align-items: center; gap: 1rem; }
.marquee__item i { color: var(--accent); }
@keyframes scroll { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

.bento { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.bento__card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-l);
  padding: 2rem; transition: all var(--t) var(--e);
}
.bento__card:hover { transform: translateY(-4px); box-shadow: var(--sh-l); border-color: var(--accent); }
.bento__card--2x2 { grid-column: span 2; grid-row: span 2; }
.bento__card--2x1 { grid-column: span 2; }
.bento__card--dark { background: var(--panel); color: var(--panel-ink); border-color: var(--panel-line); }
.bento__card--dark .bento__title { color: var(--panel-ink); }
.bento__card--dark .bento__desc { color: var(--panel-mut); }
.bento__card--accent { background: var(--accent); color: #fff; border-color: var(--accent); }
.bento__card--accent .bento__title, .bento__card--accent .bento__desc { color: #fff; }
.bento__title { font-family: var(--serif); font-size: 1.25rem; font-weight: 700; color: var(--ink); margin: 0 0 0.5rem; }
.bento__desc { font-size: 0.95rem; color: var(--ink-2); margin: 0; line-height: 1.5; }

.work__card { break-inside: avoid; margin-bottom: 1.5rem; border-radius: var(--r-l); overflow: hidden; position: relative; }
.work__card--wide { grid-column: span 2; }
.work__thumb { width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block; }
.work__mark { position: absolute; top: 1rem; left: 1rem; }
.work__body { padding: 1.5rem; background: var(--surface); border: 1px solid var(--line); border-top: none; border-radius: 0 0 var(--r-l) var(--r-l); }
.work__title { font-family: var(--serif); font-size: 1.125rem; font-weight: 700; color: var(--ink); margin: 0; }

/* ==========================================================================
   9. PROCESS, STATS, TESTIMONIALS, PRICING
   ========================================================================== */
.process__row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; counter-reset: process; }
.process__num {
  font-family: var(--serif); font-size: 3rem; font-weight: 800; color: var(--accent); opacity: 0.2;
  margin-bottom: 1rem; line-height: 1;
}
.process__title { font-family: var(--serif); font-size: 1.25rem; font-weight: 700; color: var(--ink); margin: 0 0 0.5rem; }
.process__desc { font-size: 0.95rem; color: var(--ink-2); margin: 0; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; text-align: center; }
.stats__num { font-family: var(--serif); font-size: 3rem; font-weight: 800; color: var(--accent); line-height: 1; margin-bottom: 0.5rem; }
.stats__lbl { font-size: 1rem; color: var(--ink-2); font-weight: 500; }

.testi { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.testi__quote {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-l);
  padding: 2rem; position: relative; margin-bottom: 1.5rem;
}
.testi__quote::before { content: '"'; font-family: var(--serif); font-size: 4rem; color: var(--accent); opacity: 0.2; position: absolute; top: 1rem; left: 1.5rem; line-height: 1; }
.testi__foot { display: flex; align-items: center; gap: 1rem; }
.testi__avatar {
  width: 48px; height: 48px; border-radius: 50%; display: flex; align-items: center;
  justify-content: center; font-weight: 700; color: #fff; font-size: 1rem;
}
.av-1 { background: var(--accent); } .av-2 { background: var(--ok); } .av-3 { background: #8b5cf6; }
.testi__name { font-weight: 700; color: var(--ink); margin: 0; font-size: 0.95rem; }
.testi__role { font-size: 0.875rem; color: var(--mut); margin: 0; }

.pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; align-items: start; }
.price {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-l);
  padding: 2rem; position: relative; transition: all var(--t) var(--e);
}
.price--hot { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), var(--sh-l); transform: scale(1.05); z-index: 1; }
.price__badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--accent); color: #fff; padding: 0.25rem 1rem; border-radius: var(--pill);
  font-size: 0.75rem; font-weight: 700; text-transform: uppercase;
}
.price__name { font-family: var(--serif); font-size: 1.25rem; font-weight: 700; color: var(--ink); margin: 0 0 0.5rem; }
.price__amt { font-family: var(--serif); font-size: 2.5rem; font-weight: 800; color: var(--accent); margin: 0 0 0.5rem; }
.price__amt span { font-size: 1rem; color: var(--mut); font-weight: 500; }
.price__desc { font-size: 0.95rem; color: var(--ink-2); margin: 0 0 1.5rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--line); }
.price__list { list-style: none; padding: 0; margin: 0 0 2rem; display: flex; flex-direction: column; gap: 0.75rem; }
.price__list li { display: flex; align-items: flex-start; gap: 0.75rem; font-size: 0.95rem; color: var(--ink-2); }
.price__list li i { color: var(--ok); margin-top: 3px; }

/* ==========================================================================
   10. TEAM, CTA, CONTACT-CARDS, FOOTER
   ========================================================================== */
.team { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.member { text-align: center; }
.member__photo {
  width: 120px; height: 120px; border-radius: 50%; object-fit: cover; margin: 0 auto 1rem;
  border: 3px solid var(--surface); box-shadow: var(--sh);
}
.member__name { font-family: var(--serif); font-size: 1.125rem; font-weight: 700; color: var(--ink); margin: 0 0 0.25rem; }
.member__role { font-size: 0.875rem; color: var(--accent); font-weight: 600; margin: 0 0 0.5rem; }
.member__bio { font-size: 0.95rem; color: var(--ink-2); margin: 0; }

.cta {
  background: var(--panel); color: var(--panel-ink); border-radius: var(--r-l);
  padding: 4rem 2rem; text-align: center; position: relative; overflow: hidden;
}
.cta__title { font-family: var(--serif); font-size: clamp(1.75rem, 3vw, 2.5rem); font-weight: 800; color: var(--panel-ink); margin: 0 0 1rem; }
.cta .btn { margin-top: 1.5rem; }

.contact-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-m); padding: 1.5rem; display: flex; align-items: flex-start; gap: 1rem; }
.contact-card__label { font-size: 0.875rem; color: var(--mut); font-weight: 600; margin-bottom: 0.25rem; display: block; }
.contact-card__value { font-size: 1.125rem; color: var(--ink); font-weight: 600; margin: 0; text-decoration: none; transition: color var(--t) var(--e); }
.contact-card__value:hover { color: var(--accent); }

.footer { background: var(--panel); color: var(--panel-ink); padding-top: 4rem; }
.footer__state { margin-bottom: 3rem; text-align: center; }
.footer__state .eyebrow { color: var(--panel-mut); }
.footer__email {
  font-family: var(--serif); font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 800; color: var(--panel-ink);
  text-decoration: none; position: relative; display: inline-block;
}
.footer__email::after {
  content: ''; position: absolute; bottom: 0; left: 0; width: 100%; height: 3px;
  background: var(--accent); transform: scaleX(0); transform-origin: right;
  transition: transform 0.4s var(--e);
}
.footer__email:hover::after { transform: scaleX(1); transform-origin: left; }
.footer__marquee { border-top: 1px solid var(--panel-line); border-bottom: 1px solid var(--panel-line); padding: 1rem 0; margin-bottom: 3rem; overflow: hidden; }
.footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem; margin-bottom: 3rem; }
.footer__label { font-size: 0.875rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--panel-mut); margin-bottom: 1rem; display: block; }
.footer__desc { font-size: 0.95rem; color: var(--panel-mut); line-height: 1.6; margin-bottom: 1.5rem; }
.footer__menu { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.75rem; }
.footer__menu a { color: var(--panel-ink); text-decoration: none; font-size: 0.95rem; transition: color var(--t) var(--e); }
.footer__menu a:hover { color: var(--accent); }
.footer__contact { display: flex; flex-direction: column; gap: 0.75rem; }
.footer__contact a { color: var(--panel-ink); text-decoration: none; font-size: 0.95rem; transition: color var(--t) var(--e); }
.footer__contact a:hover { color: var(--accent); }
.footer__socials { display: flex; gap: 1rem; margin-top: 1rem; }
.footer__soc {
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--panel-line);
  display: flex; align-items: center; justify-content: center; color: var(--panel-ink);
  text-decoration: none; transition: all var(--t) var(--e);
}
.footer__soc:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.footer__bottom { border-top: 1px solid var(--panel-line); padding: 1.5rem 0; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; font-size: 0.875rem; color: var(--panel-mut); }
.footer__legal { display: flex; gap: 1.5rem; }
.footer__legal a { color: var(--panel-mut); text-decoration: none; transition: color var(--t) var(--e); }
.footer__legal a:hover { color: var(--panel-ink); }

/* ==========================================================================
   11. BLOG, SINGLE, PROSE, SIDEBAR, SEARCH, PAGINATION
   ========================================================================== */
.blog-layout { display: grid; grid-template-columns: 1fr 350px; gap: 3rem; }
.post { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-l); overflow: hidden; transition: all var(--t) var(--e); }
.post:hover { transform: translateY(-4px); box-shadow: var(--sh-l); }
.post__link { text-decoration: none; color: inherit; display: block; }
.post__thumb { width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block; }
.post__thumb-fallback {
  width: 100%; aspect-ratio: 16/9; display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-size: 3rem; font-weight: 800; color: #fff;
}
.post__body { padding: 1.5rem; }
.post__cat { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; color: var(--accent); margin-bottom: 0.5rem; display: block; }
.post__title { font-family: var(--serif); font-size: 1.25rem; font-weight: 700; color: var(--ink); margin: 0 0 0.75rem; line-height: 1.3; }
.post__excerpt { font-size: 0.95rem; color: var(--ink-2); margin: 0 0 1rem; line-height: 1.6; }
.post__meta { font-size: 0.875rem; color: var(--mut); display: flex; gap: 1rem; }

.sidebar__banner {
  background: var(--accent); color: #fff; border-radius: var(--r-l); padding: 2rem;
  text-align: center; margin-bottom: 2rem;
}
.sidebar__widget { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-l); padding: 1.5rem; margin-bottom: 2rem; }
.sidebar__title { font-family: var(--serif); font-size: 1.125rem; font-weight: 700; color: var(--ink); margin: 0 0 1rem; padding-bottom: 0.75rem; border-bottom: 1px solid var(--line); }
.sidebar__list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.75rem; }
.sidebar__list a { color: var(--ink-2); text-decoration: none; font-size: 0.95rem; display: flex; justify-content: space-between; transition: color var(--t) var(--e); }
.sidebar__list a:hover { color: var(--accent); }

.search-form { display: flex; gap: 0.5rem; }
.search-form__input {
  flex: 1; padding: 0.75rem 1rem; border: 1px solid var(--line); border-radius: var(--r-m);
  font-family: var(--sans); font-size: 0.95rem; background: var(--surface); color: var(--ink);
}
.search-form__input:focus { outline: none; border-color: var(--accent); }
.search-form__btn {
  padding: 0.75rem 1.5rem; background: var(--accent); color: #fff; border: none;
  border-radius: var(--r-m); cursor: pointer; font-weight: 600; transition: background var(--t) var(--e);
}
.search-form__btn:hover { background: var(--accent-h); }

.single__header { margin-bottom: 2rem; text-align: center; }
.single__cat { font-size: 0.875rem; font-weight: 700; text-transform: uppercase; color: var(--accent); margin-bottom: 0.5rem; display: block; }
.single__title { font-family: var(--serif); font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; color: var(--ink); margin: 0 0 1rem; line-height: 1.2; }
.single__meta { font-size: 0.95rem; color: var(--mut); display: flex; justify-content: center; gap: 1.5rem; margin-bottom: 2rem; }
.single__thumb { width: 100%; border-radius: var(--r-l); margin-bottom: 2rem; }
.single__body { font-size: 1.125rem; line-height: 1.8; color: var(--ink-2); }
.single__tags { margin-top: 2rem; padding-top: 2rem; border-top: 1px solid var(--line); display: flex; gap: 0.5rem; flex-wrap: wrap; }
.single__tag {
  padding: 0.25rem 0.75rem; background: var(--bg); color: var(--ink-2); border-radius: var(--pill);
  font-size: 0.875rem; text-decoration: none; transition: all var(--t) var(--e);
}
.single__tag:hover { background: var(--accent); color: #fff; }
.single__author {
  display: flex; align-items: center; gap: 1rem; margin-top: 3rem; padding: 1.5rem;
  background: var(--bg); border-radius: var(--r-l);
}
.single__nav { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; margin-top: 3rem; }
.single__nav a { text-decoration: none; color: var(--ink); }
.single__nav a span { display: block; font-size: 0.875rem; color: var(--mut); margin-bottom: 0.25rem; }
.single__nav a strong { font-family: var(--serif); font-size: 1.125rem; font-weight: 700; transition: color var(--t) var(--e); }
.single__nav a:hover strong { color: var(--accent); }
.single__nav .next { text-align: right; }

.prose h2, .prose h3, .prose h4 { font-family: var(--serif); color: var(--ink); margin-top: 2rem; margin-bottom: 1rem; }
.prose p { margin-bottom: 1.5rem; }
.prose ul, .prose ol { margin-bottom: 1.5rem; padding-left: 1.5rem; }
.prose li { margin-bottom: 0.5rem; }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.prose a:hover { color: var(--accent-h); }
.prose blockquote {
  border-left: 4px solid var(--accent); padding-left: 1.5rem; margin: 2rem 0;
  font-style: italic; color: var(--ink-2); font-size: 1.25rem;
}

.pagination { display: flex; justify-content: center; gap: 0.5rem; margin-top: 3rem; }
.pagination a, .pagination span {
  padding: 0.5rem 1rem; border: 1px solid var(--line); border-radius: var(--r-m);
  text-decoration: none; color: var(--ink-2); font-weight: 500; transition: all var(--t) var(--e);
}
.pagination a:hover, .pagination .current { background: var(--accent); color: #fff; border-color: var(--accent); }

.notfound, .search-empty { text-align: center; padding: 4rem 2rem; }
.notfound__title, .search-empty__title { font-family: var(--serif); font-size: 3rem; font-weight: 800; color: var(--ink); margin: 0 0 1rem; }

/* ==========================================================================
   12. FAQ & BREADCRUMBS
   ========================================================================== */
.breadcrumbs { padding: 1rem 0; font-size: 0.875rem; color: var(--mut); }
.breadcrumbs a { color: var(--ink-2); text-decoration: none; transition: color var(--t) var(--e); }
.breadcrumbs a:hover { color: var(--accent); }
.breadcrumbs span { margin-inline: 0.5rem; }

.faq__item {
  border: 1px solid var(--line); border-radius: var(--r-m); margin-bottom: 1rem;
  background: var(--surface); overflow: hidden;
}
.faq__item summary {
  padding: 1.25rem 1.5rem; cursor: pointer; font-weight: 600; color: var(--ink);
  display: flex; justify-content: space-between; align-items: center; list-style: none;
  transition: background var(--t) var(--e);
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary:hover { background: var(--bg); }
.faq__icon {
  width: 32px; height: 32px; border-radius: 50%; background: var(--bg); color: var(--accent);
  display: flex; align-items: center; justify-content: center; transition: all var(--t) var(--e); flex-shrink: 0;
}
.faq__item[open] summary { border-bottom: 1px solid var(--line); }
.faq__item[open] .faq__icon { background: var(--accent); color: #fff; transform: rotate(45deg); }
/* KNOWN FIX: FAQ open+hover icon visibility */
.faq__item[open] summary:hover .faq__icon { background: var(--accent-h); color: #fff; }
.faq__a { padding: 1.5rem; color: var(--ink-2); line-height: 1.7; margin: 0; }

.faq-cats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; counter-reset: faq-cat; }
.faq-cat { counter-increment: faq-cat; }
.faq-cat::before {
  content: "0" counter(faq-cat); font-family: var(--serif); font-size: 2rem; font-weight: 800;
  color: var(--accent); opacity: 0.3; display: block; margin-bottom: 1rem;
}
.faq-cat__title { font-family: var(--serif); font-size: 1.25rem; font-weight: 700; color: var(--ink); margin: 0 0 1.5rem; }
.faq-item { border-bottom: 1px solid var(--line); padding: 1rem 0; }
.faq-item__q { font-weight: 600; color: var(--ink); margin: 0 0 0.5rem; cursor: pointer; display: flex; align-items: center; gap: 0.75rem; }
.faq-item__q::before { content: '+'; color: var(--accent); font-weight: 700; }
.faq-item__a { font-size: 0.95rem; color: var(--ink-2); margin: 0; padding-left: 1.5rem; display: none; }
.faq-item.is-open .faq-item__a { display: block; }
.faq-item.is-open .faq-item__q::before { content: '-'; }

.faq-help {
  background: var(--accent); color: #fff; border-radius: var(--r-l); padding: 3rem;
  text-align: center; margin-top: 3rem;
}
.faq-help__inner { max-width: 600px; margin-inline: auto; }
.faq-help__tag { font-size: 0.875rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; opacity: 0.8; margin-bottom: 0.5rem; display: block; }
.faq-help__title { font-family: var(--serif); font-size: 2rem; font-weight: 800; margin: 0 0 1rem; }
.faq-help__text { font-size: 1.125rem; opacity: 0.9; margin: 0 0 2rem; }
.faq-help__actions { display: flex; justify-content: center; gap: 1rem; }
.faq-help__actions .btn--white { color: var(--accent); }

/* ==========================================================================
   13. SERVICES, STACK, BENEFITS, CONTACT FORM
   ========================================================================== */
/* KNOWN FIX: Services list container */
.main > .svc-list--cont { max-width: var(--w); margin-inline: auto; padding-inline: var(--pad); }

.svc-list { display: flex; flex-direction: column; gap: 4rem; }
.svc-row { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.svc-row--rev { direction: rtl; }
.svc-row--rev > * { direction: ltr; }
.svc-row__num { font-family: var(--serif); font-size: 4rem; font-weight: 800; color: var(--accent); opacity: 0.15; line-height: 1; margin-bottom: 1rem; }
.svc-row__title { font-family: var(--serif); font-size: 2rem; font-weight: 700; color: var(--ink); margin: 0 0 1rem; }
.svc-row__desc { font-size: 1.125rem; color: var(--ink-2); margin: 0 0 1.5rem; line-height: 1.6; }
.svc-row__points { list-style: none; padding: 0; margin: 0 0 2rem; display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.svc-row__points li { display: flex; align-items: center; gap: 0.5rem; font-size: 0.95rem; color: var(--ink-2); }
.svc-row__points li::before { content: '✓'; color: var(--ok); font-weight: 700; }
.svc-row__visual {
  border-radius: var(--r-l); overflow: hidden; position: relative; aspect-ratio: 4/3;
  display: flex; align-items: flex-end; padding: 1.5rem;
}
.svc-row__visual-label {
  background: rgba(255,255,255,0.9); backdrop-filter: blur(4px); padding: 0.5rem 1rem;
  border-radius: var(--r-m); font-weight: 600; color: var(--ink); font-size: 0.875rem;
}

.stack { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.stack__item {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-m);
  padding: 1.5rem; text-align: center; transition: all var(--t) var(--e);
}
.stack__item:hover { border-color: var(--accent); transform: translateY(-2px); }
.stack__name { font-family: var(--serif); font-size: 1.125rem; font-weight: 700; color: var(--ink); margin: 0 0 0.25rem; }
.stack__type { font-size: 0.875rem; color: var(--mut); }

.benefits { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.benefit { text-align: center; padding: 2rem; }
.benefit__icon {
  width: 64px; height: 64px; border-radius: var(--r-m); background: var(--bg); color: var(--accent);
  display: flex; align-items: center; justify-content: center; font-size: 1.5rem; margin: 0 auto 1.5rem;
}
.benefit__title { font-family: var(--serif); font-size: 1.25rem; font-weight: 700; color: var(--ink); margin: 0 0 0.5rem; }
.benefit__desc { font-size: 0.95rem; color: var(--ink-2); margin: 0; }

/* KNOWN FIX: Form spacing via margins on labels/legends, never rely on flex gap inside fieldsets */
.cform { display: flex; flex-direction: column; gap: 1.5rem; }
.cform__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.cform__group { display: flex; flex-direction: column; }
.cform__label, .cform__legend {
  font-size: 0.875rem; font-weight: 600; color: var(--ink); margin-bottom: 0.5rem; display: block;
}
.cform__legend { margin-bottom: 1rem; font-size: 1rem; }
.cform__input, .cform__select, .cform__textarea {
  padding: 0.875rem 1rem; border: 1px solid var(--line); border-radius: var(--r-m);
  font-family: var(--sans); font-size: 0.95rem; background: var(--surface); color: var(--ink);
  transition: border-color var(--t) var(--e), box-shadow var(--t) var(--e); width: 100%;
}
.cform__input:focus, .cform__select:focus, .cform__textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(0, 121, 193, 0.1);
}
.cform__input--error, .cform__select--error, .cform__textarea--error { border-color: #ef4444; }
.cform__error { font-size: 0.875rem; color: #ef4444; margin-top: 0.25rem; display: none; }
.cform__group.has-error .cform__error { display: block; }
.cform__textarea { resize: vertical; min-height: 120px; }
.cform__radio-group, .cform__checkbox-group { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 0.5rem; }
.cform__pill {
  display: flex; align-items: center; gap: 0.5rem; padding: 0.5rem 1rem; border: 1px solid var(--line);
  border-radius: var(--pill); cursor: pointer; font-size: 0.875rem; color: var(--ink-2);
  transition: all var(--t) var(--e); background: var(--surface);
}
.cform__pill input { display: none; }
.cform__pill:has(input:checked) { background: var(--accent); color: #fff; border-color: var(--accent); }
.cform__toggle { display: flex; align-items: center; gap: 1rem; cursor: pointer; }
.cform__toggle-switch {
  width: 48px; height: 24px; background: var(--line); border-radius: var(--pill);
  position: relative; transition: background var(--t) var(--e);
}
.cform__toggle-switch::after {
  content: ''; position: absolute; top: 2px; left: 2px; width: 20px; height: 20px;
  background: #fff; border-radius: 50%; transition: transform var(--t) var(--e); box-shadow: var(--sh);
}
.cform__toggle input { display: none; }
.cform__toggle input:checked + .cform__toggle-switch { background: var(--accent); }
.cform__toggle input:checked + .cform__toggle-switch::after { transform: translateX(24px); }
.cform__consent { font-size: 0.875rem; color: var(--ink-2); display: flex; align-items: flex-start; gap: 0.75rem; margin-top: 1rem; }
.cform__consent input { margin-top: 3px; accent-color: var(--accent); }
.cform__consent a { color: var(--accent); text-decoration: underline; }
.cform__submit { margin-top: 1rem; width: 100%; }
.cform__note { font-size: 0.875rem; color: var(--mut); text-align: center; margin-top: 1rem; }
.cform__success { text-align: center; padding: 3rem 2rem; background: var(--bg); border-radius: var(--r-l); }
.cform__success i { font-size: 3rem; color: var(--ok); margin-bottom: 1rem; }
.cform__success h3 { font-family: var(--serif); font-size: 1.5rem; color: var(--ink); margin: 0 0 0.5rem; }

/* ==========================================================================
   14. OVERLAYS (Cookie, Back-to-top, Progress)
   ========================================================================== */
.cookie {
  position: fixed; z-index: 9998; background: var(--panel); color: var(--panel-ink);
  padding: 1.5rem; border-radius: var(--r-l); box-shadow: var(--sh-l); max-width: 400px;
  display: none;
}
.cookie--corner { bottom: 2rem; right: 2rem; }
.cookie--bar { bottom: 0; left: 0; right: 0; max-width: 100%; border-radius: var(--r-l) var(--r-l) 0 0; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }
.cookie__icon { font-size: 1.5rem; color: var(--accent); margin-bottom: 0.5rem; }
.cookie__text { font-size: 0.95rem; margin: 0 0 1rem; line-height: 1.5; }
.cookie__link { color: var(--panel-ink); text-decoration: underline; }
.cookie__actions { display: flex; gap: 0.75rem; }
.cookie__btn--accept { background: var(--accent); color: #fff; border: none; padding: 0.5rem 1rem; border-radius: var(--r-m); cursor: pointer; font-weight: 600; }
.cookie__btn--decline { background: transparent; color: var(--panel-ink); border: 1px solid var(--panel-line); padding: 0.5rem 1rem; border-radius: var(--r-m); cursor: pointer; font-weight: 600; }

.ebw-btt {
  position: fixed; bottom: 2rem; right: 2rem; width: 48px; height: 48px; border-radius: 50%;
  background: var(--accent); color: #fff; border: none; cursor: pointer; display: flex;
  align-items: center; justify-content: center; font-size: 1.25rem; box-shadow: var(--sh-l);
  opacity: 0; visibility: hidden; transform: translateY(20px); transition: all var(--t) var(--e); z-index: 999;
}
.ebw-btt.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.ebw-btt:hover { background: var(--accent-h); transform: translateY(-4px); }

.ebw-progress {
  position: fixed; top: 0; left: 0; height: 3px; background: var(--accent); z-index: 1003;
  width: 0%; transition: width 0.1s linear;
}

/* ==========================================================================
   15. RESPONSIVE BLOCK
   ========================================================================== */
@media (max-width: 1024px) {
  .nav, .status { display: none; }
  .burger { display: flex; margin-left: auto; }
  .header__cta { margin-left: auto; }
  .hero__grid { grid-template-columns: 1fr; gap: 3rem; }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .bento__card--2x2 { grid-column: span 2; grid-row: span 1; }
  .process__row { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .testi { grid-template-columns: 1fr; }
  .pricing { grid-template-columns: 1fr; max-width: 500px; margin-inline: auto; }
  .price--hot { transform: none; }
  .team { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .blog-layout { grid-template-columns: 1fr; }
  .sidebar { order: 2; }
  .svc-row { grid-template-columns: 1fr; gap: 2rem; }
  .svc-row--rev { direction: ltr; }
  .stack { grid-template-columns: repeat(2, 1fr); }
  .faq-cats { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .team { grid-template-columns: 1fr; max-width: 400px; margin-inline: auto; }
}

@media (max-width: 768px) {
  .cookie--bar { flex-direction: column; text-align: center; }
  .announce__inner { flex-direction: column; gap: 0.5rem; }
  .faq-help { padding: 2rem 1.5rem; }
  .faq-help__actions { flex-direction: column; }
}

@media (max-width: 640px) {
  .bento { grid-template-columns: 1fr; }
  .bento__card--2x2, .bento__card--2x1 { grid-column: span 1; }
  .stats { grid-template-columns: 1fr; gap: 1.5rem; }
  .footer__grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer__bottom { flex-direction: column; text-align: center; }
  .post__meta { flex-direction: column; gap: 0.25rem; }
  .cform__row { grid-template-columns: 1fr; }
  .single__nav { grid-template-columns: 1fr; }
  .single__nav .next { text-align: left; margin-top: 1rem; }
  .svc-row__points { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .faq-cat::before { font-size: 1.5rem; }
  .hero__act { flex-direction: column; }
  .hero__act .btn { width: 100%; }
}