/* ==========================================================================
   Party Wall Solutions — brand tokens
   ========================================================================== */
:root {
  --navy: #132A46;
  --navy-deep: #0D1F35;
  --navy-ink: #0A1728;
  --gold: #C79A45;
  --gold-light: #E7C878;
  --gold-dim: #7A5B24;
  --off-white: #F7F4EC;
  --stone: #EDE7D8;
  --stone-line: #DED5BC;
  --ink: #1B2431;
  --ink-soft: #4B5563;
  --white: #FFFFFF;

  --font-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-body: "Public Sans", "Segoe UI", system-ui, sans-serif;

  --radius-sm: 2px;
  --radius-md: 4px;
  --shadow-card: 0 18px 40px -22px rgba(13, 31, 53, 0.35);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --container: 1180px;
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--off-white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-display); margin: 0; color: var(--navy); font-weight: 600; }
p { line-height: 1.65; color: var(--ink-soft); margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; }

.wrap {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 48px);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-dim);
}
.eyebrow::before {
  content: "";
  width: 24px;
  height: 2px;
  background: var(--gold);
  display: inline-block;
}
.on-dark .eyebrow { color: var(--gold-light); }

/* Skip link */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--gold);
  color: var(--navy-ink);
  padding: 10px 18px;
  font-weight: 700;
  z-index: 200;
}
.skip-link:focus {
  left: 12px;
  top: 12px;
}

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

/* ==========================================================================
   Header / Navigation
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--navy-ink);
  border-bottom: 1px solid rgba(199, 154, 69, 0.25);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 12px;
  padding-bottom: 12px;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.nav-brand img {
  height: 40px;
  width: auto;
}
.nav-brand-text {
  display: none;
}
.nav-links {
  display: none;
}
.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.nav-phone {
  display: none;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: var(--off-white);
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.nav-phone svg { flex-shrink: 0; }
.nav-toggle {
  background: none;
  border: 1px solid rgba(247, 244, 236, 0.3);
  color: var(--off-white);
  border-radius: var(--radius-sm);
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
button.nav-link {
  background: none;
  border: none;
  cursor: pointer;
  width: 100%;
  font-family: inherit;
}
.mobile-phone { display: none; }

@media (min-width: 960px) {
  .nav-brand-text {
    display: block;
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--off-white);
    letter-spacing: 0.01em;
    line-height: 1.1;
  }
  .nav-brand-text span {
    display: block;
    font-family: var(--font-body);
    font-size: 0.62rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--gold-light);
    font-weight: 700;
    margin-top: 3px;
  }
  .nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
  }
  .nav-links > li { position: relative; }
  .nav-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    color: var(--off-white);
    font-size: 0.92rem;
    font-weight: 600;
    padding: 8px 2px;
    position: relative;
  }
  .nav-link::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 2px;
    background: var(--gold);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s var(--ease);
  }
  .nav-link:hover::after,
  .nav-link:focus-visible::after,
  .has-dropdown:hover .nav-link::after,
  .has-dropdown:focus-within .nav-link::after {
    transform: scaleX(1);
  }
  .nav-toggle { display: none; }
  .nav-phone { display: inline-flex; }

  .dropdown {
    position: absolute;
    top: calc(100% + 14px);
    left: 50%;
    transform: translateX(-50%) translateY(6px);
    background: var(--navy);
    border: 1px solid rgba(199, 154, 69, 0.3);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
    padding: 10px;
    min-width: 300px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s var(--ease), transform 0.2s var(--ease), visibility 0.2s;
  }
  .has-dropdown:hover .dropdown,
  .has-dropdown:focus-within .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
  }
  .dropdown li a {
    display: block;
    padding: 11px 14px;
    text-decoration: none;
    color: var(--off-white);
    font-size: 0.88rem;
    border-radius: var(--radius-sm);
    border-left: 2px solid transparent;
  }
  .dropdown li a:hover,
  .dropdown li a:focus-visible {
    background: rgba(199, 154, 69, 0.12);
    border-left-color: var(--gold);
    color: var(--gold-light);
  }
}

/* Mobile nav panel */
@media (max-width: 959px) {
  .nav-links {
    display: flex;
    flex-direction: column;
    position: fixed;
    inset: 0 0 0 auto;
    width: min(86vw, 360px);
    height: 100vh;
    background: var(--navy-ink);
    padding: 90px 28px 32px;
    gap: 4px;
    transform: translateX(100%);
    transition: transform 0.32s var(--ease);
    overflow-y: auto;
    border-left: 1px solid rgba(199, 154, 69, 0.25);
  }
  .nav-links.is-open { transform: translateX(0); }
  .nav-link {
    text-decoration: none;
    color: var(--off-white);
    font-size: 1.05rem;
    font-weight: 600;
    padding: 14px 4px;
    border-bottom: 1px solid rgba(247, 244, 236, 0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  .dropdown {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s var(--ease);
    padding-left: 12px;
  }
  .has-dropdown.is-expanded .dropdown { max-height: 480px; }
  .dropdown li a {
    display: block;
    padding: 12px 6px;
    color: var(--off-white);
    text-decoration: none;
    font-size: 0.92rem;
    opacity: 0.85;
  }
  .dropdown-caret { transition: transform 0.25s var(--ease); }
  .has-dropdown.is-expanded .dropdown-caret { transform: rotate(180deg); }
  .nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(10, 23, 40, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s var(--ease), visibility 0.3s;
    z-index: 90;
  }
  .nav-overlay.is-open { opacity: 1; visibility: visible; }
  .mobile-phone {
    display: block;
    margin-top: auto;
    padding-top: 20px;
  }
  .mobile-phone a {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--gold-light);
    font-weight: 700;
    text-decoration: none;
    font-size: 1.05rem;
  }
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 30px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  text-decoration: none;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
  white-space: nowrap;
}
.btn-gold {
  background: var(--gold);
  color: var(--navy-ink);
  box-shadow: 0 14px 28px -14px rgba(199, 154, 69, 0.55);
}
.btn-gold:hover, .btn-gold:focus-visible {
  background: var(--gold-light);
  transform: translateY(-2px);
}
.btn-outline {
  background: transparent;
  border-color: rgba(247, 244, 236, 0.55);
  color: var(--off-white);
}
.btn-outline:hover, .btn-outline:focus-visible {
  border-color: var(--gold);
  color: var(--gold-light);
  transform: translateY(-2px);
}
.btn-outline-navy {
  background: transparent;
  border-color: rgba(19, 42, 70, 0.35);
  color: var(--navy);
}
.btn-outline-navy:hover, .btn-outline-navy:focus-visible {
  border-color: var(--navy);
  background: var(--navy);
  color: var(--off-white);
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  background: var(--navy-ink);
  overflow: hidden;
  padding: clamp(64px, 12vw, 128px) 0 clamp(56px, 9vw, 96px);
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.9;
}
.hero-bg svg { width: 100%; height: 100%; }
.hero-inner {
  position: relative;
  z-index: 2;
  text-align: center;
}
.hero-boundary {
  position: relative;
  display: inline-block;
  padding: 0 clamp(28px, 6vw, 64px);
  margin: 22px 0 0;
}
.hero-boundary::before {
  content: "";
  position: absolute;
  top: -18px;
  bottom: -18px;
  left: 50%;
  width: 2px;
  background: linear-gradient(to bottom, transparent, var(--gold) 12%, var(--gold) 88%, transparent);
  transform: translateX(-50%);
}
.hero-boundary::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--gold);
  transform: translate(-50%, -50%);
  box-shadow: 0 0 0 6px rgba(199, 154, 69, 0.18);
}
.hero-title {
  font-size: clamp(2.6rem, 7vw, 5.1rem);
  color: var(--off-white);
  line-height: 0.98;
  letter-spacing: -0.01em;
}
.hero-title em {
  font-style: normal;
  color: var(--gold-light);
}
.hero-tagline {
  margin-top: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(10px, 3vw, 22px);
  flex-wrap: wrap;
  font-family: var(--font-body);
  font-size: clamp(0.85rem, 2vw, 1.05rem);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--stone);
}
.hero-tagline .dot { color: var(--gold); }
.hero-sub {
  max-width: 620px;
  margin: 28px auto 0;
  color: rgba(247, 244, 236, 0.78);
  font-size: 1.08rem;
}
.hero-ctas {
  margin-top: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}
