@import url('https://fonts.googleapis.com/css2?family=Geist:wght@300;400;500;600;700;800;900&family=Geist+Mono:wght@400;500;600;700&display=swap');

/* ============================================================
   DESIGN SYSTEM — AGS MACHINING
   Industrial cobalt + dark steel palette
   ============================================================ */

:root {
  /* Core palette */
  --blue:       #0B47BA;
  --blue-hover: #0939A0;
  --dark-bg:    #0F1923;
  --dark-2:     #16222E;
  --dark-3:     #1E2E3E;
  --white:      #FFFFFF;
  --off-white:  #F5F6F8;
  --grey-light: #E8EAED;
  --grey-mid:   #9AA3AE;
  --grey-dark:  #4A5568;

  /* Typography */
  --font-main:  'Geist', system-ui, -apple-system, sans-serif;
  --font-mono:  'Geist Mono', 'Courier New', monospace;

  /* Spacing */
  --section-v:  100px;
  --section-v-sm: 60px;

  /* Radius — sharp industrial */
  --r-sm:  4px;
  --r-md:  8px;
  --r-lg:  4px;

  /* Shadows */
  --shadow-card: 0 4px 24px rgba(0,0,0,0.12);
  --shadow-hover: 0 12px 40px rgba(0,0,0,0.22);

  /* Transitions */
  --ease: 0.3s cubic-bezier(0.4,0,0.2,1);

  /* Legacy compat vars */
  --black:       #0F1923;
  --dark-grey:   #16222E;
  --grey:        #9AA3AE;
  --light-grey:  #F5F6F8;
  --steel:       #E8EAED;
  --accent-blue: #0B47BA;
  --accent-hover:#0939A0;
  --mono-font:   'Geist Mono', 'Courier New', monospace;
  --shadow-sm:   0 2px 8px rgba(10,10,20,0.08);
  --shadow-md:   0 8px 24px rgba(10,10,20,0.10);
  --shadow-lg:   0 20px 48px rgba(10,10,20,0.16);
  --radius-card: 4px;
  --radius-btn:  4px;
}

/* ============================================================
   RESET & BASE
   ============================================================ */

html {
  scroll-behavior: smooth;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-main);
  color: var(--dark-bg);
  background-color: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

ul {
  list-style: none;
}

a {
  text-decoration: none;
  color: var(--blue);
  font-weight: 500;
  transition: color var(--ease), opacity var(--ease);
}

a:hover {
  color: var(--blue-hover);
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
  border-radius: var(--r-sm);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-main);
  line-height: 1.1;
  letter-spacing: -0.03em;
  font-weight: 800;
}

p {
  line-height: 1.7;
}

/* ============================================================
   LAYOUT
   ============================================================ */

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px;
}

.section-pad {
  padding: var(--section-v) 0;
}

/* ============================================================
   TOPBAR
   ============================================================ */

.topbar {
  background-color: var(--dark-bg);
  color: var(--grey-mid);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  padding: 9px 0;
  position: relative;
  z-index: 200;
}

.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.topbar__contact {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.topbar__contact a {
  color: var(--grey-mid);
  font-weight: 500;
  font-size: 0.78rem;
  transition: color var(--ease);
}

.topbar__contact a:hover {
  color: var(--white);
}

.topbar__contact span {
  color: var(--grey-mid);
}

.topbar__right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.topbar__hours {
  font-size: 0.75rem;
  color: var(--grey-mid);
}

/* Language switcher */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: var(--r-sm);
  padding: 3px;
}

.lang-switcher a {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--grey-mid);
  padding: 3px 8px;
  border-radius: 2px;
  transition: background var(--ease), color var(--ease);
}

.lang-switcher a:hover {
  color: var(--white);
}

.lang-switcher a.active {
  background: var(--blue);
  color: var(--white);
}

/* ============================================================
   HEADER / NAV
   ============================================================ */

.header {
  position: sticky;
  top: 0;
  z-index: 210; /* above .topbar (200) so the mobile menu overlay can cover it */
  background: var(--white);
  border-bottom: 1px solid var(--grey-light);
  transition: box-shadow var(--ease);
}

.header.scrolled {
  box-shadow: 0 2px 20px rgba(0,0,0,0.10);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.logo img {
  height: 38px;
  width: auto;
  object-fit: contain;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-close { display: none; } /* shown only inside the mobile menu overlay */

.nav-links a {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--dark-bg);
  padding: 6px 12px;
  border-radius: var(--r-sm);
  letter-spacing: 0.01em;
  transition: background var(--ease), color var(--ease);
}

.nav-links a:hover {
  background: var(--off-white);
  color: var(--blue);
}

.nav-links a.active {
  color: var(--blue);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  cursor: pointer;
  padding: 0;
  background: transparent;        /* reset the default button box */
  border: none;
  -webkit-appearance: none;
  appearance: none;
  border-radius: 12px;
  transition: background var(--ease), transform 0.15s ease;
}

.hamburger:hover {
  background: rgba(11, 71, 186, 0.08);
}
.hamburger:active {
  transform: scale(0.93);
}
.hamburger:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2.5px;
  background: var(--dark-bg);
  border-radius: 4px;
  transition: transform 0.3s ease, opacity 0.3s ease, background 0.3s ease;
}
.hamburger:hover span {
  background: var(--blue);
}

