/* ============================================================
   CUSTOMIZATION TOKENS
   Edit the values below to apply your own colors and fonts.
   Nothing else in this file needs to change to re-theme the site.
   ============================================================ */
:root {
  /* ---- Colors (swap these for your brand colors) ---- */
  --color-primary: #223f45;       /* main dark brand color */
  --color-primary-dark: #172c30;  /* slightly darker, used for gradients/hover */
  --color-accent: #292626;        /* accent brand color */
  --color-text: #1c2430;          /* body text */
  --color-text-muted: #3c4450;    /* secondary text */
  --color-bg: #ffffff;            /* page background */
  --color-bg-alt: #f4f6f8;        /* light section background */
  --color-border: #e3e7ec;

  /* ---- Fonts (swap for your own font families) ---- */
  --font-heading: 'Montserrat', 'Segoe UI', sans-serif;
  --font-body: 'Montserrat', 'Segoe UI', sans-serif;

  /* ---- Layout ---- */
  --container-width: 1180px;
  --header-height: 108px;
}

/* ============================================================
   RESET
   ============================================================ */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
#home, #about, #services, #team, #contact { scroll-margin-top: calc(var(--header-height) + 16px); }
body {
  margin: 0;
  padding-top: var(--header-height);
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--color-primary);
  margin: 0 0 16px;
  line-height: 1.2;
  font-weight: 700;
}
p { margin: 0 0 16px; }
.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 32px;
}
button { font-family: var(--font-body); cursor: pointer; }

/* ============================================================
   HEADER / NAV
   ============================================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  max-width: none;
  width: 100%;
  padding: 0 40px 0 68px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--color-primary);
}
.logo-img { height: 72px; width: auto; display: block; }

.main-nav { display: flex; align-items: center; gap: 36px; }
.nav-link {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 20px;
  color: var(--color-primary);
  padding-bottom: 3px;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s ease;
}
.nav-link:hover,
.nav-link.active { border-bottom-color: var(--color-accent); }

.nav-toggle { display: none; }

/* ============================================================
   CHEVRON DIVIDERS
   Recreates the notched edge between white and colored sections.
   ============================================================ */
.chevron-divider { display: block; width: 100%; line-height: 0; }
.chevron-divider svg { width: 100%; height: 48px; display: block; }
.chevron-divider.point-down svg polygon,
.chevron-divider.point-up svg polygon { fill: currentColor; }
.chevron-divider.on-primary { color: var(--color-primary); }
.chevron-divider.on-bg { color: var(--color-bg); }
.chevron-divider.on-bg-alt { color: var(--color-bg-alt); }

/* ============================================================
   HERO
   ============================================================ */
.hero { position: relative; background: var(--color-bg-alt); }
.hero-media { position: relative; height: 520px; overflow: hidden; }
.hero-image {
  position: absolute;
  top: -3%;
  left: -3%;
  width: 106%;
  max-width: none;
  height: 106%;
  object-fit: cover;
  object-position: center center;
  transform-origin: center bottom;
  will-change: transform, opacity;
  backface-visibility: hidden;
}
.hero-slide {
  opacity: 0;
  transition: opacity 1s ease-in-out;
}
/* No-JS fallback: show the first slide by default so the hero is never
   blank if JavaScript fails to run for any reason. Same specificity as
   the .active/.was-active rules below, which appear later in the
   source and correctly take over once JS applies those classes. */
.hero-slide:first-child { opacity: 1; }
/* Both active and was-active declare the same animation so that
   switching between the two classes doesn't reset/restart it — only
   .was-active additionally pauses it, freezing the current zoom level
   instead of snapping the transform back to unanimated state mid-fade. */
.hero-slide.active,
.hero-slide.was-active {
  animation: heroKenBurns 5.5s ease-out forwards;
}
.hero-slide.active { opacity: 1; z-index: 1; }
.hero-slide.was-active { opacity: 0; animation-play-state: paused; }

/* Minimal zoom for source photos that are already tightly-framed
   close-ups, so the Ken Burns effect doesn't crop into them further
   than object-fit:cover already has to at wide aspect ratios. */
.hero-slide-mild {
  top: -0.5%;
  left: -0.5%;
  width: 101%;
  height: 101%;
}
.hero-slide-mild.active,
.hero-slide-mild.was-active {
  animation: heroKenBurnsMild 5.5s ease-out forwards;
}

