/*
Theme Name: Shree Metals
Theme URI: https://shrimetals.com
Author: Shree Metals
Author URI: https://shrimetals.com
Description: A rich, professional WordPress theme built for Shree Metals — Manufacturer & Exporter of Precision Brass Turned Components since 1998. Fully editable from the WordPress Customizer, block editor and Products admin (no page builder required).
Version: 1.4.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: LICENSE
Text Domain: shree-metals
Tags: custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready, one-column, two-columns, right-sidebar

This theme, like WordPress, is licensed under the GPL.
Use it to make something cool, have fun, and share what you've learned.
*/

/* =====================================================================
   TABLE OF CONTENTS
   1. Reset & base
   2. Design tokens (custom properties)
   3. Typography
   4. Layout utilities (container, grid)
   5. Accessibility helpers
   6. Buttons & badges
   7. Site header & navigation
   8. Hero
   9. Sections & section headers
   10. Cards: product / category / icon-tile
   11. Stats bar
   12. CTA banner
   13. Gallery
   14. Page banner & breadcrumbs
   15. Spec table (product detail)
   16. Contact page & forms
   17. Blog / single / archive / 404 / search
   18. Footer
   19. WordPress core / block alignment support
   20. Scroll-reveal animation
   21. Responsive breakpoints
   ===================================================================== */

/* ---------------------------------------------------------------------
   1. Reset & base
   --------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--sm-white);
  color: var(--sm-ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

svg {
  display: block;
}

figure {
  margin: 0;
}

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

a {
  color: var(--sm-blue-dark);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover,
a:focus {
  color: var(--sm-red);
}

button,
input,
textarea,
select {
  font-family: inherit;
  font-size: 100%;
}

table {
  border-collapse: collapse;
  width: 100%;
}

/* ---------------------------------------------------------------------
   2. Design tokens
   --------------------------------------------------------------------- */
:root {
  /* Brand palette (sourced from the Shree Metals logo & catalogue) */
  --sm-blue: #0093cf;
  --sm-blue-dark: #046190;
  --sm-blue-darker: #063f5e;
  --sm-navy: #0c2436;
  --sm-navy-light: #12324a;
  --sm-red: #e2231a;
  --sm-red-dark: #b91710;
  --sm-gold: #c8952d;
  --sm-gold-light: #e9c876;

  --sm-ink: #1b232c;
  --sm-ink-light: #4c5a68;
  --sm-line: #e3e8ec;
  --sm-bg: #f5f7f9;
  --sm-bg-soft: #eef2f5;
  --sm-white: #ffffff;

  --font-heading: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --sm-container: 1760px;
  --sm-container-text: 920px;
  --sm-radius-sm: 6px;
  --sm-radius: 12px;
  --sm-radius-lg: 22px;
  --sm-shadow: 0 6px 20px rgba(12, 36, 54, 0.08);
  --sm-shadow-lg: 0 24px 60px rgba(12, 36, 54, 0.16);
  --sm-gap: clamp(20px, 3vw, 40px);
}

/* ---------------------------------------------------------------------
   3. Typography
   --------------------------------------------------------------------- */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--sm-navy);
  line-height: 1.22;
  margin: 0 0 0.5em;
}

h1 {
  font-size: clamp(2.1rem, 1.6rem + 2vw, 3.4rem);
}

h2 {
  font-size: clamp(1.7rem, 1.4rem + 1.4vw, 2.6rem);
}

h3 {
  font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.55rem);
}

h4 {
  font-size: 1.15rem;
}

p {
  margin: 0 0 1.2em;
  color: var(--sm-ink-light);
}

.lede {
  font-size: 1.15rem;
  color: var(--sm-ink-light);
}

strong {
  color: var(--sm-navy);
}

.text-white,
.text-white h1,
.text-white h2,
.text-white h3,
.text-white p,
.text-white strong {
  color: #fff;
}

.text-white .lede,
.text-white p {
  color: rgba(255, 255, 255, 0.82);
}

/* ---------------------------------------------------------------------
   4. Layout utilities
   --------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--sm-container);
  margin-inline: auto;
  padding-inline: clamp(20px, 3.4vw, 64px);
}

.container--narrow {
  max-width: var(--sm-container-text);
}

.grid {
  display: grid;
  gap: var(--sm-gap);
}

/* Guard against grid blowout from long unbroken strings (URLs, part numbers) */
.grid > *,
.category-catalogue > *,
.contact-grid > * {
  min-width: 0;
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

/* Fluid card grids: as many columns as fit, cards never squeezed below a
   readable minimum — 1 column on phones, up to 5-6 on ultra-wide screens. */
.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
}

.grid-4 {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr));
}

.grid-5 {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
}

.flex {
  display: flex;
}

.flex-center {
  display: flex;
  align-items: center;
}

.flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.gap-sm {
  gap: 10px;
}

.gap-md {
  gap: 20px;
}

/* ---------------------------------------------------------------------
   5. Accessibility helpers
   --------------------------------------------------------------------- */
.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute !important;
  width: 1px;
  word-wrap: normal !important;
}

.screen-reader-text:focus {
  background: #fff;
  border-radius: 4px;
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.4);
  clip: auto !important;
  clip-path: none;
  color: var(--sm-ink);
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  height: auto;
  left: 6px;
  line-height: normal;
  padding: 12px 18px;
  text-decoration: none;
  top: 6px;
  width: auto;
  z-index: 100000;
}

