/* Aryan Science Solutions — shared stylesheet */

:root {
  --color-primary: #0b3d46;
  --color-primary-light: #14707f;
  --color-accent: #2fb8a6;
  --color-accent-dark: #1f9686;
  --color-bg: #ffffff;
  --color-bg-alt: #f4f7f8;
  --color-bg-dark: #0b3d46;
  --color-text: #1a2b2e;
  --color-text-muted: #5b6b6e;
  --color-border: #e1e8e9;
  --max-width: 1120px;
  --radius: 10px;
  --shadow: 0 2px 12px rgba(11, 61, 70, 0.08);
  font-size: 16px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: var(--color-primary-light); text-decoration: none; }
a:hover { color: var(--color-accent-dark); }

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

h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.25;
  margin: 0 0 16px;
  color: var(--color-primary);
}

h1 { font-size: clamp(2rem, 4vw, 2.75rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 16px; color: var(--color-text); }

.lead {
  font-size: 1.15rem;
  color: var(--color-text-muted);
}

.section {
  padding: 72px 0;
}

.section-alt {
  background: var(--color-bg-alt);
}

.section-header {
  max-width: 680px;
  margin: 0 auto 48px;
  text-align: center;
}

.eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--color-accent-dark);
  margin-bottom: 12px;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 13px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  border: 2px solid transparent;
  cursor: pointer;
}

.btn-primary {
  background: var(--color-accent);
  color: #ffffff;
}
.btn-primary:hover {
  background: var(--color-accent-dark);
  color: #fff;
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.55);
  color: #ffffff;
}
.btn-outline:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.btn-outline-dark {
  background: transparent;
  border-color: var(--color-primary-light);
  color: var(--color-primary);
}
.btn-outline-dark:hover {
  background: var(--color-primary);
  color: #fff;
}

.btn-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* Header / Nav */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--color-border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
}

.brand {
  display: flex;
  align-items: center;
}

.brand-logo {
  height: 34px;
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--color-text);
  font-weight: 500;
  font-size: 0.96rem;
}

.nav-links a.active,
.nav-links a:hover {
  color: var(--color-accent-dark);
}

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

/* Hero */
.hero {
  background: linear-gradient(160deg, var(--color-bg-dark) 0%, var(--color-primary-light) 100%);
  color: #fff;
  padding: 96px 0 88px;
}

.hero h1 { color: #fff; }

.hero .lead {
  color: rgba(255, 255, 255, 0.86);
  max-width: 640px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 56px;
  align-items: center;
}

.eyebrow-light { color: #8fe3d6; }

/* Hero infrastructure visual */
.stack {
  margin: 0;
  display: grid;
  gap: 14px;
  position: relative;
}
.stack::before {
  content: "";
  position: absolute;
  left: 41px;
  top: 28px;
  bottom: 28px;
  width: 2px;
  background: linear-gradient(var(--color-accent), rgba(143, 227, 214, 0.25));
}
.stack-layer {
  position: relative;
  display: grid;
  grid-template-columns: 84px 1fr;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  backdrop-filter: blur(4px);
}
.stack-label {
  position: relative;
  z-index: 1;
  justify-self: start;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-bg-dark);
  background: #8fe3d6;
  padding: 4px 10px;
  border-radius: 999px;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.chips span {
  font-size: 0.85rem;
  color: #fff;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  white-space: nowrap;
}

/* Cards */
.grid {
  display: grid;
  gap: 28px;
}

.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow);
}

.card .icon {
  width: 44px;
  height: 44px;
  margin-bottom: 18px;
  color: var(--color-accent-dark);
}

.card h3 { margin-bottom: 10px; }
.card p { color: var(--color-text-muted); margin-bottom: 0; }

.card ul {
  margin: 0;
  padding-left: 20px;
  color: var(--color-text-muted);
}
.card ul li { margin-bottom: 8px; }

/* Service detail blocks */
.service-block {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 24px;
  padding: 40px 0;
  border-bottom: 1px solid var(--color-border);
}
.service-block:last-child { border-bottom: none; }

.service-block .icon {
  width: 40px;
  height: 40px;
  color: var(--color-accent-dark);
}

.service-block ul {
  padding-left: 20px;
  color: var(--color-text-muted);
}
.service-block ul li { margin-bottom: 10px; }

/* How-it-works flow */
.flow-step {
  position: relative;
  padding-top: 20px;
  border-top: 3px solid var(--color-accent);
}
.flow-num {
  font-size: 2.4rem;
  font-weight: 700;
  line-height: 1;
  color: var(--color-accent);
  opacity: 0.35;
  margin-bottom: 14px;
}
.flow-step p { color: var(--color-text-muted); margin-bottom: 0; }

.principles h3 { font-size: 1.1rem; }
.principles p { color: var(--color-text-muted); margin-bottom: 0; }

.section-link {
  text-align: center;
  margin: 40px 0 0;
}
.link-arrow { font-weight: 600; }
.link-arrow::after { content: " →"; }


/* CTA band */
.cta-band {
  background: var(--color-bg-dark);
  color: #fff;
  text-align: center;
  padding: 64px 0;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255, 255, 255, 0.82); }

/* Forms */
.form-grid {
  display: grid;
  gap: 20px;
  max-width: 560px;
}

label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  font-size: 0.92rem;
}

input, textarea, select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
  background: #fff;
}

input:focus, textarea:focus, select:focus {
  outline: 2px solid var(--color-accent);
  outline-offset: 1px;
}

textarea { resize: vertical; min-height: 140px; }

.field-hidden { position: absolute; left: -9999px; }

/* Footer */
.site-footer {
  background: var(--color-bg-dark);
  color: rgba(255, 255, 255, 0.75);
  padding: 48px 0 28px;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 32px;
  margin-bottom: 28px;
}

.footer-brand {
  margin-bottom: 12px;
}

.footer-tagline {
  color: rgba(255, 255, 255, 0.65);
  max-width: 320px;
}

.footer-logo {
  height: 30px;
  width: auto;
  display: block;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-links a { color: rgba(255, 255, 255, 0.75); }
.footer-links a:hover { color: #fff; }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.55);
}

.footer-bottom a { color: rgba(255, 255, 255, 0.55); }
.footer-bottom a:hover { color: #fff; }

/* Page hero (non-home) */
.page-hero {
  padding: 64px 0 48px;
  background: var(--color-bg-alt);
  border-bottom: 1px solid var(--color-border);
}

/* Responsive */
@media (max-width: 900px) {
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .flow, .principles { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 8px 24px 20px;
    border-bottom: 1px solid var(--color-border);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; padding: 12px 0; border-bottom: 1px solid var(--color-border); }
  .nav-links li:last-child { border-bottom: none; }
  .nav-toggle { display: flex; }

  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .service-block { grid-template-columns: 32px 1fr; }
  .footer-grid { flex-direction: column; }
  .stack-layer { grid-template-columns: 1fr; gap: 10px; }
  .stack::before { display: none; }
  .chips span { white-space: normal; }
}
