/*
Theme Name: MKG Group
Theme URI: https://mkggroup.org/
Author: MKG Group
Author URI: https://mkggroup.org/
Description: The official MKG Group website theme — professional construction, fiberglass, steel and structural solutions. Converted from the approved MKG Group design into a fully editable WordPress theme.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Tested up to: 6.6
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: mkg-group
Tags: custom-menu, custom-logo, featured-images, threaded-comments, translation-ready

This theme preserves the exact design, layout, colors, typography, and
components of the approved MKG Group website. All CSS below this header
is the site's existing global stylesheet (design unchanged) plus the
minimal WordPress-required core styles (alignment classes, etc.).
*/

/* ---- WordPress core alignment classes (required by the theme review guidelines) ---- */
.alignleft { float: left; margin: 0 1.5em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1.5em; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.screen-reader-text {
  border: 0; clip: rect(1px,1px,1px,1px); clip-path: inset(50%); height: 1px; width: 1px;
  margin: -1px; overflow: hidden; padding: 0; position: absolute !important; word-wrap: normal !important;
}
.screen-reader-text:focus {
  background: #fff; color: #16253D; display: block; height: auto; width: auto;
  padding: 12px 18px; position: fixed; top: 8px; left: 8px; z-index: 100000;
  text-decoration: none; border-radius: 4px; box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

/* ===================================================================
   MKG GROUP — GLOBAL STYLESHEET
   One shared stylesheet for every page (design tokens, header/nav,
   mega-menu, footer, buttons, cards, sections, forms).
   =================================================================== */


  :root {
    --ink: #16253D;
    --ink-soft: #2A3B57;
    --brass: #A9793F;
    --brass-deep: #8C632F;
    --parchment: #F6F3EC;
    --panel: #FFFFFF;
    --charcoal: #23262B;
    --slate: #5B6472;
    --line: #DDD6C6;
    --focus: #1C6E5A;
    --radius-s: 3px;
    --radius-m: 6px;
    --maxw: 1200px;
    --font-serif: 'Newsreader', Georgia, 'Times New Roman', serif;
    --font-sans: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  }

  @media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
      --ink: #F6F3EC;
      --ink-soft: #D8D2C4;
      --brass: #CBA05E;
      --brass-deep: #E0B571;
      --parchment: #10161F;
      --panel: #161E29;
      --charcoal: #EDEAE2;
      --slate: #9AA3B0;
      --line: #2B3646;
      --focus: #4FBF9E;
    }
  }
  :root[data-theme="dark"] {
    --ink: #F6F3EC;
    --ink-soft: #D8D2C4;
    --brass: #CBA05E;
    --brass-deep: #E0B571;
    --parchment: #10161F;
    --panel: #161E29;
    --charcoal: #EDEAE2;
    --slate: #9AA3B0;
    --line: #2B3646;
    --focus: #4FBF9E;
  }

  * { box-sizing: border-box; }
  html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(84px + env(safe-area-inset-top, 0px));
  }
  @media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  }
  body {
    margin: 0;
    background: var(--parchment);
    color: var(--charcoal);
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.6;
    padding-top: env(safe-area-inset-top, 0px);
    padding-bottom: env(safe-area-inset-bottom, 0px);
    -webkit-font-smoothing: antialiased;
  }
  img, svg { max-width: 100%; display: block; }
  a { color: inherit; }
  h1, h2, h3, h4 { font-family: var(--font-serif); font-weight: 600; margin: 0; color: var(--ink); line-height: 1.15; }
  p { margin: 0; }
  ul { margin: 0; padding: 0; list-style: none; }
  button { font-family: inherit; cursor: pointer; }
  :focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }

  .wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }
  @media (max-width: 640px) { .wrap { padding: 0 20px; } }

  .eyebrow-free-label { font-size: 0.8125rem; color: var(--slate); letter-spacing: 0.01em; }

  /* ---------- Notice banner ---------- */
  .notice {
    background: var(--ink);
    color: var(--parchment);
    font-size: 0.8125rem;
    text-align: center;
    padding: 9px 20px;
  }
  .notice strong { color: var(--brass); font-weight: 600; }

  /* ---------- Header ---------- */
  header.site {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(246, 243, 236, 0.92);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--line);
    transition: box-shadow 0.2s ease;
  }
  :root[data-theme="dark"] header.site,
  @media (prefers-color-scheme: dark) { header.site { background: rgba(16,22,31,0.92); } }
  header.site.scrolled { box-shadow: 0 2px 14px rgba(20,20,10,0.08); }
  .nav-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 76px;
    gap: 24px;
  }
  .logo {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    text-decoration: none;
    white-space: nowrap;
  }
  .logo span { color: var(--brass); font-weight: 500; }
  nav.primary { display: flex; align-items: center; gap: 30px; }
  nav.primary a {
    text-decoration: none;
    font-size: 0.9375rem;
    color: var(--ink-soft);
    position: relative;
    padding: 4px 0;
  }
  nav.primary a:hover { color: var(--ink); }
  nav.primary a::after {
    content: "";
    position: absolute; left: 0; right: 100%; bottom: -3px;
    height: 2px; background: var(--brass);
    transition: right 0.25s ease;
  }
  nav.primary a:hover::after { right: 0; }

  .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 22px;
    border-radius: var(--radius-s);
    font-size: 0.9375rem;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid transparent;
    transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
    white-space: nowrap;
  }
  .btn:hover { transform: translateY(-1px); }
  .btn-primary { background: var(--brass); color: #201404; }
  .btn-primary:hover { background: var(--brass-deep); }
  .btn-outline { background: transparent; border-color: var(--ink); color: var(--ink); }
  .btn-outline:hover { background: var(--ink); color: var(--parchment); }
  .btn-ghost { background: transparent; color: var(--ink-soft); border-color: var(--line); }
  .btn-ghost:hover { border-color: var(--brass); color: var(--ink); }
  .btn-sm { padding: 9px 16px; font-size: 0.875rem; }

  .header-cta { display: flex; align-items: center; gap: 14px; }
  .hamburger {
    display: none;
    background: none; border: none; padding: 8px;
    flex-direction: column; gap: 5px;
  }
  .hamburger span { width: 22px; height: 2px; background: var(--ink); display: block; }

  .mobile-nav {
    display: none;
    position: fixed; inset: 76px 0 0 0;
    background: var(--parchment);
    z-index: 49;
    padding: 24px 20px;
    overflow-y: auto;
  }
  .mobile-nav.open { display: block; }
  .mobile-nav a {
    display: block;
    padding: 15px 4px;
    border-bottom: 1px solid var(--line);
    text-decoration: none;
    font-family: var(--font-serif);
    font-size: 1.25rem;
    color: var(--ink);
  }
  .mobile-nav .btn { margin-top: 20px; width: 100%; }

  @media (max-width: 920px) {
    nav.primary { display: none; }
    .header-cta .btn-primary { display: none; }
    .hamburger { display: flex; }
  }

  /* ---------- Sections generic ---------- */
  section { padding: 96px 0; }
  @media (max-width: 640px) { section { padding: 64px 0; } }
  .section-head { max-width: 620px; margin-bottom: 52px; }
  .section-head h2 { font-size: clamp(1.9rem, 3.2vw, 2.6rem); }
  .section-head p { margin-top: 14px; color: var(--slate); font-size: 1.0625rem; }
  .content-flag {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--brass-deep);
    border: 1px dashed var(--brass);
    padding: 5px 10px;
    border-radius: var(--radius-s);
    margin-bottom: 16px;
  }

  .reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.6s ease, transform 0.6s ease; }
  .reveal.in { opacity: 1; transform: none; }

  /* ---------- Hero ---------- */
  .hero { padding: 76px 0 90px; overflow: hidden; }
  .hero .wrap { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
  @media (max-width: 920px) { .hero .wrap { grid-template-columns: 1fr; gap: 40px; } .hero { padding-top: 48px; } }
  .hero h1 { font-size: clamp(2.3rem, 5vw, 3.5rem); letter-spacing: -0.01em; }
  .hero .lead { margin-top: 22px; font-size: 1.1875rem; color: var(--slate); max-width: 46ch; }
  .hero .ctas { display: flex; gap: 14px; margin-top: 34px; flex-wrap: wrap; }
  .trust-row {
    display: flex; flex-wrap: wrap; gap: 22px 30px;
    margin-top: 44px; padding-top: 28px; border-top: 1px solid var(--line);
  }
  .trust-row li { display: flex; align-items: center; gap: 8px; font-size: 0.9375rem; color: var(--ink-soft); }
  .trust-row svg { width: 16px; height: 16px; color: var(--brass); flex-shrink: 0; }

  .hero-art {
    background: var(--ink);
    border-radius: var(--radius-m);
    aspect-ratio: 4/5;
    position: relative;
    overflow: hidden;
  }
  .hero-art svg { position: absolute; inset: 0; width: 100%; height: 100%; }

  /* ---------- About / trust intro ---------- */
  .about .wrap { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 64px; align-items: center; }
  @media (max-width: 920px) { .about .wrap { grid-template-columns: 1fr; gap: 36px; } }
  .about-art { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-m); aspect-ratio: 1/1; }
  .about-art svg { width: 100%; height: 100%; }
  .about-copy h2 { font-size: clamp(1.9rem, 3.2vw, 2.5rem); }
  .about-copy p { color: var(--slate); margin-top: 16px; font-size: 1.0625rem; max-width: 58ch; }
  .about-copy .btn { margin-top: 28px; }

  /* ---------- Services ---------- */
  .services { background: var(--panel); }
  .service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-m); overflow: hidden; }
  @media (max-width: 920px) { .service-grid { grid-template-columns: repeat(2, 1fr); } }
  @media (max-width: 640px) { .service-grid { grid-template-columns: 1fr; } }
  .service-card { background: var(--panel); padding: 36px 30px; display: flex; flex-direction: column; gap: 14px; transition: background 0.2s ease; }
  .service-card:hover { background: var(--parchment); }
  .service-card svg { width: 30px; height: 30px; color: var(--brass); }
  .service-card h3 { font-size: 1.25rem; }
  .service-card p { color: var(--slate); font-size: 0.9688rem; flex-grow: 1; }
  .service-card .link { font-size: 0.875rem; font-weight: 600; color: var(--ink); text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
  .service-card .link svg { width: 14px; height: 14px; color: var(--ink); transition: transform 0.15s ease; }
  .service-card .link:hover svg { transform: translateX(3px); }

  /* ---------- Why choose ---------- */
  .why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
  @media (max-width: 920px) { .why-grid { grid-template-columns: repeat(2, 1fr); } }
  @media (max-width: 640px) { .why-grid { grid-template-columns: 1fr; } }
  .why-card { display: flex; gap: 16px; }
  .why-card .icon-box {
    width: 46px; height: 46px; flex-shrink: 0; border-radius: var(--radius-s);
    background: var(--ink); display: flex; align-items: center; justify-content: center;
  }
  .why-card .icon-box svg { width: 22px; height: 22px; color: var(--brass); }
  .why-card h3 { font-size: 1.0625rem; margin-bottom: 6px; }
  .why-card p { color: var(--slate); font-size: 0.9375rem; }

  /* ---------- Capabilities / work showcase ---------- */
  .work { background: var(--panel); }
  .work-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
  @media (max-width: 920px) { .work-grid { grid-template-columns: 1fr 1fr; } }
  @media (max-width: 640px) { .work-grid { grid-template-columns: 1fr; } }
  .work-card { border: 1px solid var(--line); border-radius: var(--radius-m); overflow: hidden; }
  .work-thumb { aspect-ratio: 16/10; background: var(--ink); position: relative; }
  .work-thumb svg { width: 100%; height: 100%; }
  .work-body { padding: 22px 22px 26px; }
  .work-cat { font-size: 0.75rem; color: var(--brass-deep); font-weight: 600; }
  .work-body h3 { font-size: 1.125rem; margin-top: 6px; }
  .work-body p { color: var(--slate); font-size: 0.9375rem; margin-top: 8px; }
  .work-body .link { margin-top: 14px; display: inline-flex; align-items: center; gap: 6px; font-size: 0.875rem; font-weight: 600; text-decoration: none; color: var(--ink); }
  .work-body .link svg { width: 14px; height: 14px; }

  /* ---------- Process ---------- */
  .process-row { display: flex; gap: 0; counter-reset: step; }
  @media (max-width: 820px) { .process-row { flex-direction: column; gap: 30px; } }
  .process-step { flex: 1; position: relative; padding: 0 24px 0 0; }
  .process-step:not(:last-child) { border-right: 1px solid var(--line); }
  @media (max-width: 820px) { .process-step:not(:last-child) { border-right: none; border-bottom: 1px solid var(--line); padding: 0 0 26px 0; } }
  .step-num { font-family: var(--font-serif); font-size: 2.25rem; color: var(--brass); font-weight: 500; }
  .process-step h3 { margin-top: 10px; font-size: 1.1875rem; }
  .process-step p { margin-top: 8px; color: var(--slate); font-size: 0.9375rem; max-width: 30ch; }

  /* ---------- Testimonials empty state ---------- */
  .testimonials { background: var(--panel); }
  .empty-state {
    border: 1px dashed var(--line);
    border-radius: var(--radius-m);
    padding: 56px 32px;
    text-align: center;
    max-width: 640px;
    margin: 0 auto;
  }
  .empty-state svg { width: 34px; height: 34px; color: var(--brass); margin: 0 auto 18px; }
  .empty-state h3 { font-size: 1.25rem; }
  .empty-state p { color: var(--slate); margin-top: 10px; font-size: 0.9688rem; }

  /* ---------- FAQ ---------- */
  .faq-list { max-width: 780px; }
  .faq-item { border-bottom: 1px solid var(--line); }
  .faq-q {
    width: 100%; display: flex; align-items: center; justify-content: space-between;
    background: none; border: none; text-align: left;
    padding: 22px 4px; font-family: var(--font-serif); font-size: 1.125rem; color: var(--ink);
  }
  .faq-q svg { width: 18px; height: 18px; color: var(--brass); flex-shrink: 0; transition: transform 0.2s ease; margin-left: 16px; }
  .faq-item[open] .faq-q svg { transform: rotate(45deg); }
  .faq-a { padding: 0 4px 24px; color: var(--slate); font-size: 0.9688rem; max-width: 64ch; }
  .faq-item summary { cursor: pointer; list-style: none; }
  .faq-item summary::-webkit-details-marker { display: none; }

  /* ---------- Final CTA ---------- */
  .final-cta { background: var(--ink); color: var(--parchment); text-align: center; }
  .final-cta h2 { color: var(--parchment); font-size: clamp(2rem, 4vw, 2.75rem); max-width: 18ch; margin: 0 auto; }
  .final-cta p { color: #C8CBD2; margin-top: 16px; max-width: 52ch; margin-left: auto; margin-right: auto; font-size: 1.0625rem; }
  .final-cta .ctas { display: flex; gap: 16px; justify-content: center; margin-top: 32px; flex-wrap: wrap; }
  .final-cta .btn-outline { border-color: #47546B; color: var(--parchment); }
  .final-cta .btn-outline:hover { background: var(--parchment); color: var(--ink); border-color: var(--parchment); }

  /* ---------- Footer ---------- */
  footer.site { background: var(--ink); color: #C8CBD2; padding: 72px 0 26px; }
  .footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 44px; padding-bottom: 44px; border-bottom: 1px solid #2A3B57; }
  @media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr 1fr; row-gap: 36px; } }
  @media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
  .footer-grid h4 { color: var(--parchment); font-size: 0.9375rem; font-family: var(--font-sans); font-weight: 600; margin-bottom: 16px; }
  .footer-logo { font-family: var(--font-serif); font-size: 1.375rem; color: var(--parchment); text-decoration: none; }
  .footer-logo span { color: var(--brass); }
  .footer-grid p { font-size: 0.9375rem; margin-top: 14px; max-width: 30ch; color: #A6AEBD; }
  .footer-grid ul li { margin-bottom: 11px; }
  .footer-grid ul a { font-size: 0.9375rem; color: #C8CBD2; text-decoration: none; }
  .footer-grid ul a:hover { color: var(--brass); }
  .footer-contact li { font-size: 0.9375rem; margin-bottom: 13px; display: flex; gap: 10px; }
  .footer-contact svg { width: 16px; height: 16px; color: var(--brass); flex-shrink: 0; margin-top: 2px; }
  .placeholder-text { color: #8892A3; font-style: italic; }
  .social-row { display: flex; gap: 12px; margin-top: 18px; }
  .social-row a { width: 34px; height: 34px; border: 1px solid #38445C; border-radius: 50%; display: flex; align-items: center; justify-content: center; text-decoration: none; }
  .social-row svg { width: 15px; height: 15px; color: #C8CBD2; }
  .social-row a:hover { border-color: var(--brass); }
  .social-row a:hover svg { color: var(--brass); }
  .footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 22px; font-size: 0.8125rem; color: #7C859A; flex-wrap: wrap; gap: 10px; }
  .footer-bottom .legal { display: flex; gap: 20px; }
  .footer-bottom a { text-decoration: none; color: #7C859A; }
  .footer-bottom a:hover { color: var(--brass); }

  /* ---------- Floating WhatsApp / mobile call bar ---------- */
  .whatsapp-float {
    position: fixed; right: 20px; bottom: calc(20px + env(safe-area-inset-bottom, 0px));
    z-index: 40;
    width: 56px; height: 56px; border-radius: 50%;
    background: #25D366; color: #fff;
    display: flex; align-items: center; justify-content: center;
    text-decoration: none; box-shadow: 0 6px 18px rgba(0,0,0,0.22);
    transition: transform 0.15s ease;
  }
  .whatsapp-float:hover { transform: scale(1.06); }
  .whatsapp-float svg { width: 27px; height: 27px; }

  .mobile-bar {
    display: none;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 39;
    background: var(--ink);
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0px));
    gap: 10px;
  }
  @media (max-width: 640px) { .mobile-bar { display: flex; } .whatsapp-float { bottom: calc(78px + env(safe-area-inset-bottom, 0px)); } }
  .mobile-bar a { flex: 1; text-align: center; }

  /* --- Global Services mega-menu (shared across every page) --- */
  .nav-item-drop { position: relative; }
  .nav-drop-trigger {
    display: inline-flex; align-items: center; gap: 5px;
    background: none; border: none; font-family: var(--font-sans);
    font-size: 0.9375rem; color: var(--ink-soft); padding: 4px 0; cursor: pointer;
  }
  .nav-drop-trigger .chev { width: 12px; height: 12px; transition: transform 0.15s ease; }
  .nav-item-drop:hover .nav-drop-trigger, .nav-item-drop:focus-within .nav-drop-trigger { color: var(--ink); }
  .nav-item-drop:hover .chev, .nav-item-drop:focus-within .chev { transform: rotate(180deg); }
  .mega-menu {
    position: absolute; top: calc(100% + 18px); left: 50%; transform: translateX(-50%);
    width: 640px; max-width: 82vw;
    background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-m);
    box-shadow: 0 18px 40px rgba(20,20,10,0.14);
    padding: 22px; opacity: 0; visibility: hidden; transform: translateX(-50%) translateY(8px);
    transition: opacity 0.16s ease, transform 0.16s ease, visibility 0.16s;
    z-index: 60;
  }
  .nav-item-drop:hover .mega-menu, .nav-item-drop:focus-within .mega-menu { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
  .mega-all {
    display: flex; align-items: center; justify-content: space-between;
    padding: 10px 14px; margin-bottom: 12px; border-radius: var(--radius-s);
    background: var(--ink); color: var(--parchment) !important; text-decoration: none;
    font-size: 0.875rem; font-weight: 600;
  }
  .mega-all svg { width: 14px; height: 14px; }
  .mega-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 18px; }
  .mega-grid a {
    display: flex; align-items: center; gap: 9px; padding: 8px 6px; border-radius: var(--radius-s);
    text-decoration: none; font-size: 0.8438rem; color: var(--ink-soft);
  }
  .mega-grid a:hover { background: var(--parchment); color: var(--ink); }
  .mega-grid a svg { width: 14px; height: 14px; color: var(--brass); flex-shrink: 0; }
  @media (max-width: 1080px) { .mega-menu { width: 560px; } }

  /* Mobile Services accordion (native <details>, no extra JS) */
  .mnav-services-acc { border-bottom: 1px solid var(--line); }
  .mnav-services-acc summary {
    display: flex; align-items: center; justify-content: space-between;
    padding: 15px 4px; font-family: var(--font-serif); font-size: 1.25rem; color: var(--ink);
    cursor: pointer; list-style: none;
  }
  .mnav-services-acc summary::-webkit-details-marker { display: none; }
  .mnav-services-acc summary svg { width: 16px; height: 16px; color: var(--brass); transition: transform 0.15s ease; }
  .mnav-services-acc[open] summary svg { transform: rotate(180deg); }
  .mnav-services-list { padding: 0 4px 16px; display: flex; flex-direction: column; }
  .mnav-services-list a { padding: 10px 0; font-size: 0.9688rem; font-family: var(--font-sans); color: var(--ink-soft); text-decoration: none; border-bottom: 1px dashed var(--line); }
  .mnav-services-list a.all { color: var(--brass-deep); font-weight: 600; }



/* ---- About-page-specific components (story, mission/vision, values, team) ---- */

  :root {
    --ink: #16253D;
    --ink-soft: #2A3B57;
    --brass: #A9793F;
    --brass-deep: #8C632F;
    --parchment: #F6F3EC;
    --panel: #FFFFFF;
    --charcoal: #23262B;
    --slate: #5B6472;
    --line: #DDD6C6;
    --focus: #1C6E5A;
    --radius-s: 3px;
    --radius-m: 6px;
    --maxw: 1200px;
    --font-serif: 'Newsreader', Georgia, 'Times New Roman', serif;
    --font-sans: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  }
  @media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
      --ink: #F6F3EC; --ink-soft: #D8D2C4; --brass: #CBA05E; --brass-deep: #E0B571;
      --parchment: #10161F; --panel: #161E29; --charcoal: #EDEAE2; --slate: #9AA3B0;
      --line: #2B3646; --focus: #4FBF9E;
    }
  }
  :root[data-theme="dark"] {
    --ink: #F6F3EC; --ink-soft: #D8D2C4; --brass: #CBA05E; --brass-deep: #E0B571;
    --parchment: #10161F; --panel: #161E29; --charcoal: #EDEAE2; --slate: #9AA3B0;
    --line: #2B3646; --focus: #4FBF9E;
  }

  * { box-sizing: border-box; }
  html { scroll-behavior: smooth; scroll-padding-top: calc(84px + env(safe-area-inset-top, 0px)); }
  @media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  }
  body {
    margin: 0; background: var(--parchment); color: var(--charcoal);
    font-family: var(--font-sans); font-size: 16px; line-height: 1.6;
    padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px);
    -webkit-font-smoothing: antialiased;
  }
  img, svg { max-width: 100%; display: block; }
  a { color: inherit; }
  h1, h2, h3, h4 { font-family: var(--font-serif); font-weight: 600; margin: 0; color: var(--ink); line-height: 1.15; }
  p { margin: 0; }
  ul { margin: 0; padding: 0; list-style: none; }
  button { font-family: inherit; cursor: pointer; }
  :focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }

  .wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }
  @media (max-width: 640px) { .wrap { padding: 0 20px; } }

  .notice { background: var(--ink); color: var(--parchment); font-size: 0.8125rem; text-align: center; padding: 9px 20px; }
  .notice strong { color: var(--brass); font-weight: 600; }

  header.site {
    position: sticky; top: 0; z-index: 50;
    background: rgba(246, 243, 236, 0.92); backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--line); transition: box-shadow 0.2s ease;
  }
  @media (prefers-color-scheme: dark) { header.site { background: rgba(16,22,31,0.92); } }
  header.site.scrolled { box-shadow: 0 2px 14px rgba(20,20,10,0.08); }
  .nav-row { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 24px; }
  .logo { font-family: var(--font-serif); font-size: 1.5rem; font-weight: 600; letter-spacing: 0.01em; text-decoration: none; white-space: nowrap; }
  .logo span { color: var(--brass); font-weight: 500; }
  nav.primary { display: flex; align-items: center; gap: 30px; }
  nav.primary a { text-decoration: none; font-size: 0.9375rem; color: var(--ink-soft); position: relative; padding: 4px 0; }
  nav.primary a:hover, nav.primary a[aria-current="page"] { color: var(--ink); }
  nav.primary a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -3px; height: 2px; background: var(--brass); transition: right 0.25s ease; }
  nav.primary a:hover::after, nav.primary a[aria-current="page"]::after { right: 0; }

  .btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 22px; border-radius: var(--radius-s); font-size: 0.9375rem; font-weight: 600; text-decoration: none; border: 1px solid transparent; transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease; white-space: nowrap; }
  .btn:hover { transform: translateY(-1px); }
  .btn-primary { background: var(--brass); color: #201404; }
  .btn-primary:hover { background: var(--brass-deep); }
  .btn-outline { background: transparent; border-color: var(--ink); color: var(--ink); }
  .btn-outline:hover { background: var(--ink); color: var(--parchment); }
  .btn-ghost { background: transparent; color: var(--ink-soft); border-color: var(--line); }
  .btn-sm { padding: 9px 16px; font-size: 0.875rem; }

  .header-cta { display: flex; align-items: center; gap: 14px; }
  .hamburger { display: none; background: none; border: none; padding: 8px; flex-direction: column; gap: 5px; }
  .hamburger span { width: 22px; height: 2px; background: var(--ink); display: block; }
  .mobile-nav { display: none; position: fixed; inset: 76px 0 0 0; background: var(--parchment); z-index: 49; padding: 24px 20px; overflow-y: auto; }
  .mobile-nav.open { display: block; }
  .mobile-nav a { display: block; padding: 15px 4px; border-bottom: 1px solid var(--line); text-decoration: none; font-family: var(--font-serif); font-size: 1.25rem; color: var(--ink); }
  .mobile-nav .btn { margin-top: 20px; width: 100%; }
  @media (max-width: 920px) { nav.primary { display: none; } .header-cta .btn-primary { display: none; } .hamburger { display: flex; } }

  section { padding: 96px 0; }
  @media (max-width: 640px) { section { padding: 64px 0; } }
  .section-head { max-width: 640px; margin-bottom: 52px; }
  .section-head h2 { font-size: clamp(1.9rem, 3.2vw, 2.6rem); }
  .section-head p { margin-top: 14px; color: var(--slate); font-size: 1.0625rem; }
  .content-flag { display: inline-flex; align-items: center; gap: 7px; font-size: 0.75rem; font-weight: 600; color: var(--brass-deep); border: 1px dashed var(--brass); padding: 5px 10px; border-radius: var(--radius-s); margin-bottom: 16px; }
  .placeholder-text { color: var(--slate); font-style: italic; }
  .reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.6s ease, transform 0.6s ease; }
  .reveal.in { opacity: 1; transform: none; }

  /* Page hero */
  .page-hero { padding: 64px 0 20px; }
  .page-hero .wrap { max-width: 780px; }
  .page-hero .kicker { color: var(--brass-deep); font-size: 0.9375rem; font-weight: 600; }
  .page-hero h1 { font-size: clamp(2.1rem, 4.4vw, 3rem); margin-top: 10px; }
  .page-hero p { margin-top: 18px; font-size: 1.125rem; color: var(--slate); max-width: 62ch; }

  /* Story */
  .story .wrap { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: 60px; align-items: start; }
  @media (max-width: 920px) { .story .wrap { grid-template-columns: 1fr; gap: 32px; } }
  .story-art { background: var(--ink); border-radius: var(--radius-m); aspect-ratio: 4/5; position: sticky; top: 100px; }
  @media (max-width: 920px) { .story-art { position: static; aspect-ratio: 16/9; } }
  .story-art svg { width: 100%; height: 100%; }
  .story-copy h2 { font-size: clamp(1.8rem, 3vw, 2.3rem); }
  .story-copy p { margin-top: 16px; color: var(--slate); font-size: 1.0625rem; max-width: 62ch; }
  .story-copy p + p { margin-top: 14px; }

  /* Mission / Vision */
  .mv { background: var(--panel); }
  .mv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-m); overflow: hidden; }
  @media (max-width: 760px) { .mv-grid { grid-template-columns: 1fr; } }
  .mv-card { background: var(--panel); padding: 44px 40px; }
  .mv-card svg { width: 30px; height: 30px; color: var(--brass); margin-bottom: 18px; }
  .mv-card h3 { font-size: 1.375rem; }
  .mv-card p { margin-top: 14px; color: var(--slate); font-size: 1rem; max-width: 46ch; }

  /* Values */
  .values-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
  @media (max-width: 920px) { .values-grid { grid-template-columns: repeat(2, 1fr); } }
  @media (max-width: 560px) { .values-grid { grid-template-columns: 1fr; } }
  .value-card { border-top: 2px solid var(--brass); padding-top: 18px; }
  .value-card h3 { font-size: 1.0625rem; }
  .value-card p { margin-top: 8px; color: var(--slate); font-size: 0.9375rem; }

  /* Differentiators */
  .diff { background: var(--panel); }
  .diff-list { display: flex; flex-direction: column; }
  .diff-row { display: grid; grid-template-columns: 60px 1fr; gap: 24px; padding: 26px 0; border-bottom: 1px solid var(--line); align-items: start; }
  .diff-row:first-child { border-top: 1px solid var(--line); }
  .diff-num { font-family: var(--font-serif); font-size: 1.5rem; color: var(--brass); }
  .diff-row h3 { font-size: 1.125rem; }
  .diff-row p { margin-top: 6px; color: var(--slate); font-size: 0.9688rem; max-width: 62ch; }

  /* Team */
  .team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
  @media (max-width: 820px) { .team-grid { grid-template-columns: 1fr 1fr; } }
  @media (max-width: 560px) { .team-grid { grid-template-columns: 1fr; } }
  .team-card { text-align: left; }
  .team-photo { aspect-ratio: 1/1; background: var(--ink); border-radius: var(--radius-m); position: relative; overflow: hidden; }
  .team-photo svg { width: 100%; height: 100%; }
  .team-card h3 { margin-top: 14px; font-size: 1.0625rem; }
  .team-card .role { color: var(--brass-deep); font-size: 0.875rem; font-weight: 600; margin-top: 2px; }
  .empty-state { border: 1px dashed var(--line); border-radius: var(--radius-m); padding: 56px 32px; text-align: center; max-width: 640px; margin: 0 auto; }
  .empty-state svg { width: 34px; height: 34px; color: var(--brass); margin: 0 auto 18px; }
  .empty-state h3 { font-size: 1.25rem; }
  .empty-state p { color: var(--slate); margin-top: 10px; font-size: 0.9688rem; }

  /* Final CTA */
  .final-cta { background: var(--ink); color: var(--parchment); text-align: center; }
  .final-cta h2 { color: var(--parchment); font-size: clamp(2rem, 4vw, 2.75rem); max-width: 20ch; margin: 0 auto; }
  .final-cta p { color: #C8CBD2; margin-top: 16px; max-width: 52ch; margin-left: auto; margin-right: auto; font-size: 1.0625rem; }
  .final-cta .ctas { display: flex; gap: 16px; justify-content: center; margin-top: 32px; flex-wrap: wrap; }
  .final-cta .btn-outline { border-color: #47546B; color: var(--parchment); }
  .final-cta .btn-outline:hover { background: var(--parchment); color: var(--ink); border-color: var(--parchment); }

  /* Footer */
  footer.site { background: var(--ink); color: #C8CBD2; padding: 72px 0 26px; }
  .footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 44px; padding-bottom: 44px; border-bottom: 1px solid #2A3B57; }
  @media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr 1fr; row-gap: 36px; } }
  @media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
  .footer-grid h4 { color: var(--parchment); font-size: 0.9375rem; font-family: var(--font-sans); font-weight: 600; margin-bottom: 16px; }
  .footer-logo { font-family: var(--font-serif); font-size: 1.375rem; color: var(--parchment); text-decoration: none; }
  .footer-logo span { color: var(--brass); }
  .footer-grid p { font-size: 0.9375rem; margin-top: 14px; max-width: 30ch; color: #A6AEBD; }
  .footer-grid ul li { margin-bottom: 11px; }
  .footer-grid ul a { font-size: 0.9375rem; color: #C8CBD2; text-decoration: none; }
  .footer-grid ul a:hover { color: var(--brass); }
  .footer-contact li { font-size: 0.9375rem; margin-bottom: 13px; display: flex; gap: 10px; }
  .footer-contact svg { width: 16px; height: 16px; color: var(--brass); flex-shrink: 0; margin-top: 2px; }
  .social-row { display: flex; gap: 12px; margin-top: 18px; }
  .social-row a { width: 34px; height: 34px; border: 1px solid #38445C; border-radius: 50%; display: flex; align-items: center; justify-content: center; text-decoration: none; }
  .social-row svg { width: 15px; height: 15px; color: #C8CBD2; }
  .social-row a:hover { border-color: var(--brass); }
  .social-row a:hover svg { color: var(--brass); }
  .footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 22px; font-size: 0.8125rem; color: #7C859A; flex-wrap: wrap; gap: 10px; }
  .footer-bottom .legal { display: flex; gap: 20px; }
  .footer-bottom a { text-decoration: none; color: #7C859A; }
  .footer-bottom a:hover { color: var(--brass); }

  .whatsapp-float {
    position: fixed; right: 20px; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); z-index: 40;
    width: 56px; height: 56px; border-radius: 50%; background: #25D366; color: #fff;
    display: flex; align-items: center; justify-content: center; text-decoration: none;
    box-shadow: 0 6px 18px rgba(0,0,0,0.22); transition: transform 0.15s ease;
  }
  .whatsapp-float:hover { transform: scale(1.06); }
  .whatsapp-float svg { width: 27px; height: 27px; }
  .mobile-bar { display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 39; background: var(--ink); padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0px)); gap: 10px; }
  @media (max-width: 640px) { .mobile-bar { display: flex; } .whatsapp-float { bottom: calc(78px + env(safe-area-inset-bottom, 0px)); } }
  .mobile-bar a { flex: 1; text-align: center; }

  /* --- Global Services mega-menu (shared across every page) --- */
  .nav-item-drop { position: relative; }
  .nav-drop-trigger {
    display: inline-flex; align-items: center; gap: 5px;
    background: none; border: none; font-family: var(--font-sans);
    font-size: 0.9375rem; color: var(--ink-soft); padding: 4px 0; cursor: pointer;
  }
  .nav-drop-trigger .chev { width: 12px; height: 12px; transition: transform 0.15s ease; }
  .nav-item-drop:hover .nav-drop-trigger, .nav-item-drop:focus-within .nav-drop-trigger { color: var(--ink); }
  .nav-item-drop:hover .chev, .nav-item-drop:focus-within .chev { transform: rotate(180deg); }
  .mega-menu {
    position: absolute; top: calc(100% + 18px); left: 50%; transform: translateX(-50%);
    width: 640px; max-width: 82vw;
    background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-m);
    box-shadow: 0 18px 40px rgba(20,20,10,0.14);
    padding: 22px; opacity: 0; visibility: hidden; transform: translateX(-50%) translateY(8px);
    transition: opacity 0.16s ease, transform 0.16s ease, visibility 0.16s;
    z-index: 60;
  }
  .nav-item-drop:hover .mega-menu, .nav-item-drop:focus-within .mega-menu { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
  .mega-all {
    display: flex; align-items: center; justify-content: space-between;
    padding: 10px 14px; margin-bottom: 12px; border-radius: var(--radius-s);
    background: var(--ink); color: var(--parchment) !important; text-decoration: none;
    font-size: 0.875rem; font-weight: 600;
  }
  .mega-all svg { width: 14px; height: 14px; }
  .mega-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 18px; }
  .mega-grid a {
    display: flex; align-items: center; gap: 9px; padding: 8px 6px; border-radius: var(--radius-s);
    text-decoration: none; font-size: 0.8438rem; color: var(--ink-soft);
  }
  .mega-grid a:hover { background: var(--parchment); color: var(--ink); }
  .mega-grid a svg { width: 14px; height: 14px; color: var(--brass); flex-shrink: 0; }
  @media (max-width: 1080px) { .mega-menu { width: 560px; } }

  /* Mobile Services accordion (native <details>, no extra JS) */
  .mnav-services-acc { border-bottom: 1px solid var(--line); }
  .mnav-services-acc summary {
    display: flex; align-items: center; justify-content: space-between;
    padding: 15px 4px; font-family: var(--font-serif); font-size: 1.25rem; color: var(--ink);
    cursor: pointer; list-style: none;
  }
  .mnav-services-acc summary::-webkit-details-marker { display: none; }
  .mnav-services-acc summary svg { width: 16px; height: 16px; color: var(--brass); transition: transform 0.15s ease; }
  .mnav-services-acc[open] summary svg { transform: rotate(180deg); }
  .mnav-services-list { padding: 0 4px 16px; display: flex; flex-direction: column; }
  .mnav-services-list a { padding: 10px 0; font-size: 0.9688rem; font-family: var(--font-sans); color: var(--ink-soft); text-decoration: none; border-bottom: 1px dashed var(--line); }
  .mnav-services-list a.all { color: var(--brass-deep); font-weight: 600; }



/* ---- Services hub + service-detail-template components ---- */

  .breadcrumb { padding: 22px 0 0; font-size: 0.8438rem; color: var(--slate); }
  .breadcrumb a { color: var(--slate); text-decoration: none; }
  .breadcrumb a:hover { color: var(--brass-deep); }
  .breadcrumb span.sep { margin: 0 6px; color: var(--line); }
  .breadcrumb .current { color: var(--ink); }

  .svc-hero { padding: 28px 0 20px; }
  .svc-hero .kicker { color: var(--brass-deep); font-size: 0.9375rem; font-weight: 600; }
  .svc-hero h1 { font-size: clamp(2.1rem, 4.4vw, 3rem); margin-top: 10px; max-width: 20ch; }
  .svc-hero .intro { margin-top: 18px; font-size: 1.125rem; color: var(--slate); max-width: 68ch; }
  .svc-hero .ctas { display: flex; gap: 14px; margin-top: 28px; flex-wrap: wrap; }
  .svc-visual { background: var(--ink); border-radius: var(--radius-m); aspect-ratio: 21/9; margin: 8px 0 0; overflow: hidden; }
  .svc-visual svg { width: 100%; height: 100%; }
  /* Real photos are shown in full (never cropped) — letterboxed on the same ink background so tall or square photos still look intentional. */
  .svc-visual img { width: 100%; height: 100%; object-fit: contain; background: var(--ink); display: block; }
  .overview-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: start; }
  @media (max-width: 900px) { .overview-grid { grid-template-columns: 1fr; gap: 30px; } }
  .overview-grid p { color: var(--slate); font-size: 1.0625rem; max-width: 62ch; }
  .feature-list, .applications-list { display: flex; flex-direction: column; gap: 14px; }
  .feature-list li, .applications-list li { display: flex; gap: 12px; align-items: flex-start; font-size: 0.9688rem; color: var(--ink-soft); }
  .feature-list svg, .applications-list svg { width: 18px; height: 18px; color: var(--brass); flex-shrink: 0; margin-top: 2px; }
  .side-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-m); padding: 30px; }
  .side-card h3 { font-size: 1.0625rem; margin-bottom: 16px; }
  .applications { background: var(--panel); }
  .applications-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
  @media (max-width: 760px) { .applications-grid { grid-template-columns: 1fr 1fr; } }
  @media (max-width: 480px) { .applications-grid { grid-template-columns: 1fr; } }
  .app-chip { border: 1px solid var(--line); border-radius: var(--radius-s); padding: 16px 18px; font-size: 0.9375rem; color: var(--ink-soft); display: flex; gap: 10px; align-items: center; }
  .app-chip svg { width: 16px; height: 16px; color: var(--brass); flex-shrink: 0; }
  .gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
  @media (max-width: 820px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }
  .gallery-item { aspect-ratio: 1/1; border-radius: var(--radius-m); overflow: hidden; background: var(--ink); position: relative; }
  .gallery-item svg { width: 100%; height: 100%; }
  .gallery-item span { position: absolute; bottom: 8px; left: 8px; right: 8px; font-size: 0.6875rem; color: var(--parchment); opacity: 0.75; }
  .gallery-item { display: block; cursor: zoom-in; }
  .gallery-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.25s ease; }
  .gallery-item:hover img { transform: scale(1.04); }

  /* ---- Service card thumbnail (homepage preview + capability cards), shown only when a real photo is set ---- */
  .service-card-thumb, .work-thumb-photo {
    aspect-ratio: 16/10; border-radius: var(--radius-s); overflow: hidden; margin-bottom: 4px;
  }
  .service-card-thumb img, .work-thumb-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }

  /* ---- Lightweight lightbox for the gallery (vanilla JS, no library) ---- */
  .mkg-lightbox-overlay {
    position: fixed; inset: 0; background: rgba(16, 22, 31, 0.92); z-index: 200;
    display: flex; align-items: center; justify-content: center; padding: 32px;
    opacity: 0; visibility: hidden; transition: opacity 0.2s ease, visibility 0.2s;
  }
  .mkg-lightbox-overlay.open { opacity: 1; visibility: visible; }
  .mkg-lightbox-overlay img { max-width: 100%; max-height: 90vh; border-radius: var(--radius-s); box-shadow: 0 20px 60px rgba(0,0,0,0.4); }
  .mkg-lightbox-close {
    position: absolute; top: 20px; right: 24px; background: none; border: 1px solid rgba(246,243,236,0.4);
    color: var(--parchment); width: 40px; height: 40px; border-radius: 50%; font-size: 1.25rem; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
  }
  .mkg-lightbox-close:hover { border-color: var(--brass); color: var(--brass); }
  .related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
  @media (max-width: 820px) { .related-grid { grid-template-columns: 1fr; } }
  .related-card { border: 1px solid var(--line); border-radius: var(--radius-m); padding: 26px; text-decoration: none; display: block; transition: border-color 0.15s ease, background 0.15s ease; }
  .related-card:hover { border-color: var(--brass); background: var(--panel); }
  .related-card h3 { font-size: 1.0625rem; }
  .related-card .link { margin-top: 10px; display: inline-flex; gap: 6px; align-items: center; font-size: 0.8438rem; font-weight: 600; color: var(--brass-deep); }
  .svc-index-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
  @media (max-width: 920px) { .svc-index-grid { grid-template-columns: 1fr 1fr; } }
  @media (max-width: 600px) { .svc-index-grid { grid-template-columns: 1fr; } }
  .svc-index-card { border: 1px solid var(--line); border-radius: var(--radius-m); overflow: hidden; background: var(--panel); }
  .svc-index-thumb { aspect-ratio: 4/3; background: var(--ink); overflow: hidden; }
  .svc-index-thumb svg { width: 100%; height: 100%; }
  .svc-index-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
  .svc-index-body { padding: 22px 22px 26px; }
  .svc-index-cat { font-size: 0.75rem; color: var(--brass-deep); font-weight: 600; }
  .svc-index-body h3 { font-size: 1.125rem; margin-top: 6px; }
  .svc-index-body p { color: var(--slate); font-size: 0.9375rem; margin-top: 8px; }
  .svc-index-body .link { margin-top: 14px; display: inline-flex; align-items: center; gap: 6px; font-size: 0.875rem; font-weight: 600; text-decoration: none; color: var(--ink); }
  .svc-index-body .link svg { width: 14px; height: 14px; }
  .empty-state { border: 1px dashed var(--line); border-radius: var(--radius-m); padding: 56px 32px; text-align: center; max-width: 640px; margin: 0 auto; }
  .empty-state svg { width: 34px; height: 34px; color: var(--brass); margin: 0 auto 18px; }


