/*
Theme Name: NC and Associates
Theme URI: http://localhost:8091
Author: Devan
Description: Professional WordPress theme for N.C. & Associates, Chartered Accountants — Kathmandu. Editable via the WordPress block editor.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 8.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: nc-and-associates
Tags: business, custom-colors, custom-menu, featured-images, translation-ready
*/

/* ---------------------------------------------------------------
   1. Tokens
--------------------------------------------------------------- */
:root {
  --navy-900: #0a1a2b;
  --navy-800: #0f2438;
  --navy-700: #16324c;
  --navy-600: #1e4463;
  --navy-100: #e8eef4;
  --navy-50: #f4f7fa;

  --gold-600: #9a7b2e;
  --gold-500: #b8944a;
  --gold-400: #d4b46a;
  --gold-100: #f5ecd9;

  --ink: #16202b;
  --ink-soft: #4a5766;
  --ink-mute: #6b7887;

  --paper: #ffffff;
  --paper-soft: #f7f6f3;
  --line: #e3e7ec;
  --line-soft: #eef1f4;

  --white: #ffffff;

  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  /* Headings share the body family. No webfont is loaded anywhere, so this
     resolves to whatever the reader's OS provides -- the plainest option. */
  --font-serif: var(--font-sans);

  --measure: 68ch;
  --shell: 1180px;
  --shell-narrow: 860px;
  --gut: 1.5rem;

  --r-sm: 4px;
  --r-md: 8px;
  --r-lg: 14px;

  --sh-sm: 0 1px 2px rgba(10, 26, 43, .06), 0 1px 3px rgba(10, 26, 43, .04);
  --sh-md: 0 4px 6px -1px rgba(10, 26, 43, .06), 0 10px 20px -6px rgba(10, 26, 43, .10);
  --sh-lg: 0 10px 15px -3px rgba(10, 26, 43, .08), 0 24px 40px -12px rgba(10, 26, 43, .16);

  --ease: cubic-bezier(.4, 0, .2, 1);
}

/* ---------------------------------------------------------------
   2. Reset
--------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img,
svg,
video { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -.01em;
  color: var(--navy-900);
  margin: 0 0 .6em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.25rem, 1.4rem + 3.4vw, 3.75rem); }
h2 { font-size: clamp(1.75rem, 1.2rem + 2.2vw, 2.6rem); }
h3 { font-size: clamp(1.3rem, 1.05rem + 1vw, 1.6rem); }
h4 { font-size: 1.15rem; }

p { margin: 0 0 1.15em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

a { color: var(--navy-600); text-underline-offset: .18em; }
a:hover { color: var(--gold-600); }

ul, ol { margin: 0 0 1.15em; padding-left: 1.25em; }
li { margin-bottom: .45em; }

hr { border: 0; border-top: 1px solid var(--line); margin: 2.5rem 0; }

blockquote {
  margin: 1.75rem 0;
  padding: .25rem 0 .25rem 1.5rem;
  border-left: 3px solid var(--gold-500);
  font-family: var(--font-serif);
  font-size: 1.2rem;
  color: var(--navy-700);
}

code, pre { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: .9em; }

table { width: 100%; border-collapse: collapse; margin: 0 0 1.5rem; }
th, td { padding: .7rem .85rem; border-bottom: 1px solid var(--line); text-align: left; }
th { background: var(--navy-50); font-weight: 600; color: var(--navy-800); }

/* Focus: visible, on-brand, never on mouse clicks. */
:focus-visible {
  outline: 2px solid var(--gold-500);
  outline-offset: 3px;
  border-radius: 2px;
}

.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap; border: 0;
}

.screen-reader-text:focus {
  position: fixed !important;
  top: .75rem; left: .75rem;
  width: auto; height: auto;
  clip: auto; clip-path: none;
  padding: .75rem 1.25rem;
  background: var(--navy-900);
  color: var(--white);
  border-radius: var(--r-md);
  z-index: 999;
  text-decoration: none;
  font-weight: 600;
}

