/* ==========================================================================
   Global Offset Technical Solutions — site styles
   Single stylesheet, no build step. Brand palette via CSS custom properties.
   ========================================================================== */

:root {
  --brand: #00adef;       /* signature cyan */
  --brand-dark: #0086bb;
  --ink: #14181d;         /* near-black for bars and text */
  --ink-soft: #2a2f36;
  --bg: #ffffff;
  --bg-alt: #f4f6f8;      /* light section band */
  --line: #e2e6ea;
  --text: #2b3138;
  --text-muted: #5c6670;
  --accent: #f5b417;      /* warm highlight (replaces old bright yellow) */
  --maxw: 1140px;
  --radius: 10px;
  --shadow: 0 6px 24px rgba(20, 24, 29, 0.08);
  --shadow-lg: 0 18px 48px rgba(20, 24, 29, 0.20);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial,
    sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--brand-dark); }

h1, h2, h3 { line-height: 1.2; color: var(--ink); font-weight: 700; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 2rem);
}

.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;
}

/* --------------------------------------------------------------- Header / nav */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--ink);
  color: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 76px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: #fff;
  text-decoration: none;
}

.brand img { height: 50px; width: auto; }

.brand-name {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.brand-name strong { font-size: 1.05rem; letter-spacing: 0.01em; }
.brand-name span { font-size: 0.72rem; color: var(--brand); letter-spacing: 0.06em; text-transform: uppercase; }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  color: #fff;
  cursor: pointer;
  padding: 0.5rem;
}
.nav-toggle svg { display: block; }

.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 0.25rem;
}

.main-nav a {
  display: block;
  color: #e8edf2;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  padding: 0.55rem 0.85rem;
  border-radius: 6px;
  transition: color 0.15s, background-color 0.15s;
}
.main-nav a:hover,
.main-nav a:focus-visible { color: #fff; background: rgba(255, 255, 255, 0.08); }
.main-nav a.is-active { color: var(--brand); }

/* --------------------------------------------------------------------- Hero */
.hero {
  background: linear-gradient(180deg, var(--ink) 0%, var(--ink-soft) 100%);
  color: #fff;
}
.hero .container { padding-block: clamp(1.5rem, 4vw, 2.75rem); }

.slideshow {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: #000;
  aspect-ratio: 16 / 7;
}
.slideshow .slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.8s ease;
}
.slideshow .slide img { width: 100%; height: 100%; object-fit: cover; object-position: center 38%; }
.slideshow .slide.is-active { opacity: 1; }

.slideshow .dots {
  position: absolute;
  left: 0; right: 0; bottom: 0.6rem;
  display: flex;
  justify-content: center;
  gap: 0.4rem;
}
.slideshow .dots button {
  width: 10px; height: 10px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  padding: 0;
}
.slideshow .dots button[aria-current="true"] { background: var(--brand); }

.hero-lead {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: clamp(1rem, 3vw, 2rem);
  align-items: center;
  margin-top: 1.75rem;
}
.hero-lead h1 {
  color: #fff;
  font-size: clamp(1.5rem, 3.2vw, 2.25rem);
  margin: 0 0 0.5rem;
}
.hero-lead p { color: #cfd7df; margin: 0; }
.hero-lead .brand-em { color: var(--brand); }

.cta-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  text-align: center;
}
.cta-card .label { text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.78rem; color: var(--brand); margin: 0 0 0.25rem; }
.cta-card .phone { font-size: clamp(1.5rem, 4vw, 2rem); font-weight: 800; color: #fff; text-decoration: none; display: inline-block; }
.cta-card .phone:hover { color: var(--brand); }
.cta-card .email { display: inline-block; margin-top: 0.5rem; color: #cfd7df; text-decoration: none; }
.cta-card .email:hover { color: #fff; }

/* ------------------------------------------------------------------ Buttons */
.btn {
  display: inline-block;
  background: var(--brand);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  padding: 0.7rem 1.4rem;
  border-radius: 8px;
  border: 0;
  cursor: pointer;
  font-size: 1rem;
  transition: background-color 0.15s, transform 0.05s;
}
.btn:hover { background: var(--brand-dark); }
.btn:active { transform: translateY(1px); }
.btn-ghost {
  background: transparent;
  border: 2px solid var(--brand);
  color: var(--brand);
}
.btn-ghost:hover { background: var(--brand); color: #fff; }

/* ----------------------------------------------------------------- Sections */
main { display: block; }

.section { padding-block: clamp(2.5rem, 6vw, 4rem); }
.section-alt { background: var(--bg-alt); }

.page-head {
  background: var(--bg-alt);
  border-bottom: 1px solid var(--line);
  padding-block: clamp(2rem, 5vw, 3rem);
}
.page-head h1 {
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 2.5rem);
}
.page-head .kicker {
  color: var(--brand-dark);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
  margin: 0 0 0.4rem;
}
.page-head p.lede { margin: 0.75rem 0 0; max-width: 70ch; color: var(--text-muted); }

.section h2 { font-size: clamp(1.4rem, 3vw, 2rem); margin: 0 0 1rem; }
.section .lede { font-size: 1.1rem; color: var(--text-muted); max-width: 70ch; }

.prose p { margin: 0 0 1rem; max-width: 72ch; }
.prose strong { color: var(--ink); }

/* Two/three column feature text */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}
.feature {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}
.feature h3 { margin: 0 0 0.5rem; font-size: 1.15rem; color: var(--brand-dark); }
.feature p { margin: 0; color: var(--text); }

/* Highlight band */
.band {
  background: var(--brand);
  color: #fff;
  text-align: center;
  padding-block: clamp(2rem, 5vw, 3rem);
}
.band h2 { color: #fff; }
.band p { font-size: clamp(1.1rem, 2.5vw, 1.4rem); margin: 0.25rem auto; max-width: 60ch; }
.band .accent { color: var(--ink); }

/* ------------------------------------------------------------ Services cards */
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}
.service-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}
.service-card .imgs { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; background: var(--line); }
.service-card .imgs.single { grid-template-columns: 1fr; }
.service-card .imgs img { width: 100%; height: 150px; object-fit: cover; }
.service-card h3 {
  margin: 0;
  padding: 1rem 1.25rem;
  font-size: 1.05rem;
  color: var(--ink);
}
.service-list {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 0.75rem;
}
.service-list li {
  background: #fff;
  border: 1px solid var(--line);
  border-left: 4px solid var(--brand);
  border-radius: 6px;
  padding: 0.85rem 1.1rem;
  font-weight: 600;
}

/* ---------------------------------------------------------------- Team / bios */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}
.bio {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.bio .bio-head {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  background: var(--ink);
  color: #fff;
}
.bio .bio-head img { width: 90px; height: 78px; object-fit: cover; border-radius: 6px; }
.bio .bio-head h3 { color: #fff; margin: 0; }
.bio .bio-head span { color: var(--brand); font-size: 0.85rem; }
.bio .bio-body { padding: 1.5rem; }
.bio .bio-body p { margin: 0 0 0.9rem; }

/* ---------------------------------------------------------- Testimonials */
.quote-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}
.quote {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow);
  position: relative;
}
.quote::before {
  content: "\201C";
  font-size: 4rem;
  line-height: 1;
  color: var(--brand);
  opacity: 0.25;
  position: absolute;
  top: 0.5rem; left: 1rem;
}
.quote blockquote { margin: 0; padding-top: 1rem; font-size: 1rem; }
.quote cite {
  display: block;
  margin-top: 1rem;
  font-style: normal;
  font-weight: 700;
  color: var(--ink);
}
.quote cite span { display: block; font-weight: 400; color: var(--text-muted); font-size: 0.9rem; }

