/* ═══════════════════════════════════════════
   TELESY TECHNOLOGIES — SHARED STYLESHEET
   ═══════════════════════════════════════════ */

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background: #FFFFFF;
  color: #1A1A2E;
  line-height: 1.6;
  overflow-x: hidden;
}

/* ── CSS VARIABLES ── */
:root {
  --blue:        #1A56DB;
  --blue-mid:    #2563EB;
  --blue-light:  #EFF6FF;
  --blue-border: #BFDBFE;
  --navy:        #0F1729;
  --red:         #DC2626;
  --red-light:   #FEF2F2;
  --green:       #16A34A;
  --green-light: #DCFCE7;
  --text:        #1A1A2E;
  --sub:         #4B5563;
  --muted:       #9CA3AF;
  --border:      #E5E7EB;
  --white:       #FFFFFF;
  --silver:      #F8FAFC;
  --shadow:      0 4px 20px rgba(0,0,0,0.06);
  --shadow-lg:   0 12px 40px rgba(0,0,0,0.10);
  --radius:      16px;
  --transition:  all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ══════════════════════════════
   NAVBAR
══════════════════════════════ */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(255,255,255,0.94);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
  padding: 0 5%;
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
  transition: box-shadow 0.3s ease;
}
.nav-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem; font-weight: 900;
  color: var(--navy); text-decoration: none;
  letter-spacing: -0.02em; flex-shrink: 0;
}
.nav-logo span { color: var(--blue); }
.nav-links {
  display: flex; align-items: center; gap: 28px;
  list-style: none;
}
.nav-links a {
  font-size: 0.875rem; font-weight: 600;
  color: var(--sub); text-decoration: none;
  transition: color 0.2s; white-space: nowrap;
  position: relative;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -3px; left: 0; right: 0;
  height: 2px; background: var(--blue);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.25s ease;
  border-radius: 2px;
}
.nav-links a:hover { color: var(--blue); }
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }
.nav-links a.active { color: var(--blue); }
.nav-cta {
  background: var(--blue); color: white !important;
  padding: 9px 22px; border-radius: 8px;
  font-size: 0.84rem; font-weight: 700;
  text-decoration: none; transition: var(--transition);
  white-space: nowrap;
}
.nav-cta::after { display: none !important; }
.nav-cta:hover { background: #1849C6 !important; transform: translateY(-1px); box-shadow: 0 4px 14px rgba(26,86,219,0.35); }

.hamburger {
  display: none; background: none; border: none; cursor: pointer;
  flex-direction: column; gap: 5px; padding: 4px;
}
.hamburger span {
  display: block; width: 24px; height: 2px;
  background: var(--navy); border-radius: 2px;
  transition: var(--transition);
}
.mobile-menu {
  display: none; position: fixed;
  top: 68px; left: 0; right: 0;
  background: white; border-bottom: 1px solid var(--border);
  padding: 20px 5%; flex-direction: column; gap: 0;
  z-index: 99; box-shadow: var(--shadow);
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-size: 0.95rem; font-weight: 600; color: var(--sub);
  text-decoration: none; padding: 14px 0;
  border-bottom: 1px solid var(--border);
  transition: color 0.2s;
}
.mobile-menu a:last-child { border-bottom: none; color: var(--blue); font-weight: 800; padding-top: 16px; }
.mobile-menu a:hover { color: var(--blue); }

/* ══════════════════════════════
   BUTTONS
══════════════════════════════ */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 26px; border-radius: 10px;
  font-size: 0.9rem; font-weight: 700;
  text-decoration: none; transition: var(--transition);
  border: none; cursor: pointer; white-space: nowrap;
  font-family: 'Plus Jakarta Sans', sans-serif;
}
.btn-primary { background: var(--blue); color: white; }
.btn-primary:hover { background: #1849C6; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(26,86,219,0.3); }
.btn-outline { background: white; color: var(--text); border: 1.5px solid var(--border); }
.btn-outline:hover { border-color: var(--blue); color: var(--blue); transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-red { background: var(--red-light); color: var(--red); border: 1.5px solid #FECACA; }
.btn-red:hover { background: #FEE2E2; transform: translateY(-2px); }
.btn-white { background: white; color: var(--navy); font-weight: 800; }
.btn-white:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.2); }
.btn-ghost { background: transparent; color: rgba(255,255,255,0.7); border: 1.5px solid rgba(255,255,255,0.22); }
.btn-ghost:hover { border-color: rgba(255,255,255,0.5); color: white; }
.btn-lg { padding: 14px 32px; font-size: 0.95rem; }
.btn-sm { padding: 9px 18px; font-size: 0.82rem; }

/* ══════════════════════════════
   LAYOUT
══════════════════════════════ */
.section    { padding: 88px 5%; }
.section-sm { padding: 52px 5%; }
.container  { max-width: 1100px; margin: 0 auto; }

.section-label {
  display: inline-block;
  font-size: 0.72rem; font-weight: 800;
  letter-spacing: 0.10em; text-transform: uppercase;
  color: var(--blue); margin-bottom: 14px;
}
.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 900; line-height: 1.12;
  color: var(--navy); letter-spacing: -0.02em;
  margin-bottom: 14px;
}
.section-sub {
  font-size: 1rem; color: var(--sub);
  line-height: 1.72; max-width: 520px;
}
.section-header { margin-bottom: 52px; }
.section-header.center { text-align: center; }
.section-header.center .section-sub { margin: 0 auto; }

/* ── TAGS ── */
.tag {
  display: inline-block; font-size: 0.68rem; font-weight: 700;
  padding: 3px 10px; border-radius: 100px; letter-spacing: 0.04em;
}
.tag-blue   { background: var(--blue-light); color: var(--blue); }
.tag-red    { background: var(--red-light); color: var(--red); }
.tag-green  { background: var(--green-light); color: var(--green); }
.tag-orange { background: #FFF7ED; color: #C2410C; }
.tag-purple { background: #EDE9FE; color: #6D28D9; }
.tag-teal   { background: #F0FDFA; color: #0D9488; }
.tag-pink   { background: #FDF2F8; color: #BE185D; }

/* ── SCROLL REVEAL ── */
.reveal {
  opacity: 0; transform: translateY(26px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ══════════════════════════════
   PAGE HERO (inner pages)
══════════════════════════════ */
.page-hero {
  background: var(--navy);
  padding: 130px 5% 72px;
  position: relative; overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 70% 80% at 80% 50%, rgba(26,86,219,0.22), transparent);
  pointer-events: none;
}
.page-hero::after {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}
.page-hero-inner { position: relative; z-index: 2; max-width: 700px; }
.page-hero .hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.7);
  border: 1px solid rgba(255,255,255,0.15);
  padding: 6px 16px; border-radius: 100px;
  font-size: 0.73rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  margin-bottom: 22px;
}
.page-hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  font-weight: 900; line-height: 1.12;
  color: white; letter-spacing: -0.02em;
  margin-bottom: 16px;
}
.page-hero h1 em { color: #93C5FD; font-style: normal; }
.page-hero p {
  font-size: 1.05rem; color: rgba(255,255,255,0.55);
  line-height: 1.72; max-width: 540px; margin-bottom: 28px;
}
.breadcrumb {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.8rem; color: rgba(255,255,255,0.35);
  margin-bottom: 24px;
}
.breadcrumb a { color: rgba(255,255,255,0.5); text-decoration: none; }
.breadcrumb a:hover { color: white; }
.breadcrumb span { color: rgba(255,255,255,0.25); }

/* ══════════════════════════════
   CARDS
══════════════════════════════ */
.card {
  background: white; border-radius: var(--radius);
  border: 1.5px solid var(--border);
  transition: var(--transition);
}
.card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); border-color: var(--blue-border); }

/* Service cards */
.service-card {
  background: white; border-radius: var(--radius);
  border: 1.5px solid var(--border);
  padding: 32px 28px; position: relative;
  overflow: hidden; transition: var(--transition);
}
.service-card::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 3px;
  background: var(--blue); transform: scaleX(0); transform-origin: left;
  transition: transform 0.3s ease;
}
.service-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); border-color: var(--blue-border); }
.service-card:hover::after { transform: scaleX(1); }
.service-card.dark { background: var(--navy); border-color: var(--navy); }
.service-card.dark::after { background: var(--blue-mid); }
.service-card.dark h3, .service-card.dark p { color: white; }
.service-card.dark p { color: rgba(255,255,255,0.55); }
.service-card.dark .sc-link { color: #93C5FD; }
.service-card.alert { border-color: #FECACA; background: #FFFAFA; }
.service-card.alert::after { background: var(--red); }
.sc-icon {
  width: 48px; height: 48px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; margin-bottom: 20px;
}
.sc-icon.blue   { background: var(--blue-light); }
.sc-icon.red    { background: var(--red-light); }
.sc-icon.dark   { background: rgba(255,255,255,0.08); }
.sc-icon.green  { background: var(--green-light); }
.sc-icon.purple { background: #EDE9FE; }
.service-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem; font-weight: 700; color: var(--navy); margin-bottom: 10px;
}
.service-card p { font-size: 0.86rem; color: var(--sub); line-height: 1.65; margin-bottom: 18px; }
.sc-link {
  font-size: 0.84rem; font-weight: 700; color: var(--blue);
  text-decoration: none; display: inline-flex; align-items: center; gap: 5px;
  transition: gap 0.2s;
}
.sc-link:hover { gap: 10px; }

/* CTA strip */
.cta-section {
  background: var(--navy); padding: 80px 5%; text-align: center;
  position: relative; overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 70% at 50% 100%, rgba(37,99,235,0.22), transparent);
  pointer-events: none;
}
.cta-section h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 900; color: white; margin-bottom: 14px;
  position: relative; z-index: 1;
}
.cta-section p {
  font-size: 1rem; color: rgba(255,255,255,0.5);
  max-width: 480px; margin: 0 auto 32px; position: relative; z-index: 1;
  line-height: 1.72;
}
.cta-buttons { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; position: relative; z-index: 1; }

