/* =========================================================
   Zerothcode IT Solution - main stylesheet
   No frameworks. Mobile breakpoint: max-width 1024px = app shell.
   ========================================================= */

:root {
  --color-dark: #0f1115;
  --color-dark-2: #171a20;
  --color-red: #e63946;
  --color-red-dark: #c1121f;
  --color-light: #ffffff;
  --color-gray-50: #f7f8fa;
  --color-gray-100: #eef0f3;
  --color-text: #1b1d22;
  --color-text-muted: #5b5f6a;
  --color-text-invert: #f5f6f8;
  --color-border: #e5e7eb;

  --font-base: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --header-height: 72px;
  --mobile-header-height: 60px;
  --bottom-nav-height: 64px;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;

  --shadow-sm: 0 1px 3px rgba(0,0,0,.08);
  --shadow-md: 0 8px 24px rgba(0,0,0,.10);
  --shadow-lg: 0 16px 40px rgba(0,0,0,.16);

  --transition: 0.2s ease;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-base);
  color: var(--color-text);
  background: var(--color-light);
  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; }
button { font-family: inherit; cursor: pointer; }
h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 .5em; }
p { margin: 0 0 1em; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 15px;
  border: 2px solid transparent;
  transition: var(--transition);
  min-height: 44px;
  white-space: nowrap;
}
.btn-primary { background: var(--color-red); color: #fff; }
.btn-primary:hover { background: var(--color-red-dark); }
.btn-outline { border-color: var(--color-red); color: var(--color-red); background: transparent; }
.btn-outline:hover { background: var(--color-red); color: #fff; }
.btn-crm {
  background: transparent;
  border-color: var(--color-text-invert);
  color: var(--color-text-invert);
  padding: 8px 16px;
  font-size: 13px;
}
.btn-crm:hover { background: var(--color-red); border-color: var(--color-red); color: #fff; }

/* =========================================================
   HEADER / NAV - Desktop
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-dark);
  height: var(--header-height);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}
.logo-link { display: flex; align-items: center; }
.logo-img { height: 36px; width: auto; }

.main-nav .nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-item { position: relative; }
.nav-item > a,
.nav-link.dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 14px;
  color: var(--color-text-invert);
  font-size: 15px;
  font-weight: 500;
  background: none;
  border: none;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}
.nav-item > a:hover,
.nav-link.dropdown-toggle:hover,
.nav-item.has-dropdown:hover .dropdown-toggle {
  color: var(--color-red);
}
.chev { transition: transform var(--transition); }

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 240px;
  background: var(--color-light);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: var(--transition);
}
.nav-item.has-dropdown:hover .dropdown-menu,
.nav-item.has-dropdown.open .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.nav-item.has-dropdown:hover .chev,
.nav-item.has-dropdown.open .chev { transform: rotate(180deg); }
.dropdown-menu li a {
  display: block;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  color: var(--color-text);
  font-size: 14px;
}
.dropdown-menu li a:hover { background: var(--color-gray-50); color: var(--color-red); }

.header-actions { display: flex; align-items: center; gap: 12px; }
.icon-btn {
  background: none;
  border: none;
  color: var(--color-text-invert);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: var(--transition);
}
.icon-btn:hover { background: rgba(255,255,255,.08); color: var(--color-red); }
.hamburger { display: none; }
.hamburger span {
  display: block;
  width: 20px;
  height: 2px;
  background: currentColor;
  margin: 3px 0;
  transition: var(--transition);
}

.search-bar {
  max-height: 0;
  overflow: hidden;
  background: var(--color-dark-2);
  transition: max-height var(--transition);
}
.search-bar.open { max-height: 80px; }
.search-form {
  display: flex;
  gap: 8px;
  padding: 14px 20px;
  max-width: 1200px;
  margin: 0 auto;
}
.search-form input {
  flex: 1;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid #333;
  background: #1f232b;
  color: #fff;
  min-height: 44px;
}
.search-form button {
  padding: 10px 20px;
  background: var(--color-red);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  min-height: 44px;
}

.mobile-menu-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 199;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}
.mobile-menu-backdrop.open { opacity: 1; visibility: visible; }

.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  right: 0;
  height: 100%;
  width: min(320px, 85vw);
  background: var(--color-dark);
  z-index: 200;
  transform: translateX(100%);
  transition: transform var(--transition);
  overflow-y: auto;
  padding: 24px 0;
}
.mobile-menu.open { transform: translateX(0); }
.mobile-nav-list li a,
.mobile-accordion-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 14px 24px;
  color: var(--color-text-invert);
  font-size: 16px;
  font-weight: 500;
  background: none;
  border: none;
  min-height: 44px;
}
.mobile-accordion-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition);
  background: rgba(255,255,255,.03);
}
.mobile-accordion.open .mobile-accordion-panel { max-height: 400px; }
.mobile-accordion.open .chev { transform: rotate(180deg); }
.mobile-accordion-panel li a { padding: 12px 40px; font-size: 14px; font-weight: 400; }
.mobile-crm-link { color: var(--color-red) !important; }

.bottom-nav { display: none; }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  background: linear-gradient(160deg, var(--color-dark) 0%, var(--color-dark-2) 100%);
  color: var(--color-text-invert);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 40px;
  align-items: center;
}
.hero-eyebrow {
  display: inline-block;
  color: var(--color-red);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.hero h1 { font-size: 44px; margin-bottom: 20px; }
.hero p.lead { font-size: 18px; color: #c7c9d1; max-width: 560px; }
.hero-ctas { display: flex; gap: 14px; margin-top: 28px; flex-wrap: wrap; }
.hero-graphic { width: 100%; height: auto; }

/* =========================================================
   SECTIONS (generic)
   ========================================================= */
.section { padding: 80px 0; }
.section-alt { background: var(--color-gray-50); }
.section-header { max-width: 640px; margin: 0 auto 48px; text-align: center; }
.section-eyebrow {
  color: var(--color-red);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.section-header h2 { font-size: 34px; }
.section-header p { color: var(--color-text-muted); }

/* Services grid */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.card {
  background: var(--color-light);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 32px 28px;
  transition: var(--transition);
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); border-color: transparent; }
.card-icon {
  width: 52px; height: 52px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(230,57,70,.1);
  color: var(--color-red);
  border-radius: var(--radius-sm);
  margin-bottom: 18px;
}
.card h3 { font-size: 19px; }
.card p { color: var(--color-text-muted); font-size: 15px; margin-bottom: 14px; }
.card-link { color: var(--color-red); font-weight: 600; font-size: 14px; }

/* Why choose us */
.why-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.why-item { text-align: center; padding: 20px; }
.why-item .num { font-size: 36px; font-weight: 800; color: var(--color-red); }
.why-item h4 { font-size: 16px; }
.why-item p { color: var(--color-text-muted); font-size: 14px; }

/* Client logos */
.client-logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 40px;
}
.client-logos img { max-height: 44px; width: auto; opacity: .7; filter: grayscale(100%); transition: var(--transition); }
.client-logos img:hover { opacity: 1; filter: none; }
.client-logos-empty { color: var(--color-text-muted); text-align: center; font-size: 14px; }

/* CTA band */
.cta-band {
  background: var(--color-red);
  color: #fff;
  padding: 60px 0;
  text-align: center;
}
.cta-band h2 { font-size: 30px; margin-bottom: 12px; }
.cta-band .btn-primary { background: #fff; color: var(--color-red); }
.cta-band .btn-primary:hover { background: var(--color-dark); color: #fff; }

/* =========================================================
   SERVICE PAGE TEMPLATE
   ========================================================= */
.service-hero {
  background: linear-gradient(160deg, var(--color-dark) 0%, var(--color-dark-2) 100%);
  color: var(--color-text-invert);
  padding: 64px 0 56px;
}
.breadcrumbs { font-size: 13px; color: #a7a9b3; margin-bottom: 18px; }
.breadcrumbs a { color: #c7c9d1; }
.breadcrumbs a:hover { color: var(--color-red); }
.service-hero h1 { font-size: 38px; }
.service-hero .subtitle { color: var(--color-red); font-weight: 600; font-size: 16px; margin-bottom: 10px; }
.service-hero p.lead { color: #c7c9d1; max-width: 700px; font-size: 17px; }

.benefits-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.benefit-item { display: flex; gap: 14px; padding: 18px; }
.benefit-check {
  flex-shrink: 0;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: rgba(230,57,70,.1);
  color: var(--color-red);
  display: flex; align-items: center; justify-content: center;
}
.benefit-item h4 { font-size: 16px; margin-bottom: 4px; }
.benefit-item p { font-size: 14px; color: var(--color-text-muted); margin: 0; }

.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--color-border); }
.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 16px;
  font-weight: 600;
  min-height: 44px;
}
.faq-question .chev { transition: transform var(--transition); flex-shrink: 0; }
.faq-item.open .chev { transform: rotate(180deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition);
  color: var(--color-text-muted);
  font-size: 15px;
}
.faq-item.open .faq-answer { max-height: 300px; padding-bottom: 20px; }

.related-services { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.related-services a {
  padding: 10px 20px;
  border: 1px solid var(--color-border);
  border-radius: 30px;
  font-size: 14px;
  font-weight: 600;
}
.related-services a:hover { border-color: var(--color-red); color: var(--color-red); }

/* =========================================================
   ABOUT PAGE
   ========================================================= */
.entity-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.entity-card {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 32px;
}
.entity-card h3 { color: var(--color-red); }
.entity-card dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; font-size: 14px; margin-top: 16px; }
.entity-card dt { color: var(--color-text-muted); }
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.team-item { text-align: center; }
.team-avatar {
  width: 96px; height: 96px;
  border-radius: 50%;
  margin: 0 auto 12px;
  background: var(--color-gray-100);
  display: flex; align-items: center; justify-content: center;
  color: var(--color-text-muted);
  font-weight: 700;
  font-size: 28px;
}

/* =========================================================
   CONTACT PAGE
   ========================================================= */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px; }
.contact-form .form-group { margin-bottom: 18px; }
.contact-form label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 15px;
  min-height: 44px;
}
.contact-form textarea { min-height: 140px; resize: vertical; }
.contact-info-card {
  background: var(--color-gray-50);
  border-radius: var(--radius-md);
  padding: 24px;
  margin-bottom: 16px;
}
.contact-info-card h4 { color: var(--color-red); font-size: 15px; }
.map-embed { border-radius: var(--radius-md); overflow: hidden; margin-top: 16px; border: 1px solid var(--color-border); }
.map-embed iframe { width: 100%; height: 260px; border: 0; display: block; }
.form-status { font-size: 14px; margin-top: 8px; display: none; }
.form-status.success { color: #1a7f37; display: block; }
.form-status.error { color: var(--color-red); display: block; }

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer { background: var(--color-dark); color: #c7c9d1; padding: 60px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr 1fr; gap: 32px; padding-bottom: 40px; }
.footer-logo { height: 32px; margin-bottom: 14px; }
.footer-tagline { font-size: 14px; color: #9a9caa; }
.footer-col h3 { color: #fff; font-size: 16px; margin-bottom: 14px; }
.footer-col address { font-style: normal; font-size: 14px; margin-bottom: 10px; }
.footer-meta { font-size: 13px; color: #9a9caa; margin-bottom: 4px; }
.footer-col a:hover { color: var(--color-red); }
.footer-dot { color: #555; }
.social-icons { display: flex; gap: 10px; margin-top: 16px; }
.social-icons a {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid #333;
  border-radius: 50%;
  transition: var(--transition);
}
.social-icons a:hover { background: var(--color-red); border-color: var(--color-red); color: #fff; }
.footer-bottom {
  border-top: 1px solid #262931;
  padding: 20px 0;
  font-size: 13px;
  text-align: center;
  color: #7c7e8a;
}

/* =========================================================
   RESPONSIVE - app shell for tablet & mobile (<=1024px)
   ========================================================= */
@media (max-width: 1024px) {
  body { padding-top: var(--mobile-header-height); padding-bottom: var(--bottom-nav-height); }

  .site-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: var(--mobile-header-height);
  }
  .main-nav { display: none; }
  .btn-crm { display: none; }
  .hamburger { display: flex; flex-direction: column; justify-content: center; }
  .mobile-menu-backdrop, .mobile-menu { display: block; }

  .bottom-nav {
    display: flex;
    position: fixed;
    bottom: 0; left: 0; right: 0;
    height: var(--bottom-nav-height);
    background: var(--color-dark);
    z-index: 150;
    padding-bottom: env(safe-area-inset-bottom);
  }
  .bottom-nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    color: #9a9caa;
    font-size: 11px;
    min-height: 44px;
  }
  .bottom-nav-item.active { color: var(--color-red); }

  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-ctas { justify-content: center; }
  .hero h1 { font-size: 32px; }
  .grid-3, .grid-2, .why-list, .benefits-grid, .entity-cards, .team-grid, .contact-grid, .footer-grid {
    grid-template-columns: 1fr;
  }
  .why-list { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .section { padding: 56px 0; }
}

@media (max-width: 560px) {
  .why-list, .team-grid { grid-template-columns: 1fr 1fr; }
  .hero h1 { font-size: 26px; }
  .section-header h2 { font-size: 26px; }
}