/* ---- Projects / Contact / Blog / Legal page components ---- */

  .breadcrumb { padding: 22px 0 0; font-size: 0.8438rem; color: var(--slate); }
  .breadcrumb a { color: var(--slate); text-decoration: none; }
  .breadcrumb a:hover { color: var(--brass-deep); }
  .breadcrumb span.sep { margin: 0 6px; color: var(--line); }
  .breadcrumb .current { color: var(--ink); }

  .page-hero { padding: 44px 0 10px; }
  .page-hero .kicker { color: var(--brass-deep); font-size: 0.9375rem; font-weight: 600; }
  .page-hero h1 { font-size: clamp(2.1rem, 4.4vw, 3rem); margin-top: 10px; max-width: 24ch; }
  .page-hero p { margin-top: 18px; font-size: 1.125rem; color: var(--slate); max-width: 68ch; }

  .work-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
  @media (max-width: 920px) { .work-grid { grid-template-columns: 1fr 1fr; } }
  @media (max-width: 640px) { .work-grid { grid-template-columns: 1fr; } }
  .work-card { border: 1px solid var(--line); border-radius: var(--radius-m); overflow: hidden; background: var(--panel); }
  .work-thumb { aspect-ratio: 16/10; background: var(--ink); }
  .work-thumb svg { width: 100%; height: 100%; }
  .work-body { padding: 22px 22px 26px; }
  .work-cat { font-size: 0.75rem; color: var(--brass-deep); font-weight: 600; }
  .work-body h3 { font-size: 1.125rem; margin-top: 6px; }
  .work-body p { color: var(--slate); font-size: 0.9375rem; margin-top: 8px; }
  .work-body .link { margin-top: 14px; display: inline-flex; align-items: center; gap: 6px; font-size: 0.875rem; font-weight: 600; text-decoration: none; color: var(--ink); }
  .work-body .link svg { width: 14px; height: 14px; }

  .empty-state { border: 1px dashed var(--line); border-radius: var(--radius-m); padding: 56px 32px; text-align: center; max-width: 640px; margin: 0 auto; }
  .empty-state svg { width: 34px; height: 34px; color: var(--brass); margin: 0 auto 18px; }
  .empty-state h3 { font-size: 1.25rem; }
  .empty-state p { color: var(--slate); margin-top: 10px; font-size: 0.9688rem; }

  .contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
  @media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; gap: 36px; } }
  .form-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-m); padding: 34px; }
  .form-row { margin-bottom: 18px; display: flex; flex-direction: column; gap: 6px; }
  .form-row label { font-size: 0.875rem; font-weight: 600; color: var(--ink); }
  .form-row input, .form-row select, .form-row textarea {
    font-family: var(--font-sans); font-size: 0.9688rem; padding: 11px 13px;
    border: 1px solid var(--line); border-radius: var(--radius-s); background: var(--parchment); color: var(--charcoal);
  }
  .form-row input:focus, .form-row select:focus, .form-row textarea:focus { outline: 2px solid var(--focus); outline-offset: 1px; border-color: var(--focus); }
  .form-note { font-size: 0.8125rem; color: var(--slate); margin-top: 14px; }
  .success-msg { display: none; background: var(--panel); border: 1px solid var(--brass); border-radius: var(--radius-m); padding: 30px; text-align: center; }
  .success-msg.show { display: block; }
  .success-msg svg { width: 32px; height: 32px; color: var(--brass); margin: 0 auto 12px; }
  .info-card { border: 1px solid var(--line); border-radius: var(--radius-m); padding: 30px; margin-bottom: 20px; }
  .info-card h3 { font-size: 1.0625rem; margin-bottom: 16px; }
  .info-row { display: flex; gap: 12px; margin-bottom: 14px; font-size: 0.9375rem; color: var(--ink-soft); }
  .info-row svg { width: 18px; height: 18px; color: var(--brass); flex-shrink: 0; margin-top: 2px; }
  .hours-table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; }
  .hours-table td { padding: 7px 0; color: var(--ink-soft); border-bottom: 1px solid var(--line); }
  .hours-table td:last-child { text-align: right; color: var(--slate); }
  .map-placeholder {
    aspect-ratio: 16/9; border-radius: var(--radius-m); border: 1px dashed var(--line);
    display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 10px;
    color: var(--slate); font-size: 0.875rem; background: var(--panel);
  }
  .map-placeholder svg { width: 28px; height: 28px; color: var(--brass); }

  .legal-body h2 { font-size: 1.375rem; margin-top: 36px; }
  .legal-body h2:first-child { margin-top: 0; }
  .legal-body p, .legal-body li { color: var(--slate); font-size: 0.9688rem; margin-top: 12px; max-width: 74ch; }
  .legal-body ul { padding-left: 20px; list-style: disc; }
  .legal-body .updated { color: var(--slate); font-size: 0.875rem; }

