/* ============================================================
   CAMPBELLNET SOLUTIONS — SHARED STYLESHEET
   ============================================================ */

/* DESIGN TOKENS */
:root {
  --navy:        #1E2D78;
  --navy-deep:   #141E52;
  --navy-light:  #2E4099;
  --slate:       #4A5568;
  --slate-light: #718096;
  --warm-white:  #F8F7F4;
  --white:       #FFFFFF;
  --steel:       #E8EDF5;
  --amber:       #D4862A;
  --amber-light: #E8A84E;
  --font-display: 'Libre Baskerville', Georgia, serif;
  --font-body:    'Source Sans 3', system-ui, sans-serif;
  --font-mono:    'JetBrains Mono', monospace;
  --radius:       6px;
  --radius-btn:   4px;
  --shadow:       0 2px 12px rgba(0,0,0,0.08);
  --shadow-hover: 0 6px 24px rgba(0,0,0,0.13);
  --max:          1200px;
}

/* RESET */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body { font-family: var(--font-body); color: var(--slate); background: var(--warm-white); line-height: 1.7; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* LAYOUT */
.inner { max-width: var(--max); margin: 0 auto; }
section { padding: 80px 40px; }

/* TYPOGRAPHY */
h1, h2, h3 { line-height: 1.2; }
.eyebrow {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 10px;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 12px;
}
.section-lead {
  color: var(--slate);
  font-size: 1.05rem;
  max-width: 560px;
  line-height: 1.7;
}
.page-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.15;
}

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  padding: 12px 28px;
  border-radius: var(--radius-btn);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 200ms ease;
  line-height: 1;
}
.btn-primary { background: var(--amber); color: white; border-color: var(--amber); }
.btn-primary:hover { background: var(--amber-light); border-color: var(--amber-light); transform: translateY(-1px); box-shadow: 0 4px 16px rgba(212,134,42,0.3); }
.btn-ghost { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-ghost:hover { background: var(--navy); color: white; }
.btn-ghost-white { background: transparent; color: white; border-color: rgba(255,255,255,0.65); }
.btn-ghost-white:hover { background: rgba(255,255,255,0.12); border-color: white; }
.btn-sm { padding: 10px 22px; font-size: 0.9rem; }

/* HEADER */
.site-header { position: sticky; top: 0; z-index: 100; transition: box-shadow 200ms; }
.site-header.scrolled { box-shadow: 0 2px 16px rgba(0,0,0,0.12); }

.utility-bar {
  background: var(--navy-deep);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 8px 40px;
}
.utility-bar a {
  font-size: 0.875rem;
  font-weight: 600;
  color: white;
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: var(--radius-btn);
  padding: 5px 14px;
  transition: background 200ms, border-color 200ms, color 200ms;
}
.utility-bar a:hover { background: rgba(255,255,255,0.2); border-color: rgba(255,255,255,0.45); color: white; }

.nav-bar {
  background: var(--white);
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
}
.nav-logo img { height: 44px; width: auto; }
.nav-right { display: flex; align-items: center; gap: 32px; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a {
  font-size: 0.95rem;
  color: var(--slate);
  position: relative;
  padding-bottom: 3px;
  transition: color 200ms;
}
.nav-links a:hover { color: var(--navy); }
.nav-links a.active { color: var(--navy); font-weight: 600; }
.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: var(--amber);
  border-radius: 1px;
}

/* PAGE HERO (inner pages) */
.page-hero {
  background: linear-gradient(135deg, var(--navy-deep) 0%, var(--navy) 100%);
  padding: 72px 40px 80px;
}
.page-hero-inner { max-width: var(--max); margin: 0 auto; }
.page-hero .eyebrow { color: var(--amber-light); }
.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.6rem);
  font-weight: 700;
  color: white;
  line-height: 1.2;
  max-width: 640px;
  margin-bottom: 16px;
}
.page-hero p {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.8);
  max-width: 520px;
  line-height: 1.65;
}

/* SERVICE CARDS */
.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: box-shadow 200ms, transform 200ms;
}
.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--amber);
  transition: height 200ms;
}
.card:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); }
.card:hover::before { height: 5px; }
.card-body { padding: 32px; display: flex; flex-direction: column; flex: 1; }
.card-icon { width: 36px; height: 36px; color: var(--navy); margin-bottom: 18px; stroke: currentColor; fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.card h3 { font-family: var(--font-display); font-size: 1.2rem; font-weight: 700; color: var(--navy); margin-bottom: 10px; }
.card p { color: var(--slate); font-size: 0.95rem; line-height: 1.65; flex: 1; margin-bottom: 20px; }
.card-link {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--amber);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap 200ms, color 200ms;
  margin-top: auto;
}
.card-link:hover { gap: 10px; color: var(--amber-light); }

/* WHAT'S INCLUDED LIST */
.included-list { list-style: none; margin-top: 20px; }
.included-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--steel);
  font-size: 0.95rem;
  color: var(--slate);
}
.included-list li:last-child { border-bottom: none; }
.included-list .check {
  width: 18px; height: 18px;
  background: rgba(212,134,42,0.12);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}
.included-list .check svg { width: 10px; height: 10px; stroke: var(--amber); fill: none; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }

/* TEAM CARDS */
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.team-card { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.team-card-photo { height: 260px; object-fit: cover; object-position: center top; width: 100%; background: var(--steel); }
.team-card-photo.placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--slate-light);
}
.team-card-info { padding: 24px; }
.team-card-info h3 { font-family: var(--font-display); font-size: 1.1rem; color: var(--navy); margin-bottom: 4px; }
.team-card-info .role { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--amber); font-weight: 600; margin-bottom: 10px; display: block; }
.team-card-info p { font-size: 0.9rem; color: var(--slate); line-height: 1.65; }

/* TESTIMONIALS */
.testimonial { background: var(--white); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow); }
.quote-mark { font-family: var(--font-display); font-size: 4.5rem; color: var(--amber); line-height: 0.7; margin-bottom: 16px; display: block; }
.testimonial blockquote { font-family: var(--font-display); font-style: italic; font-size: 1rem; color: var(--navy); line-height: 1.65; margin-bottom: 20px; }
.testimonial .attr { font-size: 0.875rem; color: var(--slate-light); border-top: 1px solid var(--steel); padding-top: 14px; }
.testimonial .attr strong { display: block; color: var(--slate); font-weight: 600; margin-bottom: 2px; }

/* CONTACT FORM */
.form-card { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 48px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: 0.875rem; font-weight: 600; color: var(--slate); }
.form-group input,
.form-group select,
.form-group textarea {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--slate);
  background: var(--warm-white);
  border: 1.5px solid #D1D8E8;
  border-radius: var(--radius);
  padding: 10px 14px;
  outline: none;
  transition: border-color 200ms, box-shadow 200ms;
  width: 100%;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--navy-light); box-shadow: 0 0 0 3px rgba(46,64,153,0.1); }
.form-group textarea { resize: vertical; min-height: 120px; }
.form-group.full { grid-column: 1 / -1; }

/* FOOTER */
.site-footer { background: var(--navy-deep); color: white; padding: 64px 40px 0; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1.4fr;
  gap: 48px;
  max-width: var(--max);
  margin: 0 auto;
  padding-bottom: 48px;
}
.footer-tagline { font-size: 0.875rem; color: rgba(255,255,255,0.55); line-height: 1.65; max-width: 260px; }
.footer-col h4 { font-size: 0.7rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255,255,255,0.4); margin-bottom: 16px; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { font-size: 0.875rem; color: rgba(255,255,255,0.65); transition: color 200ms; }
.footer-col a:hover { color: var(--amber-light); }
.footer-contact-item { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 12px; font-size: 0.875rem; color: rgba(255,255,255,0.65); }
.footer-contact-item svg { width: 15px; height: 15px; stroke: var(--amber); fill: none; stroke-width: 1.5; flex-shrink: 0; margin-top: 3px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  max-width: var(--max);
  margin: 0 auto;
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer-copy { font-size: 0.78rem; color: rgba(255,255,255,0.35); }
.footer-support { font-size: 0.78rem; color: rgba(255,255,255,0.45); display: flex; align-items: center; gap: 4px; transition: color 200ms; }
.footer-support:hover { color: var(--amber-light); }

/* CTA BAND */
.cta-band { background: var(--white); padding: 80px 40px; text-align: center; }
.cta-band h2 { font-family: var(--font-display); font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 700; color: var(--navy); margin-bottom: 12px; }
.cta-band p { color: var(--slate); font-size: 1.05rem; max-width: 480px; margin: 0 auto 32px; }
.cta-band-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; align-items: center; }
.text-link { font-size: 0.95rem; color: var(--slate); display: flex; align-items: center; gap: 5px; transition: color 200ms; }
.text-link:hover { color: var(--navy); }

/* SCROLL REVEAL */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 500ms ease, transform 500ms ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* SVG ICON HELPERS */
.icon { stroke: currentColor; fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.icon-sm { width: 16px; height: 16px; }
.icon-xs { width: 12px; height: 12px; }

/* HAMBURGER / MOBILE MENU */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  margin-right: -8px;
  flex-shrink: 0;
}
.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: transform 0.22s ease, opacity 0.22s ease;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  display: none;
  flex-direction: column;
  background: var(--white);
  border-top: 1px solid #e5e8f0;
  padding: 8px 24px 24px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}
.mobile-menu.open { display: flex; }
.mobile-menu ul { list-style: none; margin: 0 0 20px; padding: 0; }
.mobile-menu ul li a {
  display: block;
  padding: 13px 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--navy);
  border-bottom: 1px solid #f0f0ea;
  text-decoration: none;
  transition: color 0.15s;
}
.mobile-menu ul li:last-child a { border-bottom: none; }
.mobile-menu ul li a:hover,
.mobile-menu ul li a.active { color: var(--amber); }
.mobile-menu .btn { width: 100%; text-align: center; box-sizing: border-box; }

/* RESPONSIVE */
@media (max-width: 900px) {
  section { padding: 48px 24px; }
  .utility-bar, .nav-bar { padding: 0 24px; }
  .page-hero { padding: 56px 24px 64px; }
  .team-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .nav-right .btn { display: none; }
  .nav-hamburger { display: flex; }
}
@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; }
  .form-card { padding: 28px; }
  .utility-bar { padding: 6px 16px; }
  .nav-bar { padding: 0 16px; }
  .mobile-menu { padding: 8px 16px 20px; }
}
