/* =========================================================
   Vaishnavi Telecom — base styles
   ========================================================= */
:root {
  --bg: #ffffff;
  --bg-alt: #f2f4f8;
  --bg-card: #ffffff;
  --footer-bg: #0b3d91;
  --text: #161a22;
  --text-muted: #5b6472;
  --border: #e4e7ec;
  --header-bg-rgb: 255, 255, 255;

  --accent: #1e88e5;
  --accent-rgb: 30, 136, 229;
  --accent-dark: #0b3d91;
  --accent-dark-rgb: 11, 61, 145;
  --secondary: #f57c00;
  --secondary-rgb: 245, 124, 0;
  --heading: #0b3d91;

  --radius: 10px;
  --container: 1180px;
  --shadow: 0 10px 30px rgba(15, 23, 42, .08);
  font-size: 16px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 .6em; font-weight: 700; }
p { margin: 0 0 1em; color: var(--text-muted); }

.section { padding: 80px 0; }
.section-alt { background: var(--bg-alt); }

.section-color {
  background: linear-gradient(135deg, var(--accent-dark), var(--accent));
  --heading: #ffffff;
  --text-muted: rgba(255, 255, 255, .82);
  --border: rgba(255, 255, 255, .18);
  --bg-card: rgba(255, 255, 255, .08);
}
.section-head { text-align: center; max-width: 700px; margin: 0 auto 50px; }
.eyebrow {
  display: inline-block;
  color: var(--secondary);
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-size: .78rem;
  margin-bottom: 10px;
}
.section-head h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); color: var(--heading); }
.section-head p { margin-top: 10px; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 26px;
  border-radius: 6px;
  font-weight: 600;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all .25s ease;
  font-size: .95rem;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); }
.btn-outline { border-color: rgba(255,255,255,.35); color: #fff; }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }

/* ---------------------------------------------------------
   Top strip
   --------------------------------------------------------- */
.topbar {
  background: var(--footer-bg);
  color: rgba(255, 255, 255, .85);
  font-size: .8rem;
}
.topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding: 8px 20px;
}
.topbar-left { display: flex; gap: 22px; flex-wrap: wrap; }
.topbar-left a {
  display: inline-flex; align-items: center; gap: 6px;
  color: rgba(255, 255, 255, .85);
}
.topbar-left a:hover { color: #fff; }
.topbar-right {
  display: flex; align-items: center; gap: 6px;
  color: rgba(255, 255, 255, .65);
}

/* ---------------------------------------------------------
   Header
   --------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(var(--header-bg-rgb), .88);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 3px 20px;
}
.brand { display: flex; align-items: center; margin-right: auto; }
.brand-logo { height: 72px; width: auto; display: block; }
.main-nav { display: flex; gap: 26px; }
.main-nav a { color: var(--text-muted); font-weight: 600; font-size: .95rem; padding: 6px 0; position: relative; }
.main-nav a::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: -2px;
  height: 2px; background: var(--accent);
  transform: scaleX(0); transition: transform .2s ease;
}
.main-nav a:hover, .main-nav a.active { color: var(--heading); }
.main-nav a.active::after { transform: scaleX(1); }

.header-cta { padding: 9px 20px; font-size: .88rem; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span { width: 24px; height: 2px; background: var(--heading); border-radius: 2px; }

/* ---------------------------------------------------------
   Hero carousel
   --------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1400 / 474;
  background: var(--bg-alt);
}
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity .9s ease;
}
.hero-slide.is-active { opacity: 1; visibility: visible; }
.hero-slide picture,
.hero-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-actions { display: flex; gap: 14px; margin-top: 26px; flex-wrap: wrap; }

.hero-dots {
  position: absolute;
  bottom: 20px; left: 50%; transform: translateX(-50%);
  display: flex; justify-content: center; align-items: center; gap: 10px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(10, 14, 22, .45);
  backdrop-filter: blur(3px);
  z-index: 3;
}
.hero-dots button {
  width: 9px; height: 9px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,.75);
  background: transparent; cursor: pointer; padding: 0;
}
.hero-dots button.is-active { background: var(--accent); border-color: var(--accent); }

.hero-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  z-index: 3; width: 46px; height: 46px; border-radius: 50%;
  background: #ffffff; border: none;
  color: var(--accent);
  box-shadow: 0 4px 16px rgba(15, 23, 42, .3);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: background .2s ease, color .2s ease, transform .2s ease;
}
.hero-arrow:hover { background: var(--accent); color: #fff; transform: translateY(-50%) scale(1.06); }
.hero-arrow.prev { left: 24px; }
.hero-arrow.next { right: 24px; }

/* ---------------------------------------------------------
   Stats strip
   --------------------------------------------------------- */
.stats-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding: 34px 0;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  border-top: 1px solid var(--border);
}
.stat { text-align: center; }
.stat strong {
  display: block;
  font-size: clamp(2rem, 3.2vw, 2.6rem);
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -.02em;
}
.stat span { color: var(--text-muted); font-size: .9rem; font-weight: 600; }

