/* Dolly Charters — base + global components */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: hidden; }
body {
  margin: 0;
  overflow-x: hidden;
  max-width: 100vw;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

/* Typography */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin: 0 0 var(--s-4);
  color: var(--ink);
}
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
.eyebrow {
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: var(--fs-eyebrow);
  color: var(--brass);
  font-weight: 600;
  margin: 0 0 var(--s-3);
  display: inline-block;
}
.lede { font-size: var(--fs-lede); color: var(--text-soft); max-width: 60ch; }
p { margin: 0 0 var(--s-4); }

/* Layout */
.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--s-5); }
.container-narrow { max-width: var(--container-narrow); margin: 0 auto; padding: 0 var(--s-5); }
section { padding: var(--s-9) 0; }
@media (max-width: 768px) { section { padding: var(--s-8) 0; } }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: var(--s-2);
  padding: 0.95rem 1.6rem;
  border-radius: var(--r-sm);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  border: 1px solid transparent;
  transition: transform .2s ease, opacity .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
}
.btn-primary { background: var(--red); color: var(--bone); }
.btn-primary:hover { background: var(--red-deep); color: var(--bone); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--navy-900); }
.btn-ghost:hover { background: var(--navy-900); color: var(--bone); }
.btn-on-dark { background: var(--red); color: var(--bone); }
.btn-on-dark:hover { background: var(--bone); color: var(--navy-900); }
.btn-turquoise { background: var(--turquoise); color: var(--bone); }
.btn-turquoise:hover { background: var(--turquoise-deep); color: var(--bone); transform: translateY(-1px); }

/* Header / Nav — refined: bigger brand, generous spacing, utility phone */
.site-header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h);
  background: rgba(251, 251, 248, 0.96);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid rgba(10, 10, 10, 0.06);
  transition: box-shadow .25s ease, background .25s ease;
}
.site-header.is-scrolled {
  background: rgba(251, 251, 248, 0.98);
  box-shadow: 0 6px 24px rgba(0,0,0,0.06);
}
.nav-wrap {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  height: 100%;
  gap: var(--s-7);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--s-4);
  flex-shrink: 0;
  text-decoration: none;
}
.brand-logo img {
  height: 60px;
  width: auto;
  display: block;
  transition: transform .3s ease;
}
.brand-logo:hover img { transform: scale(1.04); }
.brand-tag {
  display: inline-block;
  padding-left: var(--s-4);
  border-left: 1px solid rgba(10, 10, 10, 0.15);
  font-family: var(--font-body);
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 500;
  line-height: 1.4;
  white-space: nowrap;
}
@media (max-width: 700px) {
  .brand-logo img { height: 46px; }
  .brand-tag { display: none; }
}
.nav-list {
  display: flex;
  gap: var(--s-6);
  list-style: none;
  margin: 0; padding: 0;
  align-items: center;
  justify-content: center;
}
.nav-list a {
  font-size: 0.88rem;
  color: var(--ink);
  font-weight: 500;
  letter-spacing: 0.04em;
  transition: color .2s;
  position: relative;
  padding: 6px 0;
}
.nav-list a:hover { color: var(--coral); }
.nav-list a.is-active { color: var(--ink); }
.nav-list a.is-active::after {
  content: ''; position: absolute;
  left: 50%; transform: translateX(-50%);
  bottom: -2px;
  width: 22px; height: 2px;
  background: var(--coral);
}
.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--s-5);
  justify-content: flex-end;
}
.nav-phone {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  color: var(--ink-soft);
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: color .2s;
}
.nav-phone::before {
  content: '';
  width: 14px; height: 14px;
  background-color: var(--coral);
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='currentColor'><path d='M2.003 5.884L2 4a2 2 0 012-2h2.279a1 1 0 01.948.684l1.498 4.493a1 1 0 01-.502 1.21l-2.257 1.13a11.042 11.042 0 005.516 5.516l1.13-2.257a1 1 0 011.21-.502l4.493 1.498a1 1 0 01.684.948V20a2 2 0 01-2 2h-1.884C9.418 21.018 2.982 14.582 2.003 5.884z'/></svg>") center/contain no-repeat;
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='currentColor'><path d='M2.003 5.884L2 4a2 2 0 012-2h2.279a1 1 0 01.948.684l1.498 4.493a1 1 0 01-.502 1.21l-2.257 1.13a11.042 11.042 0 005.516 5.516l1.13-2.257a1 1 0 011.21-.502l4.493 1.498a1 1 0 01.684.948V20a2 2 0 01-2 2h-1.884C9.418 21.018 2.982 14.582 2.003 5.884z'/></svg>") center/contain no-repeat;
  flex-shrink: 0;
}
.nav-phone:hover { color: var(--coral); }
.nav-cta {
  padding: 0.7rem 1.4rem;
  background: var(--coral);
  color: var(--bone) !important;
  border-radius: 999px;
  font-size: 0.82rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: background .2s, transform .2s, box-shadow .2s;
  box-shadow: 0 4px 12px rgba(224, 82, 74, 0.25);
}
.nav-cta:hover { background: var(--coral-deep); color: var(--bone) !important; transform: translateY(-1px); box-shadow: 0 6px 18px rgba(224, 82, 74, 0.4); }
.nav-cta::after { display: none !important; }
@media (max-width: 1024px) {
  .nav-list { gap: var(--s-5); }
  .nav-list a { font-size: 0.82rem; }
}
@media (max-width: 900px) {
  .nav-wrap { grid-template-columns: 1fr auto; }
  .nav-actions { gap: var(--s-3); justify-content: flex-end; }
  .nav-phone span { display: none; }
}
.nav-cta::after { display: none !important; }
.nav-toggle { display: none; background: none; border: 0; padding: var(--s-2); font-size: 1.4rem; color: var(--ink); }
@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav-list {
    display: none;
    position: fixed; inset: var(--header-h) 0 auto 0;
    background: var(--bone);
    flex-direction: column; gap: 0;
    padding: var(--s-5) 0;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  }
  .nav-list.is-open { display: flex; }
  .nav-list li { width: 100%; text-align: center; }
  .nav-list a { display: block; padding: var(--s-4); font-size: 1rem; }
}

