/* ==========================================================================
   NoorLabs — single-page site
   ========================================================================== */

/* Fonts
   -------------------------------------------------------------------------- */
@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url("../assets/fonts/poppins-300.woff2") format("woff2");
}
@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../assets/fonts/poppins-400.woff2") format("woff2");
}
@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../assets/fonts/poppins-500.woff2") format("woff2");
}
@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../assets/fonts/poppins-600.woff2") format("woff2");
}

/* Tokens
   -------------------------------------------------------------------------- */
:root {
  --blue: #0088ff;
  --blue-dark: #006fd6;
  --navy: #00092a;
  --ink: #1a1a1a;
  --text: #333333;
  --text-2: #666666;
  --line: #dadee7;
  --tint: #edeff3;
  --tint-blue: #eaf6ff;
  --white: #ffffff;
  --error: #d0342c;
  --font-sans: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  --container: 1280px;
  --pad-x: clamp(20px, 5vw, 48px);
  --sect-y: clamp(56px, 9vw, 120px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

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

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

a {
  color: var(--blue);
  text-decoration: none;
}

button {
  font: inherit;
  cursor: pointer;
}

/* Shared patterns
   -------------------------------------------------------------------------- */
.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--pad-x);
}

.section {
  padding-block: var(--sect-y);
}

.eyebrow {
  display: block;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.section-intro {
  max-width: 640px;
  margin-top: 24px;
  font-size: 17px;
  color: var(--text-2);
}

.btn {
  display: inline-block;
  background: var(--blue);
  color: var(--white);
  font-size: 16px;
  font-weight: 500;
  line-height: 1;
  padding: 16px 34px;
  border: 0;
  border-radius: 999px;
  transition: background 0.3s var(--ease), transform 0.3s var(--ease),
    box-shadow 0.3s var(--ease);
}

.btn:hover {
  background: var(--blue-dark);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0, 136, 255, 0.3);
}

.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 500;
  color: var(--blue);
}

.arrow-link .arrow {
  transition: transform 0.3s var(--ease);
}

.arrow-link:hover .arrow {
  transform: translateX(4px);
}

/* Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  color: var(--white);
}

.hero-slides {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1);
  transition: opacity 1.2s var(--ease), transform 1.2s var(--ease);
}

.hero-slide.is-active {
  opacity: 1;
  animation: kenburns 7s var(--ease) forwards;
}

@keyframes kenburns {
  from { transform: scale(1); }
  to   { transform: scale(1.08); }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 9, 42, 0.55) 0%,
    rgba(0, 9, 42, 0.35) 50%,
    rgba(0, 9, 42, 0.65) 100%
  );
}

.hero-topbar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 2;
  padding-block: 24px;
}

.hero-topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.wordmark {
  font-size: 22px;
  font-weight: 300;
  letter-spacing: 0.02em;
  color: var(--white);
}

.wordmark strong {
  font-weight: 600;
}

.btn-topbar {
  padding: 12px 26px;
  font-size: 14px;
}

.hero-content {
  position: relative;
  z-index: 1;
  width: 100%;
  padding-block: 120px;
}

.hero-eyebrow {
  color: rgba(255, 255, 255, 0.85);
}

.hero-title {
  font-size: clamp(40px, 7vw, 84px);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--white);
  max-width: 16em;
}

.hero-subline {
  margin-top: 28px;
  max-width: 540px;
  font-size: clamp(16px, 2vw, 19px);
  color: rgba(255, 255, 255, 0.85);
}

.hero-cta {
  margin-top: 40px;
}

.hero-controls {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 36px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.hero-dots {
  display: flex;
  gap: 10px;
}

.hero-dot {
  width: 34px;
  height: 24px;
  padding: 10px 0;
  border: 0;
  background: transparent;
}

.hero-dot::after {
  content: "";
  display: block;
  height: 4px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.35);
  transition: background 0.3s var(--ease);
}

.hero-dot.is-active::after {
  background: var(--white);
}

.hero-arrows {
  display: flex;
  gap: 12px;
}

.hero-arrow {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  background: transparent;
  color: var(--white);
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease),
    color 0.3s var(--ease);
}

.hero-arrow:hover {
  background: var(--white);
  border-color: var(--white);
  color: var(--navy);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .hero-slide.is-active {
    animation: none;
  }
  .hero-slide {
    transition-duration: 0.3s;
  }
}

/* About
   -------------------------------------------------------------------------- */
.about-cols {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(32px, 5vw, 80px);
  margin-top: 48px;
}

.about-main .lede {
  font-size: clamp(18px, 2.2vw, 22px);
  font-weight: 400;
  color: var(--ink);
  border-left: 3px solid var(--blue);
  padding-left: 24px;
  margin-bottom: 24px;
}

.about-main p:not(.lede) {
  color: var(--text-2);
}

.about-side {
  display: flex;
  flex-direction: column;
  gap: 24px;
  justify-content: flex-start;
  color: var(--text-2);
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: clamp(40px, 6vw, 72px);
}

.stat-card {
  border: 1px solid var(--line);
  background: var(--white);
  padding: 32px;
}

.stat-number {
  display: block;
  font-size: clamp(36px, 4vw, 48px);
  font-weight: 300;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1.15;
}

