/* ============================================================
   SASTILAB TECHNOLOGIES — styles.css
   ============================================================ */

/* ---- CSS Custom Properties ---- */
:root {
  /* Brand colours — aligned with logo mark (#4361EE) */
  --primary:        #4361EE;
  --primary-mid:    #5B74F0;
  --primary-light:  #7C93F5;
  --primary-pale:   #EAEDFD;
  --primary-dark:   #3450CC;

  /* Text */
  --text-900: #0F172A;
  --text-600: #475569;
  --text-400: #94A3B8;

  /* Backgrounds */
  --bg-white:  #FFFFFF;
  --bg-subtle: #F8FAFC;
  --bg-card:   #FFFFFF;

  /* Borders */
  --border:       #E2E8F0;
  --border-light: #F1F5F9;

  /* Shadows */
  --shadow-xs: 0 1px 2px rgba(0,0,0,0.05);
  --shadow-sm: 0 1px 4px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.08), 0 2px 6px rgba(0,0,0,0.04);
  --shadow-lg: 0 10px 40px rgba(0,0,0,0.10), 0 4px 12px rgba(0,0,0,0.04);
  --shadow-blue: 0 8px 32px rgba(67,97,238,0.18);

  /* Radii */
  --r-xs:  4px;
  --r-sm:  8px;
  --r-md:  12px;
  --r-lg:  18px;
  --r-xl:  24px;
  --r-pill: 999px;

  /* Typography */
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Layout */
  --nav-h:     72px;
  --max-w:     1200px;
  --sec-pad:   96px;

  /* Motion */
  --ease:      0.25s ease;

  /* Status */
  --error:    #EF4444;
  --error-dk: #DC2626;
  --success:  #15803D;

  /* Dark surface */
  --bg-dark:  #0F172A;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: var(--nav-h);
}

body {
  font-family: var(--font);
  color: var(--text-900);
  background: var(--bg-white);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul { list-style: none; }

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

abbr[title] {
  text-decoration: none;
  color: var(--error);
  font-style: normal;
}

/* ---- Utility ---- */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: var(--sec-pad) 0; }
.section-alt { background: var(--bg-subtle); }

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-tag,
.hero-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--primary-mid);
  background: var(--primary-pale);
  padding: 5px 14px;
  border-radius: var(--r-pill);
}

.section-tag { margin-bottom: 8px; }

.section-title {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 800;
  color: var(--text-900);
  letter-spacing: -0.025em;
  line-height: 1.2;
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 1.0625rem;
  color: var(--text-600);
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.75;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: var(--r-sm);
  font-size: 0.9375rem;
  font-weight: 600;
  transition: all var(--ease);
  white-space: nowrap;
  cursor: pointer;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 2px 8px rgba(67,97,238,0.28);
}
.btn-primary:hover {
  background: var(--primary-dark);
  box-shadow: 0 4px 18px rgba(67,97,238,0.38);
  transform: translateY(-1px);
}
.btn-primary:active { transform: translateY(0); }

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}
.btn-outline:hover {
  background: var(--primary-pale);
  transform: translateY(-1px);
}

.btn-submit {
  width: 100%;
  padding: 15px 28px;
  margin-top: 4px;
}
.btn-submit svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  transition: transform var(--ease);
}
.btn-submit:hover svg { transform: translateX(3px); }
.btn-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

/* ---- Navbar ---- */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 900;
  height: var(--nav-h);
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--ease), box-shadow var(--ease), background var(--ease);
}

.navbar.scrolled {
  background: rgba(255,255,255,0.98);
  border-bottom-color: var(--border);
  box-shadow: var(--shadow-sm);
}

.nav-container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

/* Logo */
.nav-logo {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex-shrink: 0;
}

.logo-icon {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}
.logo-icon svg { width: 100%; height: 100%; }

.logo-text {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-900);
  letter-spacing: -0.02em;
  line-height: 1;
}
.logo-text span { color: var(--primary); }

/* Desktop nav links */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.nav-link {
  padding: 8px 13px;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-600);
  border-radius: var(--r-sm);
  transition: color var(--ease), background var(--ease);
}
.nav-link:not(.nav-cta):hover,
.nav-link:not(.nav-cta).active {
  color: var(--text-900);
  background: var(--bg-subtle);
}

