/* ===================================================================
   FasTech Systems And Innovations LLC — local recreation
   Palette derived from the original theme-color #1b2c3c (dark navy).
   =================================================================== */

:root {
  --navy: #1b2c3c;
  --navy-2: #24384c;
  --navy-3: #0f1c28;
  --accent: #c0495a;      /* subtle muted red — site-wide accent */
  --accent-dark: #9f3a49;
  --brand: #c0495a;       /* unified brand red (toned down from logo #ff0066) */
  --brand-dark: #9f3a49;
  --text: #24303a;
  --muted: #5b6b78;
  --line: #e2e8ee;
  --bg: #ffffff;
  --bg-alt: #f4f7fa;
  --white: #ffffff;
  --radius: 6px;
  --shadow: 0 6px 24px rgba(15, 28, 40, 0.10);
  --maxw: 1140px;
  --header-h: 84px;
  --heading: "Work Sans", "Source Sans Pro", system-ui, sans-serif;
  --body: "Source Sans Pro", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

body {
  margin: 0;
  font-family: var(--body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

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

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

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 { font-family: var(--heading); color: var(--navy); line-height: 1.2; margin: 0 0 .5em; font-weight: 700; }

.section-title { font-size: clamp(1.6rem, 3vw, 2.3rem); margin-bottom: .8em; }
.section-title.center { text-align: center; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; font-weight: 700; color: var(--accent); margin: 0 0 .4em; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--heading);
  font-weight: 600;
  font-size: .95rem;
  letter-spacing: .02em;
  padding: 12px 26px;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all .18s ease;
  text-align: center;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn-primary:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.btn-outline { background: transparent; color: #fff; border-color: rgba(255,255,255,.7); }
.btn-outline:hover { background: #fff; color: var(--navy); border-color: #fff; }
.btn-brand { background: var(--brand); color: #fff; border-color: var(--brand); }
.btn-brand:hover { background: var(--brand-dark); border-color: var(--brand-dark); color: #fff; }
.btn-lg { padding: 15px 40px; font-size: 1.05rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: #ffffff;
  height: var(--header-h);
  display: flex; align-items: center;
  border-top: 3px solid var(--brand);       /* logo-derived brand stripe */
  border-bottom: 1px solid var(--line);
  box-shadow: 0 2px 16px rgba(15,28,40,.07);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.brand-logo { height: 50px; width: auto; }
.site-nav { display: flex; align-items: center; gap: 30px; }
.site-nav a {
  color: var(--navy);
  font-family: var(--heading); font-weight: 600; font-size: .98rem;
  position: relative; padding: 4px 0;
}
.site-nav a:not(.btn):hover { color: var(--brand); text-decoration: none; }
/* animated brand underline on nav links */
.site-nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; bottom: -2px;
  width: 100%; height: 2px; background: var(--brand);
  transform: scaleX(0); transform-origin: left; transition: transform .2s ease;
}
.site-nav a:not(.btn):hover::after { transform: scaleX(1); }

.nav-toggle { display: none; background: none; border: 0; width: 40px; height: 34px; padding: 6px; cursor: pointer; }
.nav-toggle span { display: block; height: 2px; background: var(--navy); margin: 5px 0; border-radius: 2px; transition: .25s; }

.mobile-nav { display: none; flex-direction: column; background: #fff; border-bottom: 1px solid var(--line); }
.mobile-nav a { color: var(--navy); padding: 14px 24px; border-top: 1px solid var(--line); font-family: var(--heading); font-weight: 600; }
.mobile-nav a:hover { color: var(--brand); background: var(--bg-alt); text-decoration: none; }
.mobile-nav.open { display: flex; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 620px;
  display: flex; align-items: center;
  background: url("../img/hero.jpg") center/cover no-repeat;
  color: #fff;
  text-align: center;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(15,28,40,.55), rgba(15,28,40,.78));
}
.hero-content { position: relative; z-index: 2; margin: 0 auto; max-width: 900px; }
.hero h1 {
  color: #fff;
  font-size: clamp(2rem, 5vw, 3.5rem);
  margin-bottom: 1.1em;
  text-shadow: 0 2px 18px rgba(0,0,0,.35);
}

/* ---------- About ---------- */
.about { padding: 88px 0; background: var(--bg); }
.about .eyebrow, .about .section-title { text-align: left; }
.about-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px; margin-top: 18px; }
.about-grid p { margin: 0; color: var(--muted); }

/* ---------- Services ---------- */
.services {
  padding: 90px 0;
  background: linear-gradient(rgba(244,247,250,.94), rgba(244,247,250,.94)), url("../img/services-bg.jpg") center/cover fixed no-repeat;
}
.services .section-title { margin-bottom: 1.4em; }
.service-list { display: flex; flex-direction: column; gap: 34px; }

.service-card {
  display: grid;
  grid-template-columns: 42% 1fr;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.service-card.reverse { grid-template-columns: 1fr 42%; }
.service-card.reverse .service-media { order: 2; }
.service-card.reverse .service-body { order: 1; }

.service-media { position: relative; min-height: 260px; }
.service-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

.service-body { padding: 34px 38px; }
.service-body h3 { font-size: 1.5rem; color: var(--navy); position: relative; padding-bottom: 14px; margin-bottom: 16px; }
.service-body h3::after { content: ""; position: absolute; left: 0; bottom: 0; width: 54px; height: 3px; background: var(--accent); border-radius: 3px; }
.service-body .lead { color: var(--text); font-weight: 600; margin: 0 0 14px; }
.service-body ul { margin: 0; padding-left: 0; list-style: none; }
.service-body li { position: relative; padding: 5px 0 5px 26px; color: var(--muted); }
.service-body li::before { content: ""; position: absolute; left: 4px; top: 14px; width: 8px; height: 8px; background: var(--accent); border-radius: 50%; }

/* ---------- Partners ---------- */
.partners { padding: 80px 0; background: #fff; }
.partner-row { display: flex; justify-content: center; align-items: center; gap: 60px; flex-wrap: wrap; margin-top: 20px; }
.partner-logo {
  font-family: var(--heading);
  font-weight: 700;
  font-size: 2.4rem;
  color: var(--navy);
  width: 150px; height: 100px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg-alt);
  letter-spacing: .04em;
}

/* ---------- Contact ---------- */
.contact { padding: 90px 0; background: var(--navy); color: #dfe7ee; }
.contact .section-title { color: #fff; }
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 56px; align-items: start; }
.contact-info .company-name { font-weight: 700; color: #fff; font-family: var(--heading); margin-bottom: .4em; }
.contact-info address { font-style: normal; color: #b9c6d1; line-height: 1.9; margin-bottom: 1em; }
.text-link { color: #ee9aa6; font-weight: 600; }

.contact-form-wrap { background: #fff; border-radius: 10px; padding: 34px 36px; box-shadow: var(--shadow); color: var(--text); }
.contact-form-wrap h3 { font-size: 1.4rem; margin-bottom: 18px; }
.field { margin-bottom: 18px; display: flex; flex-direction: column; }
.field label { font-family: var(--heading); font-weight: 600; font-size: .9rem; margin-bottom: 6px; color: var(--navy); }
.req { color: #d9534f; }
.field input, .field textarea {
  font-family: var(--body); font-size: 1rem;
  padding: 11px 13px;
  border: 1px solid #cdd7e0; border-radius: var(--radius);
  background: #fff; color: var(--text);
  transition: border-color .15s, box-shadow .15s;
}
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(192,73,90,.18);
}
.field textarea { resize: vertical; }
.hint { font-size: .82rem; color: var(--muted); margin-top: 6px; }
.fineprint { font-size: .8rem; color: var(--muted); margin: 4px 0 18px; }
.form-status, .sub-status { margin: 12px 0 0; font-weight: 600; min-height: 1.2em; }
.form-status.ok, .sub-status.ok { color: #2e7d32; }
.form-status.err, .sub-status.err { color: #d9534f; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-3); color: #b9c6d1; padding: 56px 0 34px; }
.footer-inner { text-align: center; }
.subscribe h4 { color: #fff; font-size: 1.2rem; margin-bottom: 16px; }
.subscribe-form { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; max-width: 460px; margin: 0 auto 8px; }
.subscribe-form input {
  flex: 1 1 220px; min-width: 200px;
  padding: 12px 14px; border-radius: var(--radius);
  border: 1px solid #33475a; background: #16232f; color: #fff; font-size: 1rem;
}
.subscribe-form input:focus { outline: none; border-color: var(--accent); }
.copyright { margin-top: 34px; font-size: .88rem; color: #7f909e; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; gap: 20px; }
  .contact-grid { grid-template-columns: 1fr; gap: 34px; }
  .service-card, .service-card.reverse { grid-template-columns: 1fr; }
  .service-card.reverse .service-media { order: 0; }
  .service-card.reverse .service-body { order: 0; }
  .service-media { min-height: 220px; }
  .services { background-attachment: scroll; }
}

@media (max-width: 760px) {
  .site-nav { display: none; }
  .nav-toggle { display: block; }
  .hero { min-height: 500px; }
}
