/* ============================================================
   BRITEWISE WEBSITE, SHARED STYLESHEET
   ============================================================
   
   HOW TO CUSTOMIZE COLORS & FONTS:
   All core visual settings are in the :root section below.
   Change values there to update the whole site at once.
   ============================================================ */

/* ── DESIGN TOKENS ── */
@font-face {
  font-family: 'Montserrat';
  src: url('../fonts/Montserrat-SemiBold.ttf') format('truetype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Montserrat';
  src: url('../fonts/Montserrat-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Montserrat';
  src: url('../fonts/Montserrat-ExtraBold.ttf') format('truetype');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Open Sans';
  src: url('../fonts/OpenSans-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Open Sans';
  src: url('../fonts/OpenSans-SemiBold.ttf') format('truetype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --color-blue:       #0033a1;   /* Primary brand color, nav accents, headings, buttons */
  --color-blue-dark:  #002882;   /* Hover state */
  --color-green:      #76bd22;   /* Secondary, highlights, bullets, dividers */
  --color-green-dark: #5fa01b;   /* Hover for green elements */
  --color-text:       #111111;   /* Body text, near black */
  --color-text-light: #555555;   /* Secondary / caption text */
  --color-bg:         #ffffff;
  --color-bg-alt:     #f5f7fa;   /* Light grey section backgrounds */
  --color-border:     #e0e6f0;
  --color-white:      #ffffff;

  --font-display: 'Montserrat', sans-serif;
  --font-body:    'Open Sans', sans-serif;

  --max-width: 1100px;
  --header-height: 72px;

  /* Hero height, intentionally shorter than original */
  --hero-height: 260px;
}

/* ── RESET & BASE ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  font-size: 16px;
  line-height: 1.75;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-blue); text-decoration: none; }
a:hover { color: var(--color-blue-dark); text-decoration: underline; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.25;
}

/* Default heading colors */
h1, h2 { color: var(--color-blue); }
h3, h4  { color: var(--color-blue); }

/* ============================================================
   NAVIGATION
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-white);
  border-bottom: 3px solid var(--color-green);
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

/* LOGO: change the img src in each HTML file's <a class="site-logo"> */
.site-logo img { height: 46px; width: auto; }

.nav-links {
  display: flex;
  list-style: none;
  gap: 2px;
  flex-wrap: wrap;
  align-items: center;
}

.nav-links a {
  display: block;
  padding: 6px 11px;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--color-text);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 3px;
  transition: color 0.2s, background 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--color-blue);
  background: rgba(0,51,161,0.07);
  text-decoration: none;
}

/* "Looking for a Job" CTA button in nav */
.nav-links .nav-cta a {
  background: var(--color-blue);
  color: var(--color-white);
  border-radius: 4px;
  padding: 7px 14px;
}
.nav-links .nav-cta a:hover {
  background: var(--color-blue-dark);
  color: var(--color-white);
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  display: block;
  width: 26px;
  height: 3px;
  background: var(--color-blue);
  border-radius: 2px;
}

@media (max-width: 900px) {
  .nav-toggle { display: flex; }
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: var(--header-height);
    left: 0; right: 0;
    background: var(--color-white);
    border-top: 1px solid var(--color-border);
    padding: 12px 0 16px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    gap: 0;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 10px 24px; font-size: 0.88rem; }
  .nav-links .nav-cta a { margin: 8px 24px 0; text-align: center; }
}

/* ============================================================
   HERO / PAGE BANNER
   
   To swap images: change the background-image inline style on
   the .hero element in each page's HTML.
   To adjust height: change --hero-height in :root above.
   ============================================================ */
.hero {
  height: var(--hero-height);
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: flex-end;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top,
    rgba(0,0,0,0.6) 0%,
    rgba(0,0,0,0.2) 55%,
    transparent 100%);
}

.hero-label {
  position: relative;
  z-index: 1;
  padding: 22px 32px;
  color: var(--color-white);
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-shadow: 0 1px 6px rgba(0,0,0,0.6);
}