.hamburger.active span:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

/* ============================================================
   BUTTONS
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--blue);
  color: var(--white) !important;
  font-family: var(--font-main);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 11px 22px;
  border-radius: var(--r-sm);
  border: none;
  cursor: pointer;
  transition: background var(--ease), transform 0.15s ease, box-shadow var(--ease);
  white-space: nowrap;
}

.btn:hover {
  background: var(--blue-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(11,71,186,0.35);
}

.btn:active {
  transform: translateY(0);
}

.btn--outline {
  background: transparent;
  color: var(--white) !important;
  border: 2px solid var(--white);
}

.btn--outline:hover {
  background: var(--white);
  color: var(--blue) !important;
  box-shadow: none;
}

.btn--dark {
  background: var(--dark-bg);
  color: var(--white) !important;
}

.btn--dark:hover {
  background: var(--dark-3);
  box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

/* ============================================================
   HERO — VIDEO
   ============================================================ */

.hero-video {
  position: relative;
  height: 92vh;
  min-height: 560px;
  overflow: hidden;
  background: var(--dark-bg);
  display: flex;
  align-items: flex-end;
}

.hero-video__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.45;
}

.hero-video__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(15,25,35,0.2) 0%,
    rgba(15,25,35,0.55) 60%,
    rgba(15,25,35,0.90) 100%
  );
}

.hero-video__content {
  position: relative;
  z-index: 2;
  padding: 0 0 80px;
  width: 100%;
}

.hero-video__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff;                              /* white text — readable on the dark hero */
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.35);
  padding: 5px 12px;
  border-radius: var(--r-sm);
  margin-bottom: 24px;
}

.hero-video__eyebrow::before {
  content: '';
  display: block;
  width: 6px;
  height: 6px;
  background: #fff;
  border-radius: 50%;
}

.hero-video__title {
  font-size: clamp(2.6rem, 5.5vw, 5rem);
  font-weight: 900;
  color: var(--white);
  letter-spacing: -0.04em;
  line-height: 1.0;
  margin-bottom: 22px;
  max-width: 750px;
  text-transform: uppercase;
}

.hero-video__title em {
  font-style: normal;
  color: var(--blue);
}

.hero-video__sub {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.72);
  margin-bottom: 36px;
  max-width: 520px;
  line-height: 1.65;
}

.hero-video__actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* ============================================================
   STATS BAR
   ============================================================ */

.stats-bar {
  background: var(--blue);
  padding: 42px 0;
}

.stats-bar__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(255,255,255,0.15);
}

.stats-bar__item {
  background: var(--blue);
  padding: 28px 32px;
  text-align: center;
}

.stats-bar__number {
  font-family: var(--font-mono);
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 6px;
}

.stats-bar__label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
}

/* ============================================================
   SERVICE GRID
   ============================================================ */

.services-section {
  padding: var(--section-v) 0;
  background: var(--white);
}

.section-header {
  margin-bottom: 56px;
}

.section-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 12px;
  display: block;
}

.section-title {
  font-size: clamp(1.9rem, 3vw, 2.8rem);
  font-weight: 900;
  color: var(--dark-bg);
  letter-spacing: -0.04em;
  text-transform: uppercase;
  line-height: 1.05;
  max-width: 640px;
}

.section-title--center {
  text-align: center;
  max-width: 100%;
}

.section-sub {
  color: var(--grey-dark);
  font-size: 1rem;
  margin-top: 14px;
  max-width: 560px;
  line-height: 1.65;
}

.section-sub--center {
  text-align: center;
  max-width: 600px;
  margin: 14px auto 0;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;
  background: var(--grey-light);
}

.service-card {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/5;
  cursor: pointer;
  background: var(--dark-bg);
}

.service-card__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4,0,0.2,1), opacity 0.4s ease;
  opacity: 0.7;
}

.service-card:hover .service-card__img {
  transform: scale(1.06);
  opacity: 0.5;
}

.service-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(15,25,35,0.95) 0%,
    rgba(15,25,35,0.35) 55%,
    transparent 100%
  );
  transition: background var(--ease);
}

.service-card:hover .service-card__overlay {
  background: linear-gradient(
    to top,
    rgba(11,71,186,0.92) 0%,
    rgba(11,71,186,0.3) 55%,
    transparent 100%
  );
}

.service-card__body {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 32px 28px;
  z-index: 2;
}

.service-card__tag {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  margin-bottom: 8px;
  display: block;
  transition: color var(--ease);
}

.service-card:hover .service-card__tag {
  color: rgba(255,255,255,0.80);
}

