/* ==========================================================================
   AMACAY LLC — Technology Consulting and Systems
   Light theme: ice-white #F5F7F9 / steel-slate #5B6B7A / deep slate #33475A
   ========================================================================== */

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  background-color: #F5F7F9;
  color: #2B333C;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; }

a { color: #5B6B7A; text-decoration: none; }

h1, h2, h3, h4 { margin-top: 0; color: #33475A; }

/* --------------------------------------------------------------------------
   Right vertical rail navigation
   -------------------------------------------------------------------------- */
.rail-nav {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: 96px;
  background-color: #33475A;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 26px 0 22px;
  z-index: 100;
}

.rail-progress {
  position: absolute;
  top: 0;
  left: 0;
  height: 3px;
  width: 0;
  background-color: #5B6B7A;
}

.rail-brand {
  width: 46px;
  height: 46px;
  background-color: #5B6B7A;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  transition: background-color 0.25s ease;
}
.rail-brand:hover { background-color: #4A5E72; }

.rail-monitor {
  position: relative;
  display: block;
  width: 22px;
  height: 16px;
  background-color: #FFFFFF;
  border-radius: 2px;
}
.rail-monitor::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 4px;
  width: 14px;
  height: 8px;
  background-image:
    linear-gradient(#5B6B7A, #5B6B7A),
    linear-gradient(#5B6B7A, #5B6B7A),
    linear-gradient(#5B6B7A, #5B6B7A);
  background-size: 14px 2px, 10px 2px, 12px 2px;
  background-position: 0 0, 0 3px, 0 6px;
  background-repeat: no-repeat;
}
.rail-monitor::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 15px;
  width: 10px;
  height: 2px;
  background-color: #FFFFFF;
  border-radius: 1px;
}

.rail-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background-color: transparent;
  border: none;
  cursor: pointer;
  padding: 10px;
}
.rail-toggle-bar {
  display: block;
  width: 22px;
  height: 2px;
  background-color: #FFFFFF;
}

.rail-links {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.rail-link {
  margin-top: 12px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  border-radius: 6px;
}
.rail-link + .rail-link {
  border-top: 1px solid #4A5E72;
  padding-top: 12px;
  margin-top: 12px;
}
.rail-link:hover { background-color: #4A5E72; }
.rail-link.active { background-color: #5B6B7A; }
.rail-link svg { width: 18px; height: 18px; }

.rail-label { display: none; }

.rail-contact {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.rail-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: #A9B6C2;
  font-size: 10px;
  line-height: 1.3;
  text-align: center;
}
.rail-chip:hover { color: #FFFFFF; }
.rail-chip svg { width: 16px; height: 16px; color: #FFFFFF; }

.page-shell { margin-right: 96px; }

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-block;
  padding: 14px 30px;
  font-size: 16px;
  font-weight: 700;
  border-radius: 6px;
  border: 2px solid transparent;
  cursor: pointer;
  text-align: center;
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.btn-primary { background-color: #FFFFFF; color: #5B6B7A; }
.btn-primary:hover { background-color: #E3E8ED; }
.btn-outline { border-color: #FFFFFF; color: #FFFFFF; background-color: transparent; }
.btn-outline:hover { background-color: #FFFFFF; color: #5B6B7A; }
.btn-steel { background-color: #5B6B7A; color: #FFFFFF; }
.btn-steel:hover { background-color: #33475A; }

/* --------------------------------------------------------------------------
   Full-bleed color block hero
   -------------------------------------------------------------------------- */
.block-hero {
  background-color: #5B6B7A;
  min-height: 560px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 48px 60px;
}
.hero-inner { max-width: 920px; width: 100%; }

.hero-eyebrow {
  display: inline-block;
  background-color: #FFFFFF;
  color: #5B6B7A;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 8px 20px;
  border-radius: 24px;
}

.block-hero h1 {
  color: #FFFFFF;
  font-size: 52px;
  line-height: 1.14;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin: 28px 0 22px;
}
.hero-accent { color: #D7DEE5; }

.hero-sub {
  color: #E8EDF2;
  font-size: 18px;
  max-width: 740px;
  margin: 0 auto 34px;
}

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

.hero-glyphs {
  margin: 46px auto 0;
  width: fit-content;
  background-color: #33475A;
  border-radius: 12px;
  padding: 24px 36px;
  display: flex;
  gap: 40px;
  align-items: center;
  justify-content: center;
}
.glyph-tile { display: flex; align-items: center; justify-content: center; }

.glyph-rack {
  position: relative;
  display: block;
  width: 32px;
  height: 38px;
  background-color: #FFFFFF;
  border-radius: 4px;
}
.glyph-rack::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 8px;
  width: 20px;
  height: 22px;
  background-image:
    linear-gradient(#5B6B7A, #5B6B7A),
    linear-gradient(#5B6B7A, #5B6B7A),
    linear-gradient(#5B6B7A, #5B6B7A);
  background-size: 20px 2px, 20px 2px, 20px 2px;
  background-position: 0 2px, 0 10px, 0 18px;
  background-repeat: no-repeat;
}

.glyph-nodes { position: relative; display: block; width: 40px; height: 40px; }
.glyph-nodes::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 19px;
  width: 34px;
  height: 2px;
  background-color: #E8EDF2;
}
.glyph-nodes::after {
  content: "";
  position: absolute;
  left: 19px;
  top: 3px;
  width: 2px;
  height: 34px;
  background-color: #E8EDF2;
}
.glyph-node {
  position: absolute;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background-color: #FFFFFF;
  box-shadow: 0 0 0 2px #5B6B7A;
}
.glyph-node-a { left: 0; top: 15px; }
.glyph-node-b { right: 0; top: 15px; }
.glyph-node-c { left: 15px; top: 0; }

.glyph-monitor {
  position: relative;
  display: block;
  width: 40px;
  height: 30px;
  background-color: #FFFFFF;
  border-radius: 4px;
}
.glyph-monitor::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 6px;
  width: 28px;
  height: 16px;
  background-image:
    linear-gradient(#5B6B7A, #5B6B7A),
    linear-gradient(#5B6B7A, #5B6B7A),
    linear-gradient(#5B6B7A, #5B6B7A);
  background-size: 28px 2px, 20px 2px, 26px 2px;
  background-position: 0 2px, 0 7px, 0 12px;
  background-repeat: no-repeat;
}
.glyph-monitor::after {
  content: "";
  position: absolute;
  left: 11px;
  top: 28px;
  width: 18px;
  height: 3px;
  background-color: #E8EDF2;
  border-radius: 2px;
}

.hero-stats {
  display: flex;
  justify-content: center;
  margin-top: 38px;
}
.hero-stat { padding: 0 36px; }
.hero-stat + .hero-stat { border-left: 1px solid #FFFFFF; }
.hero-stat strong { display: block; color: #FFFFFF; font-size: 30px; font-weight: 800; }
.hero-stat span {
  display: block;
  color: #E3E8ED;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-top: 4px;
}

/* --------------------------------------------------------------------------
   Section scaffolding
   -------------------------------------------------------------------------- */
.section-head { text-align: center; max-width: 780px; margin: 0 auto 56px; }
.section-eyebrow {
  color: #5B6B7A;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.section-head h2 { color: #33475A; font-size: 38px; line-height: 1.2; margin: 0 0 16px; }
.section-head p { color: #6E7C8A; font-size: 17px; margin: 0; }

/* --------------------------------------------------------------------------
   Card grid
   -------------------------------------------------------------------------- */
.card-grid { background-color: #F5F7F9; padding: 96px 48px 100px; }

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  max-width: 1180px;
  margin: 0 auto;
}
.service-card {
  background-color: #FFFFFF;
  border: 1px solid #E3E8ED;
  border-radius: 12px;
  padding: 36px 32px;
}
.node-marker { display: block; width: 14px; height: 14px; background-color: #5B6B7A; margin-bottom: 22px; }
.service-card h3 { color: #33475A; font-size: 22px; margin: 0 0 14px; }
.service-card p { color: #3A444E; font-size: 16px; margin: 0 0 20px; }
.card-chip {
  display: inline-block;
  background-color: #E3E8ED;
  color: #5B6B7A;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 4px;
}

/* --------------------------------------------------------------------------
   Metric band
   -------------------------------------------------------------------------- */
.metric-band { background-color: #5B6B7A; padding: 74px 48px; }
.metrics { display: flex; max-width: 1100px; margin: 0 auto; }
.metric { flex: 1; text-align: center; padding: 0 20px; }
.metric + .metric { border-left: 1px solid #FFFFFF; }
.metric strong { display: block; color: #FFFFFF; font-size: 44px; font-weight: 800; }
.metric span {
  display: block;
  color: #E3E8ED;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-top: 8px;
}

/* --------------------------------------------------------------------------
   Statement band
   -------------------------------------------------------------------------- */
.statement-band { background-color: #FFFFFF; padding: 96px 48px; }
.statement-inner { max-width: 920px; margin: 0 auto; border-left: 4px solid #5B6B7A; padding-left: 42px; }
.statement-band p { color: #33475A; font-size: 28px; line-height: 1.55; font-weight: 600; margin: 0; }

/* --------------------------------------------------------------------------
   CTA band
   -------------------------------------------------------------------------- */
.cta-band { background-color: #E3E8ED; padding: 90px 48px; text-align: center; }
.cta-band h2 { color: #33475A; font-size: 36px; margin: 0 0 14px; }
.cta-band p { color: #3A444E; font-size: 17px; max-width: 660px; margin: 0 auto 30px; }

/* --------------------------------------------------------------------------
   Duo-band footer
   -------------------------------------------------------------------------- */
.duo-band-footer { background-color: #33475A; }
.footer-links {
  background-color: #33475A;
  padding: 30px 24px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}
.footer-links a { color: #FFFFFF; font-size: 14px; font-weight: 600; padding: 6px 22px; }
.footer-links a:hover {
  text-decoration: underline;
  text-decoration-color: #5B6B7A;
  text-underline-offset: 6px;
  text-decoration-thickness: 2px;
}
.footer-links a + a { border-left: 1px solid #4A5E72; }

.footer-legal { background-color: #5B6B7A; padding: 22px 24px; text-align: center; }
.footer-legal p { color: #FFFFFF; font-size: 13px; margin: 0 0 8px; }
.footer-legal p:last-child { margin-bottom: 0; }
.footer-legal a { color: #FFFFFF; text-decoration: underline; text-underline-offset: 3px; }

/* --------------------------------------------------------------------------
   Secondary pages (services / contact)
   -------------------------------------------------------------------------- */
.page-hero {
  background-color: #5B6B7A;
  text-align: center;
  padding: 84px 48px 72px;
}
.page-hero .crumbs {
  color: #E3E8ED;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.page-hero .crumbs a { color: #FFFFFF; text-decoration: underline; text-underline-offset: 3px; }
.page-hero h1 { color: #FFFFFF; font-size: 46px; margin: 0 0 18px; }
.page-hero p { color: #E8EDF2; font-size: 18px; max-width: 780px; margin: 0 auto; }

.services-intro { background-color: #F5F7F9; padding: 64px 48px 28px; }
.services-intro p { max-width: 920px; margin: 0 auto; color: #3A444E; font-size: 17px; text-align: center; }

.service-blocks { background-color: #F5F7F9; padding: 24px 48px 80px; }
.service-block {
  display: flex;
  gap: 28px;
  max-width: 1020px;
  margin: 0 auto 28px;
  background-color: #FFFFFF;
  border: 1px solid #E3E8ED;
  border-radius: 12px;
  padding: 38px 42px;
}
.service-num {
  flex: 0 0 54px;
  width: 54px;
  height: 54px;
  background-color: #33475A;
  color: #FFFFFF;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 800;
}
.service-block h2 { color: #33475A; font-size: 26px; margin: 0 0 12px; }
.service-block p { color: #3A444E; font-size: 16px; margin: 0 0 12px; }
.service-block h3 {
  color: #33475A;
  font-size: 15px;
  margin: 16px 0 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.service-block ul { color: #3A444E; margin: 0; padding-left: 20px; }
.service-block li { margin: 5px 0; font-size: 15px; }

.process-section { background-color: #FFFFFF; padding: 84px 48px; }
.process-steps { display: flex; gap: 20px; max-width: 1120px; margin: 0 auto; }
.process-step {
  flex: 1;
  background-color: #F5F7F9;
  border: 1px solid #E3E8ED;
  border-radius: 10px;
  padding: 28px 24px;
}
.process-step .step-num {
  color: #5B6B7A;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.process-step h3 { color: #33475A; font-size: 18px; margin: 10px 0 8px; }
.process-step p { color: #3A444E; font-size: 15px; margin: 0; }

.contact-main { padding: 80px 48px; }
.contact-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 36px;
  max-width: 1100px;
  margin: 0 auto;
}
.contact-intro { max-width: 1100px; margin: 0 auto 36px; }
.contact-intro p { color: #3A444E; font-size: 17px; margin: 0; }

.contact-form {
  background-color: #FFFFFF;
  border: 1px solid #E3E8ED;
  border-radius: 12px;
  padding: 36px;
}
.form-field { margin-bottom: 20px; }
.form-field label {
  display: block;
  color: #33475A;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 7px;
}
.form-field input,
.form-field textarea {
  width: 100%;
  padding: 12px 14px;
  background-color: #F5F7F9;
  border: 1px solid #E3E8ED;
  border-radius: 6px;
  color: #2B333C;
  font-size: 16px;
  font-family: inherit;
}
.form-field textarea { resize: vertical; min-height: 140px; }
.form-field input:focus,
.form-field textarea:focus {
  outline: 2px solid #5B6B7A;
  outline-offset: 0;
  border-color: transparent;
}
.form-note { color: #6E7C8A; font-size: 13px; margin: 0 0 24px; }
.form-status {
  display: none;
  padding: 14px 16px;
  border-radius: 6px;
  font-size: 15px;
  margin-top: 4px;
}
.form-status.success { display: block; background-color: #E3E8ED; color: #2B333C; border: 1px solid #5B6B7A; }
.form-status.error { display: block; background-color: #F5F7F9; color: #B04444; border: 1px solid #B04444; }

.contact-info { display: flex; flex-direction: column; gap: 20px; }
.info-card { background-color: #FFFFFF; border: 1px solid #E3E8ED; border-radius: 12px; padding: 26px 28px; }
.info-card h3 { color: #33475A; font-size: 17px; margin: 0 0 12px; }
.info-card p { color: #3A444E; font-size: 15px; margin: 0 0 6px; }
.info-card a { color: #5B6B7A; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.info-card .info-label {
  display: block;
  color: #6E7C8A;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.faq-section { background-color: #FFFFFF; padding: 84px 48px 96px; }
.faq-list { max-width: 820px; margin: 0 auto; }
.faq-item { background-color: #F5F7F9; border: 1px solid #E3E8ED; border-radius: 10px; margin-bottom: 14px; }
.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: none;
  border: none;
  padding: 20px 24px;
  cursor: pointer;
  text-align: left;
  font-size: 16px;
  font-weight: 700;
  color: #33475A;
  font-family: inherit;
}
.faq-icon { position: relative; flex: 0 0 18px; width: 18px; height: 18px; }
.faq-icon::before,
.faq-icon::after { content: ""; position: absolute; background-color: #5B6B7A; }
.faq-icon::before { left: 0; right: 0; top: 8px; height: 2px; }
.faq-icon::after { top: 0; bottom: 0; left: 8px; width: 2px; }
.faq-item.open .faq-icon::after { display: none; }
.faq-answer { display: none; padding: 0 24px 22px; color: #3A444E; font-size: 15px; }
.faq-item.open .faq-answer { display: block; }

/* --------------------------------------------------------------------------
   Scroll reveal
   -------------------------------------------------------------------------- */
.fade-up {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1020px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .page-shell { margin-right: 0; padding-top: 64px; }

  .rail-nav {
    width: 100%;
    height: 64px;
    flex-direction: row;
    justify-content: space-between;
    padding: 0 16px;
  }
  .rail-progress { top: auto; bottom: 0; }
  .rail-toggle { display: flex; }

  .rail-links {
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    background-color: #33475A;
    padding: 12px;
    box-shadow: 0 8px 16px #2B333C;
  }
  .rail-nav.open .rail-links { display: flex; }

  .rail-link {
    width: auto;
    height: auto;
    margin-top: 0;
    padding: 12px 14px;
    justify-content: flex-start;
    gap: 12px;
    border-radius: 6px;
  }
  .rail-link + .rail-link {
    border-top: none;
    margin-top: 2px;
    padding-top: 0;
  }
  .rail-label { display: inline; font-size: 14px; }
  .rail-contact { display: none; }

  .grid { grid-template-columns: 1fr; }
  .metrics { flex-direction: column; gap: 26px; }
  .metric + .metric { border-left: none; border-top: 1px solid #FFFFFF; padding-top: 24px; }

  .hero-stats { flex-direction: column; gap: 22px; }
  .hero-stat + .hero-stat { border-left: none; border-top: 1px solid #FFFFFF; padding-top: 20px; }

  .block-hero { min-height: 520px; padding: 64px 24px 48px; }
  .block-hero h1 { font-size: 38px; }
  .hero-glyphs { gap: 24px; padding: 20px 22px; }

  .process-steps { flex-direction: column; }
  .contact-grid { grid-template-columns: 1fr; }
  .service-block { flex-direction: column; }

  .footer-links { flex-direction: column; padding: 14px 16px; }
  .footer-links a + a { border-left: none; border-top: 1px solid #4A5E72; }
}

@media (max-width: 520px) {
  .block-hero h1 { font-size: 32px; }
  .page-hero h1 { font-size: 34px; }
  .section-head h2 { font-size: 30px; }
  .statement-band p { font-size: 22px; }
  .card-grid, .cta-band, .statement-band, .metric-band { padding-left: 24px; padding-right: 24px; }
  .service-blocks, .process-section, .faq-section, .contact-main { padding-left: 24px; padding-right: 24px; }
}

/* --------------------------------------------------------------------------
   Reduced motion
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .fade-up { opacity: 1; transform: none; transition: none; }
}