.skip-link {
  position: absolute;
  top: -80px;
  left: 10px;
  background: var(--sm-navy);
  color: #fff;
  padding: 12px 18px;
  z-index: 100000;
  border-radius: 0 0 6px 6px;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 0;
  color: #fff;
}

:focus-visible {
  outline: 3px solid var(--sm-gold);
  outline-offset: 2px;
}

/* ---------------------------------------------------------------------
   6. Buttons & badges
   --------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.98rem;
  letter-spacing: 0.01em;
  padding: 14px 30px;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}

.btn svg {
  width: 18px;
  height: 18px;
  flex: none;
}

.btn-primary {
  background: var(--sm-red);
  border-color: var(--sm-red);
  color: #fff;
  box-shadow: 0 10px 24px rgba(226, 35, 26, 0.28);
}

.btn-primary:hover,
.btn-primary:focus {
  background: var(--sm-red-dark);
  border-color: var(--sm-red-dark);
  color: #fff;
  transform: translateY(-2px);
}

.btn-navy {
  background: var(--sm-navy);
  border-color: var(--sm-navy);
  color: #fff;
}

.btn-navy:hover,
.btn-navy:focus {
  background: var(--sm-blue-darker);
  color: #fff;
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.55);
  color: #fff;
}

.btn-outline:hover,
.btn-outline:focus {
  background: #fff;
  border-color: #fff;
  color: var(--sm-navy);
  transform: translateY(-2px);
}

.btn-outline-dark {
  background: transparent;
  border-color: var(--sm-navy);
  color: var(--sm-navy);
}

.btn-outline-dark:hover,
.btn-outline-dark:focus {
  background: var(--sm-navy);
  color: #fff;
}

.btn-sm {
  padding: 10px 20px;
  font-size: 0.88rem;
}

.btn-block {
  width: 100%;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(0, 147, 207, 0.1);
  color: var(--sm-blue-dark);
}

.badge-gold {
  background: rgba(200, 149, 45, 0.14);
  color: #916c1c;
}

.badge-white {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.35);
}

/* ---------------------------------------------------------------------
   7. Site header & navigation
   --------------------------------------------------------------------- */
.top-bar {
  background: var(--sm-navy);
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.86rem;
}

.top-bar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 9px;
  flex-wrap: wrap;
  gap: 8px 24px;
  max-width: none;
}

.top-bar a {
  color: rgba(255, 255, 255, 0.85);
}

.top-bar a:hover {
  color: var(--sm-gold-light);
}

.top-bar__contacts {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}

.top-bar__contacts span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.top-bar__contacts svg {
  width: 14px;
  height: 14px;
  opacity: 0.8;
  flex: none;
}

.top-bar__social {
  display: flex;
  align-items: center;
  gap: 12px;
}

.top-bar__social a {
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
}

.top-bar__social svg {
  width: 13px;
  height: 13px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 999;
  background: #fff;
  border-bottom: 1px solid var(--sm-line);
}

/* Full-width header: logo (left) | menu (centered) | call button (right),
   all on one line and distributed edge-to-edge. */
.site-header .container {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  column-gap: clamp(16px, 3vw, 48px);
  padding-block: 14px;
  max-width: none;
  transition: padding 0.25s ease;
}

.site-header.is-scrolled .container {
  padding-block: 8px;
}

.site-branding {
  display: flex;
  align-items: center;
}

.site-branding a {
  display: inline-flex;
  align-items: center;
}

.site-branding img,
.custom-logo {
  max-height: 54px;
  width: auto;
  transition: max-height 0.25s ease;
}

.site-header.is-scrolled .site-branding img {
  max-height: 42px;
}

.site-branding .site-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--sm-navy);
  margin: 0;
}

.site-branding .site-description {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sm-red);
  font-weight: 600;
}

.main-navigation {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
}

.main-navigation ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: clamp(2px, 0.6vw, 10px);
}

.main-navigation li {
  position: relative;
}

.main-navigation a {
  display: inline-flex;
  align-items: center;
  padding: 12px clamp(10px, 1vw, 18px);
  color: var(--sm-navy);
  font-weight: 600;
  font-size: 0.98rem;
  border-radius: 8px;
  white-space: nowrap;
}

.main-navigation a:hover,
.main-navigation a:focus,
.main-navigation .current-menu-item > a,
.main-navigation .current_page_item > a {
  color: var(--sm-blue-dark);
  background: var(--sm-bg);
}

.main-navigation .sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 240px;
  background: #fff;
  border-radius: var(--sm-radius);
  box-shadow: var(--sm-shadow-lg);
  padding: 10px;
  border: 1px solid var(--sm-line);
  z-index: 20;
}

.main-navigation li:hover > .sub-menu,
.main-navigation li:focus-within > .sub-menu {
  display: block;
}

.main-navigation .sub-menu a {
  display: block;
  padding: 10px 14px;
  border-radius: 6px;
  white-space: nowrap;
}

.main-navigation .menu-item-has-children > a::after {
  content: "";
  width: 7px;
  height: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  margin-left: 8px;
  opacity: 0.55;
}