/* Shift the visible crop UP for photos whose subject was appearing
   cramped against the top edge. Lowering the Y value reveals more of
   the image's top, which moves the crop window's top boundary up too —
   giving the subject more headroom instead of less. */
.hero-slide-shift-up { object-position: center 25%; }
.hero-slide-top { object-position: center 10%; }

@keyframes heroKenBurns {
  from { transform: scale(1.14); }
  to { transform: scale(1.02); }
}
@keyframes heroKenBurnsMild {
  from { transform: scale(1.025); }
  to { transform: scale(1.005); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-slide.active,
  .hero-slide.was-active { animation: none; }
  .hero-slide { transition: none; }
}
.hero-banner {
  background: var(--color-primary);
  color: #fff;
  padding: 56px 32px;
  text-align: center;
}
.hero-banner h1 {
  color: #fff;
  margin: 0;
  font-size: 36px;
  letter-spacing: 0.3px;
  line-height: 1.15;
}

.page-intro { text-align: center; padding: 160px 0 130px; }
.page-intro h1 { font-size: 54px; margin-bottom: 34px; line-height: 1.08; }
.page-intro p {
  max-width: 1100px;
  margin: 0 auto;
  color: var(--color-text-muted);
  font-size: 24px;
}

/* ============================================================
   TWO-COLUMN FEATURE SECTION (image + bullet list), dark
   ============================================================ */
.feature-section {
  background-color: var(--color-primary);
  color: #fff;
  padding: 110px 0;
}
.feature-section .container { max-width: 1440px; }
.feature-section h2 { color: #fff; font-size: 56px; text-align: center; margin-bottom: 64px; }
.feature-grid {
  display: grid;
  grid-template-columns: 1.1fr 1.3fr;
  gap: 72px;
  align-items: start;
}
.feature-img { width: 100%; height: 480px; object-fit: cover; display: block; }
.feature-list li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 20px;
  font-size: 17px;
}
@media (min-width: 641px) {
  .nowrap-phrase { white-space: nowrap; }
}
.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 8px;
  height: 8px;
  background: #ffffff;
  border-radius: 50%;
}
.feature-grid.reverse { grid-template-columns: 1fr 1fr; }
.feature-grid.reverse .feature-copy { order: -1; }
.feature-clusters { display: flex; flex-direction: column; gap: 30px; }
.feature-cluster-heading {
  font-family: var(--font-heading);
  font-weight: 700;
  font-style: italic;
  font-size: 21px;
  color: #fff;
  margin: 0 0 14px;
}

/* ============================================================
   IMAGE BANNER WITH HEADLINE (full-bleed background image)
   ============================================================ */
.image-banner {
  position: relative;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  padding: 190px 0;
  text-align: center;
}
.image-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(34,63,69,0.55), rgba(34,63,69,0.35));
}
.image-banner .container { position: relative; z-index: 1; }
.image-banner h2 {
  color: #fff;
  font-size: 56px;
  max-width: 900px;
  margin: 0 auto;
}

/* ============================================================
   AREAS OF FOCUS (icon grid)
   ============================================================ */
.focus-section { padding: 160px 0 140px; text-align: center; }
.focus-section .container { max-width: 1320px; }
.focus-section h2 { font-size: 56px; margin-bottom: 56px; }
.focus-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 64px;
}
.focus-item { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.icon-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 178px;
  height: 178px;
  border-radius: 50%;
  background: var(--color-bg-alt);
}
.icon-badge-wide i { transform: translate(6px, 5px); }
.focus-item i {
  display: block;
  line-height: 1;
  font-size: 92px;
  color: #ffffff;
  -webkit-text-stroke: 8px var(--color-primary);
  text-stroke: 8px var(--color-primary);
  paint-order: stroke fill;
}
.focus-item span {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 23px;
  color: var(--color-primary);
}

/* ============================================================
   SERVICE OFFERING CARDS
   ============================================================ */
.services-section { background: var(--color-bg-alt); padding: 150px 0 160px; }
.services-section .container { max-width: 1400px; }
.services-section h2 { font-size: 36px; margin-bottom: 44px; }
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
}
.service-card { background: transparent; }
.service-card img { width: 100%; height: 150px; object-fit: cover; }
.service-card h3 { font-size: 22px; margin: 18px 0 10px; white-space: nowrap; }
.service-card p { color: var(--color-text-muted); font-size: 17px; margin: 0; }

/* ============================================================
   LEADERSHIP TEAM
   ============================================================ */