/* ============================================================
   LAYOUT UTILITIES
   ============================================================ */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section       { padding: 64px 0; }
.section-alt   { background: var(--color-bg-alt); }
.section-sm    { padding: 40px 0; }

.section-title {
  font-size: 1.8rem;
  margin-bottom: 14px;
  text-align: center;
  color: var(--color-blue);
}

.section-subtitle {
  text-align: center;
  color: var(--color-text-light);
  margin-bottom: 44px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  font-size: 1.02rem;
}

/* Green rule accent under headings */
.section-title + .green-rule {
  display: block;
  width: 52px;
  height: 4px;
  background: var(--color-green);
  border-radius: 2px;
  margin: 0 auto 40px;
}

/* ── BUTTONS ── */
.btn {
  display: inline-block;
  padding: 12px 30px;
  border-radius: 4px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.88rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
  border: 2px solid transparent;
  cursor: pointer;
}

.btn-primary {
  background: var(--color-blue);
  color: var(--color-white);
}
.btn-primary:hover {
  background: var(--color-blue-dark);
  color: var(--color-white);
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(0,51,161,0.28);
}

.btn-green {
  background: var(--color-green);
  color: var(--color-white);
}
.btn-green:hover {
  background: var(--color-green-dark);
  color: var(--color-white);
  text-decoration: none;
}

.btn-outline {
  background: transparent;
  border-color: var(--color-blue);
  color: var(--color-blue);
}
.btn-outline:hover {
  background: var(--color-blue);
  color: var(--color-white);
  text-decoration: none;
}

.btn-group {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 36px;
}

/* ── GREEN DIVIDER ── */
.green-divider {
  border: none;
  border-top: 3px solid var(--color-green);
  width: 60px;
  margin: 0 auto 36px;
}

/* ============================================================
   HOME PAGE, SERVICE OPTIONS (3 columns)
   ============================================================ */
.service-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 36px;
}

.service-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 36px 24px;
  border-right: 1px solid var(--color-border);
}

.service-option:last-child { border-right: none; }

.service-option img {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin: 0 auto 18px;
}

.service-option h4 {
  font-size: 1rem;
  color: var(--color-blue);
  margin-bottom: 8px;
}

.service-option p {
  font-size: 0.93rem;
  color: var(--color-text-light);
  font-style: italic;
}

@media (max-width: 680px) {
  .service-options { grid-template-columns: 1fr; }
  .service-option { border-right: none; border-bottom: 1px solid var(--color-border); }
  .service-option:last-child { border-bottom: none; }
}

/* ============================================================
   HOME PAGE, HOW IT WORKS (icon + text, 2-col grid)
   The original site uses a 3×2 layout. We keep that structure
   but present it in a clean two-column grid on desktop.
   ============================================================ */
.process-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px 28px;
}

.process-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.process-item img {
  width: 90px;
  height: 90px;
  object-fit: contain;
  margin-bottom: 16px;
}

.process-item h4 {
  font-size: 0.97rem;
  color: var(--color-blue);
  margin-bottom: 10px;
}

.process-item p {
  font-size: 0.9rem;
  color: var(--color-text-light);
}

@media (max-width: 760px) {
  .process-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .process-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   HOME PAGE, COMMON ISSUES bullet list
   ============================================================ */
.issues-list {
  list-style: none;
  max-width: 740px;
  margin: 0 auto;
}

.issues-list li {
  padding: 11px 0 11px 28px;
  position: relative;
  border-bottom: 1px solid var(--color-border);
  font-size: 0.97rem;
}

.issues-list li:first-child { border-top: 1px solid var(--color-border); }

.issues-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 10px;
  height: 10px;
  background: var(--color-green);
  border-radius: 50%;
}

/* ============================================================
   HOME PAGE, BRITEWISE DIFFERENCE (icon-bullet rows)
   ============================================================ */
.difference-list {
  list-style: none;
  max-width: 820px;
  margin: 0 auto;
  display: grid;
  gap: 28px;
}

