/* ==========================================================================
   Anon Pharmaceutical - Restored Classic Theme (Extended CSS)
   - Blue navbar (brand #234399)
   - Smooth underline nav links
   - Hero with optional image + safe overlay (pointer-events:none)
   - Buttons fixed, accessible focus
   - Seamless ticker support
   - Overview and Solutions cards
   - Contact: equal-height columns, dynamic panels, compact inputs
   - Footer back to brand blue
   ========================================================================== */

/* ----------------------------- RESET / BASE ------------------------------ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html,
body {
  height: 100%;
  max-width: 100% !important;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: "Segoe UI", Arial, sans-serif;
  color: #222;
  background: #f7faff;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: relative;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font: inherit;
}

/* ------------------------------ THEME TOKENS ----------------------------- */
:root {
  --navbar: #ffffff;
  --brand: #234399;
  --brand-2: #4b8cff;
  --text: #1b2a5a;
  --muted: #4a5ea3;
  --bg: #f8fbff;
  --panel: #ffffff;
  --soft: #e7f0fe;
  --soft-2: #eef3ff;
  --ring: 0 0 0 4px rgba(35, 67, 153, 0.14);
  --shadow-1: 0 4px 24px rgba(34, 67, 153, 0.06);
  --shadow-2: 0 10px 40px rgba(34, 67, 153, 0.12);
}

/* ------------------------------- NAVBAR ---------------------------------- */
.navbar {
  position: relative;
  top: 0;
  z-index: 1000;
  width: 100%;
  background: #ffffff;
  border-bottom: 1px solid #e8ecf7;
  overflow-x: hidden;
}
.nav-container {
  margin: 0 auto;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  gap: 16px;
}
.brand-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  text-decoration: none;
}
.logo {
  height: 48px;
  width: auto;
}
.brand {
  color: #234399;
  font-weight: 800;
  font-size: clamp(0.95rem, 2vw, 1.08rem);
  white-space: nowrap; /* never wrap */
  overflow: hidden;
  text-overflow: ellipsis; /* gracefully truncate if too narrow */
}

/* Desktop menu */
.navbar-menu {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 18px;
}
.navbar-menu li {
  position: relative;
}
.navbar-menu a {
  color: #1b2a5a;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.35rem 0.2rem;
  white-space: nowrap;
  display: inline-block;
}
.navbar-menu a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0px;
  height: 2px;
  width: 100%;
  background: #2d5bff;
  transform: scaleX(0);
  transform-origin: left;
  border-radius: 2px;
  transition: transform 0.25s ease;
}
.navbar-menu a:hover::after,
.navbar-menu a:focus::after {
  transform: scaleX(1);
}

/* Hamburger button (blue bars with comfortable spacing) */
.navbar-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: none;
  background: transparent;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  gap: 4px;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  touch-action: manipulation;
}
.navbar-toggle .bar {
  display: block;
  width: 26px;
  height: 2.5px;
  background: #234399; /* blue */
  margin: 5px 0;
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.navbar-toggle.active .bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.navbar-toggle.active .bar:nth-child(2) {
  opacity: 0;
}
.navbar-toggle.active .bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile drawer + backdrop */
@media (max-width: 960px) {
  body {
    width: 100% !important;
    position: relative !important;
  }
  .navbar-toggle {
    display: flex;
  }
  .navbar-menu {
    position: fixed !important;
    top: 72px !important;
    right: 0 !important;
    bottom: 0 !important;
    left: auto !important;
    width: min(88vw, 420px) !important;
    height: calc(100vh - 72px) !important;
    height: calc(100dvh - 72px) !important; /* Dynamic viewport height */
    background: #fff !important;
    border-left: 1px solid #e8ecf7 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 0.2rem !important;
    padding: 12px 16px !important;
    z-index: 10001 !important;
    transform: translateX(100%) !important;
    opacity: 0 !important;
    transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out !important;
    overflow-y: auto !important;
    visibility: hidden !important;
    -webkit-overflow-scrolling: touch !important;
  }
  .navbar-menu.show {
    visibility: visible !important;
    transform: translateX(0) !important;
    opacity: 1 !important;
  }
  .navbar-menu li {
    display: block !important;
    width: 100%;
    margin: 0;
  }
  .navbar-menu a {
    display: block !important;
    color: #1b2a5a !important;
    font-size: 1.05rem;
    padding: 0.8rem 0;
    text-decoration: none;
    pointer-events: auto !important;
    position: relative;
    
  }

  .nav-backdrop {
    position: fixed !important;
    top: 72px !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background: rgba(255, 255, 255, 0.35) !important;
    backdrop-filter: blur(2px) !important;
    -webkit-backdrop-filter: blur(2px) !important;
    opacity: 0 !important;
    pointer-events: none !important;
    transition: opacity 0.3s ease !important;
  }
  .nav-backdrop.show {
    opacity: 1 !important;
    pointer-events: auto !important;
  }

  /* Enhanced hamburger animation */
.navbar-toggle .bar {
  transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55) !important;
}

.navbar-toggle.active .bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg) !important;
}

