/* Bergen Social — shared styles (brand-aligned) */

@import url('https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&family=Poppins:wght@300;400;500;600&display=swap');

:root {
  /* Brand palette */
  --bergen-navy: #1C2E4A;
  --bergen-navy-deep: #14223A;
  --espresso: #3A2418;
  --taupe: #9B8B7E;
  --linen: #D4C4B0;
  --sand: #F2E8DC;
  --aulait: #E8D9C4;
  --ivory: #FAF6F1;

  --rule: rgba(58, 36, 24, 0.14);
  --rule-strong: rgba(58, 36, 24, 0.28);

  /* Type */
  --serif: 'Lora', 'Times New Roman', serif;
  --sans: 'Poppins', system-ui, sans-serif;

  --maxw: 1600px;
  --pad: clamp(20px, 5vw, 60px);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--ivory);
  color: var(--espresso);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ——— Type ——— */
.eyebrow {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--taupe);
}

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -0.005em;
  line-height: 1.08;
  margin: 0;
  text-wrap: balance;
  color: var(--espresso);
}

.display {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(44px, 6.6vw, 96px);
  line-height: 1.02;
  letter-spacing: -0.01em;
}

.h1 { font-size: clamp(36px, 4.8vw, 64px); font-weight: 500; line-height: 1.05; }
.h2 { font-size: clamp(28px, 3.4vw, 44px); font-weight: 500; line-height: 1.1; }
.h3 { font-size: clamp(20px, 2vw, 26px); font-weight: 500; line-height: 1.2; }

p { margin: 0; text-wrap: pretty; }
.lede { font-size: clamp(16px, 1.25vw, 19px); line-height: 1.6; color: var(--espresso); opacity: 0.82; max-width: 60ch; }
.body { font-size: 15px; line-height: 1.75; color: var(--espresso); opacity: 0.86; }
.body p + p { margin-top: 1em; }

em.italic, .italic { font-family: var(--serif); font-style: italic; font-weight: 400; }

/* ——— Layout ——— */
.wrap { max-width: var(--maxw); margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }
.section { padding: clamp(72px, 9vw, 140px) 0; }
.section-tight { padding: clamp(48px, 6vw, 88px) 0; }

.bg-sand { background: var(--sand); }
.bg-aulait { background: var(--aulait); }
.bg-linen { background: var(--linen); }
.bg-navy { background: var(--bergen-navy); color: var(--sand); }
.bg-navy h1, .bg-navy h2, .bg-navy h3, .bg-navy h4 { color: var(--sand); }
.bg-navy .eyebrow { color: var(--linen); }
.bg-navy .body, .bg-navy .lede { color: var(--sand); opacity: 0.85; }

.rule { height: 1px; background: var(--rule); border: 0; margin: 0; }

/* ——— Buttons ——— */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 16px 28px;
  border-radius: 0;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.4s ease;
  background: transparent;
  color: inherit;
}
.btn-primary {
  background: var(--bergen-navy);
  color: var(--sand);
  border-color: var(--bergen-navy);
}
.btn-primary:hover {
  background: var(--bergen-navy-deep);
  border-color: var(--bergen-navy-deep);
}
.btn-ghost {
  border-color: var(--espresso);
  color: var(--espresso);
}
.btn-ghost:hover {
  background: var(--espresso);
  color: var(--sand);
}
.bg-navy .btn-ghost { border-color: var(--sand); color: var(--sand); }
.bg-navy .btn-ghost:hover { background: var(--sand); color: var(--bergen-navy); }

/* Hairlines on sand need a touch more contrast */
.bg-sand { --rule: rgba(58, 36, 24, 0.18); }

.btn-link {
  padding: 0;
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  border: 0;
  color: var(--espresso);
  position: relative;
  display: inline-block;
}
.btn-link::after {
  content: '';
  display: block;
  height: 1px;
  background: currentColor;
  margin-top: 8px;
  transition: width 0.4s ease;
  width: 100%;
}
.btn-link:hover::after { width: 40%; }

.btn-arrow { display: inline-block; transition: transform 0.3s ease; font-size: 14px; }
.btn:hover .btn-arrow { transform: translateX(4px); }