.difference-item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--color-border);
}

.difference-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.difference-item img {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  object-fit: contain;
  margin-top: 4px;
}

.difference-item h4 {
  font-size: 1rem;
  color: var(--color-blue);
  margin-bottom: 6px;
}

.difference-item p {
  font-size: 0.93rem;
  color: var(--color-text-light);
  margin: 0;
}

/* ============================================================
   HOME PAGE, TESTIMONIALS
   ============================================================ */
.testimonials {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.testimonial {
  background: var(--color-white);
  border-left: 4px solid var(--color-green);
  border-radius: 0 6px 6px 0;
  padding: 22px 26px;
  font-style: italic;
  font-size: 0.97rem;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.testimonial cite {
  display: block;
  font-style: normal;
  font-weight: 700;
  color: var(--color-blue);
  margin-top: 12px;
  font-size: 0.85rem;
}

/* ============================================================
   SERVICES PAGE
   ============================================================ */
.services-badges {
  display: flex;
  gap: 0;
  justify-content: center;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 48px;
}

.service-badge {
  text-align: center;
  flex: 1;
  padding: 36px 20px;
  border-right: 1px solid var(--color-border);
}
.service-badge:last-child { border-right: none; }

.service-badge img {
  width: 90px;
  height: 90px;
  object-fit: contain;
  margin: 0 auto 14px;
}

.service-badge h4 {
  font-size: 0.97rem;
  color: var(--color-blue);
  margin-bottom: 6px;
}

.service-badge p {
  font-size: 0.88rem;
  color: var(--color-text-light);
  font-style: italic;
}

@media (max-width: 600px) {
  .services-badges { flex-direction: column; }
  .service-badge { border-right: none; border-bottom: 1px solid var(--color-border); }
  .service-badge:last-child { border-bottom: none; }
}

.comparison-image {
  max-width: 860px;
  margin: 0 auto;
  border-radius: 8px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.1);
}

/* ============================================================
   TEAM PAGE
   ============================================================ */
.team-member {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 48px;
  align-items: start;
  padding: 52px 0;
  border-bottom: 1px solid var(--color-border);
}

.team-member:first-child { padding-top: 0; }
.team-member:last-child  { border-bottom: none; }

/* Alternate layout: even members flip photo to right */
.team-member.flip {
  grid-template-columns: 1fr 220px;
}
.team-member.flip .team-photo { order: 2; }
.team-member.flip .team-bio   { order: 1; }

/* TEAM PHOTO: square headshots, ~300×300px minimum recommended */
.team-photo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.team-photo img {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
  border: 5px solid var(--color-green);
  box-shadow: 0 4px 20px rgba(0,51,161,0.15);
}

.team-photo .member-name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-blue);
  text-align: center;
  margin: 0;
}

.team-photo .member-title {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--color-green);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-align: center;
}

.team-bio { padding-top: 8px; }

.team-bio p {
  font-size: 0.97rem;
  color: var(--color-text);
  margin-bottom: 0;
  line-height: 1.8;
}

