/* ═══════════════════════════════════════════════
   PUREATEC — Global Stylesheet
   ═══════════════════════════════════════════════ */

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

:root {
  /* — Core navy palette — */
  --navy:        #00458f;
  --navy-mid:    #003578;
  --navy-light:  #0055b0;
  --steel:       #1a6ec8;

  /* — Orange accent (matched to logo stripe & "ATEC" text) — */
  --accent:      #f09320;
  --accent-light:#f5b050;
  --accent-dim:  rgba(240,147,32,0.12);

  /* — Blue accent (matched to logo water-drop) — */
  --blue:        #1a96d4;
  --blue-light:  #4dbde8;
  --blue-dim:    rgba(26,150,212,0.10);

  --white:       #ffffff;
  --off-white:   #f5f6f8;
  --light-gray:  #eef0f3;
  --mid-gray:    #8a96a3;
  --border:      #dce2ea;
  --border-dark: rgba(255,255,255,0.08);
  --text-dark:   #001a40;
  --text-body:   #3f505f;
  --shadow-sm:   0 2px 12px rgba(0,69,143,0.10);
  --shadow:      0 6px 28px rgba(0,69,143,0.15);
  --shadow-lg:   0 16px 56px rgba(0,69,143,0.22);
  --nav-h:       76px;
  --radius:      4px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Barlow', sans-serif;
  color: var(--text-body);
  background: var(--white);
  overflow-x: hidden;
}

/* ─── SCROLLBAR ─── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--navy); }
::-webkit-scrollbar-thumb { background: var(--blue); border-radius: 3px; }

/* ─── NAVIGATION ─── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--nav-h);
  background: rgba(0,53,120,0.97);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(26,150,212,0.20);
  transition: box-shadow 0.3s;
}
nav.scrolled { box-shadow: 0 4px 32px rgba(0,0,0,0.3); }
.nav-inner {
  max-width: 1320px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 2.5rem; height: 100%;
}
.nav-logo {
  display: flex; align-items: center;
  text-decoration: none; flex-shrink: 0;
}
.nav-logo-img {
  height: 48px;
  width: auto;
  display: block;
  border-radius: 3px;
}
.nav-links {
  display: flex; align-items: center; gap: 0;
  list-style: none;
}
.nav-links li a {
  display: block;
  color: rgba(255,255,255,0.68);
  text-decoration: none;
  font-size: 12.5px; font-weight: 500;
  letter-spacing: 0.8px; text-transform: uppercase;
  padding: 0.55rem 1rem;
  border-radius: var(--radius);
  transition: all 0.2s;
  position: relative;
}
.nav-links li a::after {
  content: '';
  position: absolute; bottom: 2px; left: 1rem; right: 1rem;
  height: 2px; background: var(--accent);
  transform: scaleX(0); transition: transform 0.2s;
}
.nav-links li a:hover,
.nav-links li a.active { color: var(--white); }
.nav-links li a:hover::after,
.nav-links li a.active::after { transform: scaleX(1); }
.nav-cta-btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--accent);
  color: var(--navy) !important;
  font-weight: 700 !important;
  padding: 0.6rem 1.4rem !important;
  border-radius: var(--radius) !important;
  margin-left: 0.5rem;
  transition: background 0.2s, transform 0.2s !important;
}
.nav-cta-btn::after { display: none !important; }
.nav-cta-btn:hover { background: var(--accent-light) !important; transform: translateY(-1px) !important; }

.hamburger {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; padding: 6px; border: none; background: none;
}
.hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--white); border-radius: 2px;
  transition: all 0.3s;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  display: none; position: fixed;
  top: var(--nav-h); left: 0; right: 0; bottom: 0;
  background: var(--navy);
  z-index: 999; padding: 2rem 2.5rem;
  overflow-y: auto;
}
.mobile-nav.open { display: flex; flex-direction: column; gap: 0.5rem; }
.mobile-nav a {
  color: rgba(255,255,255,0.75); text-decoration: none;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 30px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 1px;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--border-dark);
  transition: color 0.2s;
}
.mobile-nav a:hover { color: var(--accent); }
.mobile-nav a.mobile-cta {
  color: var(--accent);
  border: 1px solid var(--accent);
  padding: 0.9rem 1.5rem; border-radius: var(--radius);
  margin-top: 1rem; text-align: center; border-bottom: 1px solid var(--accent);
}

/* ─── TYPOGRAPHY & UTILS ─── */
.section-eyebrow {
  display: inline-flex; align-items: center; gap: 0.7rem;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700; font-size: 11px;
  letter-spacing: 3px; text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}