.stat-label {
  display: block;
  margin-top: 8px;
  font-size: 14px;
  color: var(--text-2);
}

/* Business
   -------------------------------------------------------------------------- */
.section-tint {
  background: var(--tint);
}

.biz-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: clamp(40px, 6vw, 64px);
}

.biz-card {
  background: var(--white);
  border: 1px solid var(--line);
  padding: clamp(28px, 3.5vw, 40px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.biz-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(0, 9, 42, 0.1);
}

.biz-icon {
  color: var(--blue);
}

.biz-title {
  font-size: 20px;
  font-weight: 500;
  color: var(--ink);
}

.biz-copy {
  font-size: 15px;
  color: var(--text-2);
  flex-grow: 1;
}

@media (max-width: 900px) {
  .about-cols {
    grid-template-columns: 1fr;
  }
  .stats {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

@media (max-width: 700px) {
  .biz-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

/* Contact
   -------------------------------------------------------------------------- */
.section-contact {
  background: var(--tint-blue);
}

.form-card {
  max-width: 760px;
  margin-top: clamp(40px, 6vw, 56px);
  background: var(--white);
  border: 1px solid var(--line);
  padding: clamp(24px, 5vw, 48px);
}

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

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field-full {
  grid-column: 1 / -1;
}

.field label {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
}

.field label span {
  color: var(--blue);
}

.field input,
.field textarea {
  font: inherit;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 13px 14px;
  background: var(--white);
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.field textarea {
  resize: vertical;
  min-height: 120px;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(0, 136, 255, 0.15);
}

.field input.is-invalid,
.field textarea.is-invalid {
  border-color: var(--error);
}

.field-error {
  font-size: 13px;
  color: var(--error);
  min-height: 1em;
}

.form-submit {
  margin-top: 28px;
}

.form-success {
  text-align: center;
  padding: clamp(24px, 5vw, 48px) 0;
  color: var(--ink);
}

.form-success svg {
  color: var(--blue);
  margin: 0 auto 20px;
  display: block;
}

.form-success h3 {
  font-size: 22px;
  font-weight: 500;
}

.form-success p {
  margin-top: 8px;
  color: var(--text-2);
}

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

/* Footer
   -------------------------------------------------------------------------- */
.footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.7);
  padding-block: clamp(48px, 7vw, 80px) 32px;
  font-size: 15px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: clamp(32px, 5vw, 64px);
}

.footer-brand p {
  margin-top: 16px;
  max-width: 320px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col h3 {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 6px;
}

.footer-col a {
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.25s var(--ease);
}

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

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: clamp(40px, 6vw, 64px);
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 13px;
}

.footer-social {
  display: flex;
  gap: 12px;
}

.footer-social a {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.8);
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease),
    color 0.25s var(--ease);
}

.footer-social a:hover {
  background: var(--blue);
  border-color: var(--blue);
  color: var(--white);
}

@media (max-width: 800px) {
  .footer-top {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

/* Scroll reveal
   -------------------------------------------------------------------------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

[data-reveal-delay="1"] { transition-delay: 0.1s; }
[data-reveal-delay="2"] { transition-delay: 0.2s; }
[data-reveal-delay="3"] { transition-delay: 0.3s; }

.is-revealed {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* Client portal
   -------------------------------------------------------------------------- */
.section-portal {
  background: var(--navy);
}

.portal-eyebrow {
  color: var(--blue);
}

.portal-title {
  color: var(--white);
}

.portal-intro {
  color: rgba(255, 255, 255, 0.7);
}

.portal-open {
  margin-top: 36px;
}

.portal-dialog {
  width: min(92vw, 440px);
  border: 0;
  border-radius: 8px;
  padding: 0;
  box-shadow: 0 24px 64px rgba(0, 9, 42, 0.35);
}

.portal-dialog::backdrop {
  background: rgba(0, 9, 42, 0.65);
  backdrop-filter: blur(3px);
}

.portal-form {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: clamp(28px, 6vw, 40px);
}

.portal-form h3 {
  font-size: 24px;
  font-weight: 500;
  color: var(--ink);
}

.portal-form p {
  font-size: 15px;
  color: var(--text-2);
}

.portal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--text-2);
  transition: background 0.25s var(--ease), color 0.25s var(--ease);
}

.portal-close:hover {
  background: var(--tint);
  color: var(--ink);
}

.portal-input {
  font: inherit;
  letter-spacing: 0.08em;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 13px 14px;
  margin-top: 8px;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.portal-input:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(0, 136, 255, 0.15);
}

.portal-input.is-invalid {
  border-color: var(--error);
}

.portal-error {
  font-size: 13px;
  color: var(--error);
  min-height: 1.2em;
}

.portal-submit {
  align-self: flex-start;
}

.portal-form.shake {
  animation: portal-shake 0.4s var(--ease);
}

@keyframes portal-shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-8px); }
  40% { transform: translateX(8px); }
  60% { transform: translateX(-5px); }
  80% { transform: translateX(5px); }
}

@media (prefers-reduced-motion: reduce) {
  .portal-form.shake {
    animation: none;
  }
}