/* ——— Nav ——— */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bergen-navy);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.nav-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 18px var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-toggle { margin-left: auto; }
.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ivory);
}
.nav-brand .mono {
  font-family: var(--serif);
  font-style: italic;
  font-size: 22px;
  color: var(--ivory);
}
.nav-brand .seal {
  width: 34px; height: 34px;
  border: 1px solid rgba(255,255,255,0.5);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-style: italic;
  font-size: 20px;
  color: var(--ivory);
}
.nav-links {
  display: flex;
  gap: 80px;
}
.nav-links a {
  font-size: 12px;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.82);
  font-weight: 500;
  position: relative;
  padding: 6px 0;
}
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 0;
  height: 1px;
  background: currentColor;
  transition: width 0.3s ease;
}
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }

.nav-cta {
  display: flex;
  justify-content: flex-end;
  gap: 18px;
  align-items: center;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 500;
}
.nav-cta a.contact-pill {
  border: 1px solid var(--bergen-navy);
  padding: 10px 18px;
  color: var(--bergen-navy);
  transition: all 0.3s ease;
}
.nav-cta a.contact-pill:hover {
  background: var(--bergen-navy);
  color: var(--sand);
}

.nav-toggle { display: none; }
@media (max-width: 880px) {
  .nav-inner { grid-template-columns: 1fr auto; }
  .nav-links { display: none; }
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    justify-self: end;
    background: transparent;
    border: 0;
    font-family: var(--sans);
    font-size: 11px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    cursor: pointer;
    color: var(--ivory);
  }
  .nav-toggle .bars {
    width: 22px; height: 8px;
    border-top: 1px solid var(--ivory);
    border-bottom: 1px solid var(--ivory);
  }
  .nav.open .nav-links {
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: absolute;
    left: 0; right: 0;
    top: 100%;
    padding: 24px var(--pad) 32px;
    background: var(--bergen-navy);
    border-top: 1px solid rgba(255,255,255,0.08);
    z-index: 100;
  }
}

/* ——— Pre-footer (CTA band) ——— */
.prefooter {
  padding: clamp(72px, 9vw, 130px) 0;
  border-top: 1px solid rgba(58, 36, 24, 0.10);
}
.prefooter .eyebrow { color: var(--espresso); opacity: 0.6; }
.prefooter h2 { color: var(--espresso); }
.prefooter .lede { color: var(--espresso); opacity: 0.78; }

/* ——— Footer ——— */
.footer {
  background: var(--bergen-navy);
  color: var(--sand);
  padding: 48px 0 28px;
}
.footer .wrap { max-width: var(--maxw); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.footer-brand {
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--sand);
}
.footer-tag {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  color: var(--linen);
  margin-top: 14px;
  max-width: 32ch;
  font-size: 17px;
}
.footer h5 {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--linen);
  margin: 0 0 18px 0;
}
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.footer ul li, .footer ul a { color: var(--sand); opacity: 0.85; font-size: 14px; }
.footer ul a:hover { opacity: 1; }
.footer-grid-3 {
  grid-template-columns: 1fr 1fr 1fr !important;
  align-items: start;
}
.footer-col-left { text-align: left; }
.footer-col-center { text-align: center; }
.footer-col-center h5 { display: block; }
.footer-col-right { text-align: right; }
.footer-col-right ul { justify-items: end; }
.footer-social { gap: 14px !important; justify-content: center; }
.footer-col-center .footer-social { display: flex !important; justify-content: center; }
.footer-social li { display: flex; align-items: center; gap: 14px; justify-content: center; }
.social-link {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px;
  border: 1px solid rgba(212, 196, 176, 0.35);
  border-radius: 50%;
  color: var(--sand);
  transition: all .25s ease;
  flex-shrink: 0;
}
.social-link:hover { border-color: var(--sand); background: rgba(212, 196, 176, 0.08); opacity: 1; }
.social-handle { font-family: var(--serif); font-style: italic; font-size: 15px !important; color: var(--sand) !important; opacity: 0.85; }
.social-handle:hover { opacity: 1; }
.footer-meta {
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid rgba(242, 232, 220, 0.14);
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: rgba(242, 232, 220, 0.6);
  letter-spacing: 0.04em;
}
.footer-grid { gap: 36px; }
.footer h5 { margin-bottom: 14px; }
@media (max-width: 880px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .footer-brand-col { grid-column: 1 / -1; }
  .footer-meta { flex-direction: column; gap: 12px; }
}
@media (max-width: 600px) {
  .footer-grid,
  .footer-grid-3 { grid-template-columns: 1fr !important; gap: 32px; }
  .footer-col-right { text-align: left; }
  .footer-col-right ul { justify-items: start; }
  .footer-col-center { text-align: left; }
  .footer-col-center .footer-social { justify-content: flex-start; }
  .footer-social li { justify-content: flex-start; }
}

