/* =========================================================
   Farallon Global Services — Shared Stylesheet
   Design language: AtlanticPacifica template
   Brand colors: #1B3A5C navy · #2E7DD1 sky · #C8922A gold
   ========================================================= */

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

:root {
  --navy:      #1B3A5C;
  --navy-dark: #0F2335;
  --blue:      #254E78;
  --sky:       #2E7DD1;
  --gold:      #C8922A;
  --light:     #F4F7FB;
  --white:     #FFFFFF;
  --text:      #1A2535;
  --muted:     #5B6E88;
  --border:    #E0EAF4;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', 'Helvetica Neue', sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.65;
}

/* ─── TYPOGRAPHY ─── */
h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(38px, 5vw, 64px);
  font-weight: 700; line-height: 1.08;
  color: var(--white); margin-bottom: 24px;
}
h1 em { color: var(--gold); font-style: normal; }

h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 700; color: var(--navy);
  line-height: 1.15; margin-bottom: 20px;
}

h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 22px; color: var(--navy); margin-bottom: 14px;
}

h4 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 17px; color: var(--navy); margin-bottom: 10px;
}

p { color: var(--muted); line-height: 1.78; }

.section-tag {
  display: inline-block; font-size: 11px; font-weight: 600;
  letter-spacing: 3px; text-transform: uppercase;
  color: var(--sky); margin-bottom: 16px;
}

.section-lead {
  font-size: 17px; line-height: 1.8;
  color: var(--muted); max-width: 620px;
}

/* ─── NAV ─── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 5%;
  min-height: 112px;
  background: rgba(27, 58, 92, 0.97);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.nav-logo { display: flex; align-items: center; text-decoration: none; }
.nav-logo-img { height: 100px; width: auto; display: block; }

.nav-links {
  display: flex; gap: 32px; list-style: none; align-items: center;
}
.nav-links a {
  font-size: 13px; font-weight: 500; letter-spacing: 0.5px;
  color: rgba(255,255,255,0.72); text-decoration: none;
  transition: color 0.2s;
}
.nav-links a:hover,
.nav-links a.active { color: var(--white); }
.nav-links a.nav-cta {
  background: var(--gold); color: var(--navy) !important;
  padding: 9px 22px; border-radius: 4px;
  font-weight: 600; transition: background 0.2s;
}
.nav-links a.nav-cta:hover { background: #e0a53a; }

/* ─── BUTTONS ─── */
.btn-primary {
  background: var(--gold); color: var(--navy);
  padding: 14px 32px; border-radius: 4px;
  font-weight: 600; font-size: 15px; font-family: inherit;
  text-decoration: none; display: inline-block;
  transition: background 0.2s, transform 0.15s; cursor: pointer; border: none;
}
.btn-primary:hover { background: #e0a53a; transform: translateY(-1px); }

.btn-outline {
  border: 2px solid rgba(255,255,255,0.5); color: var(--white);
  padding: 14px 32px; border-radius: 4px;
  font-weight: 500; font-size: 15px; font-family: inherit;
  text-decoration: none; display: inline-block; background: transparent;
  transition: border-color 0.2s, color 0.2s, transform 0.15s; cursor: pointer;
}
.btn-outline:hover { border-color: var(--gold); color: var(--gold); transform: translateY(-1px); }

.btn-navy {
  background: var(--navy); color: var(--white);
  padding: 13px 30px; border-radius: 4px;
  font-weight: 600; font-size: 15px; font-family: inherit;
  text-decoration: none; display: inline-block;
  transition: background 0.2s, transform 0.15s; cursor: pointer; border: none;
}
.btn-navy:hover { background: var(--blue); transform: translateY(-1px); }

/* ─── PAGE HERO (inner pages) ─── */
.page-hero {
  padding: 168px 5% 88px;
  background: linear-gradient(160deg, var(--navy-dark) 0%, var(--navy) 100%);
  position: relative; overflow: hidden;
}
.page-hero::after {
  content: '';
  position: absolute; right: 5%; top: 50%; transform: translateY(-50%);
  width: min(280px, 28vw); height: min(360px, 36vw);
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 500' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpolygon points='200,18 75,185 132,185 55,295 112,295 48,400 200,400 352,400 288,295 345,295 268,185 325,185' fill='white' opacity='0.06'/%3E%3Crect x='178' y='400' width='44' height='72' rx='3' fill='white' opacity='0.05'/%3E%3C/svg%3E") no-repeat center/contain;
  pointer-events: none;
}
.page-hero-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 11px; font-weight: 600; letter-spacing: 3px; text-transform: uppercase;
  color: var(--gold); margin-bottom: 18px;
}
.page-hero-eyebrow::before { content: ''; display: block; width: 24px; height: 2px; background: var(--gold); }
.page-hero h1 { font-size: clamp(32px, 4vw, 52px); max-width: 660px; }
.page-hero p {
  font-size: 17px; line-height: 1.78;
  color: rgba(255,255,255,0.72);
  max-width: 540px; margin-top: 18px;
}

