/* ============================================================
   Southern Ohio Computer Services — style.css
   ============================================================ */

/* ----------------------------------------------------------
   CSS Custom Properties
   ---------------------------------------------------------- */
:root {
  /* Raw palette (fixed — same in both modes) */
  --navy:       #1a2744;
  --navy-dark:  #111b33;
  --navy-mid:   #243260;
  --red:        #cc0000;
  --red-dark:   #aa0000;
  --red-glow:   rgba(204,0,0,0.35);

  /* Semantic tokens (light mode defaults — flip in dark mode) */
  --surface-primary:   #ffffff;
  --surface-secondary: #f5f7fa;
  --surface-card:      #ffffff;
  --text-primary:      #111827;
  --text-body:         #374151;
  --text-muted:        #6b7280;
  --heading-accent:    #1a2744;
  --icon-muted:        rgba(26,39,68,0.07);
  --border-default:    #eaecf0;
  --border-subtle:     #c4c9d4;

  /* Layout & component tokens */
  --font-base:  -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;

  --radius-sm:  4px;
  --radius:     8px;
  --radius-lg:  16px;

  --shadow-rest:     0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-raised:   0 8px 24px rgba(0,0,0,0.12);
  --shadow-floating: 0 10px 30px rgba(0,0,0,0.14), 0 4px 8px rgba(0,0,0,0.08);

  --transition: 200ms ease;
  --max-width:  1140px;
  --nav-height: 68px;
}

/* ----------------------------------------------------------
   Dark Mode — only semantic tokens flip; navy chrome unchanged
   ---------------------------------------------------------- */
html[data-theme='dark'] {
  color-scheme: dark;
  --surface-primary:   #111827;
  --surface-secondary: #1a2234;
  --surface-card:      #1f2937;
  --text-primary:      #f3f4f6;
  --text-body:         #d1d5db;
  --text-muted:        #9ca3af;
  --heading-accent:    #e5e7eb;
  --icon-muted:        rgba(255,255,255,0.08);
  --border-default:    #374151;
  --border-subtle:     #4b5563;
  --shadow-rest:       0 1px 3px rgba(0,0,0,0.2);
  --shadow-raised:     0 8px 24px rgba(0,0,0,0.3);
}

/* Contact info card sits on a navy bg — go slightly darker in dark mode */
html[data-theme='dark'] .contact-info-card {
  background: #0f172a;
}

/* Alternating service detail rows */
html[data-theme='dark'] .service-detail:nth-child(even) {
  background: var(--surface-secondary);
}

/* btn-outline-navy needs adjustment in dark mode (navy bg is invisible on dark) */
html[data-theme='dark'] .btn-outline-navy {
  border-color: #6b7280;
  color: var(--text-body);
}
html[data-theme='dark'] .btn-outline-navy:hover {
  background: #374151;
  color: var(--text-primary);
}

/* Remote support box uses surface-card bg in dark mode */
html[data-theme='dark'] .remote-support-box {
  background: var(--surface-card);
  border-color: var(--border-default);
}
html[data-theme='dark'] .remote-support-box h3 {
  color: var(--text-primary);
}

/* Icon overrides now handled by --icon-muted and --heading-accent tokens */

/* Area tags: navy text invisible on dark */
html[data-theme='dark'] .area-tag {
  background: var(--surface-card);
  color: var(--text-body);
  border-color: var(--border-default);
}

/* Sister section (Orbital Impact) */
html[data-theme='dark'] .sister-section p {
  color: var(--text-muted);
}
html[data-theme='dark'] .sister-section h2 {
  color: var(--text-primary);
}
html[data-theme='dark'] .sister-section .sister-logo-link img {
  filter: brightness(1.5);
}

/* Service detail headings and text */
html[data-theme='dark'] .service-detail h2 {
  color: var(--text-primary);
}
html[data-theme='dark'] .service-detail p {
  color: var(--text-body);
}
html[data-theme='dark'] .service-detail-icon {
  background: #1e3a5f;
}
html[data-theme='dark'] .service-detail-cta {
  background: var(--surface-card);
}
html[data-theme='dark'] .service-detail-cta p {
  color: var(--text-primary);
}

/* Service sidebar card */
html[data-theme='dark'] .service-sidebar-card {
  background: #0f172a;
}