.header-cta {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  border: 1px solid var(--sm-line);
  background: #fff;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin-inline: auto;
  background: var(--sm-navy);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---------------------------------------------------------------------
   8. Hero
   --------------------------------------------------------------------- */
.hero {
  position: relative;
  background: radial-gradient(120% 140% at 84% 0%, #123a56 0%, var(--sm-navy) 46%, #081824 100%);
  color: #fff;
  overflow: hidden;
  padding-block: clamp(56px, 9vw, 108px) clamp(48px, 7vw, 84px);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 26px 26px;
  opacity: 0.5;
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  right: -10%;
  bottom: -30%;
  width: 640px;
  height: 640px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(200, 149, 45, 0.24), transparent 65%);
  pointer-events: none;
}

.hero .container {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: clamp(30px, 5vw, 64px);
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sm-gold-light);
  margin-bottom: 22px;
}

.hero-eyebrow svg {
  width: 15px;
  height: 15px;
}

.hero h1 {
  color: #fff;
  margin-bottom: 22px;
}

.hero h1 em {
  font-style: normal;
  color: var(--sm-gold-light);
}

.hero-sub {
  font-size: 1.14rem;
  color: rgba(255, 255, 255, 0.78);
  max-width: 640px;
  margin-bottom: 34px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 40px;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 26px;
}

.hero-trust__item {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.hero-trust__num {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 700;
  color: #fff;
}

.hero-trust__label {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.65);
  max-width: 110px;
  line-height: 1.35;
}

.hero-media {
  position: relative;
  display: grid;
  place-items: center;
}

.hero-media__frame {
  position: relative;
  width: 100%;
  max-width: clamp(460px, 34vw, 600px);
}

.hero-media__main,
.hero-media__accent {
  border-radius: var(--sm-radius-lg);
  overflow: hidden;
  box-shadow: var(--sm-shadow-lg);
  border: 6px solid rgba(255, 255, 255, 0.08);
}

.hero-media__main img,
.hero-media__accent img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4 / 3;
}

.hero-media__main {
  position: relative;
  z-index: 2;
}

.hero-media__accent {
  position: absolute;
  width: 58%;
  bottom: -13%;
  left: -14%;
  z-index: 3;
  border-color: var(--sm-navy);
}

.hero-media__badge {
  position: absolute;
  top: -22px;
  right: -18px;
  z-index: 4;
  background: #fff;
  color: var(--sm-navy);
  border-radius: 50%;
  width: 118px;
  height: 118px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-shadow: var(--sm-shadow-lg);
  font-family: var(--font-heading);
}

.hero-media__badge strong {
  font-size: 1.7rem;
  line-height: 1;
  color: var(--sm-red);
}

.hero-media__badge span {
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-family: var(--font-body);
  font-weight: 700;
  color: var(--sm-ink-light);
  margin-top: 4px;
}

/* ---------------------------------------------------------------------
   9. Sections & section headers
   --------------------------------------------------------------------- */
.section {
  padding-block: clamp(52px, 8vw, 100px);
}

.section--alt {
  background: var(--sm-bg);
}

.section--dark {
  background: linear-gradient(160deg, var(--sm-navy), #081824);
  color: #fff;
}

.section--tight {
  padding-block: clamp(36px, 5vw, 60px);
}

.section-head {
  max-width: 820px;
  margin-bottom: clamp(30px, 5vw, 54px);
}

.section-head--center {
  margin-inline: auto;
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sm-red);
  margin-bottom: 14px;
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--sm-red);
  display: inline-block;
}

.section--dark .eyebrow,
.text-white .eyebrow {
  color: var(--sm-gold-light);
}

.section--dark .eyebrow::before,
.text-white .eyebrow::before {
  background: var(--sm-gold-light);
}

.section-title {
  margin-bottom: 16px;
}

.section-lede {
  font-size: 1.08rem;
  color: var(--sm-ink-light);
  margin: 0;
}

.section--dark .section-lede {
  color: rgba(255, 255, 255, 0.75);
}

.section-foot {
  margin-top: clamp(30px, 5vw, 50px);
  text-align: center;
}

/* ---------------------------------------------------------------------
   10. Cards: product / category / icon-tile
   --------------------------------------------------------------------- */
.card {
  background: #fff;
  border-radius: var(--sm-radius-lg);
  border: 1px solid var(--sm-line);
  box-shadow: var(--sm-shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--sm-shadow-lg);
}

.icon-tile {
  padding: 34px 28px;
  text-align: left;
}

.icon-tile__icon {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  color: #fff;
}

.icon-tile__icon svg {
  width: 30px;
  height: 30px;
}

.icon-tile h3 {
  font-size: 1.14rem;
  margin-bottom: 8px;
}

.icon-tile p {
  font-size: 0.92rem;
  margin-bottom: 0;
}

.icon-tile--blue .icon-tile__icon {
  background: linear-gradient(140deg, var(--sm-blue), var(--sm-blue-dark));
}

.icon-tile--navy .icon-tile__icon {
  background: linear-gradient(140deg, var(--sm-navy-light), var(--sm-navy));
}

.icon-tile--red .icon-tile__icon {
  background: linear-gradient(140deg, #ef4a3c, var(--sm-red-dark));
}

.icon-tile--gold .icon-tile__icon {
  background: linear-gradient(140deg, var(--sm-gold-light), var(--sm-gold));
}

.category-tile {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  height: 100%;
}

.category-tile__media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--sm-bg-soft);
}

.category-tile__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.category-tile:hover .category-tile__media img {
  transform: scale(1.08);
}

.category-tile__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(12, 36, 54, 0) 55%, rgba(12, 36, 54, 0.72) 100%);
}

.category-tile__icon-media {
  display: flex;
  align-items: center;
  justify-content: center;
}

.category-tile__icon-media svg {
  width: 64px;
  height: 64px;
  color: #fff;
  opacity: 0.92;
  position: relative;
  z-index: 1;
}

