/* =========================================================
   Flowbridge Consulting Limited — Site Stylesheet
   Brand palette derived from logo: navy + blue wave gradient
   ========================================================= */

:root {
  --navy: #1c3a5e;
  --blue: #2f7fb8;
  --light-blue: #6fb8e3;
  --pale-blue: #eaf4fb;
  --grey: #5a6878;
  --light-grey: #f4f7f9;
  --white: #ffffff;
  --border: #e1e8ed;
  --max-width: 1140px;
  --radius: 8px;
  --shadow: 0 2px 12px rgba(28, 58, 94, 0.08);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  color: var(--grey);
  line-height: 1.65;
  background: var(--white);
}

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

a {
  color: var(--blue);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--navy);
}

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

h1, h2, h3, h4 {
  font-family: 'Segoe UI Semibold', 'Helvetica Neue', Arial, sans-serif;
  color: var(--navy);
  font-weight: 700;
  line-height: 1.25;
}

h1 { font-size: 2.6rem; }
h2 { font-size: 2rem; margin-bottom: 1rem; }
h3 { font-size: 1.3rem; margin-bottom: 0.5rem; }

p { margin-bottom: 1rem; }

.section {
  padding: 72px 0;
}

.section-alt {
  background: var(--light-grey);
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 48px;
}

.section-header p {
  color: var(--grey);
}

.eyebrow {
  display: inline-block;
  color: var(--blue);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.8rem;
  margin-bottom: 12px;
}

/* ===================== Header / Nav ===================== */

.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--navy);
}

.logo .logo-mark {
  flex-shrink: 0;
  height: 40px;
  width: auto;
}

.logo .logo-name {
  flex-shrink: 0;
  height: 30px;
  width: auto;
}

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

.nav-links a {
  color: var(--navy);
  font-weight: 600;
  font-size: 0.95rem;
}

.nav-links a.active {
  color: var(--blue);
}

.nav-cta {
  background: var(--navy);
  color: var(--white) !important;
  padding: 10px 22px;
  border-radius: var(--radius);
  font-weight: 600;
}

.nav-cta:hover {
  background: var(--blue);
}

.nav-toggle {
  display: none;
}

/* ===================== Hero ===================== */

.hero {
  position: relative;
  background: linear-gradient(135deg, var(--navy) 0%, var(--blue) 100%);
  color: var(--white);
  overflow: hidden;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 100px 0 130px;
  max-width: 640px;
}

.hero h1 {
  color: var(--white);
  margin-bottom: 20px;
}

.hero p {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.9);
  margin-bottom: 32px;
}

.hero-waves {
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  line-height: 0;
  z-index: 1;
}

.page-hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--blue) 100%);
  color: var(--white);
  padding: 64px 0;
  position: relative;
  overflow: hidden;
}

.page-hero h1 {
  color: var(--white);
  margin-bottom: 12px;
}

.page-hero p {
  color: rgba(255,255,255,0.9);
  max-width: 640px;
  margin-bottom: 0;
}

/* ===================== Buttons ===================== */

.btn {
  display: inline-block;
  padding: 13px 30px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-primary {
  background: var(--white);
  color: var(--navy) !important;
}

.btn-primary:hover {
  background: var(--pale-blue);
}

.btn-outline {
  border-color: rgba(255,255,255,0.6);
  color: var(--white) !important;
}

.btn-outline:hover {
  background: rgba(255,255,255,0.12);
}

.btn-navy {
  background: var(--navy);
  color: var(--white) !important;
}

.btn-navy:hover {
  background: var(--blue);
}

/* ===================== Cards / Grids ===================== */

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  align-items: center;
}

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
  height: 100%;
}

.card .icon {
  width: 48px;
  height: 48px;
  margin-bottom: 18px;
}

.card h3 {
  margin-bottom: 10px;
}

.card p {
  margin-bottom: 0;
}

/* ===================== Why We Exist ===================== */

.why-section {
  background: var(--navy);
}

.why-inner {
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
}

.why-section .eyebrow {
  color: var(--light-blue);
}

.why-quote {
  font-size: 1.45rem;
  font-style: italic;
  line-height: 1.55;
  color: var(--white);
  margin: 20px 0 28px;
  border: none;
  padding: 0;
}

.why-quote em {
  font-style: normal;
  color: var(--light-blue);
}

.why-body {
  color: rgba(255, 255, 255, 0.78);
  font-size: 1rem;
  line-height: 1.75;
  margin-bottom: 16px;
}

.why-body:last-child {
  margin-bottom: 0;
}

/* ===================== FPH Banner ===================== */

.fph-banner {
  background: var(--pale-blue);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.fph-banner .fph-text {
  flex: 1;
  min-width: 260px;
}

.fph-banner h3 {
  margin-bottom: 8px;
}

.fph-banner p {
  margin-bottom: 0;
  color: var(--grey);
}

/* ===================== Stats ===================== */

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}