/* FAQ items on services page */
html[data-theme='dark'] .faq-item h4 {
  color: var(--text-primary);
}
html[data-theme='dark'] .faq-item p {
  color: var(--text-muted);
}

/* About story text */
html[data-theme='dark'] .about-story-text h2 {
  color: var(--text-primary);
}
html[data-theme='dark'] .about-story-text p {
  color: var(--text-body);
}

/* History callout in dark mode */
html[data-theme='dark'] .history-callout {
  background: #0f172a;
}

/* Dont-do items on about page */
html[data-theme='dark'] .dont-item {
  background: var(--surface-card);
  border-color: var(--border-default);
}
html[data-theme='dark'] .dont-item h4 {
  color: var(--text-primary);
}
html[data-theme='dark'] .dont-item p {
  color: var(--text-muted);
}

/* Testimonial cards */
html[data-theme='dark'] .testimonial-card blockquote p {
  color: var(--text-body);
}

/* Contact form wrap heading */
html[data-theme='dark'] .contact-form-wrap h3 {
  color: var(--text-primary);
}

/* How card heading */
html[data-theme='dark'] .how-card h3 {
  color: var(--text-primary);
}

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

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

body {
  font-family: var(--font-base);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text-body);
  background: var(--surface-primary);
  -webkit-font-smoothing: antialiased;
}

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

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

ul { list-style: none; }

/* ----------------------------------------------------------
   Typography
   ---------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-base);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
}
h1 { font-size: clamp(2rem, 5vw, 3rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.25rem); letter-spacing: -0.01em; }
h3 { font-size: clamp(1.125rem, 2vw, 1.5rem); }
h4 { font-size: 1.125rem; }

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

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

.section {
  padding: 4rem 0;
  background: var(--surface-primary);
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}
.section-header h2 { margin-bottom: 0.75rem; }
.section-header p {
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
}

.bg-gray { background: var(--surface-secondary); }
.bg-navy { background: var(--navy); }
.text-center { text-align: center; }
.text-white { color: #ffffff !important; }
.text-muted { color: var(--text-muted); }

/* ----------------------------------------------------------
   Buttons
   ---------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  font-size: 1rem;
  font-weight: 600;
  font-family: var(--font-base);
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background var(--transition), color var(--transition),
              border-color var(--transition), transform var(--transition),
              box-shadow var(--transition);
  white-space: nowrap;
  line-height: 1.2;
}
.btn:hover  { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(0.98); }

.btn-primary {
  background: var(--red);
  color: #ffffff;
  border-color: var(--red);
}
.btn-primary:hover {
  background: var(--red-dark);
  border-color: var(--red-dark);
  color: #ffffff;
  box-shadow: 0 4px 14px var(--red-glow);
}

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

.btn-outline-navy {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn-outline-navy:hover {
  background: var(--navy);
  color: #ffffff;
}

.btn-sm {
  padding: 0.5rem 1.25rem;
  font-size: 0.9rem;
}

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

/* Secondary CTA button in service-detail-cta rows */
.btn-cta-secondary {
  margin-left: 0.75rem;
}

.btn-support {
  background: #ffffff;
  color: var(--navy);
  border-color: #ffffff;
  font-size: 0.875rem;
  padding: 0.5rem 1rem;
  font-weight: 600;
}
.btn-support:hover {
  background: #eaecf0;
  color: var(--navy-dark);
  border-color: #eaecf0;
}

/* ----------------------------------------------------------
   Navigation
   ---------------------------------------------------------- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--navy);
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
  height: var(--nav-height);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-height);
  gap: 1rem;
}

.nav-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.nav-logo img {
  height: 42px;
  width: auto;
}

.nav-links {
  display: none;
  align-items: center;
  gap: 0.25rem;
}
.nav-links a {
  color: rgba(255,255,255,0.85);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.5rem 0.875rem;
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
}
.nav-links a:hover,
.nav-links a.active {
  color: #ffffff;
  background: rgba(255,255,255,0.1);
}

.nav-right {
  display: none;
  align-items: center;
  gap: 0.875rem;
  flex-shrink: 0;
}
.nav-phone {
  color: #ffffff;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.nav-phone:hover { color: #eaecf0; }

.nav-hamburger {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  flex-shrink: 0;
}
.nav-hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: #ffffff;
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}
.nav-hamburger.open span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}
.nav-hamburger.open span:nth-child(2) {
  opacity: 0;
}
.nav-hamburger.open span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

/* Mobile menu drawer */
.nav-mobile-menu {
  display: none;
  position: fixed;
  top: var(--nav-height);
  left: 0;
  right: 0;
  background: var(--navy-dark);
  padding: 1.5rem 1.25rem;
  z-index: 999;
  box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}