.team-section { padding: 120px 0 55px; }
.team-section .container { max-width: 1400px; }
.team-section > .container > h2 { text-align: center; font-size: 42px; margin-bottom: 60px; }
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 80px;
}
.team-member {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.team-member img {
  width: 220px;
  height: 260px;
  object-fit: cover;
  border-radius: 6px;
  margin: 0 auto 20px;
  align-self: center;
}
.team-tagline {
  text-align: center;
  font-family: var(--font-heading);
  font-style: italic;
  font-weight: 700;
  text-decoration: underline;
  font-size: 29px;
  color: var(--color-primary);
  margin: 18px 0 0;
}
.covest-credit {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 44px 0 0;
}
.covest-logo { height: 78px; width: auto; }
.covest-credit p {
  font-size: 19px;
  color: var(--color-text-muted);
  text-align: center;
  margin: 0;
}
.team-member h3 { font-size: 22px; margin-bottom: 14px; text-align: left; }
.team-member p { color: var(--color-text-muted); text-align: left; font-size: 15px; }

/* ============================================================
   FOOTER / CONTACT
   ============================================================ */
.site-footer {
  background-color: var(--color-primary);
  color: #fff;
  padding: 70px 0 60px;
  position: relative;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 64px;
}
.footer-brand { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.footer-brand .logo-img { height: 70px; }
.footer-brand .logo { margin-bottom: 12px; }
.footer-address p { margin: 0 0 6px; font-family: var(--font-heading); font-weight: 600; font-size: 17px; }

.footer-form h2 { color: #fff; font-size: 30px; margin-bottom: 22px; }
.footer-form form { display: flex; flex-direction: column; gap: 16px; }
.footer-form input,
.footer-form textarea {
  width: 100%;
  padding: 14px 16px;
  border: none;
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--color-text);
}
.footer-form textarea { min-height: 130px; resize: vertical; }
.form-row { display: flex; gap: 16px; }
.form-row input { flex: 1; }
.footer-form button {
  align-self: flex-start;
  background: var(--color-accent);
  color: #ffffff;
  border: none;
  padding: 14px 34px;
  border-radius: 4px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 15px;
  transition: opacity 0.2s ease;
}
.footer-form button:hover { opacity: 0.85; }
.footer-form button:disabled { opacity: 0.6; cursor: not-allowed; }
.form-status { margin: 12px 0 0; font-size: 14px; min-height: 18px; }
.form-status-success { color: #ffffff; font-weight: 600; }
.form-status-error { color: #ffb4b4; font-weight: 600; }
.footer-copyright {
  text-align: center;
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  margin: 60px 0 0;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .feature-grid, .footer-grid, .team-grid { grid-template-columns: 1fr; gap: 32px; }
  .feature-grid.reverse .feature-copy { order: 0; }
  .focus-grid, .services-grid { grid-template-columns: repeat(2, 1fr); }
  .image-banner h2 { font-size: 32px; }
  .image-banner { background-attachment: scroll; }
  .page-intro h1 { font-size: 40px; }
  .hero-banner h1 { font-size: 31px; }
  .feature-section h2 { font-size: 42px; }
  .main-nav { gap: 22px; }
}
@media (max-width: 640px) {
  :root { --header-height: 76px; }
  .logo-img { height: 54px; }
  .page-intro h1 { font-size: 30px; }
  .hero-banner h1 { font-size: 27px; }
  .feature-section h2 { font-size: 34px; }
  .main-nav {
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--color-bg);
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 16px 32px 24px;
    border-bottom: 1px solid var(--color-border);
    display: none;
  }
  .main-nav.open { display: flex; }
  .nav-toggle {
    display: block;
    background: none;
    border: none;
    width: 30px;
    height: 24px;
    position: relative;
  }
  .nav-toggle span, .nav-toggle::before, .nav-toggle::after {
    content: "";
    position: absolute;
    left: 0; right: 0;
    height: 2px;
    background: var(--color-primary);
  }
  .nav-toggle::before { top: 0; }
  .nav-toggle span { top: 11px; }
  .nav-toggle::after { bottom: 0; }
  .focus-grid { grid-template-columns: repeat(2, 1fr); gap: 32px 16px; }
  .services-grid { grid-template-columns: 1fr; }
  .icon-badge { width: 110px; height: 110px; }
  .focus-item i { font-size: 58px; }
  .icon-badge-wide i { transform: translate(4px, 3px); }
  .form-row { flex-direction: column; }
  .hero-media { height: 320px; }
}