.service-card__title {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 12px;
}

.service-card__desc {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.75);
  line-height: 1.6;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, opacity 0.35s ease;
  opacity: 0;
}

.service-card:hover .service-card__desc {
  max-height: 120px;
  opacity: 1;
}

.service-card__arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.service-card:hover .service-card__arrow {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   PROCESS SECTION (dark bg)
   ============================================================ */

.process-section {
  background: var(--dark-bg);
  padding: var(--section-v) 0;
}

.process-section .section-eyebrow {
  color: var(--blue);
}

.process-section .section-title {
  color: var(--white);
}

.process-section .section-sub {
  color: var(--grey-mid);
}

.process-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: 60px;
  background: var(--dark-3);
}

.process-step {
  background: var(--dark-2);
  padding: 40px 36px;
  position: relative;
  transition: background var(--ease);
}

.process-step:hover {
  background: var(--dark-3);
}

.process-step__num {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--blue);
  margin-bottom: 20px;
  display: block;
}

.process-step__icon {
  font-size: 1.8rem;
  margin-bottom: 16px;
}

.process-step__title {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: -0.01em;
  margin-bottom: 12px;
}

.process-step__desc {
  font-size: 0.9rem;
  color: var(--grey-mid);
  line-height: 1.65;
}

/* ============================================================
   INFO / CAPABILITY CARDS
   ============================================================ */

.capabilities-section {
  padding: var(--section-v) 0;
  background: var(--off-white);
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 3px;
  background: var(--grey-light);
  margin-top: 56px;
}

.info-card {
  background: var(--white);
  padding: 36px 28px;
  transition: transform var(--ease), box-shadow var(--ease);
}

.info-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card);
  z-index: 2;
  position: relative;
}

.info-card__icon {
  width: 44px;
  height: 44px;
  background: rgba(11,71,186,0.08);
  border: 1px solid rgba(11,71,186,0.15);
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  margin-bottom: 18px;
}

.info-card__title {
  font-size: 1rem;
  font-weight: 800;
  color: var(--dark-bg);
  text-transform: uppercase;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}

.info-card__desc {
  font-size: 0.875rem;
  color: var(--grey-dark);
  line-height: 1.65;
}

/* ============================================================
   CAD / FEATURE SPLIT SECTION
   ============================================================ */

.cad-section {
  padding: var(--section-v) 0;
  background: var(--white);
}

.cad-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.cad-layout__visual {
  position: relative;
  border-radius: var(--r-sm);
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--dark-bg);
}

.cad-layout__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.85;
}

.cad-layout__badge {
  position: absolute;
  bottom: 20px;
  left: 20px;
  background: var(--blue);
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: var(--r-sm);
}

.feature-list {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

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

.feature-item__dot {
  width: 8px;
  height: 8px;
  background: var(--blue);
  border-radius: 50%;
  margin-top: 7px;
  flex-shrink: 0;
}

.feature-item__text {
  font-size: 0.925rem;
  color: var(--grey-dark);
  line-height: 1.65;
}

.feature-item__text strong {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--dark-bg);
  text-transform: uppercase;
  letter-spacing: 0.01em;
  margin-bottom: 2px;
}

/* ============================================================
   CTA SECTION
   ============================================================ */

.cta-section {
  background: var(--dark-bg);
  padding: 90px 0;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -80px;
  right: -80px;
  width: 360px;
  height: 360px;
  background: radial-gradient(circle, rgba(11,71,186,0.25) 0%, transparent 70%);
  pointer-events: none;
}

.cta-section__inner {
  text-align: center;
  position: relative;
  z-index: 1;
}

.cta-section__eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 16px;
  display: block;
}

.cta-section__title {
  font-size: clamp(1.8rem, 3vw, 3rem);
  font-weight: 900;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: -0.04em;
  margin-bottom: 16px;
  line-height: 1.05;
}

.cta-section__sub {
  font-size: 1.05rem;
  color: var(--grey-mid);
  margin-bottom: 36px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.65;
}

.cta-section__actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================================================
   FOOTER
   ============================================================ */

.footer {
  background: var(--dark-bg);
  padding: 72px 0 0;
  color: var(--grey-mid);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

.footer__brand img {
  height: 38px;
  width: auto;
  object-fit: contain;
  margin-bottom: 16px;
}

.footer__tagline {
  font-size: 0.875rem;
  color: var(--grey-mid);
  line-height: 1.65;
  max-width: 280px;
  margin-bottom: 20px;
}

.footer__social {
  display: flex;
  gap: 10px;
}

.footer__social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--r-sm);
  color: var(--grey-mid);
  font-size: 0.75rem;
  font-weight: 700;
  transition: background var(--ease), color var(--ease), border-color var(--ease);
}

.footer__social a:hover {
  background: var(--blue);
  border-color: var(--blue);
  color: var(--white);
}

.footer__col h4 {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 18px;
}

