/* WordPress Theme Header */
/*
Theme Name: Home Repair Co.
Theme URI: https://expertbuilt.com
Author: Expert Built
Description: Professional website for Home Repair Co.
Version: 1.0
*/

:root {
  --primary: #B45309;
  --primary-dark: #873e07;
  --font-heading: 'Libre Baskerville';
  --font-body: 'Open Sans';
  --text: #1a1a1a;
  --text-light: #555;
  --bg: #fff;
  --bg-alt: #f8f9fa;
  --border: #e5e7eb;
  --radius: 8px;
}

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

html { scroll-behavior: smooth; height: 100%; }

body {
  font-family: var(--font-body), -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100%;
  display: flex;
  flex-direction: column;
}

h1, h2, h3, h4 { font-family: var(--font-heading), -apple-system, BlinkMacSystemFont, sans-serif; }

body > .footer { margin-top: auto; }
.site-main { flex: 1; margin-bottom: 0 !important; padding-bottom: 0 !important; }
.site-main > *:last-child { margin-bottom: 0 !important; }
.cta-section, .cta-banner, .cta-block { margin-bottom: 0 !important; }
.cta-section + .footer { margin-top: 0 !important; }

img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ── Navigation ── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(255,255,255,0.95); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 16px 40px;
}
.nav .container { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.nav-logo { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; color: var(--primary); display: flex; align-items: center; white-space: nowrap; }
.nav-logo:hover { text-decoration: none; }
.nav-logo-icon { display: inline-flex; align-items: center; margin-right: 6px; vertical-align: middle; }
.nav-logo-icon svg { display: block; }
/* Customizer custom-logo: WP wraps the uploaded image in <a class="custom-logo-link"><img class="custom-logo">.
   Constrain dimensions so the image fits the nav. When falling back to the text business name (no logo set),
   the inner <a> inherits the parent .nav-logo color and never gets the global a:hover underline. */
.nav-logo .custom-logo { max-height: 40px; max-width: 240px; width: auto; height: auto; object-fit: contain; display: block; }
.nav-logo a, .nav-logo a:hover { color: inherit; text-decoration: none; }
.nav-links { display: flex; gap: 4px; align-items: center; flex-wrap: nowrap; }
.nav-links a { color: var(--text); font-size: 16px; font-weight: 500; padding: 8px 12px; white-space: nowrap; }
.nav-links a:hover { color: var(--primary); text-decoration: none; }
.nav-cta {
  background: var(--primary); color: #fff !important; padding: 10px 20px;
  border-radius: 999px; font-weight: 600; font-size: 15px;
  transition: background 0.2s; white-space: nowrap;
}
.nav-cta:hover { background: var(--primary-dark); text-decoration: none !important; }
.nav-phone { font-weight: 600; color: var(--text) !important; }

/* Mobile nav */
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 4px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--text); margin: 5px 0; transition: 0.3s; }

/* Desktop nav sizing — everything scales with viewport so logo + links + phone + CTA always fit on one line */
@media (min-width: 769px) {
  .nav { padding: 12px clamp(16px, 2vw, 32px); }
  .nav .container { gap: clamp(6px, 0.8vw, 12px); }
  .nav-logo { font-size: clamp(15px, 1.4vw, 20px); min-width: 0; }
  .nav-links { gap: clamp(1px, 0.2vw, 4px); }
  .nav-links a { padding: clamp(5px, 0.6vw, 8px) clamp(6px, 0.9vw, 12px); font-size: clamp(13px, 1.05vw, 15px); }
  .nav-cta { padding: clamp(6px, 0.7vw, 9px) clamp(10px, 1.2vw, 18px); font-size: clamp(12px, 0.95vw, 14px); }
}

/* ── Hero ── */
.hero {
  position: relative; min-height: 85vh; display: flex; align-items: center;
  justify-content: center; overflow: hidden; margin-top: 64px;
}
.hero-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: top center;
}
.hero-bg::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.7), rgba(0,0,0,0.55));
}
.hero-content {
  position: relative; z-index: 2; color: #fff;
  max-width: 700px; padding: 80px 0; margin: 0 auto; text-align: center;
}
.hero h1 { font-size: 48px; font-weight: 800; line-height: 1.1; margin-bottom: 16px; }
.hero p { font-size: 20px; opacity: 0.9; margin-bottom: 32px; line-height: 1.5; }
.hero-cta {
  display: inline-block; background: var(--primary); color: #fff;
  padding: 18px 44px; border-radius: 999px; font-weight: 700; font-size: 18px;
  transition: background 0.2s, transform 0.2s; border: none; cursor: pointer;
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
}
.hero-cta:hover { background: var(--primary-dark); text-decoration: none; transform: translateY(-2px); }