/* ─── SECTIONS ─── */
section { padding: 90px 5%; }
.section-intro { margin-bottom: 56px; }
.section-light { background: var(--light); }
.section-white { background: var(--white); }
.section-dark {
  background: var(--navy);
  position: relative; overflow: hidden;
}
.section-dark::before {
  content: '';
  position: absolute; right: 4%; top: -10%;
  width: 160px; height: 640px;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 640' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpolygon points='80,18 18,180 50,180 5,300 40,300 2,430 80,430 158,430 120,300 155,300 110,180 142,180' fill='%232E7DD1' opacity='0.07'/%3E%3Crect x='70' y='430' width='20' height='70' rx='2' fill='%232E7DD1' opacity='0.06'/%3E%3C/svg%3E") no-repeat center/contain;
  pointer-events: none;
}
.section-dark .section-tag { color: var(--gold); }
.section-dark h2 { color: var(--white); }
.section-dark .section-lead { color: rgba(255,255,255,0.62); }
.section-dark p { color: rgba(255,255,255,0.6); }

/* ─── CARDS ─── */
.card-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.card-grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }

.card {
  border: 1px solid var(--border); border-radius: 10px;
  padding: 36px 30px;
  transition: box-shadow 0.25s, transform 0.2s, border-color 0.25s;
  position: relative; overflow: hidden;
  background: var(--white);
}
.card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, var(--sky), var(--gold));
  opacity: 0; transition: opacity 0.25s;
}
.card:hover {
  box-shadow: 0 8px 32px rgba(27,58,92,0.10);
  transform: translateY(-4px); border-color: #c8d8ec;
}
.card:hover::before { opacity: 1; }

.card-icon {
  width: 52px; height: 52px; border-radius: 12px;
  background: var(--light);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.card-icon svg { width: 26px; height: 26px; }
.card h3 { font-size: 20px; margin-bottom: 12px; }
.card p { font-size: 14px; line-height: 1.8; color: var(--muted); }

/* ─── CTA BAND ─── */
.cta-band {
  background: var(--gold);
  padding: 72px 5%;
  display: flex; align-items: center; justify-content: space-between;
  gap: 32px; flex-wrap: wrap;
}
.cta-band h2 { color: var(--navy); margin-bottom: 8px; font-size: clamp(24px, 3vw, 38px); }
.cta-band p { color: rgba(15,35,53,0.72); font-size: 16px; max-width: 520px; }
.btn-cta-white {
  background: var(--navy); color: var(--white);
  padding: 15px 34px; border-radius: 4px;
  font-weight: 600; font-size: 15px; font-family: inherit;
  text-decoration: none; white-space: nowrap;
  transition: background 0.2s, transform 0.15s;
}
.btn-cta-white:hover { background: var(--blue); transform: translateY(-1px); }

/* ─── FOOTER ─── */
footer {
  background: var(--navy-dark);
  color: rgba(255,255,255,0.55);
  padding: 64px 5% 32px;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 60px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  margin-bottom: 32px;
}
.footer-brand p {
  font-size: 14px; line-height: 1.8; max-width: 300px; margin-top: 16px;
  color: rgba(255,255,255,0.5);
}
.footer-logo-img { height: 56px; width: auto; display: block; }

.footer-col h5 {
  font-size: 11px; font-weight: 600; letter-spacing: 2.5px; text-transform: uppercase;
  color: var(--white); margin-bottom: 20px;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 12px; }
.footer-col ul li a {
  font-size: 14px; color: rgba(255,255,255,0.5); text-decoration: none;
  transition: color 0.2s;
}
.footer-col ul li a:hover { color: var(--gold); }
.footer-addr {
  font-size: 13px; color: rgba(255,255,255,0.35); line-height: 1.7;
  margin-top: 4px;
}
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 13px; color: rgba(255,255,255,0.38);
}
.footer-bottom a {
  color: rgba(255,255,255,0.38); text-decoration: none; margin-left: 20px;
  transition: color 0.2s;
}
.footer-bottom a:hover { color: var(--gold); }

/* ─── FORM ─── */
.form-group { display: flex; flex-direction: column; gap: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
label {
  font-size: 12px; font-weight: 600; color: var(--navy);
  letter-spacing: 0.5px; display: block; margin-bottom: 7px;
  text-transform: uppercase;
}
input, textarea, select {
  width: 100%; padding: 12px 16px; border-radius: 6px;
  border: 1.5px solid #dde7f2; background: var(--light);
  font-family: 'Inter', sans-serif; font-size: 14px; color: var(--text);
  transition: border-color 0.2s;
}
input:focus, textarea:focus, select:focus {
  outline: none; border-color: var(--sky); background: var(--white);
  box-shadow: 0 0 0 3px rgba(46,125,209,0.1);
}
textarea { resize: vertical; min-height: 130px; }
.form-submit {
  background: var(--navy); color: var(--white);
  border: none; padding: 14px 32px; border-radius: 6px;
  font-family: 'Inter', sans-serif; font-size: 15px; font-weight: 600;
  cursor: pointer; transition: background 0.2s, transform 0.15s;
  align-self: flex-start;
}
.form-submit:hover { background: var(--blue); transform: translateY(-1px); }
.form-success {
  display: none; background: #d1fae5; border: 1px solid #6ee7b7;
  border-radius: 6px; padding: 14px 18px;
  color: #065f46; font-size: 14px;
}

/* ─── RESPONSIVE ─── */
@media (max-width: 960px) {
  .card-grid-3 { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  nav { padding: 0 4%; }
}
@media (max-width: 640px) {
  .nav-links { display: none; }
  section { padding: 64px 5%; }
  .card-grid-3, .card-grid-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .form-row { grid-template-columns: 1fr; }
  .cta-band { flex-direction: column; }
}