.footer__col ul {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.footer__col ul li a {
  font-size: 0.875rem;
  color: var(--grey-mid);
  font-weight: 400;
  transition: color var(--ease);
}

.footer__col ul li a:hover {
  color: var(--white);
}

.footer__contact-item {
  font-size: 0.875rem;
  color: var(--grey-mid);
  line-height: 1.7;
}

.footer__contact-item a {
  color: var(--grey-mid);
  font-weight: 400;
}

.footer__contact-item a:hover {
  color: var(--white);
}

.footer__bottom {
  padding: 18px 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.35);
}

.footer__bottom a {
  color: rgba(255,255,255,0.45);
  font-weight: 400;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer__bottom a:hover {
  color: var(--white);
}

.footer__made-in {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  color: rgba(255,255,255,0.45);
}

.footer__made-in img {
  display: inline-block;
  box-shadow: 0 0 4px rgba(0,0,0,0.4);
  vertical-align: middle;
  border-radius: 2px;
}

/* ============================================================
   CONTACT PAGE
   ============================================================ */

.contact-section {
  padding: var(--section-v) 0;
  background: var(--off-white);
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 64px;
  align-items: start;
}

.contact-info__title {
  font-size: 2rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.03em;
  color: var(--dark-bg);
  margin-bottom: 8px;
}

.contact-info__sub {
  color: var(--grey-dark);
  margin-bottom: 36px;
  font-size: 0.95rem;
}

.contact-detail {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 18px 0;
  border-bottom: 1px solid var(--grey-light);
}

.contact-detail:first-of-type {
  border-top: 1px solid var(--grey-light);
}

.contact-detail__icon {
  width: 38px;
  height: 38px;
  background: rgba(11,71,186,0.08);
  border: 1px solid rgba(11,71,186,0.15);
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.contact-detail__label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--grey-mid);
  margin-bottom: 3px;
}

.contact-detail__value {
  font-size: 0.925rem;
  color: var(--dark-bg);
  font-weight: 500;
}

.contact-detail__value a {
  color: var(--dark-bg);
  font-weight: 500;
}

.contact-detail__value a:hover {
  color: var(--blue);
}

.contact-map {
  margin-top: 28px;
  border-radius: var(--r-sm);
  overflow: hidden;
  border: 1px solid var(--grey-light);
}

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

/* Contact Form */
.contact-form-card {
  background: var(--white);
  border: 1px solid var(--grey-light);
  border-radius: var(--r-sm);
  padding: 48px 40px;
  box-shadow: var(--shadow-card);
}

.contact-form-card h2 {
  font-size: 1.5rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.03em;
  color: var(--dark-bg);
  margin-bottom: 6px;
}

.contact-form-card p {
  color: var(--grey-dark);
  font-size: 0.9rem;
  margin-bottom: 28px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--dark-bg);
  margin-bottom: 7px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--grey-light);
  border-radius: var(--r-sm);
  font-family: var(--font-main);
  font-size: 0.925rem;
  color: var(--dark-bg);
  background: var(--off-white);
  transition: border-color var(--ease), box-shadow var(--ease);
  -webkit-appearance: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(11,71,186,0.10);
  background: var(--white);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

/* ============================================================
   PAGE HERO (inner pages)
   ============================================================ */

.page-hero {
  background: var(--dark-bg);
  padding: 72px 0 64px;
  position: relative;
  overflow: hidden;
}

.page-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%230B47BA' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

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

.page-hero__eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 14px;
  display: block;
}

.page-hero__title {
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 900;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: -0.04em;
  line-height: 1.0;
  margin-bottom: 14px;
}

.page-hero__sub {
  font-size: 1rem;
  color: var(--grey-mid);
  max-width: 520px;
  line-height: 1.65;
}

/* ============================================================
   GALLERY PAGE
   ============================================================ */

.gallery-section {
  padding: var(--section-v) 0;
  background: var(--off-white);
}

.gallery-hero-video {
  position: relative;
  height: 55vh;
  min-height: 360px;
  overflow: hidden;
  background: var(--dark-bg);
  display: flex;
  align-items: center;
}

.gallery-hero-video video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.4;
}

.gallery-hero-video__overlay {
  position: absolute;
  inset: 0;
  background: rgba(15,25,35,0.6);
}

.gallery-hero-video__content {
  position: relative;
  z-index: 2;
  width: 100%;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;
  background: var(--grey-light);
  margin-top: 48px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--dark-bg);
  cursor: pointer;
}

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

.gallery-item:hover img,
.gallery-item:hover video {
  transform: scale(1.04);
}

.gallery-item__caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 16px 18px;
  background: linear-gradient(to top, rgba(15,25,35,0.9), transparent);
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(255,255,255,0.8);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.gallery-item:hover .gallery-item__caption {
  opacity: 1;
  transform: translateY(0);
}

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

.gallery-item--tall {
  grid-row: span 2;
}

/* Bento grid (legacy compat) */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;
  background: var(--grey-light);
  margin-top: 48px;
}