.category-tile__count {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
}

.category-tile__body {
  padding: 20px 22px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.category-tile__body h3 {
  font-size: 1.06rem;
  margin-bottom: 8px;
}

.category-tile__body h3 a {
  color: var(--sm-navy);
}

.category-tile__body h3 a::after {
  content: "";
  position: absolute;
  inset: 0;
}

.category-tile__body {
  position: relative;
}

.category-tile__body p {
  font-size: 0.88rem;
  margin-bottom: 14px;
  flex: 1;
}

.category-tile__link {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--sm-blue-dark);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.category-tile__link svg {
  width: 14px;
  height: 14px;
  transition: transform 0.2s ease;
}

.category-tile:hover .category-tile__link svg {
  transform: translateX(4px);
}

/* Category detail card (Products landing page) — photo + specs built in */
.category-catalogue {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 470px), 1fr));
  gap: 30px;
}

.cat-detail-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--sm-line);
  border-radius: var(--sm-radius-lg);
  box-shadow: var(--sm-shadow);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.cat-detail-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--sm-shadow-lg);
  border-color: rgba(0, 147, 207, 0.35);
}

.cat-detail-card__media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--sm-bg-soft);
}

.cat-detail-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.cat-detail-card:hover .cat-detail-card__media img {
  transform: scale(1.06);
}

.cat-detail-card__media--icon {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(140deg, var(--sm-navy-light), var(--sm-navy));
}

.cat-detail-card__media--icon svg {
  width: 68px;
  height: 68px;
  color: rgba(255, 255, 255, 0.9);
}

.cat-detail-card__count {
  position: absolute;
  top: 14px;
  right: 14px;
}

.cat-detail-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 24px 26px 26px;
}

.cat-detail-card__title {
  font-size: 1.24rem;
  margin-bottom: 10px;
}

.cat-detail-card__title a {
  color: var(--sm-navy);
}

.cat-detail-card__title a:hover {
  color: var(--sm-blue-dark);
}

.cat-detail-card__desc {
  color: var(--sm-ink-light);
  font-size: 0.94rem;
  margin-bottom: 18px;
}

.cat-detail-card__desc p {
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.cat-detail-card__specs {
  list-style: none;
  margin: 0 0 22px;
  padding: 16px 0 4px;
  border-top: 1px solid var(--sm-line);
  display: grid;
  gap: 12px;
}

.cat-detail-card__specs li {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 12px;
  align-items: baseline;
  font-size: 0.86rem;
}

.cat-detail-card__specs .spec-label {
  color: var(--sm-blue-dark);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  padding-top: 2px;
}

.cat-detail-card__specs .spec-value {
  color: var(--sm-ink);
}

.cat-detail-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: auto;
}

.cat-detail-card__actions .btn svg {
  width: 16px;
  height: 16px;
  transition: transform 0.2s ease;
}

.cat-detail-card:hover .cat-detail-card__actions .btn-navy svg {
  transform: translateX(3px);
}

.product-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  height: 100%;
}

.product-card__media {
  aspect-ratio: 4 / 3;
  background: var(--sm-bg-soft);
  position: relative;
  overflow: hidden;
}

.product-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.product-card:hover .product-card__media img {
  transform: scale(1.06);
}

.product-card__media--icon {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(140deg, var(--sm-navy-light), var(--sm-navy));
}

.product-card__media--icon svg {
  width: 56px;
  height: 56px;
  color: rgba(255, 255, 255, 0.85);
}

.product-card__cat {
  position: absolute;
  top: 12px;
  left: 12px;
  display: block;
  max-width: calc(100% - 24px);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.product-card__body {
  padding: 20px 22px 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-card__body h3 {
  font-size: 1.04rem;
  margin-bottom: 8px;
}

.product-card__body h3 a {
  color: var(--sm-navy);
}

.product-card__body p {
  font-size: 0.88rem;
  margin-bottom: 14px;
  flex: 1;
}

.product-card__link {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--sm-blue-dark);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
}

.product-card__link svg {
  transition: transform 0.2s ease;
}

/* Clickable product card (opens the detail modal) */
.product-card--modal {
  cursor: pointer;
}

.product-card--modal:focus-visible {
  outline: 3px solid var(--sm-gold);
  outline-offset: 3px;
}

.product-card--modal:hover .product-card__link {
  color: var(--sm-red);
}

.product-card--modal:hover .product-card__link svg {
  transform: translateX(4px);
}

/* ---------------------------------------------------------------------
   Product detail modal (Products hub) — photo left, details right
   --------------------------------------------------------------------- */
.product-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(14px, 4vw, 40px);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.product-modal[hidden] {
  display: none;
}

.product-modal.is-open {
  opacity: 1;
}

.product-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(8, 20, 30, 0.62);
}

.product-modal__dialog {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1100px;
  max-height: 90vh;
  overflow: auto;
  background: #fff;
  border-radius: var(--sm-radius-lg);
  box-shadow: var(--sm-shadow-lg);
  transform: translateY(18px) scale(0.98);
  transition: transform 0.25s ease;
}

.product-modal.is-open .product-modal__dialog {
  transform: none;
}

.product-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.92);
  color: var(--sm-navy);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--sm-shadow);
  transition: background 0.2s ease, color 0.2s ease;
}

.product-modal__close:hover,
.product-modal__close:focus-visible {
  background: #fff;
  color: var(--sm-red);
}

