/* ============================================================
   Active Iterations — Stylesheet
   Active Iterations site styles
   ============================================================ */

/* --- Custom Properties ------------------------------------ */
:root {
  /* Brand */
  --navy:         #1C3557;
  --navy-dark:    #112240;
  --navy-mid:     #254A76;
  --teal:         #28B4B0;
  --teal-dark:    #1E9996;
  --teal-light:   #4DCFCB;

  /* Neutrals */
  --white:        #FFFFFF;
  --off-white:    #F4F7FA;
  --grey-light:   #E6ECF2;
  --grey:         #98AABB;
  --grey-mid:     #6B7F90;
  --text:         #1A2B38;
  --text-muted:   #48627A;

  /* Layout */
  --container:    1200px;
  --section-pad:  clamp(4rem, 8vw, 7rem);
  --radius:       8px;
  --radius-lg:    14px;

  /* Typography */
  --font:         'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;

  /* Motion */
  --ease:         cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --dur:          0.3s;
}

/* --- Reset ------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a   { color: var(--teal-dark); text-decoration: none; transition: color var(--dur) var(--ease); }
a:hover { color: var(--teal); }
ul  { list-style: none; }

/* --- Typography ------------------------------------------- */
h1, h2, h3 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--navy-dark);
}
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.05rem, 1.8vw, 1.3rem); }
p  { max-width: 65ch; }
p + p { margin-top: 1rem; }

/* --- Utilities -------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 2rem);
}

.section { padding: var(--section-pad) 0; }

.section-label {
  display: inline-block;
  color: var(--teal-dark);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.section-header { margin-bottom: 3rem; }
.section-header h2 { margin-bottom: 0.75rem; }
.section-intro { color: var(--text-muted); font-size: 1.1rem; }

/* --- Buttons ---------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--dur) var(--ease);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--teal);
  color: var(--white);
  border-color: var(--teal);
}
.btn-primary:hover {
  background: var(--teal-dark);
  border-color: var(--teal-dark);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(40, 180, 176, 0.35);
}

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

.btn-full { width: 100%; }

/* --- Navigation ------------------------------------------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1.1rem 0;
  background: var(--white);
  box-shadow: 0 1px 0 var(--grey-light);
  transition: padding  var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease);
}

.site-header.scrolled {
  padding: 0.65rem 0;
  box-shadow: 0 2px 16px rgba(28, 53, 87, 0.12);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 2rem);
}

.nav-logo img {
  height: 40px;
  width: auto;
}

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

.nav-links a {
  color: var(--navy);
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
  padding-bottom: 2px;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--teal);
  border-radius: 2px;
  transition: width var(--dur) var(--ease);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--navy-dark);
}

.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }

.nav-cta {
  background: var(--teal) !important;
  color: var(--white) !important;
  padding: 0.5rem 1.25rem !important;
  border-radius: var(--radius);
}
.nav-cta::after { display: none !important; }
.nav-cta:hover { background: var(--teal-dark) !important; }

/* Hamburger toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* --- Hero ------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100svh;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--navy-dark);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('../assets/images/hero.svg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(9, 24, 41, 0.88) 0%,
    rgba(17, 34, 64, 0.70) 50%,
    rgba(9, 24, 41, 0.86) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 9rem clamp(1rem, 4vw, 2rem) 5rem;
}

.hero-text { max-width: 680px; }

.hero-tagline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--teal-light);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
  padding: 0.3rem 0.9rem;
  border: 1px solid var(--teal);
  border-radius: 100px;
}

.hero h1 {
  color: var(--white);
  margin-bottom: 1.25rem;
  letter-spacing: -0.02em;
}

.hero p {
  color: rgba(255, 255, 255, 0.72);
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  margin-bottom: 2rem;
  max-width: 52ch;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Scroll indicator */
.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  z-index: 1;
  color: rgba(255, 255, 255, 0.38);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.scroll-mouse {
  width: 18px;
  height: 28px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 9px;
  position: relative;
}

