/* Base styles for IT84 Support site */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Segoe UI", Arial, sans-serif;
  color: #1b1f24;
  background: #f7f8fa;
  line-height: 1.6;
}

/* Layout helpers */
.container {
  width: min(1100px, 92%);
  margin: 0 auto;
}

/* Section spacing tuned for tighter vertical rhythm */
.section {
  padding: 40px 0;
}

.accent {
  background: #eef4ff;
}

/* Header */
.site-header {
  background: #0d1b2a;
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 10;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
}

/* Logo sizing for the header */
.brand-logo {
  height: 44px;
  width: auto;
  display: block;
}

.brand-mark {
  font-size: 22px;
}

.brand-sub {
  font-size: 14px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #9fd3ff;
}

/* Menu: single font and size for all items (links and dropdowns) */
.nav {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 15px;
}

.nav a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: inherit;
}

.nav a:hover {
  text-decoration: underline;
}

/* Dropdown navigation */
.nav-group {
  position: relative;
}

.nav-button {
  background: transparent;
  border: none;
  color: #fff;
  font-family: inherit;
  font-size: inherit;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
}

.nav-button:hover,
.nav-button:focus-visible {
  text-decoration: underline;
}

.nav-dropdown {
  position: absolute;
  top: 26px;
  left: 0;
  background: #0d1b2a;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  min-width: 220px;
  padding: 8px;
  display: none;
  flex-direction: column;
  gap: 6px;
  z-index: 20;
  font-size: inherit;
}

.nav-group:hover .nav-dropdown,
.nav-group:focus-within .nav-dropdown {
  display: flex;
}

.nav-dropdown a {
  color: #fff;
  text-decoration: none;
  padding: 6px 8px;
  border-radius: 6px;
  font-size: inherit;
}

.nav-dropdown a:hover,
.nav-dropdown a:focus-visible {
  background: rgba(255, 255, 255, 0.1);
}

/* Hero */
.hero {
  background: #16263c;
  color: #fff;
  padding: 72px 0 88px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-size: 12px;
  color: #9fd3ff;
}

.hero h1 {
  margin: 12px 0 16px;
  font-size: clamp(28px, 4vw, 40px);
}

.hero-copy {
  max-width: 720px;
}

.hero-actions {
  margin-top: 24px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* Buttons */
.button {
  display: inline-block;
  padding: 10px 18px;
  border-radius: 6px;
  border: 1px solid transparent;
  text-decoration: none;
  font-weight: 600;
  cursor: pointer;
}

.button.primary {
  background: #2b6cb0;
  color: #fff;
}

.button.ghost {
  background: transparent;
  color: #2b6cb0;
  border-color: #2b6cb0;
}

/* Cards and grid */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}

/* Chips for target audience */
.chip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.chip {
  position: relative;
  background: #0d1b2a;
  color: #fff;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 13px;
}

.chip:focus-visible {
  outline: 2px solid #9fd3ff;
  outline-offset: 2px;
}

/* Chip tooltip for testimonials */
.chip-tooltip {
  position: absolute;
  left: 0;
  bottom: calc(100% + 10px);
  width: 260px;
  background: #0d1b2a;
  color: #fff;
  padding: 12px;
  border-radius: 10px;
  font-size: 13px;
  line-height: 1.4;
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.18);
  opacity: 0;
  pointer-events: none;
  transform: translateY(6px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 30;
}

.chip:hover .chip-tooltip,
.chip:focus-within .chip-tooltip {
  opacity: 1;
  transform: translateY(0);
}

.chip-cite {
  display: block;
  margin-top: 6px;
  font-weight: 700;
  color: #9fd3ff;
}

/* Who we help actions */
.who-help-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 14px;
  align-items: center;
}

.action-dropdown {
  position: relative;
}

.action-button {
  background: #0d1b2a;
  color: #fff;
  border: none;
  padding: 8px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
}

.action-menu {
  position: absolute;
  top: 40px;
  left: 0;
  background: #0d1b2a;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  min-width: 240px;
  padding: 8px;
  display: none;
  flex-direction: column;
  gap: 6px;
  z-index: 20;
}

.action-dropdown:hover .action-menu,
.action-dropdown:focus-within .action-menu {
  display: flex;
}

.action-menu a {
  color: #fff;
  text-decoration: none;
  padding: 6px 8px;
  border-radius: 6px;
}

.action-menu a:hover,
.action-menu a:focus-visible {
  background: rgba(255, 255, 255, 0.1);
}