.nav-cta {
  background: var(--primary);
  color: #fff !important;
  padding: 8px 20px;
  margin-left: 6px;
}
.nav-cta:hover {
  background: var(--primary-dark) !important;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 14px 11px;
  border-radius: var(--r-sm);
  transition: background var(--ease);
}
.hamburger:hover { background: var(--bg-subtle); }

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-900);
  border-radius: 2px;
  transition: all 0.3s ease;
  transform-origin: center;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---- Hero ---- */
/* Hero section wrapper — full-width background */
.hero-section-bg {
  background: linear-gradient(160deg, #F0F5FF 0%, #FFFFFF 55%);
  border-bottom: 1px solid var(--border-light);
}

.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 55fr 45fr;
  align-items: center;
  gap: 48px;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: calc(var(--nav-h) + 40px) 24px 60px;
}

.hero-badge {
  border: 1px solid rgba(124,147,245,0.3);
  margin-bottom: 22px;
}

.hero-title {
  font-size: clamp(1.75rem, 3.2vw, 2.75rem);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.03em;
  color: var(--text-900);
  margin-bottom: 18px;
}

.hero-description {
  font-size: 1.0625rem;
  color: var(--text-600);
  line-height: 1.75;
  max-width: 480px;
  margin-bottom: 28px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.hero-stats {
  display: inline-flex;
  align-items: center;
  gap: 24px;
  padding: 18px 24px;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
}

.stat { display: flex; flex-direction: column; align-items: center; text-align: center; }

.stat-number {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
  letter-spacing: -0.03em;
}

.stat-label {
  font-size: 0.75rem;
  font-weight: 500;
  color: #5E7287;
  margin-top: 3px;
}

.stat-divider {
  width: 1px;
  height: 32px;
  background: var(--border);
  flex-shrink: 0;
}

/* Hero graphic */
.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-graphic {
  position: relative;
  width: 340px;
  height: 340px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Orbiting rings */
.graphic-orbit {
  position: absolute;
  border-radius: 50%;
  border: 1.5px dashed rgba(124,147,245,0.2);
}
.orbit-1 { width: 300px; height: 300px; animation: spin 40s linear infinite; }
.orbit-2 { width: 220px; height: 220px; animation: spin 28s linear infinite reverse; }
.orbit-3 { width: 140px; height: 140px; animation: spin 18s linear infinite; }

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Orbit dots */
.orbit-dot {
  position: absolute;
  width: 10px;
  height: 10px;
  background: var(--primary-light);
  border-radius: 50%;
  top: -5px;
  left: 50%;
  transform: translateX(-50%);
  box-shadow: 0 0 0 3px rgba(124,147,245,0.15);
}
.dot-2 { background: var(--primary); width: 8px; height: 8px; }
.dot-3 { background: var(--primary-mid); width: 7px; height: 7px; }

/* Centre logo */
.graphic-core {
  position: relative;
  z-index: 2;
  width: 88px;
  height: 88px;
  animation: float 4.5s ease-in-out infinite;
  filter: drop-shadow(0 12px 28px rgba(67,97,238,0.32));
}
.graphic-core svg { width: 100%; height: 100%; border-radius: 22px; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-12px); }
}

/* Floating labels */
.graphic-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-900);
  box-shadow: var(--shadow-md);
  white-space: nowrap;
  z-index: 3;
}
.gc-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--primary-light);
  flex-shrink: 0;
}

.card-a { top: 40px;    right: -10px;  animation: floatA 5s ease-in-out infinite; }
.card-b { bottom: 70px; left: -10px;   animation: floatB 6s ease-in-out 1s infinite; }
.card-c { bottom: 24px; right: 10px;   animation: floatA 5.5s ease-in-out 0.5s infinite; }

@keyframes floatA {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-8px); }
}
@keyframes floatB {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(8px); }
}

/* ---- About ---- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: start;
}

.about-lead {
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--text-900);
  line-height: 1.7;
  margin-bottom: 18px;
}

.about-body {
  font-size: 0.9375rem;
  color: var(--text-600);
  line-height: 1.8;
  margin-bottom: 32px;
}

.about-values {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.value-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.value-icon {
  flex-shrink: 0;
  margin-top: 2px;
  width: 20px;
  height: 20px;
  color: var(--primary);
}
.value-icon svg { width: 100%; height: 100%; }

.value-item strong {
  display: block;
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--text-900);
  margin-bottom: 3px;
}
.value-item p {
  font-size: 0.875rem;
  color: var(--text-600);
}

/* About capability cards */
.about-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.about-cap-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 24px 22px;
  transition: border-color var(--ease), box-shadow var(--ease), transform var(--ease);
}
.about-cap-card:hover {
  border-color: rgba(124,147,245,0.4);
  box-shadow: var(--shadow-blue);
  transform: translateY(-3px);
}