.bento-item {
  position: relative;
  overflow: hidden;
  background: var(--dark-bg);
  border-radius: 0;
  min-height: 280px;
  cursor: pointer;
  --spotlight-x: 50%;
  --spotlight-y: 50%;
  --spotlight-opacity: 0;
  transition: transform var(--ease);
}

.bento-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    300px circle at var(--spotlight-x) var(--spotlight-y),
    rgba(11,71,186,0.18),
    transparent 80%
  );
  opacity: var(--spotlight-opacity);
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 3;
}

.bento-item:hover {
  transform: translateY(-2px);
  z-index: 2;
  position: relative;
}

.bento-item.visible {
  opacity: 1;
  transform: translateY(0);
}

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

.bento-item:hover img {
  transform: scale(1.04);
}

.bento-wide   { grid-column: span 2; }
.bento-tall   { grid-row: span 2; }
.bento-2x2    { grid-column: span 2; grid-row: span 2; }

.bento-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px 22px;
  background: linear-gradient(to top, rgba(15,25,35,0.88), transparent);
  z-index: 2;
}

.bento-caption h3 {
  font-size: 0.95rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--white);
  line-height: 1.2;
}

.bento-caption p {
  font-size: 0.78rem;
  color: var(--grey-mid);
  margin-top: 3px;
}

/* ============================================================
   PROJECTS / FIRE EQUIPMENT
   ============================================================ */

.projects-section {
  padding: var(--section-v) 0;
  background: var(--off-white);
}

.filter-bar {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 44px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--grey-light);
}

.filter-btn {
  font-family: var(--font-main);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 8px 18px;
  background: var(--white);
  color: var(--grey-dark);
  border: 1.5px solid var(--grey-light);
  border-radius: var(--r-sm);
  cursor: pointer;
  transition: background var(--ease), color var(--ease), border-color var(--ease);
}

.filter-btn:hover {
  border-color: var(--blue);
  color: var(--blue);
}

.filter-btn.active {
  background: var(--blue);
  color: var(--white);
  border-color: var(--blue);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 3px;
  background: var(--grey-light);
}

.product-card {
  background: var(--white);
  padding: 24px;
  transition: transform var(--ease), box-shadow var(--ease);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.product-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
  z-index: 2;
  position: relative;
}

.product-card__img {
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--off-white);
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-card__img img {
  max-height: 160px;
  width: auto;
  object-fit: contain;
  transition: transform 0.4s ease;
  margin: auto;
}

.product-card:hover .product-card__img img {
  transform: scale(1.05);
}

.product-card__tag {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
}

.product-card__name {
  font-size: 0.925rem;
  font-weight: 700;
  color: var(--dark-bg);
  line-height: 1.3;
  text-transform: uppercase;
  letter-spacing: -0.01em;
}

.product-card__desc {
  font-size: 0.82rem;
  color: var(--grey-dark);
  line-height: 1.6;
  flex: 1;
}

/* Legacy .project-card alias */
.project-card {
  background: var(--white);
  border: 1px solid var(--grey-light);
  border-radius: var(--r-sm);
  overflow: hidden;
  transition: transform var(--ease), box-shadow var(--ease);
}

.project-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

/* ============================================================
   BLOG
   ============================================================ */

.blog-section {
  padding: var(--section-v) 0;
  background: var(--off-white);
}

.blog-grid-layout {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3px;
  background: var(--grey-light);
  margin-top: 48px;
}

.blog-card {
  background: var(--white);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--ease), box-shadow var(--ease);
}

.blog-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
  z-index: 2;
  position: relative;
}

.blog-card__img {
  aspect-ratio: 3/2;
  overflow: hidden;
  background: var(--dark-bg);
}

.blog-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  transition: transform 0.5s ease;
}

.blog-card:hover .blog-card__img img {
  transform: scale(1.04);
}

.blog-card__body {
  padding: 24px 22px 28px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.blog-card__tag {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 10px;
}

.blog-card__title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--dark-bg);
  text-transform: uppercase;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 10px;
}

.blog-card__title a {
  color: var(--dark-bg);
}

.blog-card__title a:hover {
  color: var(--blue);
}

.blog-card__excerpt {
  font-size: 0.87rem;
  color: var(--grey-dark);
  line-height: 1.65;
  flex: 1;
}

.blog-card__meta {
  margin-top: 18px;
  font-size: 0.78rem;
  color: var(--grey-mid);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.blog-card__read-more {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--blue);
}

.blog-card--featured {
  /* All cards equal size in 2×2 grid */
}

.blog-card--featured .blog-card__img {
  aspect-ratio: 3/2;
}

.blog-card--featured .blog-card__title {
  font-size: 1.05rem;
}

/* ============================================================
   BLOG ARTICLE PAGE
   ============================================================ */

.blog-article-hero {
  width: 100%;
  max-height: 480px;
  overflow: hidden;
  border-radius: var(--r-sm);
  margin-bottom: 52px;
}

