/* ============================================
   Wimbury Hargreaves — Global Stylesheet
   ============================================ */

:root {
  --navy:      #0D1B2A;
  --navy-2:    #1A2F45;
  --navy-3:    #2E4057;
  --gold:      #C8973A;
  --gold-l:    #E8B84B;
  --gold-soft: rgba(200, 151, 58, 0.12);
  --white:     #FFFFFF;
  --cream:     #F7F3EC;
  --l-gray:    #E8EDF2;
  --m-gray:    #8FA3B1;
  --d-gray:    #4A5A6A;
  --text:      #1A2F45;
  --text-mute: #5A6A7A;

  --serif:     "Cormorant Garamond", Georgia, serif;
  --sans:      "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --max-w:     1280px;
  --gutter:    24px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: all 0.25s ease; }

/* Typography ============================================ */

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--navy);
}

h1 { font-size: clamp(2.5rem, 5.5vw, 4.5rem); }
h2 { font-size: clamp(2rem, 4vw, 3.25rem); }
h3 { font-size: clamp(1.4rem, 2vw, 1.75rem); }
h4 { font-size: 1.15rem; font-family: var(--sans); font-weight: 600; letter-spacing: 0; }

p { font-size: 1rem; color: var(--text-mute); }
p.lead { font-size: 1.2rem; color: var(--text); line-height: 1.5; }

.eyebrow {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}

/* Layout ============================================ */

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

section { padding: 100px 0; }
section.tight { padding: 70px 0; }

@media (max-width: 768px) {
  section { padding: 60px 0; }
  section.tight { padding: 40px 0; }
}

/* Navigation ============================================ */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  background: rgba(13, 27, 42, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  z-index: 100;
}

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 14px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo {
  display: flex;
  align-items: center;
  height: 50px;
}
.brand-logo img { height: 100%; width: auto; }

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

.nav-links a {
  color: var(--l-gray);
  font-size: 0.9rem;
  font-weight: 500;
  position: relative;
  padding: 6px 0;
}

.nav-links a:hover, .nav-links a.active { color: var(--gold-l); }

.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 1.5px;
  background: var(--gold);
}

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

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.6rem;
  cursor: pointer;
}

@media (max-width: 880px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--navy);
    flex-direction: column;
    padding: 24px;
    gap: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
  .brand-logo { height: 40px; }
}

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 32px;
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  border: none;
  cursor: pointer;
  transition: all 0.25s ease;
  border-radius: 2px;
}

.btn-primary { background: var(--gold); color: var(--navy); }
.btn-primary:hover {
  background: var(--gold-l);
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(200, 151, 58, 0.3);
}

.btn-ghost { background: transparent; color: var(--white); border: 1.5px solid var(--white); }
.btn-ghost:hover { background: var(--white); color: var(--navy); }

.btn-outline { background: transparent; color: var(--navy); border: 1.5px solid var(--navy); }
.btn-outline:hover { background: var(--navy); color: var(--white); }

.btn-arrow::after {
  content: "→";
  font-size: 1.1rem;
  transition: transform 0.25s ease;
}
.btn-arrow:hover::after { transform: translateX(4px); }

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

.hero {
  background: var(--navy);
  color: var(--white);
  padding: 170px 0 110px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: 38%;
  background: linear-gradient(135deg, var(--navy-2), var(--navy));
  border-left: 2px solid var(--gold);
  z-index: 0;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(200, 151, 58, 0.05) 1px, transparent 0);
  background-size: 32px 32px;
  z-index: 0;
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero h1, .hero h2 { color: var(--white); }
.hero h1 { margin: 18px 0 24px; }

.hero-sectors {
  font-family: var(--serif);
  font-style: italic;
  color: var(--gold-l);
  font-size: 1.3rem;
  margin: 18px 0 28px;
}

.hero-desc {
  font-size: 1.1rem;
  color: var(--l-gray);
  max-width: 520px;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin-top: 36px;
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.hero-stat {
  background: rgba(46, 64, 87, 0.6);
  border-left: 3px solid var(--gold);
  padding: 22px 26px;
  backdrop-filter: blur(8px);
}

.hero-stat-num {
  font-family: var(--serif);
  font-size: 2.6rem;
  font-weight: 600;
  color: var(--gold-l);
  line-height: 1;
  margin-bottom: 6px;
}

.hero-stat-label {
  font-size: 0.85rem;
  color: var(--l-gray);
  letter-spacing: 0.05em;
}

@media (max-width: 880px) {
  .hero { padding: 130px 0 80px; }
  .hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .hero::before { width: 100%; opacity: 0.3; }
}

/* Page header ============================================ */

.page-header {
  background: var(--navy);
  color: var(--white);
  padding: 150px 0 80px;
  position: relative;
  overflow: hidden;
  border-bottom: 2px solid var(--gold);
}

.page-header::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(200, 151, 58, 0.05) 1px, transparent 0);
  background-size: 32px 32px;
}

.page-header-inner {
  position: relative;
  z-index: 2;
  max-width: 820px;
}

.page-header h1 { color: var(--white); margin-top: 18px; }
.page-header p {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.35rem;
  color: var(--gold-l);
  margin-top: 20px;
  line-height: 1.4;
}