.hero-note {
  margin-top: 22px;
  font-size: 0.85rem;
  color: rgba(247, 244, 236, 0.55);
  letter-spacing: 0.03em;
}

/* ==========================================================================
   Section scaffolding
   ========================================================================== */
.section {
  padding: clamp(64px, 10vw, 108px) 0;
}
.section-alt { background: var(--stone); }
.section-navy { background: var(--navy); }
.section-navy h2, .section-navy h3 { color: var(--off-white); }
.section-navy p { color: rgba(247, 244, 236, 0.75); }
.section-head {
  max-width: 660px;
  margin-bottom: 48px;
}
.section-head h2 {
  font-size: clamp(1.8rem, 3.6vw, 2.6rem);
  margin-top: 14px;
  line-height: 1.12;
}
.section-head p {
  margin-top: 16px;
  font-size: 1.05rem;
}
.section-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
.section-head.center .eyebrow { justify-content: center; }

/* ==========================================================================
   Services
   ========================================================================== */
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 22px;
}
.service-card {
  background: var(--white);
  border: 1px solid var(--stone-line);
  border-top: 3px solid var(--navy);
  border-radius: var(--radius-md);
  padding: 30px 26px;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: var(--shadow-card);
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease);
}
.service-card:hover, .service-card:focus-visible {
  transform: translateY(-6px);
  border-top-color: var(--gold);
}
.service-icon {
  width: 46px;
  height: 46px;
  color: var(--gold-dim);
}
.service-card h3 {
  font-size: 1.18rem;
  color: var(--navy);
  line-height: 1.25;
}
.service-card p {
  font-size: 0.94rem;
  flex-grow: 1;
}
.service-link {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--navy);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.service-card:hover .service-link { color: var(--gold-dim); }
.service-link svg {
  transition: transform 0.2s var(--ease);
}
.service-card:hover .service-link svg { transform: translateX(4px); }