/* ── Section base ── */
.section { padding: 80px 0; }
.section-alt { background: var(--bg-alt); }
.section-header { text-align: center; margin-bottom: 48px; }
.section-header h2 { font-size: 36px; font-weight: 800; margin-bottom: 12px; }
.section-header p { font-size: 18px; color: var(--text-light); max-width: 600px; margin: 0 auto; }

/* ── Services Grid ── */
.services-grid { display: grid; gap: 32px; }
.services-grid.cols-1 { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }
.services-grid.cols-2 { grid-template-columns: repeat(2, 1fr); max-width: 800px; margin: 0 auto; }
.services-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }

.service-card {
  background: var(--bg); border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08); border: 1px solid var(--border);
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex; flex-direction: column;
}
.service-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,0.1); text-decoration: none; }
a.service-card { color: inherit; }
.service-card img { width: 100%; height: 200px; object-fit: cover; object-position: center; }
.service-card-body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.service-card h3 { font-size: 20px; font-weight: 700; margin-bottom: 8px; color: var(--text); }
.service-card p { font-size: 15px; color: var(--text-light); line-height: 1.5; flex: 1; }
.service-card-cta {
  display: inline-block; margin-top: 16px; background: var(--primary); color: #fff;
  padding: 10px 24px; border-radius: 999px; font-weight: 600; font-size: 14px;
  transition: background 0.2s; align-self: flex-start;
}
.service-card:hover .service-card-cta { background: var(--primary-dark); }

/* ── How It Works ── */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; text-align: center; }
.step { display: flex; flex-direction: column; }
.step-number {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--primary); color: #fff; font-weight: 700; font-size: 20px;
  display: flex; align-items: center; justify-content: center; margin: 0 auto 16px;
}
.step h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.step p { font-size: 15px; color: var(--text-light); flex: 1; }

/* ── CTA Section ── */
.cta-section {
  background: var(--primary); color: #fff; text-align: center; padding: 80px 24px;
}
.cta-section h2 { font-size: 36px; font-weight: 800; margin-bottom: 12px; }
.cta-section p { font-size: 18px; opacity: 0.9; margin-bottom: 32px; }
.cta-btn {
  display: inline-block; background: #fff; color: var(--primary);
  padding: 16px 36px; border-radius: 999px; font-weight: 700; font-size: 18px;
  transition: background 0.2s; border: none; cursor: pointer;
}
.cta-btn:hover { background: #f0f0f0; text-decoration: none; }

/* ── Contact Form ── */
.contact-grid { display: grid; grid-template-columns: auto 1fr; gap: 80px; max-width: 900px; margin: 0 auto; }
.contact-info { display: flex; flex-direction: column; gap: 28px; padding-top: 8px; padding-left: 32px; min-width: 220px; }
.contact-item { display: flex; gap: 14px; align-items: flex-start; }
.contact-item > div { display: flex; flex-direction: column; gap: 2px; }
.contact-item strong { font-size: 13px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text); }
.contact-item a, .contact-item span { font-size: 16px; color: var(--text-light); }
.contact-icon {
  width: 48px; height: 48px; border-radius: 50%; background: #f5f5f5;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-weight: 600; margin-bottom: 6px; font-size: 14px; }
.form-group input, .form-group textarea {
  width: 100%;
  padding-top: 12px; padding-bottom: 12px;
  padding-left: 16px; padding-right: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius); font-size: 16px; font-family: inherit;
  background: #fff; transition: border-color 0.2s;
}
.form-group input:focus, .form-group textarea:focus {
  outline: none; border-color: var(--primary);
}

