/*
Theme Name: Dina Porter Tax
Theme URI: https://thisisdina.com
Author: Built for Dina Porter
Description: A warm, trustworthy WordPress theme for an independent tax preparer. Ledger-inspired design, mobile-first, with a built-in contact form, lead inbox, and local business SEO markup.
Version: 1.2.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: dina-tax
Tags: business, one-column, custom-menu, custom-logo, featured-images, accessibility-ready, blog
*/

/* ==========================================================================
   1. DESIGN TOKENS
   The palette comes from a columnar accounting pad: warm paper, sage ledger
   rules, a red-ochre margin line. Change these six values to re-skin the
   entire site.
   ========================================================================== */

:root {
  /* Color */
  --paper:      #FCF7F0;  /* warm page background */
  --paper-deep: #F5EDE3;  /* alternating section background */
  --ledger:     #D7E4D8;  /* sage ruling lines */
  --ink:        #223027;  /* headings + body text */
  --ink-soft:   #55635A;  /* secondary text */
  --rose:       #A85C6B;  /* primary action, links */
  --rose-deep:  #8B4756;  /* hover */
  --rose-mist:  #EFDCDF;  /* rose tint background */
  --apricot:    #E9B08A;  /* margin rule, small highlights */
  --white:      #FFFFFF;

  /* Type */
  --display: "Petrona", Georgia, "Times New Roman", serif;
  --body: "Karla", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;

  --step--1: clamp(0.82rem, 0.79rem + 0.15vw, 0.9rem);
  --step-0:  clamp(1rem, 0.96rem + 0.2vw, 1.09rem);
  --step-1:  clamp(1.2rem, 1.12rem + 0.4vw, 1.45rem);
  --step-2:  clamp(1.45rem, 1.3rem + 0.75vw, 1.95rem);
  --step-3:  clamp(1.75rem, 1.5rem + 1.25vw, 2.6rem);
  --step-4:  clamp(2.1rem, 1.6rem + 2.4vw, 3.6rem);

  /* Layout */
  --wrap: 1140px;
  --wrap-narrow: 720px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --section-y: clamp(3.5rem, 8vw, 6.5rem);
  --radius: 14px;
  --radius-sm: 8px;

  --shadow-sm: 0 1px 2px rgba(34, 48, 39, 0.06), 0 4px 12px rgba(34, 48, 39, 0.05);
  --shadow-md: 0 2px 4px rgba(34, 48, 39, 0.06), 0 12px 32px rgba(34, 48, 39, 0.09);

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ==========================================================================
   2. RESET + BASE
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: var(--step-0);
  line-height: 1.65;
  font-feature-settings: "kern" 1;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg, video { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.14;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 0 0 0.5em;
  text-wrap: balance;
}

h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); }
h4 { font-size: var(--step-0); }

p { margin: 0 0 1.1em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

a { color: var(--rose); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--rose-deep); }

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

ul, ol { padding-left: 1.15em; }

/* Utility ---------------------------------------------------------------- */

.wrap { width: min(var(--wrap), 100% - (var(--gutter) * 2)); margin-inline: auto; }
.wrap--narrow { width: min(var(--wrap-narrow), 100% - (var(--gutter) * 2)); }

.screen-reader-text {
  position: absolute !important;
  width: 1px !important; height: 1px !important;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 50%; top: 0;
  transform: translate(-50%, -150%);
  background: var(--ink); color: var(--paper);
  padding: 0.75rem 1.25rem; border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  z-index: 999; font-weight: 700;
}
.skip-link:focus { transform: translate(-50%, 0); color: var(--paper); }

/* Eyebrow label — set in the utility face, tracked out like a form field
   caption on a tax return. */
.eyebrow {
  font-family: var(--body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--rose);
  margin: 0 0 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.eyebrow::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--ledger);
  max-width: 90px;
}
.eyebrow--center { justify-content: center; }
.eyebrow--center::before {
  content: ""; flex: 1; height: 1px; background: var(--ledger); max-width: 90px;
}

.lede { font-size: var(--step-1); color: var(--ink-soft); line-height: 1.55; }

/* Buttons ---------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.95rem 1.7rem;
  border-radius: 999px;
  border: 1.5px solid transparent;
  font-family: var(--body);
  font-size: var(--step-0);
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  text-align: center;
  transition: transform 0.18s var(--ease), background-color 0.18s var(--ease),
              box-shadow 0.18s var(--ease), color 0.18s var(--ease);
  min-height: 52px; /* comfortable thumb target */
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary { background: var(--rose); color: var(--white); box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--rose-deep); color: var(--white); box-shadow: var(--shadow-md); }

.btn--ghost { background: transparent; color: var(--ink); border-color: rgba(34, 48, 39, 0.22); }
.btn--ghost:hover { background: var(--white); color: var(--ink); border-color: var(--ink); }

.btn--small { padding: 0.6rem 1.2rem; font-size: var(--step--1); min-height: 42px; }

/* ==========================================================================
   3. LEDGER MOTIF — the signature
   Faint horizontal ruling plus one apricot margin rule, borrowed straight
   from a columnar accounting pad.
   ========================================================================== */

