/* =========================================================
   Bourne Consulting LLC — styles.css (ONE FILE)
   Stable layout system — no duplicates — production-safe
   Welcoming color upgrade (Navy + Corporate Blue + Soft Warm Accents)
   ========================================================= */

/* -------------------------
   1) Reset / Base
------------------------- */
*{ box-sizing: border-box; }
html, body{ height: 100%; }
body{
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  color: #0B1220;
  background: #F6F8FC;
  line-height: 1.5;
}
img{ max-width: 100%; height: auto; display: block; }
a{ color: inherit; text-decoration: none; }
button, input, textarea, select{ font: inherit; }
:focus-visible{ outline: 3px solid rgba(37,99,235,.38); outline-offset: 2px; }

/* Nice selection color */
::selection{ background: rgba(37,99,235,.18); }

/* -------------------------
   2) Design Tokens (Welcoming Palette)
------------------------- */
:root{
  /* === Logo-matched core (from your screenshot) === */
  --brand-navy: #1C1C2E;       /* deep header/nav navy */
  --brand-ink:  #0B1220;       /* text / deepest navy */
  --brand-wine: #734247;       /* hero + premium accent (burgundy) */
  --brand-wine-2:#5F3238;      /* deeper wine for hover */
  --brand-gold: #BAA67E;       /* logo gold (antique) */
  --brand-gold-2:#A58E61;      /* darker gold for borders */

  /* Warm neutrals to match the gold */
  --cream: #FFF4EA;
  --panel: #F2F6FD;
  --bg: #F6F8FC;
  --white: #FFFFFF;
  --border: #E4E9F2;
  --muted: #5F6C85;
  --ink: var(--brand-ink);

  /* Layout (THIS fixes the “stretched” look) */
  --container: 1120px;
  --gutter: 20px;
  --page-pad: clamp(24px, 5vw, 72px); /* responsive desktop breathing room */
  --header-h: 82px;

  /* Radii */
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 14px;

  /* UI helpers */
  --hover: #EEF3FB;
  --shadow: 0 12px 30px rgba(11,18,32,.08);
  --shadow-soft: 0 8px 24px rgba(11,18,32,.06);

  /* Focus ring (logo-consistent) */
  --ring: rgba(186,166,126,.45);

  /* Gradients that match your screenshot */
  --hero-grad: radial-gradient(1200px 520px at 25% 15%,
      #2B2338 0%,
      var(--brand-navy) 45%,
      #0B0B18 100%);
  --hero-glow: radial-gradient(circle at center,
      rgba(186,166,126,.14),
      transparent 62%);

  --cta-grad: radial-gradient(900px 520px at 20% 20%,
      #2B2338 0%,
      var(--brand-navy) 58%,
      #0B0B18 100%);
}
/* -------------------------
   3) Layout Helpers
------------------------- */
.container{
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--page-pad);
}
.section{ padding: 64px 0; }
.section.tight{ padding: 40px 0; }
.muted{ color: var(--muted); }

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

/* Welcoming section tints (optional classes) */
.section.tint-panel{ background: var(--panel); }
.section.tint-blue{ background: linear-gradient(180deg, rgba(219,234,254,.55), rgba(246,248,252,0)); }
.section.tint-sand{ background: linear-gradient(180deg, rgba(255,246,230,.75), rgba(246,248,252,0)); }
.section.tint-mint{ background: linear-gradient(180deg, rgba(233,251,246,.80), rgba(246,248,252,0)); }

/* -------------------------
   4) Typography
------------------------- */
.h1{
  font-size: clamp(2rem, 4vw, 3.1rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
  font-weight: 900;
}
.h2{
  font-size: clamp(1.55rem, 2.1vw, 2.15rem);
  line-height: 1.15;
  margin: 0 0 16px;
  letter-spacing: -0.015em;
  font-weight: 900;
}
.h3{
  font-size: 1.06rem;
  line-height: 1.2;
  margin: 0 0 10px;
  font-weight: 900;
}
.lead{
  color: rgba(240,246,255,.92);
  font-size: 1.02rem;
  max-width: 74ch;
  margin: 0 0 16px;
}
.note{
  color: rgba(240,246,255,.80);
  font-size: .93rem;
  max-width: 82ch;
  margin: 0;
}

/* -------------------------
   5) Header + Nav (Formal + Stable)
------------------------- */
.site-header{
  position: sticky;
  top: 0;
  z-index: 9999;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}
.header-inner{
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--page-pad);
}

/* Brand */
.brand{
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 260px;
}
.brand-logo{
  height: 44px;
  width: 44px;
  object-fit: contain;
  flex: 0 0 auto;
  filter: drop-shadow(0 2px 6px rgba(11,18,32,.10));
}
.brand-text{
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.brand-name{
  font-size: 18px;
  font-weight: 900;
  letter-spacing: -0.01em;
}
.brand-sub{
  font-size: 12.5px;
  color: var(--muted);
  margin-top: 4px;
}

/* Nav */
.main-nav{
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}
.main-nav a{
  font-weight: 800;
  font-size: 14px;
  padding: 10px 12px;
  border-radius: 999px;
  color: #1F2A44;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  transition: background .15s ease, transform .15s ease, color .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.main-nav a:hover{
  background: var(--hover);
  transform: translateY(-1px);
}

/* Active tab */
.main-nav a.active,
.main-nav a[aria-current="page"]{
  background: var(--navy);
  color: #fff;
  box-shadow: 0 8px 18px rgba(11,18,32,.16);
}

/* Contact CTA */
.main-nav a.nav-cta{
  background: var(--blue);
  color: #fff;
  border: 1px solid rgba(29,78,216,.25);
  box-shadow: 0 10px 18px rgba(37,99,235,.20);
  white-space: nowrap;
  margin-left: 6px;
}
.main-nav a.nav-cta:hover{
  background: var(--blue-600);
  transform: translateY(-1px);
}
.main-nav a.nav-cta.active,
.main-nav a.nav-cta[aria-current="page"]{
  background: var(--navy);
  border-color: rgba(255,255,255,.12);
  color: #fff;
}

/* Breathing room below sticky header */
main{ padding-top: 18px; }

/* -------------------------
   6) Buttons (Welcoming + Corporate)
------------------------- */
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 999px;
  padding: 11px 16px;
  font-weight: 900;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, border-color .15s ease, color .15s ease;
}
.btn:hover{ transform: translateY(-1px); }

/* Primary = white with blue edge */
.btn.primary{
  background: #fff;
  color: var(--ink);
  border-color: rgba(37,99,235,.30);
  box-shadow: 0 10px 22px rgba(11,18,32,.10);
}
.btn.primary:hover{
  border-color: rgba(37,99,235,.55);
  box-shadow: 0 12px 26px rgba(11,18,32,.14);
}

/* Solid blue (more welcoming CTA) */
.btn.blue{
  background: var(--blue);
  color: #fff;
  border-color: rgba(29,78,216,.22);
  box-shadow: 0 10px 18px rgba(37,99,235,.22);
}
.btn.blue:hover{ background: var(--blue-600); }

/* Warm accent option (subtle gold polish) */
.btn.warm{
  background: #fff;
  color: var(--ink);
  border-color: rgba(212,175,55,.45);
  box-shadow: 0 10px 22px rgba(212,175,55,.12);
}
.btn.warm:hover{
  border-color: rgba(212,175,55,.70);
  box-shadow: 0 12px 26px rgba(212,175,55,.16);
}

/* Dark = translucent on dark backgrounds */
.btn.dark{
  background: rgba(255,255,255,.12);
  color: #fff;
  border-color: rgba(255,255,255,.18);
}
.btn.dark:hover{ border-color: rgba(219,234,254,.45); }

/* Outline */
.btn.outline{
  background: #fff;
  color: var(--ink);
  border-color: var(--border);
}
.btn.outline:hover{
  border-color: rgba(37,99,235,.70);
  box-shadow: 0 10px 22px rgba(11,18,32,.10);
}

/* -------------------------
   7) Cards (Welcoming polish)
------------------------- */
.card{
  background: rgba(255,255,255,.96);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 26px;
  box-shadow: var(--shadow-soft);
}
.card p{
  margin: 0;
  color: var(--muted);
  font-size: .96rem;
  line-height: 1.6;
  max-width: 70ch;
}

/* Accent cards (optional) */
.card-accent{
  border-color: rgba(37,99,235,.22);
  box-shadow: 0 12px 28px rgba(37,99,235,.10);
}
.card-warm{
  border-color: rgba(212,175,55,.22);
  box-shadow: 0 12px 28px rgba(212,175,55,.10);
}
.card-mint{
  background: linear-gradient(180deg, rgba(233,251,246,.75), rgba(255,255,255,.96));
}

/* -------------------------
   8) Hero (Homepage) — more welcoming glow
------------------------- */
.hero{ padding: 12px 0 0; }

.hero-card{
  background: var(--hero-grad);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 42px;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.hero-card::after{
  content:"";
  position: absolute;
  inset: -120px -140px auto auto;
  width: 520px;
  height: 520px;
  background: var(--hero-glow);
  transform: rotate(18deg);
}

/* Warm secondary glow (very subtle) */
.hero-card::before{
  content:"";
  position: absolute;
  left: -220px;
  top: -220px;
  width: 520px;
  height: 520px;
  background: radial-gradient(circle at center, rgba(212,175,55,.10), transparent 62%);
}

.kicker{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(37,99,235,.28);
  color: rgba(240,246,255,.92);
  font-weight: 900;
  font-size: .84rem;
}
.hero-actions{
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 14px;
}
.cta-row{
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 12px;
}

/* -------------------------
   9) Jobs Cards Row (Homepage)
------------------------- */
.jobs-row{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin-top: 26px;
}
.job-card{
  background: rgba(255,255,255,.98);
  border: 1px solid var(--border);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.job-card:hover{
  transform: translateY(-2px);
  border-color: rgba(37,99,235,.28);
  box-shadow: 0 14px 34px rgba(11,18,32,.10);
}
.job-wrap{ position: relative; }
.job-img{
  width: 100%;
  height: 220px;
  object-fit: cover;
  object-position: 50% 18%;
}
.job-tag{
  position: absolute;
  left: 14px;
  bottom: 14px;
  background: rgba(255,255,255,.96);
  border: 1px solid rgba(37,99,235,.18);
  border-radius: 999px;
  padding: 10px 14px;
  font-weight: 900;
  color: var(--ink);
  box-shadow: 0 10px 18px rgba(11,18,32,.10);
}

/* -------------------------
   10) Inner Page Banner (optional)
------------------------- */
.page-hero{ margin-top: 14px; }
.page-hero .banner{
  background: linear-gradient(135deg, #0B1220 0%, #101B33 55%, #0B1220 100%);
  border-radius: var(--radius-lg);
  padding: 34px;
  color: #fff;
  box-shadow: var(--shadow);
  border: 1px solid rgba(37,99,235,.14);
}
.page-hero .banner .title{
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  font-weight: 950;
  margin: 0 0 10px;
}
.page-hero .banner .desc{
  color: rgba(240,246,255,.86);
  max-width: 75ch;
  margin: 0;
}

/* -------------------------
   11) Steps / Lists
------------------------- */
.steps{
  margin: 10px 0 0;
  padding-left: 18px;
  color: var(--muted);
}
.steps li{ margin: 8px 0; }

/* -------------------------
   12) Forms (Blue focus)
------------------------- */
.form-card{
  background: rgba(255,255,255,.98);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px;
  box-shadow: var(--shadow-soft);
}
.field{
  display: grid;
  gap: 8px;
  margin: 14px 0;
}
label{
  font-weight: 900;
  font-size: 13px;
  color: #1F2A44;
}
input, textarea, select{
  width: 100%;
  border: 1px solid #D7DFEC;
  border-radius: 12px;
  padding: 12px 12px;
  background: #fff;
  outline: none;
  font-size: 14px;
}
input:focus, textarea:focus, select:focus{
  border-color: rgba(37,99,235,.70);
  box-shadow: 0 0 0 4px rgba(37,99,235,.18);
}
textarea{ min-height: 120px; resize: vertical; }

/* -------------------------
   13) CTA Band (Welcoming)
------------------------- */
.cta-band{
  background: var(--cta-grad);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(37,99,235,.16);
  position: relative;
  overflow: hidden;
}
.cta-band::after{
  content:"";
  position: absolute;
  right: -200px;
  top: -200px;
  width: 520px;
  height: 520px;
  background: radial-gradient(circle at center, rgba(212,175,55,.10), transparent 62%);
}
.cta-band .title{
  font-size: 1.55rem;
  font-weight: 950;
  margin: 0 0 6px;
}
.cta-band .sub{
  color: rgba(240,246,255,.86);
  margin: 0 0 10px;
}

/* -------------------------
   14) Footer
------------------------- */
.site-footer{
  margin-top: 28px;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  padding: 18px 0;
  background: linear-gradient(180deg, rgba(255,246,230,.28), transparent);
}
.footer-inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #2B3550;
  font-size: 14px;
}
.license{
  font-weight: 900;
  color: #2B3550;
}

/* -------------------------
   15) Floating WhatsApp
------------------------- */
.whatsapp{
  position: fixed;
  right: 16px;
  bottom: 16px;
  background: #25D366;
  color: #fff;
  font-weight: 950;
  border-radius: 999px;
  padding: 14px 18px;
  box-shadow: 0 16px 40px rgba(0,0,0,.18);
  z-index: 99999;
  transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}
.whatsapp:hover{ transform: translateY(-1px); filter: brightness(1.02); }
/* -------------------------
   Layout alignment fix (prevent stretched look)
------------------------- */
.page-hero,
.hero,
.section,
.site-footer{
  max-width: var(--container);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}
/* -------------------------
   16) Quality-of-life hardening
------------------------- */
html{
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

/* Underline body links for clarity (keep nav/buttons clean) */
a:hover{ text-decoration: underline; text-underline-offset: 3px; }
.main-nav a:hover,
.btn:hover,
.whatsapp:hover{ text-decoration: none; }

/* Stronger focus ring on dark surfaces */
.hero-card a:focus-visible,
.hero-card button:focus-visible,
.cta-band a:focus-visible,
.cta-band button:focus-visible{
  outline: 3px solid rgba(219,234,254,.75);
  outline-offset: 3px;
}

/* Motion sensitivity */
@media (prefers-reduced-motion: reduce){
  *{
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}/* -------------------------
   Hero Media (Page Images)
------------------------- */
.hero-media{
  max-width: var(--container);
  margin: 22px auto;
  padding: 0 var(--gutter);
}

.hero-media img{
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
}

/* Keeps images from getting too tall on wide screens */
@media (min-width: 992px){
  .hero-media img{
    max-height: 520px;
    object-fit: cover;
  }
}
/* -------------------------
   17) Responsive
------------------------- */
@media (max-width: 980px){
  .header-inner{
    height: auto;
    padding: 14px var(--gutter);
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }
  .brand{ min-width: 0; }
  .main-nav{
    justify-content: flex-start;
    width: 100%;
    gap: 8px;
  }
  .grid-3{ grid-template-columns: 1fr; }
  .grid-2{ grid-template-columns: 1fr; }
  .jobs-row{ grid-template-columns: 1fr; }
  .hero-card{ padding: 30px; }
}

@media (max-width: 520px){
  .brand-logo{ height: 38px; width: 38px; }
  .brand-name{ font-size: 17px; }
  .brand-sub{ font-size: 12px; }
  .hero-actions .btn{ width: 100%; }
  .cta-row .btn{ width: 100%; }
  .card{ padding: 20px; }
  .hero-card{ border-radius: 24px; }
}
/* =========================
   TABLES (Fix jumbled layout)
========================= */
.table-wrap{
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius-md);
}

.table{
  width: 100%;
  min-width: 760px;              /* prevents squishing */
  border-collapse: separate;     /* allows spacing */
  border-spacing: 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.table th,
.table td{
  padding: 14px 16px;            /* key: creates separation */
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--border);
  white-space: normal;
  word-break: break-word;
}

.table thead th{
  background: rgba(219,234,254,.45); /* soft corporate blue tint */
  color: #0B1220;
  font-weight: 900;
}

.table tbody tr:last-child td{
  border-bottom: 0;
}

/* Make the Category column stronger */
.table td:first-child{
  font-weight: 900;
  width: 220px;                  /* locks the first column width */
  color: #0B1220;
}

/* Improve readability in dense rows */
.table td:nth-child(2),
.table td:nth-child(3){
  color: var(--muted);
  line-height: 1.55;
}
/* ===== Header matches logo navy ===== */
.site-header{
  background: rgba(28,28,46,.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(186,166,126,.18);
}
.brand-name, .main-nav a{ color: rgba(255,255,255,.92); }
.brand-sub{ color: rgba(255,255,255,.68); }

.main-nav a:hover{
  background: rgba(255,255,255,.08);
}
.main-nav a.active,
.main-nav a[aria-current="page"]{
  background: rgba(186,166,126,.14);
  color: #fff;
  box-shadow: 0 10px 22px rgba(0,0,0,.25);
}

/* Contact button = wine */
.main-nav a.nav-cta{
  background: var(--brand-wine);
  color: #fff;
  border: 1px solid rgba(186,166,126,.25);
  box-shadow: 0 12px 24px rgba(115,66,71,.22);
}
.main-nav a.nav-cta:hover{
  background: var(--brand-wine-2);
}

/* ===== Hero matches screenshot ===== */
.hero-card,
.page-hero .banner{
  background: var(--hero-grad);
  border: 1px solid rgba(186,166,126,.18);
  box-shadow: 0 16px 40px rgba(0,0,0,.18);
}
.hero-card::after{
  background: var(--hero-glow);
}

/* Kicker pill = wine border + gold tint */
.kicker{
  border: 1px solid rgba(186,166,126,.30);
  background: rgba(115,66,71,.25);
}

/* ===== Buttons: wine + gold polish ===== */
.btn.primary{
  background: var(--brand-wine);
  color: #fff;
  border-color: rgba(186,166,126,.22);
  box-shadow: 0 12px 24px rgba(115,66,71,.22);
}
.btn.primary:hover{
  background: var(--brand-wine-2);
  box-shadow: 0 16px 34px rgba(115,66,71,.28);
}

.btn.outline{
  background: rgba(255,255,255,.92);
  border-color: rgba(186,166,126,.35);
}
.btn.outline:hover{
  border-color: rgba(186,166,126,.60);
  box-shadow: 0 12px 24px rgba(186,166,126,.14);
}

.btn.dark{
  background: rgba(255,255,255,.10);
  border-color: rgba(186,166,126,.22);
}
.btn.dark:hover{
  border-color: rgba(186,166,126,.42);
}

/* Focus ring = gold (logo-consistent) */
:focus-visible{
  outline: 3px solid rgba(186,166,126,.45);
  outline-offset: 2px;
}

/* ===== Optional: warm sections so it feels welcoming ===== */
.section.tint-sand{
  background: linear-gradient(180deg, rgba(255,244,234,.85), rgba(246,248,252,0));
}
/* -------------------------
   Hero Media (Page Images)
------------------------- */
..hero-media{
  max-width: var(--container);
  margin: 16px auto 10px;
  padding: 0 var(--page-pad);
}

/* Option A: full image visible (no crop) */
.hero-media img{
  width: min(450px, 60%);
  height: auto;
  object-fit: contain;
  object-position: center;
  display: block;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}
