/*
Theme Name: Grapevine Advisory
Theme URI: https://grapevinemediamarketing.com
Author: Grapevine Media Marketing LLC
Description: Single-page advisory theme for Grapevine Media Marketing — senior marketing strategy and performance oversight for behavioral health organizations.
Version: 1.2.0
Requires at least: 6.5
Tested up to: 7.1
Requires PHP: 8.0
License: Proprietary
Text Domain: grapevine
*/

:root {
  --ink: #1b2730;
  --ink-soft: #4a5862;
  --paper: #f7f5f0;
  --paper-deep: #efece4;
  --green: #1f3d2e;
  --green-deep: #15291f;
  --gold: #b48a4e;
  --line: #d9d4c8;
  --white: #ffffff;
  --max: 1120px;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green); }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.15; margin: 0 0 .5em; color: var(--ink); letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 4.2vw, 3.1rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
.wrap { width: min(var(--max), calc(100% - 32px)); margin-inline: auto; }
.section { padding: clamp(56px, 8vw, 104px) 0; }
.section--tint { background: var(--paper-deep); }
.section--dark { background: var(--green); color: #e9eee9; }
.section--dark h2, .section--dark h3 { color: var(--white); }
.section--dark a { color: #d9c59c; }
.eyebrow { font-family: var(--sans); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); font-weight: 600; margin-bottom: 14px; }
.lede { font-size: 1.15rem; color: var(--ink-soft); max-width: 62ch; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(247,245,240,.94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand { flex-direction: column; align-items: flex-start; gap: 3px; }
.wordmark { display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; }
.wm-name { font-family: var(--serif); font-weight: 600; font-size: 1.45rem; letter-spacing: -0.01em; color: var(--green); line-height: 1; }
.wm-rule { width: 2px; height: 14px; background: var(--gold); display: inline-block; }
.wm-sub { font-family: var(--sans); font-weight: 500; font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--ink); }
.wm-tag { font-family: var(--sans); font-weight: 500; font-size: .6rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); }
.wordmark--light .wm-name { color: #fff; }
.wordmark--light .wm-sub { color: #e9eee9; }
.site-footer .wordmark { margin-bottom: 6px; }
.site-nav { display: flex; gap: 26px; align-items: center; }
.site-nav a { text-decoration: none; color: var(--ink); font-weight: 500; font-size: .95rem; }
.site-nav a:hover { color: var(--green); }
.site-nav .btn--primary { color: var(--white); padding: 11px 18px; font-size: .9rem; }
.site-nav .btn--primary:hover { color: var(--white); }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 6px; padding: 8px 10px; font: inherit; cursor: pointer; }

/* Buttons */
.btn { display: inline-block; padding: 14px 26px; border-radius: 6px; font-weight: 600; text-decoration: none; font-size: 1rem; line-height: 1; transition: background .15s, color .15s; }
.btn--primary { background: var(--green); color: var(--white); }
.btn--primary:hover { background: var(--green-deep); }
.btn--ghost { color: var(--green); border: 1.5px solid var(--green); }
.btn--ghost:hover { background: var(--green); color: var(--white); }
.section--dark .btn--primary { background: var(--gold); color: var(--green-deep); }
.section--dark .btn--primary:hover { background: #c9a066; }

/* Hero */
.hero { padding: clamp(72px, 10vw, 132px) 0 clamp(56px, 8vw, 96px); background: linear-gradient(180deg, var(--paper) 0%, var(--paper-deep) 100%); }
.hero h1 { max-width: 22ch; }
.hero .lede { margin-top: 18px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-top: 30px; }
.hero-note { font-size: .9rem; color: var(--ink-soft); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.hero-aside { border-left: 3px solid var(--gold); padding-left: 22px; color: var(--ink-soft); font-size: 1rem; }
.hero-aside strong { color: var(--ink); display: block; margin-bottom: 4px; font-family: var(--serif); font-size: 1.1rem; }

/* Fit */
.fit-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; margin-top: 36px; }
.fit-card { background: var(--white); border: 1px solid var(--line); border-radius: 10px; padding: 30px; }
.fit-card h3 { display: flex; align-items: center; gap: 10px; }
.fit-card ul { margin: 12px 0 0; padding-left: 20px; }
.fit-card li { margin-bottom: 8px; }
.fit-card--no { background: transparent; }

/* Problems */
.problems { list-style: none; padding: 0; margin: 36px 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 40px; }
.problems li { padding: 18px 0 18px 26px; border-top: 1px solid var(--line); position: relative; font-size: 1.05rem; }
.problems li::before { content: ""; position: absolute; left: 0; top: 29px; width: 10px; height: 10px; border-radius: 50%; background: var(--gold); }

/* Services */
.services { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 40px; }
.service { background: var(--white); border: 1px solid var(--line); border-radius: 10px; padding: 34px 32px; display: flex; flex-direction: column; }
.service .num { font-family: var(--serif); color: var(--gold); font-size: 1rem; margin-bottom: 14px; }
.service p { color: var(--ink-soft); }
.service .deliverable { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); font-size: .92rem; color: var(--ink); }
.service .deliverable strong { color: var(--green); }
.service--wide { grid-column: 1 / -1; }

/* Experience */
.exp-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 56px; align-items: start; }
.exp-systems { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); border-radius: 10px; padding: 28px; }
.exp-systems h3 { font-size: 1rem; letter-spacing: .1em; text-transform: uppercase; font-family: var(--sans); font-weight: 600; color: #d9c59c; }
.exp-systems ul { columns: 2; padding-left: 18px; margin: 12px 0 0; }
.exp-systems li { margin-bottom: 6px; break-inside: avoid; }

/* Process */
.steps { counter-reset: step; list-style: none; padding: 0; margin: 40px 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.steps li { counter-increment: step; background: var(--white); border: 1px solid var(--line); border-radius: 10px; padding: 26px 24px; }
.steps li::before { content: counter(step, decimal-leading-zero); display: block; font-family: var(--serif); font-size: 1.6rem; color: var(--gold); margin-bottom: 10px; }
.steps h3 { font-size: 1.12rem; }
.steps p { color: var(--ink-soft); font-size: .97rem; margin: 0; }
.terms { margin-top: 32px; max-width: 70ch; color: var(--ink-soft); }

/* Inquiry */
.inquiry-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 56px; align-items: start; }
.inquiry-aside p { color: var(--ink-soft); }
.inquiry-aside .contact { margin-top: 24px; font-size: .97rem; }
.inquiry-aside .contact a { text-decoration: none; font-weight: 600; }
.inquiry-form { background: var(--white); border: 1px solid var(--line); border-radius: 10px; padding: 34px; }
.inquiry-form .placeholder { color: var(--ink-soft); font-size: .95rem; }

/* WPForms overrides */
.inquiry-form .wpforms-container { margin: 0; }
.inquiry-form .wpforms-field-label { font-weight: 600; font-size: .95rem; margin-bottom: 6px; }
.inquiry-form input[type=text], .inquiry-form input[type=email], .inquiry-form input[type=tel], .inquiry-form input[type=url],
.inquiry-form select, .inquiry-form textarea {
  width: 100%; border: 1px solid var(--line); border-radius: 6px; padding: 12px 14px; font: inherit; background: var(--paper); color: var(--ink);
}
.inquiry-form input:focus, .inquiry-form select:focus, .inquiry-form textarea:focus { outline: 2px solid var(--green); outline-offset: 1px; }
.inquiry-form .wpforms-submit { background: var(--green) !important; color: #fff !important; border: 0 !important; border-radius: 6px !important; padding: 14px 28px !important; font-weight: 600 !important; font-size: 1rem !important; cursor: pointer; }
.inquiry-form .wpforms-submit:hover { background: var(--green-deep) !important; }

/* Footer */
.site-footer { background: var(--green-deep); color: #b7c4bb; padding: 44px 0 36px; font-size: .9rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px 40px; align-items: center; }
.site-footer a { color: #e2e8e2; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer nav { display: flex; gap: 22px; flex-wrap: wrap; }

/* Inner pages */
.page-inner { padding: clamp(56px, 8vw, 96px) 0; min-height: 60vh; }
.page-inner .content { max-width: 72ch; }
.page-inner h1 { margin-bottom: .6em; }
.page-inner h2 { font-size: 1.45rem; margin-top: 1.8em; }

@media (max-width: 900px) {
  .hero-grid, .exp-grid, .inquiry-grid { grid-template-columns: 1fr; gap: 36px; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .fit-grid, .services, .problems, .steps { grid-template-columns: 1fr; }
  .exp-systems ul { columns: 1; }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--paper); border-bottom: 1px solid var(--line); flex-direction: column; align-items: flex-start; padding: 16px; gap: 14px; }
  .site-nav.is-open { display: flex; }
  .nav-toggle { display: inline-block; }
  .inquiry-form { padding: 24px 18px; }
}
