/* ==========================================================================
   AC Teq IT Solutions — Global Stylesheet
   ========================================================================== */

:root {
  /* Brand palette — sampled from the AC Teq logo artwork */
  --navy:        #0D2C56;
  --blue-deep:   #174AA3;
  --blue:        #1D63C4;
  --blue-light:  #4F9DFF;
  --green-deep:  #157A5B;
  --green:       #1FAF82;
  --green-light: #4DE0B0;

  --bg:          #F5FAF9;
  --bg-alt:      #E6F7EF;
  --surface:     #FFFFFF;
  --border:      #DCE8E4;

  --text:        #122535;
  --text-muted:  #55707A;
  --text-invert: #FFFFFF;

  --gradient-hero: linear-gradient(120deg, var(--blue-deep) 0%, var(--blue) 45%, var(--green-deep) 100%);
  --gradient-band: linear-gradient(100deg, var(--navy) 0%, var(--blue-deep) 55%, var(--green-deep) 100%);
  --gradient-accent: linear-gradient(90deg, var(--blue) 0%, var(--green) 100%);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;

  --shadow-sm: 0 2px 8px rgba(10, 37, 64, 0.08);
  --shadow-md: 0 8px 24px rgba(10, 37, 64, 0.12);
  --shadow-lg: 0 20px 50px rgba(10, 37, 64, 0.18);

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --maxw: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.2; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0 0 1em; color: var(--text-muted); }

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 88px 0; }
.section-tight { padding: 56px 0; }
.section-head { max-width: 640px; margin: 0 auto 48px; text-align: center; }
.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--green-deep);
  background: var(--bg-alt);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
}
.section-head h2 { font-size: clamp(28px, 3.4vw, 40px); color: var(--navy); }
.section-head p { font-size: 17px; }

.text-gradient {
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  border: none;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: var(--gradient-accent);
  color: #fff;
  box-shadow: var(--shadow-md);
}
.btn-primary:hover { box-shadow: var(--shadow-lg); }
.btn-outline {
  background: transparent;
  color: var(--navy);
  border: 1.5px solid var(--border);
}
.btn-outline:hover { border-color: var(--blue); color: var(--blue); }
.btn-invert {
  background: #fff;
  color: var(--blue-deep);
}
.btn-block { width: 100%; }

/* ---------------- Header / Nav ---------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  max-width: var(--maxw);
  margin: 0 auto;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 19px;
  color: var(--navy);
}
.brand .logo-mark {
  height: 42px;
  width: auto;
  border-radius: 6px;
  display: block;
}
.site-footer .logo-mark { height: 46px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 34px;
}
.nav-links a {
  font-weight: 600;
  font-size: 15px;
  color: var(--text);
  position: relative;
  padding: 6px 0;
}
.nav-links a.active { color: var(--blue-deep); }
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 2px;
  background: var(--gradient-accent);
  transition: width .2s ease;
}
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }

.nav-actions { display: flex; align-items: center; gap: 16px; }
.nav-toggle {
  display: none;
  background: none; border: none; cursor: pointer;
  width: 40px; height: 40px;
  align-items: center; justify-content: center;
}
.nav-toggle span, .nav-toggle::before, .nav-toggle::after {
  content: ""; display: block; width: 22px; height: 2px; background: var(--navy); margin: 5px auto; transition: .2s;
}

/* ---------------- Hero ---------------- */
.hero {
  background: var(--gradient-hero);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.hero .container {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 40px;
  align-items: center;
  padding-top: 76px;
  padding-bottom: 76px;
  position: relative;
  z-index: 2;
}
.hero h1 { font-size: clamp(32px, 4.4vw, 52px); }
.hero h1 .hl { color: #B9FFE3; }
.hero p.lead { color: rgba(255,255,255,0.86); font-size: 17px; max-width: 480px; }
.hero .btn-row { display: flex; gap: 14px; margin-top: 28px; flex-wrap: wrap; }
.hero-art { position: relative; }
.hero-badge {
  position: absolute;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.25);
  backdrop-filter: blur(6px);
  border-radius: var(--radius-md);
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 600;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 85% 20%, rgba(255,255,255,0.18), transparent 45%);
}

