/* ============================================================
   Dynamic Internet (dyni.net) — responsive redesign
   Refactored from the 960px fixed-width 2012 template so the
   site works on both mobile and desktop browsers.
   ============================================================ */

/* ---------- Fonts ---------- */
@font-face {
  font-family: 'Lato';
  font-style: normal;
  font-weight: 300;
  src: local('Lato Light'), local('Lato-Light'), url(../fonts/KT3KS9Aol4WfR6Vas8kNcg.woff) format('woff');
}
@font-face {
  font-family: 'Lato';
  font-style: normal;
  font-weight: 400;
  src: local('Lato Regular'), local('Lato-Regular'), url(../fonts/9k-RPmcnxYEPm8CNFsH2gg.woff) format('woff');
}
@font-face {
  font-family: 'Lato';
  font-style: normal;
  font-weight: 700;
  src: local('Lato Bold'), local('Lato-Bold'), url(../fonts/wkfQbvfT_02e2IWO3yYueQ.woff) format('woff');
}
@font-face {
  font-family: 'Lato';
  font-style: normal;
  font-weight: 900;
  src: local('Lato Black'), local('Lato-Black'), url(../fonts/BVtM30trf7q_jfqYeHfjtA.woff) format('woff');
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font: 13px/1.6 "Lato", "Trebuchet MS", Arial, Helvetica, sans-serif;
  color: #8a8a8a;
  background: #363636;
  min-width: 0; /* original had min-width:960px — killed for mobile */
}

/* Screen-reader-only text for semantic headings */
.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

h1, h2, h3, h4, h5, h6 {
  color: #8a8a8a;
  font-weight: 900;
  margin: 0;
  padding: 0 0 18px 0;
  font-family: 'Lato', sans-serif;
  line-height: 1.25;
}
h1 { font-size: 34px; }
h2 { font-size: 28px; }
h3 { font-size: 24px; }
h4 { font-size: 22px; }
h5 { font-size: 19px; }
h6 { font-size: 14px; }