/* Stats bar */
.stats-bar { background: var(--navy); padding: 52px 5%; }
.stats-inner {
  max-width: 1100px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 24px; text-align: center;
}
.stat-item { border-right: 1px solid rgba(255,255,255,0.08); }
.stat-item:last-child { border-right: none; }
.stat-num {
  font-family: 'Playfair Display', serif;
  font-size: 2.8rem; font-weight: 900;
  color: white; display: block; line-height: 1;
}
.stat-num small { color: rgba(255,255,255,0.45); font-size: 1.6rem; }
.stat-lbl { font-size: 0.82rem; color: rgba(255,255,255,0.42); margin-top: 8px; display: block; font-weight: 500; }

/* CBSE Banner */
.cbse-banner {
  background: linear-gradient(135deg, #7F1D1D 0%, #B91C1C 100%);
  border-radius: 20px; padding: 44px 48px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 28px; flex-wrap: wrap; position: relative; overflow: hidden;
}
.cbse-banner::before {
  content: '⚠'; position: absolute; right: 48px; top: 50%;
  transform: translateY(-50%); font-size: 9rem; opacity: 0.05; line-height: 1;
}
.cbse-banner h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem; font-weight: 900; color: white; margin-bottom: 6px;
}
.cbse-banner p { font-size: 0.88rem; color: rgba(255,255,255,0.62); max-width: 440px; line-height: 1.65; }
.cbse-label { display: inline-block; font-size: 0.7rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: #FCA5A5; margin-bottom: 10px; }

/* ══════════════════════════════
   FOOTER
══════════════════════════════ */
.site-footer {
  background: #060C1A;
  padding: 72px 5% 0;
  color: rgba(255,255,255,0.5);
}
.footer-grid {
  max-width: 1100px; margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

/* Brand column */
.footer-brand .footer-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem; font-weight: 900;
  color: white; text-decoration: none;
  letter-spacing: -0.02em; display: inline-block;
  margin-bottom: 16px;
}
.footer-brand .footer-logo span { color: var(--blue-mid); }
.footer-brand p {
  font-size: 0.85rem; line-height: 1.75;
  color: rgba(255,255,255,0.38);
  max-width: 260px; margin-bottom: 24px;
}
.footer-contact-item {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 0.82rem; color: rgba(255,255,255,0.4);
  margin-bottom: 10px; line-height: 1.5;
}
.footer-contact-item svg { margin-top: 2px; flex-shrink: 0; color: var(--blue-mid); }
.footer-contact-item a { color: rgba(255,255,255,0.4); text-decoration: none; transition: color 0.2s; }
.footer-contact-item a:hover { color: white; }

/* Social icons */
.footer-socials {
  display: flex; gap: 10px; margin-top: 22px;
}
.social-icon {
  width: 36px; height: 36px; border-radius: 8px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.4); text-decoration: none;
  font-size: 0.95rem; transition: var(--transition);
}
.social-icon:hover { background: var(--blue); border-color: var(--blue); color: white; transform: translateY(-2px); }

