/* =========================================
   Shaoxing Fabrics — Main Stylesheet
   ========================================= */

/* --- Custom Properties --- */
:root {
  --primary:       #0c2340;
  --primary-light: #163358;
  --secondary:     #1565c0;
  --accent:        #0ea5e9;
  --cta:           #ea580c;
  --cta-hover:     #c2410c;
  --text-dark:     #0f172a;
  --text-med:      #334155;
  --text-muted:    #64748b;
  --bg-light:      #f1f5f9;
  --bg-white:      #ffffff;
  --border:        #e2e8f0;
  --success:       #16a34a;
  --error:         #dc2626;
  --shadow-sm:     0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.06);
  --shadow-md:     0 4px 16px rgba(0,0,0,.10);
  --shadow-lg:     0 10px 40px rgba(0,0,0,.14);
  --radius:        10px;
  --radius-lg:     16px;
  --transition:    all .25s ease;
  --header-h:      76px;
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  color: var(--text-dark);
  background: var(--bg-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { border: none; background: none; cursor: pointer; font: inherit; }

/* --- Typography --- */
h1, h2, h3, h4 { line-height: 1.2; font-weight: 700; color: var(--text-dark); }
h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.4rem); }
h4 { font-size: 1.05rem; }
p  { color: var(--text-med); }

/* --- Layout --- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.section { padding: 90px 0; }
.section--dark { background: var(--primary); color: #fff; }
.section--light { background: var(--bg-light); }
.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 3.5rem;
}
.section-header .tag {
  display: inline-block;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(14,165,233,.12);
  padding: .3rem .85rem;
  border-radius: 50px;
  margin-bottom: 1rem;
}
.section-header h2 { margin-bottom: .75rem; }
.section-header p { color: var(--text-muted); font-size: 1.05rem; }
.section--dark .section-header h2 { color: #fff; }
.section--dark .section-header p { color: rgba(255,255,255,.7); }

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .8rem 1.75rem;
  border-radius: 8px;
  font-size: .95rem;
  font-weight: 600;
  transition: var(--transition);
  white-space: nowrap;
}
.btn svg { flex-shrink: 0; }
.btn-primary {
  background: var(--cta);
  color: #fff;
}
.btn-primary:hover { background: var(--cta-hover); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(234,88,12,.35); }
.btn-secondary {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,.6);
}
.btn-secondary:hover { background: rgba(255,255,255,.12); border-color: #fff; }
.btn-outline-dark {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}
.btn-outline-dark:hover { background: var(--primary); color: #fff; }
.btn-lg { padding: 1rem 2.25rem; font-size: 1.05rem; }

/* =========================================
   HEADER
   ========================================= */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow .3s;
  height: var(--header-h);
}
.site-header.scrolled { box-shadow: var(--shadow-md); }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 1.5rem;
}
.logo {
  display: flex;
  align-items: center;
  gap: .5rem;
  text-decoration: none;
  flex-shrink: 0;
}
.logo-mark-img {
  width: 42px; height: 42px;
  object-fit: contain;
  flex-shrink: 0;
}
.logo-text-wrap { display: flex; flex-direction: column; line-height: 1; }
.logo-company { font-size: 1.2rem; font-weight: 800; color: var(--primary); font-family: Georgia, 'Times New Roman', serif; letter-spacing: .01em; }
.logo-tagline { font-size: .62rem; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--text-muted); }

.main-nav { margin-left: auto; }
.nav-links {
  display: flex;
  align-items: center;
  gap: .25rem;
}
.nav-link {
  padding: .5rem .9rem;
  border-radius: 7px;
  font-size: .93rem;
  font-weight: 500;
  color: var(--text-med);
  transition: var(--transition);
}
.nav-link:hover, .nav-link.active {
  color: var(--secondary);
  background: rgba(21,101,192,.07);
}

.header-cta { font-size: .88rem; padding: .65rem 1.35rem; }

