/*
Theme Name:   test-theme
Theme URI:    https://temp5.devigontech.com/
GitHub Theme URI: https://github.com/MrBrownNose/test-theme
Description:  Semantic HTML · Minimum CSS · Maximum Speed. A production-ready foundation for law firms, service businesses, and content sites.
Author:       Your Name
Author URI:   https://example.com
Version:      1.0.7
License:      GNU General Public License v2 or later
License URI:  https://www.gnu.org/licenses/gpl-2.0.html
Text Domain:  test-theme
Tags:         custom-menu, featured-images, threaded-comments, translation-ready
*/

/* ============================================================
   CSS CUSTOM PROPERTIES — single source of truth
   ============================================================ */
:root {
  /* Colors */
  --c-bg:          #ffffff;
  --c-bg-alt:      #f5f5f3;
  --c-surface:     #fafaf9;
  --c-border:      #e2e2dc;
  --c-text:        #1a1a18;
  --c-text-muted:  #5a5a55;
  --c-accent:      #1a3a5c;
  --c-accent-lt:   #2d5f8a;
  --c-accent-bg:   #eef3f8;
  --c-cta:         #ff6600;
  --c-cta-hover:   #e65c00;
  --c-white:       #ffffff;
  --c-brand-orange: #ff6600;
  --c-header-top:   #000000;
  --c-hero-overlay: rgba(0, 0, 0, 0.62);
  --header-offset:  clamp(5.5rem, 14vw, 7.5rem);

  /* Typography */
  --font-body:    Georgia, 'Times New Roman', Times, serif;
  --font-ui:      system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono:    'Courier New', Courier, monospace;

  /* Scale (1.25 Major Third) */
  --text-xs:    0.64rem;
  --text-sm:    0.8rem;
  --text-base:  1rem;
  --text-md:    1.25rem;
  --text-lg:    1.563rem;
  --text-xl:    1.953rem;
  --text-2xl:   2.441rem;
  --text-3xl:   3.052rem;

  /* Spacing */
  --sp-1:  0.25rem;
  --sp-2:  0.5rem;
  --sp-3:  0.75rem;
  --sp-4:  1rem;
  --sp-6:  1.5rem;
  --sp-8:  2rem;
  --sp-12: 3rem;
  --sp-16: 4rem;
  --sp-24: 6rem;

  /* Layout */
  --max-w:       72rem;    /* 1152px content max */
  --max-w-prose: 65ch;     /* optimal reading width */
  --max-w-wide:  90rem;

  /* Borders & Radii */
  --radius-sm: 3px;
  --radius:    6px;
  --radius-lg: 12px;

  /* Transitions */
  --ease: 200ms ease;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0,0,0,.08);
  --shadow:    0 4px 16px rgba(0,0,0,.10);
  --shadow-lg: 0 8px 32px rgba(0,0,0,.12);
}

/* ============================================================
   RESET — surgical, not nuclear
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--c-bg);
  color: var(--c-text);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.7;
  font-kerning: normal;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img, video, svg { max-width: 100%; height: auto; display: block; }
p, h1, h2, h3, h4, h5, h6 { overflow-wrap: break-word; }
ul[role="list"], ol[role="list"] { list-style: none; padding: 0; margin: 0; }
a { color: var(--c-accent); }
a:hover { color: var(--c-accent-lt); }
::focus-visible { outline: 3px solid var(--c-accent); outline-offset: 3px; border-radius: var(--radius-sm); }

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-ui);
  font-weight: 700;
  line-height: 1.25;
  color: var(--c-accent);
  margin-top: var(--sp-8);
  margin-bottom: var(--sp-4);
}
h1 { font-size: var(--text-2xl); }
h2 { font-size: var(--text-xl); }
h3 { font-size: var(--text-lg); }
h4 { font-size: var(--text-md); }
h5 { font-size: var(--text-base); }
h6 { font-size: var(--text-sm); text-transform: uppercase; letter-spacing: .06em; }

p  { margin-block: var(--sp-4); max-width: var(--max-w-prose); }
p.lead { font-size: var(--text-md); color: var(--c-text-muted); }

blockquote {
  border-left: 4px solid var(--c-accent);
  padding: var(--sp-4) var(--sp-6);
  margin-inline: 0;
  background: var(--c-accent-bg);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
  color: var(--c-text-muted);
}

code, kbd {
  font-family: var(--font-mono);
  font-size: .875em;
  background: var(--c-bg-alt);
  padding: .1em .4em;
  border-radius: var(--radius-sm);
  border: 1px solid var(--c-border);
}
pre { background: var(--c-text); color: var(--c-white); padding: var(--sp-6); border-radius: var(--radius); overflow-x: auto; }
pre code { background: transparent; border: none; padding: 0; color: inherit; font-size: var(--text-sm); }

hr { border: none; border-top: 1px solid var(--c-border); margin-block: var(--sp-8); }

/* ============================================================
   LAYOUT UTILITIES
   ============================================================ */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--sp-6);
}
.container--wide  { max-width: var(--max-w-wide); }
.container--prose { max-width: var(--max-w-prose); }

