/*
  Amistad Technologies - Static Site Styles
  Stable base styles + homepage hero restoration
*/

:root {
  --primary: #171c6b;
  --primary-light: #3d417f;
  --dark: #111111;
  --text: #333333;
  --muted: #777777;
  --bg: #f5f5f7;
  --white: #ffffff;
  --accent: #000000;
}

*,
*::before,
*::after { box-sizing: border-box; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background-color: var(--bg);
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* Layout */
.wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ================= Header / Nav ================= */
.site-header {
  background: var(--white);
  border-bottom: 1px solid #e3e3e3;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
  gap: 1.25rem;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  min-width: 320px;
}

.nav-brand img { height: 90px; width: auto; }

.nav-brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.nav-brand-text span:first-child {
  font-weight: 700;
  letter-spacing: 0.08em;
  font-size: 0.85rem;
  text-transform: uppercase;
  color: var(--primary);
}

.nav-brand-text span:last-child {
  font-size: 0.75rem;
  color: var(--muted);
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

/* normal nav links */
.nav-links > a,
.nav-mega > a {
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  position: relative;
  padding: 0.25rem 0;
}

.nav-links > a.active,
.nav-links > a:hover,
.nav-mega > a:hover { color: var(--primary); }

.nav-links > a::after,
.nav-mega > a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.3rem;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transition: width 0.2s ease;
}

.nav-links > a:hover::after,
.nav-links > a.active::after,
.nav-mega > a:hover::after { width: 100%; }

/* ================= About Hero Background ================= */
.about-hero {
  background-image: url("images/teamwork.jpg");  /* your image */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  padding: 5rem 0;
  position: relative;
}

/* optional dark overlay for readability */
.about-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.35);
}

/* ensure content stays above overlay */
.about-hero .wrapper {
  position: relative;
  z-index: 1;
}

/* white grid box */
.about-box {
  max-width: 720px;
  margin: 0 auto;
  background: rgba(255,255,255,0.96);
  padding: 2rem 2.5rem;
  border-radius: 18px;
  text-align: center;

  box-shadow: 0 18px 45px rgba(0,0,0,0.18);

  background-image:
    linear-gradient(#e6e6ea 1px, transparent 1px),
    linear-gradient(90deg, #e6e6ea 1px, transparent 1px);
  background-size: 40px 40px;
}


/* ===== Services Mega Menu ===== */
.nav-mega { position: relative; display: flex; align-items: center; }

.nav-mega-panel {
  position: absolute;
  top: 2.1rem;
  left: 50%;
  transform: translateX(-50%);
  width: 560px;
  background: var(--white);
  border: 1px solid #e3e3e3;
  border-radius: 14px;
  padding: 0.9rem;
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.12);
  display: none;
  gap: 0.6rem 1rem;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  z-index: 200;
}

.nav-mega:hover .nav-mega-panel { display: grid; }

.nav-mega-panel a {
  display: block;
  padding: 0.75rem 0.75rem;
  border-radius: 12px;
  font-size: 0.92rem;
  font-weight: 650;
  color: var(--text);
  text-transform: none;
  letter-spacing: 0.03em;
}

.nav-mega-panel a:hover {
  background: rgba(23, 28, 107, 0.06);
  color: var(--primary);
}

/* Mobile nav */
.nav-toggle {
  display: none;
  border: none;
  background: transparent;
  cursor: pointer;
}
.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--dark);
  display: block;
  margin: 4px 0;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: var(--white);
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.18);
}

.btn-outline {
  background: rgba(255,255,255,0.72);
  border-color: rgba(0, 0, 0, 0.18);
  color: var(--dark);
}
.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
}

/* Base sections */
.section { padding: 3.5rem 0; }

.section-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.section-eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.section-title {
  font-size: 1.8rem;
  margin: 0 0 0.6rem;
  color: var(--dark);
}

.section-subtitle {
  margin: 0;
  color: var(--muted);
  max-width: 36rem;
  margin-inline: auto;
  font-size: 0.98rem;
}

/* Cards */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.8rem;
}

.card {
  background: var(--white);
  padding: 1.5rem 1.6rem;
  border-radius: 16px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.06);
  border-top: 3px solid var(--primary-light);
}

.card h3 { margin-top: 0; font-size: 1.05rem; }
.card p { font-size: 0.92rem; color: var(--muted); }