.skip-link:focus { color: var(--white); }

/* ---------------------------------------------------------------
   3. Layout
--------------------------------------------------------------- */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gut);
}

.shell--narrow { max-width: var(--shell-narrow); }

.section { padding-block: clamp(3.5rem, 2rem + 6vw, 6.5rem); }
.section--tight { padding-block: clamp(2.5rem, 1.5rem + 4vw, 4rem); }
.section--navy { background: var(--navy-900); color: var(--navy-100); }
.section--navy h1, .section--navy h2, .section--navy h3, .section--navy h4 { color: var(--white); }
.section--navy a { color: var(--gold-400); }
.section--paper { background: var(--paper-soft); }

.grid { display: grid; gap: 1.5rem; }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); }

.stack > * + * { margin-top: 1.15rem; }
.center { text-align: center; }
.measure { max-width: var(--measure); }
.measure-sm { max-width: 58ch; }

.lead {
  font-size: clamp(1.1rem, 1rem + .45vw, 1.3rem);
  line-height: 1.65;
  color: var(--ink-soft);
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold-600);
  margin-bottom: .85rem;
}

.section--navy .eyebrow { color: var(--gold-400); }

.section-head { max-width: 42rem; margin-bottom: clamp(2rem, 1.5rem + 2vw, 3.25rem); }
.section-head.center { margin-inline: auto; }

/* ---------------------------------------------------------------
   4. Buttons
--------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  padding: .85rem 1.6rem;
  border: 1px solid transparent;
  border-radius: var(--r-md);
  font-family: var(--font-sans);
  font-size: .95rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .18s var(--ease), border-color .18s var(--ease),
              color .18s var(--ease), transform .18s var(--ease), box-shadow .18s var(--ease);
}

.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--primary { background: var(--navy-800); color: var(--white); }
.btn--primary:hover { background: var(--navy-700); color: var(--white); box-shadow: var(--sh-md); }

.btn--gold { background: var(--gold-500); color: var(--navy-900); }
.btn--gold:hover { background: var(--gold-400); color: var(--navy-900); box-shadow: var(--sh-md); }

.btn--ghost { background: transparent; color: var(--navy-800); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--navy-700); background: var(--navy-50); color: var(--navy-900); }

.btn--on-navy { background: transparent; color: var(--white); border-color: rgba(255, 255, 255, .28); }
.btn--on-navy:hover { background: rgba(255, 255, 255, .09); border-color: rgba(255, 255, 255, .55); color: var(--white); }

.btn--block { width: 100%; }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: .8rem;
  margin-top: 1.75rem;
}

/* Text link with a sliding arrow. */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--navy-700);
}
.link-arrow::after {
  content: "\2192";
  transition: transform .18s var(--ease);
}
.link-arrow:hover::after { transform: translateX(4px); }
.section--navy .link-arrow { color: var(--gold-400); }

/* ---------------------------------------------------------------
   5. Header
--------------------------------------------------------------- */
.topbar {
  background: var(--navy-900);
  color: var(--navy-100);
  font-size: .875rem;
  border-bottom: 1px solid rgba(255, 255, 255, .09);
}
.topbar__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .5rem 1.5rem;
  min-height: 2.75rem;
  padding-block: .4rem;
}
.topbar__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem; }
.topbar__item { display: inline-flex; align-items: center; gap: .4rem; }
.topbar a { color: var(--navy-100); text-decoration: none; }
.topbar a:hover { color: var(--gold-400); }
.topbar .badge {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--gold-400);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line-soft);
}
.site-header.is-stuck { box-shadow: var(--sh-sm); }

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 4.75rem;
}