.cap-icon {
  display: block;
  width: 34px;
  height: 34px;
  color: var(--primary);
  margin-bottom: 12px;
}
.cap-icon svg { width: 100%; height: 100%; }

.about-cap-card strong {
  display: block;
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--text-900);
  margin-bottom: 4px;
}
.about-cap-card p {
  font-size: 0.875rem;
  color: var(--text-600);
}

/* ---- Services ---- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 32px 24px 28px;
  position: relative;
  overflow: hidden;
  transition: border-color var(--ease), box-shadow var(--ease), transform var(--ease);
}

.service-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s ease;
}

.service-card:hover::after  { transform: scaleX(1); }
.service-card:hover {
  border-color: var(--primary-pale);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

/* Shared icon-box style — four contexts */
.service-icon,
.product-icon,
.location-pin,
.contact-icon {
  padding: 10px;
  background: var(--primary-pale);
  border-radius: var(--r-sm);
  color: var(--primary);
}
.service-icon svg,
.product-icon svg,
.location-pin svg,
.contact-icon svg { width: 100%; height: 100%; }

/* Sizes */
.service-icon,
.product-icon,
.location-pin { width: 46px; height: 46px; }
.contact-icon  { width: 42px; height: 42px; }

/* Flex-shrink for items inside flex rows */
.product-icon,
.location-pin,
.contact-icon { flex-shrink: 0; }

.service-icon { margin-bottom: 20px; }

.service-card h3 {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--text-900);
  line-height: 1.3;
  margin-bottom: 10px;
}
.service-card p {
  font-size: 0.875rem;
  color: var(--text-600);
  line-height: 1.7;
}

/* ---- Products ---- */
.products-grid {
  display: grid;
  /* auto-fit rather than a fixed column count: fits 4 cards evenly at
     desktop width instead of wrapping the 4th one alone onto a new row
     with two empty column-widths beside it. */
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
}

.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 36px 32px 32px;
  display: flex;
  flex-direction: column;
  transition: border-color var(--ease), box-shadow var(--ease), transform var(--ease);
}
.product-card:hover {
  border-color: rgba(124,147,245,0.35);
  box-shadow: var(--shadow-lg);
  transform: translateY(-5px);
}

.product-card--featured {
  border-color: var(--primary-mid);
  background: linear-gradient(160deg, #EFF6FF 0%, var(--bg-white) 50%);
  box-shadow: var(--shadow-blue);
}
.product-card--featured:hover {
  box-shadow: 0 16px 48px rgba(67,97,238,0.22);
}

.product-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.product-tag,
.location-badge {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--primary-mid);
  background: var(--primary-pale);
  border-radius: var(--r-pill);
}

.product-tag { padding: 4px 11px; }

.product-card h3 {
  font-size: 1.375rem;
  font-weight: 800;
  color: var(--text-900);
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}
.product-card p {
  font-size: 0.875rem;
  color: var(--text-600);
  line-height: 1.75;
  flex: 1;
  margin-bottom: 26px;
}

/* Product link button */
.btn-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--primary);
  border-bottom: 2px solid var(--primary-pale);
  padding-bottom: 2px;
  transition: gap var(--ease), border-color var(--ease), color var(--ease);
  width: fit-content;
}
.btn-link svg {
  width: 15px;
  height: 15px;
  transition: transform var(--ease);
}
.btn-link:hover {
  gap: 11px;
  border-color: var(--primary);
}
.btn-link:hover svg { transform: translateX(3px); }

/* ---- Locations ---- */
.locations-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 860px;
  margin: 0 auto;
}

.location-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 36px 32px;
  display: flex;
  gap: 20px;
  align-items: flex-start;
  transition: border-color var(--ease), box-shadow var(--ease), transform var(--ease);
}
.location-card:hover {
  border-color: rgba(124,147,245,0.35);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.location-badge {
  display: inline-block;
  padding: 3px 10px;
  margin-bottom: 10px;
}

.location-badge--branch {
  color: #0D9488;
  background: #CCFBF1;
}

.location-body h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-900);
  margin-bottom: 4px;
}

.location-region {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--primary-mid);
  margin-bottom: 10px;
}

.location-desc {
  font-size: 0.875rem;
  color: var(--text-600);
  line-height: 1.7;
}

.locations-note {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 540px;
  margin: 28px auto 0;
  padding: 14px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  font-size: 0.875rem;
  color: var(--text-600);
}
.locations-note svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--primary-light);
}

