/* Dropdown arrow after text for nav items with submenu */
.dropdown > button.link, .dropdown > .dropdown-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5em;
  position: relative;
  padding-right: 1.2em !important;
}
.dropdown-arrow {
  display: inline-block;
  width: 0.7em;
  height: 0.7em;
  margin-left: 0.25em;
  border-right: 4px solid #888;
  border-bottom: 4px solid #888;
  border-radius: 1px;
  transform: rotate(45deg);
  pointer-events: none;
  transition: border-color 0.2s;
  background: transparent;
}
.dropdown.open > button.link .dropdown-arrow,
.dropdown.open > .dropdown-toggle .dropdown-arrow {
  border-color: var(--brand);
}
/* Contact Page Spacing Fixes */
.contact-grid .grid-2 {
  gap: 3rem; /* Increase gap between form and info sections */
}

@media (max-width: 768px) {
  .contact-grid .grid-2 {
    gap: 2.5rem; /* Slightly smaller gap on mobile */
  }
}
.hero .display {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: var(--font-weight-bold);
  line-height: 1.1;
  letter-spacing: -0.01em;
}
/* Manufacturing Automation Hero Section */
.hero .container.grid-2 {
  display: grid;
  grid-template-columns: 40% 60%;
  gap: 3rem;
  align-items: center;
}
.hero-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  height: 100%;
}
/* Hero image for manufacturing automation and about page */
.hero .container.grid-2 .hero-img {
  /* make image fully fit inside the grid column */
  width: 100%;           /* fill the column width */
  max-width: 100%;
  height: auto;          /* let height scale naturally */
  max-height: 650px;     /* cap height so it doesn't overflow */
  margin: 0 auto;
  border-radius: 0;
  display: block;
  object-fit: contain;   /* ensure entire image is visible */
  object-position: center;
  background: transparent;
}
@media (max-width: 900px) {
  .hero .container.grid-2 {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .hero-content {
    align-items: center;
    text-align: center;
  }
  .hero .container.grid-2 .hero-img {
    max-width: 100%;
    height: auto;
    max-height: 420px;
    margin: 0 auto;
  }
}


.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  /* stretch children so text and image columns match height */
  align-items: stretch;
}
.about-content {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  background: #e6e2db;
  padding: clamp(2rem, 4vw, 3rem);
  border-radius: 0;
  animation-delay: 0.1s;
}
.about-images {
  display: flex;
  align-items: stretch; /* ensure image container fills grid cell */
  justify-content: center;
  height: 100%;
}
.about-img {
  width: 100%;
  max-width: none;
  height: 100%; /* fill the column height */
  object-fit: cover;
  border-radius: 0;
  box-shadow: var(--shadow);
  margin: 0 auto;
}
.about-subtitle {
  color: var(--muted);
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  letter-spacing: 0.01em;
}

.capabilities-grid {
  display: grid;
  /* responsive columns that center as a group */
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 0.5rem; /* reduced gap between cards on desktop */
  margin-top: 2.5rem;
  justify-items: center; /* center content inside each cell */
  justify-content: center; /* center the grid within its container */
}
.capability-card {
  background: #fff;
  border-radius: 0;
  box-shadow: var(--shadow);
  padding: 2rem 1.5rem 1.5rem 1.5rem;
  transition: box-shadow 0.2s, transform 0.2s;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 350px;
  /* constrain card width so centered layout looks tidy */
  width: 100%;
  max-width: 420px;
  text-align: center;
}
.capability-card:hover {
  box-shadow: 0 8px 32px 0 rgba(0,0,0,0.10);
  transform: translateY(-4px) scale(1.02);
}
.capability-card img {
  margin-bottom: 1.25rem;
  border-radius: 0;
  width: 100%;
  max-width: 320px;
  aspect-ratio: 16/10;
  object-fit: cover;
}
.capability-card h4 {
  font-size: 1.2rem;
  font-weight: var(--font-weight-bold);
  margin-bottom: 0.5rem;
}
.capability-card p {
  font-size: 1rem;
  color: var(--muted);
}