.nav-mobile-menu.open { display: block; }
.nav-mobile-menu a {
  display: block;
  color: rgba(255,255,255,0.85);
  font-size: 1.1rem;
  font-weight: 500;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.nav-mobile-menu a:last-of-type { border-bottom: none; }
.nav-mobile-menu a:hover { color: #ffffff; }
.nav-mobile-menu .mobile-phone {
  display: block;
  color: #ffffff;
  font-size: 1.25rem;
  font-weight: 700;
  margin-top: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.nav-mobile-menu .btn {
  margin-top: 1rem;
  width: 100%;
  justify-content: center;
}

@media (min-width: 768px) {
  .nav-links { display: flex; }
  .nav-right { display: flex; }
  .nav-hamburger { display: none; }
}

/* ----------------------------------------------------------
   Hero
   ---------------------------------------------------------- */
.hero {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 50%, var(--navy-mid) 100%);
  color: #ffffff;
  padding: 5rem 0 4.5rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}

.hero-content {
  position: relative;
  max-width: 720px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(204,0,0,0.2);
  border: 1px solid rgba(204,0,0,0.4);
  color: #ff9999;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 0.35rem 0.875rem;
  border-radius: 999px;
  margin-bottom: 1.25rem;
}

.hero h1 {
  color: #ffffff;
  margin-bottom: 1.25rem;
  font-size: clamp(2.25rem, 6vw, 3.5rem);
  letter-spacing: -0.03em;
}
.hero h1 .accent { color: #ff6666; }

.hero-sub {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(255,255,255,0.8);
  margin-bottom: 2rem;
  line-height: 1.7;
  max-width: 600px;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

.hero-note {
  margin-top: 2.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255,255,255,0.55);
  font-size: 0.85rem;
}

/* ----------------------------------------------------------
   Trust Bar
   ---------------------------------------------------------- */
.trust-bar {
  background: var(--navy-dark);
  border-top: 3px solid var(--red);
  padding: 2rem 0;
}

.trust-bar-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  text-align: center;
}

.trust-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}
.trust-number {
  font-size: 2.25rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1;
}
.trust-label {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.65);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.trust-divider {
  display: none;
  width: 1px;
  background: rgba(255,255,255,0.15);
  align-self: stretch;
}

@media (min-width: 600px) {
  .trust-bar-grid {
    grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  }
  .trust-divider { display: block; }
}

/* ----------------------------------------------------------
   Services Grid
   ---------------------------------------------------------- */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.service-card {
  background: var(--surface-card);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-rest);
  transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition);
  display: flex;
  flex-direction: column;
}
.service-card:hover {
  box-shadow: var(--shadow-raised);
  transform: translateY(-4px);
  border-color: var(--border-subtle);
}

.service-icon {
  width: 52px;
  height: 52px;
  background: var(--icon-muted);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  flex-shrink: 0;
}
.service-icon svg {
  width: 26px;
  height: 26px;
  color: var(--heading-accent);
}

.service-card h3 {
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}
.service-card p {
  font-size: 0.925rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  flex: 1;
}
.service-card .learn-more {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--red);
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  margin-top: auto;
  transition: color var(--transition), gap var(--transition);
}
.service-card .learn-more:hover {
  color: var(--red-dark);
  gap: 0.5rem;
}

@media (min-width: 600px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
  .services-grid { grid-template-columns: repeat(4, 1fr); }
}

/* ----------------------------------------------------------
   Why Choose SOCS
   ---------------------------------------------------------- */
.why-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.why-item {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}

