/* =========================================================
   Cyberia IT Solutions — Shared Stylesheet
   ========================================================= */

:root {
  --navy: #0b2a4a;
  --navy-light: #123a63;
  --navy-lighter: #1c4d7c;
  --teal: #0e9aa3;
  --teal-dark: #0b7f87;
  --orange: #f2994a;
  --mercury: #6b4fbb;
  --mercury-dark: #55399c;
  --bg-light: #f5f8fb;
  --bg-white: #ffffff;
  --text: #1f2937;
  --text-light: #5b6472;
  --border: #e2e8f0;
  --radius: 10px;
  --shadow: 0 4px 16px rgba(11, 42, 74, 0.08);
  --shadow-lg: 0 12px 32px rgba(11, 42, 74, 0.14);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--bg-white);
  line-height: 1.6;
}

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

a { color: var(--teal-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 20px;
}

h1, h2, h3, h4 { color: var(--navy); line-height: 1.25; margin: 0 0 14px; }
h1 { font-size: 2.4rem; }
h2 { font-size: 1.9rem; }
h3 { font-size: 1.3rem; }
p { margin: 0 0 14px; color: var(--text-light); }

.eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--teal-dark);
  margin-bottom: 8px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 12px 26px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }

.btn-primary { background: var(--orange); color: #fff; }
.btn-primary:hover { background: #e08838; box-shadow: 0 6px 16px rgba(242,153,74,0.35); }

.btn-outline { background: transparent; color: #fff; border-color: rgba(255,255,255,0.7); }
.btn-outline:hover { background: rgba(255,255,255,0.12); }

.btn-teal { background: var(--teal); color: #fff; }
.btn-teal:hover { background: var(--teal-dark); box-shadow: 0 6px 16px rgba(14,154,163,0.3); }

.btn-mercury { background: var(--mercury); color: #fff; }
.btn-mercury:hover { background: var(--mercury-dark); box-shadow: 0 6px 16px rgba(107,79,187,0.35); }

.btn-small { padding: 8px 16px; font-size: 0.85rem; }

/* ---------- Top Bar ---------- */
.topbar {
  background: var(--navy-light);
  color: #cfe3f2;
  font-size: 0.82rem;
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 6px;
  padding-bottom: 6px;
  flex-wrap: wrap;
  gap: 6px;
}
.topbar a { color: #cfe3f2; }
.topbar span { margin-right: 18px; }

/* ---------- Header / Nav ---------- */
header.site-header {
  background: var(--bg-white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 20px;
}
.logo {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--navy);
  white-space: nowrap;
}
.logo span { color: var(--teal); }
.logo small {
  display: block;
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 1px;
  color: var(--text-light);
  text-transform: uppercase;
}

nav.main-nav ul {
  list-style: none;
  display: flex;
  gap: 6px;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}
nav.main-nav a {
  color: var(--navy);
  font-weight: 600;
  font-size: 0.93rem;
  padding: 8px 12px;
  border-radius: 6px;
  display: inline-block;
}
nav.main-nav a:hover, nav.main-nav a.active {
  background: var(--bg-light);
  color: var(--teal-dark);
  text-decoration: none;
}

.nav-cta { display: flex; align-items: center; gap: 12px; }

.menu-toggle {
  display: none;
  background: none;
  border: 2px solid var(--navy);
  border-radius: 6px;
  padding: 6px 10px;
  font-size: 1.1rem;
  cursor: pointer;
}

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 60%, var(--navy-lighter) 100%);
  color: #fff;
  padding: 70px 0;
}
.hero .container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}
.hero h1 { color: #fff; }
.hero p.lead { color: #d7e6f2; font-size: 1.08rem; max-width: 520px; }
.hero-actions { display: flex; gap: 14px; margin-top: 22px; flex-wrap: wrap; }
.hero-stats {
  display: flex;
  gap: 26px;
  margin-top: 34px;
  flex-wrap: wrap;
}
.hero-stats div strong { display: block; font-size: 1.5rem; color: var(--teal); }
.hero-stats div span { font-size: 0.82rem; color: #cfe3f2; }

.hero-art {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: var(--radius);
  padding: 26px;
}
.hero-art ul { list-style: none; margin: 0; padding: 0; }
.hero-art li {
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.12);
  color: #e6f0f8;
  font-size: 0.95rem;
}
.hero-art li:last-child { border-bottom: none; }

/* generic page hero (sub pages) */
.page-hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  color: #fff;
  padding: 46px 0;
  text-align: center;
}
.page-hero h1 { color: #fff; margin-bottom: 8px; }
.page-hero p { color: #d7e6f2; max-width: 640px; margin: 0 auto; }
.page-hero.mercury-hero {
  background: linear-gradient(135deg, var(--mercury-dark) 0%, var(--mercury) 100%);
}

/* ---------- Sections ---------- */
section { padding: 60px 0; }
.section-alt { background: var(--bg-light); }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 40px; }

/* ---------- Cards / Grid ---------- */
.grid { display: grid; gap: 24px; }
.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: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card .icon {
  width: 46px; height: 46px;
  border-radius: 10px;
  background: var(--bg-light);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 14px;
}
.card ul { padding-left: 18px; color: var(--text-light); margin: 10px 0 0; }
.card ul li { margin-bottom: 6px; }
.card h3 { margin-bottom: 8px; }
.card a.card-link { font-weight: 700; font-size: 0.9rem; }

/* image box inside a card — drop a photo in at the named path and it fills this box */
.card-image {
  width: 100%;
  height: 150px;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 16px;
  background: var(--bg-light);
  border: 1px dashed var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
}
.card-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card-image .img-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-size: 0.76rem;
  color: var(--text-light);
  text-align: center;
  padding: 8px;
}
.card-image .img-placeholder span { font-family: monospace; font-size: 0.72rem; }

/* ---------- Owner / leadership profile cards ---------- */
.owner-card { text-align: center; }
.owner-photo {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 16px;
  background: var(--bg-light);
  border: 1px dashed var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
}
.owner-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.owner-photo .img-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-size: 0.72rem;
  color: var(--text-light);
  text-align: center;
  padding: 8px;
}
.owner-photo .img-placeholder span { font-family: monospace; font-size: 0.66rem; }
.owner-card h3 { margin-bottom: 2px; }
.owner-title { color: var(--teal-dark); font-weight: 600; font-size: 0.88rem; margin-bottom: 10px; }
.owner-card p.owner-bio { color: var(--text-light); font-size: 0.92rem; margin-bottom: 10px; }
.owner-card a.owner-email { font-weight: 600; font-size: 0.9rem; }

/* colored top-border variants for service cards */
.card.accent-navy { border-top: 4px solid var(--navy); }
.card.accent-teal { border-top: 4px solid var(--teal); }
.card.accent-orange { border-top: 4px solid var(--orange); }
.card.accent-mercury { border-top: 4px solid var(--mercury); }

/* ---------- Mercury spotlight (home) ---------- */
.mercury-spotlight {
  background: linear-gradient(135deg, var(--mercury-dark), var(--mercury));
  color: #fff;
  border-radius: var(--radius);
  padding: 46px;
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 30px;
  align-items: center;
}
.mercury-spotlight h2, .mercury-spotlight p { color: #fff; }
.mercury-spotlight .eyebrow { color: #e7defc; }
.mercury-spotlight ul { list-style: none; padding: 0; margin: 18px 0; }
.mercury-spotlight li { padding: 6px 0; }
.mercury-spotlight li:before { content: "✓ "; font-weight: 700; }

/* ---------- Stats strip ---------- */
.stats-strip {
  background: var(--navy);
  color: #fff;
}
.stats-strip .grid-4 { text-align: center; }
.stats-strip strong { display: block; font-size: 2rem; color: var(--teal); }
.stats-strip span { font-size: 0.85rem; color: #cfe3f2; }

/* ---------- Tables (AMC comparison) ---------- */
table.plan-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  box-shadow: var(--shadow);
  border-radius: var(--radius);
  overflow: hidden;
}
table.plan-table th, table.plan-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  font-size: 0.94rem;
}
table.plan-table th {
  background: var(--navy);
  color: #fff;
}
table.plan-table tr:last-child td { border-bottom: none; }
table.plan-table tr:hover td { background: var(--bg-light); }

/* ---------- CTA banner ---------- */
.cta-banner {
  background: linear-gradient(135deg, var(--teal-dark), var(--teal));
  color: #fff;
  text-align: center;
  border-radius: var(--radius);
  padding: 46px;
}
.cta-banner h2 { color: #fff; }
.cta-banner p { color: #eafbfb; }

/* ---------- Contact form ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid .full { grid-column: 1 / -1; }
label { display: block; font-weight: 600; font-size: 0.88rem; margin-bottom: 6px; color: var(--navy); }
input, select, textarea {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--text);
}
textarea { resize: vertical; min-height: 110px; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--teal); border-color: var(--teal); }

.contact-info-card {
  background: var(--navy);
  color: #fff;
  border-radius: var(--radius);
  padding: 30px;
}
.contact-info-card h3 { color: #fff; }
.contact-info-card p, .contact-info-card a { color: #d7e6f2; }
.contact-info-card .info-row { margin-bottom: 18px; }
.contact-info-card .info-row strong { display: block; color: #fff; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 4px; }

/* ---------- Breadcrumb ---------- */
.breadcrumb { font-size: 0.85rem; color: var(--text-light); margin-bottom: 6px; }

/* ---------- Footer ---------- */
footer.site-footer {
  background: #071c30;
  color: #b9cbdc;
  padding: 50px 0 20px;
}
footer.site-footer h4 { color: #fff; font-size: 1rem; }
footer.site-footer a { color: #b9cbdc; }
footer.site-footer a:hover { color: #fff; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 30px;
  padding-bottom: 30px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 8px; font-size: 0.92rem; }
.footer-bottom {
  padding-top: 18px;
  text-align: center;
  font-size: 0.82rem;
  color: #7f93a6;
}

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.badge {
  display: inline-block;
  background: var(--bg-light);
  color: var(--navy);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  margin-bottom: 10px;
}
.badge.mercury-badge { background: #efe9fb; color: var(--mercury-dark); }

/* ---------- Testimonials ---------- */
.stars { color: var(--orange); font-size: 1rem; margin-bottom: 10px; letter-spacing: 2px; }
.testimonial-author { font-weight: 700; color: var(--navy); font-size: 0.88rem; margin-top: 12px; }
.testimonial-author span { display: block; font-weight: 500; color: var(--text-light); font-size: 0.8rem; }

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

@media (max-width: 700px) {
  nav.main-nav {
    display: none;
    width: 100%;
    order: 3;
  }
  nav.main-nav.open { display: block; }
  nav.main-nav ul { flex-direction: column; gap: 0; }
  nav.main-nav a { display: block; padding: 10px 4px; border-bottom: 1px solid var(--border); }
  .menu-toggle { display: inline-block; }
  .nav-wrap { flex-wrap: wrap; }
  .nav-cta .btn span.btn-text-full { display: none; }
  h1 { font-size: 1.9rem; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  section { padding: 44px 0; }
  .mercury-spotlight, .cta-banner { padding: 26px; }
}
