:root {
  --ink: #18212f;
  --muted: #5d6778;
  --line: #dce3ea;
  --paper: #ffffff;
  --soft: #f3f7f6;
  --brand: #0f766e;
  --brand-dark: #0b4f4a;
  --accent: #e0b15c;
  --accent-soft: #fff4dc;
  --danger: #a43e3e;
  --shadow: 0 18px 50px rgba(24, 33, 47, 0.12);
  --radius: 8px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
}

.auth-page {
  min-height: 100vh;
  background:
    linear-gradient(135deg, rgba(15, 118, 110, 0.92), rgba(19, 34, 53, 0.94)),
    url("../images/hero-bg.jpg") center / cover;
}

body.nav-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

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

button,
input,
select,
textarea {
  font: inherit;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  min-height: 78px;
  padding: 14px clamp(18px, 5vw, 72px);
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(220, 227, 234, 0.84);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
}

.brand-copy {
  display: grid;
  gap: 2px;
  line-height: 1.05;
}

.brand-title {
  font-size: 17px;
  font-weight: 900;
}

.brand-tagline {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: none;
  white-space: nowrap;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: #fff;
  background: linear-gradient(135deg, var(--brand), #164e63);
  border-radius: 8px;
  font-size: 14px;
  letter-spacing: 0;
}

.site-nav {
  justify-self: center;
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 700;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--brand);
}

.header-actions,
.button-row,
.hero-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.solid-button,
.ghost-button,
.light-button,
.text-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 16px;
  border-radius: 8px;
  border: 1px solid transparent;
  font-weight: 800;
  cursor: pointer;
}

.solid-button {
  color: #fff;
  background: var(--brand);
  box-shadow: 0 10px 24px rgba(15, 118, 110, 0.22);
}

.solid-button:hover,
.solid-button:focus-visible {
  background: var(--brand-dark);
}

.solid-button.dark {
  background: var(--ink);
}

.ghost-button {
  color: var(--brand-dark);
  background: #fff;
  border-color: var(--line);
}

.ghost-button:hover,
.ghost-button:focus-visible {
  border-color: var(--brand);
}

.light-button {
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.46);
}

.large {
  min-height: 50px;
  padding-inline: 22px;
}

.text-button {
  min-height: 0;
  padding: 0;
  color: var(--brand);
  background: transparent;
}

.nav-toggle {
  display: none;
}

.hero {
  position: relative;
  min-height: min(760px, calc(100vh - 78px));
  display: grid;
  align-items: end;
  overflow: hidden;
}

.hero-media,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-media {
  background-image: url("../images/hero-bg.jpg");
  background-size: cover;
  background-position: center;
  transform: scale(1.02);
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(8, 24, 36, 0.9), rgba(8, 24, 36, 0.62) 48%, rgba(8, 24, 36, 0.1)),
    linear-gradient(0deg, rgba(8, 24, 36, 0.44), rgba(8, 24, 36, 0.02));
}

.hero-content {
  position: relative;
  width: min(760px, 100%);
  padding: clamp(90px, 12vw, 150px) clamp(18px, 5vw, 72px) clamp(54px, 8vw, 96px);
  color: #fff;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--brand);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #97f4df;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 20px;
  font-size: clamp(44px, 7vw, 76px);
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.05;
  letter-spacing: 0;
}

h3 {
  font-size: 21px;
  line-height: 1.2;
}

.hero-copy {
  max-width: 660px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 20px;
  line-height: 1.6;
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border-bottom: 1px solid var(--line);
}

.trust-strip div {
  padding: 26px clamp(18px, 4vw, 46px);
  background: #fff;
}

.trust-strip strong,
.trust-strip span {
  display: block;
}

.trust-strip strong {
  margin-bottom: 8px;
}

.trust-strip span {
  color: var(--muted);
  line-height: 1.5;
}

.section {
  padding: clamp(64px, 9vw, 116px) clamp(18px, 5vw, 72px);
}

.section-muted {
  background: var(--soft);
}

.intro-grid,
.request-panel,
.contact,
.auth-subscription {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(28px, 6vw, 82px);
  align-items: start;
}