/* ---- Contact ---- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 72px;
  align-items: start;
}

.contact-info h3 {
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--text-900);
  margin-bottom: 12px;
}
.contact-info > p {
  font-size: 0.9375rem;
  color: var(--text-600);
  line-height: 1.75;
  margin-bottom: 32px;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

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

.contact-item strong {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #5E7287;
  margin-bottom: 3px;
}
.contact-item a,
.contact-item span {
  font-size: 0.9375rem;
  color: var(--text-900);
  line-height: 1.5;
}
.contact-item a:hover { color: var(--primary); }

/* Contact form wrapper */
.contact-form-wrap {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 44px 40px;
  box-shadow: var(--shadow-md);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

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

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-900);
}

.form-group input,
.form-group textarea {
  font-family: var(--font);
  font-size: 0.9375rem;
  color: var(--text-900);
  background: var(--bg-subtle);
  border: 1.5px solid var(--border);
  border-radius: var(--r-sm);
  padding: 11px 15px;
  transition: border-color var(--ease), background var(--ease), box-shadow var(--ease);
  outline: none;
  width: 100%;
  resize: vertical;
  line-height: 1.55;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-400);
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--primary-mid);
  background: var(--bg-white);
  box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
}

.form-group input.is-error,
.form-group textarea.is-error {
  border-color: var(--error);
  box-shadow: 0 0 0 3px rgba(239,68,68,0.1);
}

.form-error {
  font-size: 0.875rem;
  color: var(--error-dk);
  min-height: 16px;
  font-weight: 500;
}

/* Success message */
.form-success {
  display: none;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  background: #F0FDF4;
  border: 1px solid #BBF7D0;
  border-radius: var(--r-sm);
  font-size: 0.9375rem;
  color: #15803D;
  font-weight: 500;
  line-height: 1.5;
}
.form-success.show { display: flex; }

/* ---- Footer ---- */
.footer {
  background: var(--bg-dark);
  color: rgba(255,255,255,0.55);
  padding: 72px 0 36px;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 48px;
  flex-wrap: wrap;
  margin-bottom: 56px;
}

.footer-brand .nav-logo { margin-bottom: 14px; }

.footer-logo-text {
  color: rgba(255,255,255,0.9) !important;
}
.footer-logo-text span { color: #7C93F5 !important; }

.footer-tagline {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.4);
  line-height: 1.6;
  max-width: 220px;
}

.footer-nav {
  display: flex;
  gap: 56px;
  flex-wrap: wrap;
}