.brand { display: inline-flex; align-items: center; gap: .8rem; text-decoration: none; }
.brand__mark {
  flex: 0 0 auto;
  width: 2.6rem; height: 2.6rem;
  display: grid; place-items: center;
  background: var(--navy-800);
  color: var(--gold-400);
  border-radius: var(--r-sm);
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: .04em;
}
.brand__name {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.15;
  color: var(--navy-900);
}
.brand__sub {
  display: block;
  font-size: .72rem;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

/* Primary nav */
.nav-toggle {
  display: none;
  width: 2.75rem; height: 2.75rem;
  align-items: center; justify-content: center;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  color: var(--navy-800);
  cursor: pointer;
}
.nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after {
  display: block;
  width: 18px; height: 2px;
  background: currentColor;
  transition: transform .22s var(--ease), opacity .18s var(--ease);
}
.nav-toggle__bars { position: relative; }
.nav-toggle__bars::before, .nav-toggle__bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle__bars::before { top: -6px; }
.nav-toggle__bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { transform: translateY(-6px) rotate(-45deg); }

.site-nav { display: flex; align-items: center; gap: 1.75rem; }
.site-nav ul { display: flex; align-items: center; gap: 1.6rem; margin: 0; padding: 0; list-style: none; }
.site-nav li { margin: 0; }
.site-nav a {
  position: relative;
  display: inline-block;
  padding-block: .4rem;
  color: var(--navy-800);
  font-size: .95rem;
  font-weight: 500;
  text-decoration: none;
}
.site-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--gold-500);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .2s var(--ease);
}
.site-nav a:hover::after,
.site-nav .current-menu-item > a::after,
.site-nav .current-menu-ancestor > a::after,
.site-nav .current_page_item > a::after { transform: scaleX(1); }
.site-nav .current-menu-item > a,
.site-nav .current-menu-ancestor > a,
.site-nav .current_page_item > a { color: var(--navy-900); font-weight: 600; }