.card-tag {
  display: inline-block;
  padding: 0.2rem 0.7rem;
  border-radius: 999px;
  background: rgba(23, 28, 107, 0.08);
  color: var(--primary);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  margin-bottom: 0.7rem;
}

/* Two-column sections */
.twocol {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 2.5rem;
  align-items: flex-start;
}

.list-check {
  list-style: none;
  padding: 0;
  margin: 0;
}
.list-check li {
  position: relative;
  margin-bottom: 0.7rem;
  padding-left: 1.6rem;
  font-size: 0.95rem;
}
.list-check li::before {
  content: "✔";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--primary);
  font-weight: 900;
}

.mt-sm { margin-top: 0.75rem; }

/* Contact card (homepage + contact page reuse) */
.contact-card {
  background: var(--white);
  border-radius: 16px;
  padding: 1.4rem 1.6rem;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.06);
}

.contact-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.93rem;
}
.contact-row + .contact-row { margin-top: 0.8rem; }

.contact-label {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.75rem;
}

.contact-value {
  font-weight: 600;
  color: var(--dark);
}

/* ================= HOME HERO (restored) ================= */
.page-home .hero {
  padding: 4rem 0 3.5rem;
}

.page-home .hero-with-bg {
  background-image: url("images/Homepage.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
}

.page-home .hero-with-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.72);
  backdrop-filter: blur(6px);
}

.page-home .hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 3rem;
  align-items: center;
}

.page-home .hero-left-card {
  background: rgba(255,255,255,0.92);
  border-radius: 18px;
  padding: 2rem 2.2rem;
  box-shadow: 0 18px 45px rgba(0,0,0,0.08);
  border-bottom: 4px solid var(--primary);
}

.page-home .hero-eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 0.75rem;
  font-weight: 800;
}

.page-home .hero-title {
  font-size: clamp(2.2rem, 3vw, 3rem);
  line-height: 1.1;
  margin: 0 0 0.9rem;
  color: var(--dark);
}

.page-home .hero-title span { color: var(--primary); }

.page-home .hero-subtitle {
  font-size: 1.02rem;
  max-width: 40rem;
  color: #555;
  margin-bottom: 1.6rem;
}

.page-home .hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

/* Right focus box */
.page-home .hero-card {
  background: var(--white);
  border-radius: 18px;
  padding: 1.6rem 1.8rem;
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.08);
  border-bottom: 4px solid var(--primary);
}

.page-home .hero-card h3 {
  margin: 0 0 0.9rem;
  font-size: 1.05rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary);
}

.page-home .hero-card p {
  margin: 0 0 0.6rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.page-home .hero-card ul {
  list-style: none;
  padding: 0;
  margin: 0.6rem 0 0;
  font-size: 0.92rem;
}

.page-home .hero-card ul li { margin: 0.5rem 0; }

.page-home .hero-card ul li::before {
  content: "▹";
  color: var(--primary);
  margin-right: 0.5rem;
  font-weight: 800;
}

/* ================= Footer ================= */
.site-footer {
  background: #0c0e36;
  color: #d3d3d3;
  padding-top: 2.5rem;
}

.footer-columns {
  display: grid;
  grid-template-columns: 2fr 1fr 1.1fr;
  gap: 2rem;
  padding-bottom: 1.5rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.footer-logo img { height: 80px; width: auto; }

.footer-logo-text span:first-child {
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.8rem;
}

.footer-logo-text span:last-child {
  font-size: 0.75rem;
  color: #aaaaaa;
  text-transform: uppercase;
}

.footer-columns p { font-size: 0.9rem; color: #bbbbbb; }

.footer-links a {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 0.4rem;
  color: #cccccc;
}
.footer-links a:hover { color: #ffffff; }

.footer-contact-item { font-size: 0.9rem; margin-bottom: 0.4rem; }

.footer-bottom {
  border-top: 1px solid #333333;
  padding: 0.8rem 0;
  font-size: 0.78rem;
  color: #888888;
  text-align: center;
}

/* ================= Responsive ================= */
@media (max-width: 900px) {
  .twocol { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .footer-columns { grid-template-columns: 1fr; }
  .page-home .hero-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .nav-toggle { display: block; }

  .nav-links {
    display: none;
    position: absolute;
    top: 78px;
    right: 4%;
    left: 4%;
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
    flex-direction: column;
    padding: 0.9rem 1rem;
    border: 1px solid #e3e3e3;
  }

  .nav-links.open { display: flex; }
}