.nav-login-btn {
  display: inline-flex;
  align-items: center;
  gap: .38rem;
  padding: .4rem 1rem;
  border: 1.5px solid var(--secondary);
  border-radius: 50px;
  color: var(--secondary);
  font-size: .875rem;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
  white-space: nowrap;
  line-height: 1;
}
.nav-login-btn svg { flex-shrink: 0; }
.nav-login-btn:hover { background: var(--secondary); color: #fff; }

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 38px; height: 38px;
  border-radius: 8px;
  background: var(--bg-light);
  padding: 7px;
  flex-shrink: 0;
}
.mobile-menu-toggle span {
  display: block;
  height: 2px;
  background: var(--text-dark);
  border-radius: 2px;
  transition: var(--transition);
}
.mobile-menu-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mobile-menu-toggle.open span:nth-child(2) { opacity: 0; }
.mobile-menu-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =========================================
   HERO
   ========================================= */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background:
    radial-gradient(circle at 70% 50%, rgba(14,165,233,.10) 0%, transparent 55%),
    radial-gradient(circle at 15% 80%, rgba(21,101,192,.08) 0%, transparent 45%),
    linear-gradient(145deg, rgba(7,25,45,.91) 0%, rgba(12,35,64,.87) 45%, rgba(22,51,88,.83) 100%),
    url('/assets/images/hero-factory.jpg') center/cover no-repeat;
  position: relative;
  overflow: hidden;
  padding-top: var(--header-h);
}
.hero::before { display: none; }
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 3rem;
  position: relative;
  z-index: 1;
  padding: 5rem 0;
}
.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(14,165,233,.15);
  border: 1px solid rgba(14,165,233,.3);
  padding: .35rem 1rem;
  border-radius: 50px;
  margin-bottom: 1.5rem;
}
.hero h1 {
  color: #fff;
  margin-bottom: 1.25rem;
  max-width: 600px;
}
.hero h1 span { color: var(--accent); }
.hero-sub {
  font-size: 1.1rem;
  color: rgba(255,255,255,.75);
  max-width: 520px;
  margin-bottom: 2.25rem;
  line-height: 1.7;
}
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

.hero-card-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}
.hero-info-card {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.5rem;
  backdrop-filter: blur(4px);
  transition: var(--transition);
}
.hero-info-card:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.2); }
.hero-info-card.accent-card {
  background: linear-gradient(135deg, var(--cta), #c2410c);
  border-color: transparent;
  grid-column: 1 / -1;
}
.card-icon {
  width: 48px; height: 48px;
  background: rgba(255,255,255,.12);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  color: var(--accent);
}
.accent-card .card-icon { background: rgba(255,255,255,.2); color: #fff; }
.hero-info-card h4 { color: #fff; margin-bottom: .4rem; font-size: 1rem; }
.hero-info-card p { font-size: .88rem; color: rgba(255,255,255,.65); }
.accent-card p { color: rgba(255,255,255,.85); }

/* =========================================
   SERVICES
   ========================================= */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 1.75rem;
}
.service-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.service-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--secondary), var(--accent));
  transform: scaleX(0);
  transition: transform .3s;
}
.service-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); border-color: transparent; }
.service-card:hover::after { transform: scaleX(1); }
.service-icon {
  width: 58px; height: 58px;
  background: linear-gradient(135deg, rgba(21,101,192,.1), rgba(14,165,233,.1));
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--secondary);
  margin-bottom: 1.25rem;
}
.service-card h3 { margin-bottom: .65rem; color: var(--primary); }
.service-card p { font-size: .95rem; color: var(--text-muted); line-height: 1.65; }
.service-link {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  margin-top: 1.25rem;
  font-size: .9rem;
  font-weight: 600;
  color: var(--secondary);
  transition: gap .2s;
}
.service-link:hover { gap: .65rem; }

/* =========================================
   STATS
   ========================================= */