@media (max-width: 900px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .about-images {
    gap: 1.5rem;
    align-items: center;
  }
  .capabilities-grid {
    grid-template-columns: 1fr;
    gap: 1rem; /* slightly larger gap on mobile for touch spacing */
  }
}

/* Extra spacing between the intro paragraph in the policies header and the cards */
.section > .container.text-center + .container.capabilities-grid {
  margin-top: 2rem; /* increases space between the muted paragraph and the cards */
}

/* Ensure the muted paragraph inside the header has adequate bottom spacing */
.section > .container.text-center .muted {
  margin-bottom: 0.5rem;
}
/* Section Divider */
.section-divider {
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, #e6e2db 0%, #fff 100%);
  margin: 0 auto 2.5rem auto;
  opacity: 0.5;
  border: none;
}

/* Subtitles */
.hero-subtitle, .about-subtitle, .vision-subtitle {
  color: var(--muted);
  font-size: 1.1rem;
  margin-top: 0.5rem;
  margin-bottom: 1.5rem;
  letter-spacing: 0.01em;
}

/* Section heading improvements */
.about-content h2, .vision-title, .cta-title {
  font-size: clamp(2rem, 4vw, 2.5rem);
  letter-spacing: 0.01em;
  font-weight: var(--font-weight-extra-bold);
}

/* About/Vision image hover */
.about-img, .vision-img {
  transition: transform 0.3s cubic-bezier(.4,0,.2,1), box-shadow 0.3s cubic-bezier(.4,0,.2,1);
}
.about-img:hover, .vision-img:hover {
  transform: scale(1.04) rotate(1deg);
  box-shadow: 0 8px 32px 0 rgba(0,0,0,0.10);
}

/* Fade-in animation for sections */
.about-content, .about-images, .vision-content, .vision-images {
  opacity: 0;
  transform: translateY(24px);
  animation: fadeInSection 0.8s ease-out forwards;
}
.about-content { animation-delay: 0.1s; }
.about-images { animation-delay: 0.2s; }
.vision-images { animation-delay: 0.1s; }
.vision-content { animation-delay: 0.2s; }

@keyframes fadeInSection {
  to {
    opacity: 1;
    transform: none;
  }
}

/* Button/CTA improvements */
.btn-primary {
  background: linear-gradient(90deg, #fff 60%, #e6e2db 100%);
  color: var(--brand);
  box-shadow: 0 4px 16px rgba(0, 82, 204, 0.10);
  border: 2px solid #e6e2db;
}
.btn-primary:hover {
  background: linear-gradient(90deg, #f8f9fa 60%, #e6e2db 100%);
  color: #003580;
}
.btn-secondary {
  background: #f9f9f9;
  color: var(--brand);
  border: 2px solid #e6e2db;
}
.btn-secondary:hover {
  background: #e6e2db;
  color: #003580;
}

/* Navigation microinteraction */
.nav .link, .nav .menu > a.link {
  position: relative;
  transition: color 0.2s;
}
.nav .link::after, .nav .menu > a.link::after {
  content: '';
  display: block;
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--brand);
  transform: scaleX(0);
  transition: transform 0.2s;
}
.nav .link:hover::after, .nav .menu > a.link:hover::after {
  transform: scaleX(1);
}

/* Back to top button */
.back-to-top-button{
  position:fixed; right:16px; bottom:16px; background:var(--brand); color:#fff;
  padding:.6rem .8rem; border-radius:999px; text-decoration:none; font-weight:700;
  box-shadow:var(--shadow); opacity:0; pointer-events:none; transition:opacity .2s ease, transform .2s ease;
  z-index: 100;
}
.back-to-top-button.visible{ opacity:1; pointer-events:auto; transform:translateY(0); }

/* Section padding and spacing consistency */
.section {
  padding-top: clamp(3rem, 7vw, 5rem);
  padding-bottom: clamp(3rem, 7vw, 5rem);
}

/* About page specific spacing fixes */
.about .content-wrapper,
.vision .content-wrapper {
  max-width: 720px;
  margin: 0 auto;
  padding: clamp(1rem, 2.5vw, 1.75rem) 0; /* reduce inner vertical padding for tighter layout */
}

.about .about-subtitle,
.vision .vision-subtitle {
  margin-bottom: 1rem;
}

.about .content-wrapper p {
  margin-bottom: 1rem;
}

.about .content-wrapper p + p {
  margin-top: 0.75rem;
}

/* slightly reduce the section-divider spacing on About so sections feel closer */
.about + .section-divider,
.vision + .section-divider,
.section.about + .section-divider {
  margin-bottom: 1.5rem;
}
/* Vision Section */
.vision-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.vision-images {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}

.vision-img-stack {
  position: relative;
  width: 100%;
  max-width: 350px;
  min-height: 320px;
}

.vision-img-main {
  width: 100%;
  transform: rotate(5deg);
  box-shadow: var(--shadow);
  position: relative;
  z-index: 1;
}

.vision-img-small {
  width: 80%;
  position: absolute;
  left: 40%;
  bottom: 10%;
  top: auto;
  transform: rotate(-5deg);
  z-index: 2;
  box-shadow: var(--shadow);
}

.vision-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
}

