/*
Theme Name: IO Consulting Services
Theme URI: https://ioconsulting.net
Author: IO Consulting Services
Description: Professional IT Managed Services Provider theme
Version: 1.0.0
*/

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy: #0f172a;
  --navy-mid: #1e293b;
  --blue: #2563eb;
  --blue-light: #3b82f6;
  --blue-pale: #eff6ff;
  --white: #ffffff;
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-400: #94a3b8;
  --gray-600: #475569;
  --gray-700: #334155;
  --gold: #f59e0b;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--navy);
  background: var(--white);
  line-height: 1.6;
  font-size: 16px;
}

a { color: var(--blue); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--blue-light); }
img { max-width: 100%; height: auto; display: block; }

.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.2s;
  border: 2px solid transparent;
}
.btn-primary {
  background: var(--blue);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--blue-light);
  color: var(--white);
}
.btn-outline {
  background: transparent;
  border-color: var(--white);
  color: var(--white);
}
.btn-outline:hover {
  background: var(--white);
  color: var(--navy);
}

/* ===== HEADER / NAV ===== */
#site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: var(--navy);
  box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.site-logo {
  font-size: 22px;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.5px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.site-logo span { color: var(--blue-light); } /* legacy — used by the original text-only logo */
.site-logo .badge {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #fff;
  color: var(--navy);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: -0.8px;
  position: relative;
  flex-shrink: 0;
  transition: transform 0.2s;
}
.site-logo .badge::after {
  content: '';
  position: absolute;
  inset: -3px;
  border: 2px solid var(--blue-light);
  border-radius: 50%;
  opacity: 0.5;
}
.site-logo:hover { color: var(--white); }
.site-logo:hover .badge { transform: scale(1.05); }

.main-nav { display: flex; align-items: center; gap: 8px; }
.main-nav a {
  color: var(--gray-400);
  font-size: 14px;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 6px;
  transition: all 0.2s;
}
.main-nav a:hover { color: var(--white); background: var(--navy-mid); }
.main-nav .btn-primary { color: var(--white); padding: 9px 20px; font-size: 14px; }
.main-nav .btn-primary:hover { color: var(--white); }

.nav-phone {
  color: var(--gray-400) !important;
  font-size: 14px;
}

/* ===== HERO ===== */
#hero {
  background: linear-gradient(135deg, var(--navy) 0%, #1e3a5f 100%);
  padding: 160px 0 100px;
  position: relative;
  overflow: hidden;
}
#hero::before {
  content: '';
  position: absolute;
  top: -50%; right: -10%;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(37,99,235,0.15) 0%, transparent 70%);
  pointer-events: none;
}
.hero-inner {
  display: grid;
  grid-template-columns: 55fr 45fr;
  gap: 56px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero-content { position: relative; z-index: 1; }
.hero-image img {
  width: 100%;
  border-radius: 16px;
  box-shadow: 0 32px 80px rgba(0,0,0,0.45);
  display: block;
}
.hero-badge {
  display: inline-block;
  background: rgba(59,130,246,0.2);
  color: var(--blue-light);
  border: 1px solid rgba(59,130,246,0.3);
  padding: 6px 16px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-bottom: 24px;
  text-transform: uppercase;
}
.hero-content h1 {
  font-size: clamp(36px, 5vw, 58px);
  font-weight: 800;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 24px;
  letter-spacing: -1px;
}
.hero-content h1 span { color: var(--blue-light); }
.hero-content p {
  font-size: 18px;
  color: #94a3b8;
  margin-bottom: 40px;
  line-height: 1.7;
  max-width: 560px;
}
.hero-buttons { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; }
.hero-phone {
  color: var(--gray-400);
  font-size: 15px;
}
.hero-phone strong { color: var(--white); }

/* ===== TRUST BAR ===== */
#trust-bar {
  background: var(--navy-mid);
  padding: 20px 0;
  border-top: 1px solid rgba(255,255,255,0.05);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.trust-items {
  display: flex;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--gray-400);
  font-size: 14px;
  font-weight: 500;
}
.trust-item svg { color: var(--blue-light); flex-shrink: 0; }

/* ===== SECTIONS ===== */
section { padding: 88px 0; }
.section-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 12px;
}
.section-title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  color: var(--navy);
  line-height: 1.2;
  letter-spacing: -0.5px;
  margin-bottom: 16px;
}
.section-sub {
  font-size: 17px;
  color: var(--gray-600);
  max-width: 560px;
  line-height: 1.7;
}
.section-header { margin-bottom: 56px; }
.section-header.centered { text-align: center; }
.section-header.centered .section-sub { margin: 0 auto; }

/* ===== SERVICES ===== */
#services { background: var(--gray-50); }
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}
.service-card {
  background: var(--white);
  border-radius: 12px;
  padding: 32px;
  border: 1px solid #e2e8f0;
  transition: all 0.25s;
}
.service-card:hover {
  border-color: var(--blue-light);
  box-shadow: 0 8px 30px rgba(37,99,235,0.1);
  transform: translateY(-3px);
}
.service-icon {
  width: 52px; height: 52px;
  background: var(--blue-pale);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--blue);
}
.service-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 10px;
}
.service-card p {
  font-size: 14px;
  color: var(--gray-600);
  line-height: 1.65;
}