p { margin: 0; padding-bottom: 18px; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img { max-width: 100%; height: auto; border: 0; }
a { color: #bb0c0c; outline: none; cursor: pointer; text-decoration: none; }
a:focus-visible { outline: 2px solid #bb0c0c; outline-offset: 2px; }

.clear { clear: both; display: block; overflow: hidden; height: 0; }
.wrapper { width: 100%; overflow: hidden; }
.extra-wrap { overflow: hidden; display: block; }

/* ---------- Site-wide width scale ----------
   A single .page-wrapper caps all content at 960px and applies the
   dark background so nothing bleeds to the browser edges.
   .page-inner provides consistent horizontal padding inside each section. */
.page-wrapper {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  background: #515151;
}

.page-inner {
  width: 100%;
  padding: 0 20px;
}
@media (min-width: 700px) {
  .page-inner { padding: 0 30px; }
}

/* ============================================================
   Header
   ============================================================ */
header {
  position: relative;
  z-index: 100;
  background: #515151;
}

header .inner {
  overflow: visible;
  width: 100%;
  padding: 14px 20px 10px 20px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 24px;
}
@media (min-width: 700px) {
  header .inner { padding: 14px 30px 10px 30px; }
}

.logo {
  display: block;
  flex: 0 1 auto;
  margin: 0;
  background: transparent;
  text-indent: auto;
  overflow: visible;
  color: #fff;
  font-family: 'Lato', sans-serif;
  font-weight: 900;
  text-decoration: none;
  line-height: 1.1;
  text-align: center; /* logo + tagline centered on each other */
}
.logo img { display: block; margin: 0 auto; width: auto; height: 56px; }
.logo .logo-sub {
  display: block;
  text-align: center;
  font-size: 10px;
  font-weight: 400;
  color: #9a9a9a;
  letter-spacing: .4px;
  text-transform: uppercase;
  margin-top: 3px;
}

/* Utility meta bar (facebook / email / phone / logins) */
.header-meta {
  margin: 0 0 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 0;
  color: #9a9a9a;
  font-size: 13px;
  padding: 0;
  list-style: none;
}
.header-meta li {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 16px;
  line-height: 1.4;
  min-height: 26px;
  position: relative;
}
.header-meta li:first-child { padding-left: 0; }
.header-meta li:last-child { padding-right: 0; }
/* Divider as a pseudo-element, centered in a symmetric 32px gap so the
   text never touches it */
.header-meta li + li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 1px;
  height: 16px;
  transform: translateY(-50%);
  background: #6a6a6a;
}
.header-meta li a {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  text-decoration: none;
  color: #9a9a9a;
  transition: color 250ms ease;
}
.header-meta li a:hover { color: #fff; }
.header-meta .fb-icon img { width: 22px; height: 22px; }

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 40px;
  padding: 8px;
  background: #3a3a3a;
  border: 1px solid #666;
  border-radius: 6px;
  cursor: pointer;
  margin-left: auto;
  order: 3;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform 250ms ease, opacity 250ms ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Nav ---------- */
header nav {
  width: 100%;
  background: #2b2b2b;
/*  box-shadow: 0 1px 0 #4a4a4a inset; */
  border-radius: 0;
}
.sf-menu {
  font-size: 0;
  line-height: 0;
  padding: 0 20px;
  position: relative;
  z-index: 40;
  display: flex;
  flex-wrap: wrap;
}
@media (min-width: 700px) {
  .sf-menu { padding: 0 30px; }
}
.sf-menu > li {
  position: relative;
  float: none;
  margin: 0;
  background: #2b2b2b;
}
.sf-menu > li.current {
  background: #1c1c1c;
/*  box-shadow: 0 1px 0 #404040 inset; */
}
.sf-menu > li > a {
  text-decoration: none;
  text-align: center;
  display: block;
  font-size: 13px;
  line-height: 15px;
  text-transform: uppercase;
  color: #fdfdfd;
  font-family: 'Lato', sans-serif;
  padding: 16px 22px;
  font-weight: 900;
  text-shadow: 1px 1px 2px #191919;
  border-right: 1px solid #3a3a3a;
  transition: background 200ms ease;
}
.sf-menu > li:last-child > a { border-right: 0; }
.sf-menu > li:hover > a,
.sf-menu > li.current > a {
  background: #1c1c1c;
  color: #fff;
}


/* ============================================================
   Hero slider
   ============================================================ */
#top-content {
  position: relative;
  z-index: 5;
  width: 100%;
  margin: 0 auto;
  background: #fff;
}
.top-content-inner {
  position: relative;
  background: #fff;
  border-radius: 0 0 7px 7px;
  overflow: hidden;
}

.hero {
  position: relative;
  width: 100%;
  overflow: hidden;
  aspect-ratio: 950 / 322;
  background: #dfe3e6 url(../images/loader.gif) 50% 50% no-repeat;
  min-height: 240px;
}

/* Slides (kept as real <img> so the hero never depends on JS) */
.hero .slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateX(24px);
  transition: opacity 700ms ease, transform 700ms ease;
  pointer-events: none;
  display: flex;
  align-items: stretch;
}
.hero .slide.active {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
  z-index: 2;
}
.hero .slide .slide-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.hero .slide .slide-caption {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
  max-width: 620px;
  padding: 3.5% 4%;
}
.slide-caption .cap-title {
  margin: 0;
  padding: 0 0 6px 0;
  color: #282828;
  font-family: 'Lato', sans-serif;
  font-weight: 900;
  font-size: clamp(28px, 5.2vw, 48px);
  line-height: 1.05;
}
.slide-caption .cap-list {
  margin: 0 0 14px 0;
  padding: 0;
  max-width: 460px;
}
.slide-caption .cap-list li {
  background: url(../images/redball.png) no-repeat 0 4px;
  padding: 0 0 6px 18px;
  font-weight: 700;
  font-size: clamp(13px, 1.7vw, 16px);
  line-height: 1.5;
  color: #282828;
}
.slide-caption .cap-sub {
  margin: 0;
  font-family: 'Lato', sans-serif;
  font-weight: 400;
  font-size: clamp(15px, 2.5vw, 28px);
  line-height: 1.3;
  color: #282828;
}

/* Override for slide-2c.jpg (slide 1 in HTML): white text with black stroke — untouched */
.slide:nth-of-type(1) .cap-title {
  color: #fff;
  font-size: clamp(24px, 4.8vw, 44px);
  -webkit-text-stroke: 1.5px #000;
  text-shadow:
    0 0 4px rgba(255,255,255,.6),
    0 2px 6px rgba(0,0,0,.5);
}
.slide:nth-of-type(1) .cap-sub {
  color: #fff;
  font-weight: 300;
  font-size: clamp(14px, 2.3vw, 26px);
  -webkit-text-stroke: 1.2px #000;
  text-shadow:
    0 0 4px rgba(255,255,255,.5),
    0 2px 5px rgba(0,0,0,.5);
}
.slide:nth-of-type(1) .cap-list li {
  color: #282828;
  font-size: clamp(12px, 1.6vw, 15px);
}

/* Slides 2–4: black text with crisp white outline via multi-direction text-shadow */
.slide:nth-of-type(2) .cap-title,
.slide:nth-of-type(3) .cap-title,
.slide:nth-of-type(4) .cap-title {
  text-shadow:
    -2px -2px  0   #fff,
     2px -2px  0   #fff,
    -2px  2px  0   #fff,
     2px  2px  0   #fff,
     0   -2px  0   #fff,
     0    2px  0   #fff,
    -2px   0   0   #fff,
     2px   0   0   #fff,
     0   -1px  0   #fff,
     0    1px  0   #fff,
    -1px   0   0   #fff,
     1px   0   0   #fff,
     0    0  4px  rgba(255,255,255,.4),
     0    2px 6px  rgba(0,0,0,.4);
}
.slide:nth-of-type(2) .cap-sub,
.slide:nth-of-type(3) .cap-sub,
.slide:nth-of-type(4) .cap-sub {
  text-shadow:
    -1px -1px  0   #fff,
     1px -1px  0   #fff,
    -1px  1px  0   #fff,
     1px  1px  0   #fff,
     0   -1px  0   #fff,
     0    1px  0   #fff,
    -1px   0   0   #fff,
     1px   0   0   #fff,
     0    0  3px  rgba(255,255,255,.3),
     0    1px 4px  rgba(0,0,0,.3);
}
.slide:nth-of-type(2) .cap-list li,
.slide:nth-of-type(3) .cap-list li,
.slide:nth-of-type(4) .cap-list li {
  text-shadow:
    -1px -1px  0   #fff,
     1px -1px  0   #fff,
    -1px  1px  0   #fff,
     1px  1px  0   #fff,
     0   -1px  0   #fff,
     0    1px  0   #fff,
    -1px   0   0   #fff,
     1px   0   0   #fff,
     0    0  2px  rgba(255,255,255,.3),
     0    1px 2px  rgba(0,0,0,.3);
}

.slide-caption .cap-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}
.slide-caption .cap-buttons .button-1 {
  /* buttons live over the photo on some slides — keep them solid */
  text-shadow: none;
}

