/* Low Volt Telecom — colors carried over from the Durable theme */
:root {
  --blue: #1391d0;
  --navy: #224b8d;
  --grey: #eeeeee;
  --white: #ffffff;
  --ink: #111827;
  --muted: #4b5563;
  --radius: 12px;
  --head: "Hanken Grotesk", system-ui, sans-serif;
  --body: "Inter", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--body); color: var(--ink); background: var(--white); line-height: 1.6; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: var(--navy); }
h1, h2, h3 { font-family: var(--head); font-weight: 700; line-height: 1.15; margin: 0 0 .5em; }
.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.center { text-align: center; }

/* Buttons */
.btn { display: inline-block; padding: .75em 1.6em; border-radius: 8px; background: var(--navy); color: var(--white); font-weight: 600; text-decoration: none; border: 2px solid var(--navy); cursor: pointer; font: inherit; font-weight: 600; transition: transform .15s, background .15s; }
.btn:hover { transform: translateY(-1px); background: #1a3b70; }
.btn-pill { border-radius: 40px; padding: 1em 2.4em; font-size: 1.15rem; background: var(--white); color: var(--navy); border-color: var(--white); }
.btn-pill:hover { background: var(--grey); }
.btn-outline { background: transparent; color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: var(--white); }
.badge { display: inline-block; padding: .35em 1em; border-radius: 999px; background: var(--navy); color: var(--white); font-family: var(--head); font-size: 1.05rem; letter-spacing: .02em; }

/* Header */
.site-header { background: var(--blue); color: var(--white); position: sticky; top: 0; z-index: 50; box-shadow: 0 1px 0 rgba(0,0,0,.08); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 92px; }
.brand img { height: 72px; width: auto; }
.nav { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.nav a { color: var(--white); text-decoration: none; font-weight: 600; padding: .45em .8em; border-radius: 8px; }
.nav a:hover, .nav a[aria-current="page"] { background: rgba(255,255,255,.18); }
.nav .nav-cta { background: var(--white); color: var(--navy); }
.nav .nav-cta:hover { background: var(--grey); }

/* Hero */
.hero { position: relative; min-height: calc(100vh - 92px); min-height: calc(100svh - 92px); display: flex; align-items: flex-start; color: var(--white); background: var(--blue); overflow: hidden; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 100%; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(19,145,208,.55) 0%, rgba(19,145,208,0) 70%), linear-gradient(90deg, rgba(10,30,60,.55) 0%, rgba(10,30,60,0) 65%); }
.hero-inner { position: relative; z-index: 1; padding-top: clamp(48px, 10vh, 120px); padding-bottom: 64px; max-width: 1200px; }
.hero h1 { font-size: clamp(2.6rem, 7vw, 5rem); max-width: 14ch; text-shadow: 0 2px 18px rgba(0,0,0,.25); }
.hero p { font-size: clamp(1.05rem, 2vw, 1.3rem); max-width: 40rem; text-shadow: 0 1px 10px rgba(0,0,0,.35); }
.hero .btn-pill { margin-top: 1rem; }

/* Sections with background video */
section { padding: clamp(56px, 9vw, 96px) 0; scroll-margin-top: 92px; }
.has-video { position: relative; overflow: hidden; }
.has-video > .wrap { position: relative; z-index: 2; }
.bg-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.has-video::before { content: ""; position: absolute; inset: 0; z-index: 1; }
.section-head { text-align: center; margin-bottom: 40px; }

/* Services */
.services::before { background: rgba(255,255,255,.56); }
.service-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; margin-bottom: 40px; }
.service { background: rgba(255,255,255,.92); border-radius: var(--radius); padding: 28px 24px; text-align: center; box-shadow: 0 4px 24px rgba(17,24,39,.08); }
.service h3 { font-size: 1.3rem; }
.service p { margin: 0; color: var(--muted); font-size: .97rem; }
.icon { display: block; width: 48px; height: 48px; margin: 0 auto 14px; background: var(--blue); -webkit-mask: var(--icon) center / contain no-repeat; mask: var(--icon) center / contain no-repeat; }

/* Gallery */
.gallery::before { background: rgba(19,145,208,.12); }
.carousel { position: relative; }
.track { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; padding-bottom: 8px; scrollbar-width: none; }
.track::-webkit-scrollbar { display: none; }
.slide { flex: 0 0 auto; width: clamp(200px, 26vw, 300px); aspect-ratio: 2 / 3; margin: 0; scroll-snap-align: start; border-radius: var(--radius); overflow: hidden; background: rgba(0,0,0,.2); }
.slide img { width: 100%; height: 100%; object-fit: cover; }
.car-btn { position: absolute; top: 50%; transform: translateY(-50%); z-index: 3; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--white); color: var(--navy); font-size: 1.8rem; line-height: 1; cursor: pointer; box-shadow: 0 2px 12px rgba(0,0,0,.25); }
.car-btn.prev { left: -6px; }
.car-btn.next { right: -6px; }