.ledger-bg {
  position: relative;
  background-image: repeating-linear-gradient(
    to bottom,
    transparent 0,
    transparent 43px,
    var(--ledger) 43px,
    var(--ledger) 44px
  );
  background-position: 0 0;
}
.ledger-bg > * { position: relative; z-index: 1; }

/* Fade the ruling out at the top and bottom so it never reads as a table. */
.ledger-bg::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(
    to bottom,
    var(--paper) 0%,
    transparent 22%,
    transparent 78%,
    var(--paper) 100%
  );
  pointer-events: none;
  z-index: 0;
}
.ledger-bg--deep::after {
  background: linear-gradient(
    to bottom,
    var(--paper-deep) 0%,
    transparent 22%,
    transparent 78%,
    var(--paper-deep) 100%
  );
}

/* ==========================================================================
   4. HEADER
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(252, 247, 240, 0.92);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.site-header.is-stuck {
  border-bottom-color: var(--ledger);
  box-shadow: 0 6px 24px rgba(34, 48, 39, 0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 78px;
}

.site-brand { display: flex; align-items: center; gap: 0.85rem; text-decoration: none; max-width: 74%; min-width: 0; }
.site-brand:hover { color: inherit; }

.brand-mark {
  width: 44px; height: 44px;
  flex: 0 0 44px;
  border-radius: 12px;
  background: var(--rose);
  color: var(--white);
  display: grid; place-items: center;
  font-family: var(--display);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name {
  font-family: var(--display);
  font-size: clamp(1rem, 0.85rem + 0.5vw, 1.22rem);
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.01em;
  /* Long titles wrap to two lines rather than pushing the nav off the row. */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.brand-tag {
  white-space: nowrap;
  font-size: 0.68rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 600;
}

/* Desktop nav */
.site-nav { display: none; }
.site-nav ul { list-style: none; display: flex; align-items: center; gap: clamp(0.9rem, 1.6vw, 1.65rem); margin: 0; padding: 0; flex-wrap: nowrap; }
.site-nav a {
  white-space: nowrap;
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.4rem 0;
  position: relative;
}
.site-nav a::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--rose);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.22s var(--ease);
}
.site-nav a:hover::after,
.site-nav .current-menu-item > a::after,
.site-nav a.is-active::after { transform: scaleX(1); }

.header-actions { display: flex; align-items: center; gap: 0.75rem; flex: 0 0 auto; }
.header-phone { display: none; }

/* Mobile toggle */
.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 46px; height: 46px;
  padding: 0 11px;
  background: transparent;
  border: 1.5px solid rgba(34, 48, 39, 0.18);
  border-radius: 12px;
  cursor: pointer;
}
.nav-toggle .bar {
  display: block; height: 2px; width: 100%;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.25s var(--ease), opacity 0.2s var(--ease);
}
.nav-toggle[aria-expanded="true"] .bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile drawer */
.mobile-nav {
  display: block;
  max-height: 0;
  overflow: hidden;
  background: var(--paper);
  border-top: 1px solid transparent;
  transition: max-height 0.32s var(--ease), border-color 0.32s var(--ease);
}
.mobile-nav.is-open { max-height: 70vh; overflow-y: auto; border-top-color: var(--ledger); }
.mobile-nav ul { list-style: none; margin: 0; padding: 0.75rem 0 1.5rem; }
.mobile-nav li { border-bottom: 1px solid var(--ledger); }
.mobile-nav li:last-child { border-bottom: 0; }
.mobile-nav a {
  display: block;
  padding: 1rem 0;
  text-decoration: none;
  color: var(--ink);
  font-family: var(--display);
  font-size: 1.2rem;
  font-weight: 600;
}
.mobile-nav .btn { margin-top: 1.25rem; width: 100%; }

/* ==========================================================================
   5. HERO
   ========================================================================== */

.hero {
  padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(3rem, 6vw, 4.5rem);
  position: relative;
  overflow: hidden;
}
.hero::before {
  /* soft rose bloom, top right */
  content: "";
  position: absolute;
  top: -22%; right: -14%;
  width: min(58vw, 620px); aspect-ratio: 1;
  background: radial-gradient(circle, var(--rose-mist) 0%, rgba(239, 220, 223, 0) 68%);
  z-index: 0;
  pointer-events: none;
}

.hero-inner { position: relative; z-index: 1; display: grid; gap: clamp(2.5rem, 6vw, 4rem); }

.hero-title { margin-bottom: 1.1rem; }
.hero-title em {
  font-style: italic;
  color: var(--rose);
  font-weight: 500;
}
.hero-lede { max-width: 46ch; margin-bottom: 2rem; }

.hero-cta { display: flex; flex-wrap: wrap; gap: 0.85rem; }

.hero-assurance {
  margin-top: 1.85rem;
  padding-top: 1.35rem;
  border-top: 1px solid var(--ledger);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  font-size: var(--step--1);
  color: var(--ink-soft);
  font-weight: 500;
}
.hero-assurance span { display: inline-flex; align-items: center; gap: 0.4rem; }
.hero-assurance svg { flex: 0 0 16px; color: var(--rose); }