.navbar-toggle.active .bar:nth-child(2) {
  opacity: 0 !important;
  transform: scale(0) !important;
}

.navbar-toggle.active .bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg) !important;
}

  /* If space is extremely tight, hide brand text but keep logo */
  @media (max-width: 360px) {
    .brand {
      display: none;
    }
  }
}

/* Prevent page scroll when menu is open */
.no-scroll {
  overflow: hidden !important;
  position: fixed !important;
  width: 100% !important;
  height: 100% !important;
  top: 0 !important; 
  left: 0 !important; 
}

.no-scroll .navbar-menu {
  position: fixed !important;
}

/* -------------------------------- HERO ----------------------------------- */
.hero {
  position: relative;
  min-height: 520px;
  display: grid;
  place-items: center;
  text-align: center;
  color: #fff;
  /* Fallback gradient, image optional via .hero-with-image */
  background: linear-gradient(90deg, var(--brand) 59%, #eef4ff 100%);
}
.page-hero, .hero {
  width: 100% !important;
  max-width: 100% !important;
  overflow: hidden;
}
.hero-with-image {
  background: #0f2d7a url("../../images/facility.jpg") center/cover no-repeat
    fixed;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    80% 60% at 50% 40%,
    rgba(255, 255, 255, 0.12) 0%,
    rgba(35, 67, 153, 0.55) 55%,
    rgba(17, 34, 85, 0.82) 100%
  );
  z-index: 1;
  pointer-events: none; /* ensures buttons remain clickable */
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 760px;
  padding: 0 1rem;
}
.hero h1 {
  font-size: 2.7rem;
  margin-bottom: 1rem;
  font-weight: 900;
  line-height: 1.12;
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.25);
}
.hero h2 {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  letter-spacing: 2px;
  font-weight: 800;
}

.hero-btn-group {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}
.btn {
  display: inline-block;
  padding: 0.95rem 2.2rem;
  border: none;
  border-radius: 30px;
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.3s ease, color 0.3s ease, transform 0.18s ease,
    box-shadow 0.18s ease;
  user-select: none;
  will-change: transform;
}
.btn.primary {
  background: #fff;
  color: var(--brand);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.06);
}
.btn.primary:hover,
.btn.primary:focus {
  background: #dfeaff;
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 10px 22px rgba(34, 67, 153, 0.16);
  outline: none;
}
.btn.secondary {
  background: var(--brand);
  color: #fff;
}
.btn.secondary:hover,
.btn.secondary:focus {
  background: #7da7f2;
  transform: translateY(-2px) scale(1.03);
  outline: none;
}

.btn.tertiary {
  background: transparent;
  color: var(--brand);
  border: 2px solid var(--brand);
}
.btn.tertiary:hover,
.btn.tertiary:focus {
  background: var(--brand);
  color: #fff;
}

