/*
Theme Name: Lier Industrial
Theme URI: https://example.com/lier-industrial
Author: Lier
Author URI: https://example.com
Description: A clean, responsive B2B WordPress theme for machinery manufacturers. Features a grand multi-level navigation menu, configurable banner sections, and an industrial design optimized for desktop, tablet, and mobile. Built with vanilla JS and native CSS for minimal resource consumption.
Version: 1.0.0
Requires at least: 5.5
Tested up to: 6.4
Requires PHP: 7.2
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: lier-industrial
Tags: b2b, industrial, machinery, manufacturing, business, responsive, custom-menu, custom-logo, featured-images, custom-colors, translation-ready, full-width-template
*/

/* ==========================================================================
   CSS Variables — Design Tokens
   ========================================================================== */
:root {
  /* Brand palette — industrial navy + amber */
  --color-primary:        #0f2742;
  --color-primary-dark:   #0a1d33;
  --color-primary-light:  #1a3a5c;
  --color-accent:         #e0831a;
  --color-accent-dark:    #b45309;
  --color-accent-light:   #f59e0b;

  /* Neutrals */
  --color-white:          #ffffff;
  --color-bg:             #f6f8fa;
  --color-bg-alt:         #eef2f7;
  --color-border:         #e1e7ee;
  --color-gray:           #6b7785;
  --color-text:           #1f2937;
  --color-text-muted:     #4b5563;

  /* Typography */
  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
  --font-display: var(--font-sans);

  /* Layout */
  --container: 1240px;
  --container-narrow: 880px;
  --radius: 4px;
  --radius-lg: 8px;
  --shadow-sm: 0 1px 2px rgba(15, 39, 66, .06), 0 1px 3px rgba(15, 39, 66, .04);
  --shadow:    0 4px 12px rgba(15, 39, 66, .08), 0 2px 4px rgba(15, 39, 66, .04);
  --shadow-lg: 0 12px 32px rgba(15, 39, 66, .12), 0 4px 8px rgba(15, 39, 66, .06);
  --transition: .25s ease;
  --header-h: 76px;
}

/* ==========================================================================
   Reset & Base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--color-text);
  background: var(--color-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

a { color: var(--color-accent-dark); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--color-primary); }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-primary);
  margin: 0 0 .5em;
  letter-spacing: -.01em;
}
h1 { font-size: clamp(1.9rem, 4vw, 2.75rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); }
h3 { font-size: clamp(1.3rem, 2.2vw, 1.6rem); }
h4 { font-size: 1.15rem; }
p  { margin: 0 0 1.2em; }

ul, ol { margin: 0 0 1.2em; padding-left: 1.2em; }

/* ==========================================================================
   Layout helpers
   ========================================================================== */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
}
.container-narrow { max-width: var(--container-narrow); }

