/* OpenIDC site styles.
   One small hand-written file (no Bootstrap). Brand colours and fonts are
   declared once as custom properties; layout uses CSS grid/flexbox. */

:root {
  --yellow: #fed711;
  --teal: #01303f;
  --teal-700: #02212c;
  --ink: #1c1f1e;
  --muted: #6b7280;
  --line: #e7e9ec;
  --bg: #ffffff;
  --bg-soft: #f6f7f8;
  --page: #f1f3f5;

  --font-body: "Exo 2", Helvetica, Arial, sans-serif;
  --font-head: "Montserrat", Helvetica, Arial, sans-serif;
  --font-logo: "Montserrat", Helvetica, Arial, sans-serif;

  --maxw: 1140px;
  --header-h: 72px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  line-height: 1.6;
  background: var(--page);
  -webkit-font-smoothing: antialiased;
}

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

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

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--teal);
  height: var(--header-h);
  display: flex; align-items: center;
  box-shadow: 0 1px 0 rgba(255,255,255,.06);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; }
.brand img {
  height: 56px; width: auto;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.22);
  box-shadow: 0 6px 18px rgba(0,0,0,.45);
}

@media (min-width: 768px) {
  :root { --header-h: 116px; }
  .brand img { height: 96px; }
}

.nav-toggle { display: none; }
.nav-toggle-label { display: none; }

.site-nav ul { display: flex; gap: 1.75rem; list-style: none; margin: 0; padding: 0; }
.site-nav a {
  text-decoration: none; color: #cfd8dc; font-family: var(--font-logo);
  font-weight: 700; font-size: .82rem; letter-spacing: 1px; text-transform: uppercase;
  transition: color .2s;
}
.site-nav a:hover { color: var(--yellow); }

/* ---------- Hero ---------- */
.hero {
  position: relative; color: #fff; text-align: center;
  padding: clamp(5rem, 13vw, 8rem) 1.25rem;
  text-shadow: 0 2px 14px rgba(0,0,0,.3);
  background-color: var(--teal);
  background-image:
    radial-gradient(rgba(255,255,255,.09) 1px, transparent 1px),
    radial-gradient(ellipse 115% 85% at 80% -12%, rgba(6,96,126,.95), transparent 62%),
    linear-gradient(155deg, #04384c, #01303f 52%, #02161d);
  background-size: 26px 26px, 100% 100%, 100% 100%;
}
.hero h1 {
  font-family: var(--font-logo); font-weight: 700; margin: 0;
  font-size: clamp(2.6rem, 9vw, 5rem); letter-spacing: clamp(4px, 1.5vw, 12px);
  line-height: 1.05;
}
.hero h1 span { color: var(--yellow); }
.hero .lead {
  font-family: var(--font-logo); font-weight: 400; color: var(--yellow); letter-spacing: 0.2em;
  font-size: clamp(1.15rem, 3.5vw, 1.9rem); margin: 1.7rem 0 .9rem;
}
.hero .tagline {
  font-family: var(--font-logo); font-weight: 700; letter-spacing: 0.3em;
  text-transform: uppercase; font-size: clamp(.8rem, 2.5vw, 1.05rem);
  opacity: .92; margin: 0;
}

/* ---------- Hero intro paragraph ---------- */
.intro-lead {
  font-family: var(--font-body); font-weight: 400; text-align: center;
  max-width: 46rem; margin: 3.5rem auto 0;
  font-size: 1rem; line-height: 1.7; color: #9fb0b8;
}
.intro-lead a { color: var(--yellow); text-decoration: none; }
.intro-lead a:hover { text-decoration: underline; }

/* ---------- Sections ---------- */
.section { padding: clamp(2.5rem, 5vw, 4rem) 0; }
.kicker {
  font-family: var(--font-logo); font-weight: 700; text-align: center;
  text-transform: uppercase; letter-spacing: .2em; font-size: .75rem;
  color: var(--muted); margin: 0 0 .6rem;
}
.section-title {
  font-family: var(--font-head); font-weight: 700; text-align: center;
  font-size: clamp(1.8rem, 5vw, 2.6rem); margin: 0 0 .6rem;
}
.section-title::after {
  content: ""; display: block; width: 64px; height: 4px; border-radius: 2px;
  background: var(--yellow); margin: .9rem auto 0;
}
.section-intro { text-align: center; color: var(--muted); max-width: 46rem; margin: 0 auto 2.5rem; }

/* ---------- Clients grid ---------- */
.clients-grid {
  list-style: none; margin: 2.5rem 0 0; padding: 0;
  display: grid; gap: 1.25rem;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}
.client-card {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  background: var(--bg); border: 1px solid var(--line); border-radius: 12px;
  padding: 1.75rem 1.4rem;
  box-shadow: 0 2px 10px rgba(1,48,63,.05);
  transition: transform .18s, box-shadow .2s, border-color .2s;
}
.client-card:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(1,48,63,.10); border-color: transparent; }
.client-logo { display: flex; align-items: center; justify-content: center; height: 70px; margin-bottom: 1.1rem; }
.client-logo img { max-height: 70px; width: auto; object-fit: contain; filter: grayscale(1); opacity: .72; transition: filter .25s, opacity .25s; }
.client-card:hover .client-logo img { filter: none; opacity: 1; }
.client-name { font-family: var(--font-head); font-size: 1.02rem; margin: 0 0 .5rem; }
.client-blurb { color: var(--muted); font-size: .92rem; margin: 0; }

