/* Bharathvio Technologies — static site styles */

:root {
  --navy: #06273a;
  --navy-2: #0d3a55;
  --cream: #fffef8;
  --ink: #06273a;
  --muted: #4a6070;
  --brass: #8a5f12;
  --brass-lt: #dcb15f;
  --rule: rgba(6, 39, 58, 0.18);
  --rule-lt: rgba(255, 254, 248, 0.22);
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Raleway", "Helvetica Neue", Arial, sans-serif;
  --gutter: clamp(1.25rem, 5vw, 3rem);
}

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

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

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.7;
}

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

a {
  color: var(--brass);
  text-underline-offset: 0.2em;
}

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

:focus-visible {
  outline: 3px solid var(--brass);
  outline-offset: 3px;
}

.on-dark :focus-visible {
  outline-color: var(--brass-lt);
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 10;
  padding: 0.6rem 1rem;
  background: var(--cream);
  color: var(--navy);
  font-weight: 600;
}

.skip:focus {
  top: 1rem;
}

.wrap {
  width: 100%;
  max-width: 69rem;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* Type */

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

h1 {
  font-size: clamp(2.6rem, 6vw, 4.25rem);
  font-weight: 400;
}

h2 {
  font-size: clamp(1.9rem, 3.6vw, 2.6rem);
}

h3 {
  font-size: 1.6rem;
}

p {
  margin: 0 0 1.1em;
}

.lead {
  font-size: 1.2rem;
  line-height: 1.65;
}

.prose {
  max-width: 40rem;
}

.prose > :last-child {
  margin-bottom: 0;
}

/* Header */

.on-dark {
  background: var(--navy);
  color: var(--cream);
}

.on-dark a {
  color: var(--cream);
}

.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 2rem;
  padding-top: 1.25rem;
  padding-bottom: 1.25rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  font-family: var(--serif);
  font-size: 1.45rem;
  font-weight: 500;
  text-decoration: none;
}

.brand img {
  width: 2.75rem;
  height: 2.75rem;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav a {
  display: inline-block;
  padding: 0.35rem 0;
  border-bottom: 2px solid transparent;
  font-size: 0.95rem;
  text-decoration: none;
}

.nav a:hover {
  border-bottom-color: var(--rule-lt);
}

@media (max-width: 30rem) {
  .nav {
    gap: 0.25rem 1rem;
  }

  .nav a {
    font-size: 0.875rem;
  }
}

.nav a[aria-current="page"] {
  border-bottom-color: var(--brass-lt);
}

/* Buttons */

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin: 2rem 0 0;
}

.btn {
  display: inline-block;
  padding: 0.8rem 1.5rem;
  border: 1px solid transparent;
  border-radius: 3px;
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.3;
  text-decoration: none;
  cursor: pointer;
}

.btn-light {
  background: var(--cream);
  color: var(--navy);
}

.on-dark a.btn-light {
  color: var(--navy);
}

.btn-light:hover,
.on-dark a.btn-light:hover {
  background: var(--brass-lt);
  color: var(--navy);
}

.btn-line {
  border-color: var(--cream);
  color: var(--cream);
}

.btn-line:hover {
  background: rgba(255, 254, 248, 0.12);
}

.btn-dark {
  background: var(--navy);
  color: var(--cream);
}

a.btn-dark {
  color: var(--cream);
}

.btn-dark:hover,
a.btn-dark:hover {
  background: var(--navy-2);
  color: var(--cream);
}

/* Hero */

.hero {
  padding: clamp(3rem, 8vw, 6rem) 0 clamp(3.5rem, 9vw, 6.5rem);
}

.hero-grid {
  display: grid;
  gap: 3rem;
  align-items: center;
}

.hero h1 {
  max-width: 11ch;
  margin-bottom: 1.5rem;
  font-size: clamp(3.4rem, 9.5vw, 6.75rem);
  font-weight: 300;
  line-height: 0.98;
}

