/* RTC Solutions: site styles
   Dark "city lights" design. Colors are defined once here; change these to rebrand the whole site. */
:root {
  --bg: #050608;
  --bg-2: #0b0d12;
  --surface: #0f1218;
  --ink: #f3f5fa;
  --muted: #9aa3b4;
  --dim: #6b7487;
  --line: rgba(255, 255, 255, .09);
  --line-strong: rgba(255, 255, 255, .18);
  --accent: #ff9a3c;      /* warm orange: buttons */
  --accent-bright: #ffb156; /* highlighted words, matches the map lights */
  --accent-deep: #c2410c;
  --accent-ink: #1a0b00;  /* text on orange */
  --amber: #ffb156;       /* map lights */
  --radius: 18px;
  --max: 1200px;
  color-scheme: dark;
}

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--accent-bright); }
h1, h2, h3 { margin: 0 0 .5em; font-weight: 400; }
h3 { font-size: 1.2rem; font-weight: 500; letter-spacing: -0.01em; line-height: 1.3; }
p { margin: 0 0 1em; }
em { font-style: normal; color: var(--accent-bright); }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.center { text-align: center; }

.skip-link {
  position: absolute; left: -999px; top: 8px;
  background: var(--ink); color: var(--bg); padding: 8px 12px; border-radius: 8px; z-index: 100;
}
.skip-link:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--accent-bright); outline-offset: 3px; border-radius: 6px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--accent); color: var(--accent-ink);
  font-weight: 500; font-size: .98rem; text-decoration: none;
  padding: 14px 24px; border-radius: 999px; border: 1px solid transparent;
  transition: background .2s ease, transform .2s ease, box-shadow .2s ease;
}
.btn:hover { background: #ffae5c; transform: translateY(-1px); box-shadow: 0 10px 30px -8px rgba(255, 154, 60, .6); }
.btn span { transition: transform .2s ease; }
.btn:hover span { transform: translateX(3px); }
.btn-small { padding: 9px 18px; font-size: .9rem; }
.btn-large { padding: 17px 30px; font-size: 1.05rem; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { background: rgba(255, 255, 255, .06); box-shadow: none; }
.btn-light { background: #fff; color: #1a0b00; }
.btn-light:hover { background: #fff1e3; box-shadow: 0 10px 30px -8px rgba(0, 0, 0, .5); }


/* Header */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  transition: background .3s ease, border-color .3s ease;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(5, 6, 8, .78);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand { gap: 9px; align-items: stretch; }
.brand-bar { width: 4px; background: var(--accent); }
.brand-stack { display: flex; flex-direction: column; justify-content: center; }
.brand-rtc { font-size: 1.45rem; font-weight: 700; letter-spacing: -0.03em; line-height: 1; }
.brand-sub { margin-top: 3px; font-size: .56rem; font-weight: 500; letter-spacing: .32em; text-transform: uppercase; color: var(--accent-bright); line-height: 1; }
.site-nav { display: flex; align-items: center; gap: 30px; }
.site-nav a:not(.btn) { color: var(--ink); text-decoration: none; font-weight: 500; font-size: .92rem; opacity: .85; }
.site-nav a:not(.btn):hover { opacity: 1; color: var(--accent-bright); }
.nav-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 1.5px; background: var(--ink); margin: 6px 0; transition: transform .25s ease; }
.nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.75px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.75px) rotate(-45deg); }

/* Hero */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  padding: 140px 0 40px; overflow: hidden; isolation: isolate;
}
.hero-map {
  position: absolute; inset: 0; z-index: -1;
  background: url(img/map-hero.jpg) center / cover no-repeat;
  animation: drift 40s ease-in-out infinite alternate;
}
.hero-map::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(5, 6, 8, .9) 0%, rgba(5, 6, 8, .55) 45%, rgba(5, 6, 8, .1) 100%),
    linear-gradient(180deg, rgba(5, 6, 8, .4) 0%, transparent 25%, transparent 70%, var(--bg) 100%);
}
@keyframes drift { from { transform: scale(1.04) translate(0, 0); } to { transform: scale(1.1) translate(-1.5%, -1%); } }
.hero-inner { flex: 1; display: flex; flex-direction: column; justify-content: center; }
.hero h1 {
  font-size: clamp(2.6rem, 6.4vw, 5.6rem);
  line-height: .98; letter-spacing: -0.05em; font-weight: 400;
  max-width: 13em; margin-bottom: .45em;
}
.eyebrow { font-size: .8rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 22px; }
.hero .eyebrow::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 12px var(--amber); margin-right: 12px; vertical-align: 1px; }
.lead { font-size: clamp(1.05rem, 1.5vw, 1.25rem); color: #c8cedb; max-width: 34em; font-weight: 300; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }
.hero-foot { display: flex; justify-content: flex-start; align-items: flex-end; gap: 24px; margin-top: 64px; }
.hero-points { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px 32px; color: var(--muted); font-size: .9rem; }
.hero-points li::before { content: "—"; color: var(--accent-bright); margin-right: 10px; }

/* Sections */
.section { padding: 128px 0; position: relative; }
.section-title {
  font-size: clamp(2.1rem, 4.6vw, 3.9rem);
  line-height: 1.02; letter-spacing: -0.045em; font-weight: 400;
  max-width: 16em; margin-bottom: 0;
}
.lead-sm { color: var(--muted); font-size: 1.08rem; font-weight: 300; }
.note { color: var(--muted); margin-top: 48px; }
.note a { text-decoration: none; }
.split { display: grid; grid-template-columns: 1.15fr 1fr; gap: 64px; align-items: end; }
.split .lead-sm { margin-bottom: 14px; }

.grid { display: grid; gap: 24px; margin-top: 64px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.glow-bottom::before {
  content: ""; position: absolute; left: 50%; bottom: -10%; width: 120%; height: 70%;
  transform: translateX(-50%); z-index: -1; pointer-events: none;
  background: radial-gradient(ellipse at center, rgba(255, 154, 60, .35) 0%, rgba(194, 65, 12, .12) 40%, transparent 70%);
}

/* Problems */
.problems { padding-top: 96px; }
.problem { border-top: 1px solid var(--line-strong); padding-top: 26px; }
.problem h3 { font-size: 1.3rem; }
.problem p { color: var(--muted); margin: 0; font-size: .97rem; font-weight: 300; }

/* Service cards */
.services { isolation: isolate; overflow: hidden; }
.card {
  background: #000; border-radius: var(--radius); overflow: hidden;
  border-top: 10px solid var(--accent); display: flex; flex-direction: column;
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .8);
  transition: transform .3s ease;
}
.card:hover { transform: translateY(-4px); }
.card-map { aspect-ratio: 2 / 1; background: #000 center / cover no-repeat; transition: transform .6s ease; }
.card:hover .card-map { transform: scale(1.05); }
.card-body { padding: 0 28px 32px; text-align: center; position: relative; }
.card-icon {
  width: 60px; height: 60px; margin: -30px auto 18px; border-radius: 50%;
  background: #000; display: grid; place-items: center; position: relative;
  box-shadow: 0 0 0 1px var(--line);
}
.card-icon svg { width: 28px; height: 28px; fill: none; stroke: var(--accent-bright); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.card h3 { font-size: 1.55rem; letter-spacing: -0.03em; font-weight: 400; margin-bottom: .3em; }
.card-body > p { color: var(--muted); font-weight: 300; }
.items { list-style: none; padding: 0; margin: 20px 0 0; }
.items li { padding: 9px 0; border-top: 1px solid var(--line); font-size: .95rem; font-weight: 500; }

/* Example projects */
.story {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 34px 30px; display: flex; flex-direction: column;
}
.story-tag { font-size: .78rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-bright); margin-bottom: 18px; }
.story h3 { font-size: 1.45rem; letter-spacing: -0.03em; font-weight: 400; margin-bottom: .4em; }
.story dl { margin: 0; }
.story dt { font-size: .75rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); margin-top: 22px; }
.story dd { margin: 6px 0 0; color: var(--muted); font-size: .97rem; font-weight: 300; }
.story dd.result { color: var(--ink); }

/* Offer */
.offer {
  background:
    radial-gradient(ellipse at 85% 120%, rgba(255, 255, 255, .25), transparent 55%),
    linear-gradient(120deg, #6b2104 0%, #c2410c 45%, #ff8a2a 100%);
  padding: 96px 0; color: #fff;
}
.offer .eyebrow { color: rgba(255, 255, 255, .75); }
.offer h2 { font-size: clamp(2.2rem, 5vw, 4.2rem); letter-spacing: -0.05em; line-height: 1; }
.offer p { color: rgba(255, 255, 255, .85); max-width: 38em; margin: 0; font-weight: 300; }
.offer-inner { display: flex; align-items: flex-end; justify-content: space-between; gap: 48px; }
.offer .btn { flex-shrink: 0; }

/* How it works */
.how { list-style: none; padding: 0; counter-reset: none; }
.how li { padding: 32px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.how p { color: var(--muted); margin: 0; font-weight: 300; }
.how h3 { font-size: 1.5rem; letter-spacing: -0.03em; font-weight: 400; }
.how-num {
  display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid rgba(255, 177, 86, .6); color: var(--accent-bright); margin-bottom: 40px; font-size: .95rem;
}

/* About */
.about { background: var(--bg-2); border-top: 1px solid var(--line); }
.about-inner { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 80px; align-items: center; }
.about-inner p { color: var(--muted); font-weight: 300; }
.about .section-title { margin-bottom: .6em; }
.about-map {
  position: relative; aspect-ratio: 9 / 11; border-radius: var(--radius); overflow: hidden;
  background: url(img/map-highland.jpg) center / cover no-repeat;
  box-shadow: 0 0 0 1px var(--line), 0 40px 80px -40px rgba(0, 0, 0, .9);
}
.pin { position: absolute; left: 50%; top: 50%; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: var(--accent-bright); box-shadow: 0 0 0 4px rgba(255, 177, 86, .3); }
.pin::after {
  content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid var(--accent-bright);
  animation: ping 2.4s ease-out infinite;
}
@keyframes ping { from { transform: scale(1); opacity: .9; } to { transform: scale(4.5); opacity: 0; } }
.creds { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.creds li { border: 1px solid var(--line-strong); border-radius: 999px; padding: 7px 16px; font-size: .88rem; color: var(--ink); }

/* Area marquee */
.area { padding: 72px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow: hidden; }
.marquee { display: flex; width: max-content; animation: marquee 60s linear infinite; }
.towns { margin: 0; white-space: nowrap; font-size: clamp(2rem, 4.5vw, 3.6rem); letter-spacing: -0.04em; font-weight: 300; color: var(--dim); }
@keyframes marquee { to { transform: translateX(-50%); } }
.area-note { text-align: center; color: var(--muted); margin: 24px 0 0; font-size: .92rem; padding: 0 24px; }

/* FAQ */
.faq-inner { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 80px; align-items: start; }
details { border-bottom: 1px solid var(--line-strong); }
details:first-child { border-top: 1px solid var(--line-strong); }
summary {
  cursor: pointer; font-size: 1.12rem; padding: 24px 44px 24px 0; list-style: none; position: relative;
  letter-spacing: -0.01em; transition: color .2s ease;
}
summary:hover { color: var(--accent-bright); }
summary::-webkit-details-marker { display: none; }
summary::after {
  content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  font-size: 1.6rem; font-weight: 300; color: var(--accent-bright); transition: transform .25s ease;
}
details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
details p { color: var(--muted); padding-bottom: 14px; font-weight: 300; max-width: 40em; }

/* Contact */
.contact { overflow: hidden; isolation: isolate; border-top: 1px solid var(--line); }
.contact-map {
  position: absolute; inset: 0; z-index: -1; opacity: .55;
  background: url(img/map-contact.jpg) center / cover no-repeat;
}
.contact-map::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--bg) 10%, rgba(5, 6, 8, .6) 60%, rgba(5, 6, 8, .85) 100%); }
.contact-inner { display: grid; grid-template-columns: 1.2fr 1fr; gap: 80px; align-items: center; }
.contact .section-title { margin-bottom: .5em; }
.contact .lead-sm { margin-bottom: 32px; }
.contact-list {
  list-style: none; padding: 8px 28px; margin: 0;
  background: rgba(10, 12, 17, .72); border: 1px solid var(--line); border-radius: var(--radius);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.contact-list li { padding: 18px 0; display: grid; gap: 4px; border-bottom: 1px solid var(--line); }
.contact-list li:last-child { border-bottom: 0; }
.contact-label { font-size: .74rem; text-transform: uppercase; letter-spacing: .14em; color: var(--dim); }
.contact-list a { color: var(--ink); font-size: 1.15rem; text-decoration: none; word-break: break-word; }
.contact-list a:hover { color: var(--accent-bright); }

/* Footer */
.site-footer { background: #000; color: var(--muted); padding: 72px 0 32px; font-size: .92rem; border-top: 1px solid var(--line); }
.footer-inner { display: grid; grid-template-columns: 2fr 1fr; gap: 40px; }
.footer-inner p { margin: 14px 0 0; line-height: 1.9; }
.footer-head { color: var(--ink); font-weight: 500; margin: 0 !important; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--ink); }
.site-footer .brand { color: var(--ink); }
.footer-legal { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); font-size: .82rem; color: var(--dim); }
.footer-legal p { margin: 0; }

/* Scroll reveal (only when JS is running) */
.js-reveal [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s cubic-bezier(.2, .7, .2, 1); }
.js-reveal [data-reveal].in { opacity: 1; transform: none; }
.js-reveal .grid > [data-reveal]:nth-child(2) { transition-delay: .1s; }
.js-reveal .grid > [data-reveal]:nth-child(3) { transition-delay: .2s; }
.js-reveal .grid > [data-reveal]:nth-child(4) { transition-delay: .3s; }

/* Responsive */
@media (max-width: 1000px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .split, .faq-inner, .contact-inner { grid-template-columns: 1fr; gap: 32px; }
  .about-inner { grid-template-columns: 1fr 1fr; gap: 48px; }
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  .container { padding: 0 16px; }
  .section { padding: 88px 0; }
  .hero { padding-top: 120px; }
  .hero-map::after { background: linear-gradient(180deg, rgba(5, 6, 8, .55) 0%, rgba(5, 6, 8, .8) 60%, var(--bg) 100%); }
  .hero-foot { flex-direction: column; align-items: flex-start; margin-top: 48px; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .grid { margin-top: 44px; }
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .about-inner { grid-template-columns: 1fr; }
  .about-map { aspect-ratio: 4 / 3; }
  .offer { padding: 72px 0; }
  .offer-inner { flex-direction: column; align-items: flex-start; }
  .footer-inner { grid-template-columns: 1fr; }
  .contact-list { padding: 4px 20px; }

  .nav-toggle { display: block; }
  .site-header:has(.site-nav.open) { background: rgba(5, 6, 8, .96); }
  .site-nav {
    display: none; position: absolute; top: 76px; left: 0; right: 0; height: calc(100vh - 76px);
    flex-direction: column; align-items: stretch; gap: 0;
    background: rgba(5, 6, 8, .98); padding: 16px 16px 24px;
  }
  .site-nav.open { display: flex; }
  .site-nav a:not(.btn) { padding: 18px 4px; border-bottom: 1px solid var(--line); font-size: 1.4rem; font-weight: 300; letter-spacing: -0.02em; }
  .site-nav .btn { margin-top: 24px; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-map, .marquee, .pin::after { animation: none; }
  .btn, .card, .card-map { transition: none; }
  .js-reveal [data-reveal] { opacity: 1; transform: none; transition: none; }
}

/* Time saved on example projects */
.story dl { flex: 1; }
.story-stat { margin: 26px 0 0; padding-top: 20px; border-top: 1px solid var(--line); color: var(--accent-bright); font-size: 1.6rem; font-weight: 400; letter-spacing: -0.03em; line-height: 1.2; }
.story-stat span { display: block; margin-top: 4px; color: var(--muted); font-size: .92rem; font-weight: 300; letter-spacing: 0; }