.section { padding-block: var(--sp-16); }
.section--sm { padding-block: var(--sp-8); }
.section--lg { padding-block: var(--sp-24); }
.section--alt { background: var(--c-bg-alt); }

/* Flex/Grid helpers — keep minimal, use sparingly */
.flex        { display: flex; }
.flex-wrap   { flex-wrap: wrap; }
.items-center { align-items: center; }
.gap-4       { gap: var(--sp-4); }
.gap-8       { gap: var(--sp-8); }

.grid-auto { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: var(--sp-8); }
.grid-2    { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: var(--sp-8); }
.grid-3    { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: var(--sp-6); }

/* ============================================================
   SITE HEADER — top bar + main row (transparent on front hero)
   ============================================================ */
.site-header {
  position: relative;
  z-index: 100;
  color: var(--c-white);
}

body:not(.has-front-hero) .site-header {
  position: sticky;
  top: 0;
  box-shadow: var(--shadow);
}

body.has-front-hero .site-header {
  position: fixed;
  inset: 0 0 auto 0;
  width: 100%;
}

.header-top {
  background: var(--c-header-top);
  font-family: var(--font-ui);
  font-size: var(--text-xs);
  padding-block: var(--sp-2);
}

.header-top__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--sp-3);
}

.header-contact {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-3) var(--sp-6);
  list-style: none;
  margin: 0;
  padding: 0;
}

.header-contact li {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  color: rgba(255, 255, 255, 0.92);
}

.header-contact__link {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  color: inherit;
  text-decoration: none;
}

.header-contact__link:hover {
  color: var(--c-brand-orange);
}

.header-contact__icon {
  display: inline-flex;
  flex-shrink: 0;
  opacity: 0.9;
}

.header-social {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  list-style: none;
  margin: 0;
  padding: 0;
}

.header-social__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: var(--c-white);
  text-decoration: none;
  transition: background var(--ease), color var(--ease);
}

.header-social__link:hover {
  background: var(--c-brand-orange);
  color: var(--c-white);
}

.header-main {
  padding-block: var(--sp-3);
  background: rgba(17, 17, 17, 0.92);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

body.has-front-hero .header-main {
  background: transparent;
  border-bottom: none;
}

.header-main__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--sp-4);
}

.site-branding { flex-shrink: 0; max-width: min(100%, 14rem); }

.site-logo .custom-logo-link { display: inline-block; line-height: 0; }
.site-logo img { max-height: 3rem; width: auto; }

.site-title {
  margin: 0;
  font-size: var(--text-sm);
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1.15;
  font-family: var(--font-ui);
}

.site-title--ecc a {
  color: var(--c-white);
  text-decoration: none;
  display: inline-flex;
  flex-direction: column;
}

.site-title__express {
  font-size: var(--text-lg);
  letter-spacing: 0.06em;
}

.site-title__express::first-letter {
  color: #e02020;
  font-weight: 900;
}

.site-title__rest {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.12em;
  opacity: 0.95;
}

.site-description {
  margin: 0;
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.7);
  font-family: var(--font-ui);
}

/* Primary Navigation */
.nav-primary { font-family: var(--font-ui); }

.nav-primary ul {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-1);
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
}

.nav-primary a {
  display: block;
  padding: var(--sp-2) var(--sp-3);
  color: rgba(255, 255, 255, 0.95);
  text-decoration: none;
  font-size: var(--text-sm);
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: background var(--ease), color var(--ease);
}

.nav-primary a:hover {
  color: var(--c-brand-orange);
}

.nav-primary .current-menu-item > a,
.nav-primary .current_page_item > a {
  color: var(--c-brand-orange);
  background: transparent;
}

/* Sub-menus */
.nav-primary .sub-menu {
  position: absolute;
  left: 0;
  top: 100%;
  background: #1a1a1a;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  padding: var(--sp-2);
  min-width: 12rem;
  box-shadow: var(--shadow-lg);
  display: none;
  flex-direction: column;
  gap: var(--sp-1);
  z-index: 120;
}

