/* ==========================================================================
   DSC.in.net — Critical CSS (above-fold only, ~7KB)
   ========================================================================== */

/* 1. CSS Custom Properties
   ========================================================================== */
:root {
  --primary:     #0D1B3E;
  --primary-mid: #1A2F5A;
  --accent:      #00C4C4;
  --accent-dark: #009E9E;
  --green:       #2ECC71;
  --white:       #FFFFFF;
  --light:       #F2F7FF;
  --gray:        #64748B;
  --text:        #334155;
  --border:      #E2EAF4;
  --shadow-sm:   0 2px 8px rgba(13,27,62,.07);
  --radius:      10px;
  --radius-lg:   16px;
  --header-h:    72px;
  --top-bar-h:   36px;
  --transition:  0.25s ease;
}

html.dark-theme {
  --white:     #0F1729;
  --light:     #141E35;
  --light-mid: #1B2848;
  --text:      #CBD5E1;
  --border:    #263352;
  --gray:      #94A3B8;
}

/* 2. Reset & Base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  font-size: 16px;
}

body {
  font-family: 'Nunito', system-ui, -apple-system, sans-serif;
  font-weight: 400;
  color: var(--text);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

html.dark-theme body { background: #0F1729; color: #CBD5E1; }

img { max-width: 100%; height: auto; display: block; }
a  { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* 3. Skip Link
   ========================================================================== */
.skip-link {
  position: absolute;
  top: -100%;
  left: 8px;
  background: var(--accent);
  color: #fff;
  padding: 8px 16px;
  border-radius: 0 0 var(--radius) var(--radius);
  font-weight: 700;
  z-index: 10000;
  transition: top 0.2s;
}
.skip-link:focus { top: 0; }

/* 4. Top Bar
   ========================================================================== */