.intro-copy p,
.section-heading p,
.request-panel p,
.auth-card p,
.contact-details p,
.contact-details address,
.site-footer p {
  color: var(--muted);
  line-height: 1.7;
}

.value-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.value-row span {
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-weight: 800;
}

.section-heading {
  max-width: 780px;
  margin-bottom: 40px;
}

.section-heading.compact {
  max-width: 620px;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.service-card {
  display: grid;
  grid-template-columns: 42% 1fr;
  min-height: 300px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 10px 30px rgba(24, 33, 47, 0.06);
}

.service-card img,
.service-visual {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-card > div:last-child {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 28px;
}

.service-card p {
  color: var(--muted);
  line-height: 1.6;
}

.service-visual-alt {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  padding: 18px;
  background: linear-gradient(135deg, #e6f5f1, #fff7e8);
}

.service-visual-alt span {
  display: grid;
  place-items: center;
  min-height: 92px;
  color: var(--brand-dark);
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(15, 118, 110, 0.16);
  border-radius: 8px;
  font-weight: 900;
}

.catalog {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 40px;
  align-items: start;
}

.tag-list {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.service-groups {
  display: grid;
  gap: 28px;
}

.service-group {
  display: grid;
  gap: 12px;
}

.service-group h3 {
  margin: 0;
  font-size: 18px;
}

.tag-list button {
  min-height: 40px;
  padding: 9px 12px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
}

.tag-list button:hover,
.tag-list button:focus-visible {
  color: var(--brand-dark);
  border-color: var(--brand);
  background: #f4fbf9;
}

.process {
  background: #132235;
  color: #fff;
}

.process .eyebrow {
  color: #97f4df;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.steps article {
  padding: 28px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
}

.steps span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 22px;
  color: #102133;
  background: var(--accent);
  border-radius: 8px;
  font-weight: 900;
}

.steps p {
  color: rgba(255, 255, 255, 0.76);
  line-height: 1.6;
}

.form-card,
.auth-card {
  padding: clamp(22px, 4vw, 34px);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.form-card {
  display: grid;
  gap: 18px;
}

label {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  min-height: 46px;
  padding: 11px 12px;
  color: var(--ink);
  background: #fff;
  border: 1px solid #cbd5df;
  border-radius: 8px;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus,
button:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(15, 118, 110, 0.25);
  outline-offset: 2px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.form-status {
  min-height: 24px;
  margin: 0;
  color: var(--brand-dark);
  font-weight: 800;
}

.form-status.error {
  color: var(--danger);
}

.auth-subscription {
  background: var(--soft);
}

.auth-card.accent {
  background: var(--accent-soft);
  border-color: #f2d49b;
}

.newsletter {
  display: grid;
  grid-template-columns: 1fr minmax(320px, 560px);
  gap: clamp(24px, 5vw, 64px);
  align-items: center;
  padding: clamp(40px, 6vw, 70px) clamp(18px, 5vw, 72px);
  color: #fff;
  background: var(--brand-dark);
}

.newsletter .eyebrow {
  color: #97f4df;
}

.newsletter p {
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.7;
}

.newsletter-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
}

.newsletter-form .form-status {
  grid-column: 1 / -1;
  color: #bff7e7;
}

.contact-details address {
  font-style: normal;
}

.site-footer {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 34px;
  padding: 52px clamp(18px, 5vw, 72px) 28px;
  background: #0d1725;
  color: #fff;
}

.site-footer h2 {
  margin-bottom: 14px;
  font-size: 16px;
}

.site-footer a {
  display: block;
  margin-bottom: 10px;
  color: rgba(255, 255, 255, 0.76);
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: #fff;
}

.site-footer .brand {
  color: #fff;
  margin-bottom: 16px;
}

.site-footer .brand-tagline,
.auth-shell .brand-tagline {
  color: rgba(255, 255, 255, 0.72);
}

.copyright {
  grid-column: 1 / -1;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.auth-shell {
  width: min(620px, calc(100% - 32px));
  min-height: 100vh;
  display: grid;
  align-content: center;
  gap: 22px;
  margin: 0 auto;
  padding: 34px 0;
}

.auth-shell.wide {
  width: min(820px, calc(100% - 32px));
}

.auth-shell .brand {
  color: #fff;
}

.auth-box {
  padding: clamp(24px, 5vw, 44px);
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.auth-box h1 {
  color: var(--ink);
  font-size: clamp(38px, 6vw, 58px);
}

.auth-box p {
  color: var(--muted);
  line-height: 1.7;
}

.auth-link {
  margin: 18px 0 0;
  text-align: center;
}

.auth-link a {
  color: var(--brand);
  font-weight: 900;
}

.pricing-hero {
  max-width: 960px;
  padding-bottom: 36px;
}

.pricing-hero h1 {
  color: var(--ink);
}

.pricing-hero p {
  max-width: 720px;
  color: var(--muted);
  font-size: 20px;
  line-height: 1.6;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding-top: 0;
}

.price-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 28px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 12px 34px rgba(24, 33, 47, 0.08);
}

.price-card.featured {
  background: var(--accent-soft);
  border-color: #efcf8d;
  transform: translateY(-12px);
}

.price-card h2 {
  font-size: 30px;
}

.price-card p,
.price-card li {
  color: var(--muted);
  line-height: 1.6;
}

.price-card ul {
  display: grid;
  gap: 10px;
  padding-left: 20px;
  margin: 0 0 auto;
}

.plan-status {
  min-height: 30px;
  margin: -40px clamp(18px, 5vw, 72px) 54px;
  color: var(--brand-dark);
  font-weight: 900;
}

@media (max-width: 1020px) {
  .site-header {
    grid-template-columns: auto auto;
  }

  .nav-toggle {
    justify-self: end;
    display: inline-grid;
    gap: 5px;
    width: 42px;
    height: 42px;
    padding: 10px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
  }

  .nav-toggle span:not(.sr-only) {
    display: block;
    height: 2px;
    background: var(--ink);
  }

  .site-nav,
  .header-actions {
    display: none;
  }

  .site-nav.always-visible {
    grid-column: 1 / -1;
    display: flex;
    justify-self: start;
    flex-wrap: wrap;
  }

  .site-nav.is-open,
  .header-actions.is-open {
    grid-column: 1 / -1;
    display: grid;
    justify-self: stretch;
    gap: 8px;
    padding: 12px 0;
  }

  .site-nav.is-open a {
    padding: 12px 0;
  }

  .header-actions.is-open {
    grid-template-columns: repeat(2, 1fr);
  }

  .trust-strip,
  .intro-grid,
  .request-panel,
  .contact,
  .auth-subscription,
  .newsletter,
  .catalog,
  .site-footer,
  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .price-card.featured {
    transform: none;
  }

  .service-grid,
  .steps {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .site-header {
    min-height: 68px;
    padding: 12px 16px;
  }

  h1 {
    font-size: 42px;
  }

  .hero {
    min-height: 680px;
  }

  .hero-content {
    padding: 88px 18px 44px;
  }

  .hero-actions,
  .header-actions.is-open,
  .button-row,
  .newsletter-form,
  .form-grid {
    grid-template-columns: 1fr;
    display: grid;
  }

  .solid-button,
  .ghost-button,
  .light-button {
    width: 100%;
  }

  .service-card {
    grid-template-columns: 1fr;
  }

  .service-card img,
  .service-visual {
    aspect-ratio: 16 / 10;
  }
}

/* Custom Styles for About (Mission/Vision) Section & Cards */
#about.section {
  padding-top: clamp(32px, 5vw, 56px);
  padding-bottom: clamp(32px, 5vw, 56px);
}

.about-card-custom {
  display: block;
  padding: clamp(24px, 4vw, 40px);
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 10px 30px rgba(24, 33, 47, 0.04);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-card-custom:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(24, 33, 47, 0.08);
}

/* Button Loader Styles */
.solid-button.loading,
.light-button.loading,
button[type="submit"].loading {
  position: relative;
  color: transparent !important;
  pointer-events: none;
}

.solid-button.loading::after,
.light-button.loading::after,
button[type="submit"].loading::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  top: 50%;
  left: 50%;
  margin-top: -9px;
  margin-left: -9px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: button-spinner 0.6s linear infinite;
}

@keyframes button-spinner {
  to {
    transform: rotate(360deg);
  }
}
