/* Allern — shared site styles */

:root {
  /* Sampled from the Allern logo's blue-to-navy wordmark gradient */
  --primary: #2578a2;
  --primary-dark: #1b3a56;
  --primary-light: #6fb6d6;
  /* Sampled from the logo's red play-mark / "ACTIVE" text */
  --accent: #e40000;
  --accent-dark: #a80000;
  --ink: #161c24;
  --ink-soft: #454f5b;
  --muted: #637381;
  --line: #dfe3e8;
  --bg: #ffffff;
  --bg-soft: #f4f6f8;
  --bg-alt: #f9fafb;
  --radius: 16px;
  --shadow: 0 8px 24px rgba(22, 28, 36, 0.08);
  --shadow-lg: 0 20px 48px rgba(37, 120, 162, 0.2);
  --container: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

section {
  padding: 88px 0;
}

.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
  background: rgba(37, 120, 162, 0.08);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}

h1, h2, h3, h4 {
  line-height: 1.2;
  margin: 0 0 16px;
  font-weight: 800;
}

h1 {
  font-size: clamp(2.1rem, 4vw, 3.4rem);
}

h2 {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
}

h3 {
  font-size: 1.2rem;
}

p {
  margin: 0 0 16px;
  color: var(--ink-soft);
}

.lead {
  font-size: 1.15rem;
  color: var(--ink-soft);
  max-width: 560px;
}

.section-head {
  max-width: 640px;
  margin: 0 auto 56px;
  text-align: center;
}

.section-head.left {
  margin: 0 0 48px;
  text-align: left;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.98rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 12px 24px rgba(37, 120, 162, 0.28);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(37, 120, 162, 0.34);
}

.btn-accent {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 12px 24px rgba(228, 0, 0, 0.32);
}

.btn-accent:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(228, 0, 0, 0.4);
}

.btn-ghost {
  background: transparent;
  color: var(--primary);
  border-color: var(--line);
}

.btn-ghost:hover {
  border-color: var(--primary);
  background: rgba(37, 120, 162, 0.06);
}

.btn-block {
  width: 100%;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--ink);
}

.brand-logo {
  height: 34px;
  width: auto;
  flex-shrink: 0;
}

.footer-grid .brand-logo {
  height: 30px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-links a {
  font-weight: 600;
  color: var(--ink-soft);
  font-size: 0.96rem;
  transition: color 0.15s ease;
}

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

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
}

/* Hero */
.hero {
  padding: 72px 0 100px;
  background: radial-gradient(circle at 85% 0%, rgba(37, 120, 162, 0.08), transparent 55%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}

.hero-cta {
  display: flex;
  gap: 14px;
  margin-top: 32px;
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  gap: 32px;
  margin-top: 48px;
  flex-wrap: wrap;
}

.hero-stats .stat b {
  display: block;
  font-size: 1.6rem;
  color: var(--primary);
  font-weight: 800;
}

.hero-stats .stat span {
  font-size: 0.85rem;
  color: var(--muted);
}

.hero-art {
  position: relative;
  border-radius: 28px;
  background: linear-gradient(160deg, var(--primary) 0%, var(--primary-dark) 100%);
  padding: 40px;
  box-shadow: var(--shadow-lg);
  color: #fff;
  overflow: hidden;
}

.hero-art::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 120%, rgba(228, 0, 0, 0.35), transparent 55%);
}

.hero-art-card {
  position: relative;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 18px;
  padding: 20px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 14px;
  backdrop-filter: blur(4px);
}

.hero-art-card:last-child {
  margin-bottom: 0;
}

.hero-art-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--accent);
  color: #161c24;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  flex-shrink: 0;
}

.hero-art-card h4 {
  margin: 0 0 4px;
  font-size: 0.98rem;
}

.hero-art-card p {
  margin: 0;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.78);
}

/* Logos strip */
.logo-strip {
  padding: 40px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.logo-strip p {
  text-align: center;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 24px;
}

.logo-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  color: var(--muted);
  font-weight: 700;
  font-size: 1.05rem;
  opacity: 0.7;
}

/* Feature grid */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: transparent;
}

.card-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 20px;
  background: rgba(37, 120, 162, 0.1);
}

.card p {
  margin-bottom: 0;
  font-size: 0.96rem;
}

.bg-soft {
  background: var(--bg-soft);
}

/* How it works */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  counter-reset: step;
}

.step {
  position: relative;
  padding: 28px 22px;
}

.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  display: block;
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--primary-light);
  margin-bottom: 12px;
}

.step h4 {
  margin-bottom: 8px;
  font-size: 1.05rem;
}

.step p {
  font-size: 0.92rem;
  margin: 0;
}

/* Testimonial */
.testimonial {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  border-radius: 28px;
  color: #fff;
  padding: 56px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.testimonial blockquote {
  margin: 0 0 20px;
  font-size: 1.35rem;
  font-weight: 600;
  line-height: 1.5;
}

.testimonial cite {
  font-style: normal;
  font-weight: 700;
  display: block;
}

.testimonial cite span {
  display: block;
  font-weight: 400;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.75);
  margin-top: 2px;
}