@media (max-width: 700px) {
  .team-member,
  .team-member.flip {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .team-member.flip .team-photo,
  .team-member.flip .team-bio { order: unset; }
  .team-photo img { width: 160px; height: 160px; }
}

/* ============================================================
   SUCCESS STORIES
   ============================================================ */
.story-card {
  display: grid;
  grid-template-columns: 210px 1fr;
  gap: 28px;
  align-items: center;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 28px;
  margin-bottom: 28px;
  transition: box-shadow 0.2s, border-color 0.2s;
}

.story-card:hover {
  box-shadow: 0 6px 20px rgba(0,51,161,0.1);
  border-color: var(--color-blue);
}

.story-card img  { width: 100%; border-radius: 6px; }
.story-card h3   { font-size: 1.1rem; margin-bottom: 10px; color: var(--color-blue); }
.story-card p    { font-size: 0.93rem; color: var(--color-text-light); margin-bottom: 16px; }

@media (max-width: 600px) {
  .story-card { grid-template-columns: 1fr; }
}

/* Individual story page */
.story-hero-image {
  width: 100%;
  max-width: 700px;
  border-radius: 8px;
  margin: 0 auto 32px;
}

.story-body h2 {
  font-size: 1.2rem;
  margin: 36px 0 0;
  color: var(--color-blue);
  display: block;
}

/* Green rule sits BELOW the subheading, not above */
.story-body h2 + hr {
  border: none;
  border-top: 3px solid var(--color-green);
  width: 44px;
  margin: 8px 0 16px;
}

.story-body p { margin-bottom: 16px; }

.story-quote {
  background: var(--color-bg-alt);
  border-left: 5px solid var(--color-green);
  border-radius: 0 8px 8px 0;
  padding: 22px 28px;
  font-style: italic;
  margin: 32px 0;
  font-size: 1.02rem;
}

.story-quote cite {
  display: block;
  font-style: normal;
  font-weight: 700;
  color: var(--color-blue);
  margin-top: 12px;
  font-size: 0.9rem;
}

/* ============================================================
   ABOUT PAGE
   ============================================================ */
.qa-block       { margin-bottom: 36px; padding-bottom: 36px; border-bottom: 1px solid var(--color-border); }
.qa-block:last-of-type { border-bottom: none; }
.qa-block h3    { font-size: 1.1rem; margin-bottom: 8px; color: var(--color-blue); }
.qa-block p     { font-size: 0.97rem; }

/* ============================================================
   CONTACT / LOOKING FOR STAFF
   ============================================================ */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

@media (max-width: 720px) { .contact-layout { grid-template-columns: 1fr; } }

/* Form: connect to Formspree by updating action="" in looking-for-staff.html */
.contact-form label {
  display: block;
  font-weight: 600;
  font-size: 0.88rem;
  margin-bottom: 5px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--color-text);
  margin-bottom: 18px;
  transition: border-color 0.2s;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--color-blue);
}

.contact-form textarea { min-height: 120px; resize: vertical; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: #0a1a3a;
  color: #bbc5d8;
  padding: 48px 0 24px;
  font-size: 0.88rem;
}

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

.footer-top {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  gap: 40px 48px;
  align-items: start;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  margin-bottom: 20px;
}

@media (max-width: 800px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .footer-top { grid-template-columns: 1fr; }
}

.footer-logo img { height: 38px; filter: brightness(0) invert(1); opacity: 0.85; }

.footer-contact { line-height: 1.9; }
.footer-contact strong { color: #fff; display: block; margin-bottom: 2px; }
.footer-contact a { color: #bbc5d8; }

.footer-nav { display: flex; flex-direction: column; gap: 6px; }
.footer-nav a { color: #9aaac0; transition: color 0.2s; }
.footer-nav a:hover { color: var(--color-white); text-decoration: none; }

.footer-social { display: flex; flex-direction: column; gap: 8px; }
.footer-social a {
  color: #9aaac0;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  transition: color 0.2s;
}
.footer-social a:hover { color: var(--color-white); text-decoration: none; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  color: #6a7a96;
  font-size: 0.83rem;
}

.footer-bottom a { color: #6a7a96; }
.footer-bottom a:hover { color: #bbc5d8; }

/* ============================================================
   UTILITIES
   ============================================================ */
.text-center { text-align: center; }
.mt-sm  { margin-top: 16px; }
.mt-md  { margin-top: 32px; }
.mt-lg  { margin-top: 52px; }

.back-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  background: var(--color-blue);
  color: var(--color-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
  z-index: 50;
  text-decoration: none;
}
.back-to-top.visible { opacity: 1; pointer-events: auto; }

@media (max-width: 480px) {
  .section { padding: 44px 0; }
  .section-title { font-size: 1.45rem; }
  .hero { height: 190px; }
  .hero-label { font-size: 1rem; padding: 14px 20px; }
}