.scroll-dot {
  position: absolute;
  top: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  height: 6px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 3px;
  animation: scrollBounce 1.8s ease-in-out infinite;
}

@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); opacity: 1; }
  75%       { transform: translateX(-50%) translateY(10px); opacity: 0; }
}

/* --- About ------------------------------------------------ */
.about { background: var(--white); }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.about-intro .lead {
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  color: var(--navy);
  font-weight: 500;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.about-values {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.value-card {
  padding: 1.5rem;
  border: 1px solid var(--grey-light);
  border-radius: var(--radius-lg);
  transition: box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.value-card:hover {
  border-color: var(--teal-light);
  box-shadow: 0 4px 20px rgba(40, 180, 176, 0.1);
}

.value-icon {
  width: 36px;
  height: 36px;
  color: var(--teal-dark);
  margin-bottom: 0.75rem;
}
.value-icon svg { width: 100%; height: 100%; }

.value-card h3 {
  font-size: 1rem;
  color: var(--navy);
  margin-bottom: 0.45rem;
}

.value-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  max-width: none;
  line-height: 1.6;
}

/* --- Solutions -------------------------------------------- */
.solutions { background: var(--off-white); }

.solutions-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.solution-card {
  background: var(--white);
  border: 1px solid var(--grey-light);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: box-shadow var(--dur) var(--ease);
}

.solution-card:hover {
  box-shadow: 0 8px 32px rgba(28, 53, 87, 0.1);
}

/* Featured card spans full width */
.solution-featured {
  grid-column: 1 / -1;
  border-color: var(--teal);
  border-width: 2px;
  position: relative;
  overflow: hidden;
}

.solution-featured::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--teal), var(--navy-mid));
}

.solution-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.solution-icon { width: 44px; height: 44px; color: var(--teal-dark); }
.solution-icon svg { width: 100%; height: 100%; }

.solution-tag {
  background: var(--teal);
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.25rem 0.75rem;
  border-radius: 100px;
}

.solution-card h3 {
  color: var(--navy-dark);
  margin-bottom: 0.75rem;
}

.solution-card p {
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.solution-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem 2rem;
  margin-bottom: 1.75rem;
}

.solution-features li {
  font-size: 0.88rem;
  color: var(--text-muted);
  padding-left: 1.2rem;
  position: relative;
  line-height: 1.5;
}

.solution-features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teal);
  flex-shrink: 0;
}

.solution-actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.solution-link {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--teal-dark);
}

.solution-secondary {
  display: flex;
  flex-direction: column;
}

.solution-secondary .solution-icon { margin-bottom: 1rem; }

.coming-badge {
  display: inline-block;
  margin-top: auto;
  color: var(--grey-mid);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding-top: 1rem;
}

/* --- Contact ---------------------------------------------- */
.contact { background: var(--navy-dark); }

.contact .section-label { color: var(--teal-light); }
.contact h2 { color: var(--white); }

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 4rem;
  align-items: start;
}

.contact-content p {
  color: rgba(255, 255, 255, 0.68);
  margin: 1rem 0 2rem;
}

.contact-details {
  font-style: normal;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.95rem;
}

.contact-item svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--teal);
}

.contact-item a { color: rgba(255, 255, 255, 0.72); }
.contact-item a:hover { color: var(--teal-light); }

/* Form */
.contact-form {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group label {
  font-size: 0.83rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.78);
  letter-spacing: 0.02em;
}

.required { color: var(--teal-light); }

.form-group input,
.form-group textarea {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  padding: 0.7rem 1rem;
  color: var(--white);
  font-family: var(--font);
  font-size: 0.95rem;
  width: 100%;
  outline: none;
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}

.form-group input::placeholder,
.form-group textarea::placeholder { color: rgba(255, 255, 255, 0.28); }

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--teal);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 0 3px rgba(40, 180, 176, 0.15);
}

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

.form-notice {
  font-size: 0.76rem;
  color: rgba(255, 255, 255, 0.36);
  text-align: center;
  max-width: none;
}

/* Form success state */
.form-success {
  display: none;
  text-align: center;
  padding: 2rem;
}