.top-bar {
  background: var(--primary);
  color: rgba(255,255,255,.82);
  font-family: 'Nunito', sans-serif;
  font-size: 0.8rem;
  padding: 0 1.5rem;
  height: var(--top-bar-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
html.dark-theme .top-bar { background: rgba(3,6,18,0.98) !important; }
.top-bar a { color: rgba(255,255,255,.82); }
.top-bar a:hover { color: var(--accent); text-decoration: none; }
.top-bar-left, .top-bar-right { display: flex; align-items: center; gap: 1.25rem; }

/* 5. Site Header
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 900;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: background var(--transition), border-color var(--transition), box-shadow var(--transition);
  height: var(--header-h);
}
html.dark-theme .site-header { background: rgba(8,15,35,0.96) !important; border-bottom-color: #263352 !important; }
.site-header.scrolled { box-shadow: 0 4px 24px rgba(13,27,62,.12); }

.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

/* Logo */
.logo { display: flex; align-items: center; gap: 0.625rem; text-decoration: none; }
.logo:hover { text-decoration: none; }
.logo-icon {
  width: 38px; height: 38px;
  background: linear-gradient(135deg, var(--accent), var(--primary));
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.15rem;
  color: #fff;
  flex-shrink: 0;
}
.logo-text { display: flex; flex-direction: column; line-height: 1.15; }
.logo-name {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--primary);
}
html.dark-theme .logo-name { color: #E2EAF4; }
.logo-tagline { font-size: 0.65rem; color: var(--gray); font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; }

/* Nav */
.site-nav { display: flex; align-items: center; gap: 0.25rem; }
.nav-link {
  font-family: 'Nunito', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text);
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius);
  transition: background var(--transition), color var(--transition);
  white-space: nowrap;
}
html.dark-theme .nav-link { color: #CBD5E1; }
.nav-link:hover { background: var(--light); color: var(--accent); text-decoration: none; }
html.dark-theme .nav-link:hover { background: #141E35; }
.nav-link.active { color: var(--accent); }

/* Header Actions */
.header-actions { display: flex; align-items: center; gap: 0.5rem; }

.theme-toggle {
  background: none; border: none;
  width: 38px; height: 38px;
  border-radius: 50%;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: var(--gray);
  font-size: 1rem;
  transition: background var(--transition), color var(--transition);
}
.theme-toggle:hover { background: var(--light); color: var(--accent); }
html.dark-theme .theme-toggle:hover { background: #1B2848; }
html:not(.dark-theme) .theme-toggle .fa-sun { display: none !important; }
html.dark-theme .theme-toggle .fa-sun  { display: inline-block !important; color: #F59E0B !important; }
html.dark-theme .theme-toggle .fa-moon { display: none !important; }

.search-toggle {
  background: none; border: none;
  width: 38px; height: 38px;
  border-radius: 50%;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: var(--gray);
  font-size: 1rem;
  transition: background var(--transition), color var(--transition);
}
.search-toggle:hover { background: var(--light); color: var(--accent); }

.mobile-menu-btn {
  display: none;
  background: none; border: none;
  width: 38px; height: 38px;
  border-radius: var(--radius);
  cursor: pointer;
  align-items: center; justify-content: center;
  color: var(--text);
  font-size: 1.2rem;
}
html.dark-theme .mobile-menu-btn { color: #CBD5E1; }

/* 6. Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.5rem;
  border-radius: var(--radius);
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background var(--transition), color var(--transition),
              border-color var(--transition), transform 0.15s, box-shadow var(--transition);
  text-decoration: none;
  white-space: nowrap;
  line-height: 1.3;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #fff;
  box-shadow: 0 4px 14px rgba(0,196,196,.35);
}
.btn-primary:hover { background: linear-gradient(135deg, var(--accent-dark), #007A7A); box-shadow: 0 6px 20px rgba(0,196,196,.45); color: #fff; }
.btn-outline { background: transparent; color: var(--primary); border-color: var(--primary); }
html.dark-theme .btn-outline { color: #E2EAF4; border-color: #E2EAF4; }
.btn-outline:hover { background: var(--primary); color: #fff; }
html.dark-theme .btn-outline:hover { background: #E2EAF4; color: #0D1B3E; }
.btn-white { background: #fff; color: var(--primary); border-color: #fff; }
.btn-white:hover { background: var(--light); }
.btn-sm { padding: 0.45rem 1rem; font-size: 0.82rem; }
.btn-lg { padding: 0.85rem 2rem; font-size: 1rem; }

/* 7. Hero Section
   ========================================================================== */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-mid) 55%, #0D3B6E 100%);
  color: #fff;
  padding: 6rem 1.5rem 5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60'%3E%3Ccircle cx='30' cy='30' r='1.5' fill='%2300C4C4' opacity='.18'/%3E%3C/svg%3E") repeat;
  pointer-events: none;
}
.hero-inner { max-width: 860px; margin: 0 auto; position: relative; z-index: 2; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(0,196,196,.15);
  border: 1px solid rgba(0,196,196,.35);
  color: var(--accent);
  padding: 0.35rem 0.9rem;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}
.hero h1 {
  font-family: 'Syne', sans-serif;
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 800;
  line-height: 1.18;
  margin-bottom: 1.25rem;
  color: #fff;
}
.hero h1 span { color: var(--accent); }
.hero-lead {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  color: rgba(255,255,255,.82);
  margin-bottom: 2.5rem;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}
.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-bottom: 2.5rem; }

/* 8. Layout Utilities
   ========================================================================== */
.container { max-width: 1280px; margin: 0 auto; padding: 0 1.5rem; }
.section { padding: 5rem 1.5rem; }
.section-sm { padding: 3rem 1.5rem; }

.section-heading { text-align: center; margin-bottom: 3rem; }
.section-heading h2 {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  color: var(--primary);
  line-height: 1.2;
  margin-bottom: 0.75rem;
}
html.dark-theme .section-heading h2 { color: #E2EAF4; }
.section-heading p { color: var(--gray); font-size: 1.05rem; max-width: 600px; margin: 0 auto; }

/* 9. Mobile Base
   ========================================================================== */
@media (max-width: 768px) {
  /* Hide the entire top utility bar — phone/email/location in drawer & footer instead */
  .top-bar { display: none; }
  .site-nav { display: none; }
  .mobile-menu-btn { display: flex; }
  /* Hide Apply Now CTA from header bar on mobile — it lives inside the drawer */
  .header-actions .btn-primary { display: none !important; }
  .hero { padding: 4.5rem 1.25rem 3.5rem; }
  .section { padding: 3.5rem 1.25rem; }
}