.stats-section {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  padding: 70px 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}
.stat-item { padding: 1.5rem; }
.stat-number {
  font-size: clamp(2.2rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  display: block;
  margin-bottom: .5rem;
}
.stat-suffix { color: var(--cta); }
.stat-label {
  font-size: .9rem;
  color: rgba(255,255,255,.7);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .06em;
}

/* =========================================
   ABOUT SNAPSHOT (homepage)
   ========================================= */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.about-visual {
  position: relative;
}
.about-visual-inner {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  color: #fff;
}
.about-visual-inner h3 { color: #fff; margin-bottom: 1rem; font-size: 1.3rem; }
.about-visual-inner p { color: rgba(255,255,255,.8); font-size: .95rem; }
.about-features {
  display: flex;
  flex-direction: column;
  gap: .85rem;
  margin-top: 1.5rem;
}
.about-feature {
  display: flex;
  align-items: center;
  gap: .75rem;
  background: rgba(255,255,255,.08);
  border-radius: 8px;
  padding: .75rem 1rem;
}
.about-feature svg { color: var(--accent); flex-shrink: 0; }
.about-feature span { font-size: .93rem; color: rgba(255,255,255,.9); }
.about-badge {
  position: absolute;
  bottom: -20px; right: -20px;
  background: var(--cta);
  color: #fff;
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  text-align: center;
  box-shadow: var(--shadow-md);
}
.about-badge .badge-num { font-size: 2rem; font-weight: 800; display: block; line-height: 1; }
.about-badge .badge-text { font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; opacity: .9; }

.about-content .tag {
  display: inline-block;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(14,165,233,.12);
  padding: .3rem .85rem;
  border-radius: 50px;
  margin-bottom: 1rem;
}
.about-content h2 { margin-bottom: 1rem; }
.about-content p { margin-bottom: 1rem; color: var(--text-muted); line-height: 1.75; }
.about-checklist {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .65rem;
  margin: 1.5rem 0 2rem;
}
.check-item {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-size: .9rem;
  font-weight: 500;
  color: var(--text-med);
}
.check-item svg { color: var(--success); flex-shrink: 0; }

/* =========================================
   WHY CHOOSE US / FEATURES
   ========================================= */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
}
.feature-card {
  text-align: center;
  padding: 2rem 1.5rem;
}
.feature-icon {
  width: 72px; height: 72px;
  margin: 0 auto 1.25rem;
  background: rgba(255,255,255,.08);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}
.feature-card h3 { color: #fff; margin-bottom: .6rem; }
.feature-card p { font-size: .93rem; color: rgba(255,255,255,.65); }

/* =========================================
   CTA BANNER
   ========================================= */
.cta-banner {
  background: linear-gradient(135deg, var(--cta) 0%, #9a3412 100%);
  padding: 80px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(255,255,255,.08) 0%, transparent 70%);
}
.cta-banner h2 { color: #fff; margin-bottom: .75rem; }
.cta-banner p { color: rgba(255,255,255,.85); font-size: 1.08rem; margin-bottom: 2rem; max-width: 550px; margin-left: auto; margin-right: auto; }
.cta-actions { display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; }
.btn-white { background: #fff; color: var(--cta); font-weight: 700; }
.btn-white:hover { background: #f8fafc; transform: translateY(-1px); box-shadow: 0 6px 20px rgba(0,0,0,.15); }

/* =========================================
   ABOUT PAGE
   ========================================= */
.page-hero {
  background: linear-gradient(145deg, var(--primary) 0%, var(--primary-light) 100%);
  padding: calc(var(--header-h) + 60px) 0 80px;
  text-align: center;
}
.page-hero h1 { color: #fff; margin-bottom: .75rem; }
.page-hero p { color: rgba(255,255,255,.75); font-size: 1.1rem; max-width: 600px; margin: 0 auto; }

.mission-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.mission-text h2 { margin-bottom: 1rem; }
.mission-text p { color: var(--text-muted); line-height: 1.75; margin-bottom: 1rem; }
.mission-values {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.value-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.value-icon {
  width: 46px; height: 46px;
  background: linear-gradient(135deg, rgba(21,101,192,.1), rgba(14,165,233,.1));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--secondary);
  flex-shrink: 0;
}
.value-item h4 { margin-bottom: .3rem; color: var(--primary); }
.value-item p { font-size: .9rem; color: var(--text-muted); }

.team-section {}
.team-intro { max-width: 680px; margin: 0 auto 3rem; text-align: center; color: var(--text-muted); line-height: 1.75; }

/* =========================================
   SERVICES PAGE
   ========================================= */
.services-detail-grid {
  display: flex;
  flex-direction: column;
  gap: 4rem;
}
.service-detail-item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
}
.service-detail-item:nth-child(even) .service-detail-text { order: -1; }
.service-detail-visual {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  border-radius: var(--radius-lg);
  padding: 3rem 2.5rem;
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.service-detail-visual .big-icon {
  width: 80px; height: 80px;
  background: rgba(255,255,255,.12);
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}
.service-detail-visual h3 { color: #fff; font-size: 1.5rem; }
.service-detail-visual p { color: rgba(255,255,255,.8); line-height: 1.7; }

.service-detail-text h3 { color: var(--primary); margin-bottom: 1rem; font-size: 1.6rem; }
.service-detail-text p { color: var(--text-muted); line-height: 1.75; margin-bottom: 1rem; }
.service-benefits {
  display: flex;
  flex-direction: column;
  gap: .7rem;
  margin-top: 1.25rem;
}
.benefit-item {
  display: flex;
  align-items: center;
  gap: .7rem;
  font-size: .93rem;
  color: var(--text-med);
}
.benefit-item svg { color: var(--success); flex-shrink: 0; }

/* =========================================
   CONTACT PAGE
   ========================================= */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 3.5rem;
  align-items: start;
}
.contact-info h2 { margin-bottom: 1rem; }
.contact-info > p { color: var(--text-muted); line-height: 1.75; margin-bottom: 2rem; }
.contact-details {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}
.contact-item-icon {
  width: 48px; height: 48px;
  background: linear-gradient(135deg, rgba(21,101,192,.1), rgba(14,165,233,.1));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--secondary);
  flex-shrink: 0;
}
.contact-item h4 { font-size: .85rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--text-muted); margin-bottom: .3rem; }
.contact-item a, .contact-item p { color: var(--text-dark); font-size: .98rem; font-weight: 500; }
.contact-item a:hover { color: var(--secondary); }

.contact-form-wrap {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-sm);
}
.contact-form-wrap h3 { margin-bottom: 1.75rem; color: var(--primary); }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { margin-bottom: 1.25rem; }
.form-label {
  display: block;
  font-size: .88rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: .45rem;
}
.form-control {
  width: 100%;
  padding: .75rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: .95rem;
  color: var(--text-dark);
  background: var(--bg-white);
  transition: border-color .2s, box-shadow .2s;
  font-family: inherit;
}
.form-control:focus {
  outline: none;
  border-color: var(--secondary);
  box-shadow: 0 0 0 3px rgba(21,101,192,.12);
}
.form-control::placeholder { color: #9ca3af; }
textarea.form-control { resize: vertical; min-height: 130px; }

.form-alert {
  display: none;
  padding: 1rem 1.25rem;
  border-radius: 8px;
  font-size: .93rem;
  font-weight: 500;
  margin-bottom: 1.25rem;
  align-items: center;
  gap: .6rem;
}
.form-alert.show { display: flex; }
.form-alert.success { background: #dcfce7; color: #15803d; border: 1px solid #86efac; }
.form-alert.error   { background: #fee2e2; color: #b91c1c; border: 1px solid #fca5a5; }

/* =========================================
   FOOTER
   ========================================= */
.site-footer {
  background: #070e1a;
  color: rgba(255,255,255,.8);
  padding: 70px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer-logo { margin-bottom: 1rem; }
.footer-logo .logo-company { color: #fff; }
.footer-logo .logo-tagline { color: rgba(255,255,255,.4); }
.footer-about { font-size: .9rem; color: rgba(255,255,255,.55); line-height: 1.75; margin-bottom: 1.5rem; }
.footer-contact-line {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-size: .9rem;
  color: rgba(255,255,255,.65);
  margin-bottom: .65rem;
}
.footer-contact-line svg { color: var(--accent); flex-shrink: 0; }
.footer-contact-line a { color: inherit; transition: color .2s; }
.footer-contact-line a:hover { color: #fff; }

.footer-heading {
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: rgba(255,255,255,.4);
  margin-bottom: 1.25rem;
}
.footer-links { display: flex; flex-direction: column; gap: .55rem; }
.footer-links a {
  font-size: .9rem;
  color: rgba(255,255,255,.65);
  transition: color .2s;
  display: flex;
  align-items: center;
  gap: .45rem;
}
.footer-links a::before {
  content: '';
  display: block;
  width: 5px; height: 5px;
  background: var(--accent);
  border-radius: 50%;
  flex-shrink: 0;
}
.footer-links a:hover { color: #fff; }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 0;
  font-size: .83rem;
  color: rgba(255,255,255,.35);
  flex-wrap: wrap;
  gap: .75rem;
}
.footer-bottom a { color: rgba(255,255,255,.5); }
.footer-bottom a:hover { color: rgba(255,255,255,.8); }

/* =========================================
   ANIMATIONS
   ========================================= */
.animate-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s ease, transform .6s ease;
}
.animate-in.visible {
  opacity: 1;
  transform: translateY(0);
}
.animate-in-delay-1 { transition-delay: .1s; }
.animate-in-delay-2 { transition-delay: .2s; }
.animate-in-delay-3 { transition-delay: .3s; }
.animate-in-delay-4 { transition-delay: .4s; }

/* =========================================
   RESPONSIVE
   ========================================= */
@media (max-width: 1024px) {
  .about-grid, .mission-grid, .service-detail-item { grid-template-columns: 1fr; gap: 2.5rem; }
  .service-detail-item:nth-child(even) .service-detail-text { order: 0; }
  .about-badge { position: static; margin-top: 1rem; display: inline-block; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-card-col { display: none; }
  .hero { min-height: auto; padding: calc(var(--header-h) + 60px) 0 80px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .main-nav {
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0;
    background: var(--bg-white);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: transform .3s ease, opacity .3s ease;
    z-index: 999;
  }
  .main-nav.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }
  .nav-links { flex-direction: column; padding: 1.25rem 1.5rem; gap: .25rem; }
  .nav-link { width: 100%; padding: .75rem 1rem; }
  .mobile-menu-toggle { display: flex; }
  .header-cta { display: none; }
  .section { padding: 60px 0; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .about-checklist { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .cta-actions { flex-direction: column; align-items: center; }
}

@media (max-width: 480px) {
  .features-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { text-align: center; justify-content: center; }
  .contact-form-wrap { padding: 1.75rem 1.25rem; }
}

/* =========================================
   PAGE HERO WITH BACKGROUND IMAGE
   ========================================= */
.page-hero {
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
}

/* =========================================
   GALLERY STRIP
   ========================================= */
.gallery-strip { padding: 0; overflow: hidden; }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  height: 340px;
}
.gallery-item {
  position: relative;
  overflow: hidden;
  cursor: pointer;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .55s ease;
  display: block;
}
.gallery-item:hover img { transform: scale(1.08); }
.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(7,25,45,.85) 0%, rgba(7,25,45,.15) 55%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.25rem 1.1rem;
  transition: background .3s;
}
.gallery-item:hover .gallery-overlay {
  background: linear-gradient(to top, rgba(7,25,45,.92) 0%, rgba(7,25,45,.25) 60%, transparent 100%);
}
.gallery-label {
  color: #fff;
  font-size: .88rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.gallery-label-sub {
  color: rgba(255,255,255,.65);
  font-size: .78rem;
  margin-top: .2rem;
}
@media (max-width: 768px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); height: 480px; }
}
@media (max-width: 480px) {
  .gallery-grid { grid-template-columns: 1fr 1fr; height: 400px; }
}

/* =========================================
   ABOUT SECTION — HOMEPAGE PHOTO
   ========================================= */
.about-photo-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 1.5rem;
  height: 260px;
  box-shadow: var(--shadow-md);
}
.about-photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .45s ease;
  display: block;
}
.about-photo-frame:hover img { transform: scale(1.04); }

/* =========================================
   SERVICE DETAIL — IMAGE VISUAL PANELS
   ========================================= */
.service-detail-visual {
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
}
.service-detail-visual .big-icon { background: rgba(255,255,255,.15); }

/* =========================================
   ABOUT PAGE — TEAM/FACILITY PHOTO
   ========================================= */
.about-page-photo {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  height: 100%;
  min-height: 420px;
}
.about-page-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Feature cards with image bg on about page */
.highlight-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}
.highlight-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  height: 220px;
}
.highlight-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .4s ease;
}
.highlight-card:hover img { transform: scale(1.06); }
.highlight-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(7,25,45,.88) 0%, rgba(7,25,45,.2) 60%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.25rem;
}
.highlight-card-overlay h4 { color: #fff; margin-bottom: .25rem; }
.highlight-card-overlay p { font-size: .82rem; color: rgba(255,255,255,.7); }

@media (max-width: 768px) {
  .highlight-strip { grid-template-columns: 1fr; }
  .about-page-photo { min-height: 280px; }
}
@media (max-width: 1024px) {
  .highlight-strip { grid-template-columns: 1fr 1fr; }
}

/* =========================================
   LOGISTICS PORTAL
   ========================================= */
.portal-auth {
  min-height: 100vh;
  padding-top: var(--header-h);
  background: linear-gradient(145deg, rgba(12,35,64,.96), rgba(22,51,88,.9)), url('/assets/images/hero-factory.jpg') center/cover no-repeat;
}
.portal-auth .section { padding: 70px 0; }
.auth-panel {
  display: grid;
  grid-template-columns: 1fr minmax(320px, 420px);
  gap: 3rem;
  align-items: center;
}
.auth-panel.narrow { max-width: 760px; margin: 0 auto; grid-template-columns: 1fr; }
.auth-panel h1, .auth-panel p { color: #fff; }
.auth-panel p { color: rgba(255,255,255,.76); margin-top: .8rem; }
.portal-note {
  display: inline-block;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 8px;
  padding: .75rem 1rem;
  font-size: .9rem;
}
.portal-kicker {
  display: inline-block;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: .7rem;
}
.portal-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}
.portal-card h2 {
  color: var(--primary);
  font-size: 1.2rem;
  margin-bottom: 1rem;
}
.portal-card .form-control { margin-bottom: 1rem; }
.portal-full { width: 100%; justify-content: center; margin-top: .25rem; }
.portal-link { color: var(--secondary); font-weight: 700; }
.portal-link:hover { color: var(--primary); }
.portal-reset-link {
  display: block;
  background: #e0f2fe;
  color: var(--primary);
  border: 1px solid #7dd3fc;
  border-radius: 8px;
  padding: .75rem 1rem;
  margin-bottom: 1rem;
  font-weight: 700;
}
.portal-alert {
  display: block;
  padding: .85rem 1rem;
  border-radius: 8px;
  margin-bottom: 1rem;
  font-size: .92rem;
  font-weight: 650;
}
.portal-alert.success { background: #dcfce7; color: #15803d; border: 1px solid #86efac; }
.portal-alert.error { background: #fee2e2; color: #b91c1c; border: 1px solid #fca5a5; }
.portal-shell { background: var(--bg-light); min-height: 100vh; }
.portal-hero {
  padding: calc(var(--header-h) + 46px) 0 42px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
}
.portal-hero-inner {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  align-items: center;
}
.portal-hero h1 { color: #fff; font-size: clamp(1.8rem, 3vw, 2.5rem); margin-bottom: .4rem; }
.portal-hero p { color: rgba(255,255,255,.75); }
.portal-section { padding-top: 36px; }
.portal-grid.two {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
  align-items: start;
}
.portal-card-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  margin-bottom: 1rem;
}
.portal-card-head h2 { margin-bottom: 0; }
.portal-card-actions {
  display: flex;
  align-items: center;
  gap: .75rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.portal-muted {
  color: var(--text-muted);
  font-size: .88rem;
  font-weight: 600;
}
.portal-empty {
  border: 1px dashed #cbd5e1;
  background: #f8fafc;
  border-radius: 8px;
  padding: 1rem;
  color: var(--text-muted);
  font-weight: 600;
}
.portal-table-wrap { overflow-x: auto; }
.portal-filter {
  display: grid;
  grid-template-columns: 1fr minmax(150px, 190px) auto;
  gap: .75rem;
  align-items: center;
  margin-bottom: 1rem;
}
.portal-filter .form-control { margin-bottom: 0; }
.portal-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 860px;
}
.portal-table th {
  text-align: left;
  color: var(--text-muted);
  background: #f8fafc;
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  padding: .8rem;
}
.portal-table td {
  border-top: 1px solid var(--border);
  padding: .85rem .8rem;
  vertical-align: middle;
  color: var(--text-med);
  font-size: .92rem;
}
.portal-table td strong, .stack-item strong { color: var(--text-dark); display: block; }
.portal-table td span, .stack-item span { display: block; color: var(--text-muted); font-size: .8rem; margin-top: .15rem; }
.status-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: .25rem .65rem;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 800;
  text-transform: capitalize;
  background: #e2e8f0;
  color: var(--text-med);
  white-space: nowrap;
}
.status-available, .status-approved { background: #dcfce7; color: #15803d; }
.status-pending, .status-pending-review { background: #fef3c7; color: #92400e; }
.status-rejected, .status-closed { background: #fee2e2; color: #b91c1c; }
.status-covered { background: #dbeafe; color: #1d4ed8; }
.status-not-started { background: #e2e8f0; color: #475569; }
.inline-form {
  display: flex;
  align-items: center;
  gap: .5rem;
  flex-wrap: wrap;
}
.compact-select, .compact-input {
  min-height: 36px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: .4rem .55rem;
  font: inherit;
  color: var(--text-dark);
  background: #fff;
}
.compact-input { max-width: 160px; }
.btn-sm { padding: .48rem .8rem; font-size: .82rem; }
.btn-danger { background: var(--error); color: #fff; }
.btn-danger:hover { background: #991b1b; }
.stack-list {
  display: flex;
  flex-direction: column;
  gap: .75rem;
}
.stack-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: .75rem;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: .8rem;
  background: #fff;
}
.stack-item .form-control { margin-bottom: 0; }
.portal-status-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.portal-status-strip > div {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1rem;
  box-shadow: var(--shadow-sm);
}
.portal-status-strip span {
  display: block;
  color: var(--text-muted);
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: .35rem;
}
.portal-status-strip strong { color: var(--primary); }
.button-row, .inline-upload {
  display: flex;
  gap: .75rem;
  flex-wrap: wrap;
  align-items: center;
}
.field-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .75rem;
}
.field-pair .form-control { margin-bottom: 1rem; }
.route-location-grid { grid-template-columns: 1fr .55fr .65fr; }
.inline-upload .form-control { margin-bottom: 0; flex: 1 1 180px; }
.portal-divider {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 1.5rem 0;
}
.route-button svg { color: var(--secondary); }
.route-button:hover svg { color: #fff; }
.route-modal {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: none;
}
.route-modal.open { display: block; }
.route-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(7,14,26,.62);
}
.route-modal-panel {
  position: relative;
  width: min(940px, calc(100vw - 2rem));
  max-height: calc(100vh - 2rem);
  overflow: auto;
  margin: 1rem auto;
  background: #fff;
  border-radius: 8px;
  box-shadow: var(--shadow-lg);
  padding: 1.35rem;
}
.route-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}
.route-modal-head h2 {
  color: var(--primary);
  font-size: 1.35rem;
}
.route-modal-close {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: var(--bg-light);
  color: var(--text-dark);
  font-size: 1.5rem;
  line-height: 1;
}
.route-summary {
  display: grid;
  grid-template-columns: 1.2fr 1.2fr .8fr .8fr;
  gap: .85rem;
  margin-bottom: 1rem;
}
.route-summary > div {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #f8fafc;
  padding: .8rem;
}
.route-summary span {
  display: block;
  color: var(--text-muted);
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: .2rem;
}
.route-summary strong {
  color: var(--text-dark);
  font-size: .9rem;
}
.route-alert {
  border: 1px solid #fbbf24;
  background: #fffbeb;
  color: #92400e;
  border-radius: 8px;
  padding: .75rem 1rem;
  margin-bottom: 1rem;
  font-weight: 650;
}
.route-map {
  height: 460px;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  background: #e2e8f0;
}
.route-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: .75rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

@media (max-width: 1024px) {
  .portal-grid.two, .auth-panel { grid-template-columns: 1fr; }
  .portal-status-strip { grid-template-columns: repeat(2, 1fr); }
  .route-summary { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .portal-hero-inner { flex-direction: column; align-items: flex-start; }
  .portal-status-strip { grid-template-columns: 1fr; }
  .portal-card { padding: 1.1rem; }
  .portal-card-head { align-items: flex-start; flex-direction: column; }
  .portal-card-actions { justify-content: flex-start; }
  .portal-filter { grid-template-columns: 1fr; }
  .field-pair, .route-location-grid { grid-template-columns: 1fr; }
  .route-modal-panel {
    width: calc(100vw - 1rem);
    max-height: calc(100vh - 1rem);
    margin: .5rem;
    padding: 1rem;
  }
  .route-summary { grid-template-columns: 1fr; }
  .route-map { height: 360px; }
  .stack-item { grid-template-columns: 1fr; }
  .inline-form { align-items: stretch; }
  .compact-input, .compact-select { max-width: none; width: 100%; }
}