/* ---- Keyboard/touch support for the Services mega-menu (JS-toggled) ---- */
.nav-item-drop.open-click .mega-menu {
  opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0);
}
.nav-item-drop.open-click .chev { transform: rotate(180deg); }

/* ---- Google Maps "open" button (shown once configured) ---- */
.maps-btn {
  display: none; align-items: center; gap: 8px; margin-top: 10px;
}

/* Footer contact list is now real tel:/mailto: links once configured */
.footer-contact a { text-decoration: none; }
.footer-contact a:hover { color: var(--brass-deep); }

/* Contact-page info rows become real tel:/mailto: links once configured */
.info-row a { text-decoration: none; color: inherit; }
.info-row a:hover { color: var(--brass-deep); }

/* ---- Two-photo service hero (used when a service has 2 hero images set) ---- */
.svc-hero-duo { display: grid; grid-template-columns: 1.55fr 1fr; gap: 16px; align-items: start; margin-top: 8px; }
.svc-hero-duo figure { margin: 0; background: var(--ink); border-radius: var(--radius-m); overflow: hidden; }
.svc-hero-duo img { display: block; width: 100%; height: auto; }
@media (max-width: 720px) { .svc-hero-duo { grid-template-columns: 1fr; } }

/* ---- Single full-size service hero photo (never cropped) ---- */
.svc-hero-single { margin: 8px 0 0; background: var(--ink); border-radius: var(--radius-m); overflow: hidden; display: flex; justify-content: center; }
.svc-hero-single img { display: block; width: auto; max-width: 100%; height: auto; max-height: 560px; }