/* ===== WHY CHOOSE US ===== */
#why-us { background: var(--white); }
.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.why-content .section-sub { max-width: 100%; }
.why-list { margin-top: 32px; display: flex; flex-direction: column; gap: 20px; }
.why-item { display: flex; gap: 16px; }
.why-check {
  width: 24px; height: 24px;
  background: var(--blue);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}
.why-item h4 { font-size: 15px; font-weight: 700; color: var(--navy); margin-bottom: 4px; }
.why-item p { font-size: 14px; color: var(--gray-600); }
.why-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.stat-card {
  background: var(--navy);
  border-radius: 12px;
  padding: 32px 24px;
  text-align: center;
}
.stat-card .number {
  font-size: 42px;
  font-weight: 800;
  color: var(--blue-light);
  line-height: 1;
  margin-bottom: 8px;
}
.stat-card .label {
  font-size: 13px;
  color: var(--gray-400);
  font-weight: 500;
}

/* ===== TESTIMONIALS ===== */
#testimonials { background: var(--gray-50); }
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}
.testimonial-card {
  background: var(--white);
  border-radius: 12px;
  padding: 32px;
  border: 1px solid #e2e8f0;
}
.stars { color: var(--gold); font-size: 18px; margin-bottom: 16px; }
.testimonial-card blockquote {
  font-size: 15px;
  color: var(--gray-700);
  line-height: 1.7;
  font-style: italic;
  margin-bottom: 20px;
}
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.author-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--blue-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--blue);
  font-size: 16px;
}
.author-name { font-weight: 700; font-size: 14px; color: var(--navy); }
.author-title { font-size: 13px; color: var(--gray-400); }

/* ===== CTA BANNER ===== */
#cta-banner {
  background: linear-gradient(135deg, var(--navy) 0%, #1e3a5f 100%);
  padding: 88px 0;
  text-align: center;
}
#cta-banner h2 {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  color: var(--white);
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}
#cta-banner p {
  font-size: 17px;
  color: #94a3b8;
  margin-bottom: 40px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}
.cta-buttons { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }

/* ===== FOOTER ===== */
#site-footer {
  background: var(--navy);
  padding: 64px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}
.footer-brand p {
  font-size: 14px;
  color: var(--gray-400);
  line-height: 1.7;
  margin-top: 16px;
  max-width: 280px;
}
.footer-col h4 {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--white);
  margin-bottom: 20px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col ul li a {
  color: var(--gray-400);
  font-size: 14px;
  transition: color 0.2s;
}
.footer-col ul li a:hover { color: var(--white); }
.footer-contact p {
  font-size: 14px;
  color: var(--gray-400);
  line-height: 1.8;
}
.footer-contact strong { color: var(--white); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-bottom p { font-size: 13px; color: var(--gray-400); }

/* ===== CONTACT PAGE ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.contact-info h2 { font-size: 32px; font-weight: 800; margin-bottom: 16px; }
.contact-info p { color: var(--gray-600); margin-bottom: 32px; }
.contact-details { display: flex; flex-direction: column; gap: 20px; }
.contact-detail { display: flex; gap: 16px; align-items: flex-start; }
.contact-detail-icon {
  width: 44px; height: 44px;
  background: var(--blue-pale);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue);
  flex-shrink: 0;
}
.contact-detail h4 { font-size: 14px; font-weight: 700; margin-bottom: 4px; }
.contact-detail p { font-size: 14px; color: var(--gray-600); margin: 0; }

/* ===== FORM ===== */
.contact-form-wrap {
  background: var(--gray-50);
  border-radius: 16px;
  padding: 40px;
}
.contact-form-wrap h3 { font-size: 22px; font-weight: 700; margin-bottom: 24px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; color: var(--navy); }
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: 15px;
  font-family: var(--font);
  background: var(--white);
  transition: border-color 0.2s;
  color: var(--navy);
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* ===== PAGE HERO ===== */
.page-hero {
  background: var(--navy);
  padding: 140px 0 80px;
  text-align: center;
}
.page-hero-img {
  background-size: cover;
  background-position: center;
  position: relative;
}
.page-hero-img::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.82);
}
.page-hero-img .container { position: relative; z-index: 1; }
.page-hero h1 {
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 800;
  color: var(--white);
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}
.page-hero p { font-size: 18px; color: #94a3b8; max-width: 560px; margin: 0 auto; }

/* ===== ABOUT PHOTO ===== */
.about-photo img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 16px 48px rgba(0,0,0,0.15);
  display: block;
}
.about-stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 48px;
}