.hero p {
  max-width: 34rem;
}

.hero-art {
  margin: 0;
}

.hero-art svg {
  width: 100%;
  height: auto;
}

.arc {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: draw 2.4s 0.3s ease-out forwards;
}

@keyframes draw {
  to {
    stroke-dashoffset: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .arc {
    animation: none;
    stroke-dashoffset: 0;
  }
}

@media (min-width: 60rem) {
  .hero-grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  }
}

/* Page heading for inner pages */

.page-head {
  padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(2.5rem, 6vw, 4.5rem);
}

.page-head h1 {
  max-width: 18ch;
  margin-bottom: 1.25rem;
}

.page-head .lead {
  max-width: 42rem;
  margin: 0;
}

/* Sections */

.section {
  padding: clamp(3rem, 7vw, 5.5rem) 0;
}

.section + .section {
  border-top: 1px solid var(--rule);
}

.page-head + .section {
  padding-top: 0;
}

.section h2 {
  margin-bottom: 1.25rem;
}

.split {
  display: grid;
  gap: 1.5rem 4rem;
}

@media (min-width: 52rem) {
  .split {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  }
}

.split h2 {
  margin-bottom: 0;
}

/* Ruled rows */

.rows {
  margin: 0;
  border-top: 1px solid var(--rule);
}

.row {
  display: grid;
  gap: 0.4rem 2rem;
  padding: 1.6rem 0;
  border-bottom: 1px solid var(--rule);
}

.row dt {
  font-family: var(--serif);
  font-size: 1.75rem;
  font-weight: 500;
  line-height: 1.15;
}

.row dd {
  margin: 0;
  max-width: 38rem;
}

@media (min-width: 52rem) {
  .row {
    grid-template-columns: 16rem minmax(0, 1fr);
  }
}

/* Lists */

.checks {
  margin: 0 0 1.5rem;
  padding: 0;
  list-style: none;
}

.checks li {
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--rule);
}

.checks li:first-child {
  border-top: 1px solid var(--rule);
}

.bullets {
  margin: 0 0 1.25rem;
  padding-left: 1.25rem;
}

.bullets li {
  margin-bottom: 0.6rem;
}

/* Contact details */

.details {
  margin: 0;
}

.details dt {
  margin-top: 1.25rem;
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 500;
}

.details dt:first-child {
  margin-top: 0;
}

.details dd {
  margin: 0.1rem 0 0;
  font-style: normal;
}

.band {
  padding: clamp(3rem, 7vw, 5rem) 0;
}

.band-grid {
  display: grid;
  gap: 2rem 4rem;
  align-items: start;
}

.band h2 {
  margin-bottom: 0;
}

.band .details dt {
  color: var(--brass-lt);
}

@media (min-width: 52rem) {
  .band-grid {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  }
}

/* Form */

.contact-grid {
  display: grid;
  gap: 3rem 4rem;
}

@media (min-width: 56rem) {
  .contact-grid {
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr);
  }
}

.field {
  margin-bottom: 1.25rem;
}

.field label {
  display: block;
  margin-bottom: 0.35rem;
  font-weight: 600;
}

.field .hint {
  font-weight: 400;
  color: var(--muted);
}

.field input,
.field textarea {
  width: 100%;
  padding: 0.75rem 0.85rem;
  border: 1px solid rgba(6, 39, 58, 0.45);
  border-radius: 3px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

.field textarea {
  min-height: 9.5rem;
  resize: vertical;
}

.field input:focus,
.field textarea:focus {
  border-color: var(--brass);
}

.trap {
  position: absolute;
  left: -9999px;
}

/* Footer */

.site-footer {
  padding: 2.25rem 0;
  font-size: 0.95rem;
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 2rem;
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  text-underline-offset: 0.2em;
}

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

.not-found {
  padding: clamp(4rem, 12vw, 8rem) 0;
}

.not-found h1 {
  margin-bottom: 1rem;
}