.section-eyebrow::before {
  content: ''; width: 28px; height: 2px;
  background: var(--accent); flex-shrink: 0;
}
.section-eyebrow.light::before { background: var(--accent); }

h1, h2, h3 {
  font-family: 'Barlow Condensed', sans-serif;
  text-transform: uppercase;
}
.display-title {
  font-weight: 900;
  font-size: clamp(44px, 6vw, 88px);
  line-height: 0.88;
  letter-spacing: -2px;
  color: var(--text-dark);
}
.display-title.light { color: var(--white); }
.display-title em {
  color: var(--accent); font-style: normal;
  display: block;
}
.page-title {
  font-weight: 800;
  font-size: clamp(38px, 5vw, 68px);
  line-height: 0.9; letter-spacing: -1px;
  color: var(--white);
}
.section-title {
  font-weight: 800;
  font-size: clamp(30px, 3.5vw, 52px);
  line-height: 0.92; letter-spacing: -0.5px;
  color: var(--text-dark);
}
.section-title.light { color: var(--white); }
.body-text {
  font-size: 16px; font-weight: 300;
  line-height: 1.8; color: var(--text-body);
}
.body-text.light { color: rgba(255,255,255,0.6); }

/* ─── LAYOUT ─── */
.container { max-width: 1320px; margin: 0 auto; padding: 0 2.5rem; }
.container-sm { max-width: 900px; margin: 0 auto; padding: 0 2.5rem; }
section { padding: 7rem 0; }

/* ─── BUTTONS ─── */
.btn {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700; font-size: 14px; letter-spacing: 1.5px;
  text-transform: uppercase; text-decoration: none;
  padding: 0.9rem 2rem; border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer; transition: all 0.25s;
}
.btn-accent { background: var(--accent); color: var(--navy); border-color: var(--accent); }
.btn-accent:hover { background: var(--accent-light); border-color: var(--accent-light); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(232,160,32,0.3); }
.btn-outline-light { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.3); }
.btn-outline-light:hover { border-color: var(--accent); color: var(--accent); }
.btn-outline-dark { background: transparent; color: var(--text-dark); border-color: var(--border); }
.btn-outline-dark:hover { border-color: var(--accent); color: var(--accent); }
.btn-navy { background: var(--navy); color: var(--white); border-color: var(--navy); }
.btn-navy:hover { background: var(--navy-mid); transform: translateY(-2px); }

/* ─── PAGE HERO (inner pages) ─── */
.page-hero {
  padding-top: var(--nav-h);
  background: var(--navy);
  min-height: 420px;
  display: flex; align-items: flex-end;
  position: relative; overflow: hidden;
}
.page-hero-bg {
  position: absolute; inset: 0;
  background:
    linear-gradient(135deg, rgba(30,58,88,0.6) 0%, transparent 70%),
    linear-gradient(to bottom, transparent 40%, rgba(11,25,41,0.95) 100%);
}
.page-hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(26,150,212,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(26,150,212,0.06) 1px, transparent 1px);
  background-size: 48px 48px;
}
.page-hero-line {
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 4px; background: linear-gradient(to bottom, var(--accent), transparent);
}
.page-hero-content {
  position: relative; z-index: 2;
  width: 100%; padding: 4rem 0 5rem;
  text-align: left;
}
.page-breadcrumb {
  display: flex; align-items: center; gap: 0.75rem;
  font-size: 12px; color: rgba(255,255,255,0.4);
  letter-spacing: 0.5px; text-transform: uppercase;
  margin-bottom: 1.75rem;
}
.page-breadcrumb a { color: rgba(255,255,255,0.4); text-decoration: none; transition: color 0.2s; }
.page-breadcrumb a:hover { color: var(--accent); }
.page-breadcrumb span { color: var(--accent); }

/* ─── CARDS ─── */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.3s;
}
.card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); border-color: rgba(26,150,212,0.30); }

/* ─── DIVIDER ─── */
.divider {
  width: 56px; height: 3px; background: var(--accent);
  margin: 1.5rem 0;
}

/* ─── TAGS ─── */
.tag {
  display: inline-block;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700; font-size: 10px; letter-spacing: 1.5px;
  text-transform: uppercase; padding: 0.3rem 0.75rem;
  border-radius: 2px;
}
.tag-accent { background: var(--accent-dim); color: var(--accent); }
.tag-dark { background: var(--navy); color: rgba(255,255,255,0.7); }