/* ===== PARTNERS ===== */
.partners-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 16px;
}
.partner-logo-card {
  background: var(--white);
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 32px 20px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  transition: all 0.25s;
}
.partner-logo-card:hover {
  border-color: var(--blue-light);
  box-shadow: 0 8px 30px rgba(37,99,235,0.1);
  transform: translateY(-3px);
}
.partner-logo-card img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  display: block;
  margin: 34px 0; /* reserves a 140px-tall logo slot so small + .logo-lg cards align */
}
.partner-logo-card.logo-lg img {
  width: 140px;
  height: 140px;
  margin: 0;
}
.partner-logo-fallback {
  width: 72px;
  height: 72px;
  background: var(--blue-pale);
  border-radius: 10px;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 13px;
  color: var(--blue);
  text-align: center;
}
.partner-logo-card span {
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-600);
  text-align: center;
}
.partner-features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}
.partner-feature-card {
  background: var(--white);
  border-radius: 12px;
  padding: 32px;
  border: 1px solid #e2e8f0;
  transition: all 0.25s;
}
.partner-feature-card:hover {
  border-color: var(--blue-light);
  box-shadow: 0 8px 30px rgba(37,99,235,0.1);
  transform: translateY(-3px);
}
.partner-feature-icon {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.partner-feature-card h3 { font-size: 18px; font-weight: 700; color: var(--navy); margin-bottom: 10px; }
.partner-feature-card p { font-size: 14px; color: var(--gray-600); line-height: 1.65; }
@media (max-width: 900px) {
  .partners-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 640px) {
  .partners-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ===== INDUSTRIES ===== */
.industries-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin-bottom: 48px;
}
.industry-card {
  background: var(--white);
  border-radius: 12px;
  padding: 32px;
  border: 1px solid #e2e8f0;
  transition: all 0.25s;
}
.industry-card:hover {
  border-color: var(--blue-light);
  box-shadow: 0 8px 30px rgba(37,99,235,0.1);
  transform: translateY(-3px);
}
a.industry-card { display: block; color: inherit; text-decoration: none; }
a.industry-card:hover { color: inherit; }
a.industry-card:hover h3 { color: var(--blue); }
.industry-icon {
  width: 56px; height: 56px;
  background: var(--blue-pale);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue);
  margin-bottom: 20px;
}
.industry-card h3 { font-size: 18px; font-weight: 700; color: var(--navy); margin-bottom: 10px; }
.industry-card p { font-size: 14px; color: var(--gray-600); line-height: 1.65; }
.hipaa-banner {
  display: flex;
  gap: 28px;
  align-items: flex-start;
  background: linear-gradient(135deg, var(--navy) 0%, #1e3a5f 100%);
  border-radius: 16px;
  padding: 40px;
  margin-top: 16px;
}
.hipaa-icon {
  width: 64px; height: 64px;
  background: rgba(37,99,235,0.25);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue-light);
  flex-shrink: 0;
}
.hipaa-text h3 { font-size: 20px; font-weight: 800; color: var(--white); margin-bottom: 12px; }
.hipaa-text p { font-size: 15px; color: #94a3b8; line-height: 1.75; margin: 0; }
@media (max-width: 640px) {
  .hipaa-banner { flex-direction: column; gap: 20px; padding: 28px 24px; }
}

/* ===== PRIVACY POLICY ===== */
.privacy-content { max-width: 780px; margin: 0 auto; }
.privacy-effective { font-size: 14px; color: var(--gray-400); margin-bottom: 40px; font-style: italic; }
.privacy-content p { font-size: 15px; color: var(--gray-600); line-height: 1.8; margin-bottom: 16px; }
.privacy-content h2 { font-size: 22px; font-weight: 800; color: var(--navy); margin: 48px 0 12px; letter-spacing: -0.3px; }
.privacy-content h3 { font-size: 16px; font-weight: 700; color: var(--navy); margin: 24px 0 8px; }
.privacy-content ul { margin: 0 0 16px 24px; }
.privacy-content ul li { font-size: 15px; color: var(--gray-600); line-height: 1.8; margin-bottom: 6px; }
.privacy-contact-block { background: var(--gray-50); border-radius: 12px; padding: 24px 28px; margin-top: 16px; border: 1px solid #e2e8f0; }
.privacy-contact-block p { margin: 0; line-height: 2; }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .why-grid, .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .why-stats { margin-top: 0; }
}
/* ===== MOBILE NAV ===== */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.mobile-menu-btn span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all 0.3s;
}
.mobile-menu-btn.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mobile-menu-btn.open span:nth-child(2) { opacity: 0; }
.mobile-menu-btn.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  display: none;
  flex-direction: column;
  background: var(--navy-mid);
  padding: 16px 24px 24px;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  color: var(--gray-400);
  font-size: 15px;
  font-weight: 500;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: color 0.2s;
}
.mobile-nav a:hover { color: var(--white); }
.mobile-nav .btn-primary {
  margin-top: 16px;
  border-bottom: none;
  border-radius: 6px;
  padding: 13px;
}

@media (max-width: 768px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-image img { height: 260px; object-fit: cover; }
  .about-stats-row { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .main-nav { display: none; }
  .mobile-menu-btn { display: flex; }
  .hero-buttons { flex-direction: column; align-items: flex-start; }
  .footer-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .trust-items { gap: 24px; }
  .cta-buttons { flex-direction: column; align-items: center; }
  .about-stats-row { grid-template-columns: 1fr 1fr; }
}