.nav-primary .sub-menu a {
  color: rgba(255, 255, 255, 0.92);
}

.nav-primary .sub-menu a:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--c-brand-orange);
}

.nav-primary li { position: relative; }
.nav-primary li:hover > .sub-menu,
.nav-primary li:focus-within > .sub-menu { display: flex; }

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  align-items: center;
  gap: var(--sp-2);
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: var(--c-white);
  padding: var(--sp-2) var(--sp-3);
  border-radius: var(--radius-sm);
  font-family: var(--font-ui);
  font-size: var(--text-sm);
  cursor: pointer;
}

.nav-toggle__bars {
  display: inline-block;
  width: 1.25rem;
  height: 2px;
  background: currentColor;
  box-shadow: 0 -6px 0 currentColor, 0 6px 0 currentColor;
  vertical-align: middle;
}

@media (max-width: 56rem) {
  .header-contact {
    justify-content: center;
    width: 100%;
    text-align: center;
  }
  .header-social {
    width: 100%;
    justify-content: center;
  }
  .header-top__inner {
    justify-content: center;
  }
}

@media (max-width: 48rem) {
  .nav-toggle { display: inline-flex; }
  .nav-primary {
    display: none;
    width: 100%;
    order: 10;
    padding-top: var(--sp-4);
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    margin-top: var(--sp-2);
  }
  .nav-primary.is-open { display: block; }
  .nav-primary ul { flex-direction: column; align-items: stretch; }
  .nav-primary li .sub-menu {
    position: static;
    display: flex;
    box-shadow: none;
    border: none;
    padding-left: var(--sp-4);
    margin-top: var(--sp-1);
    background: rgba(0, 0, 0, 0.25);
  }
  .header-main__inner { flex-wrap: wrap; }
}

/* ============================================================
   SITE FOOTER
   ============================================================ */
.site-footer {
  background: var(--c-text);
  color: rgba(255,255,255,.75);
  padding-block: var(--sp-12) var(--sp-8);
  font-family: var(--font-ui);
  font-size: var(--text-sm);
}

.site-footer .container { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px,100%), 1fr)); gap: var(--sp-8); }

.footer-brand .site-title a { color: var(--c-white); }
.footer-brand .site-description { color: rgba(255,255,255,.5); }

.footer-col h3 {
  color: var(--c-white);
  font-size: var(--text-sm);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-top: 0;
  margin-bottom: var(--sp-4);
}

.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--sp-2); }
.footer-col a { color: rgba(255,255,255,.65); text-decoration: none; }
.footer-col a:hover { color: var(--c-white); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  margin-top: var(--sp-8);
  padding-top: var(--sp-6);
  text-align: center;
  color: rgba(255,255,255,.4);
  font-size: var(--text-xs);
}

/* ============================================================
   MAIN CONTENT AREA
   ============================================================ */
.site-main { min-height: 60vh; }

/* Entry / Post */
.entry-header { margin-bottom: var(--sp-8); }
.entry-title  { margin-top: 0; font-size: var(--text-2xl); }
.entry-meta   { font-family: var(--font-ui); font-size: var(--text-sm); color: var(--c-text-muted); display: flex; flex-wrap: wrap; gap: var(--sp-4); align-items: center; }
.entry-meta time { font-weight: 600; }

.entry-content h2, .entry-content h3 { margin-top: var(--sp-12); }
.entry-content a { text-decoration: underline; text-underline-offset: 3px; }
.entry-content ul, .entry-content ol { padding-left: var(--sp-6); }
.entry-content li { margin-block: var(--sp-2); }
.entry-content img { border-radius: var(--radius); box-shadow: var(--shadow); }

.entry-footer { border-top: 1px solid var(--c-border); padding-top: var(--sp-6); margin-top: var(--sp-8); font-family: var(--font-ui); font-size: var(--text-sm); color: var(--c-text-muted); }

/* Post-navigation */
.post-navigation, .posts-navigation {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--sp-4);
  margin-block: var(--sp-8);
  font-family: var(--font-ui);
  font-size: var(--text-sm);
}
.nav-previous a, .nav-next a {
  text-decoration: none;
  font-weight: 700;
  color: var(--c-accent);
}
.nav-next { margin-left: auto; }

/* ============================================================
   HERO / PAGE HERO
   ============================================================ */