.stats .stat-number {
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--blue);
}

.stats .stat-label {
  color: var(--grey);
  font-size: 0.9rem;
}

/* ===================== Lists ===================== */

code {
  background: var(--pale-blue);
  color: var(--navy);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.85em;
}

.check-list {
  list-style: none;
}

.check-list li {
  padding-left: 30px;
  position: relative;
  margin-bottom: 12px;
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--blue);
  font-weight: 700;
}

/* ===================== Contact ===================== */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 48px;
}

.contact-info .contact-item {
  margin-bottom: 28px;
}

.contact-info .contact-item h4 {
  color: var(--navy);
  margin-bottom: 4px;
  font-size: 1rem;
}

.contact-info .contact-item p {
  margin-bottom: 0;
}

form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

form label {
  display: block;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 6px;
  font-size: 0.9rem;
}

form input,
form select,
form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 0.95rem;
  margin-bottom: 18px;
  color: var(--navy);
}

form input:focus,
form select:focus,
form textarea:focus {
  outline: 2px solid var(--light-blue);
  border-color: var(--blue);
}

form textarea {
  resize: vertical;
  min-height: 130px;
}

.form-note {
  font-size: 0.83rem;
  color: var(--grey);
  margin-top: 10px;
  margin-bottom: 0;
  line-height: 1.5;
}

/* ===================== Footer ===================== */

.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,0.85);
  padding: 56px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.2fr;
  gap: 32px;
  margin-bottom: 40px;
}

.footer-grid h4 {
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 16px;
}

.footer-grid ul {
  list-style: none;
}

.footer-grid li {
  margin-bottom: 10px;
}

.footer-grid a {
  color: rgba(255,255,255,0.75);
  font-size: 0.92rem;
}

.footer-grid a:hover {
  color: var(--white);
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 14px;
}

.footer-logo-mark {
  height: 34px;
  width: auto;
}

.footer-logo-name {
  height: 26px;
  width: auto;
}

.footer-legal {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.55);
  margin-bottom: 16px;
}

.footer-legal p {
  margin-bottom: 0;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
}

.footer-bottom a {
  color: rgba(255,255,255,0.75);
}

.footer-bottom a:hover {
  color: var(--white);
}

/* ===================== Responsive ===================== */

/* --- Hamburger button (hidden on desktop) --- */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-shrink: 0;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* --- Tablet: 860px --- */
@media (max-width: 860px) {

  /* Nav */
  .nav-toggle {
    display: flex;
  }

  .site-header {
    position: sticky;
    top: 0;
  }

  .nav-wrap {
    position: relative;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: stretch;
    padding: 12px 24px 20px;
    gap: 4px;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 6px 16px rgba(28,58,94,0.1);
    z-index: 200;
  }

  .nav-links.nav-open {
    display: flex;
  }

  .nav-links li {
    width: 100%;
  }

  .nav-links a {
    display: block;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
  }

  .nav-links li:last-child a {
    border-bottom: none;
  }

  .nav-cta {
    display: block;
    text-align: center;
    margin-top: 8px;
    padding: 12px 22px;
  }

  /* Typography */
  h1 { font-size: 2rem; }
  h2 { font-size: 1.65rem; }

  /* Section padding */
  .section { padding: 52px 0; }
  .page-hero { padding: 48px 0; }

  /* Hero */
  .hero-content {
    padding: 72px 0 110px;
    max-width: 100%;
  }

  /* Hero buttons — wrap nicely */
  .hero-content .btn {
    margin-bottom: 12px;
  }

  /* Grids */
  .grid-3,
  .stats {
    grid-template-columns: 1fr 1fr;
  }

  .grid-2,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  form .form-row {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  /* Footer bottom — stack items */
  .footer-bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }

  /* Cards */
  .card {
    padding: 24px;
  }
}

/* --- Mobile: 600px --- */
@media (max-width: 600px) {

  h1 { font-size: 1.75rem; }
  h2 { font-size: 1.4rem; }
  h3 { font-size: 1.15rem; }

  .section { padding: 40px 0; }
  .page-hero { padding: 36px 0; }

  /* WHY section quote — override inline font-size */
  .section[style*="background:#1c3a5e"] p[style*="font-size:1.45rem"] {
    font-size: 1.15rem !important;
  }

  /* Hero */
  .hero-content {
    padding: 56px 0 90px;
  }

  /* Grids go single column */
  .grid-3,
  .stats,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  /* Stats — horizontal pair on small mobile */
  .stats {
    grid-template-columns: 1fr 1fr;
  }

  /* FPH banner */
  .fph-banner {
    padding: 28px 24px;
    flex-direction: column;
    align-items: flex-start;
  }

  /* Contact */
  .contact-grid {
    gap: 32px;
  }

  /* Container breathing room */
  .container {
    padding: 0 16px;
  }
}
