/* General Styles */
body {
  margin: 0;
  font-family: 'Montserrat', sans-serif;
  background-color: var(--color-bg-base);
  color: #3A4A59;
}

:root {
  --header-height: 150px;
  /* Warm neutral palette */
  --color-bg-base: #F6F3EE; /* page background */
  --color-bg-alt: #ffffff; /* subtle alternate */
  --color-surface: #FEFEFD; /* elevated surface (nearly white) */
  --color-surface-accent: #FBF9F5; /* light accent panel */
  --color-border: #D8D2C9; /* warm border */
  --color-border-strong: #C8C0B4; /* stronger divider */
  --color-shadow-rgb: 0 0 0; /* for shadows */
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 20px);
}

/* Header */
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: transparent;
  padding: 10px 50px; 
  border-bottom: 1px solid transparent; /* border appears only when scrolled */
  position: sticky;
  top: 0;
  z-index: 1000; /* keep header above content */
  transition: background-color .25s ease, box-shadow .25s ease, border-color .25s ease;
}

header .logo img {
  height: 120px;
  cursor: pointer;
}
/* Two logo variants for header states */
header .logo .logo--white { display: none; }
header.header--top .logo .logo--default { display: none; }
header.header--top .logo .logo--white { display: inline-block; }
/* Ensure default logo visible when scrolled */
header.header--scrolled .logo .logo--default { display: inline-block; }
header.header--scrolled .logo .logo--white { display: none; }

nav ul {
  list-style: none;
  display: flex;
  gap: 50px;
  margin: 0;
  padding: 0;
}

nav ul li a {
  text-decoration: none;
  color: #3A4A59;
  font-weight: 700;
  transition: color 0.3s;
}