/* Hero card — the "return summary" panel */
.hero-card {
  background: var(--white);
  border: 1px solid var(--ledger);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  align-self: start;
}
.hero-card-head {
  background: var(--ink);
  color: var(--paper);
  padding: 1.1rem 1.5rem;
  display: flex; align-items: baseline; justify-content: space-between; gap: 1rem;
}
.hero-card-head strong { font-family: var(--display); font-size: 1.05rem; font-weight: 600; }
.hero-card-head span {
  font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--apricot); font-weight: 700;
}
.hero-card-body { padding: 0.5rem 1.5rem 1.5rem; }

.card-row {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 0.95rem 0;
  border-bottom: 1px solid var(--ledger);
  font-size: 0.95rem;
}
.card-row:last-child { border-bottom: 0; }
.card-row dt { color: var(--ink-soft); margin: 0; }
.card-row dd {
  margin: 0; font-weight: 700; color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.card-row dd.accent { color: var(--rose); }

.hero-card-foot {
  background: var(--paper-deep);
  padding: 1.1rem 1.5rem;
  font-size: var(--step--1);
  color: var(--ink-soft);
  border-top: 1px solid var(--ledger);
}

/* ==========================================================================
   6. SECTIONS
   ========================================================================== */

.section { padding: var(--section-y) 0; }
.section--deep { background: var(--paper-deep); }
.section--ink { background: var(--ink); color: var(--paper-deep); }
.section--ink h2, .section--ink h3 { color: var(--paper); }
.section--ink .lede { color: rgba(252, 247, 240, 0.75); }
.section--ink .eyebrow { color: var(--apricot); }
.section--ink .eyebrow::after, .section--ink .eyebrow::before { background: rgba(252, 247, 240, 0.25); }

.section-head { max-width: 60ch; margin-bottom: clamp(2.25rem, 5vw, 3.5rem); }
.section-head--center { margin-inline: auto; text-align: center; }

/* Trust strip ------------------------------------------------------------ */

.trust-strip {
  border-block: 1px solid var(--ledger);
  padding: 1.5rem 0;
  background: var(--white);
}
.trust-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem 1rem;
  text-align: center;
}
.trust-item strong {
  display: block;
  font-family: var(--display);
  font-size: var(--step-2);
  font-weight: 700;
  color: var(--rose);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.trust-item span {
  display: block;
  margin-top: 0.35rem;
  font-size: var(--step--1);
  color: var(--ink-soft);
  font-weight: 500;
}

/* Services --------------------------------------------------------------- */

.card-grid { display: grid; gap: 1.25rem; }

.service-card {
  background: var(--white);
  border: 1px solid var(--ledger);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 3vw, 2rem);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease),
              border-color 0.25s var(--ease);
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--apricot);
}
.service-icon {
  width: 46px; height: 46px;
  border-radius: 12px;
  background: var(--rose-mist);
  color: var(--rose-deep);
  display: grid; place-items: center;
  margin-bottom: 1.15rem;
}
.service-card h3 { margin-bottom: 0.45rem; }
.service-card p { color: var(--ink-soft); font-size: 0.96rem; margin: 0; }

.service-card ul {
  margin: 1rem 0 0; padding: 0; list-style: none;
  font-size: var(--step--1); color: var(--ink-soft);
}
.service-card li { padding: 0.3rem 0 0.3rem 1.35rem; position: relative; }
.service-card li::before {
  content: "";
  position: absolute; left: 0; top: 0.85em;
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--apricot);
}

/* Steps — a real sequence, so numbering carries meaning ------------------- */

.steps { display: grid; gap: 1.75rem; counter-reset: step; }
.step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.15rem;
  align-items: start;
}
.step-num {
  counter-increment: step;
  width: 48px; height: 48px;
  border-radius: 50%;
  border: 1.5px solid var(--apricot);
  display: grid; place-items: center;
  font-family: var(--display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--rose);
  background: var(--paper);
  font-variant-numeric: tabular-nums;
}
.step-num::before { content: counter(step, decimal-leading-zero); }
.step h3 { margin-bottom: 0.3rem; }
.step p { color: var(--ink-soft); font-size: 0.96rem; margin: 0; }
.section--ink .step p { color: rgba(252, 247, 240, 0.7); }
.section--ink .step-num { background: transparent; color: var(--apricot); }

/* Key dates ledger — signature block ------------------------------------- */

.date-ledger {
  background: var(--white);
  border: 1px solid var(--ledger);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.date-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.15rem;
  padding: 1.15rem clamp(1.25rem, 3vw, 1.85rem);
  border-bottom: 1px solid var(--ledger);
  position: relative;
}
.date-row:last-child { border-bottom: 0; }
.date-row::before {
  /* the apricot margin rule from a legal pad */
  content: "";
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 3px; background: transparent;
  transition: background-color 0.2s var(--ease);
}
.date-row:hover::before { background: var(--apricot); }
.date-when {
  font-family: var(--display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--rose);
  font-variant-numeric: tabular-nums;
}
.date-what { font-weight: 600; }
.date-note { font-size: var(--step--1); color: var(--ink-soft); }

/* About ------------------------------------------------------------------ */