.product-detail-modal {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.product-detail-modal__media {
  background: var(--sm-bg-soft);
  min-height: 260px;
}

.product-detail-modal__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.product-detail-modal__media.is-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(140deg, var(--sm-navy-light), var(--sm-navy));
}

.product-detail-modal__media.is-icon svg {
  width: 84px;
  height: 84px;
  color: rgba(255, 255, 255, 0.9);
}

.product-detail-modal__info {
  padding: clamp(24px, 3vw, 42px);
}

.product-detail-modal__info .badge {
  margin-bottom: 14px;
}

.product-detail-modal__title {
  font-size: clamp(1.4rem, 1.1rem + 1vw, 1.9rem);
  margin-bottom: 14px;
}

.product-detail-modal__desc {
  color: var(--sm-ink-light);
  margin-bottom: 22px;
}

.product-detail-modal__desc p:last-child {
  margin-bottom: 0;
}

.product-detail-modal .table-spec {
  margin-bottom: 26px;
}

body.sm-modal-open {
  overflow: hidden;
}

@media (prefers-reduced-motion: reduce) {
  .product-modal,
  .product-modal__dialog {
    transition: none;
  }
}

@media (max-width: 720px) {
  .product-detail-modal {
    grid-template-columns: 1fr;
  }

  .product-detail-modal__media {
    min-height: 0;
    aspect-ratio: 16 / 10;
  }
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 16px;
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.feature-list__icon {
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(0, 147, 207, 0.12);
  color: var(--sm-blue-dark);
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-list__icon svg {
  width: 20px;
  height: 20px;
}

.feature-list strong {
  display: block;
  margin-bottom: 2px;
}

.feature-list span {
  font-size: 0.92rem;
  color: var(--sm-ink-light);
}

.text-white .feature-list span {
  color: rgba(255, 255, 255, 0.7);
}

/* ---------------------------------------------------------------------
   11. Stats bar
   --------------------------------------------------------------------- */
/* Photo strip on the About page — three captioned photos in a row */
.about-photo-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-block: clamp(28px, 4vw, 44px);
}

.about-photo-strip figure {
  margin: 0;
}

.about-photo-strip img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--sm-radius);
  box-shadow: var(--sm-shadow);
}

.about-photo-strip figcaption {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--sm-ink-light);
  text-align: center;
  margin-top: 10px;
}

@media (max-width: 640px) {
  .about-photo-strip {
    grid-template-columns: 1fr;
  }
}

.stats-bar {
  background: var(--sm-navy);
  color: #fff;
  border-radius: var(--sm-radius-lg);
  padding: clamp(30px, 5vw, 50px) clamp(20px, 5vw, 50px);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  position: relative;
  overflow: hidden;
}

.stats-bar::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 90% 10%, rgba(200, 149, 45, 0.25), transparent 55%);
}

.stat {
  position: relative;
  text-align: center;
  padding-inline: 10px;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
}

.stat:last-child {
  border-right: none;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: clamp(1.9rem, 1.6rem + 1vw, 2.6rem);
  font-weight: 700;
  color: #fff;
  display: block;
}

.stat-number span {
  color: var(--sm-gold-light);
}

.stat-label {
  font-size: 0.84rem;
  color: rgba(255, 255, 255, 0.68);
  margin-top: 6px;
}

/* ---------------------------------------------------------------------
   12. CTA banner
   --------------------------------------------------------------------- */
.cta-banner {
  position: relative;
  overflow: hidden;
  background: linear-gradient(120deg, var(--sm-blue-darker), var(--sm-navy) 60%);
  border-radius: var(--sm-radius-lg);
  padding: clamp(36px, 6vw, 64px);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
}

.cta-banner::after {
  content: "";
  position: absolute;
  right: -60px;
  top: -60px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  border: 40px solid rgba(255, 255, 255, 0.05);
}

.cta-banner__content {
  position: relative;
  z-index: 1;
  max-width: 560px;
}

.cta-banner h2 {
  color: #fff;
  margin-bottom: 10px;
}

.cta-banner p {
  color: rgba(255, 255, 255, 0.78);
  margin-bottom: 0;
}

.cta-banner__actions {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* ---------------------------------------------------------------------
   13. Gallery
   --------------------------------------------------------------------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 18px;
}

.gallery-grid__item {
  position: relative;
  border-radius: var(--sm-radius);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  box-shadow: var(--sm-shadow);
}

.gallery-grid__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-grid__item:hover img {
  transform: scale(1.08);
}

.gallery-grid__item--wide {
  grid-column: span 2;
}

/* Two-column mini gallery (homepage infrastructure teaser) */
.gallery-grid--2col {
  grid-template-columns: repeat(2, 1fr);
}

/* Homepage "About" section — image fills its column, tidy highlights list */
.about-media .card {
  height: 100%;
  display: flex;
}

.about-media .card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 320px;
}

.about-highlights {
  list-style: none;
  margin: 0 0 30px;
  padding: 0;
  display: grid;
  gap: 14px;
}

.about-highlights li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-weight: 500;
  color: var(--sm-navy);
}

.about-highlights svg {
  flex: none;
  width: 22px;
  height: 22px;
  padding: 3px;
  border-radius: 50%;
  background: rgba(0, 147, 207, 0.12);
  color: var(--sm-blue-dark);
  margin-top: 1px;
}

.gallery-grid__caption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 14px 16px;
  background: linear-gradient(180deg, transparent, rgba(6, 20, 30, 0.82));
  color: #fff;
  font-size: 0.84rem;
  font-weight: 600;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.gallery-grid__item:hover .gallery-grid__caption {
  opacity: 1;
}