/* Engagement section */
.engagement-layout {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(280px, 1.2fr);
  gap: 18px;
  margin-bottom: 24px;
}

.link-list {
  margin: 12px 0 0;
  padding-left: 18px;
}

.link-list li {
  margin-bottom: 8px;
}

.link-list a {
  color: #2b6cb0;
  text-decoration: none;
  font-weight: 600;
}

.link-list a:hover {
  text-decoration: underline;
}

/* RSS ticker */
.ticker {
  margin-top: 16px;
  background: #0d1b2a;
  color: #fff;
  border-radius: 10px;
  padding: 12px;
  overflow: hidden;
}

.ticker-header {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: #9fd3ff;
  margin-bottom: 10px;
}

.ticker-note {
  font-style: italic;
  text-transform: none;
}

.ticker-track {
  display: flex;
  gap: 24px;
  white-space: nowrap;
  animation: ticker-scroll 15s linear infinite;
}

.ticker:hover .ticker-track,
.ticker:focus-within .ticker-track {
  animation-play-state: paused;
}

.ticker-item {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
}

.ticker-item:hover,
.ticker-item:focus-visible {
  text-decoration: underline;
}

@keyframes ticker-scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* RSS feed modal: popup showing feed content (not raw XML) */
.rss-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.rss-modal[hidden] {
  display: none;
}

.rss-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(13, 27, 42, 0.7);
  cursor: pointer;
}

.rss-modal-panel {
  position: relative;
  width: 100%;
  max-width: 560px;
  max-height: 85vh;
  overflow: auto;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
  padding: 24px;
}

.rss-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border: none;
  background: #e2e8f0;
  border-radius: 8px;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  color: #334155;
}

.rss-modal-close:hover,
.rss-modal-close:focus-visible {
  background: #cbd5e1;
}

.rss-modal-title {
  margin: 0 40px 16px 0;
  font-size: 1.25rem;
  color: #0d1b2a;
}

.rss-modal-content {
  margin-top: 8px;
}

.rss-modal-loading,
.rss-modal-error {
  color: #64748b;
  margin: 0;
}

.rss-modal-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.rss-modal-list li {
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid #e2e8f0;
}

.rss-modal-list li:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.rss-modal-list a {
  color: #2b6cb0;
  font-weight: 600;
  text-decoration: none;
}

.rss-modal-list a:hover {
  text-decoration: underline;
}

.rss-modal-date {
  display: block;
  font-size: 0.85rem;
  color: #64748b;
  margin-top: 4px;
}

.rss-modal-desc {
  font-size: 0.9rem;
  color: #475569;
  margin: 6px 0 0;
  line-height: 1.4;
}

/* Banner links */
.banner-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.banner-item {
  display: flex;
  align-items: center;
  min-height: 120px;
  padding: 16px;
  border-radius: 12px;
  background: #0d1b2a;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.12);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.banner-item:hover,
.banner-item:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.18);
}

.banner-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.banner-title {
  font-size: 18px;
  font-weight: 700;
  margin: 0;
}

.banner-sub {
  font-size: 14px;
  margin: 0;
  color: #cfe5ff;
}

/* Partners page: logo + text cards */
.partners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 20px;
}

.partner-card {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
}

.partner-logo-wrap {
  flex-shrink: 0;
  width: 120px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f7f8fa;
  border-radius: 8px;
  padding: 8px;
}

.partner-logo {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.partner-body {
  flex: 1;
  min-width: 0;
}

.partner-body h3 {
  margin: 0 0 8px;
  font-size: 1.1rem;
  color: #0d1b2a;
}

.partner-body p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.5;
  color: #334155;
}

/* FAQ and quotes */
.faq details {
  background: #fff;
  border-radius: 10px;
  padding: 14px 18px;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
  margin-bottom: 12px;
}

.faq summary {
  cursor: pointer;
  font-weight: 700;
}

.quote {
  font-style: italic;
}

.quote cite {
  display: block;
  margin-top: 10px;
  font-style: normal;
  font-weight: 700;
}

/* Service areas map */
.map-card {
  margin-top: 16px;
  background: #fff;
  border-radius: 10px;
  padding: 12px;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
  max-width: 40%;
  margin-left: auto;
  margin-right: auto;
}

.service-map {
  width: 100%;
  height: 320px;
  border: 0;
  border-radius: 8px;
}

.map-caption {
  margin: 10px 4px 0;
  color: #4b5563;
  font-size: 14px;
}