.why-icon {
  width: 48px;
  height: 48px;
  background: var(--red);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.why-icon svg {
  width: 24px;
  height: 24px;
  color: #ffffff;
}

.why-item h4 {
  font-size: 1.05rem;
  margin-bottom: 0.35rem;
  color: var(--text-primary);
}
.why-item p {
  font-size: 0.925rem;
  color: var(--text-muted);
  margin: 0;
}

@media (min-width: 768px) {
  .why-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .why-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ----------------------------------------------------------
   Sister Company Section (Orbital Impact)
   ---------------------------------------------------------- */
.sister-section {
  text-align: center;
}
.sister-section .container {
  max-width: 800px;
}
.sister-section p {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}
.sister-section .sister-logo-link {
  display: inline-block;
  margin-bottom: 1rem;
}
.sister-section .sister-logo-link img {
  max-width: 260px;
  height: auto;
}

/* ----------------------------------------------------------
   Service Area
   ---------------------------------------------------------- */
.area-section {
  background: var(--surface-secondary);
}
.area-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
}
.area-text h2 { margin-bottom: 1rem; }
.area-text p { color: var(--text-muted); }
.area-towns {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.25rem;
}
.area-tag {
  background: var(--surface-card);
  border: 1px solid var(--border-default);
  color: var(--heading-accent);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.35rem 0.875rem;
  border-radius: 999px;
  box-shadow: var(--shadow-rest);
}
.area-onsite {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  margin-top: 1.5rem;
  background: var(--navy);
  color: #ffffff;
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.925rem;
}
.area-onsite svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  color: #ff9999;
}

@media (min-width: 768px) {
  .area-inner { grid-template-columns: 1fr 1fr; }
}

/* ----------------------------------------------------------
   CTA Strip
   ---------------------------------------------------------- */
.cta-strip {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 100%);
  color: #ffffff;
  padding: 4rem 0;
  text-align: center;
}
.cta-strip h2 {
  color: #ffffff;
  margin-bottom: 0.75rem;
}
.cta-strip p {
  color: rgba(255,255,255,0.7);
  font-size: 1.1rem;
  margin-bottom: 2rem;
}
.cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

/* ----------------------------------------------------------
   Footer
   ---------------------------------------------------------- */
.site-footer {
  background: #111827;
  color: rgba(255,255,255,0.7);
  padding: 3.5rem 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-brand img {
  height: 44px;
  width: auto;
  margin-bottom: 1rem;
}
.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.6;
}

.footer-col h4 {
  color: #ffffff;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}
.footer-col ul { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-col a {
  color: rgba(255,255,255,0.65);
  font-size: 0.9rem;
}
.footer-col a:hover { color: #ffffff; }

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
}
.footer-contact-item svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 3px;
  color: var(--red);
}
.footer-contact-item a { color: rgba(255,255,255,0.65); }
.footer-contact-item a:hover { color: #ffffff; }

.footer-hours {
  font-size: 0.875rem;
  line-height: 1.8;
}
.footer-hours-label {
  color: rgba(255,255,255,0.85);
  font-weight: 600;
}
.footer-hours-note {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.45);
  margin-top: 0.25rem;
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: center;
  text-align: center;
  padding: 1.5rem 0;
  font-size: 0.825rem;
  color: rgba(255,255,255,0.4);
}
.footer-bottom a { color: rgba(255,255,255,0.4); }
.footer-bottom a:hover { color: rgba(255,255,255,0.7); }

@media (min-width: 600px) {
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1.5fr; }
  .footer-bottom { flex-direction: row; justify-content: space-between; text-align: left; }
}

/* ----------------------------------------------------------
   Page Hero (inner pages)
   ---------------------------------------------------------- */
.page-hero {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 100%);
  color: #ffffff;
  padding: 3.5rem 0;
  border-bottom: 3px solid var(--red);
}
.page-hero h1 {
  color: #ffffff;
  margin-bottom: 0.5rem;
}
.page-hero p {
  color: rgba(255,255,255,0.72);
  font-size: 1.1rem;
  margin: 0;
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.825rem;
  color: rgba(255,255,255,0.5);
  margin-bottom: 1rem;
}
.breadcrumb a { color: rgba(255,255,255,0.65); }
.breadcrumb a:hover { color: #ffffff; }
.breadcrumb-sep { color: rgba(255,255,255,0.3); }

/* ----------------------------------------------------------
   Services Detail Page
   ---------------------------------------------------------- */
.service-detail {
  padding: 3.5rem 0;
  border-bottom: 1px solid var(--border-default);
  background: var(--surface-primary);
}
.service-detail:nth-child(even) {
  background: var(--surface-secondary);
}
.service-detail-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: start;
}

