/* ==========================================================================
   Coeus Tech LLC — Global Stylesheet
   "Intelligent Innovation"
   Mobile-first, no frameworks. Built for a polished, modern MSP/tech site.
   ========================================================================== */

/* ---------- 1. Design Tokens / CSS Variables ---------- */
:root {
  /* Brand colors */
  --navy:        #19284B;   /* primary: nav, hero, footer, headings */
  --navy-dark:   #111c37;   /* deeper navy for gradients / overlays */
  --orange:      #FB6202;   /* CTAs, accents, links */
  --orange-dark: #dc5602;   /* button hover (~12% darker) */
  --white:       #FFFFFF;
  --light-gray:  #F5F5F5;   /* alternating section backgrounds */
  --med-gray:    #CCCCCC;   /* borders / dividers */
  --dark-gray:   #333333;   /* body text on light */
  --muted:       #5a6478;   /* secondary text */

  /* Typography */
  --font-head: 'Roboto', Arial, sans-serif;
  --font-body: 'Open Sans', Arial, sans-serif;

  /* Layout */
  --container:    1140px;
  --container-pad: 24px;
  --radius:        4px;
  --radius-lg:     8px;

  /* Effects */
  --shadow-sm: 0 1px 3px rgba(25, 40, 75, 0.08);
  --shadow-md: 0 6px 18px rgba(25, 40, 75, 0.10);
  --shadow-lg: 0 14px 40px rgba(25, 40, 75, 0.16);
  --transition: 0.2s ease;

  /* Spacing rhythm */
  --section-y: 64px;
}

/* ---------- 2. Reset / Base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.65;
  color: var(--dark-gray);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: var(--orange);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover { color: var(--orange-dark); }

/* ---------- 3. Typography Scale ---------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.2;
  margin: 0 0 0.5em;
}

h1 { font-size: 2.25rem; letter-spacing: -0.5px; }   /* ~36px */
h2 { font-size: 1.875rem; }                          /* ~30px */
h3 { font-size: 1.375rem; }                          /* ~22px */
h4 { font-size: 1.125rem; }                          /* ~18px */
h5 { font-size: 1rem; text-transform: uppercase; letter-spacing: 0.06em; }
h6 { font-size: 0.875rem; }

p  { margin: 0 0 1.15rem; }
.lead { font-size: 1.2rem; color: var(--muted); line-height: 1.6; }
small, .text-small { font-size: 0.85rem; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 0.75rem;
}

@media (min-width: 760px) {
  h1 { font-size: 3rem; }       /* ~48px on desktop */
  h2 { font-size: 2.25rem; }    /* ~36px */
  h3 { font-size: 1.5rem; }
}

/* ---------- 4. Layout Helpers ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--container-pad);
}
.container-narrow { max-width: 800px; }

.section { padding: var(--section-y) 0; }
.section--alt { background: var(--light-gray); }
.section--navy { background: var(--navy); color: rgba(255,255,255,0.85); }
.section--navy h1,
.section--navy h2,
.section--navy h3 { color: var(--white); }

.section-head { max-width: 720px; margin: 0 auto 2.75rem; text-align: center; }
.section-head p { color: var(--muted); margin-bottom: 0; }

.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }

@media (min-width: 760px) {
  :root { --section-y: 88px; }
}

/* ---------- 5. Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1;
  padding: 15px 30px;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  text-align: center;
  transition: background var(--transition), color var(--transition),
              border-color var(--transition), transform var(--transition),
              box-shadow var(--transition);
}
.btn + .btn { margin-left: 0.75rem; }

.btn-primary {
  background: var(--orange);
  color: var(--white);
  border-color: var(--orange);
}
.btn-primary:hover {
  background: var(--orange-dark);
  border-color: var(--orange-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn-secondary:hover {
  background: var(--navy);
  color: var(--white);
  transform: translateY(-2px);
}

/* On navy backgrounds, secondary needs light treatment */
.section--navy .btn-secondary,
.hero .btn-secondary {
  color: var(--white);
  border-color: rgba(255,255,255,0.7);
}
.section--navy .btn-secondary:hover,
.hero .btn-secondary:hover {
  background: var(--white);
  color: var(--navy);
  border-color: var(--white);
}

.btn-lg { padding: 17px 38px; font-size: 1.05rem; }
.btn-block { display: block; width: 100%; }

/* ---------- 6. Site Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--navy);
  box-shadow: var(--shadow-sm);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 12px var(--container-pad);
  max-width: var(--container);
  margin: 0 auto;
}

.nav-logo { display: flex; align-items: center; gap: 10px; }
.nav-logo img { height: 42px; width: auto; }
.nav-logo .nav-wordmark {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--white);
  letter-spacing: 0.2px;
  line-height: 1;
}
.nav-logo .nav-wordmark span { color: var(--orange); }

/* Hamburger toggle (hidden checkbox controls menu) */
.nav-toggle { display: none; }
.nav-toggle-label {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  cursor: pointer;
}
.nav-toggle-label span,
.nav-toggle-label span::before,
.nav-toggle-label span::after {
  content: '';
  display: block;
  height: 2px;
  width: 24px;
  background: var(--white);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}