/* ---------------------------- SEAMLESS TICKER ----------------------------- */
.ticker-wrapper {
  background: #eef4ff;
  overflow: hidden;
  padding: 0.55rem 0;
  border-block: 1px solid #e2ebff;
}
.ticker {
  display: flex;
  gap: 3rem;
  white-space: nowrap;
  font-weight: 900;
  color: var(--brand);
  will-change: transform;
}
.ticker span::before {
  content: "•";
  margin: 0 0.8rem 0 0;
  color: #7da7f2;
}

/* --------------------------- GENERIC SECTIONS ----------------------------- */
.section {
  padding: 4rem 2rem;
}
.card {
  background: var(--panel);
  border-radius: 24px;
  box-shadow: var(--shadow-1);
  padding: 3rem 2rem;
}

/* ------------------------------- OVERVIEW -------------------------------- */
.overview {
  padding: clamp(40px, 6vw, 70px) 1rem;
  background: #fff;
  border-radius: 36px;
  box-shadow: var(--shadow-1);
  text-align: center;
}
.overview h2 {
  color: var(--brand);
  font-size: 2.2rem;
  margin-bottom: 1.2rem;
  font-weight: 900;
}
.overview-subtitle {
  color: #444b7b;
  font-weight: 700;
  font-size: 1.25rem;
  margin-bottom: 1.6rem;
}
.overview p {
  font-size: 1.12rem;
  color: #2e3b6d;
  max-width: 740px;
  margin: 0 auto 1.6rem;
}

.overview-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 1.4rem;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto 1.2rem;
}
.overview-media img {
  width: 100%;
  height: auto;
  border-radius: 16px;
  box-shadow: 0 10px 28px rgba(22, 32, 71, 0.1);
  object-fit: cover;
}
.overview-copy {
  text-align: left;
}
.overview-copy h2 {
  text-align: left;
}
.overview .btn.tertiary {
  margin-top: 0.6rem;
}

/* Responsive */
@media (max-width: 1000px) {
  .overview-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== Impact metrics band ===== */
.impact-metrics {
  width: 100%;
  background: linear-gradient(180deg, #f0f6ff 0%, #e7f0fe 100%);
  padding: clamp(56px, 7vw, 96px) 0;
}
.impact-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}
.impact-head {
  text-align: center;
  margin-bottom: 1.2rem;
}
.impact-head h2 {
  color: var(--brand);
  font-weight: 900;
  font-size: clamp(22px, 4.8vw, 34px);
}
.impact-head p {
  color: #3b4f96;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(10px, 1.8vw, 18px);
}
.metric-card {
  position: relative;
  overflow: hidden;
  background: radial-gradient(
    120% 120% at -10% -10%,
    #ffffff 0%,
    #f3f7ff 60%,
    #eaf2ff 100%
  );
  border: 1px solid #e2eaff;
  border-radius: 18px;
  padding: clamp(12px, 2vw, 16px);
  text-align: center;
  box-shadow: 0 10px 26px rgba(22, 32, 71, 0.08);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.metric-card::after {
  content: "";
  position: absolute;
  inset: auto -40% -60% -40%;
  height: 160px;
  background: radial-gradient(
    40% 60% at 50% 50%,
    rgba(75, 140, 255, 0.22),
    transparent 70%
  );
  pointer-events: none;
}
.metric-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 34px rgba(22, 32, 71, 0.14);
}

.metric-num {
  font-weight: 700; 
  font-size: clamp(20px, 4.2vw, 32px); 
  color: var(--brand);
  letter-spacing: 0.2px;
  line-height: 1.05;
  font-variant-numeric: tabular-nums lining-nums; 
}
.metric-label {
  color: #2a3976;
  font-weight: 600;
  font-size: clamp(12.5px, 2.6vw, 14.5px);
  opacity: 0.95;
}

/* Responsive */
@media (max-width: 900px) {
  .metric-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 480px) {
  .metric-grid {
    grid-template-columns: 1fr;
  }
}

/* Optional: subtle entrance animation */
.impact-metrics .metric-card {
  opacity: 0;
  transform: translateY(12px);
}
.impact-metrics.visible .metric-card {
  animation: metricIn 0.6s ease forwards;
}
.impact-metrics.visible .metric-card:nth-child(2) {
  animation-delay: 0.08s;
}
.impact-metrics.visible .metric-card:nth-child(3) {
  animation-delay: 0.16s;
}
.impact-metrics.visible .metric-card:nth-child(4) {
  animation-delay: 0.24s;
}
@keyframes metricIn {
  to {
    opacity: 1;
    transform: none;
  }
}
@media (max-width: 420px) {
  .metric-num {
    font-size: clamp(18px, 6vw, 28px);
  }
  .metric-label {
    font-size: clamp(12px, 3.2vw, 14px);
  }
}

/* ------------------------------- SOLUTIONS ------------------------------- */
#products {
  background: #fff;
}