.page-hero {
  background: var(--gradient-hero);
  color: #fff;
  padding: 72px 0 64px;
  text-align: center;
}
.page-hero .eyebrow { background: rgba(255,255,255,0.15); color: #fff; }
.page-hero h1 { font-size: clamp(30px, 4vw, 46px); }
.page-hero p { color: rgba(255,255,255,0.85); max-width: 560px; margin: 0 auto; font-size: 17px; }

/* ---------------- Cards / Grids ---------------- */
.grid { display: grid; gap: 26px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card .icon-tile {
  width: 52px; height: 52px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  background: var(--gradient-accent);
  color: #fff;
  margin-bottom: 18px;
}
.card h3 { font-size: 19px; color: var(--navy); }
.card .learn-more { color: var(--blue); font-weight: 700; font-size: 14px; display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; }

/* Feature band (dark, icon list) */
.feature-band {
  background: var(--gradient-band);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 48px;
}
.feature-band h2 { color: #fff; font-size: clamp(24px, 3vw, 32px); margin-bottom: 32px; }
.feature-band .grid-2 { gap: 30px; }
.feature-item { display: flex; gap: 16px; align-items: flex-start; }
.feature-item .icon-tile {
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.25);
  flex-shrink: 0;
}
.feature-item h4 { color: #fff; margin-bottom: 4px; font-size: 17px; }
.feature-item p { color: rgba(255,255,255,0.78); margin: 0; font-size: 14.5px; }

/* Service detail columns */
.service-col {
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: 32px;
}
.service-col.is-dark {
  background: var(--gradient-band);
  color: #fff;
  border: none;
}
.service-col.is-dark h3, .service-col.is-dark p { color: #fff; }
.service-col.is-dark .checklist li { color: rgba(255,255,255,0.85); }
.service-col.is-dark .checklist li::before { background: rgba(255,255,255,0.2); color: #fff; }
.service-col h3 { color: var(--navy); font-size: 20px; }
.checklist li {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 0;
  border-top: 1px solid rgba(0,0,0,0.06);
  font-size: 14.5px;
  color: var(--text);
}
.checklist li:first-child { border-top: none; }
.checklist li::before {
  content: "✓";
  flex-shrink: 0;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--bg-alt);
  color: var(--green-deep);
  font-size: 11px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
}

/* CTA banner */
.cta-banner {
  background: var(--gradient-hero);
  border-radius: var(--radius-lg);
  padding: 56px;
  text-align: center;
  color: #fff;
}
.cta-banner h2 { color: #fff; font-size: clamp(24px, 3vw, 34px); }
.cta-banner p { color: rgba(255,255,255,0.85); max-width: 520px; margin: 0 auto 24px; }

/* ---------------- Forms ---------------- */
.form-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 42px;
  box-shadow: var(--shadow-sm);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { margin-bottom: 20px; }
.field label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 8px; color: var(--navy); }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 13px 16px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  background: var(--bg);
  font-family: var(--font);
  font-size: 15px;
  color: var(--text);
  transition: border-color .15s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--blue);
  background: #fff;
}
.field textarea { resize: vertical; min-height: 120px; }
.field-check { display: flex; align-items: flex-start; gap: 10px; font-size: 13.5px; color: var(--text-muted); }
.field-check input { width: auto; margin-top: 3px; }
.honeypot { position: absolute; left: -9999px; opacity: 0; height: 0; }

.contact-info { display: flex; flex-direction: column; gap: 24px; }
.contact-info .info-item { display: flex; gap: 16px; align-items: flex-start; }
.contact-info h4 { color: var(--navy); margin-bottom: 2px; font-size: 16px; }
.contact-info p { margin: 0; }
.contact-info .icon-tile { width: 44px; height: 44px; flex-shrink: 0; }

.form-status { margin-top: 16px; font-size: 14px; font-weight: 600; display: none; }
.form-status.show { display: block; }
.form-status.ok { color: var(--green-deep); }
.form-status.err { color: #C0392B; }

/* ---------------- Blog ---------------- */
.filter-tabs {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}
.filter-tabs button {
  border: 1.5px solid var(--border);
  background: var(--surface);
  padding: 9px 20px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  color: var(--text);
  transition: all .15s ease;
}
.filter-tabs button.active, .filter-tabs button:hover {
  background: var(--gradient-accent);
  color: #fff;
  border-color: transparent;
}

.blog-card { padding: 0; overflow: hidden; }
.blog-card img { width: 100%; height: 190px; object-fit: cover; }
.blog-card .blog-body { padding: 22px; }
.blog-tag {
  display: inline-block;
  background: var(--gradient-accent);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 12px;
}
.blog-card h3 { font-size: 18px; color: var(--navy); margin-bottom: 8px; }
.blog-date { font-size: 13px; color: var(--text-muted); }
.blog-empty { text-align: center; color: var(--text-muted); padding: 40px; grid-column: 1 / -1; }

/* ---------------- Apps ---------------- */
.app-card { text-align: left; }
.app-icon {
  width: 64px; height: 64px;
  border-radius: 16px;
  margin-bottom: 18px;
  box-shadow: var(--shadow-sm);
}
.store-badges { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.store-badges a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px 14px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--navy);
}
.store-badges a:hover { border-color: var(--blue); color: var(--blue); }
.store-badges a svg { flex-shrink: 0; }
.phone-shot { border-radius: 20px; box-shadow: var(--shadow-lg); border: 6px solid var(--navy); }

/* ---------------- Footer ---------------- */
.site-footer { background: var(--navy); color: rgba(255,255,255,0.75); padding: 64px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.site-footer .brand { color: #fff; }
.site-footer p { color: rgba(255,255,255,0.6); }
.footer-col h5 { color: #fff; font-size: 14px; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 16px; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul a { color: rgba(255,255,255,0.72); font-size: 14.5px; }
.footer-col ul a:hover { color: var(--green-light); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13.5px;
}
.social-row { display: flex; gap: 12px; }
.social-row a {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.2);
  display: flex; align-items: center; justify-content: center;
}
.social-row a:hover { background: var(--gradient-accent); border-color: transparent; }
.social-row a { color: #fff; }
.social-row a svg { width: 16px; height: 16px; fill: currentColor; }

/* ---------------- Utilities ---------------- */
.mt-0 { margin-top: 0; }
.center { text-align: center; }
.stat-row { display: flex; gap: 48px; flex-wrap: wrap; }
.stat-row .stat b { display: block; font-size: 32px; color: var(--navy); }
.stat-row .stat span { color: var(--text-muted); font-size: 14px; }

/* ---------------- Responsive ---------------- */
@media (max-width: 900px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero .container { grid-template-columns: 1fr; }
  .hero-art { order: -1; }
}

/* ---------------- Admin panel ---------------- */
.admin-shell { max-width: 980px; margin: 0 auto; padding: 40px 24px 100px; }
.admin-banner {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px 22px;
  font-size: 14px;
  color: var(--text);
  margin-bottom: 28px;
}
.admin-banner strong { color: var(--navy); }
.admin-tabs { display: flex; gap: 10px; margin-bottom: 28px; }
.admin-tabs button {
  border: 1.5px solid var(--border);
  background: var(--surface);
  padding: 10px 22px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
}
.admin-tabs button.active { background: var(--gradient-accent); color: #fff; border-color: transparent; }
.admin-panel { display: none; }
.admin-panel.active { display: block; }

.admin-list { display: flex; flex-direction: column; gap: 12px; margin-bottom: 32px; }
.admin-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
}
.admin-row .meta { min-width: 0; }
.admin-row h4 { margin: 0; font-size: 15px; color: var(--navy); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.admin-row p { margin: 2px 0 0; font-size: 13px; }
.admin-row .row-actions { display: flex; gap: 8px; flex-shrink: 0; }
.admin-row .row-actions button {
  border: 1.5px solid var(--border);
  background: none;
  border-radius: var(--radius-sm);
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.admin-row .row-actions button.danger { color: #C0392B; border-color: #F1C6C0; }
.admin-row .row-actions button:hover { border-color: var(--blue); color: var(--blue); }
.admin-row .row-actions button.danger:hover { border-color: #C0392B; color: #C0392B; }

.admin-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 10px; }
.admin-section-title { font-size: 16px; font-weight: 700; color: var(--navy); margin: 32px 0 14px; }

@media (max-width: 720px) {
  .nav-links, .nav-actions .btn { display: none; }
  .nav-toggle { display: flex; }
  .site-header.open .nav-links {
    display: flex;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: #fff;
    flex-direction: column;
    padding: 20px 24px 28px;
    border-bottom: 1px solid var(--border);
    gap: 18px;
  }
  .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .feature-band, .form-card, .cta-banner { padding: 32px 22px; }
  .section { padding: 60px 0; }
}