/* ---------------------------------------------------------
   About
   --------------------------------------------------------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: stretch;
}
.about-media { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); height: 100%; }
.about-media img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---------------------------------------------------------
   Services grid
   --------------------------------------------------------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 22px;
  text-align: center;
  transition: transform .25s ease, border-color .25s ease;
}
.service-card:hover { transform: translateY(-6px); border-color: var(--accent); }
.service-icon {
  width: 56px; height: 56px;
  margin: 0 auto 18px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: rgba(var(--accent-rgb), .12);
  color: var(--accent);
}
.service-card h3 { font-size: 1.05rem; color: var(--heading); }
.service-card p { font-size: .88rem; margin: 0; }

/* ---------------------------------------------------------
   Why choose us
   --------------------------------------------------------- */
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.why-card {
  display: flex; gap: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
}
.why-icon {
  flex: none; width: 48px; height: 48px;
  border-radius: 10px;
  background: rgba(var(--secondary-rgb), .16);
  color: var(--secondary);
  display: flex; align-items: center; justify-content: center;
}
.why-card h3 { font-size: 1.02rem; color: var(--heading); margin-bottom: 6px; }
.why-card p { font-size: .88rem; margin: 0; }

/* ---------------------------------------------------------
   Projects / track record
   --------------------------------------------------------- */
.project-tabs { display: flex; justify-content: center; gap: 12px; margin-bottom: 34px; }
.project-tab {
  padding: 10px 22px; border-radius: 999px; border: 1px solid var(--border);
  background: var(--bg-card); color: var(--text-muted); font-weight: 600; cursor: pointer;
}
.project-tab.is-active { background: var(--accent); color: #fff; border-color: var(--accent); }

.projects-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 24px;
}
.project-card .status {
  display: inline-block; font-size: .72rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .06em; padding: 4px 10px; border-radius: 999px; margin-bottom: 12px;
}
.status.completed { background: rgba(var(--secondary-rgb),.16); color: var(--secondary); }
.status.running { background: rgba(var(--accent-rgb),.15); color: var(--accent); }
.project-card h3 { font-size: 1rem; color: var(--heading); margin-bottom: 8px; }
.project-card p { font-size: .88rem; margin: 0; }

/* ---------------------------------------------------------
   CTA band
   --------------------------------------------------------- */
.cta-band {
  background: linear-gradient(120deg, var(--accent-dark), var(--accent));
  border-radius: var(--radius);
  padding: 46px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
}
.cta-band h2 { color: #fff; margin: 0 0 6px; font-size: 1.6rem; }
.cta-band p { color: rgba(255,255,255,.85); margin: 0; }
.cta-band .btn-outline { border-color: rgba(255,255,255,.6); color: #fff; }
.cta-band .btn-outline:hover { background: #fff; color: var(--accent-dark); border-color: #fff; }

/* ---------------------------------------------------------
   Contact page
   --------------------------------------------------------- */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 40px; align-items: stretch; }

.contact-info {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 8px 30px;
  box-shadow: var(--shadow);
}
.info-row {
  display: flex; gap: 18px;
  padding: 22px 0;
  border-bottom: 1px solid var(--border);
}
.info-row-last, .info-row:last-child { border-bottom: none; }
.info-icon {
  flex: none; width: 46px; height: 46px;
  border-radius: 12px;
  background: rgba(var(--accent-rgb), .12);
  color: var(--accent);
  display: flex; align-items: center; justify-content: center;
}
.info-row h3 { color: var(--heading); font-size: .98rem; margin-bottom: 4px; }
.info-row p { margin: 0; font-size: .9rem; color: var(--text-muted); }
.info-row a { color: var(--text); font-weight: 600; }
.info-row a:hover { color: var(--accent); }
.map-link {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--accent); font-weight: 600; font-size: .85rem;
  margin-top: 6px;
}
.map-link:hover { color: var(--accent-dark); text-decoration: underline; }

.contact-form-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 34px;
  box-shadow: var(--shadow);
}
.contact-form-card h3 { color: var(--heading); font-size: 1.15rem; margin-bottom: 20px; }
.contact-form { display: grid; gap: 16px; }
.contact-form input, .contact-form textarea {
  width: 100%; padding: 13px 16px; border-radius: 8px; border: 1px solid var(--border);
  background: var(--bg); color: var(--text); font-family: inherit; font-size: .95rem;
  transition: border-color .2s ease;
}
.contact-form input:focus, .contact-form textarea:focus {
  outline: none; border-color: var(--accent);
}
.contact-form label { font-size: .82rem; color: var(--text-muted); margin-bottom: 4px; display: block; }
.form-note { font-size: .8rem; color: var(--text-muted); }

