/* =========================================================
   Garnet Group — static rebuild of the WordPress/Elementor site
   ========================================================= */

:root {
  /* Brand colours */
  --ink: #070B29;
  --navy: #183858;
  --blue: #07538A;
  --teal: #00617B;
  --purple: #651C66;
  --white: #FFFFFF;
  --surface: #F8FBFD;
  --line: #DCE5EC;
  --header-blue: #083B87;
  --header-border: #0B2870;

  /* Card tints */
  --tint-cognito: #E7F4FF;
  --tint-incom: #FFF3E5;
  --tint-electrotide: #ECFBFF;
  --tint-baffll: #FBEEFF;

  /* Fonts */
  --font-head: Arial, Helvetica, sans-serif;
  --font-body: "Trebuchet MS", Helvetica, sans-serif;
  --font-script: "Caveat", cursive;

  --container: 1536px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.45;
  color: var(--ink);
  background: var(--white);
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p { margin: 0; }
a { color: inherit; }

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

/* ---------- Header ---------- */
.site-header {
  padding: 0 70px;
  background: url("images/garnet-header-waves.png") center / cover no-repeat;
}
.header-inner {
  display: flex;
  align-items: center;
}
.header-logo { width: 29%; flex-shrink: 0; }
.header-logo img { width: 59%; }

.header-tagline {
  width: 71%;
  min-height: 110px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  padding: 8px 0 8px 48px;
  border-left: 2px solid var(--header-border);
  font-family: var(--font-head);
  font-size: 30px;
  line-height: 1.3;
  color: var(--header-blue);
}
.tagline-top { font-weight: 400; letter-spacing: 3.2px; }
.tagline-main { font-weight: 700; letter-spacing: 1.3px; }
.sep { padding: 0 .35em; }
.sep-orange { color: #FF851B; }
.sep-green  { color: #8BC51B; }
.sep-blue   { color: #20B9DB; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 350px;
  padding: 48px 70px;
  display: flex;
  align-items: center;
  background: var(--surface) url("images/Hero-Banner.webp") center / cover no-repeat;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255,255,255,.96) 32%, rgba(255,255,255,0) 86%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.hero-content {
  width: 62%;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.eyebrow {
  font-size: 12px;
  line-height: 1.4;
  letter-spacing: 4px;
}
.hero h1 {
  font-family: var(--font-head);
  font-size: 54px;
  font-weight: 800;
  line-height: 1.03;
  letter-spacing: -1.3px;
  color: var(--ink);
  margin-bottom: 10px;
}
.hero-intro {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.35;
}
.color-bar {
  display: flex;
  width: 190px;
  margin: 8px 0 2px;
}
.color-bar span { flex: 1; height: 3px; background: var(--c); }

.values {
  font-size: 11px;
  line-height: 1.7;
  letter-spacing: 2px;
}

.hero-quote-wrap {
  width: 30%;
  align-self: flex-start;
  display: flex;
  padding-right: 44px;
}
.hero-quote {
  width: 250px;
  max-width: 250px;
  transform: rotate(-12deg);
  text-align: center;
  font-family: var(--font-script);
  font-size: 37px;
  font-weight: 600;
  font-style: italic;
  line-height: .95;
  color: var(--navy);
}

.hero-mobile { display: none; }

/* ---------- Companies ---------- */
.companies { padding: 52px 44px 32px; }
.section-title {
  text-align: center;
  font-family: var(--font-head);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 4px;
  color: var(--ink);
  margin-bottom: 22px;
}

.cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: stretch;
  gap: 20px 12px;
}
.card {
  --accent: var(--blue);
  width: 24%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 0 10px rgba(0,0,0,.5);
  background: var(--tint);
}
.card img { width: 100%; }
.card--cognito     { --accent: var(--blue);   --tint: var(--tint-cognito); }
.card--incom       { --accent: var(--navy);   --tint: var(--tint-incom); }
.card--electrotide { --accent: var(--teal);   --tint: var(--tint-electrotide); }
.card--baffll      { --accent: var(--purple); --tint: var(--tint-baffll); }

.card-body {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px 22px;
}
.card h3 {
  font-family: var(--font-head);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--accent);
}
.card-label {
  font-size: 11px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 2px;
  color: var(--accent);
}
.card-desc {
  font-size: 14px;
  line-height: 1.35;
}
.card-cta {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  align-self: flex-start;
  padding: 12px 16px;
  border-radius: 12px;
  background: var(--accent);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
  transition: filter .2s ease, transform .2s ease;
}
.btn:hover, .btn:focus-visible { filter: brightness(1.15); transform: translateY(-1px); }
.btn .icon { width: 1em; height: 1em; fill: currentColor; flex-shrink: 0; }

/* ---------- Footer ---------- */
.site-footer {
  margin-top: 50px;
  padding: 44px 48px 24px;
  background: var(--navy);
  color: var(--white);
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.copyright {
  font-size: 11px;
  line-height: 1.5;
}

/* =========================================================
   Tablet (≤1000px)
   ========================================================= */
@media (max-width: 1000px) {
  .site-header { padding: 0; }
  .header-inner { padding: 26px 24px; }
  .header-logo { width: 31%; padding-right: 24px; }
  .header-logo img { width: 100%; }
  .header-tagline { width: 69%; padding-left: 15px; font-size: 18px; }

  .hero { padding: 30px 28px; }
  .hero-content { width: 72%; }
  .hero h1 { font-size: 42px; }
  .hero-intro { font-size: 17px; }
  .hero-quote-wrap { width: 26%; padding-right: 0; }
  .hero-quote { font-size: 34px; }

  .companies { padding: 24px; }
  .card { width: 48%; }
  .card-desc { font-size: 16px; }
}

/* =========================================================
   Mobile (≤620px)
   ========================================================= */
@media (max-width: 620px) {
  .header-inner { padding: 10px 15px; }
  .header-logo { width: 30%; padding-right: 10px; }
  .header-tagline {
    width: 70%;
    min-height: 0;
    padding: 0 0 0 15px;
    gap: 4px;
  }
  .tagline-top { font-size: 9px; }
  .tagline-main { font-size: 12px; }

  /* Desktop hero hidden; mobile banner image shown instead */
  .hero { display: none; }
  .hero-mobile { display: block; }
  .hero-mobile img { width: 100%; }

  .companies { padding: 24px 20px; }
  .card { width: 100%; }
  .card h3 { font-size: 22px; }

  .site-footer { padding: 28px 22px; }
}