.service-detail-icon {
  width: 64px;
  height: 64px;
  background: var(--navy);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  flex-shrink: 0;
}
.service-detail-icon svg {
  width: 34px;
  height: 34px;
  color: #ffffff;
}
.service-detail h2 { margin-bottom: 1rem; color: var(--heading-accent); }
.service-detail p { color: var(--text-body); }

.service-includes {
  margin: 1.25rem 0;
  padding-left: 0;
}
.service-includes li {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  font-size: 0.925rem;
  color: var(--text-body);
  margin-bottom: 0.5rem;
  padding-left: 1.625rem;
  position: relative;
}
.service-includes li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 3px;
  display: block;
  width: 16px;
  height: 16px;
  background: var(--red);
  border-radius: 50%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-size: 10px;
  background-position: center;
  background-repeat: no-repeat;
  flex-shrink: 0;
}

.service-detail-cta {
  background: var(--surface-secondary);
  border-left: 4px solid var(--red);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.25rem 1.5rem;
  margin-top: 1.75rem;
}
.service-detail-cta p {
  font-size: 0.925rem;
  margin-bottom: 0.875rem;
  font-weight: 600;
  color: var(--heading-accent);
}

/* FAQ section inside service detail */
.service-faq {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-default);
}
.service-faq h3 {
  font-size: 1.1rem;
  color: var(--heading-accent);
  margin-bottom: 1.25rem;
}
.faq-item {
  margin-bottom: 1.25rem;
}
.faq-item:last-child {
  margin-bottom: 0;
}
.faq-item h4 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.35rem;
}
.faq-item p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0;
}

/* Sidebar card on services page */
.service-sidebar-card {
  background: var(--navy);
  color: #ffffff;
  border-radius: var(--radius-lg);
  padding: 2rem;
  position: sticky;
  top: calc(var(--nav-height) + 1.5rem);
}
.service-sidebar-card h4 {
  color: #ffffff;
  margin-bottom: 0.75rem;
  font-size: 1.05rem;
}
.service-sidebar-card p {
  color: rgba(255,255,255,0.75);
  font-size: 0.9rem;
  margin-bottom: 1.25rem;
}
.service-sidebar-phone {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #ffffff;
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 1rem;
  text-decoration: none;
}
.service-sidebar-phone svg { color: var(--red); }
.service-sidebar-card .btn { width: 100%; justify-content: center; margin-top: 0.75rem; }

@media (min-width: 900px) {
  .service-detail-inner {
    grid-template-columns: 1fr 320px;
  }
}

/* ----------------------------------------------------------
   About Page
   ---------------------------------------------------------- */
.about-story {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: start;
}
.about-story-text h2 { margin-bottom: 1rem; color: var(--heading-accent); }
.about-story-text p { color: var(--text-body); }

.values-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
.value-card {
  background: var(--surface-card);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-rest);
  border: 1px solid var(--border-default);
  transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition);
}
.value-card:hover {
  box-shadow: var(--shadow-raised);
  transform: translateY(-4px);
  border-color: var(--border-subtle);
}
.value-card-icon {
  width: 48px;
  height: 48px;
  background: var(--icon-muted);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}
.value-card-icon svg { width: 24px; height: 24px; color: var(--heading-accent); }
.value-card h3 { font-size: 1.05rem; margin-bottom: 0.5rem; color: var(--text-primary); }
.value-card p { font-size: 0.925rem; color: var(--text-muted); margin: 0; }

.dont-do-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
.dont-item {
  display: flex;
  gap: 1.25rem;
  background: var(--surface-card);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  box-shadow: var(--shadow-rest);
  border: 1px solid var(--border-default);
  align-items: flex-start;
  transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition);
}
.dont-item:hover {
  box-shadow: var(--shadow-raised);
  transform: translateY(-4px);
  border-color: var(--border-subtle);
}
.dont-item h4 { font-size: 1rem; margin-bottom: 0.25rem; color: var(--text-primary); }
.dont-item p { font-size: 0.9rem; color: var(--text-muted); margin: 0; }