.site-nav .menu-item-has-children { position: relative; }
.site-nav .sub-menu {
  position: absolute;
  top: calc(100% + .6rem);
  left: -1rem;
  min-width: 15rem;
  display: block;
  padding: .5rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--sh-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity .18s var(--ease), transform .18s var(--ease), visibility .18s;
}
.site-nav .menu-item-has-children:hover .sub-menu,
.site-nav .menu-item-has-children:focus-within .sub-menu {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.site-nav .sub-menu a { display: block; padding: .5rem .75rem; border-radius: var(--r-sm); font-size: .9rem; }
.site-nav .sub-menu a::after { display: none; }
.site-nav .sub-menu a:hover { background: var(--navy-50); }

.header__cta { display: inline-flex; }
.header__cta .btn { padding: .6rem 1.15rem; font-size: .875rem; }

/* Sticky contact rail on desktop */
.rail {
  position: fixed;
  right: 1.25rem;
  bottom: 1.5rem;
  z-index: 90;
  display: flex;
  flex-direction: column;
  gap: .6rem;
}
.rail__btn {
  display: grid;
  place-items: center;
  width: 3.25rem; height: 3.25rem;
  border-radius: 50%;
  background: var(--navy-800);
  color: var(--white);
  box-shadow: var(--sh-md);
  text-decoration: none;
  transition: transform .18s var(--ease), background-color .18s var(--ease);
}
.rail__btn:hover { transform: translateY(-2px) scale(1.04); background: var(--navy-700); color: var(--white); }
.rail__btn--wa { background: #25d366; }
.rail__btn--wa:hover { background: #1eb855; }

/* ---------------------------------------------------------------
   6. Hero
--------------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(120% 90% at 85% 0%, rgba(184, 148, 74, .16) 0%, transparent 55%),
    linear-gradient(160deg, var(--navy-900) 0%, var(--navy-800) 55%, var(--navy-700) 100%);
  color: var(--white);
  padding-block: clamp(4rem, 2.5rem + 7vw, 7.5rem);
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(90% 70% at 50% 30%, #000 0%, transparent 75%);
  pointer-events: none;
}
.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: clamp(2.5rem, 1.5rem + 4vw, 5rem);
  align-items: center;
}
.hero h1 { color: var(--white); margin-bottom: .5em; }
.hero h1 em { font-style: normal; color: var(--gold-400); }
.hero__lead {
  font-size: clamp(1.075rem, 1rem + .5vw, 1.25rem);
  line-height: 1.65;
  color: rgba(255, 255, 255, .84);
  max-width: 56ch;
}
.hero__chips {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin: 1.75rem 0 0;
  padding: 0;
  list-style: none;
}
.hero__chips li {
  margin: 0;
  padding: .35rem .8rem;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .02em;
  color: var(--gold-400);
  border: 1px solid rgba(184, 148, 74, .4);
  border-radius: 100px;
  background: rgba(184, 148, 74, .08);
}

.hero__card {
  padding: 1.75rem;
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: var(--r-lg);
  backdrop-filter: blur(8px);
}
.hero__card h2 {
  font-size: 1.05rem;
  font-family: var(--font-sans);
  font-weight: 700;
  letter-spacing: .02em;
  color: var(--gold-400);
  margin-bottom: 1rem;
}
.hero__list { margin: 0; padding: 0; list-style: none; }
.hero__list li {
  display: flex;
  gap: .75rem;
  align-items: flex-start;
  padding-block: .6rem;
  margin: 0;
  font-size: .925rem;
  color: rgba(255, 255, 255, .82);
  border-top: 1px solid rgba(255, 255, 255, .1);
}
.hero__list li:first-child { border-top: 0; }
.hero__list svg { flex: 0 0 auto; margin-top: .28rem; color: var(--gold-400); }

/* Page hero (interior pages) */
.page-hero {
  background: linear-gradient(160deg, var(--navy-900), var(--navy-700));
  color: var(--white);
  padding-block: clamp(3rem, 2rem + 4vw, 5rem);
  border-bottom: 3px solid var(--gold-500);
}
.page-hero h1 { color: var(--white); margin-bottom: .35em; }
.page-hero p { color: rgba(255, 255, 255, .8); max-width: 60ch; font-size: 1.1rem; }
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem;
  margin: 0 0 1.15rem;
  padding: 0;
  list-style: none;
  font-size: .85rem;
  color: rgba(255, 255, 255, .62);
}
.breadcrumbs li { margin: 0; display: flex; align-items: center; gap: .5rem; }
.breadcrumbs li + li::before { content: "/"; color: rgba(255, 255, 255, .35); }
.breadcrumbs a { color: rgba(255, 255, 255, .82); text-decoration: none; }
.breadcrumbs a:hover { color: var(--gold-400); }

/* ---------------------------------------------------------------
   7. Stats
--------------------------------------------------------------- */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.stat {
  padding: 1.75rem 1.5rem;
  background: var(--paper);
  text-align: center;
}
.stat__value {
  display: block;
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.15rem);
  font-weight: 700;
  line-height: 1.1;
  color: var(--navy-800);
  margin-bottom: .4rem;
}
.stat__value em { font-style: normal; color: var(--gold-600); }
.stat__label {
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

/* ---------------------------------------------------------------
   8. Cards
--------------------------------------------------------------- */
.card {
  display: flex;
  flex-direction: column;
  padding: 1.75rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease), transform .2s var(--ease);
}
a.card, .card--link { color: inherit; text-decoration: none; }
.card--hover:hover,
a.card:hover {
  border-color: var(--gold-400);
  box-shadow: var(--sh-md);
  transform: translateY(-3px);
}
.card__num {
  font-family: var(--font-serif);
  font-size: .95rem;
  font-weight: 700;
  color: var(--gold-600);
  letter-spacing: .04em;
  margin-bottom: .5rem;
}
.card__icon {
  width: 2.75rem; height: 2.75rem;
  display: grid; place-items: center;
  margin-bottom: 1rem;
  background: var(--navy-50);
  border-radius: var(--r-md);
  color: var(--navy-700);
}
.card__title { font-size: 1.2rem; margin-bottom: .45rem; }
.card__text { color: var(--ink-soft); font-size: .96rem; margin: 0; }
.card__more { margin-top: auto; padding-top: 1.15rem; }

.card--on-navy {
  background: rgba(255, 255, 255, .05);
  border-color: rgba(255, 255, 255, .13);
}
.card--on-navy:hover { border-color: var(--gold-400); background: rgba(255, 255, 255, .08); }
.card--on-navy .card__title { color: var(--white); }
.card--on-navy .card__text { color: rgba(255, 255, 255, .78); }
.card--on-navy .card__icon { background: rgba(255, 255, 255, .09); color: var(--gold-400); }

/* Checklist */
.checklist { margin: 0; padding: 0; list-style: none; }
.checklist li {
  position: relative;
  padding-left: 2rem;
  margin-bottom: .8rem;
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 0; top: .45em;
  width: 1.05rem; height: .55rem;
  border-left: 2px solid var(--gold-500);
  border-bottom: 2px solid var(--gold-500);
  transform: rotate(-45deg);
}
.section--navy .checklist li::before { border-color: var(--gold-400); }

/* Values grid */
.value {
  padding: 1.5rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 3px solid var(--gold-500);
  border-radius: var(--r-sm);
}
.value h3 { font-family: var(--font-sans); font-size: 1.05rem; font-weight: 700; margin: 0 0 .25rem; }
.value p { margin: 0; font-size: .92rem; color: var(--ink-soft); }

/* ---------------------------------------------------------------
   9. Split / media
--------------------------------------------------------------- */
.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr));
  gap: clamp(2rem, 1.5rem + 3vw, 4rem);
  align-items: center;
}
.split__media img { border-radius: var(--r-lg); box-shadow: var(--sh-lg); width: 100%; }

