/* ============================================================
   AutomaTech Solutions — Redesigned Light Design System
   Aesthetic: Warm minimal, clean geometry, editorial typography
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Libre+Franklin:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400&display=swap');

/* ── Variables ── */
:root {
  --bg:          #F5F4F0;
  --bg-2:        #EEECEA;
  --surface:     #FFFFFF;
  --surface-alt: #F0EFEB;
  --text:        #0F0F0F;
  --text-2:      #3A3A3A;
  --text-muted:  #7A7A7A;
  --border:      rgba(0,0,0,0.08);
  --border-2:    rgba(0,0,0,0.14);
  --accent:      #0F0F0F;
  --blue:        #1B5BAB;
  --blue-light:  #2870CC;
  --white:       #FFFFFF;

  --font-display: 'Libre Franklin', sans-serif;
  --font-body:    'Libre Franklin', sans-serif;

  --radius-sm: 4px;
  --radius:    8px;
  --radius-lg: 16px;
  --transition: 0.2s cubic-bezier(0.4,0,0.2,1);

  --nav-h: 68px;
  --max-w: 1200px;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text-2);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ── Typography ── */
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  color: var(--text);
  letter-spacing: -0.02em;
}
h1 { font-size: clamp(2.4rem, 5.5vw, 4rem); font-weight: 700; }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.6rem); }
h3 { font-size: clamp(1.05rem, 2vw, 1.3rem); }

.eyebrow {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ── Layout ── */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 40px;
}

/* ── NAV ── */
.nav-new {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(245, 244, 240, 0.88);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
}

.nav-new .container {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}

.nav-logo {
  justify-self: start;
}
.nav-logo img { height: 34px; width: auto; }

.nav-links-new {
  display: flex;
  align-items: center;
  justify-self: center;
  gap: 32px;
}

.nav-cta-new {
  justify-self: end;
}

.nav-links-new a {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color var(--transition);
}
.nav-links-new a:hover { color: var(--text); }
.nav-links-new a.active { color: var(--text); }

.nav-cta-new {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  background: var(--accent);
  color: var(--white) !important;
  padding: 8px 20px;
  border-radius: var(--radius-sm);
  transition: opacity var(--transition), transform var(--transition);
}
.nav-cta-new:hover { opacity: 0.82; transform: translateY(-1px); }

.nav-menu { display: contents; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  justify-self: end;
}
.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text);
  transition: transform var(--transition), opacity var(--transition);
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── HERO ── */
.hero-new {
  padding-top: calc(var(--nav-h) + 80px);
  padding-bottom: 0;
  overflow: hidden;
}

.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 28px;
  padding-bottom: 72px;
}

.hero-new h1 {
  max-width: 720px;
}

.hero-new .hero-sub {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 560px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.btn-dark {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 12px 26px;
  background: var(--accent);
  color: var(--white);
  border-radius: var(--radius-sm);
  transition: opacity var(--transition), transform var(--transition);
}
.btn-dark:hover { opacity: 0.8; transform: translateY(-1px); }

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 500;
  padding: 12px 26px;
  border: 1px solid var(--border-2);
  color: var(--text-2);
  border-radius: var(--radius-sm);
  transition: border-color var(--transition), color var(--transition), transform var(--transition);
}
.btn-outline:hover { border-color: var(--text); color: var(--text); transform: translateY(-1px); }

