/* ═══════════════════════════════════════════════════════
   DREDGE PARTNERS — Design System v6 (Problem-First)
   Brand: Manrope · Blue #0E90DA · Copper #B85C3C
   ═══════════════════════════════════════════════════════ */

/* ── Variables ─────────────────────────────────────────── */
:root {
  --blue:     #0E90DA;
  --navy:     #0E90DA;
  --navy-d:   #0A5C8A;
  --copper:   #B85C3C;
  --copper-d: #8E4128;
  --ink:      #1B2A38;
  --slate:    #5A6B7A;
  --muted:    #8A9BA8;
  --line:     #E4E0D6;
  --ivory:    #F7F4EE;
  --paper:    #FFFFFF;
  --error:    #DC3545;
  --success:  #28A745;

  --font: 'Manrope', system-ui, -apple-system, sans-serif;
  --nav-h: 72px;
  --max-w: 1180px;
  --r: 4px;
  --section-pad: clamp(4rem, 7vw, 6.5rem);
}

/* ── Reset ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.72;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; transition: color 0.2s ease; }
ul, ol { list-style: none; }
address { font-style: normal; }

/* ── Typography ────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: var(--font);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: var(--navy-d);
  margin-bottom: 1rem;
}
h1 { font-size: clamp(2.625rem, 5.5vw, 4.75rem); }
h2 { font-size: clamp(1.875rem, 3.5vw, 2.875rem); margin-bottom: 1.5rem; }
h3 { font-size: 1.125rem; font-weight: 700; letter-spacing: -0.015em; }
h4 { font-size: 1rem; font-weight: 700; letter-spacing: -0.01em; }
p { color: var(--ink); }
p.lead {
  font-size: 1.0625rem;
  font-weight: 500;
  color: var(--navy);
  line-height: 1.68;
  margin-bottom: 2rem;
}
p.desc {
  font-size: 0.9375rem;
  color: var(--slate);
  font-style: italic;
  margin-bottom: 2.5rem;
}

/* ── Buttons ────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0.875rem 1.75rem;
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  border: none;
  border-radius: var(--r);
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}
.btn-primary {
  background: var(--navy);
  color: white;
}
.btn-primary:hover { background: var(--navy-d); }
.btn-sm { padding: 0.625rem 1.25rem; font-size: 0.875rem; }
.btn-block {
  width: 100%;
  display: block;
  padding: 1rem 1.75rem;
  text-align: center;
}
.btn-text {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--navy);
  font-size: 0.9375rem;
  font-weight: 600;
  padding: 0.5rem 0;
  text-decoration: none;
  position: relative;
}
.btn-text:hover {
  color: var(--navy-d);
}

/* ── Layout ─────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 4vw, 3.5rem);
}
.section {
  padding: var(--section-pad) 0;
}
.section--ivory { background: var(--ivory); }
.section--navy {
  background: var(--navy-d);
  color: white;
}
.section--navy h2,
.section--navy h3,
.section--navy h4 { color: white; }
.section-intro {
  text-align: center;
  margin-bottom: 3rem;
}
.section-intro h2 {
  margin-bottom: 1.25rem;
}

/* ── Navigation ────────────────────────────────────────── */
header {
  position: sticky;
  top: 0;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  z-index: 100;
}
.nav {
  display: flex;
  align-items: center;
  height: var(--nav-h);
  padding: 0 clamp(1.5rem, 4vw, 3.5rem);
}
.nav-inner {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  flex-shrink: 0;
}
.nav-logo svg { width: 28px; height: 32px; }
.nav-logo-text { display: none; }
@media (min-width: 600px) {
  .nav-logo-text { display: inline; }
}
.nav-links {
  display: none;
  flex: 1;
  margin: 0 1.5rem;
  gap: 1.75rem;
}
@media (min-width: 900px) {
  .nav-links {
    display: flex;
  }
  .nav-links a {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--slate);
    border-bottom: 2px solid transparent;
    padding-bottom: 4px;
    transition: all 0.2s ease;
    white-space: nowrap;
  }
  .nav-links a:hover {
    color: var(--navy);
    border-bottom-color: var(--navy);
  }
}
@media (min-width: 1100px) {
  .nav-links {
    gap: 2.5rem;
    margin: 0 2rem;
  }
}
.nav-right {
  display: none;
}
@media (min-width: 900px) {
  .nav-right { display: flex; }
}
.nav-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  border-radius: 1px;
  transition: all 0.3s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: rotate(45deg) translate(10px, 10px);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}
