/* ==========================================================================
   MatchTechno — base styles
   ========================================================================== */

:root {
  --color-navy: #0b1f3a;
  --color-navy-light: #142c52;
  --color-teal: #14b8a6;
  --color-teal-dark: #0d9488;
  --color-bg: #f7f9fc;
  --color-white: #ffffff;
  --color-text: #1c2733;
  --color-text-muted: #5b6b7c;
  --color-border: #e2e8f0;

  --font-base: "Segoe UI", Inter, system-ui, -apple-system, sans-serif;

  --max-width: 1160px;
  --radius: 10px;
  --shadow: 0 4px 16px rgba(11, 31, 58, 0.08);
  --shadow-lg: 0 12px 32px rgba(11, 31, 58, 0.12);

  --transition: 0.2s ease;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-base);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

ul {
  list-style: none;
}

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

section {
  padding: 88px 0;
}

h1, h2, h3, h4 {
  line-height: 1.2;
  font-weight: 700;
  color: var(--color-navy);
}

h1 { font-size: clamp(2.1rem, 4vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); }
h3 { font-size: 1.25rem; }

p { color: var(--color-text-muted); }

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-teal-dark);
  margin-bottom: 12px;
}

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

.section-head p {
  margin-top: 12px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform var(--transition), background var(--transition), border-color var(--transition), color var(--transition);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--color-teal);
  color: var(--color-white);
}

.btn-primary:hover {
  background: var(--color-teal-dark);
}

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

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.12);
}

.btn-dark {
  border-color: var(--color-navy);
  color: var(--color-navy);
  background: transparent;
}

.btn-dark:hover {
  background: var(--color-navy);
  color: var(--color-white);
}

/* ==========================================================================
   Header / Nav
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 249, 252, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-border);
}

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

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

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--color-teal), var(--color-navy));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  font-weight: 800;
  font-size: 1rem;
}

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

.nav-links a {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--color-text);
  position: relative;
  padding: 4px 0;
  transition: color var(--transition);
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--color-teal-dark);
}

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

.nav-actions .btn {
  padding: 10px 22px;
}

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

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--color-navy);
  transition: transform var(--transition), opacity var(--transition);
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  background: linear-gradient(160deg, var(--color-navy) 0%, var(--color-navy-light) 55%, #0f2a4c 100%);
  color: var(--color-white);
  padding: 110px 0 100px;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 82% 20%, rgba(20, 184, 166, 0.25), transparent 55%);
  pointer-events: none;
}

.hero .container {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.hero-eyebrow {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(20, 184, 166, 0.16);
  border: 1px solid rgba(20, 184, 166, 0.4);
  color: #5eead4;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 20px;
}

.hero h1 {
  color: var(--color-white);
  margin-bottom: 20px;
}

.hero h1 span {
  color: var(--color-teal);
}

.hero p {
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.05rem;
  max-width: 480px;
  margin-bottom: 32px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

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

.hero-stats div {
  display: flex;
  flex-direction: column;
}

.hero-stats strong {
  font-size: 1.9rem;
  color: var(--color-white);
}

.hero-stats span {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.65);
}

.hero-panel {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  padding: 32px;
  backdrop-filter: blur(6px);
}

.hero-panel-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-panel-row:last-child {
  border-bottom: none;
}

.hero-panel-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 8px;
  background: rgba(20, 184, 166, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.hero-panel-row h4 {
  color: var(--color-white);
  font-size: 0.98rem;
  margin-bottom: 4px;
}

.hero-panel-row p {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.88rem;
  margin: 0;
}

/* ==========================================================================
   Logo strip
   ========================================================================== */

.logo-strip {
  padding: 40px 0;
  border-bottom: 1px solid var(--color-border);
}

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

.logo-strip-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.logo-strip-row span {
  font-weight: 700;
  font-size: 1.1rem;
  color: #a7b3c2;
  letter-spacing: 0.02em;
}

/* ==========================================================================
   Cards / Grids
   ========================================================================== */

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

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

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

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

.card-icon {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--color-teal), #0891b2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 20px;
  color: var(--color-white);
}

.card h3 {
  margin-bottom: 10px;
}

.card p {
  font-size: 0.94rem;
}

.card ul {
  margin-top: 16px;
}

.card ul li {
  font-size: 0.88rem;
  color: var(--color-text-muted);
  padding: 5px 0 5px 22px;
  position: relative;
}

.card ul li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--color-teal-dark);
  font-weight: 700;
}

.section-alt {
  background: var(--color-white);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

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

.step {
  position: relative;
  padding: 28px 20px 20px;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
}

.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--color-teal-dark);
  background: rgba(20, 184, 166, 0.12);
  padding: 4px 10px;
  border-radius: 6px;
  margin-bottom: 14px;
}

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

.step p {
  font-size: 0.9rem;
}

/* Values / about page */
.about-hero {
  background: var(--color-navy);
  color: var(--color-white);
  padding: 72px 0;
  text-align: center;
}