/* White pill buttons from the original design */
.button-1 {
  display: inline-block;
  background: #fff;
  font-family: 'Lato', sans-serif;
  font-weight: 900;
  padding: 7px 14px;
  color: #171717;
  text-decoration: none;
  font-size: 12px;
  line-height: 1.4;
  text-transform: uppercase;
  border-radius: 6px;
  box-shadow: 1px 1px 2px #b8c0c5;
  transition: background 300ms ease-out;
}
.button-1:hover { background: #b5bac0; }

/* Slider pagination dots */
.hero-dots {
  position: absolute;
  z-index: 10;
  bottom: 10px;
  right: 14px;
  display: flex;
  gap: 8px;
}
.hero-dots button {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  border: 1px solid #888;
  background: #d5dbdf;
  cursor: pointer;
  padding: 0;
  transition: background 300ms ease;
}
.hero-dots button.active,
.hero-dots button:hover { background: #282828; }

/* ============================================================
   Top content: three service cards + bottom "read more" box
   ============================================================ */
.top-cards {
  padding: 34px 20px 26px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 26px;
}
@media (min-width: 700px) {
  .top-cards { grid-template-columns: repeat(3, 1fr); gap: 22px; padding: 40px 30px 30px; }
}

.service-card h5 {
  color: #282828;
  letter-spacing: -0.5px;
  padding: 0 0 12px 0;
  font-size: 19px;
  line-height: 1.2;
}
.list-2 { margin: 0; }
.list-2 li {
  display: block;
  line-height: 1.5;
  font-size: 13px;
  padding: 0 0 7px 18px;
  background: url(../images/redball.png) no-repeat 0 3px;
  color: #6f6f6f;
}

.bottom-box {
  background: #e8ecef;
  padding: 12px 20px 18px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  border-radius: 0 0 7px 7px;
  text-align: center;
}
@media (min-width: 700px) {
  .bottom-box { grid-template-columns: repeat(3, 1fr); padding: 14px 30px 18px; text-align: left; }
}
.bottom-box .button {
  display: inline-block;
  font-family: 'Lato', sans-serif;
  color: #282828;
  font-size: 12px;
  text-transform: uppercase;
  font-weight: 900;
  text-decoration: none;
  letter-spacing: .4px;
}
.bottom-box .button:hover { color: #929ca5; text-decoration: underline; }

/* ============================================================
   Main content (dark section)
   ============================================================ */
section#content {
  position: relative;
  z-index: 4;
  background: #353535;
  border-radius: 7px;
  width: 100%;
  margin: 10px auto 0;
}
#content .content-bg {
  padding: 30px 20px 40px;
}
@media (min-width: 700px) {
  #content .content-bg { padding: 42px 30px 50px; }
}

#content .duo {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}
@media (min-width: 820px) {
  #content .duo { grid-template-columns: 1fr 2.00fr; gap: 28px; }
}

/* Dark stat list (home) */
.list-1 { padding: 0 0 14px 0; }
.list-1 li {
  display: block;
  line-height: 1.5;
  padding: 8px 0 9px 16px;
  border-top: 1px solid #464646;
  font-size: 13px;
  color: #fff;
  font-weight: 700;
}
.list-1 li:first-child { border-top: none; }
.list-1 li a { font-size: 13px; color: #fff; text-decoration: none; font-weight: 700; }
.list-1 li a:hover { color: #8a8a8a; }

.head-1 { color: #fff; }
#content p { color: #b5b5b5; font-size: 14px; line-height: 1.65; }
#content p strong, #content .lead { color: #dcdcdc; }
#content .callout {
  color: #fff;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.5;
  font-family: 'Lato', sans-serif;
  padding: 6px 0 0 0;
}
#content h5 { color: #fff; font-size: 18px; padding: 0 0 10px 0; }
#content h5.hp-1 { padding-top: 8px; }
/* Service section headings (upgraded to h2 for SEO) keep compact styling */
#content h2:not(.head-1) {
  font-size: 18px;
  color: #fff;
  padding: 0 0 10px 0;
  margin-top: 20px;
}
#content h2:first-child {
  margin-top: 0;
}
#content a { color: #e08a8a; text-decoration: none; }
#content a:hover { color: #fff; text-decoration: underline; }
#content .link-1 { color: #fff; }

/* Bullet list inside content */
ul.indent, ul.indent li { list-style: none; }
ul.indent {
  margin: 0 0 20px 0;
}
ul.indent li {
  position: relative;
  line-height: 1.55;
  font-size: 14px;
  color: #b5b5b5;
  padding: 4px 0 4px 18px;
}
ul.indent li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 11px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #bb0c0c;
}