@media (min-width: 900px) {
  .nav-toggle { display: none; }
}
.nav-mobile-menu {
  display: none;
  flex-direction: column;
  gap: 1rem;
  padding: 1.5rem 1.5rem 2rem;
  background: var(--ivory);
  border-top: 1px solid var(--line);
}
.nav-mobile-menu.open {
  display: flex;
}
@media (min-width: 900px) {
  .nav-mobile-menu { display: none !important; }
}
.nav-mobile-menu a {
  font-size: 0.9375rem;
  color: var(--slate);
  padding: 0.5rem 0;
}

/* ── Hero ───────────────────────────────────────────────── */
.hero {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 2.5rem;
  align-items: center;
  padding: calc(var(--nav-h) + 2.5rem) clamp(1.5rem, 4vw, 3.5rem) 2.5rem;
}
@media (max-width: 768px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: calc(var(--nav-h) + 1.5rem) clamp(1.5rem, 4vw, 3.5rem) 2rem;
  }
}
.hero-content { z-index: 1; }
.hero-headline {
  font-size: clamp(2rem, 4vw, 3.75rem);
  line-height: 1.2;
  margin-bottom: 1.25rem;
  color: var(--navy-d);
  max-width: 90%;
  word-spacing: -0.05em;
}
.hero-headline-list {
  margin: 0;
}
.hero-header {
  font-size: clamp(1.875rem, 3.5vw, 2.875rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--navy-d);
  margin-bottom: 1rem;
  margin-top: 0;
}
.hero-bullets-card {
  background: #f5f5f5;
  border-radius: var(--r);
  padding: 2rem;
  margin-bottom: 2rem;
}
.hero-bullets {
  list-style: disc;
  padding-left: 2rem;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.hero-bullets li {
  font-size: clamp(1.5rem, 2.5vw, 2.25rem);
  line-height: 1.3;
  color: var(--navy-d);
  font-weight: 700;
  margin-left: 0.75rem;
}
.hero-subline {
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--navy);
  margin-bottom: 2rem;
  margin-top: 1rem;
}
.hero-actions {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}
.hero-photo {
  background-size: cover;
  background-position: center;
  min-height: 340px;
  border-radius: var(--r);
  box-shadow: 0 10px 30px rgba(14, 144, 218, 0.08);
}

/* ── Barriers Grid (asymmetric 2+1) ──────────────────── */
.barriers-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  margin-top: 3rem;
}
@media (max-width: 768px) {
  .barriers-grid {
    grid-template-columns: 1fr;
  }
}
.barrier-card--wide {
  grid-column: 1 / -1;
}

/* ── Solution & Case Grids (3-column) ──────────────────── */
.solution-grid,
.case-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem;
  margin-top: 3rem;
}
@media (max-width: 768px) {
  .solution-grid,
  .case-grid {
    grid-template-columns: 1fr;
  }
}

.barrier-card,
.solution-card,
.case-card {
  padding: 2.5rem;
  border: 1px solid var(--line);
  border-radius: var(--r);
  transition: all 0.3s ease;
}
.barrier-card:hover,
.solution-card:hover,
.case-card:hover {
  border-color: var(--navy);
  box-shadow: 0 8px 24px rgba(14, 144, 218, 0.08);
}

/* Solution card copper connectors */
.solution-card {
  position: relative;
  padding-top: 5.5rem;
}
.solution-icon {
  width: 48px;
  height: 48px;
  color: var(--copper);
  margin: 0 auto 1.5rem;
  display: block;
  stroke-width: 1.5px;
}

.barrier-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  background: var(--copper);
  color: white;
  font-size: 1.375rem;
  font-weight: 800;
  border-radius: 50%;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 12px rgba(184, 92, 60, 0.15);
}

.barrier-card h3,
.solution-card h3,
.case-card h4 {
  margin-bottom: 0.75rem;
  color: var(--navy-d);
}