/* ---------- Software grid ---------- */
.feature-grid {
  list-style: none; margin: 2.5rem 0 0; padding: 0;
  display: grid; gap: 1.25rem;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}
.feature-card {
  background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 1.6rem;
  box-shadow: 0 2px 10px rgba(1,48,63,.05);
  transition: transform .18s, box-shadow .2s, border-color .2s;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(1,48,63,.10); border-color: transparent; }
.feature-name {
  display: inline-flex; align-items: center; gap: .5rem; text-decoration: none;
  font-family: var(--font-logo); font-weight: 700; color: var(--teal); font-size: 1.08rem;
}
.feature-name .ico { width: 18px; height: 18px; fill: var(--muted); transition: fill .2s; }
.feature-card:hover .feature-name .ico { fill: var(--teal); }
.feature-card p { color: var(--muted); margin: .7rem 0 0; }

/* ---------- Services ---------- */
.services-grid {
  list-style: none; margin: 2.5rem 0 0; padding: 0;
  display: grid; gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}
.service-card {
  background: var(--bg); border-left: 4px solid var(--yellow); border-radius: 8px;
  padding: 1.7rem 1.9rem; box-shadow: 0 1px 3px rgba(1,48,63,.06);
}
.service-icon { color: var(--teal); }
.service-icon .ico-line { width: 30px; height: 30px; display: block; margin-bottom: .7rem; }
.service-card h3 { font-family: var(--font-head); margin: 0 0 .7rem; font-size: 1.2rem; }
.service-card p { color: #4b5563; margin: 0; }

/* ---------- Team ---------- */
.team-grid {
  list-style: none; margin: 2.5rem 0 0; padding: 0;
  display: grid; gap: 2rem;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}
.team-card { text-align: center; display: flex; flex-direction: column; }
.team-photo {
  display: block; width: 160px; height: 160px; border-radius: 50%; object-fit: cover; margin: 0 auto 1.1rem;
  border: 5px solid #fff; box-shadow: 0 8px 22px rgba(1,48,63,.15);
  transition: transform .18s, box-shadow .2s, border-color .2s;
}
.team-photo-link {
  position: relative; display: block; width: 160px; margin: 0 auto 1.1rem;
  border-radius: 50%; transition: transform .18s;
}
.team-photo-link .team-photo { margin: 0; }
.team-photo-mail {
  position: absolute; inset: 5px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(1,48,63,.55); color: #fff; opacity: 0; transition: opacity .2s;
}
.team-photo-mail .ico { width: 32px; height: 32px; }
/* hover: lift the link for linked photos, the photo itself for bare ones */
.team-photo-link:hover,
.team-card > .team-photo:hover { transform: translateY(-4px); }
/* hover: yellow ring + stronger shadow on the photo, linked or not */
.team-photo-link:hover .team-photo,
.team-card > .team-photo:hover { border-color: var(--yellow); box-shadow: 0 14px 30px rgba(1,48,63,.22); }
.team-photo-link:hover .team-photo-mail { opacity: 1; }
.team-name { font-family: var(--font-head); margin: 0; font-size: 1.12rem; }
.team-role { color: var(--muted); margin: .25rem 0 .9rem; }
.team-social { display: flex; gap: .55rem; justify-content: center; margin-top: auto; }
.team-social a {
  width: 36px; height: 36px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  background: var(--teal); color: #fff; transition: background .2s, transform .15s;
}
.team-social a:hover { background: var(--yellow); color: var(--teal); transform: translateY(-2px); }
.ico { width: 16px; height: 16px; fill: currentColor; display: block; }

/* ---------- Contact ---------- */
.contact {
  color: #e7edf0; text-align: center; text-shadow: 0 1px 8px rgba(0,0,0,.6);
  background: var(--teal) url("/img/map-image.png") center / cover no-repeat;
}
.contact .section-title { color: #fff; }
.contact .kicker { color: #9fb0b8; }
.contact-details { font-size: 1.05rem; line-height: 2; margin: 2.5rem 0 1.75rem; }
.contact-details a { color: var(--yellow); text-decoration: none; }
.contact-details a:hover { text-decoration: underline; }
.contact-meta { color: #9fb0b8; font-size: .92rem; line-height: 1.9; margin-top: 1.75rem; }
.contact-meta::before { content: ""; display: block; width: 64px; height: 4px; border-radius: 2px; background: var(--yellow); margin: 0 auto 1.25rem; }
.contact-meta a { color: #cfd8dc; }

/* ---------- Footer ---------- */
.site-footer { background: var(--teal-700); color: #c4ced3; text-align: center; padding: 2.5rem 1.25rem; font-size: .9rem; }
.footer-bar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: .75rem 1.75rem; text-align: left;
}
.footer-end { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.5rem; }
.footer-nav { display: flex; flex-wrap: wrap; gap: .5rem 1.3rem; }
.footer-nav a { color: #c4ced3; text-decoration: none; font-size: .9rem; }
.footer-nav a:hover { color: var(--yellow); }
.footer-social { display: flex; gap: .55rem; }
.footer-social a {
  display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px;
  color: #c4ced3; border: 1px solid rgba(255,255,255,.18); border-radius: 8px; transition: all .2s;
}
.footer-social a:hover { background: var(--yellow); color: var(--teal); border-color: var(--yellow); }
.footer-social .ico { width: 16px; height: 16px; }
.footer-copy { color: #9fb0b8; font-size: .92rem; }
.footer-copy a { color: inherit; text-decoration: none; }
.footer-copy a:hover { color: var(--yellow); }

/* ---------- Responsive nav (CSS-only, no JS) ---------- */
@media (max-width: 767px) {
  .nav-toggle-label {
    display: inline-flex; align-items: center; justify-content: center;
    width: 42px; height: 42px; border-radius: 6px; cursor: pointer;
    background: var(--yellow);
  }
  .nav-toggle-label span, .nav-toggle-label span::before, .nav-toggle-label span::after {
    content: ""; display: block; width: 20px; height: 2px; background: var(--teal); position: relative;
  }
  .nav-toggle-label span::before { position: absolute; top: -6px; }
  .nav-toggle-label span::after { position: absolute; top: 6px; }

  .site-nav {
    position: absolute; top: var(--header-h); left: 0; right: 0;
    background: var(--teal); display: none;
    box-shadow: 0 12px 24px rgba(0,0,0,.25);
  }
  .nav-toggle:checked ~ .site-nav { display: block; }
  .site-nav ul { flex-direction: column; gap: 0; padding: .5rem 0; }
  .site-nav a { display: block; padding: .9rem 1.25rem; }
}