.page-hero {
  background: var(--c-accent);
  color: var(--c-white);
  padding-block: var(--sp-16);
  text-align: center;
}
.page-hero h1 {
  color: var(--c-white);
  font-size: var(--text-3xl);
  margin-top: 0;
}
.page-hero p { color: rgba(255,255,255,.8); margin-inline: auto; }

/* Front page hero — image + overlay, two columns */
.front-hero {
  position: relative;
  isolation: isolate;
  min-height: min(92vh, 52rem);
  padding-top: var(--header-offset);
  padding-bottom: var(--sp-12);
  color: var(--c-white);
  background: #0a0a0a url('assets/hero-bg.png') center / cover no-repeat;
}

.front-hero__overlay {
  position: absolute;
  inset: 0;
  background: var(--c-hero-overlay);
  z-index: 0;
}

.front-hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr min(22rem, 100%);
  gap: var(--sp-8) var(--sp-12);
  align-items: center;
}

.front-hero__content {
  font-family: var(--font-ui);
}

.front-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  margin: 0 0 var(--sp-4);
  font-size: var(--text-sm);
  font-weight: 600;
  color: rgba(255, 255, 255, 0.95);
}

.front-hero__dot {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--c-brand-orange);
  flex-shrink: 0;
}

.front-hero__title {
  margin: 0 0 var(--sp-4);
  font-size: clamp(1.75rem, 4.2vw, 2.75rem);
  line-height: 1.12;
  font-weight: 800;
  color: var(--c-white);
  max-width: 22ch;
}

.front-hero__title-accent {
  color: var(--c-brand-orange);
}

.front-hero__lead {
  margin: 0 0 var(--sp-6);
  max-width: 42ch;
  font-size: var(--text-sm);
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.88);
}

.front-hero__trust {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-3);
}

.front-hero__avatars {
  display: flex;
  padding-left: var(--sp-2);
}

.front-hero__avatar {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  margin-left: -0.65rem;
  border: 2px solid rgba(255, 255, 255, 0.35);
  background: linear-gradient(135deg, #555 0%, #222 100%);
}

.front-hero__trust-star {
  color: var(--c-brand-orange);
  display: inline-flex;
}

.front-hero__trust-text {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--c-white);
}

.front-hero__form-wrap {
  justify-self: end;
  width: 100%;
}

.hero-quote-form {
  max-width: none;
  margin: 0;
  padding: var(--sp-6);
  border-radius: var(--radius-lg);
  background: rgba(0, 0, 0, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.hero-quote-form__title {
  margin: 0 0 var(--sp-2);
  font-size: var(--text-md);
  font-family: var(--font-ui);
  color: var(--c-white);
}

.hero-quote-form__hint {
  margin: 0 0 var(--sp-6);
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.75);
  max-width: none;
}

.hero-quote-form__field {
  margin-bottom: var(--sp-4);
}

.hero-quote-form label {
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: var(--sp-2);
}

.hero-quote-form input,
.hero-quote-form select {
  background: var(--c-white);
  color: var(--c-text);
  border-color: rgba(0, 0, 0, 0.12);
}

.hero-quote-form__submit {
  width: 100%;
  justify-content: center;
  margin-top: var(--sp-2);
  padding-block: var(--sp-4);
  font-size: var(--text-base);
  background: var(--c-cta);
  border-color: var(--c-cta);
  color: var(--c-white);
}

.hero-quote-form__submit:hover {
  background: var(--c-cta-hover);
  border-color: var(--c-cta-hover);
  color: var(--c-white);
}

@media (max-width: 56rem) {
  .front-hero__grid {
    grid-template-columns: 1fr;
    gap: var(--sp-8);
  }
  .front-hero__form-wrap { justify-self: stretch; }
  .front-hero__title { max-width: none; }
}

@media (max-width: 36rem) {
  .front-hero {
    min-height: auto;
    padding-bottom: var(--sp-10);
  }
  .header-contact { flex-direction: column; gap: var(--sp-2); }
}


/* ============================================================
   BUTTONS & CTAs
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-3) var(--sp-6);
  font-family: var(--font-ui);
  font-size: var(--text-sm);
  font-weight: 700;
  text-decoration: none;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: background var(--ease), color var(--ease), border-color var(--ease), transform var(--ease);
}
.btn:active { transform: translateY(1px); }

.btn-primary { background: var(--c-cta); color: var(--c-white); border-color: var(--c-cta); }
.btn-primary:hover { background: var(--c-cta-hover); border-color: var(--c-cta-hover); color: var(--c-white); }

.btn-secondary { background: transparent; color: var(--c-accent); border-color: var(--c-accent); }
.btn-secondary:hover { background: var(--c-accent); color: var(--c-white); }

.btn-ghost { background: rgba(255,255,255,.1); color: var(--c-white); border-color: rgba(255,255,255,.3); }
.btn-ghost:hover { background: rgba(255,255,255,.2); color: var(--c-white); }

/* ============================================================
   CARDS
   ============================================================ */
.card {
  background: var(--c-bg);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow var(--ease), transform var(--ease);
}
.card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }

.card-body { padding: var(--sp-6); flex: 1; display: flex; flex-direction: column; }
.card-title { font-family: var(--font-ui); font-size: var(--text-md); font-weight: 700; color: var(--c-accent); margin: 0 0 var(--sp-3); }
.card-text  { color: var(--c-text-muted); font-size: var(--text-sm); margin: 0 0 var(--sp-4); flex: 1; }
.card a.btn { margin-top: auto; align-self: flex-start; }
.card-image img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }

/* ============================================================
   SERVICE COMPONENTS
   ============================================================ */
.service-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px,100%), 1fr)); gap: var(--sp-6); }

.service-card {
  padding: var(--sp-6);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  background: var(--c-bg);
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  transition: border-color var(--ease), box-shadow var(--ease), transform var(--ease);
}
.service-card:hover { border-color: var(--c-accent-lt); box-shadow: var(--shadow); transform: translateY(-2px); }
.service-card h3 { color: var(--c-accent); margin: 0; font-size: var(--text-md); font-family: var(--font-ui); }
.service-card p  { margin: 0; color: var(--c-text-muted); font-size: var(--text-sm); }
.service-icon { font-size: var(--text-xl); line-height: 1; }

/* Service Landing Page */
.service-hero { background: linear-gradient(135deg, var(--c-accent) 0%, var(--c-accent-lt) 100%); color: var(--c-white); padding-block: var(--sp-24); }
.service-hero h1 { color: var(--c-white); margin-top: 0; font-size: var(--text-3xl); }
.service-hero .lead { color: rgba(255,255,255,.85); font-size: var(--text-md); max-width: 60ch; }

.service-cta-bar {
  background: var(--c-cta);
  color: var(--c-white);
  padding-block: var(--sp-8);
  text-align: center;
}
.service-cta-bar h2 { color: var(--c-white); margin-top: 0; }

/* ============================================================
   FORMS
   ============================================================ */
.wp-form, form { max-width: 640px; }

label {
  display: block;
  font-family: var(--font-ui);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--c-text);
  margin-bottom: var(--sp-2);
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="url"],
input[type="search"],
select,
textarea {
  width: 100%;
  padding: var(--sp-3) var(--sp-4);
  border: 1.5px solid var(--c-border);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: var(--text-base);
  background: var(--c-bg);
  color: var(--c-text);
  transition: border-color var(--ease), box-shadow var(--ease);
  -webkit-appearance: none;
  appearance: none;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--c-accent);
  box-shadow: 0 0 0 3px var(--c-accent-bg);
  outline: none;
}
textarea { min-height: 140px; resize: vertical; }

.form-group { margin-bottom: var(--sp-6); }

.search-form { display: flex; gap: var(--sp-2); max-width: 480px; }
.search-form input[type="search"] { flex: 1; border-radius: var(--radius) 0 0 var(--radius); }
.search-form button { border-radius: 0 var(--radius) var(--radius) 0; padding-inline: var(--sp-6); }

/* ============================================================
   SIDEBAR / ASIDE
   ============================================================ */
.with-sidebar {
  display: grid;
  grid-template-columns: 1fr min(280px, 30%);
  gap: var(--sp-12);
  align-items: start;
}
@media (max-width: 56rem) {
  .with-sidebar { grid-template-columns: 1fr; }
}

.widget-area { display: flex; flex-direction: column; gap: var(--sp-8); }
.widget { border: 1px solid var(--c-border); border-radius: var(--radius-lg); padding: var(--sp-6); }
.widget-title { font-family: var(--font-ui); font-size: var(--text-sm); text-transform: uppercase; letter-spacing: .07em; color: var(--c-text-muted); margin-top: 0; margin-bottom: var(--sp-4); border-bottom: 1px solid var(--c-border); padding-bottom: var(--sp-3); }

/* ============================================================
   ARCHIVE / BLOG LOOP
   ============================================================ */