.barrier-card p,
.solution-card p {
  color: var(--slate);
  font-size: 0.9375rem;
  line-height: 1.7;
  margin-bottom: 1rem;
}

.barrier-impact {
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  font-size: 0.875rem;
  color: var(--navy);
  font-weight: 600;
}

.solution-outcome {
  margin-top: 1.5rem;
  padding: 1rem;
  background: var(--ivory);
  border-radius: var(--r);
  font-size: 0.875rem;
  color: var(--navy-d);
}

/* ── Proof Section ─────────────────────────────────────── */
.proof-highlights {
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr;
  gap: 2rem;
  margin: 3rem 0;
}
@media (max-width: 768px) {
  .proof-highlights {
    grid-template-columns: 1fr;
  }
}
.proof-stat {
  text-align: center;
  padding: 2rem;
  background: var(--ivory);
  border-radius: var(--r);
}
.proof-stat:first-child .proof-stat-number {
  color: var(--copper);
}
.proof-stat-number {
  display: block;
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 0.5rem;
}
.proof-stat-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--copper);
  margin-bottom: 1rem;
}
.proof-stat p {
  font-size: 0.875rem;
  color: var(--slate);
}
.proof-narrative {
  max-width: 700px;
  margin: 3rem auto;
  padding: 2.5rem;
  background: var(--ivory);
  border-left: 3px solid var(--navy);
  border-radius: var(--r);
}
.proof-narrative h3 { color: var(--navy-d); margin-bottom: 1rem; }
.proof-narrative p { color: var(--slate); margin-bottom: 1rem; }
.proof-narrative p:last-child { margin-bottom: 0; }

/* ── About Us Section ──────────────────────────────────── */
.section--about {
  background: linear-gradient(rgba(184, 92, 60, 0.03), rgba(184, 92, 60, 0.03));
}
.founders-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  margin-top: 3rem;
  max-width: 700px;
}
.founder-card {
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  transition: all 0.3s ease;
  display: flex;
  gap: 1.5rem;
}
.founder-card:hover {
  box-shadow: 0 12px 32px rgba(14, 144, 218, 0.1);
}
.founder-photo {
  width: 140px;
  min-width: 140px;
  height: 140px;
  background-size: cover;
  background-position: center;
  border-radius: var(--r);
  transition: transform 0.3s ease;
  margin: 1.5rem 0 1.5rem 1.5rem;
}
.founder-card:hover .founder-photo {
  transform: scale(1.04);
}
.founder-card h3 {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--navy-d);
  margin: 1.5rem 1.5rem 0 0;
  flex: 1;
}
.founder-card > div:last-child {
  flex: 1;
  padding-right: 1.5rem;
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.founder-role {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--copper);
  margin: 0;
}
.founder-credentials {
  font-size: 0.875rem;
  color: var(--slate);
  line-height: 1.6;
  margin: 0;
  padding: 0;
  border-bottom: none;
}
.founder-credentials strong {
  color: var(--navy-d);
  font-weight: 600;
}
.founder-philosophy {
  font-size: 0.9375rem;
  font-style: italic;
  color: var(--navy);
  margin: 0.5rem 0 0 0;
  font-weight: 500;
  line-height: 1.7;
}

/* ── Gallery Section ───────────────────────────────────── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}
@media (max-width: 1024px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 768px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }
}
.gallery-item {
  overflow: hidden;
  border-radius: var(--r);
  box-shadow: 0 8px 24px rgba(14, 144, 218, 0.08);
  transition: all 0.3s ease;
}
.gallery-item:hover {
  box-shadow: 0 12px 36px rgba(14, 144, 218, 0.15);
  transform: translateY(-4px);
}
.gallery-item img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  display: block;
}

/* ── Case Studies Grid ──────────────────────────────────── */
.case-card {
  background: var(--paper);
}
.case-type {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--copper);
  margin-bottom: 1rem;
}
.case-card h4 {
  margin-bottom: 1.25rem;
}
.case-challenge,
.case-solution,
.case-result {
  font-size: 0.9375rem;
  line-height: 1.7;
  margin-bottom: 1rem;
  color: var(--slate);
}
.case-challenge strong,
.case-solution strong,
.case-result strong {
  color: var(--navy-d);
}

