/* Shivshambhu — design tokens */
:root {
  --ink: #0c1220;
  --ink-soft: #243047;
  --muted: #5a6a82;
  --paper: #f3f6f9;
  --paper-alt: #e8eef4;
  --line: #c9d4e0;
  --accent: #0d8a6a;
  --accent-deep: #066b52;
  --accent-soft: #d4f0e7;
  --hero-tint: rgba(8, 18, 32, 0.62);
  --white: #ffffff;
  --shadow: 0 18px 40px rgba(12, 18, 32, 0.12);
  --radius: 4px;
  --font-display: "Syne", sans-serif;
  --font-body: "Source Sans 3", sans-serif;
  --container: min(1120px, calc(100% - 2.5rem));
  --header-h: 4.25rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink-soft);
  background-color: #e7eef0;
  background-image:
    radial-gradient(980px 460px at 0% -8%, rgba(13, 138, 106, 0.16), transparent 62%),
    radial-gradient(760px 380px at 100% 0%, rgba(12, 18, 32, 0.07), transparent 58%),
    linear-gradient(180deg, #dceae6 0%, #eef3f4 22%, #f4f7f8 100%);
}

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

a {
  color: var(--accent-deep);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--accent);
}

h1,
h2,
h3,
.brand-mark,
.logo,
.footer-brand {
  font-family: var(--font-display);
  color: var(--ink);
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  line-height: 1.05;
  font-weight: 800;
  margin: 0.35rem 0 0.85rem;
  max-width: 14ch;
}

h2 {
  font-size: clamp(1.75rem, 3.2vw, 2.5rem);
  line-height: 1.15;
  font-weight: 700;
  margin: 0.25rem 0 0.75rem;
}

h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0 0 0.4rem;
}

p {
  margin: 0 0 1rem;
}

code {
  font-size: 0.9em;
  background: var(--paper-alt);
  padding: 0.12em 0.35em;
  border-radius: 3px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  background: var(--ink);
  color: var(--white);
  padding: 0.5rem 0.85rem;
  z-index: 1000;
}

.skip-link:focus {
  top: 0.75rem;
}

.container {
  width: var(--container);
  margin-inline: auto;
}

.container.narrow {
  max-width: 720px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: calc(var(--header-h) + env(safe-area-inset-top));
  padding-top: env(safe-area-inset-top);
  background: #0c1220;
  border-bottom: 3px solid var(--accent);
  box-shadow: 0 10px 28px rgba(8, 14, 24, 0.22);
}

.site-header.is-scrolled {
  background: #0c1220;
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  font-weight: 800;
  font-size: 1.2rem;
  text-decoration: none;
  color: var(--white);
  white-space: nowrap;
}

.logo:hover {
  color: #b7f0df;
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.15rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a {
  text-decoration: none;
  color: rgba(255, 255, 255, 0.88);
  font-weight: 600;
  font-size: 0.95rem;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a[aria-current="page"] {
  color: #9fe3cf;
}

.nav-toggle {
  display: none;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.06);
  border-radius: var(--radius);
  padding: 0.65rem;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
}

.nav-toggle-bar {
  display: block;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Hero */
.hero {
  position: relative;
  min-height: calc(100svh - var(--header-h));
  display: grid;
  align-items: end;
  color: var(--white);
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, rgba(6, 40, 32, 0.25), transparent 45%),
    url("https://images.unsplash.com/photo-1522071820081-009f0129c71c?auto=format&fit=crop&w=2000&q=80")
      center / cover no-repeat;
  transform: scale(1.04);
  animation: hero-zoom 18s ease-out forwards;
}

.hero-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(8, 18, 32, 0.35) 0%, var(--hero-tint) 55%, rgba(8, 18, 32, 0.82) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: clamp(3rem, 10vh, 6rem) 0 clamp(3.5rem, 9vh, 5.5rem);
}

.brand-mark {
  margin: 0;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  color: var(--white);
  opacity: 0;
  animation: rise 0.8s ease 0.1s forwards;
}

.hero h1 {
  color: var(--white);
  max-width: 16ch;
  opacity: 0;
  animation: rise 0.85s ease 0.22s forwards;
}

.hero-lead {
  max-width: 38ch;
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.9);
  opacity: 0;
  animation: rise 0.85s ease 0.34s forwards;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
  opacity: 0;
  animation: rise 0.85s ease 0.46s forwards;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes hero-zoom {
  from {
    transform: scale(1.08);
  }
  to {
    transform: scale(1);
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.85rem;
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--accent);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--accent-deep);
  color: var(--white);
}

.btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.55);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
}

/* Sections */
.section {
  padding: clamp(3.5rem, 8vw, 5.5rem) 0;
}

.section-alt {
  background: rgba(255, 255, 255, 0.62);
}

.eyebrow {
  margin: 0 0 0.35rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-deep);
}

.lede {
  font-size: 1.125rem;
  color: var(--muted);
  max-width: 52ch;
}

.section-lede {
  margin-bottom: 2rem;
}