.posts-list { display: flex; flex-direction: column; gap: var(--sp-8); }

.post-preview {
  border-bottom: 1px solid var(--c-border);
  padding-bottom: var(--sp-8);
}
.post-preview:last-child { border-bottom: none; }
.post-preview h2 { font-size: var(--text-lg); margin-top: 0; }
.post-preview h2 a { text-decoration: none; color: var(--c-accent); }
.post-preview h2 a:hover { text-decoration: underline; }

/* Pagination */
.pagination, .page-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--sp-2);
  margin-block: var(--sp-8);
  font-family: var(--font-ui);
}
.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-size: var(--text-sm);
  color: var(--c-text);
  transition: background var(--ease), color var(--ease);
}
.pagination .page-numbers:hover,
.pagination .page-numbers.current { background: var(--c-accent); color: var(--c-white); border-color: var(--c-accent); }

/* ============================================================
   BREADCRUMBS
   ============================================================ */
.breadcrumbs {
  font-family: var(--font-ui);
  font-size: var(--text-xs);
  color: var(--c-text-muted);
  padding-block: var(--sp-4);
  border-bottom: 1px solid var(--c-border);
}
.breadcrumbs ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.breadcrumbs li + li::before { content: '›'; margin-right: var(--sp-2); color: var(--c-border); }
.breadcrumbs a { color: var(--c-text-muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--c-accent); }
.breadcrumbs [aria-current="page"] { color: var(--c-text); }

/* ============================================================
   NOTICE / ALERT BOXES
   ============================================================ */
.notice {
  padding: var(--sp-4) var(--sp-6);
  border-radius: var(--radius);
  border-left: 4px solid;
  font-family: var(--font-ui);
  font-size: var(--text-sm);
  margin-block: var(--sp-4);
}
.notice-info    { background: var(--c-accent-bg); border-color: var(--c-accent); color: var(--c-accent); }
.notice-success { background: #edf7ed; border-color: #2e7d32; color: #1b5e20; }
.notice-warn    { background: #fff8e1; border-color: #f9a825; color: #6d4c00; }
.notice-error   { background: #fdecea; border-color: var(--c-cta); color: var(--c-cta-hover); }

/* ============================================================
   TABLE
   ============================================================ */
table { width: 100%; border-collapse: collapse; font-family: var(--font-ui); font-size: var(--text-sm); margin-block: var(--sp-8); }
th { background: var(--c-accent); color: var(--c-white); text-align: left; padding: var(--sp-3) var(--sp-4); }
td { padding: var(--sp-3) var(--sp-4); border-bottom: 1px solid var(--c-border); }
tr:nth-child(even) td { background: var(--c-bg-alt); }

/* ============================================================
   FAQ / ACCORDION (CSS only)
   ============================================================ */
details {
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  margin-bottom: var(--sp-3);
  overflow: hidden;
}
summary {
  padding: var(--sp-4) var(--sp-6);
  font-family: var(--font-ui);
  font-weight: 600;
  cursor: pointer;
  background: var(--c-bg);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
}
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; font-size: var(--text-lg); color: var(--c-accent); transition: transform var(--ease); line-height: 1; }
details[open] summary { background: var(--c-accent-bg); }
details[open] summary::after { transform: rotate(45deg); }
details > *:not(summary) { padding: var(--sp-4) var(--sp-6); border-top: 1px solid var(--c-border); }

/* ============================================================
   SKIP LINK (accessibility)
   ============================================================ */
.skip-link {
  position: absolute;
  left: var(--sp-4);
  top: -9999px;
  background: var(--c-accent);
  color: var(--c-white);
  padding: var(--sp-3) var(--sp-6);
  border-radius: var(--radius);
  font-family: var(--font-ui);
  font-size: var(--text-sm);
  text-decoration: none;
  z-index: 9999;
}
.skip-link:focus { top: var(--sp-4); }

/* ============================================================
   UTILITY CLASSES
   ============================================================ */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.text-center { text-align: center; }
.text-muted   { color: var(--c-text-muted); }
.text-small   { font-size: var(--text-sm); }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.no-underline { text-decoration: none; }

/* ============================================================
   PRINT
   ============================================================ */
@media print {
  .site-header, .header-top, .header-main, .site-footer, .nav-primary, .sidebar, .widget-area, .btn { display: none !important; }
  body { font-size: 12pt; color: #000; background: #fff; }
  a[href]::after { content: ' (' attr(href) ')'; font-size: .8em; color: #555; }
}

