/* ===========================
   Chucktown IT - Stylesheet
   =========================== */

:root {
  --color-primary: #1a6b96;
  --color-primary-dark: #134f70;
  --color-accent: #e8821a;
  --color-accent-dark: #c96a10;
  --color-bg: #f6f8fa;
  --color-bg-dark: #0a1e2e;
  --color-surface: #ffffff;
  --color-text: #1f2937;
  --color-text-muted: #6b7280;
  --color-border: #e5e7eb;
  --font-sans: 'Segoe UI', system-ui, -apple-system, sans-serif;
  --radius: 8px;
  --radius-lg: 16px;
  --shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
  --max-width: 1100px;
  --nav-height: 64px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
}

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

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover { color: var(--color-primary-dark); }

ul { list-style: none; }

/* Typography */
h1, h2, h3, h4 {
  line-height: 1.25;
  color: var(--color-primary);
  font-weight: 700;
}

h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.25rem); }
h3 { font-size: clamp(1.15rem, 2.5vw, 1.5rem); }
h4 { font-size: 1.1rem; }

p {
  color: var(--color-text-muted);
  max-width: 65ch;
}

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

.section { padding-block: 5rem; }
.section--alt { background: var(--color-surface); }

.section--dark {
  background: var(--color-primary);
  color: white;
}

.section--dark h2,
.section--dark h3,
.section--dark h4,
.section--dark p {
  color: white;
}

.grid {
  display: grid;
  gap: 2rem;
}

.grid--2   { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid--3   { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.grid--4   { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.grid--center  { align-items: center; }
.grid--gap-lg  { gap: 3rem; }

.text-center { text-align: center; }

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

.section-header p {
  margin-top: 0.75rem;
  font-size: 1.1rem;
}

/* Navigation */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-height);
  background: var(--color-primary);
  box-shadow: var(--shadow-md);
}

.nav .container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-size: 1.25rem;
  font-weight: 700;
  color: white;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-logo span { color: var(--color-accent); }

/* CSS-only hamburger — hidden checkbox drives the toggle */
.nav-toggle-checkbox { display: none; }

.nav-links {
  display: flex;
  gap: 0.25rem;
}

.nav-links a {
  color: rgba(255, 255, 255, 0.8);
  padding: 0.5rem 0.875rem;
  border-radius: var(--radius);
  font-size: 0.95rem;
  transition: background 0.2s, color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  background: rgba(255, 255, 255, 0.12);
  color: white;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 0.5rem;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: white;
  border-radius: 2px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.1s;
  text-decoration: none;
}

.btn:active { transform: scale(0.98); }

.btn-primary {
  background: var(--color-accent);
  color: white;
}

.btn-primary:hover {
  background: var(--color-accent-dark);
  color: white;
}

.btn-outline {
  background: transparent;
  border-color: white;
  color: white;
}

.btn-outline:hover {
  background: white;
  color: var(--color-primary);
}

.btn-secondary {
  background: var(--color-primary);
  color: white;
}

.btn-secondary:hover {
  background: var(--color-primary-dark);
  color: white;
}

/* Hero */
.hero {
  background:
    linear-gradient(rgba(10, 30, 46, 0.62), rgba(10, 30, 46, 0.72)),
    url('Charleston.jpg') center / cover no-repeat;
  color: white;
  padding-block: 6rem 5rem;
}

.hero h1 {
  color: white;
  margin-bottom: 1.25rem;
}

.hero h1 span { color: var(--color-accent); }

.hero p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.2rem;
  max-width: 55ch;
  margin-bottom: 2.5rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Cards */
.card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--color-border);
  transition: box-shadow 0.2s, transform 0.2s;
}

.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.card h4 { margin-bottom: 0.75rem; }

.card--plain {
  background: #e4eef7;
  border: none;
  box-shadow: none;
}

.card--plain:hover {
  transform: none;
  box-shadow: none;
}

.card--dark {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
  text-align: center;
}

.card--platform {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  text-align: center;
}

.card--platform .card-icon img {
  border-radius: var(--radius-lg);
}

.card-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  display: block;
}

.card h3 { margin-bottom: 0.5rem; }

.card p {
  font-size: 0.95rem;
  max-width: none;
}

.card-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.card-link .card { height: 100%; }

.link-accent {
  display: block;
  margin-top: 1.25rem;
  color: var(--color-accent);
  font-weight: 600;
}

/* Feature List */
.feature-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

.feature-list li::before {
  content: '✓';
  color: var(--color-accent);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 0.05rem;
}

/* Pillar icons (Why section) */
.pillar-icon {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
}

/* Intro text blocks on service pages */
.intro-text h2 { margin-bottom: 0.75rem; }
.intro-text p + p { margin-top: 0.75rem; }

/* Page Hero (inner pages) */
.page-hero {
  background:
    linear-gradient(rgba(10, 30, 46, 0.62), rgba(10, 30, 46, 0.72)),
    url('Charleston.jpg') center / cover no-repeat;
  padding-block: 4rem;
  color: white;
  text-align: center;
}

.page-hero h1 { color: white; }

.page-hero p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.15rem;
  margin-inline: auto;
  margin-top: 0.75rem;
}

/* Highlight Banner */
.highlight-banner {
  background: var(--color-accent);
  color: white;
  padding: 1rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1.05rem;
  text-align: center;
  margin-bottom: 3rem;
}

/* CTA Section */
.cta-section {
  background: var(--color-accent);
  padding-block: 4rem;
  text-align: center;
}

.cta-section h2,
.cta-section p { color: white; }

.cta-section p {
  margin-inline: auto;
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.contact-info h3 { margin-bottom: 1.5rem; }

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.contact-item-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.contact-item-text strong {
  display: block;
  color: var(--color-primary);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.2rem;
}

.contact-item-text span { color: var(--color-text-muted); }

/* About text on contact page */
.about-text p + p { margin-top: 0.75rem; }
.about-text .feature-list { margin-top: 1.5rem; }

/* Footer */
.footer {
  background: var(--color-bg-dark);
  color: rgba(255, 255, 255, 0.6);
  padding-block: 3rem;
  text-align: center;
}

.footer-logo {
  font-size: 1.25rem;
  font-weight: 700;
  color: white;
  margin-bottom: 0.75rem;
}

.footer-logo span { color: var(--color-accent); }

.footer-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-block: 1.25rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
  transition: color 0.2s;
}

.footer-links a:hover { color: var(--color-accent); }

.footer-copy {
  font-size: 0.85rem;
  margin-top: 0.75rem;
}

/* ===========================
   Responsive / Mobile
   =========================== */

@media (max-width: 768px) {
  .section { padding-block: 3.5rem; }

  .nav-toggle { display: flex; }

  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: var(--color-primary);
    flex-direction: column;
    gap: 0.375rem;
    padding: 1rem;
    box-shadow: var(--shadow-md);
  }

  .nav-toggle-checkbox:checked ~ .nav-links {
    display: flex;
  }

  .nav-links a {
    display: block;
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: var(--radius);
  }

  .hero { padding-block: 4rem 3.5rem; }

  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }

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

  .card { padding: 1.5rem; }
}

@media (max-width: 480px) {
  h1 { font-size: 1.75rem; }
  h2 { font-size: 1.4rem; }

  .btn {
    width: 100%;
    justify-content: center;
  }

  .hero-actions .btn { width: auto; }
}