/* ── Models Layout ─────────────────────────────────────── */
.models-wrapper {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}
@media (max-width: 768px) {
  .models-wrapper {
    grid-template-columns: 1fr;
  }
}
.model {
  padding: 2.5rem;
  border: 1px solid var(--line);
  border-left: 4px solid var(--copper);
  border-radius: var(--r);
  background: var(--paper);
  transition: all 0.3s ease;
}
.model:hover {
  border-color: var(--navy);
  box-shadow: 0 8px 24px rgba(14, 144, 218, 0.08);
}
.model-header {
  margin-bottom: 1.5rem;
  border-bottom: 2px solid var(--navy);
  padding-bottom: 1rem;
}
.model-header h3 {
  color: var(--navy-d);
  margin-bottom: 0.5rem;
}
.model-pricing {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--copper);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.model p {
  font-size: 0.9375rem;
  color: var(--slate);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}
.model-includes {
  padding: 1rem;
  background: var(--ivory);
  border-radius: var(--r);
  font-size: 0.875rem;
  color: var(--navy-d);
}
.model-includes strong {
  color: var(--navy);
}

/* ── Fit Comparison Grid ───────────────────────────────── */
.fit-comparison {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  margin-top: 2.5rem;
}
@media (max-width: 768px) {
  .fit-comparison {
    grid-template-columns: 1fr;
  }
}
.fit-column h3 {
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--copper);
  margin-bottom: 1.5rem;
  color: var(--navy-d);
}
.fit-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.fit-list li {
  display: flex;
  gap: 12px;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--slate);
}
.fit-list li::before {
  content: '✓';
  flex-shrink: 0;
  color: var(--success);
  font-weight: 700;
  font-size: 1.25rem;
}
.fit-no .fit-list li::before {
  content: '✗';
  color: var(--error);
}

/* ── Contact Section ───────────────────────────────────– */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}
@media (max-width: 768px) {
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}
.contact-intro h2 {
  color: var(--navy-d);
  margin-bottom: 1rem;
}
.contact-intro p {
  font-size: 1.0625rem;
  color: var(--slate);
  line-height: 1.7;
}

.contact-form-wrapper {
  display: flex;
  flex-direction: column;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--navy-d);
}

.form-group input,
.form-group textarea {
  padding: 0.875rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--r);
  font-family: var(--font);
  font-size: 0.9375rem;
  color: var(--ink);
  transition: all 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(14, 144, 218, 0.08);
}

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

.contact-direct {
  padding: 2rem;
  background: var(--ivory);
  border-radius: var(--r);
  text-align: center;
}

.contact-direct p {
  font-size: 0.9375rem;
  margin-bottom: 0.75rem;
}

.contact-direct a {
  color: var(--navy);
  font-weight: 600;
}

.contact-direct a:hover {
  color: var(--navy-d);
}

/* ── Footer ────────────────────────────────────────────── */
footer {
  background: var(--navy-d);
  color: white;
  padding: 3rem 0 2rem;
  margin-top: 4rem;
}

footer h4 {
  color: white;
  font-size: 1rem;
  margin-bottom: 1rem;
}

footer p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9375rem;
  line-height: 1.6;
}

footer a {
  color: rgba(255, 255, 255, 0.8);
}

footer a:hover {
  color: white;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 3rem;
  margin-bottom: 2rem;
  padding: 0 clamp(1.5rem, 4vw, 3.5rem);
  max-width: var(--max-w);
  margin-left: auto;
  margin-right: auto;
}

.footer-bottom {
  text-align: center;
  padding: 2rem clamp(1.5rem, 4vw, 3.5rem) 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.6);
}

/* ── Reveal animations ─────────────────────────────────── */
.reveal {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 {
  animation-delay: 0.2s;
}

.reveal-delay-2 {
  animation-delay: 0.4s;
}

/* ── Utility classes ───────────────────────────────────── */
@media (max-width: 600px) {
  h1 { font-size: 1.75rem; }
  h2 { font-size: 1.5rem; }
  .section { padding: 3rem 0; }
}
