/* ============ Allen Brown Consulting ============ */

:root {
  --gold: #C39A2E;
  --gold-deep: #A8821F;
  --black: #141414;
  --ink: #26241f;
  --ivory: #FBF9F4;
  --white: #ffffff;
  --line: #e6e0d2;
  --serif: "Playfair Display", Georgia, serif;
  --sans: "Inter", -apple-system, "Helvetica Neue", Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  font-weight: 300;
  color: var(--ink);
  background: var(--ivory);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; }

.container { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.container.narrow { max-width: 760px; }

/* ---- Header ---- */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 12px;
  padding-bottom: 12px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  min-width: 0;
}
.logo-mark { height: 40px; width: auto; flex-shrink: 0; }
/* CONSULTING centers under the name, matching the logo lockup */
.wordmark { line-height: 1.1; display: block; text-align: center; }
.wordmark-name {
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 600;
  color: var(--black);
  display: block;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.wordmark-name em { font-style: normal; color: var(--gold); }
.wordmark-sub {
  display: block;
  font-size: 10.5px;
  letter-spacing: 0.42em;
  margin-right: -0.42em; /* cancel trailing letter-space so centering is optical */
  text-transform: uppercase;
  color: var(--ink);
  font-weight: 400;
  margin-top: 2px;
}
.site-nav { display: flex; align-items: center; gap: 26px; flex-shrink: 0; }
.site-nav a {
  text-decoration: none;
  color: var(--ink);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.04em;
}
.site-nav a:hover { color: var(--gold-deep); }
.nav-cta {
  border: 1px solid var(--gold);
  color: var(--gold-deep) !important;
  padding: 8px 18px;
  border-radius: 2px;
  font-weight: 500 !important;
}
.nav-cta:hover { background: var(--gold); color: var(--white) !important; }

/* ---- Hero ---- */
.hero {
  background: var(--white);
  padding: 56px 0 84px;
  border-bottom: 1px solid var(--line);
}
.hero-kicker {
  font-size: 13px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold-deep);
  font-weight: 500;
  margin-bottom: 22px;
}
.hero h1 {
  font-family: var(--serif);
  font-size: clamp(36px, 6.5vw, 64px);
  font-weight: 500;
  color: var(--black);
  line-height: 1.12;
  margin-bottom: 26px;
}
.hero h1 .gold { color: var(--gold); }
.hero-lede {
  font-size: 19px;
  max-width: 560px;
  margin-bottom: 36px;
  color: #4a463d;
}

/* ---- Buttons ---- */
.btn {
  display: inline-block;
  text-decoration: none;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 15px 34px;
  border-radius: 2px;
  border: none;
  cursor: pointer;
  text-align: center;
}
.btn-gold { background: var(--gold); color: var(--white); }
.btn-gold:hover { background: var(--gold-deep); }

/* ---- Sections ---- */
.section { padding: 88px 0; position: relative; overflow: hidden; }

/* faint thematic motifs behind section headings */
.section-motif {
  position: absolute;
  color: var(--ink);
  opacity: 0.06;
  pointer-events: none;
}
.motif-mirror { width: 230px; top: 48px; right: 4%; }
.motif-shield { width: 180px; top: 40px; right: 5%; }