.blog-article-hero img {
  width: 100%;
  height: 480px;
  object-fit: cover;
}

.blog-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 64px;
  align-items: start;
}

.blog-sidebar {
  position: sticky;
  top: 90px;
}

.blog-author-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--grey-light);
  overflow: hidden;
  background-image: url('../images/Jose_sousa.PNG');
  background-size: cover;
  background-position: center;
  flex-shrink: 0;
}

.blog-content h1 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 900;
  color: var(--dark-bg);
  letter-spacing: -0.04em;
  text-transform: uppercase;
  line-height: 1.05;
  margin-bottom: 36px;
}

.blog-content h2 {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--dark-bg);
  text-transform: uppercase;
  letter-spacing: -0.02em;
  margin: 36px 0 12px;
}

.blog-content p {
  font-size: 1.02rem;
  color: var(--grey-dark);
  line-height: 1.78;
  margin-bottom: 20px;
}

.blog-content ul {
  list-style: disc;
  padding-left: 22px;
  margin-bottom: 24px;
  color: var(--grey-dark);
  font-size: 0.95rem;
  line-height: 1.7;
}

.blog-content li {
  margin-bottom: 6px;
}

.blog-cta-box {
  background: var(--off-white);
  border: 1px solid var(--grey-light);
  border-left: 4px solid var(--blue);
  padding: 36px 36px;
  border-radius: var(--r-sm);
  margin-top: 52px;
}

.blog-cta-box h3 {
  font-size: 1.3rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.03em;
  color: var(--dark-bg);
  margin-bottom: 8px;
}

.blog-cta-box p {
  font-size: 0.925rem;
  color: var(--grey-dark);
  margin-bottom: 18px;
}

.drop-cap {
  display: none;
}

/* ============================================================
   FONT AWESOME — loaded via HTML link, these are icon helpers
   ============================================================ */
.fa-icon-wrapper {
  width: 44px; height: 44px;
  background: rgba(11,71,186,0.08);
  border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  color: var(--blue);
  flex-shrink: 0;
}

/* ============================================================
   TOAST NOTIFICATION
   ============================================================ */
.toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%) translateY(16px);
  background: var(--dark-bg);
  color: var(--white);
  padding: 12px 24px;
  border-radius: var(--r-sm);
  font-size: 0.875rem;
  font-weight: 600;
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
  white-space: nowrap;
  box-shadow: 0 8px 32px rgba(0,0,0,0.28);
  display: flex;
  align-items: center;
  gap: 10px;
}
.toast::before {
  content: '\f00c';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  color: #4ade80;
  font-size: 0.9rem;
}
.toast--show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ============================================================
   FOOTER LOGO ON DARK BG
   — JPG logo has white background, so we wrap it in a white pill
     instead of using filter (which would make everything white)
   ============================================================ */
.footer__brand img {
  background: rgba(255,255,255,0.95);
  padding: 5px 10px;
  border-radius: 4px;
  display: block;
}

/* ============================================================
   SOCIAL ICONS (Font Awesome)
   ============================================================ */
.footer__social {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}
.footer__social a {
  width: 36px; height: 36px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center;
  color: var(--grey-mid) !important;
  font-size: 0.9rem;
  transition: background var(--ease), color var(--ease), border-color var(--ease);
}
.footer__social a:hover {
  background: var(--blue);
  color: var(--white) !important;
  border-color: var(--blue);
  opacity: 1;
}

/* Livro de Reclamacoes */
.livro-reclamacoes {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.livro-reclamacoes img {
  height: 36px;
  width: auto;
  filter: none !important;
  opacity: 1;
}
.livro-reclamacoes span {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.35);
  line-height: 1.4;
  max-width: 120px;
}

/* Phone legal */
.phone-legal {
  font-size: 0.68rem;
  color: rgba(255,255,255,0.25);
  display: block;
  margin-top: 3px;
}

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testimonials-section {
  background: var(--off-white);
  padding: var(--section-v) 0;
}
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 48px;
}
.testimonial-card {
  background: var(--white);
  border: 1px solid var(--grey-light);
  border-radius: var(--r-sm);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.testimonial-card__stars {
  color: #F59E0B;
  font-size: 0.85rem;
  letter-spacing: 2px;
}
.testimonial-card__quote {
  font-size: 0.975rem;
  color: var(--grey-dark);
  line-height: 1.7;
  font-style: italic;
  flex: 1;
}
.testimonial-card__quote::before { content: '\201C'; }
.testimonial-card__quote::after  { content: '\201D'; }
.testimonial-card__author {
  display: flex;
  align-items: center;
  gap: 14px;
  border-top: 1px solid var(--grey-light);
  padding-top: 18px;
}
.testimonial-card__avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--blue);
  display: flex; align-items: center; justify-content: center;
  color: var(--white);
  font-weight: 800;
  font-size: 1rem;
  flex-shrink: 0;
}
.testimonial-card__name {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--dark-bg);
}
.testimonial-card__company {
  font-size: 0.78rem;
  color: var(--grey-mid);
  margin-top: 2px;
}