.about-grid { display: grid; gap: clamp(2rem, 5vw, 3.5rem); align-items: center; }
.about-photo {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--rose-mist);
  aspect-ratio: 4 / 5;
  box-shadow: var(--shadow-md);
}
.about-photo img { width: 100%; height: 100%; object-fit: cover; }
.about-photo-placeholder {
  display: grid; place-items: center; height: 100%;
  color: var(--rose-deep); text-align: center; padding: 2rem;
  font-size: var(--step--1);
}
.signature {
  font-family: var(--display);
  font-style: italic;
  font-size: var(--step-2);
  color: var(--rose);
  margin-top: 1.5rem;
}

/* Testimonials ----------------------------------------------------------- */

.quote-grid { display: grid; gap: 1.25rem; }
.quote {
  background: var(--white);
  border: 1px solid var(--ledger);
  border-left: 3px solid var(--apricot);
  border-radius: var(--radius-sm);
  padding: clamp(1.5rem, 3vw, 2rem);
  margin: 0;
}
.quote blockquote { margin: 0 0 1.1rem; font-family: var(--display); font-size: var(--step-1); line-height: 1.4; }
.quote { display: flex; flex-direction: column; }
.quote blockquote + figcaption { margin-top: auto; }
.quote figcaption { font-size: var(--step--1); color: var(--ink-soft); font-weight: 600; text-align: left; }
.quote-stars { color: var(--apricot); letter-spacing: 0.15em; margin-bottom: 0.75rem; font-size: 0.9rem; }

/* Accordion (checklist + FAQ) -------------------------------------------- */

.accordion { border-top: 1px solid var(--ledger); }
.accordion-item { border-bottom: 1px solid var(--ledger); }
.accordion-trigger {
  width: 100%;
  display: flex; align-items: flex-start; justify-content: space-between; gap: 1.25rem;
  padding: 1.35rem 0;
  background: none; border: 0;
  text-align: left;
  cursor: pointer;
  font-family: var(--display);
  font-size: var(--step-1);
  font-weight: 600;
  color: var(--ink);
  line-height: 1.3;
}
.accordion-trigger:hover { color: var(--rose); }
.accordion-icon {
  flex: 0 0 26px; width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--rose-mist);
  color: var(--rose-deep);
  display: grid; place-items: center;
  margin-top: 0.15rem;
  transition: transform 0.28s var(--ease), background-color 0.2s var(--ease);
  font-size: 1rem; line-height: 1;
}
.accordion-trigger[aria-expanded="true"] .accordion-icon { transform: rotate(45deg); background: var(--rose); color: var(--white); }
.accordion-panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.3s var(--ease); }
.accordion-panel > div { overflow: hidden; }
.accordion-item.is-open .accordion-panel { grid-template-rows: 1fr; }
.accordion-panel p, .accordion-panel ul { color: var(--ink-soft); font-size: 0.98rem; }
.accordion-panel > div > *:first-child { margin-top: 0; }
.accordion-panel > div > *:last-child { padding-bottom: 1.5rem; margin-bottom: 0; }

/* ==========================================================================
   7. CONTACT
   ========================================================================== */

.contact-grid { display: grid; gap: clamp(2.25rem, 5vw, 3.5rem); align-items: start; }

.contact-details { display: grid; gap: 1.35rem; }
.detail {
  display: grid; grid-template-columns: auto 1fr; gap: 1rem; align-items: start;
}
.detail-icon {
  width: 42px; height: 42px; border-radius: 12px;
  background: var(--rose-mist); color: var(--rose-deep);
  display: grid; place-items: center;
}
.section--ink .detail-icon { background: rgba(233, 176, 138, 0.16); color: var(--apricot); }
.detail-label {
  font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase;
  font-weight: 700; color: var(--ink-soft); margin-bottom: 0.15rem;
}
.section--ink .detail-label { color: rgba(252, 247, 240, 0.55); }
.detail-value { font-weight: 600; font-size: 1.05rem; overflow-wrap: anywhere; }
.detail-value a { overflow-wrap: anywhere; }
.detail-value a { color: inherit; text-decoration: none; }
.detail-value a:hover { color: var(--rose); text-decoration: underline; }
.section--ink .detail-value a:hover { color: var(--apricot); }
.detail small { display: block; font-weight: 400; font-size: var(--step--1); color: var(--ink-soft); }
.section--ink .detail small { color: rgba(252, 247, 240, 0.6); }

/* Form ------------------------------------------------------------------- */

.contact-form-wrap {
  /* Clears the sticky header when a button jumps straight to the form. */
  scroll-margin-top: 100px;
  background: var(--white);
  border: 1px solid var(--ledger);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 4vw, 2.5rem);
  box-shadow: var(--shadow-md);
  color: var(--ink);
}

.field { margin-bottom: 1.15rem; }
.field label {
  display: block;
  font-size: var(--step--1);
  font-weight: 700;
  margin-bottom: 0.45rem;
  color: var(--ink);
}
.field .req { color: var(--rose); }