.map-embed {
  margin-top: 40px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.map-embed iframe { width: 100%; height: 340px; border: 0; display: block; }

/* ---------------------------------------------------------
   Page hero (inner pages)
   --------------------------------------------------------- */
.page-hero {
  padding: 70px 0 50px;
  text-align: center;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
}
.page-hero h1 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); color: var(--heading); }
.breadcrumb { color: var(--text-muted); font-size: .85rem; }
.breadcrumb a { color: var(--secondary); }

/* ---------------------------------------------------------
   Footer
   --------------------------------------------------------- */
.site-footer {
  --heading: #ffffff;
  --text-muted: #a3acbd;
  --border: rgba(255, 255, 255, .1);
  background: var(--footer-bg);
  border-top: 1px solid var(--border);
  padding: 60px 0 0;
}
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 34px; padding-bottom: 40px; }
.footer-col h3 { color: var(--heading); font-size: 1rem; margin-bottom: 16px; }
.footer-links li, .footer-contact li { margin-bottom: 10px; font-size: .9rem; color: var(--text-muted); }
.footer-contact li { display: flex; align-items: flex-start; gap: 10px; }
.footer-contact li svg { flex: none; margin-top: 3px; color: var(--accent); }
.footer-links a:hover { color: var(--accent); }
.footer-contact a { color: var(--text-muted); }
.footer-bottom { border-top: 1px solid var(--border); padding: 18px 0; }
.footer-bottom-inner { display: flex; justify-content: center; text-align: center; flex-wrap: wrap; gap: 8px; font-size: .82rem; color: var(--text-muted); }

.back-to-top {
  position: fixed; right: 22px; bottom: 22px; z-index: 90;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--accent); color: #fff; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: all .25s ease;
  box-shadow: var(--shadow);
}
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }

/* ---------------------------------------------------------
   Reveal-on-scroll
   --------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ---------------------------------------------------------
   Responsive
   --------------------------------------------------------- */
@media (max-width: 980px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .about-media { height: auto; }
  .about-media img { height: auto; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats-strip { grid-template-columns: repeat(2, 1fr); row-gap: 20px; }
}

@media (max-width: 760px) {
  .brand-logo { height: 52px; }
  .main-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--bg-alt); border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
    flex-direction: column; padding: 0 20px; gap: 0;
    max-height: 0; overflow: hidden; transition: max-height .3s ease;
  }
  .main-nav.is-open { max-height: 400px; padding: 8px 20px; }
  .main-nav a {
    padding: 13px 4px 13px 14px;
    border-bottom: 1px solid var(--border);
    border-left: 3px solid transparent;
  }
  .main-nav a:last-child { border-bottom: none; }
  .main-nav a::after { display: none; }
  .main-nav a.active {
    border-left-color: var(--accent);
    background: rgba(var(--accent-rgb), .07);
    color: var(--accent);
  }
  .nav-toggle { display: flex; }
  .header-cta { display: none; }
  .topbar-right { display: none; }
  .topbar-left { gap: 14px; }
  .topbar-inner { justify-content: center; padding: 7px 20px; }
  .services-grid, .why-grid, .projects-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }

  .service-card { padding: 20px 14px; }
  .service-icon { width: 46px; height: 46px; margin-bottom: 12px; }
  .service-card h3 { font-size: .92rem; margin-bottom: 6px; }
  .service-card p { font-size: .8rem; }

  .why-card { flex-direction: column; text-align: center; padding: 20px 14px; gap: 10px; }
  .why-icon { margin: 0 auto; }
  .why-card h3 { font-size: .92rem; }
  .why-card p { font-size: .8rem; }

  .project-card { padding: 16px 16px; }
  .project-card h3 { font-size: .88rem; }
  .project-card p { font-size: .8rem; }
  .project-tabs { gap: 8px; }
  .project-tab { padding: 8px 14px; font-size: .82rem; }
  .cta-band { flex-direction: column; text-align: center; }
  .hero { aspect-ratio: 900 / 814; }
  .hero-arrow { display: none; }
  .contact-info { padding: 6px 20px; }
  .contact-form-card { padding: 24px; }
  .map-embed iframe { height: 260px; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; padding-bottom: 30px; }
  .footer-bottom-inner { text-align: center; }
}

@media (max-width: 420px) {
  .topbar { font-size: .66rem; }
  .topbar-left { gap: 8px; }
  .topbar-left a svg { width: 12px; height: 12px; }
  .topbar-inner { padding: 6px 12px; }
}