/* ============================================================
   CLIENT LOGOS CAROUSEL
   ============================================================ */
.logos-section {
  padding: 56px 0;
  background: var(--white);
  border-top: 1px solid var(--grey-light);
  border-bottom: 1px solid var(--grey-light);
  overflow: hidden;
}
.logos-section__label {
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--grey-mid);
  margin-bottom: 32px;
}
.logos-track-wrap {
  overflow: hidden;
  position: relative;
}
.logos-track-wrap::before,
.logos-track-wrap::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 80px;
  z-index: 2;
}
.logos-track-wrap::before { left: 0; background: linear-gradient(to right, var(--white), transparent); }
.logos-track-wrap::after  { right: 0; background: linear-gradient(to left, var(--white), transparent); }
.logos-track {
  display: flex;
  gap: 48px;
  align-items: center;
  animation: logos-scroll 28s linear infinite;
  width: max-content;
}
.logos-track:hover { animation-play-state: paused; }
@keyframes logos-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.logo-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 140px;
  height: 60px;
  opacity: 0.45;
  transition: opacity var(--ease);
  filter: grayscale(100%);
}
.logo-item:hover { opacity: 1; filter: none; }
.logo-item__name {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--grey-dark);
  text-align: center;
}
.logo-item__icon {
  font-size: 1.6rem;
  margin-bottom: 6px;
  color: var(--grey-dark);
}

/* ============================================================
   PROCESS STEP ICON (replace emoji)
   ============================================================ */
.process-step__icon {
  font-size: 1.4rem;
  color: var(--blue);
  margin-bottom: 16px;
}
.info-card__icon {
  width: 44px; height: 44px;
  background: rgba(11,71,186,0.08);
  border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center;
  color: var(--blue);
  font-size: 1.1rem;
  margin-bottom: 20px;
}

/* ============================================================
   CONTACT DETAIL ICON (Font Awesome)
   ============================================================ */
.contact-detail__icon {
  width: 40px; height: 40px;
  background: rgba(11,71,186,0.08);
  border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center;
  color: var(--blue);
  font-size: 1rem;
  flex-shrink: 0;
}

/* ============================================================
   GALLERY — Real images grid
   ============================================================ */
.gallery-real-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 4px;
  margin-top: 40px;
}
.gallery-real-item {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/3;
  background: #fff;
}
.gallery-real-item img {
  width: 100%; height: 100%;
  object-fit: contain;
  display: block;
  transition: transform 0.5s ease;
}
.gallery-real-item video {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}
.gallery-real-item:hover img,
.gallery-real-item:hover video { transform: scale(1.04); }
.gallery-real-caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(to top, rgba(15,25,35,0.85), transparent);
  color: var(--white);
  padding: 20px 16px 14px;
  font-size: 0.82rem;
  font-weight: 600;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.gallery-real-item:hover .gallery-real-caption { opacity: 1; }

/* ============================================================
   CNC PORTO PAGE
   ============================================================ */
.services-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 48px;
}
.service-detail-card {
  background: var(--white);
  border: 1px solid var(--grey-light);
  border-radius: var(--r-sm);
  padding: 36px;
  transition: transform var(--ease), box-shadow var(--ease);
}
.service-detail-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}
.service-detail-card__icon {
  font-size: 2rem;
  color: var(--blue);
  margin-bottom: 16px;
}
.service-detail-card__title {
  font-size: 1.25rem;
  margin-bottom: 12px;
}
.service-detail-card__desc {
  font-size: 0.9rem;
  color: var(--grey-dark);
  line-height: 1.7;
  margin-bottom: 16px;
}
.service-detail-card__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.service-detail-card__list li {
  font-size: 0.85rem;
  color: var(--grey-dark);
  display: flex;
  align-items: center;
  gap: 8px;
}
.service-detail-card__list li::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--blue);
  border-radius: 50%;
  flex-shrink: 0;
}

/* Privacy Policy */
.policy-content {
  max-width: 820px;
  margin: 0 auto;
  padding: 64px 0 80px;
}
.policy-content h2 {
  font-size: 1.4rem;
  margin: 40px 0 12px;
  color: var(--dark-bg);
}
.policy-content p, .policy-content li {
  font-size: 0.95rem;
  color: var(--grey-dark);
  line-height: 1.75;
  margin-bottom: 0.8em;
}
.policy-content ul { padding-left: 1.4em; }
.policy-content li { list-style: disc; }

/* Responsive additions */
@media (max-width: 768px) {
  .testimonials-grid { grid-template-columns: 1fr; }
  .services-detail-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   MONO LABEL (legacy compat)
   ============================================================ */

.mono-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--grey-mid);
}

.mono-label.accent {
  color: var(--blue);
}

.space-font {
  font-family: var(--font-main);
  letter-spacing: -0.04em;
}

