/* ============================================================
   AVS Fiber Services LLC — Landing page styles
   Palette: orange #EE7A3C, navy #1F2D3D
   ============================================================ */

:root {
  --orange: #ee7a3c;
  --orange-dark: #d8642a;
  --orange-soft: #fbe7d8;
  --navy: #1f2d3d;
  --navy-2: #16212e;
  --ink: #2b3440;
  --muted: #6b7785;
  --line: #e6e9ee;
  --bg: #ffffff;
  --bg-alt: #f6f7f9;
  --white: #ffffff;
  --radius: 10px;
  --shadow: 0 12px 30px rgba(20, 33, 46, .10);
  --shadow-sm: 0 6px 16px rgba(20, 33, 46, .08);
  --container: 1180px;
  --header-h: 78px;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 38px); }
body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--orange-dark); text-decoration: none; }
h1, h2, h3, h4 { font-family: "Poppins", system-ui, sans-serif; color: var(--navy); line-height: 1.15; margin: 0 0 .5em; }
p { margin: 0 0 1rem; }
ul { margin: 0; padding: 0; list-style: none; }

.container { width: min(100% - 2.5rem, var(--container)); margin-inline: auto; }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--navy); color: #fff; padding: .6rem 1rem; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: "Poppins", sans-serif; font-weight: 700; font-size: .95rem;
  letter-spacing: .2px; padding: .8rem 1.5rem; border-radius: 8px;
  border: 2px solid transparent; cursor: pointer; transition: .18s ease;
  text-align: center;
}
.btn--lg { padding: 1rem 1.9rem; font-size: 1rem; }
.btn__ico { width: 1.15em; height: 1.15em; fill: currentColor; }
.btn--primary { background: var(--orange); color: #fff; }
.btn--primary:hover { background: var(--orange-dark); transform: translateY(-2px); }
.btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.7); }
.btn--ghost:hover { background: #fff; color: var(--navy); border-color: #fff; }
.btn--light { background: #fff; color: var(--navy); }
.btn--light:hover { background: var(--orange-soft); transform: translateY(-2px); }
.btn--quote { background: var(--navy); color: #fff; }
.btn--quote:hover { background: var(--navy-2); }

/* ---------- Top bar ---------- */
.topbar { background: var(--navy-2); color: #cfd6de; font-size: .85rem; }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 42px; }
.topbar__contact { display: flex; flex-wrap: wrap; gap: 1.4rem; align-items: center; }
.topbar__contact a, .topbar__hours { display: inline-flex; align-items: center; gap: .45rem; color: #cfd6de; }
.topbar__contact a:hover { color: #fff; }
.ico { width: 16px; height: 16px; fill: var(--orange); flex: none; }
.topbar__cta {
  color: #fff; font-weight: 600; border-bottom: 2px solid var(--orange); padding-bottom: 2px;
}
.topbar__cta:hover { color: var(--orange); }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 100; background: var(--orange);
  box-shadow: 0 2px 14px rgba(20,33,46,.18); transition: background .25s ease;
}
.header.is-scrolled { background: rgba(31, 45, 61, .97); backdrop-filter: blur(6px); }
.header__inner { display: flex; align-items: center; justify-content: space-between; min-height: var(--header-h); gap: 1rem; }
.brand { display: flex; align-items: center; }
.brand__logo {
  height: 60px; width: 60px; background: #fff; border-radius: 50%; padding: 4px;
  box-shadow: 0 2px 10px rgba(20, 33, 46, .2); object-fit: contain;
}

.nav { display: flex; align-items: center; gap: 1.6rem; }
.nav__list { display: flex; gap: 1.4rem; }
.nav__list a {
  color: #fff; font-family: "Poppins", sans-serif; font-weight: 600; font-size: .98rem;
  padding: .35rem 0; position: relative;
}
.nav__list a::after {
  content: ""; position: absolute; left: 0; bottom: -4px; height: 3px; width: 0;
  background: var(--navy); border-radius: 3px; transition: width .2s ease;
}
.header.is-scrolled .nav__list a::after { background: var(--orange); }
.nav__list a:hover::after, .nav__list a.is-active::after { width: 100%; }

.nav-toggle {
  display: none; flex-direction: column; gap: 5px; background: none; border: 0;
  cursor: pointer; padding: 8px;
}
.nav-toggle span { width: 26px; height: 3px; background: #fff; border-radius: 3px; transition: .25s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: calc(100vh - var(--header-h) - 42px); display: flex; align-items: center; overflow: hidden; }
.hero__slides { position: absolute; inset: 0; }
.hero__slide {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  opacity: 0; transform: scale(1.06); transition: opacity 1s ease, transform 6s ease;
}
.hero__slide.is-active { opacity: 1; transform: scale(1); }
.hero__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(15,23,33,.86) 0%, rgba(15,23,33,.62) 45%, rgba(15,23,33,.25) 100%);
}
.hero__content { position: relative; z-index: 2; padding: 5rem 0; }
.hero__panel { max-width: 640px; }
.hero__eyebrow {
  display: inline-block; color: var(--orange); font-weight: 700; letter-spacing: 2px;
  text-transform: uppercase; font-size: .8rem; margin-bottom: 1rem;
  border-left: 3px solid var(--orange); padding-left: .7rem;
}
.hero__title { color: #fff; font-size: clamp(2.2rem, 5.5vw, 4rem); font-weight: 800; margin-bottom: 1rem; }
.hero__title span { color: var(--orange); }
.hero__text { color: #e7ebf0; font-size: clamp(1rem, 1.6vw, 1.2rem); max-width: 540px; margin-bottom: 2rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; }

.hero__arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
  width: 50px; height: 50px; border: 0; border-radius: 50%;
  background: rgba(255,255,255,.15); color: #fff; cursor: pointer; transition: .2s;
  display: grid; place-items: center;
}
.hero__arrow:hover { background: var(--orange); }
.hero__arrow svg { width: 28px; height: 28px; fill: #fff; }
.hero__arrow--prev { left: 18px; }
.hero__arrow--next { right: 18px; }
.hero__dots { position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%); z-index: 3; display: flex; gap: 10px; }
.hero__dots button {
  width: 12px; height: 12px; border-radius: 50%; border: 2px solid #fff; background: transparent; cursor: pointer; padding: 0;
}
.hero__dots button.is-active { background: var(--orange); border-color: var(--orange); }

/* ---------- Section scaffolding ---------- */
.section { padding: 5.5rem 0; }
.section__head { max-width: 720px; margin: 0 auto 3rem; text-align: center; }
.section__eyebrow {
  color: var(--orange); font-weight: 700; letter-spacing: 2px; text-transform: uppercase;
  font-size: .8rem; margin-bottom: .6rem;
}
.section__eyebrow--light { color: var(--orange); }
.section__title { font-size: clamp(1.8rem, 3.5vw, 2.6rem); font-weight: 800; }
.section__title--light { color: #fff; }
.section__lead { color: var(--muted); font-size: 1.08rem; }

.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }

/* ---------- Services ---------- */
.services { background: var(--bg-alt); }
.services__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
.service-card { padding: 2.2rem 1.8rem; transition: .22s ease; position: relative; overflow: hidden; }
.service-card::before {
  content: ""; position: absolute; left: 0; top: 0; height: 4px; width: 100%;
  background: var(--orange); transform: scaleX(0); transform-origin: left; transition: transform .25s ease;
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.service-card:hover::before { transform: scaleX(1); }
.service-card__icon {
  display: grid; place-items: center; width: 64px; height: 64px; border-radius: 14px;
  background: var(--orange-soft); margin-bottom: 1.2rem;
}
.service-card__icon svg { width: 34px; height: 34px; fill: var(--orange-dark); }
.service-card__title { font-size: 1.35rem; }
.service-card p { color: var(--muted); }
.link-arrow { display: inline-flex; align-items: center; gap: .25rem; font-weight: 700; font-family: "Poppins", sans-serif; color: var(--orange-dark); }
.link-arrow svg { width: 18px; height: 18px; fill: currentColor; transition: transform .2s; }
.link-arrow:hover svg { transform: translateX(4px); }

/* ---------- About ---------- */
.about__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 3.2rem; align-items: center; }
.about__media { position: relative; }
.about__media img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; }
.about__badge {
  position: absolute; right: -10px; bottom: -18px; background: var(--orange); color: #fff;
  padding: 1rem 1.4rem; border-radius: var(--radius); box-shadow: var(--shadow); text-align: center; line-height: 1.2;
}
.about__badge strong { font-family: "Poppins", sans-serif; font-size: 1.5rem; display: block; }
.about__badge span { font-size: .8rem; opacity: .95; }
.about__features { margin: 1.5rem 0 2rem; display: grid; gap: 1rem; }
.about__features li { display: flex; gap: .8rem; }
.about__features .check {
  flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--orange-soft);
  color: var(--orange-dark); display: grid; place-items: center; font-weight: 700; font-size: .9rem;
}
.about__body p { color: var(--muted); }
.about__body .section__title { margin-top: .3rem; }

.stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; margin-top: 3.5rem;
  background: var(--navy); border-radius: var(--radius); padding: 2rem 1.5rem; box-shadow: var(--shadow);
}
.stat { text-align: center; color: #fff; }
.stat__num { display: block; font-family: "Poppins", sans-serif; font-weight: 800; font-size: 2rem; color: var(--orange); }
.stat__label { color: #c7cfd9; font-size: .9rem; }

/* ---------- Gallery ---------- */
.gallery { background: var(--bg-alt); }
.gallery__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.gallery__item { margin: 0; position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.gallery__item img { width: 100%; height: 250px; object-fit: cover; transition: transform .4s ease; }
.gallery__item:hover img { transform: scale(1.07); }
.gallery__item figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 1.6rem 1rem .9rem;
  color: #fff; font-family: "Poppins", sans-serif; font-weight: 600;
  background: linear-gradient(transparent, rgba(15,23,33,.85));
}

/* ---------- Service area ---------- */
.area__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.area__body p { color: var(--muted); }
.area__towns { display: flex; flex-wrap: wrap; gap: .6rem; margin: 1.4rem 0; }
.area__towns li {
  background: var(--orange-soft); color: var(--orange-dark); font-weight: 600; font-size: .9rem;
  padding: .4rem .9rem; border-radius: 30px;
}
.area__note { font-size: .95rem; }
.area__map { display: flex; flex-direction: column; gap: .7rem; }
.area__map iframe { width: 100%; height: 360px; border: 0; display: block; border-radius: var(--radius); box-shadow: var(--shadow); background: var(--bg-alt); }
.area__map-link { align-self: flex-start; font-weight: 700; font-family: "Poppins", sans-serif; color: var(--orange-dark); }
.area__map-link:hover { color: var(--navy); }

/* ---------- Contact ---------- */
.contact { background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%); }
.contact__card { display: grid; grid-template-columns: 1.2fr 1fr; gap: 2.5rem; align-items: center; }
.contact__lead { color: #c7cfd9; font-size: 1.05rem; }
.contact__actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 1.5rem; }
.contact__details { display: grid; gap: 1.2rem; }
.contact__details li { display: flex; gap: 1rem; color: #e7ebf0; }
.contact__details strong { color: #fff; font-family: "Poppins", sans-serif; }
.contact__details a { color: var(--orange); }
.contact__details a:hover { color: #fff; }
.contact__ico { flex: none; width: 46px; height: 46px; border-radius: 10px; background: rgba(238,122,60,.18); display: grid; place-items: center; }
.contact__ico svg { width: 24px; height: 24px; fill: var(--orange); }

/* ---------- Footer ---------- */
.footer { background: var(--navy-2); color: #aeb8c4; padding-top: 3.5rem; }
.footer__inner { display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: 2rem; padding-bottom: 2.5rem; }
.footer__logo {
  height: 70px; width: 70px; background: #fff; border-radius: 50%; padding: 5px;
  object-fit: contain; margin-bottom: 1rem;
}
.footer__brand p { color: #aeb8c4; max-width: 320px; }
.footer__col h4 { color: #fff; font-size: 1.05rem; margin-bottom: 1rem; }
.footer__col ul { display: grid; gap: .55rem; }
.footer__col a, .footer__col li { color: #aeb8c4; }
.footer__col a:hover { color: var(--orange); }
.footer__bar { border-top: 1px solid rgba(255,255,255,.1); padding: 1.2rem 0; font-size: .88rem; }
.footer__bar-inner { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.footer__top { color: var(--orange); font-weight: 600; }

/* ---------- Floating call button ---------- */
.fab-call {
  position: fixed; right: 18px; bottom: 18px; z-index: 90; display: none;
  width: 58px; height: 58px; border-radius: 50%; background: var(--orange);
  box-shadow: 0 8px 22px rgba(238,122,60,.5); place-items: center;
  animation: pulse 2.4s infinite;
}
.fab-call svg { width: 28px; height: 28px; fill: #fff; }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(238,122,60,.55); }
  70% { box-shadow: 0 0 0 16px rgba(238,122,60,0); }
  100% { box-shadow: 0 0 0 0 rgba(238,122,60,0); }
}

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 980px) {
  .about__inner, .area__inner, .contact__card { grid-template-columns: 1fr; }
  .about__media { max-width: 560px; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
  .services__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 820px) {
  .nav-toggle { display: flex; }
  .nav {
    position: fixed; inset: calc(var(--header-h) + 42px) 0 auto 0;
    background: var(--navy); flex-direction: column; align-items: stretch; gap: 0;
    padding: 1rem 1.25rem 1.5rem; transform: translateY(-130%); transition: transform .3s ease;
    box-shadow: 0 16px 30px rgba(0,0,0,.3); max-height: calc(100vh - var(--header-h)); overflow-y: auto;
  }
  .nav.is-open { transform: translateY(0); }
  .nav__list { flex-direction: column; gap: 0; }
  .nav__list li { border-bottom: 1px solid rgba(255,255,255,.08); }
  .nav__list a { display: block; padding: .9rem .2rem; }
  .nav__list a::after { display: none; }
  .nav__quote { margin-top: 1rem; }
  .topbar__hours { display: none; }
  .fab-call { display: grid; }
}

@media (max-width: 560px) {
  .section { padding: 4rem 0; }
  .services__grid, .gallery__grid, .stats, .footer__inner { grid-template-columns: 1fr; }
  .stats { gap: 1.6rem; }
  .topbar__inner { justify-content: center; }
  .topbar__cta { display: none; }
  .hero__actions .btn { flex: 1 1 100%; }
  .hero__arrow { display: none; }
  .about__badge { right: 10px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .hero__slide { transform: none; }
  .reveal { opacity: 1; transform: none; }
}