.vision-title {
  font-size: clamp(1.8rem, 3vw, 2.2rem);
  margin-bottom: 1.5rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.vision-content p {
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--ink);
  opacity: 0.9;
}

.vision-content p + p {
  margin-top: 1rem;
}

@media (max-width: 900px) {
  .vision-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .vision-img-stack {
    max-width: 90vw;
    min-height: 200px;
  }
  .vision-img-main {
    width: 100%;
  }
  .vision-img-small {
    width: 60%;
    left: 20%;
    top: 60%;
  }
}
/* ===== Design tokens ===== */
:root{
  /* Colors */
  --brand:#0052CC;        /* Royal Blue */
  --ink:#121212;
  --muted:#6b7280;
  --bg:#ffffff;
  --bg-alt:#f9f9f9;
  --surface:#111;
  
  /* Typography */
  --font-primary: "Mulish", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --font-weight-normal: 400;
  --font-weight-medium: 600;
  --font-weight-bold: 700;
  --font-weight-extra-bold: 800;
  
  /* Layout */
  --radius:10px;
  --shadow:0 8px 24px rgba(0,0,0,.08);
}

@media (prefers-reduced-motion:no-preference){
  :root{ scroll-behavior:smooth; }
}

/* ===== Base ===== */
*{ box-sizing:border-box; }
html,body{ margin:0; padding:0; background:var(--bg); color:var(--ink); }
body {
  font-family: var(--font-primary);
  font-size: 16px;
  line-height: 1.6;
  font-weight: var(--font-weight-normal);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

.container { 
  max-width: 1440px; 
  margin: 0 auto; 
  padding: 0 2rem; 
}

.text-center { text-align:center; }
.muted { color:var(--muted); }
.hide { display:none !important; }

/* Typography */
h1, h2, h3 { 
  font-family: var(--font-primary);
  margin: 0 0 .75rem;
  line-height: 1.15;
  font-weight: var(--font-weight-bold);
}

.display { 
  font-size: clamp(3rem, 7vw, 4.5rem);
  font-weight: var(--font-weight-medium);
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2em;
}

.display-line {
  display: block;
  position: relative;
}

.display-line:last-child {
  color: var(--brand);
}

/* Add subtle animation for the homepage title */
.hero .display-line {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s ease-out forwards;
}

.hero .display-line:first-child {
  animation-delay: 0.2s;
}

.hero .display-line:last-child {
  animation-delay: 0.4s;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.lead { 
  font-size: clamp(1.05rem, 2.5vw, 1.25rem);
  color: #4b5563;
  font-weight: var(--font-weight-normal);
}

/* ===== Nav ===== */
.nav{ position:sticky; top:0; z-index:50; background:#fff; border-bottom:1px solid #eee; }
.nav .container{ display:flex; align-items:center; justify-content:space-between; gap:1rem; padding:.75rem 1.25rem; }
.brand img{ display:block; }

.menu{ display:flex; align-items:center; gap:1rem; }
/* Reset all nav links to same size */
.nav .link,
.nav .dropdown > button,
.nav .dropdown button.link,
.nav .menu > a.link,
.nav .dropdown-list .link {
  appearance: none !important;
  border: 0 !important;
  background: none !important;
  cursor: pointer !important;
  font-size: 1rem !important;
  font-weight: var(--font-weight-bold) !important;
  text-decoration: none !important;
  color: #111 !important;
  padding: .5rem .25rem !important;
  text-transform: none !important;
  font-family: var(--font-primary) !important;
}

/* Hover states */
.nav .link:hover, 
.nav .link[aria-current="page"], 
.nav .dropdown > button:hover,
.nav .dropdown button.link:hover { 
  color: var(--brand) !important; 
}

/* Reset dropdown links */
.nav .dropdown-list .link {
  font-size: 1rem !important;
  font-weight: 700 !important;
  width: 100% !important;
  display: block !important;
}

/* Dropdown */
.dropdown{ position:relative; }
.dropdown-list{
  position:absolute; top:110%; left:0; min-width:220px; background:#fff; border:1px solid #eee;
  border-radius:8px; box-shadow:var(--shadow); padding:.5rem; display:none;
}
.dropdown.open .dropdown-list{ display:block; }
.dropdown-list .link{ display:block; width:100%; padding:.5rem .75rem; font-weight:600; }
.dropdown-list .link:hover{ background:#fafafa; }

/* Mobile nav */
.menu-toggle{ display:none; gap:.5rem; align-items:center; font-weight:700; }
.menu-toggle {
  background: #fff;
  border: none;
  border-radius: 8px;
  padding: 0.5rem 1rem;
  box-shadow: none;
}
.menu-toggle span{ width:24px; height:2px; background:#111; position:relative; }
.menu-toggle span::before, .menu-toggle span::after{
  content:""; position:absolute; left:0; width:24px; height:2px; background:#111;
}
.menu-toggle span::before{ top:-7px; }
.menu-toggle span::after{ top:7px; }

@media (max-width:900px){
  .menu-toggle{ display:flex; }
  .menu{
    position:fixed; top:56px; left:0; right:0; bottom:auto; margin-top:0; background:#fff; border-top:1px solid #eee;
    flex-direction:column; gap:0; padding:0; align-items:stretch;
    box-shadow: 0 8px 32px 0 rgba(0,0,0,0.10);
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transition: max-height 0.4s cubic-bezier(.4,0,.2,1), opacity 0.3s cubic-bezier(.4,0,.2,1);
    display: flex;
  }
  .menu.open {
    max-height: 100vh;
    opacity: 1;
    pointer-events: auto;
    /* display: flex; already set above */
  }
  
  /* Align all top-level menu items */
  .menu > .link,
  .menu > .dropdown {
    width: 100%;
    text-align: left;
    padding: 0.875rem 1.25rem;
    background: #fff;
    border-bottom: 1px solid #f0f0f0;
  }
  
  .menu > .link {
    display: block;
  }
  
  /* Dropdown styling */
  .dropdown{ 
    width:100%; 
    padding: 0 !important;
  }
  
  .dropdown > button.link {
    width: 100%;
    text-align: left;
    padding: 0.875rem 1.25rem !important;
    background: #fff;
  }
  
  /* Dropdown list (submenu) */
  .dropdown-list{ 
    position:static; 
    box-shadow:none; 
    border:0; 
    padding:0; 
    display:none;
    background: #fff;
  }
  
  .dropdown.open .dropdown-list{ 
    display:block; 
  }
  
  /* Submenu items with indentation */
  .dropdown-list .link {
    padding: 0.75rem 1.25rem 0.75rem 2.5rem !important;
    background: #fff;
    border-bottom: 1px solid #f0f0f0;
    text-align: left;
    margin-left: 1.25rem;
    border-radius: 6px;
  }
  
  .dropdown-list .link:hover {
    background: #f0f0f0;
  }
}

/* ===== Sections ===== */
.section{ padding: clamp(2.5rem, 6vw, 4rem) 0; opacity:0; transform:translateY(8px); transition:opacity .4s ease, transform .4s ease; }
.section.visible{ opacity:1; transform:none; }
.section.hero{ 
  background: var(--bg-alt);
  padding: clamp(3rem, 8vw, 6rem) 0 clamp(2rem, 4vw, 3rem);
}

.section.hero .container {
  max-width: min(1440px, 90%);
}
.section.video { 
  padding: 0;
  margin-top: -1rem;
  background: var(--surface);
}

.section.video .container {
  padding: 0;
  max-width: none;
}

.bgvideo { 
  width: 100%;
  height: 45vh;
  object-fit: cover;
  display: block;
}

/* About Section */
.about {
  padding: clamp(4rem, 8vw, 6rem) 0;
  background: var(--bg);
}

.about-grid {
  display: grid;
  grid-template-columns: 60% 40%;
  gap: 10px;
  align-items: center;
}

.about-content {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  background: #e6e2db;
  padding: clamp(2rem, 4vw, 3rem);
  border-radius: 0;
}

.content-wrapper {
  max-width: 90%;
  text-align: left;
}

.about-content h2 {
  font-size: clamp(1.8rem, 3vw, 2.2rem);
  margin-bottom: 1.5rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
  text-align: left;
}

.about-content p {
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--ink);
  opacity: 0.9;
}

.about-content p + p {
  margin-top: 1rem;
}

.about-images {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.img {
  border-radius: 0;
  box-shadow: var(--shadow);
  width: 100%;
  height: auto;
  aspect-ratio: 16/10;
  object-fit: cover;
}

@media (max-width: 900px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .content-wrapper {
    max-width: 100%;
    padding: 0;
    text-align: left;
  }

  .about-content {
    order: -1;
  }

  .about-images {
    gap: 1.5rem;
  }
}

/* CTA */
.section.cta { 
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
  color: #fff;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.section.cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 150%, rgba(0, 82, 204, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% -50%, rgba(0, 82, 204, 0.15) 0%, transparent 50%);
  pointer-events: none;
}

.cta-content {
  position: relative;
  max-width: min(1440px, 90%);
  margin: 0 auto;
}

.cta-title {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 800;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

.section.cta .lead {
  font-size: clamp(1.1rem, 2.5vw, 1.3rem);
  opacity: 0.9;
  margin-bottom: 2rem;
  color: rgba(255,255,255,0.95);
}

.cta-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  text-decoration: none;
  font-family: var(--font-primary);
  font-weight: var(--font-weight-medium);
  font-size: 1rem;
  padding: 1rem 1.75rem;
  border-radius: 12px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 2px solid transparent;
  letter-spacing: 0.01em;
  white-space: nowrap;
  min-width: 200px;
}

.btn .icon {
  transition: transform 0.2s ease;
}

.btn:hover .icon {
  transform: translateX(2px);
}

.btn span {
  font-size: 0.95rem;
  font-weight: 600;
}

.btn-primary {
  background: #fff;
  color: var(--brand);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.16);
  background: #f8f9fa;
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.btn-secondary {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-2px);
}

.btn-secondary:active {
  transform: translateY(0);
  background: rgba(255, 255, 255, 0.05);
}

@media (max-width: 640px) {
  .btn {
    padding: 0.875rem 1.5rem;
    font-size: 0.95rem;
    min-width: 200px;
  }
}

@media (max-width: 640px) {
  .cta-actions {
    flex-direction: column;
    gap: 0.75rem;
  }
  
  .btn {
    width: 100%;
  }
  
  .section.cta {
    padding: clamp(2rem, 5vw, 3rem) 0;
  }
}

/* Footer */
.footer {
  background: var(--surface);
  color: #eee;
  padding: 3rem 0 1.5rem;
}

.footer .container {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 2fr;
  gap: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer .brand img {
  max-width: 100%;
  height: auto;
  opacity: 0.9;
  transition: opacity 0.2s ease;
}

.footer .brand:hover img {
  opacity: 1;
}

.footer .cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 3rem;
}

.footer .heading {
  font-family: var(--font-primary);
  font-size: 1.1rem;
  font-weight: var(--font-weight-extra-bold);
  margin-bottom: 1.25rem;
  color: white;
  letter-spacing: -0.01em;
}

.footer .cols > div {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer a {
  color: #eee;
  text-decoration: none;
  transition: all 0.2s ease;
  opacity: 0.8;
}

.footer a:hover {
  color: white;
  opacity: 1;
  transform: translateX(4px);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
  padding-top: 1.5rem;
  font-size: 0.9rem;
}

.footer-mission {
  max-width: 380px;
}

.footer-mission h5 {
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
  color: white;
  letter-spacing: -0.01em;
}

.footer-mission .tagline {
  line-height: 1.5;
  color: #eee;
  opacity: 0.85;
  margin: 0;
}

.footer-copyright {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.75rem;
}

.copyright-text {
  color: #eee;
  opacity: 0.7;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
}

.copyright-text .separator {
  color: rgba(255, 255, 255, 0.3);
}

.powered-by {
  font-size: 0.8rem;
  color: #eee;
  opacity: 0.6;
}

.powered-by a {
  color: inherit;
  text-decoration: none;
  transition: all 0.2s ease;
  padding: 0.15rem 0;
}

.powered-by a:hover {
  color: white;
  opacity: 1;
}

@media (max-width: 768px) {
  .footer-bottom {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.5rem;
    padding-top: 1.25rem;
  }

  .footer-mission {
    max-width: 100%;
  }

  .footer-copyright {
    align-items: center;
    gap: 0.5rem;
  }

  .copyright-text {
    flex-wrap: wrap;
    justify-content: center;
  }

  .copyright-text .separator {
    display: none;
  }
}

@media (max-width: 768px) {
  .footer {
    padding: 2.5rem 0 1.25rem;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding-bottom: 1.5rem;
  }

  .footer .brand {
    text-align: center;
  }

  .footer .brand img {
    max-width: 280px;
    margin: 0 auto;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.5rem;
  }
}

/* Back-to-top (optional element) */
.back-to-top-button{
  position:fixed; right:16px; bottom:16px; background:var(--brand); color:#fff;
  padding:.6rem .8rem; border-radius:999px; text-decoration:none; font-weight:700;
  box-shadow:var(--shadow); opacity:0; pointer-events:none; transition:opacity .2s ease, transform .2s ease;
}
.back-to-top-button.visible{ opacity:1; pointer-events:auto; transform:translateY(0); }

/* Dropdown open on hover/focus (desktop) */
@media (min-width:901px){
  .dropdown:hover .dropdown-list,
  .dropdown:focus-within .dropdown-list{ display:block; }
}

/* Respect reduced motion for section reveal */
@media (prefers-reduced-motion: reduce){
  .section{ opacity:1; transform:none; transition:none; }
}

/* Legal/Policy Pages */
.legal-hero {
  background: var(--bg-alt);
  text-align: center;
  padding: 4rem 0;
}

.legal-content-wrapper {
  max-width: 800px;
  margin: 0 auto;
}

.legal-last-updated {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 2rem;
  text-align: center;
}

.legal-content h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin: 2.5rem 0 1rem 0;
  color: var(--ink);
  font-weight: var(--font-weight-bold);
}

.legal-content h2:first-of-type {
  margin-top: 0;
}

.legal-content p {
  line-height: 1.6;
  margin-bottom: 1.5rem;
  color: var(--ink);
}

.legal-content ul {
  margin: 1rem 0 1.5rem 2rem;
  line-height: 1.6;
}

.legal-content li {
  margin-bottom: 0.5rem;
}

@media (max-width: 900px) {
  .legal-content-wrapper {
    padding: 0 1rem;
  }
}