/* Language switch styling */
nav ul li.lang-switch a,
.lang-switch-footer a {
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 8px;
  border: 1px solid rgba(255,255,255,0.55);
  border-radius: 4px;
  line-height: 1;
  display: inline-block;
  background: rgba(255,255,255,0.08);
  transition: background .25s ease, color .25s ease, border-color .25s ease;
}
header.header--scrolled nav ul li.lang-switch a { border-color: rgba(58,74,89,0.45); background: rgba(58,74,89,0.05); color:#3A4A59; }
nav ul li.lang-switch a:hover,
.lang-switch-footer a:hover { background: rgba(255,255,255,0.18); }
header.header--scrolled nav ul li.lang-switch a:hover { background: rgba(58,74,89,0.12); }



/* Non-clickable top-level Products & Solutions link */
.nav-link-products[aria-disabled="true"] { cursor: pointer; }
.nav-has-dropdown:hover > .nav-link-products { color: #ffffff; }
/* Keep parent label color consistent by header state */
header.header--top .nav-has-dropdown:hover > .nav-link-products,
header.header--top .nav-has-dropdown:focus-within > .nav-link-products { color: #ffffff; }
header.header--scrolled .nav-has-dropdown:hover > .nav-link-products,
header.header--scrolled .nav-has-dropdown:focus-within > .nav-link-products { color: #3A4A59; }

/* Dropdown under Products & Solutions */
nav ul li.nav-has-dropdown { position: relative; }
nav ul li.nav-has-dropdown .nav-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: var(--color-surface);
  border: 1px solid var(--color-border-strong);
  border-radius: 10px;
  box-shadow: 0 10px 28px -10px rgba(var(--color-shadow-rgb)/0.28), 0 4px 10px rgba(var(--color-shadow-rgb)/0.10);
  padding: 8px;
  /* Animated hidden state */
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity .18s ease, transform .22s ease, visibility 0s linear .18s;
  z-index: 1001;
}
nav ul li.nav-has-dropdown .nav-dropdown a {
  display: block;
  padding: 10px 12px;
  color: #2f4756;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
}
nav ul li.nav-has-dropdown .nav-dropdown a:hover,
nav ul li.nav-has-dropdown .nav-dropdown a:focus {
  background: var(--color-surface-accent);
}
/* Show dropdown on hover/focus */
nav ul li.nav-has-dropdown:hover .nav-dropdown,
nav ul li.nav-has-dropdown:focus-within .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
  /* make visibility flip immediately on show */
  transition: opacity .18s ease, transform .22s ease, visibility 0s linear 0s;
}

/* Desktop: nudge language dropdown a bit to the left so it aligns nicely near the right edge */
@media (min-width: 901px){
  /* Nudge and slim language dropdown on desktop */
  nav ul li.nav-lang .nav-dropdown {
    left: -45px;
    width: max-content;      /* fit to content */
    min-width: 100px;        /* but not too narrow */
    padding: 6px;            /* tighter padding than default */
  }
  nav ul li.nav-lang .nav-dropdown a {
    padding: 8px 10px;       /* reduce inner padding per item */
  }
}

/* Mobile/off-canvas: open dropdowns via .open class or focus */
@media (max-width: 900px) {
  nav ul li.nav-has-dropdown .nav-dropdown {
    position: static;
    border: 0;
    border-radius: 8px;
    box-shadow: none;
    transform: none;
    margin-top: 6px;
    padding: 6px 0;
  }
  nav ul li.nav-has-dropdown .nav-dropdown { opacity: 0; visibility: hidden; pointer-events: none; }
  nav ul li.nav-has-dropdown.open .nav-dropdown,
  nav ul li.nav-has-dropdown:focus-within .nav-dropdown {
    opacity: 1; visibility: visible; pointer-events: auto;
  }
}

/* Respect reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
  nav ul li.nav-has-dropdown .nav-dropdown { transition: none; transform: none; }
  nav ul li.nav-has-dropdown:hover .nav-dropdown,
  nav ul li.nav-has-dropdown:focus-within .nav-dropdown { transition: none; }
}

/* Nav link colors by header state */
header.header--top nav a { color: #ffffff; }
header.header--scrolled nav a { color: #3A4A59; }

/* Explicit transparent state over hero */
header.header--top {
  background: transparent;
  border-bottom-color: transparent;
  box-shadow: none;
}

/* Dynamic header states */
header.header--scrolled {
  background: var(--color-surface); /* warm surface when scrolled */
  border-bottom-color: var(--color-border-strong);
  box-shadow: 0 4px 12px rgba(var(--color-shadow-rgb)/0.08);
}

/* Main page background video */
#mainpage { position: relative; min-height: calc(100vh - var(--header-height)); }
#mainpage .hero-bg {
  position:absolute; left:0; right:0;
  top: calc(-1 * var(--header-height));
  bottom: 0;
  overflow:hidden; z-index:-1; background:#000;
}
#mainpage .hero-bg__video { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; object-position:top center; }
#mainpage .hero-bg__overlay { position:absolute; inset:0; background:rgba(0,0,0,0.6); }
#mainpage .hero-bg:after {
  /* Bottom fade / shadow transition from video into the page background */
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 50px; /* adjust height to make fade longer/shorter */
  pointer-events: none;
  z-index: 1; /* above dark overlay, below hero content */
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0) 0%,
    rgba(0,0,0,0.55) 55%,
    var(--color-bg-base) 100%
  );
  /* subtle texture / softness */
  mix-blend-mode: normal;
}
#mainpage .hero, #mainpage .highlights { position:relative; }
#mainpage .hero h1, #mainpage .hero-sub { color:#ffffff; text-shadow:0 2px 6px rgba(0,0,0,0.3); }

/* Scroll cue (single chevron) */
#mainpage .scroll-cue-btn {
  position: absolute;
  left: 50%;
  bottom: 150px; /* a bit above the fold */
  transform: translateX(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.7);
  background: rgba(255,255,255,0.08);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .25s ease, border-color .25s ease, opacity .25s ease, transform .25s ease;
  box-shadow: 0 6px 24px rgba(0,0,0,0.22), inset 0 0 0 1px rgba(255,255,255,0.05);
  z-index: 2;
  opacity: 0.92;
  animation: scrollCueBreathe 1.6s ease-in-out infinite;
}
#mainpage .scroll-cue-btn:hover { background: rgba(255,255,255,0.16); border-color: rgba(255,255,255,0.85); }
#mainpage .scroll-cue-btn:active { transform: translateX(-50%) translateY(1px); }
#mainpage .scroll-cue-btn svg { display:block; }

@keyframes scrollCueBreathe {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(4px); }
}

/* Reduced motion: disable animation */
@media (prefers-reduced-motion: reduce) {
  #mainpage .scroll-cue-btn { animation: none; }
}

/* Hide scroll cue when not on the main hero (toggled via JS) */
.scroll-cue--hidden { opacity: 0; pointer-events: none; }