/* ——— Mobile: inquiry modal form grids ——— */
@media (max-width: 540px) {
  #bs-inquiry-modal > div { padding: 28px 20px; }
  .bs-modal-grid { grid-template-columns: 1fr !important; }
}

/* ——— Image placeholders (warm-toned, brand-fit) ——— */
.photo {
  position: relative;
  background-size: cover;
  background-position: center;
  background-color: var(--bergen-navy-deep);
  overflow: hidden;
}
.photo::after {
  /* subtle warm vignette to seat the photo into the page */
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 55%, rgba(20, 34, 58, 0.28) 100%);
  pointer-events: none;
}

.ph {
  position: relative;
  background:
    repeating-linear-gradient(135deg,
      rgba(58, 36, 24, 0.06) 0 14px,
      rgba(58, 36, 24, 0.02) 14px 28px),
    var(--linen);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ph::after {
  content: attr(data-label);
  font-family: 'JetBrains Mono', 'SF Mono', Menlo, monospace;
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 6px 12px;
  background: rgba(250, 246, 241, 0.92);
  border: 1px solid rgba(58, 36, 24, 0.18);
  color: var(--espresso);
  white-space: nowrap;
}
.ph.dark {
  background:
    repeating-linear-gradient(135deg,
      rgba(212, 196, 176, 0.06) 0 14px,
      rgba(212, 196, 176, 0.02) 14px 28px),
    var(--bergen-navy);
}
.ph.dark::after {
  background: rgba(28, 46, 74, 0.78);
  color: var(--linen);
  border-color: rgba(212, 196, 176, 0.35);
}

/* ——— Forms ——— */
.field { display: grid; gap: 8px; }
.field label {
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--taupe);
  font-weight: 500;
}
.field input,
.field textarea,
.field select {
  font-family: var(--sans);
  font-size: 15px;
  color: var(--espresso);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--rule-strong);
  padding: 12px 0;
  border-radius: 0;
  outline: none;
  transition: border-color 0.3s ease;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus,
.field textarea:focus,
.field select:focus {
  border-bottom-color: var(--bergen-navy);
}
.field-error input,
.field-error textarea,
.field-error select {
  border-bottom-color: #B23A3A;
}
.error-msg {
  color: #B23A3A;
  font-size: 12px;
  letter-spacing: 0.04em;
}

/* ——— Util ——— */
.center { text-align: center; }
.muted { color: var(--taupe); }
.divider-mark {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--taupe);
  font-family: var(--serif);
  font-style: italic;
  font-size: 17px;
}
.divider-mark::before,
.divider-mark::after {
  content: '';
  width: 48px;
  height: 1px;
  background: var(--taupe);
  opacity: 0.5;
}

.fade-in { animation: fadeUp 0.9s cubic-bezier(.2,.7,.2,1) both; }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

.page-fade { animation: pageIn 0.5s ease both; }
@keyframes pageIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ——— Wordmark logo (CSS) ——— */
.wordmark {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1;
}
.wordmark .amp {
  font-style: italic;
  font-weight: 400;
}
.wordmark-stack {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.wordmark-stack .top,
.wordmark-stack .bottom {
  font-size: 10px;
  font-family: var(--sans);
  font-weight: 500;
  letter-spacing: 0.34em;
  text-transform: uppercase;
}
.wordmark-stack .mid {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 32px;
  letter-spacing: 0.02em;
}
.wordmark-stack .rule {
  width: 60px;
  height: 1px;
  background: currentColor;
  opacity: 0.5;
  margin: 2px 0;
}