/* ==========================================================================
   About
   ========================================================================== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
}
@media (min-width: 860px) {
  .about-grid { grid-template-columns: 0.85fr 1fr; }
}
.about-art {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 4/5;
}
.about-art svg { width: 100%; height: 100%; }
.about-copy .eyebrow { margin-bottom: 14px; }
.about-copy h2 {
  font-size: clamp(1.8rem, 3.4vw, 2.4rem);
  line-height: 1.15;
}
.about-copy h2 em {
  font-style: normal;
  color: var(--gold-dim);
}
.about-copy p {
  margin-top: 18px;
  font-size: 1.03rem;
}
.about-stats {
  display: flex;
  gap: 32px;
  margin-top: 30px;
  flex-wrap: wrap;
}
.about-stats div strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.7rem;
  color: var(--navy);
}
.about-stats div span {
  font-size: 0.82rem;
  color: var(--ink-soft);
  letter-spacing: 0.02em;
}

/* ==========================================================================
   Why choose us
   ========================================================================== */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2px;
  background: rgba(247, 244, 236, 0.08);
  border-top: 1px solid rgba(247, 244, 236, 0.12);
  border-bottom: 1px solid rgba(247, 244, 236, 0.12);
}
.why-item {
  padding: 34px 28px;
  background: var(--navy);
  border-right: 1px solid rgba(247, 244, 236, 0.12);
}
.why-item svg {
  width: 34px;
  height: 34px;
  color: var(--gold);
  margin-bottom: 18px;
}
.why-item h3 {
  font-size: 1.08rem;
  color: var(--off-white);
  margin-bottom: 10px;
}
.why-item p { font-size: 0.94rem; }

/* ==========================================================================
   Process (real sequence — numbering earned)
   ========================================================================== */
.process-rail {
  position: relative;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 40px 24px;
}
.process-rail::before {
  content: "";
  position: absolute;
  top: 27px;
  left: 0;
  right: 0;
  height: 2px;
  background: repeating-linear-gradient(to right, var(--stone-line) 0 10px, transparent 10px 18px);
  z-index: 0;
}
@media (max-width: 700px) {
  .process-rail::before { display: none; }
}
.process-step {
  position: relative;
  z-index: 1;
}
.process-num {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--gold-light);
  font-family: var(--font-display);
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  border: 1px solid var(--gold-dim);
}
.process-step h3 {
  font-size: 1.1rem;
  margin-bottom: 10px;
}
.process-step p { font-size: 0.93rem; }

/* ==========================================================================
   CTA
   ========================================================================== */
.cta {
  background: var(--navy-ink);
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: clamp(56px, 9vw, 92px) 0;
}
.cta::before {
  content: "";
  position: absolute;
  top: 0; bottom: 0; left: 50%;
  width: 2px;
  background: linear-gradient(to bottom, transparent, rgba(199,154,69,0.4), transparent);
}
.cta-inner { position: relative; z-index: 1; }
.cta .eyebrow { justify-content: center; }
.cta h2 {
  color: var(--off-white);
  font-size: clamp(1.8rem, 3.6vw, 2.5rem);
  margin-top: 14px;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.18;
}
.cta p {
  margin-top: 16px;
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
}
.cta-phone {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-top: 34px;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 4.5vw, 2.4rem);
  color: var(--gold-light);
  text-decoration: none;
  font-weight: 600;
}
.cta-phone svg { width: 30px; height: 30px; flex-shrink: 0; }
.cta-actions {
  margin-top: 30px;
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: var(--navy-ink);
  color: rgba(247, 244, 236, 0.7);
  padding: 56px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(247, 244, 236, 0.12);
}
@media (min-width: 780px) {
  .footer-grid { grid-template-columns: 1.3fr 1fr 1fr; }
}
.footer-brand {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.footer-brand img { height: 38px; }
.footer-brand-text {
  font-family: var(--font-display);
  color: var(--off-white);
  font-size: 1.05rem;
}
.footer-brand-text span {
  display: block;
  font-family: var(--font-body);
  font-size: 0.78rem;
  color: rgba(247, 244, 236, 0.55);
  margin-top: 8px;
  max-width: 320px;
  line-height: 1.5;
}
.footer-col h4 {
  font-family: var(--font-body);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 16px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a {
  text-decoration: none;
  color: rgba(247, 244, 236, 0.75);
  font-size: 0.92rem;
}
.footer-col a:hover, .footer-col a:focus-visible { color: var(--gold-light); }
.footer-phone {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: var(--gold-light) !important;
}
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  padding-top: 22px;
  font-size: 0.82rem;
  color: rgba(247, 244, 236, 0.45);
}

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