.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field select,
.field textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  font-family: var(--body);
  font-size: 16px; /* prevents iOS zoom on focus */
  color: var(--ink);
  background: var(--paper);
  border: 1.5px solid var(--ledger);
  border-radius: var(--radius-sm);
  transition: border-color 0.18s var(--ease), box-shadow 0.18s var(--ease), background-color 0.18s var(--ease);
  -webkit-appearance: none;
  appearance: none;
}
.field textarea { min-height: 140px; resize: vertical; line-height: 1.55; }
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%2355635A' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.75rem;
}
.field :is(input, select, textarea):focus {
  outline: none;
  background: var(--white);
  border-color: var(--rose);
  box-shadow: 0 0 0 3px var(--rose-mist);
}
.field :is(input, select, textarea).has-error { border-color: #B3261E; }
.field-error { display: none; color: #B3261E; font-size: var(--step--1); margin-top: 0.35rem; font-weight: 600; }
.field-error.is-shown { display: block; }

.field-row { display: grid; gap: 1.15rem; }

/* honeypot — visually and programmatically hidden from real people */
.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

.form-note {
  display: flex; gap: 0.65rem;
  background: var(--paper-deep);
  border-radius: var(--radius-sm);
  padding: 0.9rem 1rem;
  font-size: var(--step--1);
  color: var(--ink-soft);
  margin-bottom: 1.35rem;
  line-height: 1.5;
}
.form-note svg { flex: 0 0 16px; margin-top: 3px; color: var(--rose); }

.form-submit { width: 100%; }
.form-submit[aria-busy="true"] { opacity: 0.7; pointer-events: none; }

.form-status { margin-top: 1.15rem; padding: 1rem 1.15rem; border-radius: var(--radius-sm); font-size: 0.96rem; display: none; }
.form-status.is-shown { display: block; }
.form-status.is-success { background: #E6F0E8; color: #1F4A2C; border: 1px solid #BBD9C3; }
.form-status.is-error { background: #FBE9E7; color: #8B2C22; border: 1px solid #F0C4BE; }

.form-fineprint { margin-top: 1rem; font-size: 0.78rem; color: var(--ink-soft); line-height: 1.5; }

/* ==========================================================================
   8. FOOTER + MOBILE CALL BAR
   ========================================================================== */

.site-footer { background: var(--paper-deep); border-top: 1px solid var(--ledger); padding: clamp(3rem, 6vw, 4.5rem) 0 0; }
.footer-grid { display: grid; gap: 2.25rem; padding-bottom: 2.75rem; }
.footer-col h4 {
  font-family: var(--body);
  font-size: 0.72rem; letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--ink-soft); font-weight: 700; margin-bottom: 1rem;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; }
.footer-col a { color: var(--ink); text-decoration: none; font-size: 0.95rem; }
.footer-col a:hover { color: var(--rose); text-decoration: underline; }
.footer-about p { font-size: 0.95rem; color: var(--ink-soft); max-width: 38ch; }

.footer-hours { display: grid; gap: 0.5rem; font-size: 0.93rem; }
.footer-hours div { display: flex; justify-content: space-between; gap: 1rem; border-bottom: 1px dotted var(--ledger); padding-bottom: 0.4rem; }
.footer-hours span:last-child { color: var(--ink-soft); font-variant-numeric: tabular-nums; }

.footer-bottom {
  border-top: 1px solid var(--ledger);
  padding: 1.5rem 0 calc(1.5rem + var(--callbar-space, 0px));
  display: grid; gap: 0.75rem;
  font-size: 0.82rem; color: var(--ink-soft);
}
.footer-bottom p { margin: 0; }
.footer-disclaimer { max-width: 78ch; line-height: 1.6; }

/* Sticky mobile call bar — the single highest-converting element on a
   local service site. Hidden on desktop where the header phone shows. */
.call-bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 200;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--ledger);
  border-top: 1px solid var(--ledger);
  box-shadow: 0 -6px 22px rgba(34, 48, 39, 0.09);
  padding-bottom: env(safe-area-inset-bottom);
}
.call-bar a {
  display: flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 1rem 0.5rem;
  background: var(--white);
  color: var(--ink);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  min-height: 56px;
}
.call-bar a.primary { background: var(--rose); color: var(--white); }
.call-bar a:active { filter: brightness(0.96); }

/* ==========================================================================
   9. BLOG / INNER PAGES
   ========================================================================== */

.page-hero { padding: clamp(2.75rem, 6vw, 4.5rem) 0 clamp(1.5rem, 3vw, 2.5rem); }
.page-hero .wrap { width: min(var(--wrap-narrow), 100% - (var(--gutter) * 2)); }
.page-hero .lede { max-width: 58ch; }
/* The blog index keeps the wider measure. */
.blog .page-hero .wrap,
.archive .page-hero .wrap,
.search .page-hero .wrap { width: min(var(--wrap), 100% - (var(--gutter) * 2)); }

.entry-content { max-width: 68ch; }
.entry-content h2 { margin-top: 2.25rem; }
.entry-content h3 { margin-top: 1.75rem; }
.entry-content ul, .entry-content ol { margin-bottom: 1.25rem; }
.entry-content li { margin-bottom: 0.4rem; }
.entry-content img, .entry-content .wp-block-image { border-radius: var(--radius-sm); margin-block: 1.75rem; }
.entry-content blockquote {
  margin: 1.75rem 0;
  padding: 0.35rem 0 0.35rem 1.5rem;
  border-left: 3px solid var(--apricot);
  font-family: var(--display);
  font-size: var(--step-1);
  font-style: italic;
  color: var(--ink);
}
.entry-content table { width: 100%; border-collapse: collapse; margin-block: 1.75rem; font-size: 0.95rem; }
.entry-content :is(th, td) { padding: 0.75rem; border-bottom: 1px solid var(--ledger); text-align: left; }
.entry-content th { font-weight: 700; background: var(--paper-deep); }
.entry-content code { background: var(--paper-deep); padding: 0.15em 0.4em; border-radius: 4px; font-size: 0.9em; }

.post-list { display: grid; gap: 1.25rem; }
.post-card {
  background: var(--white);
  border: 1px solid var(--ledger);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 3vw, 2rem);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.post-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.post-card h2 { font-size: var(--step-1); margin-bottom: 0.4rem; }
.post-card h2 a { color: inherit; text-decoration: none; }
.post-card h2 a:hover { color: var(--rose); }
.post-meta { font-size: var(--step--1); color: var(--ink-soft); margin-bottom: 0.75rem; }
.post-card p { color: var(--ink-soft); font-size: 0.96rem; }

.pagination { margin-top: 2.5rem; display: flex; gap: 0.5rem; flex-wrap: wrap; }
.pagination .page-numbers {
  display: grid; place-items: center;
  min-width: 44px; height: 44px; padding: 0 0.75rem;
  border: 1px solid var(--ledger); border-radius: var(--radius-sm);
  background: var(--white); color: var(--ink); text-decoration: none; font-weight: 600;
}
.pagination .page-numbers.current { background: var(--rose); color: var(--white); border-color: var(--rose); }

.error-404 { text-align: center; padding: clamp(4rem, 12vw, 8rem) 0; }
.error-404 .code {
  font-family: var(--display); font-size: clamp(4rem, 18vw, 9rem);
  color: var(--rose-mist); line-height: 0.85; margin-bottom: 1rem;
  font-variant-numeric: tabular-nums;
}

/* WordPress core alignment classes */
.alignwide { width: min(1000px, 100%); margin-inline: auto; }
.alignfull { width: 100vw; margin-inline: calc(50% - 50vw); max-width: none; }
.aligncenter { margin-inline: auto; }
.entry-content .wp-caption-text,
.entry-content figcaption { font-size: var(--step--1); color: var(--ink-soft); text-align: center; margin-top: 0.6rem; }

/* ==========================================================================
   10. MOTION
   ========================================================================== */

.reveal { opacity: 0; transform: translateY(18px); }
.reveal.is-visible {
  opacity: 1; transform: none;
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .btn:hover, .service-card:hover, .post-card:hover { transform: none; }
}

/* ==========================================================================
   11. BREAKPOINTS
   ========================================================================== */

@media (min-width: 560px) {
  .field-row { grid-template-columns: 1fr 1fr; }
  .trust-grid { grid-template-columns: repeat(4, 1fr); }
  .date-row { grid-template-columns: 150px 1fr; align-items: baseline; gap: 0.35rem 1.5rem; }
  .date-note { grid-column: 2; }
  .footer-bottom { grid-template-columns: 1fr auto; align-items: center; }
  .footer-disclaimer { grid-column: 1 / -1; }
}

@media (min-width: 780px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .quote-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); gap: 2.25rem 2.5rem; }
  .footer-grid { grid-template-columns: 1.5fr 1fr 1.3fr; gap: 3rem; }
  .about-grid { grid-template-columns: 0.85fr 1.15fr; }
  .contact-grid { grid-template-columns: 1fr 1.15fr; }
}