.nav-toggle-label span { position: relative; }
.nav-toggle-label span::before { position: absolute; top: -7px; }
.nav-toggle-label span::after  { position: absolute; top: 7px; }

/* Nav menu */
.nav-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}
.nav-menu a {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--white);
  padding: 8px 14px;
  border-radius: var(--radius);
  position: relative;
}
.nav-menu a:not(.btn)::after {
  content: '';
  position: absolute;
  left: 14px; right: 14px;
  bottom: 2px;
  height: 2px;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}
.nav-menu a:not(.btn):hover { color: var(--white); }
.nav-menu a:not(.btn):hover::after,
.nav-menu a.is-active:not(.btn)::after { transform: scaleX(1); }
.nav-menu a.is-active:not(.btn) { color: var(--white); }

.nav-menu .btn {
  margin-left: 0.5rem;
  padding: 11px 22px;
  font-size: 0.9rem;
}

/* Mobile nav */
@media (max-width: 759px) {
  .nav-toggle-label { display: inline-flex; }
  .nav-menu {
    position: fixed;
    inset: 0 0 auto 0;
    top: 66px;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--navy-dark);
    padding: 12px var(--container-pad) 24px;
    box-shadow: var(--shadow-md);
    transform: translateY(-130%);
    transition: transform 0.28s ease;
    max-height: calc(100vh - 66px);
    overflow-y: auto;
  }
  .nav-toggle:checked ~ .nav-menu { transform: translateY(0); }
  .nav-toggle:checked ~ .nav-toggle-label span { background: transparent; }
  .nav-toggle:checked ~ .nav-toggle-label span::before { transform: rotate(45deg); top: 0; }
  .nav-toggle:checked ~ .nav-toggle-label span::after  { transform: rotate(-45deg); top: 0; }
  .nav-menu li { width: 100%; }
  .nav-menu a {
    display: block;
    padding: 14px 8px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    font-size: 1rem;
  }
  .nav-menu a:not(.btn)::after { display: none; }
  .nav-menu .btn {
    margin: 16px 0 0;
    text-align: center;
  }
}

/* ---------- 7. Hero ---------- */
.hero {
  position: relative;
  background: var(--navy);
  color: var(--white);
  overflow: hidden;
  padding: 72px 0 80px;
}
/* Subtle CSS-only geometric line/triangle overlay */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(115deg, rgba(251,98,2,0.08) 0%, rgba(251,98,2,0) 38%),
    repeating-linear-gradient(60deg,  rgba(255,255,255,0.04) 0 1px, transparent 1px 46px),
    repeating-linear-gradient(-60deg, rgba(255,255,255,0.04) 0 1px, transparent 1px 46px);
  pointer-events: none;
}
/* Soft glow accent */
.hero::after {
  content: '';
  position: absolute;
  top: -120px; right: -120px;
  width: 380px; height: 380px;
  background: radial-gradient(circle, rgba(251,98,2,0.16) 0%, transparent 70%);
  pointer-events: none;
}
.hero .container { position: relative; z-index: 1; }
.hero-content { max-width: 760px; }
.hero h1 { color: var(--white); margin-bottom: 0.55em; }
.hero p {
  font-size: 1.2rem;
  color: rgba(255,255,255,0.82);
  max-width: 620px;
  margin-bottom: 2rem;
}
.hero .eyebrow { color: var(--orange); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

@media (min-width: 760px) {
  .hero { padding: 110px 0 120px; }
  .hero h1 { font-size: 3.25rem; }
}

/* ---------- 8. Cards & Grids ---------- */
.grid {
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr;
}
@media (min-width: 600px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 760px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1000px) {
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

.card {
  background: var(--white);
  border: 1px solid var(--med-gray);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition),
              border-color var(--transition);
  height: 100%;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.card h3 { margin-bottom: 0.5rem; }
.card p { color: var(--muted); margin-bottom: 0; }
.card .card-link {
  display: inline-block;
  margin-top: 1rem;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.9rem;
}
.card .card-link::after { content: ' \2192'; }

/* Service card icon badge */
.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px; height: 56px;
  border-radius: var(--radius-lg);
  background: rgba(251,98,2,0.10);
  color: var(--orange);
  font-size: 1.6rem;
  margin-bottom: 1.1rem;
}
.card--featured {
  border-top: 4px solid var(--orange);
}

/* Feature row (icon + text, no border) */
.feature {
  display: flex;
  gap: 18px;
  align-items: flex-start;
}
.feature .feature-icon {
  flex: 0 0 auto;
  width: 48px; height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  background: rgba(25,40,75,0.06);
  color: var(--navy);
  font-size: 1.4rem;
}
.feature h4 { margin-bottom: 0.3rem; }
.feature p { color: var(--muted); margin-bottom: 0; }

/* ---------- 9. CTA Band ---------- */
.cta-band {
  position: relative;
  background: var(--navy);
  color: var(--white);
  text-align: center;
  padding: var(--section-y) 0;
  overflow: hidden;
}
.cta-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(60deg, rgba(255,255,255,0.04) 0 1px, transparent 1px 46px);
  pointer-events: none;
}
.cta-band .container { position: relative; z-index: 1; }
.cta-band h2 { color: var(--white); }
.cta-band p { color: rgba(255,255,255,0.82); max-width: 600px; margin: 0 auto 2rem; }