/* ─── ADVANTAGES STRIP ─── */
.adv-strip {
  background: var(--navy);
  padding: 3.5rem 0;
}
.adv-grid {
  display: grid; grid-template-columns: repeat(4,1fr); gap: 2px;
}
.adv-item {
  padding: 2rem 1.75rem;
  background: rgba(255,255,255,0.03);
  transition: background 0.2s;
  border-right: 1px solid var(--border-dark);
}
.adv-item:last-child { border-right: none; }
.adv-item:hover { background: rgba(255,255,255,0.06); }
.adv-icon {
  width: 36px; height: 36px;
  margin-bottom: 0.75rem;
  color: var(--accent);
  display: flex; align-items: center;
}
.adv-icon svg { width: 32px; height: 32px; display: block; flex-shrink: 0; }
.adv-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700; font-size: 16px; text-transform: uppercase;
  letter-spacing: 0.5px; color: var(--white);
  margin-bottom: 0.4rem;
}
.adv-text { font-size: 13px; color: rgba(255,255,255,0.45); line-height: 1.6; }

/* ─── CTA BAND ─── */
.cta-band {
  background: var(--accent);
  padding: 3.5rem 0;
}
.cta-band-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 2rem; flex-wrap: wrap;
}
.cta-band-text {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900; font-size: clamp(26px, 3.5vw, 46px);
  line-height: 1; color: var(--navy); text-transform: uppercase;
  letter-spacing: -0.5px;
}
.cta-band-sub {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 16px; font-weight: 400;
  color: rgba(11,25,41,0.6);
  letter-spacing: 0.5px; margin-top: 0.35rem;
  text-transform: none;
}

/* ─── FOOTER ─── */
footer {
  background: var(--navy);
  border-top: 1px solid rgba(26,150,212,0.20);
}
.footer-main {
  padding: 5rem 0 3rem;
  display: grid; grid-template-columns: 1.8fr 1fr 1fr 1fr; gap: 3.5rem;
}
.footer-brand-desc {
  font-size: 13.5px; line-height: 1.75;
  color: rgba(255,255,255,0.35);
  margin-top: 1.25rem; max-width: 280px;
}
.footer-col h5 {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700; font-size: 12px;
  letter-spacing: 2.5px; text-transform: uppercase;
  color: var(--accent); margin-bottom: 1.25rem;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 0.6rem; }
.footer-col ul li a {
  font-size: 13.5px; color: rgba(255,255,255,0.4);
  text-decoration: none; transition: color 0.2s;
}
.footer-col ul li a:hover { color: var(--white); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 1.75rem 0;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap;
}
.footer-bottom p { font-size: 12px; color: rgba(255,255,255,0.2); }
.footer-legal { display: flex; gap: 1.5rem; }
.footer-legal a { font-size: 12px; color: rgba(255,255,255,0.2); text-decoration: none; transition: color 0.2s; }
.footer-legal a:hover { color: var(--accent); }

/* ─── RESPONSIVE ─── */
@media (max-width: 1024px) {
  .footer-main { grid-template-columns: 1fr 1fr; }
  .adv-grid { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 768px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .container { padding: 0 1.5rem; }
  .container-sm { padding: 0 1.5rem; }
  section { padding: 4.5rem 0; }
  .footer-main { grid-template-columns: 1fr; gap: 2rem; padding: 3rem 0 2rem; }
  .adv-grid { grid-template-columns: 1fr; }
  .adv-item { border-right: none; border-bottom: 1px solid var(--border-dark); }
  .cta-band-inner { flex-direction: column; text-align: center; }
  .page-hero { min-height: 320px; }
}
@media (max-width: 480px) {
  :root { --nav-h: 64px; }
}

/* ─── ANIMATIONS ─── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.reveal {
  opacity: 0; transform: translateY(24px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ─── SERVICE PHOTO STRIPS ─── */
.service-photos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.75rem;
  margin-top: 3rem;
}
.service-photo {
  width: 100%; height: 220px;
  object-fit: cover;
  border-radius: var(--radius);
  display: block;
  transition: transform 0.35s, box-shadow 0.35s;
}
.service-photo:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-lg);
}
@media (max-width: 768px) {
  .service-photos { grid-template-columns: 1fr 1fr; }
  .service-photo { height: 160px; }
}
@media (max-width: 480px) {
  .service-photos { grid-template-columns: 1fr; }
}

/* ─── PROJECT CARD IMAGES ─── */
.project-img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s;
}
.project-card:hover .project-img { transform: scale(1.08); }

.featured-img {
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: var(--radius);
  display: block;
}
