/* Dialed-In Web: pages area styles (About, Contact, White Label Qualifier, Thank You, Privacy/Terms, blog + author page,
   the agency intake form and the site-wide intake pop-up). Owned by the pages builder; loads after diw.css.
   Every rule is scoped to one of: .diw-about, .diw-contact, .ds-thank-you, .diw-legal, .ds-blog, .diw-intake, .af, .ds-modal. */

:root { --dp-sage: #5E7F45; --dp-sage-ink: #4C6B35; --dp-sage-lt: #A9CB8B; --dp-navy: #0B1424; }

/* ---------- Light grounds on these pages: sage accents, never the inherited red ---------- */
.diw-about .ab-story, .diw-about .ab-values, .diw-about .ab-logos, .diw-contact .ct-details { --hd-red-text: var(--dp-sage-ink); }
.diw-about .ab-story, .diw-about .ab-logos, .diw-contact .ct-details { background-color: #F4F2EC !important; background-image: url("img/tex-light-linen.jpg") !important; background-size: cover !important; }
.diw-about .ab-values { background-color: #FFFFFF !important; background-image: none !important; }

/* ---------- About ---------- */
.diw-ab-hero { padding-bottom: 150px !important; }
.diw-ab-hero__copy { max-width: 720px; }
.diw-ab-hero .ab-hero__bg::after { background: linear-gradient(90deg, rgba(11, 20, 36, .94) 0%, rgba(11, 20, 36, .82) 45%, rgba(11, 20, 36, .45) 100%) !important; }
.diw-ab-hero__actions .hd-btn { min-width: 220px; justify-content: center; }
.diw-about .ab-stats { background-color: var(--dp-navy); }

.diw-about .ab-founder { background-image: url("img/tex-dark-linen.jpg") !important; background-position: center !important; }
.diw-about .ab-founder .hd-founder__ring { border-color: rgba(169, 203, 139, .40); }
.diw-about .ab-founder .hd-founder__frame img { object-position: 50% 22%; }

.diw-about .ab-timeline { background-image: url("img/tex-dark-linen.jpg") !important; background-size: cover !important; }
.diw-about .ab-eras::before { background: linear-gradient(180deg, rgba(94, 127, 69, .1), rgba(94, 127, 69, .75) 8%, rgba(94, 127, 69, .75) 92%, rgba(94, 127, 69, .1)) !important; }
.diw-about .ab-era::before { background: var(--dp-sage) !important; box-shadow: 0 0 0 5px rgba(94, 127, 69, .25), 0 0 0 1px rgba(255, 255, 255, .25) !important; }

.diw-about .ab-mission { background-color: var(--dp-sage-ink) !important; background-image: linear-gradient(100deg, #4C6B35 0%, #3F5A2C 45%, #0B1424 100%) !important; }

.diw-about .ab-vision { --hd-white: #15171B; --hd-text: #3A3E45; --hd-red-text: var(--dp-sage-ink); background-color: #F4F2EC !important; background-image: url("img/tex-light-linen.jpg") !important; background-size: cover !important; color: #3A3E45; }
.diw-about .ab-vision .hd-title { color: #15171B; }
.diw-about .ab-vision .gu-kicker { color: #3A3E45; }
.diw-about .ab-vision__photo img { border-radius: 4px; }

.diw-about .ab-val__num { color: var(--dp-sage) !important; }

/* Client logos: the one wide banner image runs the full panel width */
.diw-about .ab-logos--banner { padding: 40px 48px 44px; border-top: 0; border-radius: 4px; background: #FFFFFF; box-shadow: 0 1px 2px rgba(11, 20, 36, .06), 0 14px 32px -18px rgba(11, 20, 36, .25); }
.diw-about .ab-logos--banner .gu-logos__label { margin: 0 0 28px; color: #15171B; font-family: var(--ds-head); font-size: 22px; font-weight: 500; text-align: center; }
.diw-about .ab-logos--banner .gu-logos__list { display: block; }
.diw-about .ab-logos--banner .gu-logos__list { padding: 0 !important; background: none !important; box-shadow: none !important; border: 0 !important; }
.diw-about .ab-logos--banner .gu-logos__list li { display: block; height: auto !important; padding: 0 !important; }
.diw-about .ab-logos--banner img { display: block; width: 100% !important; max-width: 1000px; height: auto !important; max-height: none !important; margin: 0 auto; opacity: 1 !important; filter: none !important; }

/* ---------- Intake section (Contact, Qualifier, About, blog): the homepage close with a working form ---------- */
.diw-intake { background-color: var(--dp-navy) !important; background-image: radial-gradient(70% 55% at 50% 100%, rgba(94, 127, 69, .28), transparent 70%), url("img/tex-dark-linen.jpg") !important; background-size: auto, cover !important; }
.diw-intake--top { padding-top: 176px !important; }
.diw-intake .hd-contact__phone { margin-top: 8px; }
.diw-intake__card { padding: 0 !important; background: transparent !important; border: 0 !important; box-shadow: none !important; }

@media (max-width: 1023px) { .diw-intake .hd-contact__grid { grid-template-columns: minmax(0, 1fr) !important; } }
.diw-intake .hd-contact__content, .diw-intake .hd-contact__form, .af, .af .hf__viewport { min-width: 0; max-width: 100%; }
.af .hf__step { flex: 0 0 100%; min-width: 0; }

/* ---------- Agency intake form (.af = hero-form.js markup, white card) ---------- */
.af { border-radius: 4px; background: #FFFFFF; color: #15171B; box-shadow: 0 2px 6px rgba(0, 0, 0, .18), 0 24px 48px -16px rgba(0, 0, 0, .5); overflow: hidden; }
.af .hf__bar { background: #E4E8E0; }
.af .hf__bar-fill { background: var(--dp-sage); }
.af .hf__title { color: #15171B; }
.af h1.hf__title { margin: 0; font-family: var(--ds-head); font-size: 24px; font-weight: 500; line-height: 1.25; }
.af__label { margin: 4px 0 10px; color: #15171B; font-size: 13.5px; font-weight: 600; }
.af__consent { margin: 14px 0 0; color: #5F646C; font-size: 13px; line-height: 1.55; }
.af__consent a, .af .hf__sub a { color: var(--dp-sage-ink); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.af textarea { width: 100%; min-height: 92px; padding: 12px 14px; border: 1px solid #D3DAE3; border-radius: 4px; background: #F7F9FB; color: #15171B; font: 500 15.5px/1.5 var(--hd-font); resize: vertical; }
.af textarea:focus { outline: 2px solid var(--dp-sage); outline-offset: 1px; background: #FFFFFF; }
.af .hf__chip input:checked + span { border-color: var(--dp-sage); background: #EEF4E8; color: #2C3F1F; }
.af .hf__chip input:focus-visible + span { outline: 2px solid var(--dp-sage); outline-offset: 2px; }

/* Pop-up: the same card */
.ds-modal .ds-modal__eyebrow { color: var(--dp-sage-lt); }
.ds-modal .af { border-radius: 0 0 4px 4px; box-shadow: none; }

/* ---------- Contact + Qualifier ---------- */
.diw-contact .ct-details { --hd-white: #15171B; --hd-text: #3A3E45; --hd-muted: #5F646C; }
.diw-contact .ct-details .hd-title { color: #15171B; }
.diw-contact .ct-details__list a { color: #15171B; text-decoration: underline; text-decoration-color: rgba(94, 127, 69, .5); text-underline-offset: 4px; }
.diw-contact .ct-details__list a:hover { color: var(--dp-sage-ink); }
.diw-contact .hd-review__avatar, .diw-about .hd-review__avatar { object-fit: cover; }

/* ---------- Thank You ---------- */
.ds-thank-you .ty-hero { padding-top: 176px !important; background-color: var(--dp-navy) !important; background-image: radial-gradient(70% 55% at 50% 100%, rgba(94, 127, 69, .28), transparent 70%), url("img/tex-dark-linen.jpg") !important; background-size: auto, cover !important; }

/* ---------- Privacy / Terms (GeneratePress page template) ---------- */
body.hd-body.diw-legal .entry-content a { color: var(--dp-sage-ink); }
body.hd-body.diw-legal .entry-content h2 { margin-top: 1.8em; }
body.hd-body.diw-legal .entry-content ul { padding-left: 1.2em; }

/* ---------- Blog ---------- */
.ds-blog .db-list, .ds-blog .db-body { background-color: #F4F2EC; background-image: url("img/tex-light-linen.jpg"); background-size: cover; }
.ds-blog .db-related { background: #FFFFFF; }
.ds-blog .db-pill.is-active { background: var(--dp-navy); }
.ds-blog .db-prose ul > li::before { background: var(--dp-sage); }
.ds-blog .db-prose blockquote { border-left-color: var(--dp-sage); }
.ds-blog .db-byline__name a { color: inherit; }
.ds-blog .db-byline__name a:hover { color: var(--dp-sage-lt); }
.ds-blog .db-author__name a { color: inherit; text-decoration: none; }

/* A post without a photo: typographic card */
.db-card__media--type { display: flex; flex-direction: column; justify-content: flex-end; gap: 10px; padding: 24px 26px; background-color: var(--dp-navy); background-image: radial-gradient(90% 70% at 100% 0%, rgba(94, 127, 69, .35), transparent 70%), url("img/tex-dark-linen.jpg"); background-size: auto, cover; }
.db-type__cat { color: var(--dp-sage-lt); font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.db-type__title { display: -webkit-box; overflow: hidden; color: #FFFFFF; font-family: var(--ds-head); font-size: 20px; font-weight: 500; line-height: 1.25; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }

/* Author page: profile hero + about/credentials */
.db-hero--author { padding-bottom: 96px; }
.db-author-hero { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 56px; align-items: center; }
.db-author-hero__photo { margin: 0; }
.db-author-hero__photo img { display: block; width: 280px; height: 280px; border-radius: 4px; object-fit: cover; object-position: 50% 22%; box-shadow: 0 0 0 1px rgba(255, 255, 255, .12), 0 24px 48px -20px rgba(0, 0, 0, .6); }
.db-author-hero__role { margin: 10px 0 0; color: var(--dp-sage-lt); font-size: 16px; font-weight: 600; letter-spacing: .02em; }
.db-hero--author .db-hero__lead { color: #C9D3E0; }
.db-profile { padding: 88px 0 24px; background-color: #F4F2EC; background-image: url("img/tex-light-linen.jpg"); background-size: cover; color: #3A3E45; }
.db-profile__grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 64px; align-items: start; }
.db-profile__about .hd-title { margin: 0 0 20px; color: #15171B; }
.db-profile__about p { margin: 0 0 1.1em; font-size: 17.5px; line-height: 1.75; }
.db-profile__facts { padding: 32px 32px 26px; border-radius: 4px; background: #FFFFFF; box-shadow: 0 1px 2px rgba(11, 20, 36, .06), 0 14px 32px -18px rgba(11, 20, 36, .25); }
.db-profile__title { margin: 0 0 12px; color: #15171B; font-family: var(--ds-head); font-size: 18px; font-weight: 600; }
.db-profile__title + ul { margin: 0 0 26px; padding: 0; list-style: none; }
.db-profile__facts li { position: relative; padding: 10px 0 10px 24px; border-top: 1px solid rgba(21, 23, 27, .1); font-size: 15.5px; line-height: 1.45; color: #2C3036; }
.db-profile__facts li::before { content: ""; position: absolute; left: 2px; top: 17px; width: 10px; height: 6px; border: solid var(--dp-sage); border-width: 0 0 2px 2px; transform: rotate(-45deg); }
.ds-blog--author .db-list { padding-top: 48px; }

@media (max-width: 1000px) {
  .db-profile__grid { grid-template-columns: minmax(0, 1fr); gap: 36px; }
}
@media (max-width: 760px) {
  .diw-intake--top, .ds-thank-you .ty-hero { padding-top: 128px !important; }
  .diw-ab-hero { padding-bottom: 110px !important; }
  .diw-ab-hero__actions .hd-btn { width: 100%; min-width: 0; }
  .diw-about .ab-logos--banner { padding: 26px 18px 28px; }
  .diw-about .ab-logos--banner .gu-logos__label { font-size: 18px; margin-bottom: 18px; }
  .db-author-hero { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .db-author-hero__photo img { width: 160px; height: 160px; }
  .db-profile { padding-top: 56px; }
  .db-profile__about p { font-size: 16.5px; }
  .db-profile__facts { padding: 24px 20px 18px; }
  .af h1.hf__title { font-size: 21px; }
}

/* ---------- Gravity Forms in the intake card (page field "Form shortcode"): same white card and controls as .af ---------- */
.af.diw-gf { padding: 28px 28px 30px; }
.diw-gf .diw-gf__title { margin: 0 0 18px; font-size: 22px; }
.hd-body .diw-gf .gform_wrapper .gfield_label, .hd-body .diw-gf .gform_wrapper legend.gfield_label { color: #15171B; font-size: 13.5px; font-weight: 600; }
.hd-body .diw-gf .gform_wrapper .gfield_required { color: var(--dp-sage-ink); }
.hd-body .diw-gf .gform_wrapper input[type="text"], .hd-body .diw-gf .gform_wrapper input[type="tel"], .hd-body .diw-gf .gform_wrapper input[type="email"], .hd-body .diw-gf .gform_wrapper input[type="url"], .hd-body .diw-gf .gform_wrapper textarea { width: 100%; height: 46px; padding: 0 12px; border: 1px solid #D3DAE3; border-radius: 4px; background: #F7F9FB; color: #15171B; font: 500 15.5px/1.4 var(--hd-font); }
.hd-body .diw-gf .gform_wrapper textarea { height: auto; min-height: 92px; padding: 12px 14px; }
.hd-body .diw-gf .gform_wrapper input:focus, .hd-body .diw-gf .gform_wrapper textarea:focus { outline: 2px solid var(--dp-sage); outline-offset: 1px; border-color: var(--dp-sage); background: #FFFFFF; }
.hd-body .diw-gf .gform_wrapper ::placeholder { color: #8A9099; }
.hd-body .diw-gf .gform_wrapper .gfield_description, .hd-body .diw-gf .gform_wrapper .gfield--type-html { color: #5F646C; font-size: 13px; line-height: 1.55; }
.hd-body .diw-gf .gform_wrapper .gfield--type-html a { color: var(--dp-sage-ink); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
/* Services: checkboxes as chips */
.hd-body .diw-gf .gfield_checkbox { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.hd-body .diw-gf .gfield_checkbox .gchoice { position: relative; margin: 0; }
.hd-body .diw-gf .gfield_checkbox input { position: absolute; opacity: 0; pointer-events: none; }
.hd-body .diw-gf .gfield_checkbox label { display: inline-block; margin: 0; padding: 8px 12px; border: 1px solid #C9D1DB; border-radius: 4px; background: #F7F9FB; color: #2C3036; font-size: 13.5px; font-weight: 600; cursor: pointer; }
.hd-body .diw-gf .gfield_checkbox input:checked + label { border-color: var(--dp-sage); background: #EEF4E8; color: #2C3F1F; }
.hd-body .diw-gf .gfield_checkbox input:focus-visible + label { outline: 2px solid var(--dp-sage); outline-offset: 2px; }
/* Multi-page: progress bar and Back / Next */
.hd-body .diw-gf .gf_progressbar_wrapper { margin: 0 0 18px; }
.hd-body .diw-gf .gf_progressbar_title { margin: 0 0 8px; color: #5F646C; font-size: 12.5px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.hd-body .diw-gf .gf_progressbar { height: 4px; border-radius: 2px; background: #E4E8E0; overflow: hidden; }
.hd-body .diw-gf .gf_progressbar_percentage { height: 100%; background: var(--dp-sage); font-size: 0; transition: width .35s ease; }
.hd-body .diw-gf .gform_page_footer { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.hd-body .diw-gf .gform_page_footer .gform_previous_button { order: 0; }
.hd-body .diw-gf .gform_page_footer .gform_next_button, .hd-body .diw-gf .gform_page_footer .gform_button { order: 1; margin-left: auto; }
.hd-body .diw-gf .gform_next_button, .hd-body .diw-gf .gform_button { min-height: 48px; padding: 0 26px; border: 0; border-radius: 4px; background: linear-gradient(180deg, #6E9254 0%, #4C6B35 100%); color: #fff; font: 700 15px/1 var(--hd-font); cursor: pointer; }
.hd-body .diw-gf .gform_previous_button { padding: 12px 14px; border: 0; background: none; color: #4A4F57; font: 600 14.5px/1 var(--hd-font); cursor: pointer; }
.hd-body .diw-gf .gform_previous_button:hover { color: #15171B; text-decoration: underline; }
.hd-body .diw-gf .gform_validation_errors { background: #FBEFEF; border: 1px solid #E5B8B8; color: #7A2121; }
.hd-body .diw-gf .gform_validation_errors h2, .hd-body .diw-gf .gform_validation_errors .gform_submission_error { color: #7A2121; font-size: 14px; font-weight: 600; line-height: 1.45; }
.hd-body .diw-gf .gfield_error input, .hd-body .diw-gf .gfield_error textarea { border-color: #C0504D; }
.hd-body .diw-gf .validation_message, .hd-body .diw-gf .gfield_validation_message { color: #A33A3A; background: none; border: 0; font-size: 13px; }
@media (max-width: 480px) { .af.diw-gf { padding: 22px 18px 24px; } }