.kicker-win { font-weight: 700; color: var(--gold-deep); }
.section-alt { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-kicker {
  font-size: 12px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold-deep);
  font-weight: 500;
  margin-bottom: 14px;
}
.section h2 {
  font-family: var(--serif);
  font-size: clamp(29px, 4vw, 42px);
  font-weight: 500;
  color: var(--black);
  line-height: 1.2;
  margin-bottom: 24px;
}
.section p { margin-bottom: 18px; }
.section-lede { font-size: 17px; max-width: 620px; color: #4a463d; margin-bottom: 40px; }

/* ---- About photo ---- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 240px;
  gap: 40px;
  align-items: start;
}
.about-photo { margin: 6px 0 0; }
.about-photo img {
  width: 100%;
  height: auto;
  display: block;
  border-bottom: 3px solid var(--gold);
}

/* ---- Services ---- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}
.service-card {
  background: var(--ivory);
  border: 1px solid var(--line);
  border-top: 3px solid var(--gold);
  padding: 34px 30px 28px;
}
.service-num {
  font-family: var(--serif);
  font-size: 15px;
  color: var(--gold);
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}
.service-card h3 {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 600;
  color: var(--black);
  margin-bottom: 12px;
  line-height: 1.3;
}
.service-card p { font-size: 15px; margin-bottom: 0; }

/* ---- Credentials ---- */
.cred-list { list-style: none; margin-top: 10px; }
.cred-list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}
.cred-list li:first-child { border-top: 1px solid var(--line); }
.cred-title {
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 600;
  color: var(--black);
}
.cred-sub {
  font-weight: 400;
  font-size: 16px;
  color: #5a564b;
  white-space: nowrap;
}
.cred-detail { font-size: 15px; color: #5a564b; text-align: right; }

/* ---- Contact ---- */
.section-dark { background: var(--black); }
.section-dark .section-kicker { color: var(--gold); }
.section-dark h2 { color: var(--white); }
.section-dark .section-lede { color: #b9b4a6; }

.inquiry-form { margin-top: 8px; }
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.form-field { margin-bottom: 20px; }
.form-field label {
  display: block;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #b9b4a6;
  font-weight: 500;
  margin-bottom: 8px;
}
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  background: #201f1c;
  border: 1px solid #3a382f;
  border-radius: 2px;
  color: var(--white);
  font-family: var(--sans);
  font-size: 16px; /* 16px+ prevents iOS auto-zoom on focus */
  font-weight: 300;
  padding: 13px 14px;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--gold);
}
.form-field textarea { resize: vertical; }
.form-field ::placeholder { color: #6e6a5e; }
.hidden-field { display: none; }
.inquiry-form .btn { margin-top: 8px; }

/* ---- Footer ---- */
.site-footer {
  background: var(--black);
  border-top: 1px solid #2c2a24;
  padding: 40px 0 48px;
  text-align: center;
}
.footer-name {
  font-family: var(--serif);
  color: var(--white);
  font-size: 16px;
  margin-bottom: 14px;
}
.footer-disclaimer {
  color: #8d897c;
  font-size: 12.5px;
  max-width: 640px;
  margin: 0 auto 14px;
  line-height: 1.6;
}
.footer-copy { color: #6e6a5e; font-size: 12px; }

/* ---- Thanks page ---- */
.thanks-wrap {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 24px;
}
.thanks-wrap h1 {
  font-family: var(--serif);
  font-size: 40px;
  font-weight: 500;
  color: var(--black);
  margin-bottom: 18px;
}
.thanks-wrap p { max-width: 480px; margin: 0 auto 28px; }

/* ---- Tablet & below ---- */
@media (max-width: 840px) {
  .section { padding: 68px 0; }
  .services-grid { gap: 20px; }
}

/* ---- Mobile ---- */
@media (max-width: 720px) {
  .container { padding: 0 20px; }

  /* header: monogram + wordmark + Inquire; hide anchor links (one-page scroll) */
  .site-nav a:not(.nav-cta) { display: none; }
  .logo-mark { height: 38px; }
  .wordmark-name { font-size: 18px; }
  .wordmark-sub { font-size: 9px; letter-spacing: 0.34em; }
  .nav-cta { padding: 8px 14px; font-size: 13px; }

  .hero { padding: 40px 0 60px; }
  .hero-kicker { font-size: 11px; margin-bottom: 16px; }
  .hero-lede { font-size: 17px; }

  .section { padding: 56px 0; }
  .section-lede { margin-bottom: 30px; }

  .services-grid { grid-template-columns: 1fr; }
  .service-card { padding: 26px 22px 22px; }

  .form-row { grid-template-columns: 1fr; gap: 0; }
  .btn-submit { width: 100%; }

  .cred-list li { flex-direction: column; gap: 4px; padding: 16px 0; }
  .cred-detail { text-align: left; }

  .about-grid { grid-template-columns: 1fr; gap: 8px; }
  .about-photo { order: -1; max-width: 240px; margin: 0 auto 18px; }

  .motif-mirror { width: 150px; top: 30px; right: -30px; }
  .motif-shield { width: 120px; top: 26px; right: -24px; }

  .hero .btn { display: block; max-width: 340px; }
}

/* ---- Small phones ---- */
@media (max-width: 400px) {
  .hero h1 { font-size: 33px; }
  .wordmark-sub { display: none; }
}