article.figure img {
  width: 100%;
  max-width: 320px;
  margin: 0 auto 20px;
  display: block;
}
@media (min-width: 820px) {
  article.figure img { margin: 6px 0 26px 0; max-width: none; }
}

/* Anchor sections get a little breathing room */
section#content [id] { scroll-margin-top: 90px; }

/* Contact page specifics */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}
@media (min-width: 820px) {
  .contact-grid { grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: start; }
}
.map-box a { display: block; }
.map-box img {
  width: 100%;
  max-width: 425px;
  height: auto;
  border: 4px solid #464646;
  border-radius: 4px;
}
.contact-info strong { color: #fff; display: block; margin-bottom: 6px; }
dl.adress { margin: 0; }
dl.adress dt, dl.adress dd {
  font-size: 14px;
  line-height: 1.7;
  padding: 0;
  color: #b5b5b5;
  margin: 0 0 6px 0;
}
dl.adress dd { display: flex; gap: 10px; }
dl.adress dd span { width: 62px; flex: 0 0 auto; color: #8a8a8a; }
dl.adress dd a { color: #fff; text-decoration: none; }
dl.adress dd a:hover { text-decoration: underline; }

/* ============================================================
   Footer
   ============================================================ */
footer {
  position: relative;
  padding: 30px 20px 34px;
  text-align: center;
  margin: 10px auto 0;
  background: #515151;
}
.footet-site-info {
  font-size: 13px;
  line-height: 1.7;
  color: #8a8a8a;
  font-weight: 700;
}
.footet-site-info b { display: block; }
.footet-site-info a { text-decoration: none; color: #8a8a8a; }
.footet-site-info a:hover { color: #fff; }
.footet-site-info .net-notice { font-weight: 400; }
.footet-site-info .net-notice .warn { color: #FE2E2E; font-weight: 700; }
.footet-site-info .brand-line { font-size: 15px; margin: 12px 0 2px; }
.footet-site-info .copy { font-weight: 400; color: #6d6d6d; }
.footet-site-info .photo-credits { font-size: 11px; color: #5f5f5f; font-weight: 400; margin-top: 4px; }

/* Live network status line (footer) */
#conn-status .warn { color: #FE2E2E; font-weight: 700; }
#conn-status .ok { color: #7bd67b; font-weight: 700; }
#conn-status.hide { display: none; }

/* ============================================================
   Responsive: small screens (phones)
   ============================================================ */
@media (max-width: 767px) {
  h1 { font-size: 26px; }
  h2 { font-size: 23px; }
  h4 { font-size: 19px; }

  /* Mobile hero: stack image above the caption.
     The slide photos have a light-gray text zone baked in, so the
     caption sits below the image on the same gray for readability. */
  .hero {
    aspect-ratio: auto;
    min-height: 0;
    background: #dfe3e6;
  }
  /* Stack image above caption in normal flow */
  .hero .slide {
    position: absolute;
    inset: 0;
    display: block;
  }
  .hero .slide.active { position: relative; }
  .hero .slide .slide-bg {
    position: static;
    display: block;
    width: 100%;
    height: auto;
  }
  .hero .slide .slide-caption {
    position: static;
    width: 100%;
    max-width: none;
    flex-direction: column;
    justify-content: flex-start;
    padding: 16px 16px 20px;
    background: #dde1e4;
  }
  .hero-dots { top: 8px; right: 10px; bottom: auto; }

  header .inner {
    padding: 12px 16px 8px 16px;
    flex-wrap: wrap;
  }
  .logo img { height: 46px; }
  .logo .logo-sub { font-size: 9px; }

  .nav-toggle { display: flex; }

  /* Collapsible nav */
  header nav {
    display: none;
    border-radius: 0;
  }
  header nav.open { display: block; }
  .sf-menu { flex-direction: column; align-items: stretch; padding: 0; }
  .sf-menu > li { border-bottom: 1px solid #3a3a3a; }
  .sf-menu > li > a {
    text-align: left;
    padding: 14px 20px;
    border-right: 0;
  }
  .sf-menu > li:last-child { border-bottom: 0; }

  .slide-caption .cap-buttons { margin-top: 10px; }
  .button-1 { padding: 8px 14px; font-size: 13px; }

  .top-cards { padding: 26px 16px 18px; gap: 22px; }
  .bottom-box { padding: 14px 16px 18px; }

  #content .content-bg { padding: 26px 16px 34px; }
  #content p { font-size: 13.5px; }

  .contact-grid { gap: 20px; }
  .map-box img { max-width: 100%; }

  /* Meta bar: keep it, but let it wrap and shrink */
  .header-meta {
    margin: 0;
    width: 100%;
    order: 4;
    justify-content: flex-start;
    padding-bottom: 4px;
  }
  .header-meta li {
    padding: 2px 12px;
    font-size: 12px;
  }
  .header-meta li + li::before { display: none; } /* no dividers on phones */
  .header-meta li a { font-size: 11.5px; }
  .header-meta .item-phone { display: none; } /* declutter phones */
}

/* Mid-size tablets */
@media (min-width: 768px) and (max-width: 1023px) {
  .sf-menu > li > a { padding: 15px 16px; font-size: 12.5px; }
  .header-meta li { padding: 0 10px; }
  .header-meta li a { font-size: 12.5px; }
}

/* Print: keep it sane */
@media print {
  .nav-toggle, .hero-dots, .bottom-box { display: none !important; }
  body { background: #fff; color: #000; }
  section#content, #top-content { background: #fff; }
}
