/* ============================================================
   The Proud Butler — Style System
   Charcoal / Brass-Gold / Ivory. Playfair Display + Source Sans 3.
   ============================================================ */

:root {
  --charcoal: #1F1D1B;
  --charcoal-soft: #2B2926;
  --gold: #9C7A2E;
  --gold-bright: #B8923F;
  --ivory: #FAF6EE;
  --ivory-deep: #F3ECDC;
  --grey: #5C5955;
  --grey-light: #8A8680;
  --hairline: #DDD3BC;
  --white: #FFFFFF;

  --serif: 'Playfair Display', Georgia, serif;
  --sans: 'Source Sans 3', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;

  --max-width: 1140px;
  --section-pad: clamp(72px, 10vw, 128px);
}

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

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

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--charcoal);
  background: var(--ivory);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--serif);
  color: var(--charcoal);
  margin: 0;
  line-height: 1.15;
  font-weight: 700;
}

p { margin: 0; }

a {
  color: inherit;
  text-decoration: none;
}

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--charcoal);
  color: var(--ivory);
  padding: 10px 16px;
  z-index: 200;
}
.skip-link:focus {
  left: 12px;
  top: 12px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

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

.section-label {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 14px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 2px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease, transform 160ms ease;
  text-align: center;
}
.btn-primary {
  background: var(--charcoal);
  color: var(--ivory);
}
.btn-primary:hover { background: var(--charcoal-soft); transform: translateY(-1px); }
.btn-ghost {
  background: transparent;
  color: var(--charcoal);
  border-color: var(--charcoal);
}
.btn-ghost:hover { background: var(--charcoal); color: var(--ivory); }
.btn-block { width: 100%; }

/* ---------------- Header ---------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 246, 238, 0.92);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--hairline);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
}

.brand-mark img { display: block; }

.primary-nav {
  display: flex;
  align-items: center;
  gap: 32px;
  font-size: 0.92rem;
  font-weight: 600;
}

.primary-nav a {
  color: var(--charcoal-soft);
  position: relative;
  padding-bottom: 4px;
}
.primary-nav a:not(.nav-cta):after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 200ms ease;
}
.primary-nav a:not(.nav-cta):hover:after { transform: scaleX(1); }

.nav-cta {
  background: var(--charcoal);
  color: var(--ivory) !important;
  padding: 10px 20px;
  border-radius: 2px;
}
.nav-cta:hover { background: var(--charcoal-soft); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--charcoal);
  transition: transform 200ms ease, opacity 200ms ease;
}

.mobile-nav {
  display: none;
  flex-direction: column;
  background: var(--ivory);
  border-top: 1px solid var(--hairline);
}
.mobile-nav a {
  padding: 16px 24px;
  border-bottom: 1px solid var(--hairline);
  font-weight: 600;
}

.site-header.nav-open .mobile-nav { display: flex; }
.site-header.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.site-header.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.site-header.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------------- Hero ---------------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(96px, 16vw, 168px) 0 clamp(64px, 9vw, 96px);
  text-align: center;
}

.hero-watermark {
  position: absolute;
  top: 38%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--serif);
  font-weight: 900;
  font-size: clamp(280px, 38vw, 620px);
  color: var(--charcoal);
  opacity: 0.09;
  letter-spacing: 0.02em;
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
  line-height: 1;
}

.hero-inner { position: relative; z-index: 1; }

.eyebrow {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 22px;
}

.hero h1 {
  font-size: clamp(2.6rem, 6.2vw, 5rem);
  letter-spacing: -0.01em;
}
.hero h1 em {
  font-style: italic;
  font-weight: 500;
  color: var(--gold);
}

.hero-sub {
  max-width: 560px;
  margin: 28px auto 0;
  font-size: 1.1rem;
  color: var(--grey);
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-top: 40px;
  flex-wrap: wrap;
}

.hero-rule {
  width: 84px;
  height: 3px;
  background: var(--gold);
  margin: clamp(56px, 8vw, 88px) auto 0;
}

/* ---------------- Intro ---------------- */

.intro { padding: var(--section-pad) 0; }
.intro-inner { max-width: 720px; }
.intro h2 {
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  margin: 4px 0 22px;
}
.intro p { color: var(--grey); font-size: 1.05rem; }

/* ---------------- Offer / Pillars ---------------- */

.offer {
  padding: var(--section-pad) 0;
  background: var(--ivory-deep);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}
.offer h2 {
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  margin: 4px 0 56px;
  max-width: 560px;
}

.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--hairline);
  border: 1px solid var(--hairline);
}