/* Testimonials */
.testimonials::before { background: rgba(255,255,255,.88); }
.quote-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.quote { margin: 0; background: var(--white); border-radius: var(--radius); padding: 28px; box-shadow: 0 4px 24px rgba(17,24,39,.08); display: flex; flex-direction: column; justify-content: space-between; }
.quote blockquote { margin: 0 0 16px; font-size: 1.1rem; font-weight: 500; }
.quote figcaption { color: var(--blue); font-weight: 600; }

/* Contact */
.contact { background: var(--blue); color: var(--white); }
.contact-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: stretch; }
.contact h2 { font-size: clamp(2rem, 4vw, 2.8rem); }
.contact-form form { display: grid; gap: 14px; margin-top: 24px; }
.contact label { display: grid; gap: 6px; font-weight: 600; }
.contact input, .contact textarea { font: inherit; padding: 12px 14px; border-radius: 8px; border: 1px solid rgba(255,255,255,.5); background: rgba(255,255,255,.08); color: var(--white); }
.contact input:focus, .contact textarea:focus { outline: 2px solid var(--white); outline-offset: 1px; }
.contact .btn-outline { justify-self: start; color: var(--white); border-color: var(--white); }
.contact .btn-outline:hover { background: var(--white); color: var(--navy); }
.contact-img { width: 100%; height: 100%; max-height: 640px; object-fit: cover; border-radius: var(--radius); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-status { min-height: 1.5em; margin: 0; font-weight: 600; }

/* Location */
.location { background: var(--grey); }
.location-inner { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: center; }
.location iframe { width: 100%; height: 380px; border: 0; border-radius: var(--radius); }
.location h2 { font-size: 2.2rem; }

/* Footer */
.site-footer { background: var(--blue); color: var(--white); padding: 56px 0; text-align: center; }
.footer-inner { display: grid; justify-items: center; gap: 18px; }
.site-footer .brand img { height: 110px; }
.footer-text { max-width: 46rem; font-size: .9rem; opacity: .92; }
.footer-text p { margin: 0; }

/* Blog */
.page-head { background: var(--blue); color: var(--white); padding: 56px 0; }
.page-head h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
.blog-list { background: var(--grey); }
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 24px; }
.card { display: flex; flex-direction: column; background: var(--white); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: inherit; box-shadow: 0 4px 24px rgba(17,24,39,.07); transition: transform .15s, box-shadow .15s; }
.card:hover { transform: translateY(-3px); box-shadow: 0 10px 30px rgba(17,24,39,.12); }
.card img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.card-body { padding: 20px; }
.card time { color: var(--blue); font-size: .85rem; font-weight: 600; }
.card h2 { font-size: 1.2rem; margin: .4em 0; }
.card p { margin: 0; color: var(--muted); font-size: .95rem; }
.pager { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: 40px; }
.pager a { padding: .45em .85em; border-radius: 8px; background: var(--white); text-decoration: none; font-weight: 600; }
.pager a[aria-current="page"] { background: var(--navy); color: var(--white); }

.post { padding: 0; }
.post-banner { position: relative; color: var(--white); background: var(--navy); min-height: 360px; display: flex; align-items: flex-end; overflow: hidden; }
.post-banner img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .5; }
.post-banner .wrap { position: relative; padding-top: 80px; padding-bottom: 40px; max-width: 860px; }
.post-banner h1 { font-size: clamp(1.9rem, 4.5vw, 3rem); text-shadow: 0 2px 14px rgba(0,0,0,.4); }
.post-banner .meta { margin: 0; font-weight: 600; }
.prose { max-width: 860px; padding-top: 48px; padding-bottom: 24px; font-size: 1.08rem; }
.prose h2 { font-size: 1.7rem; margin-top: 1.6em; }
.prose h3 { font-size: 1.3rem; margin-top: 1.4em; }
.prose img { border-radius: var(--radius); margin: 1.5em 0; }
.post > .wrap:last-child { max-width: 860px; padding-bottom: 64px; }
.post-nav { display: flex; justify-content: space-between; gap: 16px; border-top: 1px solid #e5e7eb; padding: 24px 0; margin-bottom: 16px; }
.post-nav a { text-decoration: none; font-weight: 600; max-width: 48%; }
.post-nav a:last-child { text-align: right; }

@media (max-width: 860px) {
  .contact-inner, .location-inner { grid-template-columns: 1fr; }
  .contact-img { max-height: 360px; }
}
@media (max-width: 560px) {
  .header-inner { min-height: 64px; }
  .brand img { height: 52px; }
  .nav a { padding: .4em .55em; font-size: .95rem; }
  .hero { min-height: calc(100svh - 64px); }
  .post-nav { flex-direction: column; }
  .post-nav a { max-width: none; }
  .post-nav a:last-child { text-align: left; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .bg-video { display: none; }
}
