/* SiloNetApps - static site stylesheet */

:root {
  --navy: #232D36;
  --navy-light: #3C485B;
  --accent: #949FB0;
  --accent-dark: #6E7688;
  --text: #333333;
  --text-muted: #666666;
  --border: #e3e6e9;
  --bg-alt: #F6F8FA;
  --off-white: #F6F8FA;
  --radius: 10px;
  --max-width: 1140px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Urbanist', Helvetica, Arial, sans-serif;
  font-weight: 400;
  font-size: 16px;
  color: var(--text);
  background: #fff;
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Urbanist', Helvetica, Arial, sans-serif;
  color: var(--navy);
  margin: 0 0 .6em;
  text-transform: none;
}
h1 { font-weight: 300; font-size: 3.375em; line-height: 1.26; }
h2 { font-weight: 600; font-size: 2.625em; line-height: 1.143; }
h3 { font-weight: 500; font-size: 2.25em; line-height: 1.25; }
h4 { font-weight: 600; font-size: 1.25em; line-height: 1.6; }
h5 { font-weight: 600; font-size: 1.125em; line-height: 1.55; }
h6 { font-weight: 700; font-size: .8em; line-height: 1.6; letter-spacing: 1px; text-transform: uppercase; }

p { margin: 0 0 1em; }
.lead { font-size: 1.25em; line-height: 1.5; }
a { font-family: 'Source Sans 3', 'Source Sans Pro', Helvetica, Arial, sans-serif; color: var(--accent-dark); text-decoration: none; }
a:hover { color: var(--navy); text-decoration: underline; }
img { max-width: 100%; display: block; }

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

.eyebrow {
  display: inline-block;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: .5em;
}

/* ---------- Header ---------- */
.top-bar {
  background: var(--navy);
  color: #fff;
  font-size: .85rem;
}
.top-bar-inner { padding: 8px 24px; }
.contact-strip {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
}
.contact-strip a { color: #fff; }
.contact-strip a:hover { text-decoration: underline; }
.contact-strip .icon { margin-right: 4px; }

.site-header { position: sticky; top: 0; z-index: 100; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.main-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  padding-bottom: 12px;
}
.logo img { height: 44px; width: auto; }

.primary-nav ul {
  list-style: none;
  display: flex;
  gap: 8px;
  margin: 0; padding: 0;
}
.primary-nav a {
  display: block;
  color: var(--navy);
  font-weight: 600;
  padding: 10px 16px;
  border-radius: 6px;
}
.primary-nav a:hover, .primary-nav a.active {
  background: var(--bg-alt);
  color: var(--accent);
  text-decoration: none;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px; height: 20px;
  background: none; border: 0; cursor: pointer; padding: 0;
}
.nav-toggle span {
  display: block; height: 2px; width: 100%; background: var(--navy); border-radius: 2px;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  color: #fff;
  padding: 110px 0 180px;
  text-align: left;
  overflow: hidden;
}
.hero h1 { color: #fff; font-size: clamp(2rem, 4vw, 3rem); }
.hero p { font-size: 1.15rem; max-width: 640px; margin: 0 0 1.8em; color: #d7dde2; }

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.6);
}
.hero .wrap { position: relative; }

/* ---------- Page banner (photo header for inner pages) ---------- */
.page-banner {
  position: relative;
  background-size: cover;
  background-position: 51% 18%;
  background-repeat: no-repeat;
  padding: 120px 0;
  text-align: center;
  color: #fff;
}
.page-banner::before {
  content: "";
  position: absolute; inset: 0;
  background: rgba(0,0,0,.6);
}
.page-banner .wrap { position: relative; }
.page-banner h1 { color: #fff; margin: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  background: var(--accent);
  color: var(--off-white);
  font-family: 'Urbanist', Helvetica, Arial, sans-serif;
  font-weight: 600;
  font-size: 12px;
  line-height: 1;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 15px 30px;
  border-radius: 6px;
  border: 2px solid var(--accent);
  cursor: pointer;
}
.btn:hover { background: var(--accent-dark); border-color: var(--accent-dark); text-decoration: none; }

.btn-outline {
  display: inline-block;
  background: transparent;
  color: #fff;
  font-family: 'Open Sans', Helvetica, Arial, sans-serif;
  font-weight: 600;
  font-size: 14px;
  line-height: 1;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 15px 30px;
  border-radius: 56px;
  cursor: pointer;
  border: 2px solid #fff;
}
.btn-outline:hover { background: #fff; color: var(--navy); }

/* ---------- Sections ---------- */
section { padding: 72px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 48px; }

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

.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
}
.card .icon-badge {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: rgba(59,130,196,.12);
  color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 18px;
}

/* Feature cards with overlapping icon badges (home page, overlap the hero) */
.feature-cards {
  position: relative;
  z-index: 2;
  margin-top: -70px;
}
.feature-card {
  position: relative;
  background: #fff;
  text-align: center;
  padding: 40px 24px 24px;
  box-shadow: 0 15px 35px rgba(0,0,0,.1);
  border-bottom: 4px solid var(--navy);
}
.feature-card .icon-circle {
  position: absolute;
  top: -35px;
  left: 50%;
  transform: translateX(-50%);
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  box-shadow: 0 10px 22px rgba(0,0,0,.18);
}
.feature-card:nth-child(3) .icon-circle { background: var(--navy); }
.feature-card h3 {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: .5em;
}
.feature-card p { color: var(--text-muted); margin-bottom: 0; font-size: .95rem; }

.overview-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}
.overview-row h3 { font-size: 1.15rem; }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative;
  color: #fff;
  text-align: center;
  padding: 100px 0;
  background-size: cover;
  background-position: center;
}
.cta-band::before {
  content: "";
  position: absolute; inset: 0;
  background: rgba(34,43,52,.82);
}
.cta-band .wrap { position: relative; }
.cta-band h2 { color: #fff; }
.cta-band p { max-width: 560px; margin: 0 auto 1.8em; color: #dfe4e8; }

/* ---------- Products ---------- */
.product-card {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 32px;
  align-items: center;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  margin-bottom: 28px;
}
.product-card .logo-wrap { display: flex; align-items: center; justify-content: center; }
.product-card .logo-wrap img { max-height: 90px; width: auto; }
.product-card .tag {
  display: inline-block;
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  background: rgba(59,130,196,.12);
  color: var(--accent);
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 10px;
}
.product-card .status { font-style: italic; color: var(--text-muted); font-size: .92rem; }

.logo-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 40px;
}
.logo-strip img { max-height: 42px; width: auto; filter: grayscale(100%); opacity: .6; }

/* ---------- About / Team ---------- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.team-card { text-align: center; }
.avatar {
  width: 88px; height: 88px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 1.5rem;
  margin: 0 auto 18px;
}
.team-card .role {
  text-transform: uppercase;
  letter-spacing: .05em;
  font-size: .78rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 2px;
}
.team-card h3 { margin-bottom: .4em; }
.team-card p { color: var(--text-muted); font-size: .95rem; text-align: left; }

/* ---------- Contact ---------- */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 48px;
}
.contact-info-card {
  position: relative;
  background: url('/assets/img/pexels-photo-2653362.jpeg') center 63%/cover no-repeat;
  color: var(--navy);
  border-radius: var(--radius);
  padding: 36px;
  overflow: hidden;
}
.contact-info-card::before {
  content: "";
  position: absolute; inset: 0;
  background: rgba(246,248,250,.70);
}
.contact-info-card > * { position: relative; }
.contact-info-card h3 { color: var(--navy); }
.contact-info-card ul { list-style: none; margin: 24px 0 0; padding: 0; }
.contact-info-card li { margin-bottom: 18px; display: flex; gap: 12px; }
.contact-info-card a { color: var(--navy); font-weight: 600; }