/* Hero stats bar */
.hero-stats-bar {
  border-top: 1px solid var(--border);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.hero-stat {
  padding: 24px 0;
  border-right: 1px solid var(--border);
  padding-left: 32px;
}
.hero-stat:last-child { border-right: none; }

.hero-stat .stat-num {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 4px;
}

.hero-stat .stat-label {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* ── DIFFERENTIATORS ── */
.diff-new {
  padding: 100px 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.diff-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 60px;
}

.diff-header h2 { max-width: 420px; }
.diff-header p { max-width: 340px; color: var(--text-muted); font-size: 0.95rem; line-height: 1.7; }

.diff-grid-new {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.diff-item-new {
  padding: 36px 28px;
  border-right: 1px solid var(--border);
  transition: background var(--transition);
}
.diff-item-new:last-child { border-right: none; }
.diff-item-new:hover { background: var(--bg-2); }

.diff-num-new {
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.diff-item-new h3 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.diff-item-new p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ── PROCESS (sticky left + scrollable right) ── */
.process-new {
  padding: 100px 0;
  background: var(--bg);
}

.process-layout {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 80px;
  align-items: start;
}

.process-left {
  position: sticky;
  top: calc(var(--nav-h) + 32px);
}

.process-left .eyebrow { margin-bottom: 18px; display: block; }
.process-left h2 { margin-bottom: 18px; }
.process-left p { color: var(--text-muted); font-size: 0.95rem; line-height: 1.75; margin-bottom: 28px; }

.process-link {
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
  border-bottom: 1px solid var(--border-2);
  padding-bottom: 2px;
  transition: border-color var(--transition);
}
.process-link:hover { border-color: var(--text); }

.process-phases {
  display: flex;
  flex-direction: column;
  gap: 36px;
  position: relative;
  padding-left: 32px;
}

.process-phases::before {
  content: '';
  position: absolute;
  left: 6px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: var(--border-2);
}

.phase-card-new {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 36px;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.phase-card-new::before {
  content: '';
  position: absolute;
  left: -32px;
  top: 36px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--blue);
}
.phase-card-new:hover {
  border-color: var(--border-2);
  box-shadow: 0 4px 24px rgba(0,0,0,0.05);
}

.phase-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.phase-tag-new {
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
  background: rgba(27,91,171,0.08);
  padding: 4px 10px;
  border-radius: 2px;
}

.phase-num-new {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

.phase-card-new h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 10px;
}

.phase-card-new p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 18px;
}

.phase-meta {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.phase-meta-item {
  font-size: 0.78rem;
  color: var(--text-muted);
}
.phase-meta-item strong {
  display: block;
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 2px;
}

/* ── SERVICES ── */
.services-new {
  padding: 100px 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
}

.services-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 48px;
}
.services-header h2 { max-width: 400px; }
.services-header p { max-width: 340px; color: var(--text-muted); font-size: 0.95rem; line-height: 1.7; }

.services-grid-new {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.service-card-new {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px 36px;
  display: flex;
  flex-direction: column;
  gap: 0;
  cursor: pointer;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
  text-decoration: none;
  color: inherit;
  position: relative;
  overflow: hidden;
}

.service-card-new:hover {
  border-color: var(--border-2);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.08);
}

.service-card-new .svc-num {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 28px;
}

.service-card-new .svc-icon {
  width: 44px;
  height: 44px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.service-card-new .svc-icon svg {
  width: 20px;
  height: 20px;
  stroke: var(--text);
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.service-card-new h3 {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 12px;
}

.service-card-new p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.7;
  flex: 1;
  margin-bottom: 32px;
}

.service-card-new .svc-tag {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 2px;
  margin-bottom: 24px;
  align-self: flex-start;
}

.svc-tag-alpha { background: rgba(239,68,68,0.08); color: #C53030; border: 1px solid rgba(239,68,68,0.2); }
.svc-tag-available { background: rgba(22,163,74,0.08); color: #166534; border: 1px solid rgba(22,163,74,0.2); }
.svc-tag-local { background: rgba(27,91,171,0.08); color: var(--blue); border: 1px solid rgba(27,91,171,0.2); }

.service-card-new .svc-arrow {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  transition: gap var(--transition);
}
.service-card-new:hover .svc-arrow { gap: 10px; }

/* ── ABOUT SNIPPET ── */
.about-snippet {
  padding: 100px 0;
  background: var(--bg);
  border-top: 1px solid var(--border);
}

.about-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-left .eyebrow { margin-bottom: 18px; display: block; }
.about-left h2 { margin-bottom: 20px; }
.about-left p { color: var(--text-muted); font-size: 0.95rem; line-height: 1.8; margin-bottom: 16px; }

.about-quote {
  border-left: 2px solid var(--border-2);
  padding-left: 20px;
  margin: 28px 0;
  font-size: 0.95rem;
  color: var(--text-2);
  font-style: italic;
  line-height: 1.7;
}

.about-creds {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.cred-item-new {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 22px;
  transition: border-color var(--transition);
}
.cred-item-new:hover { border-color: var(--border-2); }

.cred-item-new .cred-label {
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.cred-item-new .cred-value {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text);
}

/* ── CTA STRIP ── */
.cta-strip-new {
  background: var(--accent);
  padding: 80px 0;
}

.cta-strip-new .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}

.cta-strip-new h2 { color: var(--white); font-size: clamp(1.5rem, 3vw, 2.2rem); }
.cta-strip-new p { color: rgba(255,255,255,0.6); margin-top: 8px; font-size: 0.95rem; }

.btn-white {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 13px 28px;
  background: var(--white);
  color: var(--accent);
  border-radius: var(--radius-sm);
  transition: opacity var(--transition), transform var(--transition);
  white-space: nowrap;
}
.btn-white:hover { opacity: 0.9; transform: translateY(-1px); }

/* ── FOOTER ── */
.footer-new {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 64px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 56px;
}

.footer-brand-new p {
  margin-top: 14px;
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.65;
  max-width: 240px;
}

.footer-col-new h4 {
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 16px;
}

.footer-col-new ul li { margin-bottom: 10px; }
.footer-col-new ul li a {
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: color var(--transition);
}
.footer-col-new ul li a:hover { color: var(--text); }

.footer-bottom-new {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-bottom-new p {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* ── Animations ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.fade-up {
  opacity: 0;
  animation: fadeUp 0.6s cubic-bezier(0.4,0,0.2,1) forwards;
}
.d1 { animation-delay: 0.08s; }
.d2 { animation-delay: 0.18s; }
.d3 { animation-delay: 0.28s; }
.d4 { animation-delay: 0.38s; }

/* ── Responsive ── */
@media (max-width: 1024px) {
  .diff-grid-new { grid-template-columns: repeat(2, 1fr); }
  .diff-item-new { border-bottom: 1px solid var(--border); }
  .process-layout { grid-template-columns: 280px 1fr; gap: 48px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
}

@media (max-width: 860px) {
  .container { padding: 0 24px; }
  .process-layout { grid-template-columns: 1fr; }
  .process-left { position: static; }
  .services-grid-new { grid-template-columns: 1fr; }
  .about-layout { grid-template-columns: 1fr; gap: 40px; }
  .diff-header { flex-direction: column; align-items: flex-start; }
  .services-header { flex-direction: column; align-items: flex-start; }
  .hero-stats-bar { grid-template-columns: repeat(2, 1fr); }
  .hero-stat:nth-child(2) { border-right: none; }

  .nav-new .container { display: flex; justify-content: space-between; }
  .nav-toggle { display: flex; }
  .nav-menu {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition);
  }
  .nav-menu.open { max-height: calc(100vh - var(--nav-h)); overflow-y: auto; }
  .nav-links-new { flex-direction: column; align-items: stretch; gap: 0; padding: 8px 24px; }
  .nav-links-new li { border-bottom: 1px solid var(--border); }
  .nav-links-new a { display: block; padding: 14px 0; font-size: 0.92rem; }
  .nav-cta-new { justify-self: stretch; text-align: center; margin: 20px 24px 24px; }

  .process-phases { padding-left: 24px; gap: 28px; }
  .process-phases::before { left: 4px; }
  .phase-card-new { padding: 24px 22px; }
  .phase-card-new::before { left: -24px; width: 10px; height: 10px; }
  .phase-header { flex-wrap: wrap; gap: 8px; }
  .phase-meta { gap: 18px; }
}

@media (max-width: 640px) {
  .diff-grid-new { grid-template-columns: 1fr; }
  .hero-stats-bar { grid-template-columns: 1fr 1fr; }
  .about-creds { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .cta-strip-new .container { flex-direction: column; align-items: flex-start; }

  .phase-card-new { padding: 20px 18px; }
}