.section { padding: 4.5rem 0; }
.section-tight { padding: 3rem 0; }
.section-bg { background: var(--color-bg); }
.section-dark { background: var(--color-primary); color: #d6dde6; }
.section-dark h2, .section-dark h3 { color: #fff; }

.section-head { text-align: center; max-width: 720px; margin: 0 auto 2.5rem; }
.section-head .eyebrow {
  display: inline-block;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: .6rem;
}
.section-head p { color: var(--color-text-muted); margin: 0; }

.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; word-wrap: normal !important;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn, .wp-block-button a {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .8rem 1.6rem;
  font-size: .95rem;
  font-weight: 600;
  line-height: 1;
  border: 1.5px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
}
.btn-primary { background: var(--color-accent); color: #fff; border-color: var(--color-accent); }
.btn-primary:hover { background: var(--color-accent-dark); border-color: var(--color-accent-dark); color: #fff; }
.btn-outline { background: transparent; color: var(--color-primary); border-color: var(--color-primary); }
.btn-outline:hover { background: var(--color-primary); color: #fff; }
.btn-light { background: #fff; color: var(--color-primary); }
.btn-light:hover { background: var(--color-bg); color: var(--color-primary); }
.btn-lg { padding: 1rem 2rem; font-size: 1rem; }

/* ==========================================================================
   Top bar (contact info strip)
   ========================================================================== */
.topbar {
  background: var(--color-primary-dark);
  color: #b8c5d6;
  font-size: .85rem;
  border-bottom: 1px solid rgba(255,255,255,.05);
}
.topbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 40px;
  gap: 1rem;
}
.topbar a { color: #b8c5d6; }
.topbar a:hover { color: #fff; }
.topbar-left, .topbar-right { display: flex; align-items: center; gap: 1.4rem; flex-wrap: wrap; }
.topbar .icon-link { display: inline-flex; align-items: center; gap: .4rem; }
.topbar .icon-link svg { width: 14px; height: 14px; fill: currentColor; }
.topbar-social { display: flex; gap: .6rem; }
.topbar-social a { display: inline-flex; }
.topbar-social svg { width: 15px; height: 15px; fill: currentColor; }

/* ==========================================================================
   Header & Logo
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 900;
  background: #fff;
  border-bottom: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
}
.header-inner {
  position: relative;
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  min-height: var(--header-h);
  gap: 1.5rem;
}
.site-branding { display: flex; align-items: center; gap: .75rem; flex-shrink: 0; }
.site-logo img { max-height: 48px; width: auto; }
.site-name { font-size: 1.25rem; font-weight: 800; color: var(--color-primary); letter-spacing: -.02em; line-height: 1.1; }
.site-tagline { font-size: .72rem; color: var(--color-gray); letter-spacing: .12em; text-transform: uppercase; }

.header-cta { display: flex; align-items: center; gap: 1rem; }
.header-phone { font-weight: 700; color: var(--color-primary); font-size: 1rem; white-space: nowrap; }
.header-phone small { display: block; font-size: .7rem; color: var(--color-gray); font-weight: 400; letter-spacing: .08em; text-transform: uppercase; }

/* ==========================================================================
   Primary navigation — multi-level mega menu
   ========================================================================== */
.primary-nav { display: flex; align-items: center; }
.menu-toggle { display: none; }

.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: .25rem;
}
.nav-list > li > a {
  display: flex;
  align-items: center;
  gap: .3rem;
  padding: .85rem 1rem;
  font-weight: 600;
  font-size: .95rem;
  color: var(--color-text);
  border-radius: var(--radius);
}
.nav-list > li > a:hover,
.nav-list > li.current-menu-item > a,
.nav-list > li.current-menu-ancestor > a { color: var(--color-accent); }

/* Caret for items with children */
.nav-list .menu-item-has-children > a::after {
  content: "";
  width: 8px; height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  margin-left: .15rem;
  transition: transform var(--transition);
}

/* Level 2 — full-width mega dropdown panel (positioned relative to .header-inner) */
.nav-list .sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #fff;
  border-top: 3px solid var(--color-accent);
  box-shadow: var(--shadow-lg);
  padding: 1.75rem 1.5rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity var(--transition), transform var(--transition), visibility var(--transition);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: .25rem 2rem;
  list-style: none;
  margin: 0;
}
.nav-list > li:hover > .sub-menu,
.nav-list > li:focus-within > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.sub-menu li { position: relative; }
.sub-menu a {
  display: block;
  padding: .5rem .75rem;
  font-size: .92rem;
  color: var(--color-text);
  border-radius: var(--radius);
  border-left: 2px solid transparent;
}
.sub-menu a:hover { background: var(--color-bg); color: var(--color-accent); border-left-color: var(--color-accent); }

/* Level 3+ — flyout to the right */
.sub-menu .sub-menu {
  position: static;
  opacity: visible;
  visibility: visible;
  transform: none;
  box-shadow: none;
  border-top: 0;
  padding: .25rem 0 .25rem 1rem;
  grid-template-columns: 1fr;
  border-left: 1px solid var(--color-border);
  margin: .25rem 0 .25rem;
}
.sub-menu .menu-item-has-children > a::after { transform: rotate(-45deg); }

/* Mega column heading (top-level of sub-menu) */
.nav-list > li.menu-item-has-children > .sub-menu > li > a {
  font-weight: 700;
  color: var(--color-primary);
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  border-left: 0;
  padding: .5rem .75rem;
  margin-bottom: .25rem;
}
.nav-list > li.menu-item-has-children > .sub-menu > li > a:hover { color: var(--color-accent); background: transparent; }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: clamp(440px, 70vh, 720px);
  background-size: cover;
  background-position: center;
  color: #fff;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(10,29,51,.92) 0%, rgba(10,29,51,.7) 45%, rgba(10,29,51,.35) 100%);
}
.hero .container { position: relative; z-index: 1; }
.hero-content { max-width: 640px; padding: 3rem 0; }
.hero h1 { color: #fff; margin-bottom: .6rem; }
.hero .eyebrow {
  display: inline-block;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--color-accent-light);
  margin-bottom: 1rem;
}
.hero p { font-size: 1.1rem; color: #cdd6e3; margin-bottom: 1.8rem; max-width: 540px; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* Page banner (inner pages) */
.page-banner {
  position: relative;
  background-size: cover;
  background-position: center;
  color: #fff;
  padding: 3.5rem 0;
}
.page-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(10,29,51,.9), rgba(10,29,51,.55));
}
.page-banner .container { position: relative; z-index: 1; }
.page-banner h1 { color: #fff; margin: 0; }
.breadcrumb {
  font-size: .85rem;
  color: #b8c5d6;
  margin-top: .5rem;
}
.breadcrumb a { color: #b8c5d6; }
.breadcrumb a:hover { color: #fff; }
.breadcrumb .sep { margin: 0 .4rem; opacity: .6; }

/* ==========================================================================
   Stats strip
   ========================================================================== */
.stats {
  background: var(--color-primary);
  color: #fff;
  padding: 2.5rem 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  text-align: center;
}
.stat-num { font-size: clamp(1.8rem, 3vw, 2.5rem); font-weight: 800; color: var(--color-accent-light); line-height: 1; }
.stat-label { font-size: .85rem; letter-spacing: .06em; text-transform: uppercase; color: #b8c5d6; margin-top: .4rem; }

/* ==========================================================================
   Cards & grids
   ========================================================================== */
.grid { display: grid; gap: 1.75rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  display: flex;
  flex-direction: column;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; }
.card-media { aspect-ratio: 4/3; overflow: hidden; background: var(--color-bg-alt); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.card:hover .card-media img { transform: scale(1.05); }
.card-body { padding: 1.25rem 1.25rem 1.5rem; flex: 1; display: flex; flex-direction: column; }
.card-body h3 { margin: 0 0 .4rem; font-size: 1.15rem; }
.card-body h3 a { color: var(--color-primary); }
.card-body h3 a:hover { color: var(--color-accent); }
.card-body p { color: var(--color-text-muted); font-size: .92rem; margin: 0 0 1rem; flex: 1; }
.card-more { font-size: .88rem; font-weight: 600; color: var(--color-accent); display: inline-flex; align-items: center; gap: .35rem; }
.card-more::after { content: "→"; transition: transform var(--transition); }
.card:hover .card-more::after { transform: translateX(3px); }

/* Product card with category tag */
.card-tag {
  display: inline-block;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: .4rem;
}

/* Feature/solution icon card */
.feature-card {
  text-align: center;
  padding: 2rem 1.25rem;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  transition: all var(--transition);
}
.feature-card:hover { border-color: var(--color-accent); box-shadow: var(--shadow); transform: translateY(-3px); }
.feature-icon {
  width: 56px; height: 56px;
  margin: 0 auto 1rem;
  display: flex; align-items: center; justify-content: center;
  background: var(--color-bg);
  border-radius: 50%;
  color: var(--color-accent);
}
.feature-icon svg { width: 28px; height: 28px; }
.feature-card h3 { margin: 0 0 .4rem; font-size: 1.1rem; }
.feature-card p { font-size: .9rem; color: var(--color-text-muted); margin: 0; }

/* ==========================================================================
   About split section
   ========================================================================== */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
.split-media { position: relative; border-radius: var(--radius-lg); overflow: hidden; }
.split-media img { width: 100%; height: 100%; object-fit: cover; }
.split-media .badge {
  position: absolute;
  bottom: 1.25rem; left: 1.25rem;
  background: var(--color-accent);
  color: #fff;
  padding: .85rem 1.25rem;
  border-radius: var(--radius);
  font-weight: 700;
  box-shadow: var(--shadow);
}
.split-content .eyebrow {
  display: inline-block;
  font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--color-accent); margin-bottom: .6rem;
}
.split-list { list-style: none; padding: 0; margin: 1.25rem 0; }
.split-list li { display: flex; align-items: flex-start; gap: .6rem; padding: .35rem 0; }
.split-list li::before {
  content: "";
  flex-shrink: 0;
  width: 18px; height: 18px;
  margin-top: 4px;
  border-radius: 50%;
  background: var(--color-accent);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M9 16.2L4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E");
  background-size: 12px;
  background-position: center;
  background-repeat: no-repeat;
}

/* ==========================================================================
   CTA band
   ========================================================================== */
.cta-band {
  position: relative;
  background-size: cover;
  background-position: center;
  color: #fff;
  padding: 4rem 0;
  text-align: center;
}
.cta-band::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(10,29,51,.92), rgba(10,29,51,.78));
}
.cta-band .container { position: relative; z-index: 1; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #cdd6e3; max-width: 560px; margin: .5rem auto 1.5rem; }

/* ==========================================================================
   Content area (single/archive)
   ========================================================================== */
.content-area { padding: 3.5rem 0; }
.layout-default { display: grid; grid-template-columns: 1fr; gap: 2rem; }
.layout-with-sidebar { display: grid; grid-template-columns: 1fr 300px; gap: 2.5rem; align-items: start; }
.entry-content { line-height: 1.75; }
.entry-content h2, .entry-content h3 { margin-top: 2em; }
.entry-content img { border-radius: var(--radius); margin: 1.5em 0; }
.entry-content blockquote {
  margin: 1.5em 0;
  padding: 1em 1.5em;
  border-left: 4px solid var(--color-accent);
  background: var(--color-bg);
  font-style: italic;
  color: var(--color-text-muted);
}
.entry-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  font-size: .85rem;
  color: var(--color-gray);
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 1.5rem;
}
.entry-meta span { display: inline-flex; align-items: center; gap: .35rem; }
.post-nav {
  display: flex; justify-content: space-between; gap: 1rem;
  margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--color-border);
}

/* ==========================================================================
   Pagination
   ========================================================================== */
.pagination { display: flex; justify-content: center; gap: .35rem; margin-top: 2.5rem; }
.pagination .page-numbers, .pagination a {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 40px; height: 40px; padding: 0 .6rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  color: var(--color-text);
  font-weight: 600;
}
.pagination .current { background: var(--color-primary); color: #fff; border-color: var(--color-primary); }
.pagination a:hover { border-color: var(--color-accent); color: var(--color-accent); }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: var(--color-primary-dark); color: #aeb9c8; padding: 4rem 0 0; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.3fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
}
.footer-brand .site-name { color: #fff; }
.footer-brand p { color: #94a3b8; font-size: .9rem; max-width: 320px; }
.footer-col h4 { color: #fff; font-size: .95rem; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 1.1rem; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: .5rem; }
.footer-col a { color: #aeb9c8; font-size: .9rem; }
.footer-col a:hover { color: var(--color-accent-light); }
.footer-contact li { display: flex; align-items: flex-start; gap: .6rem; margin-bottom: .75rem; font-size: .9rem; color: #cdd6e3; }
.footer-contact svg { width: 16px; height: 16px; fill: var(--color-accent); flex-shrink: 0; margin-top: 3px; }
.footer-social { display: flex; gap: .6rem; margin-top: 1rem; }
.footer-social a { width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; background: rgba(255,255,255,.08); border-radius: 50%; }
.footer-social svg { width: 16px; height: 16px; fill: #cdd6e3; }
.footer-social a:hover { background: var(--color-accent); }
.footer-social a:hover svg { fill: #fff; }
.site-info {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 1.25rem 0;
  font-size: .82rem;
  color: #7d8a9d;
}
.site-info .container { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem; }
.site-info a { color: #7d8a9d; }
.site-info a:hover { color: #fff; }

/* ==========================================================================
   Floating contact button (mobile)
   ========================================================================== */
.float-contact {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 800;
  width: 52px; height: 52px;
  background: var(--color-accent);
  color: #fff;
  border-radius: 50%;
  display: none;
  align-items: center; justify-content: center;
  box-shadow: var(--shadow-lg);
}
.float-contact svg { width: 24px; height: 24px; fill: currentColor; }

/* ==========================================================================
   WordPress core classes
   ========================================================================== */
.alignwide { width: 100%; max-width: 1100px; margin-left: auto; margin-right: auto; }
.alignfull { width: 100vw; max-width: 100vw; margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); }
.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; }
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: .82rem; color: var(--color-gray); text-align: center; margin-top: .5em; }
.sticky { display: block; }
.bypostauthor { display: block; }
.screen-reader-text { position: absolute !important; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 2rem; }
  .nav-list > li > a { padding: .85rem .75rem; }
}

@media (max-width: 900px) {
  :root { --header-h: 64px; }
  .topbar { display: none; }
  .header-cta .btn, .header-phone { display: none; }
  .menu-toggle {
    display: inline-flex;
    align-items: center; justify-content: center;
    width: 44px; height: 44px;
    background: transparent;
    border: 0;
    cursor: pointer;
    padding: 0;
  }
  .menu-toggle span, .menu-toggle span::before, .menu-toggle span::after {
    content: ""; display: block;
    width: 24px; height: 2px;
    background: var(--color-primary);
    position: relative;
    transition: var(--transition);
  }
  .menu-toggle span::before { position: absolute; top: -7px; }
  .menu-toggle span::after  { position: absolute; top: 7px; }
  .menu-toggle[aria-expanded="true"] span { background: transparent; }
  .menu-toggle[aria-expanded="true"] span::before { transform: rotate(45deg); top: 0; }
  .menu-toggle[aria-expanded="true"] span::after  { transform: rotate(-45deg); top: 0; }

  .primary-nav {
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0; bottom: 0;
    background: #fff;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform var(--transition);
    z-index: 890;
  }
  .primary-nav.open { transform: translateX(0); }
  .nav-list { flex-direction: column; align-items: stretch; padding: 1rem; gap: 0; }
  .nav-list > li { display: block; width: 100%; border-bottom: 1px solid var(--color-border); }
  .nav-list > li > a { padding: 1rem .5rem; }
  .nav-list .sub-menu {
    position: static;
    opacity: 1; visibility: visible; transform: none;
    box-shadow: none; border-top: 0;
    grid-template-columns: 1fr;
    display: none;
    padding: 0 0 0 1rem;
    max-width: none;
    margin: 0;
  }
  .nav-list li.open > .sub-menu { display: grid; }
  .nav-list .menu-item-has-children > a::after { margin-left: auto; transform: rotate(-45deg); }
  .nav-list li.open > a::after { transform: rotate(45deg); }
  .float-contact { display: flex; }
}

@media (max-width: 768px) {
  .section { padding: 3rem 0; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; gap: 1.5rem; }
  .layout-with-sidebar { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .hero-content { padding: 2rem 0; }
  .hero p { font-size: 1rem; }
  .site-info .container { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr; }
  .hero-actions .btn { flex: 1; justify-content: center; }
}

/* ==========================================================================
   Scroll reveal (progressive enhancement; main.js adds .reveal/.is-visible)
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .5s ease, transform .5s ease;
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* Header shadow on scroll */
.site-header.is-scrolled { box-shadow: var(--shadow); }

/* WordPress widget styling for sidebar / footer widgets */
.widget { margin-bottom: 1.5rem; }
.widget-title { font-size: .95rem; letter-spacing: .04em; text-transform: uppercase; color: var(--color-primary); margin-bottom: .75rem; }
.widget ul { list-style: none; padding: 0; margin: 0; }
.widget ul li { margin-bottom: .4rem; }
.widget a { color: var(--color-text-muted); }
.widget a:hover { color: var(--color-accent); }
.site-footer .widget-title { color: #fff; }
.site-footer .widget a { color: #aeb9c8; }

/* ==========================================================================
   Contact page & form
   ========================================================================== */
.contact-layout {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 2.5rem;
  align-items: start;
  padding: 3.5rem 0;
}
.contact-intro { margin-bottom: 2rem; }

.contact-form { display: flex; flex-direction: column; gap: 1.25rem; }
.form-row { display: flex; flex-direction: column; gap: .5rem; }
.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}
.form-field { display: flex; flex-direction: column; gap: .4rem; }
.form-field label { font-size: .9rem; font-weight: 600; color: var(--color-text); }
.form-field .req { color: var(--color-accent); }

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: .75rem .85rem;
  font: inherit;
  font-size: .95rem;
  color: var(--color-text);
  background: #fff;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius);
  transition: border-color var(--transition), box-shadow var(--transition);
  -webkit-appearance: none;
  appearance: none;
}
.contact-form select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%236b7785'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .6rem center;
  background-size: 20px;
  padding-right: 2rem;
}
.contact-form textarea { resize: vertical; min-height: 140px; }
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(224, 131, 26, .15);
}
.contact-form input[aria-invalid="true"],
.contact-form input:invalid:not(:placeholder-shown) {
  border-color: #dc2626;
}

.form-error {
  display: block;
  font-size: .82rem;
  color: #dc2626;
  margin-top: -.15rem;
}

.form-actions { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; margin-top: .5rem; }
.form-note { font-size: .8rem; color: var(--color-gray); max-width: 360px; }

.form-notice {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  margin-bottom: 1.5rem;
  font-size: .92rem;
}
.form-notice svg { width: 24px; height: 24px; fill: currentColor; flex-shrink: 0; }
.form-notice.success { background: #e7f6ec; color: #166534; border: 1px solid #b8e3c5; }
.form-notice.error { background: #fdecec; color: #991b1b; border: 1px solid #f5c6c6; }

/* Honeypot — visually hidden but present for bots */
.hp-field {
  position: absolute;
  left: -9999px;
  top: -9999px;
}
.hp-field input { width: 1px; height: 1px; }

/* Contact aside */
.contact-aside { display: flex; flex-direction: column; gap: 1.5rem; }
.contact-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
}
.contact-card h3 { margin: 0 0 1.25rem; font-size: 1.15rem; }
.contact-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 1.1rem; }
.contact-list li { display: flex; gap: .75rem; align-items: flex-start; }
.contact-list .ci-icon { flex-shrink: 0; width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; background: var(--color-primary); border-radius: 50%; }
.contact-list .ci-icon svg { width: 18px; height: 18px; fill: #fff; }
.contact-list strong { display: block; font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--color-gray); margin-bottom: .15rem; font-weight: 600; }
.contact-list a { color: var(--color-text); }
.contact-list a:hover { color: var(--color-accent); }

.contact-map { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--color-border); }
.contact-map iframe { display: block; width: 100%; height: 280px; border: 0; }

/* Contact responsive — placed after base styles so they override correctly */
@media (max-width: 768px) {
  .contact-layout { grid-template-columns: 1fr; gap: 2rem; }
  .form-row-2 { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .form-actions { flex-direction: column; align-items: stretch; }
  .form-actions .btn { width: 100%; justify-content: center; }
  .form-note { max-width: none; }
}

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