@media (min-width: 1000px) {
  .hero-inner { grid-template-columns: 1.1fr 0.9fr; align-items: center; }
  /* Number sits above the text at four-across, so the measure stays readable. */
  .step { grid-template-columns: 1fr; gap: 1.1rem; }
  .card-grid--3 { grid-template-columns: repeat(3, 1fr); }
  .quote-grid { grid-template-columns: repeat(3, 1fr); }
  .steps { grid-template-columns: repeat(4, 1fr); }
}

/* Desktop: show inline nav, hide mobile drawer + call bar */
@media (min-width: 1080px) {
  .site-brand { max-width: 42%; }
  .site-nav { display: block; }
  .nav-toggle { display: none; }
  .mobile-nav { display: none; }
  .header-phone {
    display: inline-flex; align-items: center; gap: 0.45rem;
    font-weight: 700; text-decoration: none; color: var(--ink); font-size: 0.95rem;
  }
  .header-phone:hover { color: var(--rose); }
  .call-bar { display: none; }
}

/* Reserve room above the fixed call bar on small screens */
@media (max-width: 1079px) {
  body { --callbar-space: 58px; }
}

/* Small phones: the sticky call bar already covers the primary action, so the
   header only needs the brand and the menu. */
@media (max-width: 599px) {
  .header-actions .btn { display: none; }
  .header-inner { min-height: 68px; }
  .brand-name { font-size: 1.08rem; }
  .brand-mark { width: 40px; height: 40px; flex-basis: 40px; font-size: 1.1rem; }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { width: 100%; }
}