/* Results image grid */
.results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  margin-top: 20px;
}

.result-card {
  position: relative;
  display: block;
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: #fff;
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.12);
}

.result-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.result-card:hover img,
.result-card:focus-visible img {
  transform: scale(1.04);
}

.result-title {
  position: absolute;
  left: 12px;
  bottom: 12px;
  background: rgba(0, 0, 0, 0.6);
  padding: 6px 10px;
  border-radius: 6px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.result-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 16px;
  background: rgba(0, 0, 0, 0.6);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.result-card:hover .result-overlay,
.result-card:focus-visible .result-overlay {
  opacity: 1;
}

.card {
  background: #fff;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(250px, 1fr) minmax(280px, 1fr);
  gap: 28px;
}

.contact-card {
  background: #fff;
  border-radius: 10px;
  padding: 18px;
  margin-top: 20px;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
}

.contact-title {
  font-weight: 700;
  margin: 0 0 6px;
}

.contact-phone {
  font-size: 20px;
  margin: 0 0 8px;
}

.contact-hours {
  font-weight: 700;
}

.contact-form {
  background: #fff;
  border-radius: 10px;
  padding: 22px;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
}

.contact-form label {
  display: block;
  margin-bottom: 12px;
  font-weight: 600;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  margin-top: 6px;
  padding: 10px;
  border-radius: 6px;
  border: 1px solid #cbd5e1;
  font-size: 14px;
}

.form-note {
  font-size: 12px;
  color: #4b5563;
}

.form-actions {
  margin-top: 12px;
  display: flex;
  gap: 12px;
}

/* ── About Us: profile hero layout ─────────────────────────────── */
.about-hero {
  padding-bottom: 40px;
}

.about-profile {
  display: flex;
  align-items: flex-start;
  gap: 48px;
}

/* Headshot column */
.about-photo-wrap {
  flex: 0 0 250px;
  text-align: center;
}

/* Portrait headshot: rounded rectangle (matches SamBruce_HS_1.png 287x334 crop) */
.about-photo {
  width: 240px;
  height: auto;
  aspect-ratio: 287 / 334;
  border-radius: 16px;
  object-fit: cover;
  object-position: center center;
  border: 4px solid #fff;
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
  display: block;
  margin: 0 auto;
}

/* Placeholder fallback (unused when photo is present) */
.about-photo-placeholder {
  width: 240px;
  aspect-ratio: 287 / 334;
  border-radius: 16px;
  background: #c9d8f0;
  border: 4px solid #fff;
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
}

.about-initials {
  font-size: 56px;
  font-weight: 700;
  color: #1a3a5c;
  letter-spacing: 2px;
  line-height: 1;
}

.about-photo-caption {
  margin-top: 12px;
  font-size: 0.95em;
  font-weight: 700;
  color: #fff;
  line-height: 1.4;
}

.about-photo-caption span {
  font-weight: 400;
  font-size: 0.9em;
  opacity: 0.85;
}

.about-linkedin {
  display: inline-block;
  margin-top: 8px;
  font-size: 0.85em;
  color: #fff;
  text-decoration: underline;
  opacity: 0.9;
}

.about-linkedin:hover,
.about-linkedin:focus-visible {
  opacity: 1;
}

/* LinkedIn link in quote cite block */
.quote cite a {
  color: inherit;
}

.quote cite a:hover,
.quote cite a:focus-visible {
  text-decoration: underline;
}

/* Text column */
.about-intro {
  flex: 1;
}

/* Stack vertically on small screens */
@media (max-width: 640px) {
  .about-profile {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .about-photo-wrap {
    flex: none;
  }

  .about-intro .hero-actions {
    justify-content: center;
  }
}
/* ── End About Us ────────────────────────────────────────────────── */

/* Footer */
.site-footer {
  padding: 28px 0;
  text-align: center;
  background: #0d1b2a;
  color: #fff;
}

/* Utility */
.lead {
  font-size: 18px;
}

.muted {
  color: #4b5563;
}

.text-link {
  color: #2b6cb0;
  text-decoration: none;
  font-weight: 600;
}

.text-link:hover {
  text-decoration: underline;
}

/* Responsive tweaks */
@media (max-width: 860px) {
  .header-inner {
    flex-direction: column;
    gap: 10px;
  }

  .engagement-layout {
    grid-template-columns: 1fr;
  }

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

  .map-card {
    max-width: 100%;
  }
}