.solutions {
  margin: 2rem auto 3rem;
  text-align: center;
  padding: 2px 0 1rem 0;
}
.solutions h2 {
  color: var(--brand);
  font-size: 2.25rem;
  font-weight: 900;
  margin-bottom: 1rem;
}
.solutions h3 {
  color: #425b9f;
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 2.2rem;
}

.solutions-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.6rem;
}
.solution-card.cover {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 18px;
  width: clamp(260px, 30vw, 360px);
  aspect-ratio: 16/10;
  background: #000;
  box-shadow: 0 10px 24px rgba(22, 32, 71, 0.12);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.solution-card.cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.03);
  transition: transform 0.55s cubic-bezier(0.2, 0.6, 0.2, 1), filter 0.35s ease;
}
.solution-card.cover .card-bottom {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  color: #fff;
  font-weight: 900;
  padding: 0.9rem 1rem;
  letter-spacing: 0.2px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0));
  transform: translateY(0);
  opacity: 1;
  transition: transform 0.35s ease, opacity 0.35s ease;
}
.solution-card.cover .card-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: linear-gradient(rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0.6));
  opacity: 0;
  transition: opacity 0.35s ease;
}
.solution-card.cover .explore-btn {
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  border: 2px solid #fff;
  background: transparent;
  color: #fff;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  transition: background 0.2s ease, color 0.2s ease, transform 0.18s ease,
    box-shadow 0.18s ease;
}
.solution-card.cover .explore-btn:hover {
  background: #fff;
  color: #234399;
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(34, 67, 153, 0.25);
}
.solution-card.cover:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 18px 36px rgba(22, 32, 71, 0.18);
}
.solution-card.cover:hover img {
  transform: scale(1.12);
  filter: saturate(1.05) contrast(1.02);
}
.solution-card.cover:hover .card-overlay {
  opacity: 1;
}
.solution-card.cover:hover .card-bottom {
  transform: translateY(110%);
  opacity: 0;
}

/* ------------------------------- CONTACT --------------------------------- */
.contact-section {
  max-width: 1100px;
  margin: 3rem auto;
}
.contact-wrapper {
  background: #fff;
  border-radius: 24px;
  box-shadow: var(--shadow-2);
  padding: 2rem;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2rem;
  align-items: stretch; /* equal height columns */
  position: relative;
}

.contact-wrapper::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 54%;
  width: 3px;
  background: #d2daff;
  transform: translateX(-50%);
  pointer-events: none;
}

/* Left: Tabs + Panels */
.contact-left {
  display: flex;
  flex-direction: column;
}
.contact-tabs {
  display: flex;
  gap: 0.4rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}
.contact-tabs .tab {
  background: #e7f0fe;
  border: none;
  border-radius: 16px;
  padding: 0.6rem 1.2rem;
  font-weight: 800;
  color: var(--brand);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, transform 0.12s ease;
}
.contact-tabs .tab:hover {
  transform: translateY(-1px);
}
.contact-tabs .tab.active {
  background: #fff;
  color: #1950c7;
  box-shadow: 0 6px 18px rgba(34, 67, 153, 0.15);
}