/* Timeline / history callout */
.history-callout {
  background: var(--navy);
  color: #ffffff;
  border-radius: var(--radius-lg);
  padding: 2rem;
}
.history-callout h3 { color: #ffffff; margin-bottom: 0.75rem; }
.history-callout p { color: rgba(255,255,255,0.75); font-size: 0.9rem; margin-bottom: 0.5rem; }
.history-year {
  font-size: 3.5rem;
  font-weight: 900;
  color: var(--red);
  line-height: 1;
  margin-bottom: 0.5rem;
}
.history-callout-cta {
  margin-top: 1.25rem;
  margin-bottom: 0;
}

/* Area onsite card on about page — stacked layout variant */
.area-onsite-stacked {
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
  padding: 1.5rem;
}
.area-onsite-stacked .area-onsite-header {
  display: flex;
  align-items: center;
  gap: 0.625rem;
}
.area-onsite-stacked .area-onsite-header svg {
  color: #ff9999;
  flex-shrink: 0;
}
.area-onsite-stacked p {
  font-size: 0.9rem;
  font-weight: 400;
  opacity: 0.85;
  margin: 0;
  color: #ffffff;
}
.area-onsite-stacked a {
  color: #ffffff;
  font-weight: 700;
  font-size: 1.1rem;
}

@media (min-width: 768px) {
  .values-grid { grid-template-columns: repeat(2, 1fr); }
  .dont-do-list { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
  .about-story { grid-template-columns: 3fr 2fr; }
  .values-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ----------------------------------------------------------
   Contact Page
   ---------------------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}

.contact-info-card {
  background: var(--navy);
  border-radius: var(--radius-lg);
  padding: 2rem;
  color: #ffffff;
}
.contact-info-card h3 {
  color: #ffffff;
  margin-bottom: 1.5rem;
  font-size: 1.125rem;
}
.contact-row {
  display: flex;
  gap: 0.875rem;
  align-items: flex-start;
  margin-bottom: 1.25rem;
}
.contact-row-icon {
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,0.1);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact-row-icon svg { width: 20px; height: 20px; color: #ff9999; }
.contact-row-label {
  font-size: 0.775rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.5);
  margin-bottom: 0.2rem;
}
.contact-row-value {
  color: #ffffff;
  font-weight: 600;
  font-size: 1rem;
}
.contact-row-value a {
  color: #ffffff;
  font-weight: 600;
}
.contact-row-value a:hover { color: #eaecf0; }
.contact-row-value .contact-row-sub {
  font-size: 0.8rem;
  opacity: 0.7;
  font-weight: 400;
}
.contact-hours-detail {
  font-size: 0.95rem;
  line-height: 1.8;
  font-weight: 600;
}
.contact-hours-note {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.55);
  margin-top: 0.25rem;
  font-weight: 400;
}
.contact-voicemail-note {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.6);
  margin-top: 0.5rem;
  line-height: 1.5;
  font-weight: 400;
}

.contact-emergency {
  background: rgba(204,0,0,0.2);
  border: 1px solid rgba(204,0,0,0.4);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  font-size: 0.875rem;
  color: rgba(255,255,255,0.85);
  margin-top: 1.5rem;
  line-height: 1.5;
}
.contact-emergency a {
  color: #ffffff;
  font-weight: 700;
}

/* Remote support box below contact info card */
.remote-support-box {
  background: var(--surface-secondary);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-top: 1.5rem;
}
.remote-support-box h3 {
  font-size: 1rem;
  color: var(--heading-accent);
  margin-bottom: 0.5rem;
}
.remote-support-box p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

/* Contact form */
.contact-form-wrap {
  background: var(--surface-card);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-raised);
  border: 1px solid var(--border-default);
}
.contact-form-wrap h3 {
  margin-bottom: 1.5rem;
  color: var(--heading-accent);
}
.contact-form-wrap .form-intro {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  margin-bottom: 1rem;
}
.form-group label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-body);
}
.form-label-required {
  color: var(--red);
}
.form-group input,
.form-group select,
.form-group textarea {
  font-family: var(--font-base);
  font-size: 0.95rem;
  color: var(--text-primary);
  background: var(--surface-secondary);
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
  transition: border-color var(--transition), box-shadow var(--transition);
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(26,39,68,0.1);
  background: var(--surface-card);
}
.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
}
.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 18px;
  padding-right: 2.5rem;
}
.form-group textarea {
  resize: vertical;
  min-height: 130px;
}
.form-submit .btn { width: 100%; justify-content: center; }
.form-note {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.75rem;
  text-align: center;
}
.form-note-required {
  color: var(--red);
}