/* Link columns */
.footer-col h4 {
  font-size: 0.75rem; font-weight: 800;
  letter-spacing: 0.10em; text-transform: uppercase;
  color: rgba(255,255,255,0.7); margin-bottom: 20px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col ul li a {
  font-size: 0.84rem; color: rgba(255,255,255,0.38);
  text-decoration: none; transition: color 0.2s;
  display: inline-flex; align-items: center; gap: 5px;
}
.footer-col ul li a:hover { color: white; }
.footer-col ul li a .link-dot {
  width: 4px; height: 4px; border-radius: 50%;
  background: var(--blue-mid); opacity: 0; flex-shrink: 0;
  transition: opacity 0.2s;
}
.footer-col ul li a:hover .link-dot { opacity: 1; }

/* CBSE badge in footer */
.footer-cbse-badge {
  display: flex; align-items: center; gap: 10px;
  background: rgba(220,38,38,0.1);
  border: 1px solid rgba(220,38,38,0.2);
  border-radius: 10px; padding: 12px 14px;
  margin-top: 20px;
}
.footer-cbse-badge span { font-size: 0.78rem; color: #FCA5A5; line-height: 1.4; font-weight: 600; }

/* Footer bottom */
.footer-bottom {
  max-width: 1100px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 0; flex-wrap: wrap; gap: 12px;
}
.footer-bottom p { font-size: 0.78rem; color: rgba(255,255,255,0.22); }
.footer-bottom-links { display: flex; gap: 20px; }
.footer-bottom-links a {
  font-size: 0.78rem; color: rgba(255,255,255,0.28);
  text-decoration: none; transition: color 0.2s;
}
.footer-bottom-links a:hover { color: rgba(255,255,255,0.6); }

/* ══════════════════════════════
   RESPONSIVE
══════════════════════════════ */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
  .footer-col:nth-child(4), .footer-col:nth-child(5) { grid-column: auto; }
  .stats-inner { grid-template-columns: repeat(2,1fr); gap: 32px; }
  .stat-item { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.08); padding-bottom: 24px; }
  .stat-item:last-child { border-bottom: none; }
}
@media (max-width: 768px) {
  nav { padding: 0 5%; }
  .nav-links, .nav-cta { display: none; }
  .hamburger { display: flex; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .footer-brand { grid-column: 1 / -1; }
  .section { padding: 64px 5%; }
  .section-sm { padding: 40px 5%; }
  .page-hero { padding: 110px 5% 56px; }
  .cbse-banner { padding: 32px; flex-direction: column; align-items: flex-start; }
  .cbse-banner::before { display: none; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .stats-inner { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 8px; }
}