/* ---------------------------------------------------------------- Gallery */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
}
.gallery a {
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  position: relative;
  aspect-ratio: 4 / 3;
  background: #000;
}
.gallery a img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.gallery a:hover img { transform: scale(1.06); }
.gallery a .cap {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
  color: #fff;
  font-size: 0.8rem;
  padding: 1.25rem 0.6rem 0.5rem;
  opacity: 0;
  transition: opacity 0.2s;
}
.gallery a:hover .cap,
.gallery a:focus-visible .cap { opacity: 1; }

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: 1.5rem;
}
.lightbox.is-open { display: flex; }
.lightbox img {
  max-width: 100%;
  max-height: 82vh;
  border-radius: 6px;
  box-shadow: var(--shadow-lg);
}
.lightbox .lb-cap {
  position: absolute;
  bottom: 1.25rem; left: 0; right: 0;
  text-align: center;
  color: #fff;
  font-size: 0.95rem;
}
.lightbox button {
  position: absolute;
  background: rgba(255, 255, 255, 0.12);
  border: 0;
  color: #fff;
  width: 48px; height: 48px;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox button:hover { background: var(--brand); }
.lb-close { top: 1rem; right: 1rem; }
.lb-prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.lb-next { right: 1rem; top: 50%; transform: translateY(-50%); }

/* ------------------------------------------------------------------ Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}
.contact-info dl { margin: 0; }
.contact-info dt {
  font-weight: 700;
  color: var(--brand-dark);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.78rem;
  margin-top: 1.25rem;
}
.contact-info dd { margin: 0.25rem 0 0; font-size: 1.05rem; }
.contact-info a { color: var(--ink); text-decoration: none; font-weight: 600; }
.contact-info a:hover { color: var(--brand-dark); }
.map-embed {
  margin-top: 1.5rem;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 16 / 10;
}
.map-embed iframe { width: 100%; height: 100%; border: 0; }

.contact-form { display: grid; gap: 1rem; }
.contact-form label { font-weight: 600; font-size: 0.9rem; display: block; margin-bottom: 0.3rem; }
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
  background: #fff;
}
.contact-form input:focus,
.contact-form textarea:focus { outline: 2px solid var(--brand); border-color: var(--brand); }
.contact-form .note { font-size: 0.85rem; color: var(--text-muted); margin: 0; }

/* ---------------------------------------------------------------- Affiliates */
.affiliate-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
  align-items: center;
}
.affiliate-card {
  text-align: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
}
.affiliate-card img { margin: 0 auto 1rem; max-height: 140px; width: auto; }

/* ------------------------------------------------------------------- Footer */
.site-footer {
  background: var(--ink);
  color: #c4ccd4;
  padding-block: 2.5rem;
  font-size: 0.92rem;
}
.site-footer .container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}
.site-footer h4 { color: #fff; margin: 0 0 0.6rem; font-size: 0.95rem; letter-spacing: 0.03em; }
.site-footer a { color: var(--brand); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 0.35rem; }
/* Cancel the footer grid for the copyright line so it stays a single
   centered sentence (otherwise "©", the year, and the text become separate
   grid cells and stack into their own rows on mobile). */
.site-footer .footer-bottom {
  display: block;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 2rem;
  padding-top: 1.25rem;
  text-align: center;
  font-size: 0.82rem;
  color: #8b95a0;
  text-wrap: balance;
}

/* ----------------------------------------------------------- Responsive */
@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .main-nav {
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--ink);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }
  .main-nav.is-open { max-height: 70vh; }
  .main-nav ul { flex-direction: column; padding: 0.5rem; gap: 0.1rem; }
  .main-nav a { padding: 0.85rem 1rem; }
  .hero-lead { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto; }
  .slideshow .slide { transition: none; }
}