.figure-frame {
  padding: 1rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-md);
}

/* ---------------------------------------------------------------
   10. Service detail
--------------------------------------------------------------- */
.service-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 18rem;
  gap: clamp(2rem, 1.5rem + 3vw, 4rem);
  align-items: start;
}
.service-aside {
  position: sticky;
  top: 6.5rem;
  padding: 1.5rem;
  background: var(--navy-50);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
}
.service-aside h2 {
  font-family: var(--font-sans);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: .85rem;
}
.service-aside ol { margin: 0; padding: 0; list-style: none; counter-reset: svc; }
.service-aside li { margin: 0; }
.service-aside a {
  display: block;
  padding: .5rem .6rem;
  border-radius: var(--r-sm);
  font-size: .9rem;
  text-decoration: none;
  color: var(--navy-800);
}
.service-aside a:hover { background: var(--white); color: var(--gold-600); }
.service-aside .is-current a { background: var(--navy-800); color: var(--white); font-weight: 600; }

.panel {
  padding: 1.75rem;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--paper);
}
.panel + .panel { margin-top: 1.25rem; }
.panel--tint { background: var(--paper-soft); border-color: var(--line-soft); }
.panel__title {
  font-family: var(--font-sans);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold-600);
  margin-bottom: 1rem;
}

.talk-box {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 1.5rem;
  background: var(--navy-800);
  color: var(--white);
  border-radius: var(--r-lg);
}
.talk-box p { margin: 0; color: rgba(255, 255, 255, .84); font-size: .95rem; }
.talk-box a { color: var(--gold-400); font-weight: 600; text-decoration: none; }

/* ---------------------------------------------------------------
   11. Forms
--------------------------------------------------------------- */
.form-grid { display: grid; gap: 1.15rem; }
.form-row { display: grid; gap: 1.15rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); }

.field label {
  display: block;
  margin-bottom: .4rem;
  font-size: .875rem;
  font-weight: 600;
  color: var(--navy-800);
}
.field .req { color: var(--gold-600); }