.form-row { margin-bottom: 20px; }
.form-row label { display: block; font-weight: 600; margin-bottom: 6px; font-size: .92rem; }
.form-row input, .form-row textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font: inherit;
  background: #fff;
}
.form-row input:focus, .form-row textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(59,130,196,.15);
}
.hp-field { position: absolute; left: -9999px; top: -9999px; }

.alert {
  padding: 14px 18px;
  border-radius: 8px;
  margin-bottom: 24px;
  font-weight: 600;
}
.alert-success { background: #e4f6ea; color: #1d7a3d; border: 1px solid #b8e6c6; }
.alert-error { background: #fdeaea; color: #ab2b2b; border: 1px solid #f3c2c2; }

/* ---------- Careers ---------- */
.careers-notice {
  background: var(--bg-alt);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  padding: 28px;
  text-align: center;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 56px;
}

/* ---------- Footer ---------- */
.site-footer { background: #f1f3f5; border-top: 1px solid var(--border); padding-top: 48px; }
.footer-inner {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 36px;
}
.footer-brand p { color: var(--text-muted); font-size: .9rem; margin-top: 12px; }
.footer-nav ul, .footer-contact { list-style: none; margin: 0; padding: 0; }
.footer-nav li, .footer-contact li { margin-bottom: 10px; }
.footer-nav a, .footer-contact a { color: var(--text); }
.footer-contact a:hover, .footer-nav a:hover { color: var(--accent); }
.footer-bottom {
  border-top: 1px solid var(--border);
  text-align: center;
  padding: 18px 0;
  font-size: .85rem;
  color: var(--text-muted);
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .grid-3, .grid-4, .overview-row { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: 1fr; }
  .contact-layout { grid-template-columns: 1fr; }
  .product-card { grid-template-columns: 1fr; text-align: center; }
  .footer-inner { grid-template-columns: 1fr; text-align: center; }
  .footer-nav ul { padding: 0; }
}

@media (max-width: 680px) {
  .top-bar .contact-strip { justify-content: center; text-align: center; }
  .grid-3, .grid-4, .grid-2, .overview-row { grid-template-columns: 1fr; }
  .nav-toggle { display: flex; }
  .primary-nav {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: #fff;
    border-top: 1px solid var(--border);
    box-shadow: 0 8px 16px rgba(0,0,0,.08);
  }
  .primary-nav.open { display: block; }
  .primary-nav ul { flex-direction: column; padding: 8px; gap: 0; }
  section { padding: 48px 0; }
  .hero { padding: 56px 0 90px; }
  .feature-cards { margin-top: -35px; }
  .feature-card { padding-top: 36px; }
  .feature-card .icon-circle { width: 60px; height: 60px; font-size: 1.4rem; top: -30px; }
}
