/* ===========================
   Peoria IT - Main Stylesheet
   =========================== */

:root {
  --color-accent: #6237C8;
  --color-accent-light: #7b52d9;
  --color-white: #FFFFFF;
  --color-linen: #FAF5F2;
  --color-champagne: #F4E9E1;
  --color-text: #1a1a2e;
  --color-text-muted: #555;
  --color-text-light: #fff;

  --font-heading: "p22-mackinac-pro", Georgia, "Times New Roman", serif;
  --font-body: "Eudoxus Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --max-width: 1100px;
  --section-padding: 5rem 1.5rem;
  --card-radius: 12px;
  --card-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

/* ---- Reset ---- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--color-text);
  line-height: 1.6;
  background: var(--color-white);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--color-accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* ---- Typography ---- */
h1, h2, h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-text);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; margin-bottom: 0.75rem; }
h3 { font-size: 1.25rem; margin-bottom: 0.5rem; }

/* ---- Layout ---- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: var(--section-padding);
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 3rem;
}

.section-header p {
  margin-top: 0.75rem;
  color: var(--color-text-muted);
  font-size: 1.1rem;
}

/* ---- Navbar ---- */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  background: var(--color-white);
  border-bottom: 1px solid #eee;
  position: sticky;
  top: 0;
  z-index: 100;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--color-text);
  text-decoration: none;
}

.navbar-brand img {
  height: 40px;
  width: 40px;
}

.navbar-contact {
  font-weight: 500;
  color: var(--color-accent);
}

/* ---- Hero ---- */
.hero {
  background: var(--color-linen);
  padding: 4rem 1.5rem;
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.hero h1 {
  margin-bottom: 1.25rem;
  color: var(--color-accent);
}

.hero p {
  font-size: 1.15rem;
  color: var(--color-text-muted);
  line-height: 1.7;
}

.hero-image {
  border-radius: var(--card-radius);
  box-shadow: var(--card-shadow);
  width: 100%;
  max-height: 500px;
  object-fit: cover;
}

/* ---- Card Grid ---- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--color-white);
  border-radius: var(--card-radius);
  padding: 2rem 1.5rem;
  box-shadow: var(--card-shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.card h3 {
  color: var(--color-accent);
}

.card p {
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

/* ---- 3-column features ---- */
.features-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.feature {
  background: var(--color-white);
  border-radius: var(--card-radius);
  padding: 2rem 1.5rem;
  box-shadow: var(--card-shadow);
}

.feature h3 {
  color: var(--color-accent);
}

.feature p {
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

/* ---- Section: Image Top ---- */
.section-image-top {
  text-align: center;
  margin-bottom: 2.5rem;
}

.section-image-top img {
  width: 100%;
  max-height: 400px;
  object-fit: cover;
  border-radius: var(--card-radius);
}

/* ---- Section: Overlay (Cloud Backup) ---- */
.section-overlay {
  position: relative;
  background-size: cover;
  background-position: center;
  color: var(--color-text-light);
  padding: var(--section-padding);
}

.section-overlay::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(98, 55, 200, 0.82);
}

.section-overlay .container {
  position: relative;
  z-index: 1;
}

.section-overlay .section-header h2,
.section-overlay .section-header p {
  color: var(--color-text-light);
}

.section-overlay .feature {
  background: rgba(255, 255, 255, 0.13);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.section-overlay .feature h3,
.section-overlay .feature p {
  color: var(--color-text-light);
}

/* ---- Section: Side Image (Workstation) ---- */
.side-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.side-layout img {
  border-radius: var(--card-radius);
  box-shadow: var(--card-shadow);
  width: 100%;
  object-fit: cover;
}

.side-layout .features-stack {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* ---- Server Support (4-column) ---- */
.card-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

/* ---- Advanced Services Table ---- */
.service-table {
  width: 100%;
  border-collapse: collapse;
}

.service-table tr {
  border-bottom: 1px solid #e8e0d8;
  transition: background 0.15s;
}

.service-table tr:hover {
  background: var(--color-linen);
}

.service-table td {
  padding: 1.25rem 1rem;
  vertical-align: top;
}

.service-table .service-name {
  font-weight: 700;
  color: var(--color-accent);
  white-space: nowrap;
  width: 180px;
}

.service-table .service-desc {
  color: var(--color-text-muted);
}

/* ---- SVG Icons in Cards ---- */
.card .icon,
.feature .icon {
  width: 40px;
  height: 40px;
  margin-bottom: 1rem;
}

/* ---- Contact ---- */
.contact {
  background: var(--color-champagne);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  max-width: 700px;
  margin: 0 auto;
}

.contact-item h3 {
  color: var(--color-accent);
  margin-bottom: 0.5rem;
}

.contact-item p {
  color: var(--color-text-muted);
  font-size: 1.05rem;
}

.contact-item a {
  font-weight: 500;
}

/* ---- Footer ---- */
.footer {
  background: var(--color-text);
  color: rgba(255, 255, 255, 0.6);
  text-align: center;
  padding: 2rem 1.5rem;
  font-size: 0.9rem;
}

/* ---- Alternating section backgrounds ---- */
.bg-white { background: var(--color-white); }
.bg-linen { background: var(--color-linen); }
.bg-champagne { background: var(--color-champagne); }

/* ==============================
   Responsive — Tablet (<=900px)
   ============================== */
@media (max-width: 900px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.75rem; }

  .hero {
    padding: 3rem 1.5rem;
  }

  .hero .container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem;
  }

  .hero-image {
    max-width: 520px;
    max-height: 360px;
    margin: 0 auto;
  }

  .features-3 {
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
  }

  .side-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .side-layout img {
    max-height: 350px;
    width: 100%;
    object-fit: cover;
  }

  .card-grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .section-image-top img {
    max-height: 300px;
  }
}

/* ==============================
   Responsive — Mobile (<=600px)
   ============================== */
@media (max-width: 600px) {
  h1 { font-size: 1.65rem; }
  h2 { font-size: 1.4rem; }
  h3 { font-size: 1.1rem; }

  .section {
    padding: 2.5rem 1rem;
  }

  .section-header {
    margin-bottom: 2rem;
  }

  .section-header p {
    font-size: 1rem;
  }

  .navbar {
    padding: 0.75rem 1rem;
    gap: 0.5rem;
  }

  .navbar-brand {
    font-size: 1.1rem;
    gap: 0.5rem;
  }

  .navbar-brand img {
    width: 32px;
    height: 32px;
  }

  .navbar-contact {
    font-size: 0.9rem;
  }

  .hero {
    padding: 2rem 1rem;
  }

  .hero .container {
    gap: 1.5rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .hero-image {
    max-width: 100%;
    max-height: 280px;
  }

  .card-grid,
  .card-grid-4 {
    grid-template-columns: 1fr;
  }

  .features-3 {
    grid-template-columns: 1fr;
  }

  .card,
  .feature {
    padding: 1.5rem 1.25rem;
  }

  .section-image-top img {
    max-height: 220px;
    border-radius: 8px;
  }

  .side-layout img {
    max-height: 260px;
  }

  .service-table .service-name {
    display: block;
    width: auto;
    margin-bottom: 0.25rem;
  }

  .service-table td {
    display: block;
    padding: 0.5rem 1rem;
  }

  .service-table tr {
    display: block;
    padding: 0.75rem 0;
  }
}