/* Service buttons grid (replaces dropdown) */
.service-buttons-wrapper { margin-bottom: 20px; }
.form-label { display: block; font-weight: 600; margin-bottom: 6px; font-size: 14px; }
.service-buttons-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 8px; }
.service-btn {
  padding: 12px 14px; min-height: 48px; border: 2px solid #e0e0e0; border-radius: 8px;
  background: #fff; color: #333; font-size: 14px; font-weight: 500; cursor: pointer;
  transition: all 0.15s ease; text-align: center; font-family: inherit; line-height: 1.3;
}
.service-btn:hover { border-color: var(--primary); background: #f9f9f9; }
.service-btn.selected { background: var(--primary); border-color: var(--primary); color: #fff; }
@media (min-width: 769px) { .service-buttons-grid { grid-template-columns: repeat(3, 1fr); } }
.form-group textarea { resize: vertical; }
.form-submit {
  background: var(--primary); color: #fff; border: none; padding: 14px 32px;
  border-radius: 999px; font-weight: 700; font-size: 16px; cursor: pointer;
  transition: background 0.2s; width: 100%;
}
.form-submit:hover { background: var(--primary-dark); }

/* ── About ── */
.about-content { max-width: 700px; }
.about-content p { font-size: 18px; line-height: 1.7; color: var(--text-light); }

/* ── Footer ── */
.footer { background: #111; color: #aaa; padding: 20px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 32px; margin-bottom: 32px; }
.footer-grid > div:nth-child(2) { text-align: center; }
.footer-grid > div:nth-child(2) .footer-links { align-items: center; }
.footer h4 { color: #fff; font-size: 16px; margin-bottom: 16px; }
.footer a { color: #aaa; font-size: 14px; }
.footer a:hover { color: #fff; }
.footer-links { display: flex; flex-direction: column; gap: 8px; }
.footer-bottom {
  border-top: 1px solid #333; padding: 16px 40px 0;
  display: flex; justify-content: space-between; align-items: center; font-size: 13px;
}
.footer-bottom a { color: #aaa; }


/* ── Thank You Page ── */
.thank-you-wrapper {
  margin-top: 64px; padding-top: 120px; padding-bottom: 120px;
  text-align: center; min-height: calc(100vh - 200px);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.thank-you-wrapper .wp-block-buttons { margin-top: 32px; }

/* ── Responsive ── */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .nav-links.open {
    display: flex; flex-direction: column; position: absolute;
    top: 100%; left: 0; right: 0; background: #fff;
    padding: 16px 24px; border-bottom: 1px solid var(--border);
    gap: 16px;
  }

  /* Heading sizes and line-height on mobile */
  h1, .hero h1, .section-header h1 { font-size: 2rem !important; line-height: 1.12; }
  h2, .section-header h2, .cta-section h2 { font-size: 1.5rem; line-height: 1.15; }
  h3 { line-height: 1.2; }

  .hero p { font-size: 17px; }
  .hero-content { padding: 48px 0; }
  .services-grid.cols-2, .services-grid.cols-3 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; gap: 24px; }
  .contact-grid { grid-template-columns: 1fr; }
  /* Tighter section spacing on mobile */
  .section { padding: 36px 0; }
  /* Reduce top padding on interior page header sections on mobile */
  .section[style*="margin-top:64px"] { padding-top: 16px !important; }
  .section-header { margin-bottom: 24px; }
  .section-header p { font-size: 16px; }
  .thank-you-wrapper { padding-top: 40px; padding-bottom: 60px; min-height: calc(100vh - 160px); }
  .thank-you-wrapper .wp-block-buttons { margin-top: 24px; }
  .about-content { padding-left: 20px !important; padding-right: 20px !important; }
  .about-content p { font-size: 16px; }
  .container { padding-left: 20px !important; padding-right: 20px !important; }
  .section-header { padding-left: 4px !important; padding-right: 4px !important; }
  .cta-section { padding-top: 48px !important; padding-left: 20px !important; padding-right: 20px !important; }
  .eb-about-text { padding-left: 20px !important; padding-right: 20px !important; }
  .cta-section p { font-size: 16px; margin-bottom: 24px; }

  /* Footer mobile: stacked, centered, spaced */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
    text-align: center;
  }
  .footer-grid > div:nth-child(2) { text-align: center; }
  .footer-links { align-items: center; }
  .footer-bottom { flex-wrap: wrap; gap: 8px; text-align: center; justify-content: center; padding: 16px 20px 0; }

  /* Block responsive */
  .eb-hero { margin-top: 0 !important; }
  .eb-hero h1 { font-size: 2rem !important; line-height: 1.12; }
  .eb-section-title { font-size: 1.5rem !important; }
  .eb-section { padding: 80px 20px 36px !important; }
  .eb-section-sub { font-size: 16px !important; margin-bottom: 24px !important; }
  .eb-cta { padding: 48px 16px !important; }
  .eb-cta-text { font-size: 16px !important; }
  .eb-about-text { font-size: 16px !important; }
  /* Mobile: stack cards in a single column. flex-direction is dead on a grid
     container (eb-services-grid is now display:grid), so override grid columns. */
  .eb-services-grid { grid-template-columns: 1fr !important; }
  .eb-steps { flex-direction: column !important; }
  .eb-contact-grid { flex-direction: column !important; }
  /* Mobile: 16x16 icons + gap:0 places contact text exactly at +16px from column edge,
     matching form input text (which has 16px internal left padding). */
  .eb-contact-info { padding-left: 0; align-items: flex-start; }
  .eb-contact-info .contact-icon { width: 16px; height: 16px; background: none; border-radius: 0; }
  .eb-contact-info .contact-icon svg { width: 16px; height: 16px; }
  .eb-contact-info .contact-item { flex-direction: row; align-items: center; text-align: left; gap: 0; }
  .eb-contact-info .contact-item > .wp-block-group { align-items: flex-start; }
  .contact-info { padding-left: 0; }
  .eb-legal { padding: 80px 20px 36px !important; margin-top: 0 !important; }
  .eb-legal h2 { font-size: 19px !important; margin-top: 24px !important; }
  .eb-service-btn .wp-block-button__link { font-size: 14px !important; padding: 8px 20px !important; }
  /* Mobile service cards: fully centered — heading, description, and CTA all
     centered for unified visual treatment on narrow viewports. Descendant
     selectors traverse Gutenberg's __inner-container wrappers. */
  .eb-service-card .wp-block-heading { text-align: center; }
  .eb-service-card .wp-block-buttons { justify-content: center; }
  .eb-service-card p { text-align: center; }
}

/* ══════════════════════════════════════════════
   WordPress Block Editor Styles
   ══════════════════════════════════════════════ */

/* Full-width alignment */
.alignfull {
  width: 100vw; max-width: 100vw;
  margin-left: calc(50% - 50vw);
}
.alignwide { max-width: 1200px; margin-left: auto; margin-right: auto; }

/* Main content area — offset for fixed nav */
.site-main { padding-top: 0; }

/* ── Hero Cover Block ── */
.eb-hero { margin-top: 64px; }
.eb-hero .wp-block-cover__inner-container { max-width: 700px; margin: 0 auto; text-align: center; }
.eb-hero h1 { font-size: 48px; font-weight: 800; line-height: 1.1; margin-bottom: 16px; color: #fff; }
.eb-hero-text { font-size: 20px; opacity: 0.9; margin-bottom: 32px; line-height: 1.5; color: #fff; }
.eb-hero-btn .wp-block-button__link {
  background: var(--primary) !important; color: #fff !important;
  padding: 18px 44px !important; border-radius: 999px !important;
  font-weight: 700; font-size: 18px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
  transition: background 0.2s, transform 0.2s;
}
.eb-hero-btn .wp-block-button__link:hover {
  background: var(--primary-dark) !important; transform: translateY(-2px);
}

/* Override the global a:hover underline for all native button links */
.wp-block-button__link, .wp-block-button__link:hover { text-decoration: none !important; }

/* Center button containers — replaces the wp:buttons layout JSON which
   triggered Gutenberg validation errors due to layout-class mismatch. */
.eb-hero .wp-block-buttons,
.eb-cta .wp-block-buttons,
.thank-you-wrapper .wp-block-buttons {
  display: flex; justify-content: center; flex-wrap: wrap; gap: 8px;
}

/* ── Section Groups ── */
.eb-section { padding: 80px 24px; }
@media (min-width: 769px) {
  /* Desktop: preserve the spacing previously coming from the
     INNER_PAGE_HEADER_STYLE inline style (margin-top:64px;padding-top:40px).
     Wrapped in min-width:769 so it doesn't leak into mobile. */
  .eb-section { margin-top: 64px; padding-top: 40px; }
}
.eb-section-alt { background: var(--bg-alt); }
.eb-section-title { font-size: 36px !important; font-weight: 800 !important; margin-bottom: 12px !important; }
.eb-section-sub {
  font-size: 18px; color: var(--text-light); max-width: 600px;
  margin-left: auto !important; margin-right: auto !important; margin-bottom: 48px !important;
}

/* ── Service Cards ──
   Override wp:columns flex layout to CSS Grid so a single .eb-services-grid
   container with N cards auto-wraps (4 → 3+1, 5 → 3+2, etc) matching the
   static preview's behavior. Grid `gap` covers both row and column gaps. */
.eb-services-grid { display: grid !important; gap: 32px !important; }
.eb-services-grid.cols-1 { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
.eb-services-grid.cols-2 { grid-template-columns: repeat(2, 1fr); max-width: 800px; margin: 0 auto; }
.eb-services-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
/* Center content inside the single service card so it doesn't sit left-aligned in a centered card */
.eb-services-grid.cols-1 .eb-service-card { text-align: center; }
.eb-services-grid.cols-1 .eb-service-card .wp-block-buttons { justify-content: center; }
.eb-service-card {
  background: var(--bg) !important; border-radius: var(--radius) !important; overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08); border: 1px solid var(--border);
  transition: transform 0.2s, box-shadow 0.2s;
  padding: 0 !important; display: flex; flex-direction: column;
}
.eb-service-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,0.1); }
.eb-service-img { margin-bottom: 0 !important; }
/* Fixed height + cover crop so all cards have a consistent image area regardless of
   source aspect ratio. object-position: center top preserves the upper portion of
   the image (where faces or main subjects typically sit) instead of cropping equally
   top/bottom. !important on width/height/object-fit so Gutenberg's image-block
   defaults can't override the crop in the editor preview. */
.eb-service-img img { width: 100% !important; height: 200px !important; object-fit: cover !important; object-position: center top; display: block; }
.eb-service-card > .wp-block-heading { padding: 24px 24px 0; font-size: 20px !important; font-weight: 700 !important; margin-bottom: 8px !important; }
.eb-service-card > p { padding: 0 24px; font-size: 15px; color: var(--text-light); line-height: 1.5; margin-top: 0; margin-bottom: 0 !important; flex: 1; }
.eb-service-card .wp-block-buttons { padding: 16px 24px 24px; margin-top: auto; }
.eb-service-btn .wp-block-button__link {
  background: var(--primary) !important; color: #fff !important;
  padding: 10px 24px !important; border-radius: 999px !important;
  font-weight: 600; font-size: 15px;
  transition: background 0.2s;
  display: inline-block;
}
.eb-service-btn .wp-block-button__link:hover { background: var(--primary-dark) !important; text-decoration: none; }

/* ── How It Works Steps ── */
.eb-steps { gap: 32px !important; }
.eb-step { text-align: center; display: flex; flex-direction: column; }
.eb-step-num {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--primary); color: #fff; font-weight: 700; font-size: 20px;
  display: flex !important; align-items: center; justify-content: center;
  margin: 0 auto 16px !important; line-height: 1;
}
.eb-step h3 { font-size: 18px !important; font-weight: 700 !important; margin-bottom: 8px !important; }
.eb-step p:not(.eb-step-num) { font-size: 15px; color: var(--text-light); flex: 1; }

/* ── CTA Section ── */
.eb-cta {
  background: var(--primary) !important; color: #fff; text-align: center;
  padding: 80px 24px !important;
}
.eb-cta-heading { font-size: 36px !important; font-weight: 800 !important; margin-bottom: 12px !important; color: #fff !important; }
.eb-cta-text { font-size: 18px; opacity: 0.9; margin-bottom: 32px !important; color: #fff !important; }
.eb-cta-btn .wp-block-button__link {
  background: #fff !important; color: var(--primary) !important;
  padding: 16px 36px !important; border-radius: 999px !important;
  font-weight: 700; font-size: 18px;
  transition: background 0.2s;
}
.eb-cta-btn .wp-block-button__link:hover { background: #f0f0f0 !important; }

/* ── About Page ── */
.eb-about-text { font-size: 18px !important; line-height: 1.7 !important; color: var(--text-light); }

/* Remove gap between CTA and footer */
.eb-cta { margin-bottom: 0 !important; }
.eb-cta + * { margin-top: 0 !important; }
.site-main > .eb-cta:last-child { margin-bottom: 0 !important; }

/* ── Contact Page ── */
.eb-contact-grid { gap: 36px !important; max-width: 800px; margin: 0 auto; justify-content: center !important; }
/* Universal column flex base — applies to both viewports. Mobile @media block
   above provides padding-left:0 + align-items:flex-start for narrow screens. */
.eb-contact-info { padding-top: 8px; display: flex; flex-direction: column; gap: 8px; }

/* Desktop-only contact layout. Wrapped in @media (min-width: 769px) because
   leaving these rules unscoped previously caused them to override the mobile
   @media block via source-order — leaking the desktop card layout, the form
   column min-width:480px, and align-items:center into mobile and breaking
   alignment + causing horizontal overflow on phones. */
@media (min-width: 769px) {
  /* Override wp-block-library's default flex:1 1 0 so contact-info shrinks to
     content width and form column locks at 480px; pair sits centered. */
  .eb-contact-grid > .wp-block-column { flex: 0 1 auto !important; }
  .eb-contact-grid > .wp-block-column:not(.eb-contact-info) { min-width: 480px !important; }
  .eb-contact-info { padding-left: 32px; align-items: flex-start; }
  /* Vertical card layout per item: icon on top, label and value below.
     Gutenberg auto-wraps wp:group children in a .wp-block-group__inner-container
     div, so a `.contact-item > .wp-block-group` selector misses the inner group
     entirely (it's a grandchild, not a direct child). Selectors below traverse
     these wrappers explicitly so the flex column + width:100% chain actually
     applies. With every container at width:100% of the 240px card, the icon
     centers at x=120 and text-align:center on full-width <p> children also
     centers text at x=120 — icons and text aligned within and across cards. */
  .eb-contact-info .contact-item { width: 240px; flex-direction: column; align-items: center; text-align: center; gap: 4px; }
  /* Wrapper #1 (direct child of .contact-item): flex column for icon + inner group */
  .eb-contact-info .contact-item > .wp-block-group__inner-container {
    width: 100%;
    display: flex; flex-direction: column;
    align-items: center; text-align: center; gap: 4px;
  }
  /* Inner wp:group: stretch to wrapper-#1 width */
  .eb-contact-info .contact-item .wp-block-group { width: 100%; }
  /* Wrapper #2 (inside inner wp:group): flex column for the two <p> blocks */
  .eb-contact-info .contact-item .wp-block-group .wp-block-group__inner-container {
    width: 100%;
    display: flex; flex-direction: column;
    align-items: stretch; gap: 2px;
  }
  /* <p> children in wrapper #2: full width with centered text */
  .eb-contact-info .contact-item .wp-block-group__inner-container > p {
    width: 100%;
    text-align: center;
  }
}

/* Long-email safety: break inside word so it never overflows into the form column */
.eb-contact-info .contact-item a,
.eb-contact-info .contact-item span { word-break: break-word; overflow-wrap: anywhere; max-width: 100%; }
.eb-contact-item { margin-bottom: 16px !important; }
.eb-contact-info p { margin-bottom: 0 !important; }
.eb-contact-info strong { display: block; margin-bottom: 2px; color: var(--text); font-size: 13px; text-transform: uppercase; letter-spacing: 0.05em; }
.eb-contact-info a { color: var(--text-light); font-size: 16px; display: block; }
.eb-contact-info p:not(:has(strong)) { color: var(--text-light); font-size: 16px; }

/* ── Legal Pages ── */
.eb-legal { padding: 40px 24px 80px; margin-top: 64px; }
.eb-legal h1 { font-size: 36px !important; font-weight: 800 !important; margin-bottom: 24px !important; }
.eb-legal-date { color: var(--text-light); margin-bottom: 24px !important; }
.eb-legal h2 { font-size: 22px !important; font-weight: 700 !important; color: var(--text); margin-top: 32px !important; margin-bottom: 8px !important; }
.eb-legal h3 { color: var(--text); margin-top: 24px !important; margin-bottom: 8px !important; }
.eb-legal p { color: var(--text-light); line-height: 1.8; margin-bottom: 16px !important; }
.eb-legal a { color: var(--primary); }

/* ── Mobile: Force Top Padding ── */
@media (max-width: 768px) {
  .hero-section, .hero, .hero-content {
    padding-top: 30px !important;
  }
  /* main:not(.site-main) preserves the static-preview thank-you.html
     <main> spacing without applying to the WP theme's <main class="site-main">,
     where the 20px contributed to over-spacing on inner pages. */
  main:not(.site-main), .main-content, .page-content {
    padding-top: 20px !important;
  }
  .about-content, .services-content, .contact-content {
    padding-top: 20px !important;
  }
}