.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field select,
.field textarea {
  width: 100%;
  padding: .75rem .9rem;
  font-family: inherit;
  font-size: .95rem;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  transition: border-color .16s var(--ease), box-shadow .16s var(--ease);
}
.field textarea { min-height: 8.5rem; resize: vertical; }
.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath fill='%234a5766' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .9rem center;
  background-size: .7rem;
  padding-right: 2.4rem;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--gold-500);
  box-shadow: 0 0 0 3px rgba(184, 148, 74, .18);
}
.field--error input,
.field--error select,
.field--error textarea { border-color: #c0392b; }
.field__error { margin: .35rem 0 0; font-size: .82rem; color: #c0392b; }

.honeypot { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

.form-note { font-size: .85rem; color: var(--ink-mute); margin-top: 1rem; }

.notice {
  padding: 1rem 1.15rem;
  border-radius: var(--r-md);
  border-left: 3px solid;
  margin-bottom: 1.5rem;
  font-size: .95rem;
}
.notice--ok { background: #eef8f1; border-color: #2e8b57; color: #1e5e3a; }
.notice--err { background: #fdeeec; border-color: #c0392b; color: #8c2b20; }

/* ---------------------------------------------------------------
   12. Contact info blocks
--------------------------------------------------------------- */
.info-card {
  display: flex;
  gap: 1rem;
  padding: 1.35rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
}
.info-card__icon {
  flex: 0 0 auto;
  width: 2.5rem; height: 2.5rem;
  display: grid; place-items: center;
  background: var(--navy-50);
  border-radius: var(--r-sm);
  color: var(--gold-600);
}
.info-card h3 { font-family: var(--font-sans); font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-mute); margin: 0 0 .3rem; }
.info-card p { margin: 0; font-size: .98rem; }
.info-card a { text-decoration: none; font-weight: 600; }
.info-card a:hover { text-decoration: underline; }

.map-embed {
  aspect-ratio: 16 / 10;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--navy-50);
}
.map-embed iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ---------------------------------------------------------------
   13. Blog
--------------------------------------------------------------- */
.post-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-bottom: .75rem;
  font-size: .8rem;
  color: var(--ink-mute);
}
.post-card__thumb {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--r-md);
  margin-bottom: 1.1rem;
  background: var(--navy-50);
}
.post-card__thumb img { width: 100%; height: 100%; object-fit: cover; }

.empty-state {
  padding: clamp(2.5rem, 2rem + 3vw, 4.5rem);
  text-align: center;
  background: var(--paper-soft);
  border: 1px dashed var(--line);
  border-radius: var(--r-lg);
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  justify-content: center;
  margin-top: 3rem;
}
.pagination .page-numbers {
  display: grid;
  place-items: center;
  min-width: 2.5rem; height: 2.5rem;
  padding-inline: .6rem;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  text-decoration: none;
  font-size: .9rem;
  font-weight: 600;
  color: var(--navy-800);
}
.pagination .page-numbers:hover { border-color: var(--navy-700); background: var(--navy-50); }
.pagination .page-numbers.current { background: var(--navy-800); border-color: var(--navy-800); color: var(--white); }

/* ---------------------------------------------------------------
   14. CTA band
--------------------------------------------------------------- */
.cta-band {
  background:
    radial-gradient(100% 130% at 0% 100%, rgba(184, 148, 74, .2) 0%, transparent 60%),
    linear-gradient(120deg, var(--navy-800), var(--navy-900));
  color: var(--white);
  padding-block: clamp(3rem, 2rem + 4vw, 5rem);
}
.cta-band__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.cta-band h2 { color: var(--white); margin: 0 0 .4rem; }
.cta-band p { margin: 0; color: rgba(255, 255, 255, .82); max-width: 48ch; }

/* ---------------------------------------------------------------
   15. Footer
--------------------------------------------------------------- */
.site-footer {
  background: var(--navy-900);
  color: var(--navy-100);
  font-size: .93rem;
  padding-block: clamp(3rem, 2rem + 3vw, 4.5rem) 0;
}
.footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(auto-fit, minmax(min(100%, 11rem), 1fr));
  gap: 2.5rem;
  padding-bottom: 3rem;
}
.site-footer h2, .site-footer h3 {
  font-family: var(--font-sans);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--white);
  margin: 0 0 1.1rem;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: .55rem; }