/* ---------------------------------------------------------------------
   14. Page banner & breadcrumbs
   --------------------------------------------------------------------- */
.page-banner {
  position: relative;
  background: linear-gradient(150deg, var(--sm-navy), #081824);
  color: #fff;
  padding-block: clamp(46px, 7vw, 74px) clamp(30px, 5vw, 46px);
  overflow: hidden;
}

.page-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 26px 26px;
  opacity: 0.5;
}

.page-banner .container {
  position: relative;
  z-index: 1;
}

.page-banner h1 {
  color: #fff;
  margin-bottom: 10px;
}

.page-banner p {
  color: rgba(255, 255, 255, 0.75);
  max-width: 640px;
  margin-bottom: 0;
}

.breadcrumbs {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 0;
  margin: 0 0 18px;
  font-size: 0.84rem;
}

.breadcrumbs li {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.55);
}

.breadcrumbs a {
  color: rgba(255, 255, 255, 0.78);
}

.breadcrumbs a:hover {
  color: var(--sm-gold-light);
}

.breadcrumbs li:not(:last-child)::after {
  content: "/";
  color: rgba(255, 255, 255, 0.35);
}

/* ---------------------------------------------------------------------
   15. Spec table (product detail)
   --------------------------------------------------------------------- */
.table-spec {
  width: 100%;
  border-collapse: collapse;
  border-radius: var(--sm-radius);
  overflow: hidden;
  border: 1px solid var(--sm-line);
}

.table-spec tr:nth-child(odd) {
  background: var(--sm-bg);
}

.table-spec th,
.table-spec td {
  text-align: left;
  padding: 14px 18px;
  font-size: 0.94rem;
  border-bottom: 1px solid var(--sm-line);
}

.table-spec tr:last-child th,
.table-spec tr:last-child td {
  border-bottom: none;
}

.table-spec th {
  width: 34%;
  color: var(--sm-navy);
  font-weight: 700;
}

.table-spec td {
  color: var(--sm-ink-light);
}

/* Product detail (single) — keep the spec aside at its natural height
   instead of stretching to match the taller media column. */
.product-detail {
  align-items: start;
}

/* Category filter pills (taxonomy pages) */
.cat-filter {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: clamp(30px, 4vw, 48px);
}

.cat-filter a {
  display: inline-flex;
  align-items: center;
  padding: 9px 18px;
  border-radius: 999px;
  background: var(--sm-bg);
  border: 1px solid var(--sm-line);
  color: var(--sm-navy);
  font-weight: 600;
  font-size: 0.9rem;
  white-space: nowrap;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.cat-filter a:hover,
.cat-filter a:focus {
  background: #fff;
  border-color: var(--sm-blue);
  color: var(--sm-blue-dark);
}

.cat-filter a.is-active {
  background: var(--sm-navy);
  border-color: var(--sm-navy);
  color: #fff;
}

/* ---------------------------------------------------------------------
   16. Contact page & forms
   --------------------------------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: var(--sm-gap);
  align-items: start;
}

.contact-info-card {
  background: var(--sm-navy);
  color: #fff;
  border-radius: var(--sm-radius-lg);
  padding: clamp(28px, 4vw, 40px);
}

.contact-info-card h3 {
  color: #fff;
}

.contact-info-list {
  list-style: none;
  margin: 24px 0 30px;
  padding: 0;
  display: grid;
  gap: 20px;
}

.contact-info-list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.contact-info-list__icon {
  flex: none;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-info-list__icon svg {
  width: 20px;
  height: 20px;
  color: var(--sm-gold-light);
}

.contact-info-list strong {
  display: block;
  color: #fff;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 4px;
}

.contact-info-list a,
.contact-info-list span {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.95rem;
}

.contact-info-list a {
  display: block;
}

.contact-form-card {
  background: #fff;
  border: 1px solid var(--sm-line);
  border-radius: var(--sm-radius-lg);
  padding: clamp(28px, 4vw, 40px);
  box-shadow: var(--sm-shadow);
}

.contact-form-card > h3 {
  margin-bottom: 20px;
}

/* Contact page intro sits centered above the info/form grid */
.contact-intro {
  text-align: center;
  max-width: 760px;
  margin: 0 auto clamp(28px, 4vw, 44px);
}

.contact-intro > :last-child {
  margin-bottom: 0;
}

.sm-form {
  display: grid;
  gap: 18px;
}

.sm-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.sm-form label {
  display: block;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--sm-navy);
  margin-bottom: 7px;
}

.sm-form input[type="text"],
.sm-form input[type="email"],
.sm-form input[type="tel"],
.sm-form select,
.sm-form textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1px solid var(--sm-line);
  border-radius: var(--sm-radius-sm);
  background: var(--sm-bg);
  color: var(--sm-ink);
  transition: border-color 0.2s ease, background 0.2s ease;
}

.sm-form input:focus,
.sm-form select:focus,
.sm-form textarea:focus {
  outline: none;
  border-color: var(--sm-blue);
  background: #fff;
}

.sm-form textarea {
  min-height: 140px;
  resize: vertical;
}

.sm-form__hp {
  position: absolute;
  left: -9999px;
  top: -9999px;
}

.form-notice {
  padding: 14px 18px;
  border-radius: var(--sm-radius-sm);
  font-size: 0.92rem;
  margin-bottom: 20px;
  font-weight: 600;
}