.form-success.visible { display: block; }

.form-success svg {
  width: 48px;
  height: 48px;
  color: var(--teal);
  margin: 0 auto 1rem;
}

.form-success h3 { color: var(--white); margin-bottom: 0.5rem; }
.form-success p  { color: rgba(255, 255, 255, 0.6); max-width: none; }

/* --- Footer ----------------------------------------------- */
.site-footer {
  background: var(--navy-dark);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 2.5rem 0;
}

.footer-main {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 2rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.footer-wordmark {
  display: block;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.38);
  font-size: 0.83rem;
  max-width: none;
}

.footer-nav ul {
  display: flex;
  gap: 2rem;
}

.footer-nav a {
  color: rgba(255, 255, 255, 0.48);
  font-size: 0.9rem;
  transition: color var(--dur) var(--ease);
}
.footer-nav a:hover { color: var(--teal-light); }

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

.footer-bottom p {
  color: rgba(255, 255, 255, 0.28);
  font-size: 0.78rem;
  max-width: none;
}

/* --- Scroll Reveal ---------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.65s var(--ease), transform 0.65s var(--ease);
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

/* Stagger children in value / solution grids */
.about-values .reveal:nth-child(2) { transition-delay: 0.1s; }
.about-values .reveal:nth-child(3) { transition-delay: 0.2s; }
.about-values .reveal:nth-child(4) { transition-delay: 0.3s; }

.solutions-grid .reveal:nth-child(2) { transition-delay: 0.1s; }
.solutions-grid .reveal:nth-child(3) { transition-delay: 0.2s; }

/* --- Responsive ------------------------------------------- */
@media (max-width: 900px) {
  .about-grid        { grid-template-columns: 1fr; gap: 2.5rem; }
  .solutions-grid    { grid-template-columns: 1fr; }
  .solution-featured { grid-column: auto; }
  .solution-features { grid-template-columns: 1fr; }
  .contact-layout    { grid-template-columns: 1fr; gap: 2.5rem; }
}

@media (max-width: 680px) {
  /* Mobile nav */
  .nav-toggle { display: flex; }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--white);
    padding: 0.75rem 1rem 1.25rem;
    gap: 0;
    border-top: 1px solid var(--grey-light);
    box-shadow: 0 8px 24px rgba(28, 53, 87, 0.12);
  }

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

  .nav-links li { width: 100%; }

  .nav-links a {
    display: block;
    padding: 0.8rem 0.5rem;
    border-bottom: 1px solid var(--grey-light);
    color: var(--navy);
  }

  .nav-links a::after { display: none; }

  .nav-cta {
    display: block;
    text-align: center;
    margin-top: 0.5rem;
    padding: 0.75rem;
  }

  /* Hero */
  .hero-bg { background-attachment: scroll; }
  .hero-actions { flex-direction: column; }

  /* Cards */
  .about-values { grid-template-columns: 1fr; }
  .form-row     { grid-template-columns: 1fr; }

  /* Footer */
  .footer-main   { flex-direction: column; align-items: flex-start; gap: 1.5rem; }
  .footer-bottom { flex-direction: column; }
}

@media (max-width: 420px) {
  .hero h1 { font-size: 1.9rem; }
}

/* --- Maintenance Screen ----------------------------------- */
.maintenance-screen {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--white);
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
}

.maintenance-screen.active {
  display: flex;
}

.maintenance-content {
  max-width: 520px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.maintenance-logo {
  width: 200px;
  height: auto;
  margin-bottom: 2.5rem;
}

.maintenance-title {
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  color: var(--navy);
  font-weight: 700;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.maintenance-body {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 2rem;
}

.maintenance-contact {
  color: var(--grey-mid);
  font-size: 0.9rem;
}

.maintenance-contact a {
  color: var(--teal);
  text-decoration: none;
  font-weight: 500;
  display: block;
  margin-top: 0.4rem;
  font-size: 1rem;
}

.maintenance-contact a:hover {
  color: var(--teal-dark);
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}