.form-panels {
  display: block;
}
.contact-form-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: panelFade 0.25s ease;
}
@keyframes panelFade {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.contact-form-panel[hidden] {
  display: none;
}

/* Form grid + compact controls */
.contact-form-panel .grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem 1rem;
  width: 100%;
}
.contact-form-panel input,
.contact-form-panel select,
.contact-form-panel textarea {
  height: 44px;
  padding: 0.6rem 0.95rem;
  border: 1.5px solid #c6d6ff;
  background: #ffffff;
  border-radius: 14px;
  font-size: 0.98rem;
  color: #183173;
  transition: border-color 0.18s, box-shadow 0.18s, transform 0.12s;
  background: #fff;
  border: 1.5px solid #cbd6ff;
}
.contact-form-panel textarea {
  min-height: 44px;
  padding: 0.75rem 0.95rem;
  resize: vertical;
}

.contact-form-panel input:focus,
.contact-form-panel select:focus,
.contact-form-panel textarea:focus {
  border-color: var(--brand);
  box-shadow: var(--ring);
  outline: none;
  transform: translateY(-1px);
}

/* Remove red/green feedback (override any previous rules) */
.contact-form-panel input:valid,
.contact-form-panel select:valid,
.contact-form-panel textarea:valid {
  border-color: #cbd6ff !important;
  background: #fff !important;
}
.contact-form-panel input:invalid,
.contact-form-panel select:invalid,
.contact-form-panel textarea:invalid {
  border-color: #cbd6ff !important;
  background: #fff !important;
}