.about-hero p {
  max-width: 620px;
  margin: 16px auto 0;
  color: rgba(255, 255, 255, 0.75);
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.split img,
.image-block {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--color-navy), var(--color-teal-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 700;
  font-size: 1.1rem;
  text-align: center;
  padding: 24px;
}

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

.value-item {
  padding: 22px;
  border-left: 3px solid var(--color-teal);
  background: var(--color-white);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.value-item h3 {
  font-size: 1rem;
  margin-bottom: 6px;
}

.value-item p {
  font-size: 0.88rem;
}

/* Team */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.team-card {
  text-align: center;
}

.team-avatar {
  width: 100%;
  aspect-ratio: 1;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--color-navy-light), var(--color-teal-dark));
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  font-weight: 800;
  font-size: 1.6rem;
}

.team-card h3 {
  font-size: 1rem;
  margin-bottom: 2px;
}

.team-card span {
  font-size: 0.85rem;
  color: var(--color-teal-dark);
  font-weight: 600;
}

/* CTA band */
.cta-band {
  background: linear-gradient(120deg, var(--color-navy), var(--color-navy-light));
  color: var(--color-white);
  border-radius: 20px;
  padding: 56px;
  text-align: center;
  margin: 0 24px;
}

.cta-band h2 {
  color: var(--color-white);
  margin-bottom: 14px;
}

.cta-band p {
  color: rgba(255, 255, 255, 0.75);
  max-width: 520px;
  margin: 0 auto 28px;
}

.cta-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ==========================================================================
   Contact page
   ========================================================================== */

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

.contact-info-item {
  display: flex;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--color-border);
}

.contact-info-item:first-child {
  padding-top: 0;
}

.contact-info-icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 10px;
  background: rgba(20, 184, 166, 0.12);
  color: var(--color-teal-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.contact-info-item h3 {
  font-size: 0.98rem;
  margin-bottom: 4px;
}

.contact-info-item p {
  font-size: 0.9rem;
  margin: 0;
}

.contact-form {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 36px;
}

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

.field {
  margin-bottom: 20px;
}

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

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--color-text);
  background: var(--color-bg);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--color-teal);
  box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.15);
}

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

.form-note {
  font-size: 0.82rem;
  margin-top: 14px;
}

.form-status {
  margin-top: 16px;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 0.9rem;
  display: none;
}

.form-status.success {
  display: block;
  background: rgba(20, 184, 166, 0.12);
  color: var(--color-teal-dark);
  border: 1px solid rgba(20, 184, 166, 0.3);
}

.form-status.pending {
  display: block;
  background: rgba(11, 31, 58, 0.06);
  color: var(--color-navy);
  border: 1px solid rgba(11, 31, 58, 0.15);
}

.form-status.error {
  display: block;
  background: rgba(220, 38, 38, 0.1);
  color: #b91c1c;
  border: 1px solid rgba(220, 38, 38, 0.3);
}

.map-block {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--color-border);
  aspect-ratio: 16 / 6;
  background: repeating-linear-gradient(135deg, #e7edf5, #e7edf5 10px, #eef2f8 10px, #eef2f8 20px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  font-weight: 600;
  font-size: 0.9rem;
  margin-top: 48px;
}

/* FAQ */
.faq-item {
  border-bottom: 1px solid var(--color-border);
  padding: 22px 0;
}

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

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

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  background: var(--color-navy);
  color: rgba(255, 255, 255, 0.7);
  padding: 72px 0 28px;
}

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

.footer-brand .brand {
  color: var(--color-white);
  margin-bottom: 14px;
}

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

.footer-col h4 {
  color: var(--color-white);
  font-size: 0.92rem;
  margin-bottom: 18px;
}

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

.footer-col ul li a {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.65);
  transition: color var(--transition);
}

.footer-col ul li a:hover {
  color: var(--color-teal);
}

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

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

.social-links a {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  transition: background var(--transition);
}

.social-links a:hover {
  background: var(--color-teal);
}

/* ==========================================================================
   Page header (inner pages)
   ========================================================================== */

.page-header {
  background: var(--color-navy);
  color: var(--color-white);
  padding: 64px 0;
  text-align: center;
}

.page-header .eyebrow {
  color: #5eead4;
}

.page-header h1 {
  color: var(--color-white);
}

.breadcrumb {
  margin-top: 14px;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
}

.breadcrumb a {
  color: rgba(255, 255, 255, 0.85);
  font-weight: 600;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 960px) {
  .hero .container,
  .split,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero-panel {
    order: -1;
  }

  .grid-3,
  .steps,
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

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

  .nav-toggle {
    display: flex;
  }

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

  .grid-3,
  .grid-2,
  .steps,
  .team-grid,
  .value-grid,
  .form-row {
    grid-template-columns: 1fr;
  }

  .cta-band {
    padding: 40px 24px;
    margin: 0 16px;
  }

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

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

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