/* =============================================================
   ANANTH.DEV — Static Page Theme
   Matches the React app's light theme tokens from src/index.css
   Fonts: DM Sans (body) + Space Grotesk (headings)
   ============================================================= */

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

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

body {
  font-family: "DM Sans", system-ui, -apple-system, sans-serif;
  background: #FFFFFF;
  background-image: linear-gradient(160deg, #FFFFFF 0%, #F0F7FF 48%, #FFFFFF 100%);
  color: hsl(240, 20%, 6%);
  line-height: 1.6;
  min-height: 100vh;
  min-height: 100dvh;
  width: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* --- Container --- */
.container {
  max-width: 880px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

/* --- Skip Link --- */
.skip-link {
  position: absolute;
  top: -100%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10000;
  padding: 0.75rem 1.5rem;
  background: #0077CC;
  color: #FFFFFF;
  font-weight: 700;
  border-radius: 0 0 8px 8px;
  text-decoration: none;
  transition: top 0.2s;
}
.skip-link:focus { top: 0; }

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: "Space Grotesk", "DM Sans", sans-serif;
  font-weight: 700;
  text-wrap: balance;
  color: hsl(240, 20%, 6%);
}

h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

h2 {
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  line-height: 1.25;
  margin: 2.5rem 0 0.75rem;
  letter-spacing: -0.01em;
}

h3 {
  font-size: 1.15rem;
  line-height: 1.35;
  margin: 1.75rem 0 0.5rem;
  color: hsl(240, 20%, 12%);
}

p {
  color: hsl(240, 10%, 30%);
  margin: 0.5rem 0;
  max-width: 65ch;
  text-wrap: pretty;
}

.lead {
  font-size: 1.15rem;
  color: hsl(240, 5%, 40%);
  margin: 0;
  max-width: 60ch;
}

strong { color: hsl(240, 20%, 6%); }

a {
  color: #0077CC;
  text-decoration: underline;
  text-decoration-color: hsla(199, 100%, 40%, 0.3);
  text-underline-offset: 2px;
  transition: color 0.15s, text-decoration-color 0.15s;
}
a:hover {
  color: #005F9E;
  text-decoration-color: #0077CC;
}

/* --- Header --- */
header {
  padding: 1.5rem 0 2rem;
  border-bottom: 1px solid hsl(240, 6%, 90%);
}

/* --- Sections --- */
section {
  margin: 2.5rem 0;
}

/* --- Lists --- */
ul, ol {
  color: hsl(240, 10%, 30%);
  padding-left: 1.4rem;
}
li { margin: 0.35rem 0; }
li::marker { color: #0077CC; }

/* --- CTA Button --- */
.cta {
  display: inline-block;
  margin-top: 2rem;
  padding: 0.85rem 1.8rem;
  background: #0077CC;
  color: #FFFFFF;
  border: none;
  border-radius: 9999px;
  font-family: "DM Sans", system-ui, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 8px hsla(199, 100%, 40%, 0.25);
}
.cta:hover {
  background: #005F9E;
  color: #FFFFFF;
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 4px 16px hsla(199, 100%, 40%, 0.35);
}
.cta:focus-visible {
  outline: 2px solid #0077CC;
  outline-offset: 2px;
}

/* --- FAQ Items --- */
.faq-item {
  margin: 1rem 0;
  padding: 1.25rem 1.5rem;
  border: 1px solid hsl(240, 6%, 90%);
  border-radius: 12px;
  background: hsl(240, 6%, 98%);
  transition: box-shadow 0.2s, border-color 0.2s;
}
.faq-item:hover {
  border-color: hsla(199, 100%, 40%, 0.3);
  box-shadow: 0 2px 12px hsla(199, 100%, 40%, 0.06);
}
.faq-item h3 {
  color: hsl(240, 20%, 6%);
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
}
.faq-item p {
  margin: 0;
  color: hsl(240, 5%, 40%);
  font-size: 0.95rem;
}

/* --- Navigation --- */
nav {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid hsl(240, 6%, 90%);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
nav a {
  color: #0077CC;
  text-decoration: none;
  padding: 0.45rem 0.9rem;
  border: 1px solid hsl(240, 6%, 90%);
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.15s;
  background: transparent;
}
nav a:hover {
  background: hsl(199, 100%, 97%);
  border-color: hsla(199, 100%, 40%, 0.3);
  color: #005F9E;
}
nav a:focus-visible {
  outline: 2px solid #0077CC;
  outline-offset: 2px;
}

/* --- Notice Box --- */
.notice {
  background: hsl(199, 60%, 98%);
  border: 1px solid hsla(199, 100%, 40%, 0.15);
  border-radius: 10px;
  padding: 1rem 1.25rem;
  margin: 1.25rem 0;
  font-size: 0.9rem;
  color: hsl(240, 10%, 35%);
}

/* --- Footer --- */
footer {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid hsl(240, 6%, 90%);
  font-size: 0.875rem;
  color: hsl(240, 5%, 46%);
  text-align: center;
}

/* --- Service Cards --- */
.service-card {
  padding: 1.5rem;
  border: 1px solid hsl(240, 6%, 90%);
  border-radius: 12px;
  background: #FFFFFF;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.service-card:hover {
  border-color: hsla(199, 100%, 40%, 0.3);
  box-shadow: 0 4px 20px hsla(199, 100%, 40%, 0.08);
  transform: translateY(-2px);
}
.service-card h3 {
  margin-top: 0;
}

/* --- Skill Tags --- */
.skill-tag {
  display: inline-block;
  padding: 0.35rem 0.75rem;
  background: hsl(199, 100%, 97%);
  color: #0077CC;
  border: 1px solid hsla(199, 100%, 40%, 0.15);
  border-radius: 9999px;
  font-size: 0.85rem;
  font-weight: 500;
  transition: all 0.15s;
}
.skill-tag:hover {
  background: hsla(199, 100%, 40%, 0.08);
  border-color: hsla(199, 100%, 40%, 0.3);
}

/* --- Page Grid (for service listings) --- */
.page-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
  margin: 1.5rem 0;
}

/* --- Responsive --- */
@media (max-width: 640px) {
  .container { padding: 2rem 1.25rem; }
  h1 { font-size: clamp(1.6rem, 6vw, 2.2rem); }
  nav { gap: 0.4rem; }
  nav a { font-size: 0.85rem; padding: 0.35rem 0.7rem; }
}

/* --- Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .cta, .service-card, .faq-item, nav a { transition: none; }
  .cta:hover, .service-card:hover { transform: none; }
}

/* --- Selection --- */
::selection {
  background: hsla(199, 100%, 40%, 0.15);
  color: hsl(240, 20%, 6%);
}