.site-footer a { color: rgba(255, 255, 255, .74); text-decoration: none; }
.site-footer a:hover { color: var(--gold-400); }
.site-footer .brand__name { color: var(--white); }
.site-footer .brand__sub { color: rgba(255, 255, 255, .55); }
.site-footer p { color: rgba(255, 255, 255, .68); }

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .75rem 1.5rem;
  padding-block: 1.35rem;
  border-top: 1px solid rgba(255, 255, 255, .11);
  font-size: .85rem;
  color: rgba(255, 255, 255, .6);
}

/* ---------------------------------------------------------------
   16. Content typography (editor output)
--------------------------------------------------------------- */
.prose { max-width: var(--measure); }
.prose > * + * { margin-top: 1.15em; }
.prose h2 { margin-top: 2.5em; }
.prose h3 { margin-top: 1.9em; }
.prose img { border-radius: var(--r-md); }
.prose figure { margin: 2rem 0; }
.prose figcaption { font-size: .875rem; color: var(--ink-mute); margin-top: .6rem; }
.alignwide { max-width: min(1100px, 100%); margin-inline: auto; }
.alignfull { width: 100vw; max-width: 100vw; margin-left: calc(50% - 50vw); }

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

/* ---------------------------------------------------------------
   18. Responsive
--------------------------------------------------------------- */
@media (max-width: 1024px) {
  .service-layout { grid-template-columns: 1fr; }
  .service-aside { position: static; }
}

@media (max-width: 900px) {
  .hero__inner { grid-template-columns: 1fr; }
  .rail { display: none; }
}

@media (max-width: 860px) {
  :root { --gut: 1.15rem; }

  .topbar__meta { font-size: .8rem; gap: .9rem; }
  .topbar__meta .topbar__item--hide-sm { display: none; }

  .site-header__inner { min-height: 4.1rem; }
  .nav-toggle { display: inline-flex; }

  .site-nav {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(21rem, 86vw);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 5.5rem 1.35rem 2rem;
    background: var(--paper);
    border-left: 1px solid var(--line);
    box-shadow: var(--sh-lg);
    transform: translateX(100%);
    transition: transform .26s var(--ease);
    overflow-y: auto;
  }
  .site-nav.is-open { transform: translateX(0); }

  .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .site-nav li { border-bottom: 1px solid var(--line-soft); }
  .site-nav a { display: block; padding: .9rem .25rem; font-size: 1rem; }
  .site-nav a::after { display: none; }

  .site-nav .sub-menu {
    position: static;
    min-width: 0;
    padding: 0 0 .6rem .9rem;
    border: 0;
    border-left: 2px solid var(--line);
    border-radius: 0;
    box-shadow: none;
    background: transparent;
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .header__cta { display: none; }

  .nav-scrim {
    position: fixed;
    inset: 0;
    z-index: 95;
    background: rgba(10, 26, 43, .45);
    opacity: 0;
    visibility: hidden;
    transition: opacity .24s var(--ease), visibility .24s;
  }
  .nav-scrim.is-open { opacity: 1; visibility: visible; }
}

@media (max-width: 560px) {
  body { font-size: 1rem; }
  .brand__name { font-size: 1rem; }
  .brand__mark { width: 2.3rem; height: 2.3rem; font-size: .875rem; }
  .stats { border-radius: var(--r-md); }
  .footer__grid { gap: 2rem; }
}

/* No JS: menus stay reachable. */
.no-js .site-nav { transform: none; }
.no-js .nav-toggle { display: none; }