/* Capabilities & Products section that continues after hero */
.capabilities-section { background: var(--color-bg-base); margin: 0; padding: 120px 0 60px; }
.capabilities-wrap { max-width: 1100px; margin: 0 auto; padding: 0 10px; }
.capabilities-heading { margin: 0 0 10px; font-size: 1.8rem; letter-spacing: .5px; color: #2f4756; }
.capabilities-intro { margin: 0 0 26px; font-size: 1.05rem; line-height: 1.6; color: #465862; }
.capabilities-section .highlights { margin-top: 8px; gap: 34px; grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* Certifications & Standards */
.certs-section { background: var(--color-bg-base); padding: 10px 0 50px; }
.certs-wrap { max-width: 1100px; margin: 0 auto; padding: 0 10px; }
/* Reintroduced heading */
.certs-heading { margin: 0 0 14px; font-size: 1.7rem; letter-spacing: .4px; color: #2f4756; }
/* Certifications image container */
.certs-logos {
  background: transparent;
  padding: clamp(12px, 3vw, 22px);
  display: grid;
  place-items: start; /* align to left/top to match partners alignment */
  max-width: 1200px;
  margin: 6px 0 0; /* left align inside wrap (no centering) */
}
.certs-logos img {
  width: min(100%, 1000px);
  height: auto;
  display: block;
  filter: none;
}
@media (max-width: 820px){
  .certs-logos { padding: 12px 14px; }
  .certs-logos img { width: 100%; }
}

/* Partners (We Work With) */
.partners-section { background: var(--color-bg-base); padding: 24px 0 56px; }
.partners-wrap { max-width: 1100px; margin: 0 auto; padding: 0 10px; }
.partners-heading { margin: 0 0 18px;  font-size: 1.6rem; letter-spacing: .4px; color: #2f4756; }
.partners-logos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  align-items: center;
  justify-items: center;
  gap: 15px;
}
.partners-logos img {
  width: clamp(90px, 12vw, 140px); /* small, consistent sizing */
  height: auto;
  object-fit: contain;
  filter: none;
}

/* Partners logos sizing */
.partners-logos img.partner-logo--st { width: calc(clamp(90px, 12vw, 140px) * 1.2); }
.partners-logos img.partner-logo--ke { width: calc(clamp(90px, 12vw, 140px) * 0.8); }
@media (max-width: 980px){ .partners-logos { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 720px){ .partners-logos { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 520px){ .partners-logos { grid-template-columns: repeat(2, 1fr); } }
.partners-logos img.partner-logo--kpe { width: calc(clamp(90px, 12vw, 140px) * 1.1); }
.partners-logos img.partner-logo--agromash,
.partners-logos img.partner-logo--barystruck { width: calc(clamp(90px, 12vw, 140px) * 1.15); }

/* Tab visibility + consistent inner horizontal spacing */
.tab-content { display:none; padding:0 40px 30px; box-sizing:border-box; }
.tab-content.active { display:block; }
@media (max-width: 800px){ .tab-content { padding:0 28px 44px; } }
@media (max-width: 540px){ .tab-content { padding:0 18px 40px; } }
.capability-media-grid figcaption {
  padding: 10px 14px 14px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: #2f4756;
}
/* Products & Solutions image grid */
.products-header { max-width:1100px; margin:0 auto 46px; padding: 50px 10px; }
.products-header h1 { margin:0 0 10px; font-size:2.2rem; letter-spacing:.6px; color:#2f4756; }
.products-header .products-intro { margin:0; font-size:1.20rem; line-height:1.55; max-width:880px; color:#4a5a67; }
@media (max-width:780px){
  .products-header { margin-bottom:40px; }
  .products-header h1 { font-size:1.85rem; }
  .products-header .products-intro { font-size:0.9rem; }
}
.tab-content#products .capability { padding:0 14px; }
@media (min-width: 900px){ .tab-content#products .capability { padding:0 10px; } }
@media (min-width: 1100px){ .tab-content#products .capability { padding:0; } }
.capability { max-width: 1100px; margin: 0 auto 70px; }
.capability h2 { margin: 0 0 16px; font-size: 1.6rem; letter-spacing: .5px; color: #2f4756; }
.capability p { padding-left: 8px; max-width: 900px; line-height: 1.55; font-size: 1.00rem; margin: 0 0 24px; }
.capability-media-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(260px,1fr)); gap: 30px; margin: 0 0 10px; }
.capability-media-grid figure { margin:0; background:var(--color-surface); border:1px solid var(--color-border); border-radius:14px; overflow:hidden; box-shadow:0 3px 6px rgba(var(--color-shadow-rgb)/0.05); display:flex; flex-direction:column; }
.capability-media-grid img { width:100%; height:300px; object-fit:cover; display:block; background:#ececec; }
.capability-media-grid figcaption { text-align:center; padding:12px 14px 16px; font-size:0.88rem; font-weight:600; letter-spacing:.5px; background:var(--color-bg-alt); border-top:1px solid var(--color-border); }

/* Make capability images indicate zoomability */
.capability-media-grid img { cursor: zoom-in; }

/* Auxiliary (EN) – IVS grid: force 2 columns on desktop for a clean 2x2 layout */
@media (min-width: 900px) {
  #ivs .capability-media-grid { grid-template-columns: repeat(2, minmax(260px, 1fr)); }
}

/* Auxiliary (EN) – IVS card text styling (match main products style) */
#ivs .ivs-desc { margin: 8px 0 10px; font-size: 0.98rem; color:#4a5a67; text-align:center; line-height:1.42; }
#ivs .ivs-points { list-style:none; padding:0 14px 14px; margin:0; font-size:0.8rem; line-height:1.38; color:#3c4d59; text-align:left; }
#ivs .ivs-points li { position:relative; padding-left:14px; margin:4px 0; }
#ivs .ivs-points li::before { content:"•"; position:absolute; left:0; top:0; color:#6c7b86; font-weight:600; }
@media (max-width:780px){ #ivs .ivs-points { font-size:0.74rem; } #ivs .ivs-desc { font-size:0.9rem; } }


#p-systems .ivs-desc { margin: 8px 0 10px; font-size: 0.98rem; color:#4a5a67; text-align:center; line-height:1.42; }
#p-systems .ivs-points { list-style:none; padding:0; margin:0; font-size:0.8rem; line-height:1.38; color:#3c4d59; text-align:left; }
#p-systems .ivs-points li { position:relative; padding-left:14px; margin:4px 0; }
#p-systems .ivs-points li::before { content:"•"; position:absolute; left:0; top:0; color:#6c7b86; font-weight:600; }
@media (max-width:780px){ #p-systems .ivs-points { font-size:0.74rem; } #p-systems .ivs-desc { font-size:0.9rem; } }

@media (max-width: 900px) {
  .capability-media-grid img { height:260px; }
}
@media (max-width: 620px) {
  .capability-media-grid { gap:22px; }
  .capability-media-grid img { height:210px; }
  .capability h2 { font-size:1.3rem; }
}
@media (max-width: 780px) {
  .capability-media-grid img { height: 240px; }
}
@media (max-width: 780px) {
  .capability h2 { font-size: 1.3rem; }
  .capability-media.placeholder { height: 180px; }
}

/* Image Zoom Overlay */
body.zoom-open { overflow: hidden; }
.zoom-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.78);
  display: grid;
  place-items: center;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: opacity .22s ease, visibility 0s linear .22s;
}
.zoom-overlay.open {
  opacity: 1;
  visibility: visible;
  transition: opacity .22s ease;
}
.zoom-overlay__img {
  max-width: 92vw;
  max-height: 92vh;
  width: auto;
  height: auto;
  object-fit: contain;
  box-shadow: 0 18px 48px rgba(0,0,0,0.40), 0 8px 18px rgba(0,0,0,0.25);
  border-radius: 10px;
  background: #000;
  cursor: zoom-out;
}
@media (prefers-reduced-motion: reduce) {
  .zoom-overlay { transition: none; }
}

/* Hero Section */
.hero {
  max-width: none;
  margin: 0px auto 0;
  padding: clamp(24px, 10vh, 140px) 260px 0;
  min-height: calc(100vh - var(--header-height));
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}
.hero h1 {
  font-size: 2.4rem;
  line-height: 1.15;
  margin: 0 0 20px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: #2d3b47;
}
.hero-sub {
  font-size: 1.3rem;
  line-height: 1.5;
  max-width: 1020px;
  margin: 0;
  color: #4a5a67;
  font-weight: 500;
}

/* Highlights Grid */
.highlights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* generic grid for other contexts */
  gap: 32px; /* a bit more spacing */
  max-width: 1200px; /* allow wider total width */
  margin: 0 auto 48px;
}
.highlight-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 14px;
  padding: 20px 20px 24px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: 0 4px 10px rgba(var(--color-shadow-rgb)/0.06);
  transition: transform .22s ease, box-shadow .25s ease, border-color .2s ease;
}
.highlight-card img {
  width: 100%;
  height: clamp(160px, 22vw, 220px);
  object-fit: cover;
  border-radius: 10px;
  background: #ececec;
  border: 1px solid #e2e2e2;
  transition: transform .3s ease;
}
.highlight-card .highlight-media { position:relative; }
.highlight-card .highlight-media img { display:block; }
.highlight-card .highlight-cta { position:absolute; inset:0; display:flex; align-items:center; justify-content:center; opacity:0; background:rgba(0,0,0,0.45); color:#ffffff; font-weight:600; letter-spacing:.5px; text-transform:uppercase; font-size:0.8rem; border:0; cursor:pointer; transition:opacity .25s ease; border-radius:10px; }
.highlight-card .highlight-cta:focus-visible { outline:2px solid #ffffff; outline-offset:2px; }
.highlight-card:hover .highlight-cta,
.highlight-card:focus-within .highlight-cta { opacity:1; }
.highlight-card:before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(230,227,221,0.35), rgba(230,227,221,0));
  opacity: 0;
  transition: opacity .25s ease;
  pointer-events: none;
}
.highlight-card h2 {
  font-size: 1.30rem;
  margin: 0;
  color: #3A4A59;
  letter-spacing: 0.3px;
}
.highlight-card p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.5;
  color: #3A4A59;
}
.highlight-card:hover:before { opacity: 1; }
.highlight-card:hover { transform: translateY(-4px); box-shadow: 0 10px 22px rgba(var(--color-shadow-rgb)/0.10); border-color: var(--color-border-strong); }


@media (max-width: 780px) {
  .hero h1 { font-size: 2rem; }
  .hero-sub { font-size: 1.05rem; }
  .capabilities-section .highlights { gap: 24px; grid-template-columns: 1fr; } /* single column on small screens */
  .highlight-card { padding: 18px 18px 22px; }
  .highlight-card img { height: 170px; }
  .hero { padding-top: clamp(16px, 8vh, 80px); }
}

/* Footer Styles */
footer {
  background-color: var(--color-surface);
  color: #3A4A59;
  padding: 30px 40px 10px 40px;
  border-top: 1px solid var(--color-border-strong);
  box-shadow: 0px -4px 12px rgba(var(--color-shadow-rgb)/0.08);
  font-size: 1rem;
  margin-top: 0px;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
}

.company-info {
  flex: 1;
  min-width: 220px;
}

.social-media {
  flex: 1;
  min-width: 180px;
  text-align: right;
}

.social-icon {
  display: inline-block;
  background: #243596;
  color: #ffffff;
  width: 32px;
  height: 32px;
  line-height: 32px;
  border-radius: 50%;
  text-align: center;
  margin-left: 8px;
  font-weight: bold;
  text-decoration: none;
  transition: background 0.3s, color 0.3s;
}
.social-icon:hover {
  background: #243596;
  color: #fff;
}

.footer-bottom {
  text-align: center;
  margin-top: 18px;
  font-size: 0.95rem;
  color: #888;
}

/* Minimal About styles */
#about .about-wrap { max-width: 1100px; margin: 0 auto; padding: 50px 10px; }
#about h1 { margin: 0 0 22px; font-size: 2.2rem; letter-spacing: .4px; color: #2f4756; }
#about .about-section { margin: 0 0 26px; }
#about .about-section h2 { margin: 0 0 10px; font-size: 1.25rem; color: #2f4756; }
#about .about-section p { margin: 0 0 10px; font-size: 1.20rem; line-height: 1.6; color: #465862; }
#about .about-list { margin: 0; padding-left: 18px; display: grid; gap: 8px; }
#about .about-values .about-values-line { margin: 0; font-weight: 600; letter-spacing: .4px; color: #2f4756; }
@media (max-width: 780px){
  #about h1 { font-size: 1.8rem; }
  #about .about-section h2 { font-size: 1.15rem; }
}

/* Contact alignment */
#contact .contact-wrap { max-width: 1100px; margin: 0 auto; padding: 50px 10px; }
#contact h1 { margin: 0 0 18px; font-size: 2.2rem; letter-spacing: .4px; color: #2f4756; }
/* Map embed */
#contact .map-embed { position: relative; width: 100%; height: 420px; background:#f2f2f2; border:1px solid #ddd; border-radius: 8px; overflow: hidden; }
#contact .map-embed iframe { position:absolute; inset:0; width:100%; height:100%; border:0; }
@media (max-width: 600px){ #contact .map-embed { height: 320px; } }

/* Contact cards */
#contact .contact-subhead { margin:40px 0 18px; font-size:1.35rem; letter-spacing:.3px; color:#2f4756; }

#contact .contact-card { background:var(--color-surface); border:1px solid var(--color-border); border-radius:14px; padding:18px 20px 20px; box-shadow:0 3px 6px rgba(var(--color-shadow-rgb)/0.05); display:flex; flex-direction:column; gap:6px; }
#contact .contact-card h3 { margin:0; font-size:1.15rem; letter-spacing:.5px; color:#2f4756; }
#contact .contact-card .person-name { margin:0; font-weight:600; font-size:1.1rem; color:#3A4A59; }
#contact .contact-card p { margin:0; font-size:1rem; line-height:1.5; }
#contact .contact-card a { color:#2f4756; text-decoration:none; word-break:break-all; }
#contact .contact-card a:hover { text-decoration:underline; }

#contact .contact-duo { display:grid; gap:34px; grid-template-columns:repeat(auto-fit,minmax(300px,1fr)); margin:0 0 52px; }
#contact .contact-card--featured { position:relative; overflow:hidden; padding:22px 24px 26px; border:1px solid var(--color-border-strong); background:linear-gradient(155deg,var(--color-surface) 55%, var(--color-surface-accent)); box-shadow:0 6px 18px -6px rgba(var(--color-shadow-rgb)/0.15), 0 2px 6px rgba(var(--color-shadow-rgb)/0.05); transition:border-color .25s ease, box-shadow .3s ease, transform .3s ease; }
#contact .contact-card--featured:before { content:""; position:absolute; inset:0; background:radial-gradient(circle at 80% 15%, rgba(230,223,212,0.6), rgba(230,223,212,0) 60%); opacity:.55; pointer-events:none; }
#contact .contact-card--featured h3 { font-size:1.25rem; letter-spacing:.6px; }
#contact .contact-card--featured .person-name { font-size:1.15rem; }
#contact .contact-card--featured:hover { border-color:#b8ad9f; box-shadow:0 10px 28px -10px rgba(var(--color-shadow-rgb)/0.28), 0 4px 10px rgba(var(--color-shadow-rgb)/0.10); transform:translateY(-3px); }
#contact .contact-card__header { margin:0 0 10px; }
#contact .contact-card__body p { font-size:1rem; }
@media (max-width:680px){ #contact .contact-duo { gap:26px; } #contact .contact-card--featured { padding:20px 20px 24px; } #contact .contact-card--featured h3 { font-size:1.15rem; } }
@media (max-width:600px){
  #contact .contact-subhead { font-size:1.15rem; }
  #contact .contact-card { padding:16px 16px 18px; }
}

/* Contact page responsive scaling (match other pages like Auxiliary/About) */
@media (max-width: 780px) {
  #contact h1 { font-size: 1.8rem; }
  #contact .contact-subhead { font-size: 1.2rem; }
}
@media (max-width: 640px) {
  #contact .contact-wrap { padding: 40px 14px; }
  #contact h1 { font-size: 1.6rem; }
  #contact .contact-subhead { font-size: 1.08rem; margin: 34px 0 16px; }
  #contact .contact-card h3 { font-size: 1.05rem; }
  #contact .contact-card p, #contact .contact-card__body p { font-size: 0.92rem; }
}
@media (max-width: 480px) {
  #contact .contact-wrap { padding: 34px 14px; }
  #contact h1 { font-size: 1.48rem; }
  #contact .contact-subhead { font-size: 1.02rem; }
  #contact .contact-card h3 { font-size: 1rem; }
  #contact .contact-card p, #contact .contact-card__body p { font-size: 0.86rem; }
}

