/* Arrow Matrix - global stylesheet */

:root {
  /* Monochrome palette taken from the Arrow Matrix logo */
  --navy: #111114;          /* ink - headings, dark surfaces */
  --navy-700: #26262b;      /* graphite */
  --blue: #52525b;          /* muted grey - links, icons */
  --blue-soft: #f3f3f4;     /* light grey surface */
  --orange: #000000;        /* accent */
  --orange-soft: #ececee;   /* accent surface */
  --text: #2a2a2e;
  --muted: #6b6b73;
  --line: #e4e4e7;
  --bg: #ffffff;
  --bg-alt: #f7f7f8;
  --radius: 16px;
  --shadow: 0 12px 30px rgba(17, 17, 20, 0.08);
  --shadow-lg: 0 20px 50px rgba(17, 17, 20, 0.16);
  --max: 1160px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

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

/* Inline line icons */
.card-icon svg { width: 24px; height: 24px; }
.topbar svg { width: 15px; height: 15px; vertical-align: -3px; }
.footer-list svg { width: 16px; height: 16px; vertical-align: -3px; margin-right: 4px; }
.footer-bottom svg { width: 14px; height: 14px; vertical-align: -2px; }
.float-actions svg { width: 22px; height: 22px; }
.to-top svg { width: 18px; height: 18px; }
.hero-actions svg, .btn svg { width: 18px; height: 18px; vertical-align: -4px; }

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

h1, h2, h3, h4 { color: var(--navy); line-height: 1.2; margin: 0 0 14px; letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 4.4vw, 3.1rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 16px; color: var(--muted); }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.section { padding: 80px 0; }
.section-alt { background: var(--bg-alt); }
.center { text-align: center; }
.section-head { max-width: 720px; margin: 0 auto 46px; text-align: center; }
.eyebrow {
  display: inline-block;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--orange);
  background: var(--orange-soft);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 14px;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: .95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--navy); color: #fff; box-shadow: 0 10px 24px rgba(17, 17, 20, .28); }