.footer-col h4 {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  color: #fff;
  margin-bottom: 20px;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer-col a {
  font-size: 0.875rem;
  line-height: 1.6;
  color: rgba(255,255,255,0.60);
  transition: color var(--ease);
}
.footer-col a:hover {
  color: rgba(255,255,255,0.95);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(255,255,255,0.3);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom p {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.65);
}

/* ---- Scroll Fade-in Animations ---- */
.fade-in {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---- Responsive — 1024px ---- */
@media (max-width: 1024px) {
  :root { --sec-pad: 72px; }

  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
    padding-bottom: 56px;
    min-height: auto;
  }

  .hero-description { margin: 0 auto 28px; }
  .hero-actions     { justify-content: center; }
  .hero-stats       { margin: 0 auto; }

  /* On tablet the visual stays but sits below text */
  .hero-visual { order: 1; }
  .hero-graphic { width: 260px; height: 260px; }
  .orbit-1 { width: 260px; height: 260px; }
  .orbit-2 { width: 190px; height: 190px; }
  .orbit-3 { width: 120px; height: 120px; }
  .graphic-core { width: 70px; height: 70px; }
  .card-a { top: 22px; right: -8px; }
  .card-b { bottom: 32px; left: -8px; }
  .card-c { bottom: 4px; right: 10px; }

  .about-grid { grid-template-columns: 1fr; gap: 40px; }

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

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

  .br-desktop { display: none; }
}

/* ---- Responsive — 768px ---- */
@media (max-width: 768px) {
  :root {
    --sec-pad: 56px;
    --nav-h: 64px;
  }

  /* Mobile menu */
  .hamburger { display: flex; }

  .nav-menu {
    position: fixed;
    top: var(--nav-h); left: 0; right: 0;
    background: #fff;
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: stretch;
    padding: 12px 16px 24px;
    gap: 6px;
    transform: translateY(-10px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.22s ease, transform 0.22s ease;
    box-shadow: 0 12px 32px rgba(0,0,0,0.1);
  }
  .nav-menu.open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  /* All links inside mobile menu — consistent row style */
  .nav-menu .nav-link {
    display: block;
    padding: 14px 16px;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--text-600);
    border-radius: var(--r-sm);
    background: transparent;
    margin-left: 0;
  }
  .nav-menu .nav-link:hover,
  .nav-menu .nav-link.active {
    color: var(--primary);
    background: var(--primary-pale);
  }

  /* Contact — outline style in mobile, NOT filled solid */
  .nav-menu .nav-cta {
    padding: 13px 16px;
    background: transparent !important;
    color: var(--primary) !important;
    border: 1.5px solid var(--primary);
    border-radius: var(--r-sm);
    text-align: center;
    font-weight: 600;
  }
  .nav-menu .nav-cta:hover {
    background: var(--primary-pale) !important;
    color: var(--primary) !important;
  }

  /* Thin divider line above Contact */
  .nav-menu li:last-child {
    border-top: 1px solid var(--border);
    padding-top: 8px;
    margin-top: 4px;
  }

  /* Hero — text first, graphic hidden on mobile */
  .hero {
    padding-top: calc(var(--nav-h) + 28px);
    padding-bottom: 48px;
    min-height: auto;
    text-align: center;
    grid-template-columns: 1fr;
    gap: 0;
  }

  /* Hide the animated graphic — too heavy for mobile viewport */
  .hero-visual { display: none; }

  .hero-description { margin: 0 auto 24px; }
  .hero-badge       { margin-bottom: 16px; }

  /* Stats row — compact on mobile */
  .hero-stats {
    gap: 16px 20px;
    padding: 14px 18px;
  }

  .services-grid  { grid-template-columns: 1fr; }
  .products-grid  { grid-template-columns: 1fr; }
  .locations-grid { grid-template-columns: 1fr; max-width: 460px; }

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

  .contact-form-wrap { padding: 32px 24px; }

  .footer { padding: 48px 0 28px; }
  .footer-top { flex-direction: column; gap: 28px; margin-bottom: 40px; }
  .footer-nav { gap: 32px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 6px; }

  .about-cards { grid-template-columns: 1fr 1fr; }

  .about-lead { font-weight: 500; }

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

/* ---- Responsive — 480px ---- */
@media (max-width: 480px) {
  .container { padding: 0 16px; }

  /* Match hero horizontal padding to container — keeps content edges consistent */
  .hero { padding-left: 16px; padding-right: 16px; }

  .hero-actions { flex-direction: column; align-items: center; }
  .btn { width: 100%; max-width: 280px; justify-content: center; }
  .btn-submit { max-width: 100%; }

  .hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    padding: 14px 12px;
    text-align: center;
  }

  .stat { align-items: center; }
  .stat-label { font-size: 0.6875rem; }

  .stat-divider { display: none; }

  .about-cards {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .about-cap-card        { padding: 18px 14px; }
  .cap-icon              { width: 28px; height: 28px; margin-bottom: 10px; }
  .about-cap-card strong { font-size: 0.875rem; }

  .location-card { flex-direction: column; gap: 16px; padding: 28px 24px; }
  .locations-note { align-items: flex-start; }

  .footer-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }
  .footer-nav .footer-col:last-child { grid-column: 1 / -1; }

  .contact-form-wrap { padding: 24px 18px; }

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

  .products-grid { gap: 20px; }
  .product-card  { padding: 28px 24px; }
}

/* ---- Print ---- */
@media print {
  .navbar, .hamburger, .hero-visual { display: none; }
  .hero { min-height: auto; padding-top: 24px; }
}

/* ---- Reduced motion — stop all decorative animations ---- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  /* Don't hide content from users who prefer reduced motion */
  .fade-in {
    opacity: 1;
    transform: none;
  }
}

/* ---- Focus-visible ring (keyboard navigation) ---- */
:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
  border-radius: 2px;
}
/* Form inputs use custom box-shadow focus — suppress the global outline */
.form-group input:focus-visible,
.form-group textarea:focus-visible {
  outline: none;
}

/* ---- Skip-to-content link (keyboard / screen reader) ---- */
.skip-link {
  position: absolute;
  top: -999px;
  left: 16px;
  z-index: 9999;
  padding: 10px 20px;
  background: var(--primary);
  color: #fff;
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: var(--r-sm);
  text-decoration: none;
  white-space: nowrap;
}
.skip-link:focus {
  top: 16px;
}