/* Footer */
.site-footer { background: var(--navy-900); color: var(--text-on-dark); padding: var(--s-8) 0 var(--s-6); }
.site-footer a { color: var(--text-on-dark); opacity: 0.85; }
.site-footer a:hover { color: var(--brass-light); opacity: 1; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: var(--s-7); margin-bottom: var(--s-7); align-items: start; }
.footer-brand { display: flex; flex-direction: column; gap: var(--s-3); }
.footer-brand .footer-logo { display: inline-block; line-height: 0; }
.footer-brand .footer-logo img { display: block; width: 160px; height: auto; max-width: 100%; filter: invert(1) brightness(1.05); }
.footer-brand p { font-size: 0.9rem; opacity: 0.75; max-width: 36ch; margin: 0; line-height: 1.55; }
.footer-col h4 { margin-top: 8px; }
@media (max-width: 768px) {
  .footer-brand .footer-logo img { width: 140px; }
  .footer-col h4 { margin-top: 0; }
}
.footer-col h4 { color: var(--brass-light); font-family: var(--font-body); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.18em; margin-bottom: var(--s-4); }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: var(--s-2); font-size: 0.9rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); padding-top: var(--s-5); display: flex; justify-content: space-between; flex-wrap: wrap; gap: var(--s-3); font-size: 0.82rem; opacity: 0.7; }
@media (max-width: 768px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }

/* Utility */
.text-center { text-align: center; }
.bg-dark { background: var(--navy-900); color: var(--text-on-dark); }
.bg-dark h1, .bg-dark h2, .bg-dark h3 { color: var(--bone); }
.bg-dark .lede { color: rgba(247, 243, 236, 0.78); }
.bg-alt { background: var(--bg-alt); }
.divider-rule { width: 60px; height: 1px; background: var(--brass); margin: 0 0 var(--s-5); }
.divider-rule.center { margin-left: auto; margin-right: auto; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .8s ease, transform .8s ease; }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal.is-in { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}