/* ==========================================================================
   12. BLOCK EDITOR CONTENT
   Page content is ordinary WordPress blocks. These rules give the core
   blocks the theme's look, so editing a page in the normal editor keeps
   the design intact.
   ========================================================================== */

/* Content flow: constrained by default, with full-bleed sections escaping. */
.page-content { padding-top: 0; padding-bottom: 0; }
.page-content > :last-child { margin-bottom: var(--section-y); }
.page-content > .alignfull:last-child { margin-bottom: 0; }
.page-content > * { width: min(var(--wrap-narrow), 100% - (var(--gutter) * 2)); margin-inline: auto; }
.page-content > .alignwide { width: min(var(--wrap), 100% - (var(--gutter) * 2)); }
.page-content > .alignfull { width: 100%; max-width: none; }
.page-content > :first-child { margin-top: 0; }

/* Full-bleed section bands */
.dina-section {
  padding: var(--section-y) var(--gutter);
  margin-block: 0;
}
.dina-section + .dina-section { padding-top: var(--section-y); }
.dina-section--deep { background: var(--paper-deep); }
.dina-section--ink { background: var(--ink); color: var(--paper-deep); }
.dina-section--ink :is(h1, h2, h3, h4) { color: var(--paper); }
.dina-section--ink .lede,
.dina-section--ink p { color: rgba(252, 247, 240, 0.78); }
.dina-section--ink .eyebrow { color: var(--apricot); }
.dina-section--ink .eyebrow::after,
.dina-section--ink .eyebrow::before { background: rgba(252, 247, 240, 0.25); }
.dina-section--ink a:not(.btn) { color: var(--apricot); }

.dina-cta { background: var(--rose-mist); }
.dina-cta h2 { margin-bottom: 0.5rem; }

.section-actions { margin-top: 1.75rem; display: flex; flex-wrap: wrap; gap: 0.85rem; }
.has-text-align-center.section-actions { justify-content: center; }

/* Column grids ---------------------------------------------------------- */

.wp-block-columns.card-grid,
.wp-block-columns.step-grid,
.wp-block-columns.quote-grid { gap: 1.25rem; margin-top: 2.25rem; margin-bottom: 0; }
.wp-block-columns.card-grid + .wp-block-columns.card-grid { margin-top: 1.25rem; }

/* Service card */
.wp-block-column.service-card {
  background: var(--white);
  border: 1px solid var(--ledger);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 3vw, 2rem);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s var(--ease);
}
.wp-block-column.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--apricot);
}
.wp-block-column.service-card > :first-child { margin-top: 0; }
.wp-block-column.service-card :is(h2, h3) {
  font-size: var(--step-1);
  margin-bottom: 0.5rem;
  padding-top: 1rem;
  border-top: 3px solid var(--apricot);
  display: inline-block;
}
.wp-block-column.service-card p { color: var(--ink-soft); font-size: 0.96rem; }
.wp-block-column.service-card ul {
  margin: 1rem 0 0; padding: 0; list-style: none;
  font-size: var(--step--1); color: var(--ink-soft);
}
.wp-block-column.service-card li { padding: 0.3rem 0 0.3rem 1.35rem; position: relative; margin: 0; }
.wp-block-column.service-card li::before {
  content: ""; position: absolute; left: 0; top: 0.85em;
  width: 7px; height: 7px; border-radius: 50%; background: var(--apricot);
}

/* Numbered step, counted from the markup so reordering renumbers itself */
.wp-block-columns.step-grid { counter-reset: dstep; }
.wp-block-column.step-block { counter-increment: dstep; }
.wp-block-column.step-block > :first-child { margin-top: 0; }
.wp-block-column.step-block::before {
  content: counter(dstep, decimal-leading-zero);
  display: grid; place-items: center;
  width: 48px; height: 48px;
  margin-bottom: 1.15rem;
  border-radius: 50%;
  border: 1.5px solid var(--apricot);
  font-family: var(--display);
  font-size: 1.15rem; font-weight: 700;
  color: var(--apricot);
  font-variant-numeric: tabular-nums;
}
.wp-block-column.step-block :is(h2, h3) { font-size: var(--step-1); margin-bottom: 0.35rem; }
.wp-block-column.step-block p { font-size: 0.96rem; }

/* Testimonial */
.wp-block-column.quote {
  background: var(--white);
  border: 1px solid var(--ledger);
  border-left: 3px solid var(--apricot);
  border-radius: var(--radius-sm);
  padding: clamp(1.5rem, 3vw, 2rem);
}
.wp-block-column.quote > p:first-child {
  font-family: var(--display);
  font-size: var(--step-1);
  line-height: 1.4;
  color: var(--ink);
  margin-top: 0;
}
.wp-block-column.quote .quote-name {
  font-family: var(--body);
  font-size: var(--step--1);
  color: var(--ink-soft);
  font-weight: 600;
  margin-bottom: 0;
}

/* Key dates table ------------------------------------------------------- */