.mission {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.mission h3 {
  color: var(--accent-deep);
}

/* Services — list, not cards */
.service-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.service-list li {
  display: grid;
  grid-template-columns: minmax(10rem, 0.4fr) 1fr;
  gap: 1rem 2rem;
  padding: 1.4rem 0;
  border-bottom: 1px solid var(--line);
}

.service-list h3 {
  margin: 0;
}

.service-list p {
  margin: 0;
  color: var(--muted);
}

/* Products — interactive containers */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.product-grid--single {
  display: flex;
  justify-content: flex-start;
}

.product-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.35rem 1.35rem 1.5rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.product-card:hover {
  transform: translateY(-3px);
  border-color: #9eb3c7;
}

.product-tag {
  align-self: flex-start;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-deep);
  background: var(--accent-soft);
  padding: 0.25rem 0.5rem;
}

.product-card h3 {
  margin: 0.15rem 0;
}

.product-card p {
  margin: 0;
  color: var(--muted);
  flex: 1;
}

.product-card a {
  margin-top: 0.75rem;
  font-weight: 700;
  text-decoration: none;
}

.product-card--compact {
  width: min(100%, 260px);
  padding: 1rem 1rem 1.05rem;
  text-decoration: none;
  color: inherit;
  gap: 0.35rem;
}

.product-card--compact h3 {
  font-size: 1.05rem;
}

.product-card--compact p {
  font-size: 0.95rem;
  line-height: 1.45;
}

.product-card-cta {
  margin-top: 0.35rem;
  font-weight: 700;
  color: var(--accent-deep);
  font-size: 0.95rem;
}

.product-card--compact:hover {
  color: inherit;
}

.product-card--compact:hover .product-card-cta {
  color: var(--accent);
}

/* Team */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.team-member {
  text-align: left;
}

.team-photo {
  aspect-ratio: 1;
  width: 100%;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: 0.85rem;
  filter: grayscale(0.15);
  transition: filter 0.3s ease, transform 0.3s ease;
}

.team-member:hover .team-photo {
  filter: grayscale(0);
  transform: scale(1.02);
}

.team-member h3 {
  margin-bottom: 0.15rem;
}

.team-role {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* Contact */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.email-link {
  display: inline-block;
  margin-top: 0.5rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  text-decoration: none;
  color: var(--ink);
  border-bottom: 2px solid var(--accent);
}

.email-link:hover {
  color: var(--accent-deep);
}

.contact-form {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.25rem, 3vw, 1.75rem);
  box-shadow: var(--shadow);
  display: grid;
  gap: 1rem;
}

.field {
  display: grid;
  gap: 0.35rem;
}

.field label {
  font-weight: 700;
  color: var(--ink);
  font-size: 0.95rem;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.7rem 0.85rem;
}

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

.field input.is-invalid,
.field textarea.is-invalid,
.field select.is-invalid {
  border-color: #b42318;
}

.form-status {
  margin: 0;
  padding: 0.75rem 0.9rem;
  border-radius: var(--radius);
  font-weight: 600;
}

.form-status.is-success {
  background: var(--accent-soft);
  color: var(--accent-deep);
}

.form-status.is-error {
  background: #fdecea;
  color: #8a1c13;
}

/* Location */
.location-layout {
  display: grid;
  grid-template-columns: minmax(14rem, 0.45fr) 1fr;
  gap: 1.5rem;
  align-items: stretch;
}

.address-block {
  font-style: normal;
  line-height: 1.7;
  color: var(--ink-soft);
  padding: 0.25rem 0;
}

.address-block strong {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--ink);
}

.map-frame {
  min-height: 280px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--paper-alt);
}

.map-frame iframe {
  width: 100%;
  height: 100%;
  min-height: 280px;
  border: 0;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--ink);
  color: rgba(255, 255, 255, 0.78);
  padding: 2rem 0;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  align-items: center;
  justify-content: space-between;
}

.footer-brand {
  margin: 0;
  color: var(--white);
  font-weight: 800;
}

.footer-copy {
  margin: 0;
}

.site-footer a {
  color: #9fe3cf;
  text-decoration: none;
  font-weight: 600;
}

.site-footer a:hover {
  color: var(--white);
}

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 960px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .service-list li {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }

  .contact-layout,
  .location-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  :root {
    --container: min(1120px, calc(100% - 1.5rem));
  }

  .logo {
    font-size: 1.05rem;
  }

  .nav-toggle {
    display: flex;
    flex-shrink: 0;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #0c1220;
    border-bottom: 3px solid var(--accent);
    box-shadow: 0 16px 28px rgba(8, 14, 24, 0.28);
    padding: 0.4rem 1rem 0.85rem;
    transform: translateY(-0.35rem);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
  }

  .site-nav.is-open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .site-nav ul {
    flex-direction: column;
    gap: 0.15rem;
  }

  .site-nav a {
    display: flex;
    align-items: center;
    min-height: 2.75rem;
    padding: 0.35rem 0.35rem;
    font-size: 1.05rem;
  }

  .product-grid {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    width: 100%;
  }
}

@media (max-width: 420px) {
  .team-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero-media,
  .brand-mark,
  .hero h1,
  .hero-lead,
  .hero-actions,
  .reveal,
  .product-card,
  .team-photo {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}