.testimonial-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.testimonial-stats .stat {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  padding: 20px;
  text-align: center;
}

.testimonial-stats .stat b {
  display: block;
  font-size: 1.6rem;
}

.testimonial-stats .stat span {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.75);
}

/* CTA band */
.cta-band {
  background: var(--bg-soft);
  border-radius: 28px;
  padding: 64px;
  text-align: center;
}

.cta-band .btn-row {
  display: flex;
  gap: 14px;
  justify-content: center;
  margin-top: 28px;
  flex-wrap: wrap;
}

/* Footer */
.site-footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.7);
  padding: 64px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-grid .brand {
  color: #fff;
  margin-bottom: 14px;
}

.footer-grid p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.92rem;
  max-width: 280px;
}

.footer-grid h4 {
  color: #fff;
  font-size: 0.95rem;
  margin-bottom: 18px;
}

.footer-grid li {
  margin-bottom: 12px;
}

.footer-grid a {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.92rem;
  transition: color 0.15s ease;
}

.footer-grid a:hover {
  color: #fff;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  font-size: 0.85rem;
  flex-wrap: wrap;
  gap: 12px;
}

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

.social-row a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
}

.social-row a:hover {
  background: var(--primary);
}

/* Page header (contact) */
.page-header {
  padding: 64px 0 40px;
  text-align: center;
  background: radial-gradient(circle at 50% 0%, rgba(37, 120, 162, 0.08), transparent 60%);
}

.breadcrumb {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 12px;
}

.breadcrumb a {
  color: var(--primary);
  font-weight: 600;
}

/* Contact page */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
  align-items: flex-start;
}

.contact-info-card {
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius);
  padding: 36px;
}

.contact-info-card h3 {
  color: #fff;
}

.contact-info-item {
  display: flex;
  gap: 14px;
  padding: 16px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.contact-info-item:first-of-type {
  border-top: none;
  padding-top: 24px;
}

.contact-info-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-info-item h4 {
  margin: 0 0 4px;
  font-size: 0.95rem;
  color: #fff;
}

.contact-info-item p,
.contact-info-item a {
  margin: 0;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.72);
}

.contact-form-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow);
}

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

.field {
  margin-bottom: 20px;
}

.field label {
  display: block;
  font-size: 0.86rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--ink);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--ink);
  background: var(--bg-alt);
  transition: border-color 0.15s ease, background 0.15s ease;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--primary);
  background: #fff;
}

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

.field small.error {
  display: none;
  color: #b72136;
  font-size: 0.8rem;
  margin-top: 6px;
}

.field.invalid input,
.field.invalid textarea,
.field.invalid select {
  border-color: #ff4842;
  background: #fff5f5;
}

.field.invalid small.error {
  display: block;
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.form-note {
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: 14px;
}

.form-success {
  display: none;
  align-items: flex-start;
  gap: 14px;
  background: rgba(84, 214, 44, 0.1);
  border: 1px solid rgba(84, 214, 44, 0.35);
  color: #1b7a12;
  padding: 18px 20px;
  border-radius: 12px;
  margin-bottom: 24px;
  font-size: 0.92rem;
}

.form-success.show {
  display: flex;
}

.form-error {
  display: none;
  background: rgba(255, 72, 66, 0.08);
  border: 1px solid rgba(255, 72, 66, 0.32);
  color: #b72136;
  padding: 14px 18px;
  border-radius: 12px;
  margin-bottom: 24px;
  font-size: 0.9rem;
}

.form-error.show {
  display: block;
}

.form-error a {
  color: inherit;
  font-weight: 700;
  text-decoration: underline;
}

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

.faq-item {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 24px 28px;
  background: var(--bg-alt);
}

.faq-item h4 {
  margin-bottom: 8px;
  font-size: 1rem;
}

.faq-item p {
  margin: 0;
  font-size: 0.92rem;
}

.map-embed {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  height: 320px;
  background: var(--bg-soft) url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="120" height="120"><path d="M60 20a26 26 0 0 0-26 26c0 19 26 54 26 54s26-35 26-54A26 26 0 0 0 60 20Zm0 36a10 10 0 1 1 0-20 10 10 0 0 1 0 20Z" fill="%232065D1" opacity="0.18"/></svg>') center/72px no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
  padding: 24px;
}

/* Utilities */
.mt-64 { margin-top: 64px; }
.text-center { text-align: center; }

/* Responsive */
@media (max-width: 960px) {
  .hero-grid,
  .contact-grid,
  .testimonial {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

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

@media (max-width: 720px) {
  section {
    padding: 64px 0;
  }

  .nav-links,
  .nav-actions .btn-ghost {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .nav.open .nav-links {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: #fff;
    padding: 20px 24px;
    gap: 18px;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
  }

  .grid-3,
  .steps,
  .faq-grid,
  .footer-grid,
  .form-row {
    grid-template-columns: 1fr;
  }

  .testimonial,
  .cta-band {
    padding: 32px;
  }

  .hero-stats {
    gap: 24px;
  }
}
