:root {
  --paper: #f8f6f2;
  --ink: #1f2330;
  --brand-red: #ce4a2f;
  --brand-blue: #365784;
  --brand-rose: #b64f92;
  --sand: #efe6d8;
  --card: #ffffff;
  --radius: 18px;
  --shadow: 0 18px 45px rgba(31, 35, 48, 0.14);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: radial-gradient(circle at 10% 20%, #fff6ef 0%, var(--paper) 40%, #edf2f9 100%);
  color: var(--ink);
  font-family: "DM Sans", sans-serif;
}

.container {
  width: min(1120px, 92%);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  backdrop-filter: blur(8px);
  background: rgba(248, 246, 242, 0.86);
  border-bottom: 1px solid rgba(31, 35, 48, 0.08);
  z-index: 15;
}

.nav-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 78px;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
}

.brand img {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  object-fit: cover;
  border: 2px solid #ffffff;
  box-shadow: 0 8px 20px rgba(31, 35, 48, 0.15);
}

.nav-links {
  display: flex;
  gap: 1.1rem;
  align-items: center;
}

.nav-links a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
}

.nav-links a:hover {
  color: var(--brand-red);
}

.portal-link {
  padding: 0.65rem 0.9rem;
  border-radius: 999px;
  background: linear-gradient(120deg, var(--brand-red), var(--brand-blue));
  color: #fff !important;
}

.menu-btn {
  display: none;
}

.hero {
  padding: 5rem 0 4rem;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 2rem;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--brand-blue);
  margin-bottom: 0.8rem;
}

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

h1 {
  font-family: "Bebas Neue", sans-serif;
  letter-spacing: 0.03em;
  font-size: clamp(2.5rem, 6vw, 4.8rem);
  line-height: 0.94;
}

h2 {
  font-family: "Bebas Neue", sans-serif;
  letter-spacing: 0.03em;
  font-size: clamp(2rem, 4vw, 3.1rem);
}

.hero-copy p {
  max-width: 54ch;
}

.hero-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1.25rem;
}

.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  border: 0;
  border-radius: 999px;
  padding: 0.78rem 1.2rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.btn-primary {
  color: #fff;
  background: linear-gradient(120deg, var(--brand-red), #dc6f44);
}

.btn-secondary {
  color: var(--ink);
  background: #fff;
  border: 1px solid rgba(31, 35, 48, 0.15);
}

.hero-art {
  position: relative;
  min-height: 320px;
}

.blob {
  position: absolute;
  border-radius: 48% 52% 62% 38% / 35% 44% 56% 65%;
  filter: drop-shadow(0 20px 30px rgba(31, 35, 48, 0.2));
  animation: drift 8s ease-in-out infinite;
}

.blob-one {
  width: 180px;
  height: 240px;
  background: linear-gradient(160deg, rgba(206, 74, 47, 0.95), rgba(206, 74, 47, 0.25));
  left: 30px;
  top: 10px;
}

.blob-two {
  width: 210px;
  height: 190px;
  background: linear-gradient(160deg, rgba(54, 87, 132, 0.95), rgba(54, 87, 132, 0.22));
  right: 10px;
  top: 70px;
  animation-delay: 0.8s;
}

.blob-three {
  width: 250px;
  height: 160px;
  background: linear-gradient(160deg, rgba(182, 79, 146, 0.95), rgba(182, 79, 146, 0.2));
  left: 90px;
  bottom: 0;
  animation-delay: 0.3s;
}

.services {
  padding: 1rem 0 4rem;
}

.card-grid {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  gap: 1rem;
}

.card {
  background: var(--card);
  border: 1px solid rgba(31, 35, 48, 0.07);
  border-radius: var(--radius);
  padding: 1.2rem;
  box-shadow: var(--shadow);
}

.process {
  padding: 1rem 0 4rem;
}

.process ol {
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  gap: 0.95rem 1.6rem;
  padding-left: 1.2rem;
}

.contact {
  padding: 1rem 0 4.4rem;
}

.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.4rem;
  align-items: start;
}

.contact-form,
.portal-card form {
  display: grid;
  gap: 0.8rem;
}

label {
  display: grid;
  gap: 0.35rem;
  font-weight: 500;
}

input,
textarea {
  padding: 0.72rem;
  border-radius: 12px;
  border: 1px solid rgba(31, 35, 48, 0.18);
  font: inherit;
  background: #fff;
}

.site-footer {
  border-top: 1px solid rgba(31, 35, 48, 0.12);
  background: rgba(255, 255, 255, 0.6);
}

.footer-wrap {
  min-height: 70px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.portal-page {
  padding: 3.2rem 0 4.3rem;
}

.portal-layout {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 1.4rem;
}

.portal-card {
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid rgba(31, 35, 48, 0.08);
  box-shadow: var(--shadow);
  padding: 1.2rem;
}

.form-note,
.small-text {
  color: #4f566a;
  font-size: 0.92rem;
}

.alert-error {
  margin: 0.5rem 0 0.9rem;
  padding: 0.7rem 0.8rem;
  border-radius: 10px;
  border: 1px solid rgba(185, 30, 44, 0.35);
  background: #fff2f3;
  color: #8a1c2b;
  font-size: 0.93rem;
}

.dashboard-card h1 {
  margin-bottom: 0.4rem;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal.show {
  opacity: 1;
  transform: translateY(0);
}

@keyframes drift {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-8px);
  }
}

@media (max-width: 900px) {
  .menu-btn {
    display: inline-flex;
    border: 1px solid rgba(31, 35, 48, 0.2);
    border-radius: 999px;
    background: #fff;
    padding: 0.45rem 0.8rem;
    font: inherit;
    font-weight: 700;
  }

  .nav-links {
    position: absolute;
    right: 4%;
    top: 74px;
    background: #fff;
    border: 1px solid rgba(31, 35, 48, 0.15);
    border-radius: 14px;
    padding: 0.8rem;
    display: none;
    flex-direction: column;
    box-shadow: var(--shadow);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-static {
    position: static;
    display: flex;
    border: 0;
    box-shadow: none;
    padding: 0;
    background: transparent;
  }

  .hero,
  .contact-wrap,
  .portal-layout {
    grid-template-columns: 1fr;
  }

  .card-grid,
  .process ol {
    grid-template-columns: 1fr;
  }

  .hero-art {
    min-height: 260px;
  }
}