.form-notice--success {
  background: rgba(38, 166, 91, 0.12);
  color: #1a7a41;
  border: 1px solid rgba(38, 166, 91, 0.3);
}

.form-notice--error {
  background: rgba(226, 35, 26, 0.1);
  color: var(--sm-red-dark);
  border: 1px solid rgba(226, 35, 26, 0.28);
}

.map-embed {
  border-radius: var(--sm-radius-lg);
  overflow: hidden;
  border: 1px solid var(--sm-line);
  box-shadow: var(--sm-shadow);
}

/* Quality Assurance page: two stacked images beside the copy, kept in view */
.quality-media {
  display: grid;
  gap: 24px;
  align-self: start;
  position: sticky;
  top: 100px;
}

.quality-media .card img {
  width: 100%;
  display: block;
}

.quality-content > :first-child {
  margin-top: 0;
}

/* About page: stats bar sits below the article copy with clear separation */
.about-content .stats-bar {
  margin-top: clamp(30px, 4vw, 48px);
}

.map-embed iframe {
  width: 100%;
  height: 380px;
  border: 0;
  display: block;
}

/* ---------------------------------------------------------------------
   17. Blog / single / archive / 404 / search
   --------------------------------------------------------------------- */
.content-area {
  padding-block: clamp(48px, 7vw, 84px);
}

.post-list {
  display: grid;
  gap: 34px;
}

.post-card {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 26px;
  padding-bottom: 34px;
  border-bottom: 1px solid var(--sm-line);
}

.post-card__media {
  border-radius: var(--sm-radius);
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--sm-bg-soft);
}

.post-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.post-card .entry-meta {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--sm-red);
  font-weight: 700;
  margin-bottom: 8px;
}

.single-article {
  max-width: 800px;
  margin-inline: auto;
}

.single-article .entry-meta {
  color: var(--sm-red);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  margin-bottom: 12px;
}

.single-article .entry-content > * {
  max-width: 100%;
}

.single-article .entry-content img {
  border-radius: var(--sm-radius);
}

.single-article .entry-content h2 {
  margin-top: 1.4em;
}

.single-article .entry-content blockquote {
  border-left: 4px solid var(--sm-red);
  padding-left: 20px;
  font-style: italic;
  color: var(--sm-ink-light);
}

.pagination {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 40px;
}

.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  padding-inline: 10px;
  border-radius: 8px;
  border: 1px solid var(--sm-line);
  color: var(--sm-navy);
  font-weight: 600;
}

.pagination .current {
  background: var(--sm-navy);
  color: #fff;
  border-color: var(--sm-navy);
}

.pagination a:hover {
  border-color: var(--sm-blue);
  color: var(--sm-blue-dark);
}

.error-404 {
  text-align: center;
  padding-block: clamp(60px, 10vw, 120px);
}

.error-404__actions {
  margin-top: 28px;
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.error-404__code {
  font-family: var(--font-heading);
  font-size: clamp(4rem, 3rem + 4vw, 8rem);
  font-weight: 700;
  color: var(--sm-bg-soft);
  -webkit-text-stroke: 2px var(--sm-blue);
  line-height: 1;
  margin-bottom: 10px;
}

.search-form {
  display: flex;
  gap: 10px;
  max-width: 520px;
  margin-inline: auto;
}

.search-form input[type="search"] {
  flex: 1;
  padding: 14px 18px;
  border-radius: 999px;
  border: 1px solid var(--sm-line);
  background: var(--sm-bg);
}

.search-form button {
  border: none;
  background: var(--sm-red);
  color: #fff;
  border-radius: 999px;
  padding: 0 26px;
  font-weight: 700;
  cursor: pointer;
}

.no-results {
  text-align: center;
  padding-block: 60px;
}

.comments-area {
  margin-top: 50px;
  padding-top: 40px;
  border-top: 1px solid var(--sm-line);
}

.comments-title {
  margin-bottom: 26px;
}

.comment-list {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
  display: grid;
  gap: 22px;
}

.comment-list .children {
  list-style: none;
  margin: 18px 0 0;
  padding-left: 30px;
  border-left: 2px solid var(--sm-line);
  display: grid;
  gap: 22px;
}

.comment-body {
  background: var(--sm-bg);
  border-radius: var(--sm-radius);
  padding: 18px 20px;
}

.comment-author.vcard {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  color: var(--sm-navy);
  margin-bottom: 4px;
}

.comment-author .avatar {
  border-radius: 50%;
}

.comment-metadata {
  font-size: 0.8rem;
  color: var(--sm-ink-light);
  margin-bottom: 10px;
}

.comment-metadata a {
  color: inherit;
}

.comment-content p:last-child {
  margin-bottom: 0;
}

.comment-reply-link {
  display: inline-block;
  margin-top: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--sm-blue-dark);
}

.no-comments {
  color: var(--sm-ink-light);
  font-style: italic;
}

.comment-form p.comment-notes,
.comment-form p.logged-in-as {
  font-size: 0.88rem;
  color: var(--sm-ink-light);
  margin-bottom: 16px;
}

.comment-form .form-submit {
  margin: 0;
}

/* ---------------------------------------------------------------------
   18. Footer
   --------------------------------------------------------------------- */
.site-footer {
  background: var(--sm-navy);
  color: rgba(255, 255, 255, 0.72);
  padding-top: clamp(48px, 7vw, 80px);
}