.wp-block-table.date-table { margin: 2.25rem 0 0; }
.wp-block-table.date-table table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border: 1px solid var(--ledger);
  border-radius: var(--radius);
  overflow: hidden;
  font-size: 0.96rem;
}
.wp-block-table.date-table td {
  padding: 1.1rem 1.25rem;
  border-bottom: 1px solid var(--ledger);
  border-right: 0; border-left: 0; border-top: 0;
  vertical-align: top;
  color: var(--ink-soft);
}
.wp-block-table.date-table tr:last-child td { border-bottom: 0; }
.wp-block-table.date-table td:first-child {
  font-family: var(--display);
  font-weight: 700;
  color: var(--rose);
  white-space: nowrap;
  width: 1%;
  font-variant-numeric: tabular-nums;
}
.wp-block-table.date-table strong { color: var(--ink); display: block; margin-bottom: 0.15rem; }

/* Details blocks — the checklist and FAQ accordions ---------------------- */

.wp-block-details {
  border-bottom: 1px solid var(--ledger);
  padding: 0;
  margin: 0;
}
.page-content > .wp-block-details:first-of-type { border-top: 1px solid var(--ledger); }
.wp-block-details summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 1.35rem 0;
  cursor: pointer;
  list-style: none;
  font-family: var(--display);
  font-size: var(--step-1);
  font-weight: 600;
  line-height: 1.3;
  color: var(--ink);
}
.wp-block-details summary::-webkit-details-marker { display: none; }
.wp-block-details summary::marker { content: ""; }
.wp-block-details summary:hover { color: var(--rose); }
.wp-block-details summary::after {
  content: "+";
  flex: 0 0 26px;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--rose-mist);
  color: var(--rose-deep);
  display: grid; place-items: center;
  font-family: var(--body);
  font-size: 1rem; line-height: 1;
  margin-top: 0.15rem;
  transition: transform 0.28s var(--ease), background-color 0.2s var(--ease), color 0.2s var(--ease);
}
.wp-block-details[open] summary::after {
  transform: rotate(45deg);
  background: var(--rose);
  color: var(--white);
}
.wp-block-details > :not(summary) { color: var(--ink-soft); font-size: 0.98rem; }
.wp-block-details > :not(summary):last-child { padding-bottom: 1.5rem; margin-bottom: 0; }
.wp-block-details ul { margin-top: 0; }

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

.wp-block-columns.contact-columns { gap: clamp(2rem, 5vw, 3.5rem); margin-top: 2.5rem; align-items: flex-start; }
.contact-columns .contact-details { margin-bottom: 2rem; }
.contact-columns h3 { font-size: var(--step-1); }

/* Core button block, styled to match .btn --------------------------------- */

.wp-block-button__link {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.95rem 1.7rem;
  border-radius: 999px;
  background: var(--rose);
  color: var(--white);
  font-family: var(--body); font-size: var(--step-0); font-weight: 700; line-height: 1.2;
  text-decoration: none;
  min-height: 52px;
  transition: transform 0.18s var(--ease), background-color 0.18s var(--ease);
}
.wp-block-button__link:hover { background: var(--rose-deep); color: var(--white); transform: translateY(-2px); }
.wp-block-button.is-style-outline .wp-block-button__link {
  background: transparent; color: var(--ink); border: 1.5px solid rgba(34, 48, 39, 0.22);
}

/* Misc core blocks ------------------------------------------------------- */

.wp-block-separator { border: 0; border-top: 1px solid var(--ledger); margin-block: 2.5rem; }
.wp-block-image img { border-radius: var(--radius-sm); }
.wp-block-quote {
  margin: 1.75rem 0;
  padding: 0.35rem 0 0.35rem 1.5rem;
  border-left: 3px solid var(--apricot);
  font-family: var(--display);
  font-size: var(--step-1);
  font-style: italic;
}
.page-content h2 { margin-top: 2.25rem; }
.page-content h3 { margin-top: 1.75rem; }
.dina-section > :is(h2, h3):first-child,
.dina-section > .eyebrow + h2 { margin-top: 0; }
.page-content ul:not(.wp-block-list--plain) li { margin-bottom: 0.4rem; }

/* Stack every column grid on small screens. WordPress only stacks columns
   below 782px by default; these grids need to stack a little differently. */
@media (max-width: 781px) {
  .wp-block-columns.card-grid,
  .wp-block-columns.step-grid,
  .wp-block-columns.quote-grid,
  .wp-block-columns.contact-columns { gap: 1rem; }
  .wp-block-columns.contact-columns .wp-block-column { flex-basis: 100% !important; }
  .wp-block-table.date-table td { padding: 0.9rem 1rem; }
  .wp-block-table.date-table td:first-child { padding-bottom: 0; white-space: normal; }
  .wp-block-table.date-table tr { display: grid; }
  .wp-block-table.date-table td { border-bottom: 0; }
  .wp-block-table.date-table tr { border-bottom: 1px solid var(--ledger); }
  .wp-block-table.date-table tr:last-child { border-bottom: 0; }
}

@media (min-width: 1000px) {
  .wp-block-columns.card-grid,
  .wp-block-columns.step-grid,
  .wp-block-columns.quote-grid { gap: 1.5rem; }
}

@media print {
  .site-header, .call-bar, .contact-form-wrap, .nav-toggle { display: none !important; }
  body { background: #fff; }
}