/* ---------- 10. Lists / misc content ---------- */
.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li {
  position: relative;
  padding-left: 32px;
  margin-bottom: 0.85rem;
}
.check-list li::before {
  content: '\2713';
  position: absolute;
  left: 0; top: 0;
  width: 22px; height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--orange);
  color: var(--white);
  border-radius: 50%;
  font-size: 0.75rem;
  font-weight: 700;
}

.divider { height: 1px; background: var(--med-gray); border: 0; margin: var(--section-y) 0; }

/* ---------- 10a. Pricing + FAQ (added for services.html) ---------- */
.price-card { display: flex; flex-direction: column; }
.price-card .check-list { margin-bottom: 1.25rem; }
.price-card .btn-block { margin-top: auto; }
.price-tag {
  display: block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 2.25rem;
  line-height: 1.1;
  color: var(--navy);
  margin: 0.25rem 0 0.1rem;
}
.price-tag .price-term {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.95rem;
  color: var(--muted);
  margin-left: 0.35rem;
}
.price-audience {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
}
.price-badge {
  display: inline-block;
  background: var(--orange);
  color: var(--white);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 0.75rem;
}
.price-plus { font-weight: 600; color: var(--navy); margin-bottom: 0.75rem; }

.faq-item {
  border: 1px solid var(--med-gray);
  border-radius: var(--radius);
  padding: 4px 20px;
  margin-bottom: 0.85rem;
  background: var(--white);
}
.faq-item > summary {
  cursor: pointer;
  list-style: none;
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--navy);
  padding: 14px 28px 14px 0;
  position: relative;
}
.faq-item > summary::-webkit-details-marker { display: none; }
.faq-item > summary::after {
  content: '+';
  position: absolute;
  right: 0; top: 50%;
  transform: translateY(-50%);
  color: var(--orange);
  font-size: 1.4rem;
  line-height: 1;
}
.faq-item[open] > summary::after { content: '\2212'; }
.faq-item[open] > summary { border-bottom: 1px solid var(--med-gray); }
.faq-item > p { color: var(--muted); margin: 0.9rem 0 1rem; }
.faq-item > summary:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 3px;
  border-radius: var(--radius);
}

/* Simple form controls */
.form-group { margin-bottom: 1.25rem; }
.form-group label {
  display: block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--navy);
  margin-bottom: 0.4rem;
}
.input, .textarea, .select {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--dark-gray);
  padding: 12px 14px;
  border: 1px solid var(--med-gray);
  border-radius: var(--radius);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.input:focus, .textarea:focus, .select:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(251,98,2,0.18);
}
.textarea { min-height: 140px; resize: vertical; }

/* ---------- 11. Footer ---------- */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,0.75);
  padding: 56px 0 0;
  font-size: 0.95rem;
}
.footer-grid {
  display: grid;
  gap: 32px;
  grid-template-columns: 1fr;
}
@media (min-width: 760px) {
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
}
.footer-brand .footer-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 1rem; }
.footer-brand .footer-logo img { height: 40px; }
.footer-brand .footer-wordmark {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--white);
}
.footer-brand .footer-wordmark span { color: var(--orange); }
.footer-brand .tagline { color: rgba(255,255,255,0.6); font-style: italic; margin-bottom: 1rem; }
.footer-brand p { color: rgba(255,255,255,0.7); margin-bottom: 0.5rem; }

.site-footer h5 {
  color: var(--white);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
}
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 0.6rem; }
.footer-links a { color: rgba(255,255,255,0.75); font-weight: 400; }
.footer-links a:hover { color: var(--orange); }

.footer-contact a { color: rgba(255,255,255,0.85); }
.footer-contact a:hover { color: var(--orange); }
.footer-contact .label { color: rgba(255,255,255,0.55); display: block; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; margin-top: 0.75rem; }

.footer-bottom {
  margin-top: 48px;
  border-top: 1px solid rgba(255,255,255,0.12);
  padding: 22px 0;
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.55);
}
.footer-bottom .footer-area { color: rgba(255,255,255,0.7); }

/* ---------- 12. Accessibility ---------- */
:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 2px;
  border-radius: 2px;
}
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--orange);
  color: var(--white);
  padding: 10px 18px;
  font-family: var(--font-head);
  font-weight: 700;
  z-index: 2000;
  border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus { left: 0; }
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---------- 13. Print ---------- */
@media print {
  .site-header, .site-footer, .cta-band, .nav-toggle-label, .hero-actions { display: none !important; }
  body { color: #000; font-size: 12pt; }
  .hero, .section--navy { background: #fff !important; color: #000 !important; }
  .hero h1, .section--navy h1, .section--navy h2 { color: #000 !important; }
  a { color: #000; text-decoration: underline; }
  .card { box-shadow: none; border: 1px solid #999; break-inside: avoid; }
  .section { padding: 18pt 0; }
}