/* Pop-up container and animation */
.form-notification {
  position: fixed;
  top: 20px;
  right: 20px;
  min-width: 280px;
  max-width: 400px;
  z-index: 10000;
  border-radius: 10px;
  background: linear-gradient(135deg, #28a745, #20c997);
  color: white;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  box-shadow: 0 12px 30px rgba(32, 201, 151, 0.5);
  opacity: 0;
  transform: translateX(50px);
  animation: slideInFade 0.4s forwards ease-out;
  overflow: hidden;
  cursor: pointer;
}

.form-notification-error {
  background: linear-gradient(135deg, #dc3545, #e74c3c) !important;
  box-shadow: 0 12px 30px rgba(220, 53, 69, 0.5) !important;
}

.form-notification-error:hover {
  box-shadow: 0 16px 40px rgba(220, 53, 69, 0.7) !important;
}

/* Error timer bar */
.form-notification-error .form-notification-timer {
  background: linear-gradient(90deg, #f8a5a5, #dc3545) !important;
}

@keyframes slideInFade {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Hover effect */
.form-notification:hover {
  transform: scale(1.05);
  box-shadow: 0 16px 40px rgba(32, 201, 151, 0.7);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Content styles */
.form-notification-content {
  padding: 18px 24px;
  font-size: 15px;
  line-height: 1.4;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.form-notification-close {
  background: none;
  border: none;
  color: white;
  font-size: 22px;
  cursor: pointer;
  opacity: 0.85;
  transition: opacity 0.2s ease;
}

.form-notification-close:hover {
  opacity: 1;
}

/* Timer bar animation */
.form-notification-timer {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 5px;
  width: 100%;
  background: linear-gradient(90deg, #85e3b2, #20c997);
  animation: timerShrink 6s linear forwards;
  background-size: 200% 100%;
  animation-iteration-count: 1;
}

/* Timer bar shrinking animation */
@keyframes timerShrink {
  0% {
    width: 100%;
  }
  100% {
    width: 0;
  }
}

/* Responsive for mobile */
@media (max-width: 480px) {
  .form-notification {
    top: 15px;
    right: 15px;
    min-width: 240px;
    max-width: 90vw;
    font-size: 14px;
    border-radius: 12px;
  }
  .form-notification-content {
    padding: 14px 18px;
  }
  .form-notification-close {
    font-size: 20px;
  }
  .form-notification-timer {
    height: 4px;
  }
}


.submit-btn {
  margin-top: 1rem;
  align-self: center !important;
  border: none;
  border-radius: 16px;
  padding: 0.78rem 1.4rem;
  background: linear-gradient(92deg, var(--brand) 60%, var(--brand-2) 96%);
  color: #fff;
  font-weight: 900;
  cursor: pointer;
  transition: transform 0.18s ease, filter 0.18s ease, box-shadow 0.18s ease;
  box-shadow: 0 6px 18px rgba(34, 67, 153, 0.16);
}
.submit-btn:hover {
  transform: translateY(-2px) scale(1.02);
  filter: saturate(1.1);
  box-shadow: 0 10px 28px rgba(34, 67, 153, 0.26);
}

/* Right: Details + Map should stretch to match left height */
.contact-right {
  display: flex;
  flex-direction: column;
}
.contact-details {
  font-size: 1.05rem;
  color: #1f2f6a;
  line-height: 2;
  margin-bottom: 1rem;
}
.contact-phone {
  font-weight: 900;
  color: var(--brand);
}
.contact-email,
.contact-address {
  color: #1950c7;
}
.contact-map {
  flex: 1;
  min-height: 260px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 6px 22px rgba(34, 67, 153, 0.12);
}

/* ------------------------------- FOOTER ---------------------------------- */
.footer {
  background: var(--brand);
  color: #fff;
  text-align: center;
  padding: 1rem 0.3rem;
  margin-top: 3rem;
}
.footer-menu {
  margin-bottom: 1rem;
}
.footer-menu a {
  color: #fff;
  margin: 0 0.9rem;
  font-weight: 800;
}
.footer-menu a:hover {
  text-decoration: underline;
}
.footer-social img {
  height: 28px;
  filter: grayscale(100%);
  opacity: 0.9;
  transition: 0.2s;
}
.footer-social img:hover {
  filter: none;
  opacity: 1;
}
.footer-disclaimer p,
.footer-disclaimer a {
  color: #d6dcff;
}

/* --------------------------- SCROLL REVEAL FX ---------------------------- */
.fade-in-section {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.85s ease, transform 0.85s ease;
}
.fade-in-section.visible {
  opacity: 1;
  transform: none;
}

/* ------------------------------ UTILITIES -------------------------------- */
.container {
  max-width: 100% !important;
  overflow-x: hidden;
  margin: 0 auto;
  padding: 0 1rem;
}
.round {
  border-radius: 999px;
}
.shadow-1 {
  box-shadow: var(--shadow-1);
}
.shadow-2 {
  box-shadow: var(--shadow-2);
}
.text-center {
  text-align: center;
}
.hidden {
  display: none !important;
}

/* ------------------------------ ACCESSIBILITY ---------------------------- */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid #9fb4ff;
  outline-offset: 2px;
}

/* ------------------------------ RESPONSIVE --------------------------------*/
@media (max-width: 1000px) {
  .hero h1 {
    font-size: 2.3rem;
  }
  .navbar {
    height: 68px;
  }
}
@media (max-width: 900px) {
  .navbar-menu {
    position: absolute;
    right: 0;
    top: 72px;
    background: #fff;
    width: 80vw;
    display: none;
    flex-direction: column;
    gap: 0.6rem;
    padding: 0.8rem 1rem 1rem;
    border-radius: 0 0 14px 14px;
    box-shadow: 0 10px 26px rgba(20, 40, 85, 0.25);
  }
  .navbar-menu.show {
    display: flex;
  }
  .navbar-toggle {
    display: inline-block;
  }

  .contact-wrapper {
    grid-template-columns: 1fr;
  }

  .contact-wrapper::before {
    top: auto; /* reset vertical positioning */
    bottom: 0;
    left: 0;
    right: 0; /* full width */
    width: auto;
    height: 1.5px;
    transform: none;
  }

  .contact-form-panel .grid {
    grid-template-columns: 1fr;
  }
  .hero h1 {
    font-size: 2rem;
  }
  .hero h2 {
    font-size: 1.05rem;
  }
}
@media (max-width: 600px) {
  .solution-card {
    width: 220px;
  }
  .brand {
    font-size: 1rem;
  }
}

/* ---------------------------- OPTIONAL EXTRAS ---------------------------- */
/* Custom scrollbars for textareas */
.contact-form-panel textarea {
  scrollbar-width: thin;
  scrollbar-color: var(--brand) var(--soft-2);
}
.contact-form-panel textarea::-webkit-scrollbar {
  width: 9px;
  background: var(--soft-2);
}
.contact-form-panel textarea::-webkit-scrollbar-thumb {
  background: var(--brand);
  border-radius: 9px;
}

/* Decorative molecule dots in hero (subtle, non-blocking) */
.hero::after {
  content: "";
  position: absolute;
  inset: auto -10% -20% -10%;
  height: 220px;
  background: radial-gradient(
      circle at 10% 40%,
      rgba(255, 255, 255, 0.08) 0 6px,
      transparent 7px
    ),
    radial-gradient(
      circle at 35% 60%,
      rgba(255, 255, 255, 0.07) 0 5px,
      transparent 6px
    ),
    radial-gradient(
      circle at 60% 35%,
      rgba(255, 255, 255, 0.06) 0 5px,
      transparent 6px
    );
  z-index: 0;
  pointer-events: none;
}

/* Print basics */
@media print {
  .navbar,
  .footer {
    box-shadow: none;
  }
  .navbar,
  .footer {
    background: #fff !important;
    color: #000 !important;
  }
  .navbar a,
  .footer a {
    color: #000 !important;
  }
}

/* Fluid sizes for key elements (desktop → mobile) */
.brand {
  font-size: clamp(12px, 2.6vw, 17px);
}
.navbar-menu a {
  font-size: clamp(12px, 2.4vw, 15px);
}

.hero h1 {
  font-size: clamp(22px, 6.5vw, 44px);
}
.hero h2 {
  font-size: clamp(13px, 3.4vw, 20px);
}
.btn {
  font-size: clamp(12.5px, 3.2vw, 16px);
}

/* Solutions full-image card labels (bottom text and overlay button) */
.solution-card.cover .card-bottom span {
  font-size: clamp(12px, 3.4vw, 16px);
}
.solution-card.cover .explore-btn {
  font-size: clamp(12px, 3.2vw, 14.5px);
}

/* Section headings and body text */
.overview h2,
.solutions h2 {
  font-size: clamp(20px, 5.3vw, 34px);
}
.overview p {
  font-size: clamp(14px, 3.4vw, 18px);
}
.solutions h3 {
  font-size: clamp(13px, 3.2vw, 18px);
}

/* Contact details and controls */
.contact-details {
  font-size: clamp(13px, 3vw, 16px);
}
.contact-form-panel input,
.contact-form-panel select,
.contact-form-panel textarea {
  font-size: clamp(13px, 3vw, 15.5px);
}
.submit-btn {
  font-size: clamp(12.5px, 3.1vw, 15.5px);
}

/* Step-down tweaks at common breakpoints for extra clarity */
@media (max-width: 900px) {
  .hero h1 {
    letter-spacing: 0.2px;
  }
  .btn {
    padding: 0.8rem 1.6rem;
  }
  .overview p {
    line-height: 1.55;
  }
}

@media (max-width: 600px) {
  .brand {
    max-width: 60vw;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .hero h2 {
    letter-spacing: 1.2px;
  }
  .navbar-menu a {
    font-size: 0.98rem;
  } /* drawer links comfortable size */
  .solution-card.cover {
    width: min(92vw, 360px);
  }
}

@media (max-width: 360px) {
  .btn {
    padding: 0.7rem 1.3rem;
  }
  .hero h1 {
    line-height: 1.18;
  }
  /* If brand starts wrapping on ultra-small screens, hide text but keep logo */
  .brand {
    display: none;
  }
}