/* ============================================================
   SCROLL ANIMATIONS
   ============================================================ */

.bento-item,
.project-card,
.blog-article-hero,
.service-card,
.info-card,
.product-card,
.blog-card {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.bento-item.visible,
.project-card.visible,
.blog-article-hero.visible,
.service-card.visible,
.info-card.visible,
.product-card.visible,
.blog-card.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   RESPONSIVE — Tablet
   ============================================================ */

@media (max-width: 1024px) {
  :root {
    --section-v: 72px;
  }

  .container {
    padding: 0 28px;
  }

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

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

  .service-card:nth-child(3) {
    grid-column: span 2;
    aspect-ratio: 16/7;
  }

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

  .cad-layout {
    grid-template-columns: 1fr;
    gap: 44px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .contact-layout {
    grid-template-columns: 1fr;
    gap: 44px;
  }

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

  .process-row {
    grid-template-columns: 1fr;
    gap: 1px;
  }

  .blog-grid {
    grid-template-columns: 220px 1fr;
    gap: 44px;
  }

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

  .blog-card--featured {
    grid-column: span 2;
  }
}

/* ============================================================
   RESPONSIVE — Mobile
   ============================================================ */

@media (max-width: 768px) {
  :root {
    --section-v: 56px;
  }

  .container {
    padding: 0 18px;
  }

  /* Topbar */
  .topbar__contact span.topbar__hours {
    display: none;
  }

  /* Nav rules moved to the dedicated @media (max-width:1024px) block at the
     end of this file, so the hamburger menu kicks in before the desktop nav
     overflows (landscape phones / reduced windows ~769–1024px). */

  /* Hero */
  .hero-video {
    height: 100svh;
    min-height: 520px;
  }

  .hero-video__content {
    padding-bottom: 60px;
  }

  .hero-video__actions {
    flex-direction: column;
  }

  .hero-video__actions .btn {
    width: 100%;
    justify-content: center;
  }

  /* Stats */
  .stats-bar__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Services */
  .service-grid {
    grid-template-columns: 1fr;
    gap: 3px;
  }

  .service-card {
    aspect-ratio: 4/3;
  }

  .service-card:nth-child(3) {
    grid-column: span 1;
    aspect-ratio: 4/3;
  }

  /* Sections */
  .section-title {
    font-size: 1.6rem;
  }

  /* Info */
  .info-grid {
    grid-template-columns: 1fr;
  }

  /* Process */
  .process-row {
    grid-template-columns: 1fr;
  }

  /* CAD */
  .cad-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
    padding-bottom: 40px;
  }

  .footer__bottom {
    flex-direction: column;
    text-align: center;
    gap: 8px;
  }

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

  /* Blog */
  .blog-grid {
    grid-template-columns: 1fr;
  }

  .blog-sidebar {
    position: static;
  }

  .blog-grid-layout {
    grid-template-columns: 1fr;
  }

  .blog-card--featured {
    grid-column: span 1;
  }

  /* Gallery */
  .gallery-grid,
  .bento-grid {
    grid-template-columns: 1fr;
  }

  .bento-wide,
  .bento-2x2,
  .gallery-item--wide {
    grid-column: span 1;
  }

  .bento-tall,
  .gallery-item--tall {
    grid-row: span 1;
  }

  /* Contact */
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .contact-form-card {
    padding: 28px 20px;
  }

  /* Blog article */
  .blog-article-hero img {
    height: 240px;
  }

  .blog-article-hero {
    margin-bottom: 32px;
  }
}

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

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

  .topbar__contact {
    gap: 10px;
  }
}

/* ===== Navigation: switch to hamburger overlay before the desktop nav
   overflows (covers landscape phones & reduced desktop windows) ===== */
@media (max-width: 1024px) {
  .hamburger { display: flex; }

  /* Dedicated close button, lives INSIDE the menu overlay (always on top) */
  .nav-close {
    display: block;
    position: absolute;
    top: 14px;
    right: 16px;
    background: none;
    border: none;
    font-size: 2.6rem;
    line-height: 1;
    color: var(--dark-bg);
    cursor: pointer;
    padding: 0 10px;
    z-index: 1;
  }
  .nav-close:hover { color: var(--blue); }

  .nav-links {
    display: none;
    position: fixed;
    inset: 0;
    background: var(--white);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    z-index: 300;
    padding: 40px 20px;
    overflow-y: auto;
  }
  .nav-links.active { display: flex; }
  .nav-links a {
    font-size: 1.3rem;
    font-weight: 800;
    text-transform: uppercase;
    padding: 12px 24px;
    width: 100%;
    text-align: center;
  }
  .nav-links .btn { margin-top: 12px; width: 80%; }
}

/* ===== Safety net: never allow horizontal overflow / white gap on the right.
   `clip` (not hidden) does NOT create a scroll container, so the sticky
   header keeps working. ===== */
html, body { overflow-x: clip; max-width: 100%; }