@media (min-width: 600px) {
  .form-row { grid-template-columns: 1fr 1fr; }
  .form-row .form-group { margin-bottom: 0; }
}
@media (min-width: 900px) {
  .contact-grid { grid-template-columns: 1fr 1.6fr; }
}

/* Google Maps embed */
.map-embed {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-raised);
  margin-top: 2.5rem;
}
.map-embed iframe {
  width: 100%;
  display: block;
  border: 0;
}

/* How We Work cards */
.how-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  max-width: 900px;
  margin: 0 auto;
}
.how-card {
  text-align: center;
  padding: 2rem;
  background: var(--surface-card);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-rest);
  transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition);
}
.how-card:hover {
  box-shadow: var(--shadow-raised);
  transform: translateY(-4px);
  border-color: var(--border-subtle);
}
.how-card-icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}
.how-card h3 {
  font-size: 1.1rem;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}
.how-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0;
}

/* ----------------------------------------------------------
   Accessibility
   ---------------------------------------------------------- */
:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ----------------------------------------------------------
   Theme Toggle Button
   ---------------------------------------------------------- */
.theme-toggle {
  background: none;
  border: 2px solid rgba(255,255,255,0.3);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: border-color 0.2s, transform 0.2s;
  padding: 0;
  margin-left: 0.5rem;
}
.theme-toggle:hover {
  border-color: rgba(255,255,255,0.6);
  transform: scale(1.1);
}

/* ----------------------------------------------------------
   Print Styles
   ---------------------------------------------------------- */
@media print {
  .site-nav, .cta-strip, .nav-hamburger,
  .nav-mobile-menu, form { display: none !important; }
  body { font-size: 12pt; color: #000; }
  .hero, .trust-bar, .page-hero {
    background: none !important;
    color: #000 !important;
    padding: 1rem 0;
  }
  .hero h1, .page-hero h1 { color: #000 !important; }
  a { color: #000; text-decoration: underline; }
  .container { max-width: 100%; padding: 0; }
}

/* ----------------------------------------------------------
   Responsive Tweaks
   ---------------------------------------------------------- */
@media (max-width: 599px) {
  .section { padding: 3rem 0; }
  .hero { padding: 3.5rem 0 3rem; }
  .hero-ctas { flex-direction: column; }
  .hero-ctas .btn { width: 100%; justify-content: center; }
  .cta-buttons { flex-direction: column; align-items: center; }
  .cta-buttons .btn { width: min(100%, 320px); justify-content: center; }
}

/* ----------------------------------------------------------
   Mobile Nav Phone (always visible on mobile)
   ---------------------------------------------------------- */
.nav-phone-mobile {
  display: inline-flex;
  color: #ffffff;
  font-weight: 700;
  font-size: 0.85rem;
  white-space: nowrap;
  margin-right: 0.75rem;
}
@media (min-width: 768px) {
  .nav-phone-mobile { display: none; }
}

/* ----------------------------------------------------------
   Testimonials
   ---------------------------------------------------------- */
.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
.testimonial-card {
  background: var(--surface-card);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-rest);
}
.testimonial-stars {
  color: #f59e0b;
  font-size: 1.25rem;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}
.testimonial-card blockquote {
  margin: 0;
}
.testimonial-card blockquote p {
  font-size: 1rem;
  color: var(--text-body);
  line-height: 1.7;
  font-style: italic;
  margin-bottom: 1.25rem;
}
.testimonial-author strong {
  display: block;
  font-size: 0.95rem;
  color: var(--text-primary);
}
.testimonial-author span {
  font-size: 0.85rem;
  color: var(--text-muted);
}

@media (min-width: 768px) {
  .testimonials-grid { grid-template-columns: repeat(3, 1fr); }
}