/* Section header ============================================ */

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

.section-head .eyebrow { display: block; margin-bottom: 14px; }
.section-head p { margin-top: 18px; font-size: 1.1rem; }

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

.card {
  background: var(--white);
  border: 1px solid rgba(13, 27, 42, 0.08);
  padding: 36px 30px;
  transition: all 0.3s ease;
  height: 100%;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(13, 27, 42, 0.1);
}

.card-icon {
  width: 52px;
  height: 52px;
  background: var(--gold);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 1.4rem;
  color: var(--navy);
}

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

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

@media (max-width: 980px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* Service cards ============================================ */

.svc-card {
  background: var(--navy);
  color: var(--l-gray);
  padding: 0;
  border-top: 4px solid var(--gold);
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: transform 0.3s ease;
}
.svc-card:hover { transform: translateY(-6px); }

.svc-card-head {
  padding: 32px 28px 18px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}
.svc-card-num {
  font-family: var(--serif);
  font-size: 2.4rem;
  font-weight: 600;
  color: var(--gold);
  line-height: 1;
}
.svc-card-icon {
  width: 44px; height: 44px;
  background: var(--gold);
  border-radius: 50%;
  color: var(--navy);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}
.svc-card-body { padding: 0 28px 24px; flex-grow: 1; }
.svc-card h3 { color: var(--white); margin-bottom: 8px; }
.svc-card-tag {
  display: inline-block;
  background: var(--gold-soft);
  color: var(--gold-l);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 12px;
  margin-bottom: 18px;
}
.svc-card-what {
  font-style: italic;
  font-family: var(--serif);
  font-size: 1.1rem;
  color: var(--l-gray);
  margin-bottom: 20px;
  line-height: 1.4;
}
.svc-card ul { list-style: none; margin: 0; }
.svc-card li {
  padding: 8px 0 8px 22px;
  position: relative;
  font-size: 0.95rem;
  color: var(--l-gray);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.svc-card li:first-child { border-top: none; padding-top: 4px; }
.svc-card li::before {
  content: "";
  position: absolute;
  left: 0; top: 16px;
  width: 12px; height: 1.5px;
  background: var(--gold);
}
.svc-card-foot {
  background: rgba(0, 0, 0, 0.25);
  padding: 18px 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.svc-card-foot strong {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 6px;
}
.svc-card-foot span { font-size: 0.9rem; color: var(--l-gray); }

/* Case study cards ============================================ */

.case-card {
  background: var(--white);
  border: 1px solid rgba(13, 27, 42, 0.1);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
}
.case-card:hover {
  border-color: var(--gold);
  box-shadow: 0 18px 40px rgba(13, 27, 42, 0.1);
}
.case-card-meta {
  font-size: 0.82rem;
  color: var(--text-mute);
  font-style: italic;
  margin-top: 6px;
}
.case-tag {
  display: inline-block;
  padding: 6px 14px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.case-tag.gold { background: var(--gold-soft); color: var(--gold); }
.case-tag.blue { background: rgba(74, 144, 196, 0.12); color: #4A90C4; }
.case-tag.green { background: rgba(91, 173, 111, 0.12); color: #2D7A47; }

/* Triggers list ============================================ */

.triggers {
  background: var(--navy);
  color: var(--l-gray);
  padding: 50px 44px;
  border-left: 3px solid var(--gold);
}
.triggers h3 { color: var(--white); margin-bottom: 10px; }
.triggers .eyebrow { color: var(--gold); }
.triggers ul {
  margin-top: 26px;
  list-style: none;
  column-count: 2;
  column-gap: 36px;
}
.triggers li {
  padding: 12px 0 12px 26px;
  position: relative;
  font-size: 1rem;
  color: var(--l-gray);
  break-inside: avoid;
}
.triggers li::before {
  content: "→";
  position: absolute; left: 0; top: 11px;
  color: var(--gold);
  font-weight: 700;
}
@media (max-width: 700px) {
  .triggers ul { column-count: 1; }
  .triggers { padding: 36px 28px; }
}

/* About / bio ============================================ */

.bio {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 60px;
  align-items: start;
}
.bio-photo {
  position: relative;
  aspect-ratio: 4 / 5;
  background: linear-gradient(135deg, var(--navy-2), var(--navy));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-family: var(--serif);
  font-size: 1.1rem;
  font-style: italic;
  border: 1px solid var(--gold);
  overflow: hidden;
}
.bio-photo img { width: 100%; height: 100%; object-fit: cover; }
.bio-photo::after {
  content: "";
  position: absolute;
  bottom: -8px; right: -8px;
  width: 60%; height: 60%;
  border: 2px solid var(--gold);
  z-index: -1;
}
.bio-text h2 { margin-bottom: 20px; }
.bio-text p + p { margin-top: 16px; }
.bio-text p { font-size: 1.05rem; color: var(--text); line-height: 1.7; }

.bio-meta {
  margin-top: 32px;
  padding-top: 28px;
  border-top: 1px solid rgba(13, 27, 42, 0.1);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.bio-meta-item strong {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 4px;
}
.bio-meta-item span { font-size: 0.95rem; color: var(--text); }

@media (max-width: 880px) {
  .bio { grid-template-columns: 1fr; gap: 36px; }
  .bio-photo { max-width: 280px; }
}

/* Differentiator cards ============================================ */

.diff-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.diff-card {
  background: var(--white);
  border-left: 3px solid var(--gold);
  padding: 28px 32px;
  display: flex;
  gap: 20px;
  align-items: flex-start;
  transition: all 0.3s ease;
}
.diff-card:hover { box-shadow: 0 12px 30px rgba(13, 27, 42, 0.08); }
.diff-icon {
  flex-shrink: 0;
  width: 44px; height: 44px;
  background: var(--gold-soft);
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}
.diff-card h4 { color: var(--navy); margin-bottom: 6px; }
.diff-card p { font-size: 0.95rem; line-height: 1.5; }

@media (max-width: 700px) {
  .diff-grid { grid-template-columns: 1fr; }
}

/* CTA banner ============================================ */

.cta-banner {
  background: var(--navy);
  color: var(--white);
  padding: 80px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(200, 151, 58, 0.07) 1px, transparent 0);
  background-size: 28px 28px;
}
.cta-banner > * { position: relative; z-index: 2; }
.cta-banner h2 { color: var(--white); max-width: 680px; margin: 0 auto 20px; }
.cta-banner p {
  color: var(--l-gray);
  font-size: 1.15rem;
  max-width: 580px;
  margin: 0 auto 32px;
}
.cta-banner-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

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

.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 70px;
  align-items: start;
}
@media (max-width: 920px) {
  .contact-grid { grid-template-columns: 1fr; gap: 50px; }
}

.form { display: flex; flex-direction: column; gap: 20px; }
.form-field { display: flex; flex-direction: column; gap: 8px; }
.form-field label {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
}
.form-field input, .form-field select, .form-field textarea {
  border: none;
  border-bottom: 1.5px solid rgba(13, 27, 42, 0.2);
  padding: 12px 0;
  font-size: 1rem;
  font-family: var(--sans);
  color: var(--text);
  background: transparent;
  transition: border-color 0.2s ease;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: none;
  border-bottom-color: var(--gold);
}
.form-field textarea { resize: vertical; min-height: 120px; }
.form-msg {
  margin-top: 8px;
  padding: 16px;
  font-size: 0.92rem;
  display: none;
}
.form-msg.success { background: rgba(91, 173, 111, 0.1); color: #2D7A47; display: block; }
.form-msg.error { background: rgba(180, 60, 60, 0.08); color: #8B2E2E; display: block; }

.contact-info { background: var(--cream); padding: 44px 38px; }
.contact-info h3 { margin-bottom: 18px; }
.contact-info-item {
  display: flex;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid rgba(13, 27, 42, 0.08);
}
.contact-info-item:last-child { border-bottom: none; }
.contact-info-item-icon {
  width: 40px; height: 40px;
  background: var(--gold);
  color: var(--navy);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact-info-item strong {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 4px;
}
.contact-info-item p, .contact-info-item a { font-size: 1rem; color: var(--text); }
.contact-info-item a:hover { color: var(--gold); }

.book-call-box {
  background: var(--navy);
  color: var(--white);
  padding: 32px 30px;
  margin-top: 26px;
  border-left: 3px solid var(--gold);
}
.book-call-box h4 { color: var(--white); margin-bottom: 10px; font-size: 1.1rem; }
.book-call-box p { color: var(--l-gray); font-size: 0.95rem; margin-bottom: 18px; }

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

footer {
  background: var(--navy);
  color: var(--l-gray);
  padding: 70px 0 30px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 50px;
}
@media (max-width: 800px) {
  .footer-inner { grid-template-columns: 1fr; gap: 36px; }
}
.footer-logo { width: 280px; margin-bottom: 18px; }
footer h5 {
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
  font-family: var(--sans);
  font-weight: 600;
}
footer p { color: var(--m-gray); font-size: 0.92rem; line-height: 1.6; }
footer ul { list-style: none; }
footer li { padding: 6px 0; }
footer li a { color: var(--l-gray); font-size: 0.95rem; }
footer li a:hover { color: var(--gold); }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--m-gray);
  flex-wrap: wrap;
  gap: 12px;
}

/* Animations ============================================ */

.fade-in {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.js-enabled .fade-in {
  opacity: 0;
  transform: translateY(20px);
}
.js-enabled .fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero .brand-mark-hero, .hero h1, .hero-desc, .hero-actions, .hero-stat {
  animation: fadeUp 0.8s ease both;
}
.hero h1 { animation-delay: 0.1s; }
.hero-sectors { animation-delay: 0.2s; animation: fadeUp 0.8s ease 0.2s both; }
.hero-desc { animation-delay: 0.3s; }
.hero-actions { animation-delay: 0.4s; }
.hero-stat:nth-child(1) { animation-delay: 0.3s; }
.hero-stat:nth-child(2) { animation-delay: 0.45s; }
.hero-stat:nth-child(3) { animation-delay: 0.6s; }