.pillar {
  background: var(--ivory);
  padding: 40px 36px 44px;
  position: relative;
}

.pillar-mark {
  font-family: var(--serif);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 18px;
}

.pillar h3 {
  font-size: 1.5rem;
  margin-bottom: 14px;
}

.pillar > p {
  color: var(--grey);
  font-size: 0.98rem;
  margin-bottom: 22px;
}

.pillar-list {
  list-style: none;
  margin: 0;
  padding: 18px 0 0;
  border-top: 1px solid var(--hairline);
  font-size: 0.92rem;
  color: var(--charcoal-soft);
}
.pillar-list li {
  padding: 6px 0;
  padding-left: 18px;
  position: relative;
}
.pillar-list li:before {
  content: "";
  position: absolute;
  left: 0;
  top: 14px;
  width: 6px;
  height: 1px;
  background: var(--gold);
}

/* ---------------- How We Work ---------------- */

.how { padding: var(--section-pad) 0; }
.how-inner {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 64px;
}
.how-text h2 {
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  margin: 4px 0 20px;
}
.how-text p { color: var(--grey); font-size: 1.02rem; }

.how-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 28px;
}
.how-list li {
  padding-left: 22px;
  border-left: 2px solid var(--gold);
}
.how-list h4 {
  font-size: 1.08rem;
  font-weight: 700;
  margin-bottom: 6px;
}
.how-list p {
  color: var(--grey);
  font-size: 0.96rem;
}

/* ---------------- Who We Serve ---------------- */

.who {
  padding: var(--section-pad) 0;
  background: var(--charcoal);
  color: var(--ivory);
}
.who .section-label { color: var(--gold-bright); }
.who h2 {
  color: var(--ivory);
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  margin: 4px 0 56px;
  max-width: 560px;
}

.who-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px;
}
.who-card {
  padding-top: 22px;
  border-top: 2px solid var(--gold);
}
.who-card h3 {
  color: var(--ivory);
  font-size: 1.25rem;
  margin-bottom: 12px;
}
.who-card p {
  color: #C9C5BC;
  font-size: 0.96rem;
}

/* ---------------- Contact ---------------- */

.contact { padding: var(--section-pad) 0; }
.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.contact-intro h2 {
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  margin: 4px 0 18px;
}
.contact-intro p { color: var(--grey); font-size: 1.02rem; max-width: 440px; }

.contact-details {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.contact-details a {
  font-family: var(--serif);
  font-size: 1.2rem;
  color: var(--charcoal);
  border-bottom: 1px solid var(--hairline);
  padding-bottom: 10px;
  width: fit-content;
  transition: color 160ms ease, border-color 160ms ease;
}
.contact-details a:hover {
  color: var(--gold);
  border-color: var(--gold);
}

.contact-form {
  background: var(--white);
  border: 1px solid var(--hairline);
  padding: 36px;
  display: grid;
  gap: 18px;
}
.form-note {
  font-size: 0.82rem;
  color: var(--grey-light);
  font-style: italic;
  margin-bottom: -4px;
}
.form-row { display: grid; gap: 8px; }
.form-row label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--charcoal-soft);
}
.form-row input,
.form-row select,
.form-row textarea {
  font-family: var(--sans);
  font-size: 0.98rem;
  padding: 11px 13px;
  border: 1px solid var(--hairline);
  border-radius: 2px;
  background: var(--ivory);
  color: var(--charcoal);
  resize: vertical;
}
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--gold);
  background: var(--white);
}

.form-status {
  font-size: 0.9rem;
  font-weight: 600;
  min-height: 1.2em;
  color: var(--gold);
}

/* ---------------- Footer ---------------- */

.site-footer {
  background: var(--charcoal);
  color: var(--grey-light);
  padding: 48px 0;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
}
.footer-services { font-size: 0.9rem; color: #C9C5BC; }
.footer-fine { font-size: 0.8rem; color: var(--grey-light); }

/* ============================================================
   Responsive
   ============================================================ */

@media (max-width: 860px) {
  .primary-nav { display: none; }
  .nav-toggle { display: flex; }

  .how-inner,
  .contact-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .pillars { grid-template-columns: 1fr; }
  .who-grid { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 520px) {
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-watermark { opacity: 0.11; }
}