/* ---- Gallery that shows every photo whole at its own proportions (used per service, e.g. Fiberglass Doors).
        Masonry-style columns: no fixed heights, no cropping. ---- */
.gallery-grid.gallery-grid--contain { display: block; column-count: 4; column-gap: 16px; }
.gallery-grid--contain .gallery-item { aspect-ratio: auto; margin: 0 0 16px; break-inside: avoid; -webkit-column-break-inside: avoid; background: var(--ink); }
.gallery-grid--contain .gallery-item img { width: 100%; height: auto; object-fit: contain; }
@media (max-width: 960px) { .gallery-grid.gallery-grid--contain { column-count: 2; } }
@media (max-width: 520px) { .gallery-grid.gallery-grid--contain { column-count: 1; } }

/* ---- Grouped Services mega menu (services organised by category) ---- */
.mega-menu.mega-menu--wide { width: 960px; max-width: 94vw; max-height: 75vh; overflow-y: auto; }
.mega-groups { column-count: 3; column-gap: 26px; }
.mega-group { break-inside: avoid; margin-bottom: 16px; }
.mega-group__title { font-family: var(--font-serif); font-size: 0.9375rem; font-weight: 600; color: var(--ink); padding: 6px 6px 6px; margin-bottom: 2px; border-bottom: 1px solid var(--line); }
.mega-groups .mega-group a { display: flex; align-items: center; gap: 9px; padding: 7px 6px; border-radius: var(--radius-s); text-decoration: none; font-size: 0.8438rem; color: var(--ink-soft); }
.mega-groups .mega-group a:hover { background: var(--parchment); color: var(--ink); }
.mega-groups .mega-group a svg { width: 14px; height: 14px; color: var(--brass); flex-shrink: 0; }
@media (max-width: 1180px) { .mega-groups { column-count: 2; } }
.mnav-cat { font-family: var(--font-serif); font-size: 0.9375rem; font-weight: 600; color: var(--ink); padding: 14px 0 4px; }

/* ---- Services page: category jump links and sections ---- */
.svc-cat-nav { display: flex; flex-wrap: wrap; gap: 10px; }
.svc-cat-nav a { border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; font-size: 0.875rem; color: var(--ink-soft); text-decoration: none; background: var(--panel); transition: border-color 0.15s ease, color 0.15s ease; }
.svc-cat-nav a:hover { border-color: var(--brass); color: var(--ink); }
.svc-cat-nav a span { color: var(--brass-deep); font-weight: 600; margin-left: 4px; }
.svc-cat-section { padding: 56px 0 24px; scroll-margin-top: 90px; }


  /* ---------- Home page photos (replace the placeholder drawings; same boxes) ---------- */
  .hero-art--photos { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1.35fr 1fr; gap: 6px; }
  .hero-art--photos .hero-photo { width: 100%; height: 100%; object-fit: cover; display: block; min-height: 0; }
  .hero-art--photos .hero-photo--main { grid-column: 1 / -1; }
  .about-art--photo { overflow: hidden; display: flex; align-items: center; background: var(--ink); }
  .about-art--photo img { width: 100%; height: 100%; object-fit: cover; display: block; }

  .story-art--photo { overflow: hidden; }
  .story-art--photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