.footer-top {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr 0.9fr 1.1fr;
  gap: var(--sm-gap);
  padding-bottom: 46px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-col h4 {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 20px;
  letter-spacing: 0.02em;
}

.footer-brand img {
  max-height: 46px;
  margin-bottom: 18px;
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.92rem;
}

.footer-social {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}

.footer-social a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.footer-social a:hover {
  background: var(--sm-red);
  color: #fff;
}

.footer-social svg {
  width: 16px;
  height: 16px;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.footer-col ul a {
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.94rem;
}

.footer-col ul a:hover {
  color: var(--sm-gold-light);
}

.footer-contact li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.68);
}

.footer-contact svg {
  width: 17px;
  height: 17px;
  flex: none;
  margin-top: 3px;
  color: var(--sm-gold-light);
}

.footer-contact a {
  color: rgba(255, 255, 255, 0.68);
}

.footer-contact a:hover {
  color: var(--sm-gold-light);
}

.footer-bottom {
  padding-block: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 0.84rem;
  color: rgba(255, 255, 255, 0.5);
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.6);
}

.footer-bottom-links {
  display: flex;
  gap: 18px;
  list-style: none;
  margin: 0;
  padding: 0;
}

/* ---------------------------------------------------------------------
   19. WordPress core / block alignment support
   --------------------------------------------------------------------- */
.alignwide {
  margin-left: calc(50% - 45vw);
  margin-right: calc(50% - 45vw);
  max-width: 90vw;
  width: auto;
}

.alignfull {
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  max-width: 100vw;
  width: auto;
}

.alignleft {
  float: left;
  margin: 0.4em 1.6em 1em 0;
}

.alignright {
  float: right;
  margin: 0.4em 0 1em 1.6em;
}

.aligncenter {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.wp-caption,
.wp-block-image figcaption,
.entry-content figcaption {
  font-size: 0.84rem;
  color: var(--sm-ink-light);
  text-align: center;
  margin-top: 8px;
}

.wp-block-button__link {
  border-radius: 999px;
}

.entry-content .wp-block-quote {
  border-left: 4px solid var(--sm-red);
  padding-left: 20px;
  font-style: italic;
}

/* ---------------------------------------------------------------------
   20. Scroll-reveal animation
   Gated behind the `.js` class (added to <html> by an inline script in the
   header) so that WITHOUT JavaScript every element stays fully visible —
   content must never depend on JS to be seen.
   --------------------------------------------------------------------- */
.js .fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.js .fade-in.in-view {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .js .fade-in {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ---------------------------------------------------------------------
   20b. Legacy-browser fallback: aspect-ratio (Safari < 15, older WebViews).
   The padding-top box hack reproduces each media box's ratio; images are
   absolutely positioned inside. Modern browsers never enter this block.
   --------------------------------------------------------------------- */
@supports not (aspect-ratio: 1 / 1) {
  .product-card__media,
  .category-tile__media,
  .gallery-grid__item,
  .post-card__media {
    height: 0;
    padding-top: 75%;
    position: relative;
  }

  .product-card__media img,
  .category-tile__media img,
  .gallery-grid__item img,
  .post-card__media img,
  .product-card__media svg,
  .category-tile__media svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    margin: auto;
  }

  .product-card__media--icon svg,
  .category-tile__icon-media svg {
    width: 56px;
    height: 56px;
    object-fit: contain;
  }

  .about-photo-strip figure {
    position: relative;
  }

  .about-photo-strip img {
    height: 240px;
  }
}

/* ---------------------------------------------------------------------
   21. Responsive breakpoints
   --------------------------------------------------------------------- */
@media (max-width: 1080px) {
  .footer-top {
    grid-template-columns: 1fr 1fr;
  }

  .stats-bar {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 30px;
  }

  .stat:nth-child(2) {
    border-right: none;
  }

  .hero .container {
    grid-template-columns: 1fr;
  }

  .hero-media {
    order: -1;
  }

  .hero-media__frame {
    max-width: 380px;
    margin-inline: auto;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }
}

/* The full menu + logo + call button need ~1150px on one line; below that
   the navigation collapses into the slide-in drawer. */
@media (max-width: 1200px) {
  .site-header .container {
    display: flex;
    justify-content: space-between;
  }

  .main-navigation {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(360px, 86vw);
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    padding: 90px 26px 26px;
    box-shadow: -20px 0 50px rgba(0, 0, 0, 0.15);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
    gap: 0;
  }

  .main-navigation.is-open {
    transform: translateX(0);
  }

  .main-navigation ul {
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
  }

  .main-navigation .sub-menu {
    display: none;
    position: static;
    box-shadow: none;
    border: none;
    padding-left: 14px;
  }

  .main-navigation li.submenu-open > .sub-menu {
    display: block;
  }

  .menu-toggle {
    display: flex;
  }
}

@media (max-width: 900px) {
  .header-cta .btn span {
    display: none;
  }

  .top-bar__contacts span:not(:first-child) {
    display: none;
  }

  .post-card {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .grid-2 {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-grid__item--wide {
    grid-column: span 1;
  }

  .stats-bar {
    grid-template-columns: 1fr 1fr;
  }

  .stat {
    border-right: none !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    padding-bottom: 18px;
  }

  .sm-form__row {
    grid-template-columns: 1fr;
  }

  .cta-banner {
    flex-direction: column;
    text-align: center;
  }

  .cta-banner__actions {
    justify-content: center;
  }

  .top-bar__social {
    display: none;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .hero-trust__label {
    max-width: none;
  }
}