.btn-primary:hover { background: #000; color: #fff; }
.btn-secondary { background: #fff; color: var(--navy); border-color: var(--navy); }
.btn-secondary:hover { background: var(--navy); color: #fff; }
/* On dark surfaces the primary button inverts to white */
.hero .btn-primary,
.page-hero .btn-primary,
.cta-band .btn-primary,
.card[style*="--navy"] .btn-primary {
  background: #fff;
  color: var(--navy);
  box-shadow: 0 10px 24px rgba(0, 0, 0, .35);
}
.hero .btn-primary:hover,
.page-hero .btn-primary:hover,
.cta-band .btn-primary:hover,
.card[style*="--navy"] .btn-primary:hover { background: #e9e9ec; color: #000; }

.btn-outline { border-color: rgba(255, 255, 255, .7); color: #fff; }
.btn-outline:hover { background: #fff; color: var(--navy); }
.btn-ghost { border-color: var(--line); color: var(--navy); background: #fff; }
.btn-ghost:hover { border-color: var(--navy); color: var(--navy); }

/* Header */
.topbar {
  background: var(--navy);
  color: #c9c9ce;
  font-size: .85rem;
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding-top: 8px;
  padding-bottom: 8px;
  flex-wrap: wrap;
}
.topbar a { color: #c9c9ce; }
.topbar a:hover { color: #fff; }
.topbar-links { display: flex; gap: 18px; flex-wrap: wrap; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header.scrolled { box-shadow: var(--shadow); }
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 20px;
}
.brand { display: flex; align-items: center; }
.brand img { height: 40px; width: auto; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links > li { position: relative; }
.nav-links a {
  display: block;
  padding: 10px 14px;
  color: var(--navy);
  font-weight: 500;
  font-size: .95rem;
  border-radius: 10px;
}
.nav-links a:hover { background: var(--blue-soft); color: var(--blue); }
.nav-links a.active { color: #000; font-weight: 600; background: var(--blue-soft); }
.nav-cta { margin-left: 8px; }
.nav-links .btn-primary { color: #fff; }
.nav-links .btn-primary:hover { color: #fff; background: #000; }

.dropdown-toggle::after {
  content: "";
  display: inline-block;
  margin-left: 7px;
  border: 5px solid transparent;
  border-top-color: currentColor;
  transform: translateY(2px);
}
.dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 250px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 8px;
  list-style: none;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all .18s ease;
}
.has-dropdown:hover .dropdown-menu,
.has-dropdown.open .dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown-menu a { font-size: .92rem; padding: 9px 12px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: .2s ease;
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  background: radial-gradient(1000px 500px at 85% -10%, rgba(255, 255, 255, .14), transparent 60%),
              radial-gradient(800px 400px at 5% 110%, rgba(255, 255, 255, .08), transparent 60%),
              var(--navy);
  color: #fff;
  padding: 86px 0;
}
.hero h1, .hero h2 { color: #fff; }
.hero p { color: #c9c9ce; font-size: 1.06rem; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 48px;
  align-items: center;
}
.hero .eyebrow { background: rgba(255, 255, 255, .12); color: #ffffff; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 8px; }
.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 42px;
  padding-top: 26px;
  border-top: 1px solid rgba(255, 255, 255, .16);
}
.hero-stats strong { display: block; font-size: 1.7rem; color: #fff; }
.hero-stats span { color: #a6a6ad; font-size: .88rem; }
.hero-card {
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 22px;
  padding: 26px;
  backdrop-filter: blur(6px);
}
.hero-card h3 { color: #fff; }
.hero-card ul { margin: 0; padding-left: 18px; color: #c9c9ce; }
.hero-card li { margin-bottom: 10px; }

/* Page hero (inner pages) */
.page-hero {
  background: linear-gradient(120deg, var(--navy) 0%, var(--navy-700) 100%);
  color: #fff;
  padding: 64px 0;
}
.page-hero h1 { color: #fff; margin-bottom: 8px; }
.page-hero p { color: #c9c9ce; max-width: 720px; margin: 0; }
.breadcrumb { font-size: .85rem; color: #a6a6ad; margin-bottom: 12px; }
.breadcrumb a { color: #a6a6ad; }
.breadcrumb a:hover { color: #fff; }

/* Cards & grids */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.card h3 { margin-bottom: 8px; }
.card p { margin-bottom: 10px; }
.card-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--blue-soft);
  color: var(--navy);
  font-size: 1.4rem;
  margin-bottom: 16px;
}
.card-icon.alt { background: var(--navy); color: #fff; }
.card-link { font-weight: 600; font-size: .92rem; }
.card-link::after { content: " →"; }

.list-check { list-style: none; margin: 0 0 18px; padding: 0; }
.list-check li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 11px;
  color: var(--muted);
}
.list-check li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  font-size: .75rem;
  display: grid;
  place-items: center;
  font-weight: 700;
}

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

.step { counter-increment: step; }
.step .num {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--navy);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
  margin-bottom: 14px;
}

.stat-box { text-align: center; padding: 26px 18px; }
.stat-box strong { display: block; font-size: 2rem; color: var(--navy); }
.stat-box span { color: var(--muted); font-size: .9rem; }

.quote {
  background: #fff;
  border: 1px solid var(--line);
  border-left: 4px solid var(--navy);
  border-radius: 14px;
  padding: 24px;
}
.quote p { font-style: italic; color: var(--text); }
.quote .who { font-weight: 600; color: var(--navy); font-style: normal; }

.pill-row { display: flex; flex-wrap: wrap; gap: 10px; }
.pill {
  background: var(--blue-soft);
  color: var(--navy);
  border-radius: 999px;
  padding: 7px 16px;
  font-size: .85rem;
  font-weight: 500;
}

.price-card { text-align: center; }
.price-card .price { font-size: 1.9rem; font-weight: 700; color: var(--navy); }
.price-card .price small { font-size: .85rem; color: var(--muted); font-weight: 400; }
.price-card.featured { border-color: var(--navy); box-shadow: var(--shadow); }

/* Portfolio */
.filter-row { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-bottom: 34px; }
.filter-btn {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--navy);
  border-radius: 999px;
  padding: 9px 20px;
  cursor: pointer;
  font-size: .9rem;
  font-weight: 500;
  transition: .18s ease;
}
.filter-btn:hover { border-color: var(--navy); color: var(--navy); }
.filter-btn.active { background: var(--navy); color: #fff; border-color: var(--navy); }
.work-card { overflow: hidden; padding: 0; }
.work-thumb {
  height: 160px;
  background: linear-gradient(135deg, #1b1b1f 0%, #52525b 100%);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: .04em;
}
.work-body { padding: 22px 24px 26px; }
.tag {
  display: inline-block;
  font-size: .74rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 6px;
}

/* FAQ / accordion */
.faq { border: 1px solid var(--line); border-radius: 14px; background: #fff; margin-bottom: 12px; overflow: hidden; }
.faq-q {
  width: 100%;
  text-align: left;
  background: none;
  border: 0;
  padding: 18px 22px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--navy);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-family: inherit;
}
.faq-q::after { content: "+"; color: var(--navy); font-size: 1.3rem; line-height: 1; }
.faq.open .faq-q::after { content: "–"; }
.faq-a { display: none; padding: 0 22px 20px; }
.faq.open .faq-a { display: block; }
.faq-a p { margin: 0; }

/* Forms */
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: .88rem; font-weight: 600; color: var(--navy); margin-bottom: 7px; }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-family: inherit;
  font-size: .95rem;
  color: var(--text);
  background: #fff;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(17, 17, 20, .12);
}
.field textarea { min-height: 130px; resize: vertical; }
.error-msg { color: #d63b2f; font-size: .82rem; margin-top: 6px; display: none; }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: #d63b2f; }
.field.invalid .error-msg { display: block; }
.form-success {
  display: none;
  background: #e9f9ef;
  border: 1px solid #b6e6c8;
  color: #17683a;
  border-radius: 12px;
  padding: 14px 18px;
  margin-bottom: 18px;
  font-size: .93rem;
}
.form-success.show { display: block; }

.info-card { display: flex; gap: 16px; align-items: flex-start; }
.info-card .card-icon { margin-bottom: 0; flex: 0 0 auto; }
.info-card h3 { font-size: 1.05rem; margin-bottom: 4px; }
.info-card p { margin: 0; }

.map-wrap { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.map-wrap iframe { width: 100%; height: 360px; border: 0; display: block; }

/* CTA band */
.cta-band {
  background: linear-gradient(120deg, #1b1b1f 0%, #000000 100%);
  color: #fff;
  border-radius: 22px;
  padding: 46px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
}
.cta-band h2 { color: #fff; margin-bottom: 6px; }
.cta-band p { color: #c9c9ce; margin: 0; }

/* Footer */
.site-footer { background: var(--navy); color: #a6a6ad; padding: 64px 0 0; margin-top: 0; }
.site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: 16px; }
.site-footer p { color: #a6a6ad; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 34px; }
.footer-logo { height: 40px; margin-bottom: 16px; }
.footer-list { list-style: none; margin: 0; padding: 0; }
.footer-list li { margin-bottom: 10px; }
.footer-list a, .site-footer a { color: #a6a6ad; font-size: .93rem; }
.footer-list a:hover, .site-footer a:hover { color: #fff; }
.socials { display: flex; gap: 10px; margin-top: 16px; }
.socials a {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(255, 255, 255, .08);
  display: grid;
  place-items: center;
  color: #fff;
  font-size: .8rem;
  font-weight: 600;
}
.socials a:hover { background: #fff; color: var(--navy); }
.footer-bottom {
  margin-top: 48px;
  border-top: 1px solid rgba(255, 255, 255, .12);
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  font-size: .86rem;
}

/* Floating actions */
.float-actions { position: fixed; right: 18px; bottom: 18px; display: flex; flex-direction: column; gap: 10px; z-index: 60; }
.float-actions a {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 1.15rem;
  box-shadow: var(--shadow);
}
.float-call { background: var(--navy); }
.float-wa { background: #25d366; }
.to-top {
  position: fixed;
  left: 18px;
  bottom: 18px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 0;
  background: var(--navy);
  color: #fff;
  cursor: pointer;
  display: none;
  place-items: center;
  z-index: 60;
  box-shadow: var(--shadow);
}
.to-top.show { display: grid; }

/* Reveal animation */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: none; }

@media (max-width: 960px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .hero-grid, .split { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-toggle { display: flex; }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    gap: 2px;
    display: none;
    box-shadow: var(--shadow);
  }
  .nav-links.open { display: flex; }
  .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: 0;
    padding-left: 12px;
    display: none;
  }
  .has-dropdown.open .dropdown-menu { display: block; }
  .nav-cta { margin: 8px 0 0; text-align: center; }
}

@media (max-width: 640px) {
  .section { padding: 56px 0; }
  .grid-2, .grid-3, .grid-4, .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero { padding: 60px 0; }
  .hero-stats { grid-template-columns: 1fr 1fr; }
  .cta-band { padding: 32px; }
  .topbar .container { justify-content: center; text-align: center; }
}
