/* Step 3: header, homepage opening, and refreshed hub content. */
:root {
  --ebu3-navy: #112b42;
  --ebu3-navy-deep: #0c2133;
  --ebu3-orange: #bd451e;
  --ebu3-orange-hover: #9b3514;
  --ebu3-orange-light: #ffba8c;
  --ebu3-warm: #faf7f2;
  --ebu3-ink: #183348;
  --ebu3-muted: #506172;
  --ebu3-line: #dce3e8;
}

/* Header: the WordPress menu stays the source of navigation links. */
.ebu-header3 {
  background: var(--ebu3-navy);
  border-bottom: 1px solid rgba(255, 255, 255, .13);
  box-shadow: 0 2px 12px rgba(8, 28, 45, .1);
}
.ebu-header3 .nav-inner {
  max-width: 1260px;
  min-height: 84px;
  height: auto;
  gap: 8px;
  padding: 12px;
}
.ebu-header3 .site-branding { min-width: 0; flex: 1 1 auto; }
.ebu-brand-lockup3 { display: flex; align-items: center; gap: 10px; min-height: 44px; color: #fff; text-decoration: none; }
.ebu-brand-icon3 { width: 44px; height: 44px; flex: 0 0 44px; object-fit: contain; }
.ebu-brand-wordmark3 { display: block; min-width: 0; }
.ebu-header3 .site-title { display: block; font-size: .94rem; font-weight: 800; line-height: 1.2; letter-spacing: -.025em; }
.ebu-header3 .site-title > span { display: block; color: var(--ebu3-orange-light); }
.ebu-header3 .site-description { display: block; color: #cad8e3; font-size: .625rem; font-weight: 500; line-height: 1.45; margin-top: 4px; }
.ebu-header3 .custom-logo-link { display: block; max-width: 210px; }
.ebu-header3 .custom-logo { max-width: 100%; max-height: 48px; width: auto; }
.ebu-header3-actions { display: flex; flex: 0 0 auto; align-items: center; gap: 8px; }
.ebu-header3-call,
.ebu-header3-estimate {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 12px;
  font-size: .8rem;
  font-weight: 700;
  line-height: 1.2;
  border-radius: 7px;
  text-decoration: none;
  white-space: nowrap;
}
.ebu-header3-call { color: #fff; border: 1px solid #8195a7; background: transparent; }
.ebu-header3-call:hover { color: #fff; background: rgba(255, 255, 255, .1); border-color: #fff; }
.ebu-header3-estimate { display: none; background: var(--ebu3-orange); color: #fff; }
.ebu-header3-estimate:hover { background: var(--ebu3-orange-hover); color: #fff; transform: none; }
.ebu-header3 .menu-toggle { display: flex; align-items: center; justify-content: center; width: 44px; min-height: 44px; padding: 10px; border: 1px solid #8195a7; border-radius: 7px; }
.ebu-header3 #site-navigation .nav-menu { display: none; }
.ebu-header3 #site-navigation .nav-menu > li { position: relative; }
.ebu-header3 #site-navigation .nav-menu a { display: flex; align-items: center; min-height: 44px; padding: 10px 11px; color: #eef3f7; font-size: .84rem; line-height: 1.35; transition: color .18s ease, background-color .18s ease; }
.ebu-header3 #site-navigation .nav-menu > .menu-item-has-children > a::after { content: ''; width: 6px; height: 6px; margin-left: 9px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-2px) rotate(45deg); }
.ebu-header3 #site-navigation .nav-menu .sub-menu { position: absolute; left: 0; top: 100%; width: 270px; padding: 8px; margin: 0; border: 1px solid #31516b; border-radius: 9px; background: var(--ebu3-navy-deep); box-shadow: 0 18px 36px rgba(5, 18, 30, .2); visibility: hidden; opacity: 0; pointer-events: none; }
.ebu-header3 #site-navigation .nav-menu:not(.ebu-dropdown-enhanced) li:hover > .sub-menu,
.ebu-header3 #site-navigation .nav-menu:not(.ebu-dropdown-enhanced) li:focus-within > .sub-menu { visibility: visible; opacity: 1; pointer-events: auto; }
.ebu-header3 #site-navigation .nav-menu .sub-menu li { position: relative; }
.ebu-header3 #site-navigation .nav-menu .sub-menu a { white-space: normal; }
.ebu-header3 #site-navigation .nav-menu .sub-menu .sub-menu { left: 100%; top: 0; }
.ebu-header3 #site-navigation .nav-menu.ebu-dropdown-enhanced .ebu-has-disclosure3 { display: grid; grid-template-columns: minmax(0, 1fr) 44px; align-items: center; }
.ebu-header3 #site-navigation .nav-menu.ebu-dropdown-enhanced .ebu-has-disclosure3 > a { padding-right: 4px; }
.ebu-header3 #site-navigation .nav-menu.ebu-dropdown-enhanced .ebu-has-disclosure3 > a::after { display: none; }
.ebu-header3 #site-navigation .nav-menu.ebu-dropdown-enhanced li.ebu-submenu-open3 > .sub-menu { visibility: visible; opacity: 1; pointer-events: auto; }
.ebu-submenu-toggle3 { display: flex; align-items: center; justify-content: center; width: 44px; min-width: 44px; height: 44px; min-height: 44px; padding: 12px; border: 0; border-radius: 6px; background: transparent; color: #eef3f7; cursor: pointer; }
.ebu-submenu-toggle3:hover,
.ebu-submenu-toggle3[aria-expanded="true"] { background: rgba(255, 255, 255, .1); color: #fff; }
.ebu-submenu-toggle3 svg { display: block; width: 16px; height: 16px; transition: transform .15s ease; }
.ebu-submenu-toggle3[aria-expanded="true"] svg { transform: rotate(180deg); }
.ebu-header3 a:focus-visible,
.ebu-header3 button:focus-visible,
.ebu-mobile-drawer3 a:focus-visible,
.ebu-mobile-drawer3 button:focus-visible { outline: 3px solid var(--ebu3-orange-light); outline-offset: 4px; }
.admin-bar .ebu-header3 { top: 32px; }

/* Full-screen mobile dialog; the script contains focus and restores it on close. */
.ebu-mobile-drawer3 { inset: 0; z-index: 1500; background: var(--ebu3-navy-deep); padding: max(20px, env(safe-area-inset-top)) 20px max(32px, env(safe-area-inset-bottom)); overscroll-behavior: contain; }
.ebu-mobile-drawer3[hidden] { display: none !important; }
.ebu-mobile-drawer3-heading,
.ebu-mobile-drawer3 > nav { max-width: 680px; margin: 0 auto; }
.ebu-mobile-drawer3-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-bottom: 16px; border-bottom: 1px solid #3d5266; }
.ebu-mobile-drawer3-heading p { color: #fff; font-size: 1.15rem; font-weight: 750; }
.ebu-mobile-drawer3-close { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; flex: 0 0 44px; border: 1px solid #8195a7; border-radius: 7px; background: transparent; color: #fff; cursor: pointer; }
.ebu-mobile-drawer3-close svg { width: 24px; height: 24px; }
.ebu-mobile-drawer3 .mobile-menu-list { margin: 12px 0 0; padding: 0; list-style: none; }
.ebu-mobile-drawer3 .mobile-menu-list a { min-height: 48px; padding: 13px 6px; color: #f1f5f8; font-size: 1rem; line-height: 1.4; }
.ebu-mobile-drawer3 .mobile-menu-list .sub-menu { margin: 0 0 8px 12px; padding-left: 12px; list-style: none; border-left: 2px solid #6f89a0; }
.ebu-mobile-drawer3 .mobile-menu-list .sub-menu a { font-size: .92rem; color: #d5e1eb; }
.ebu-mobile-drawer3 .mobile-menu-list .current-menu-item > a { color: var(--ebu3-orange-light); }
.ebu-mobile-drawer3-actions { display: grid; gap: 12px; margin-top: 24px; }
.ebu-mobile-drawer3 .mobile-cta { min-height: 52px; margin-top: 0; background: var(--ebu3-orange); font-size: 1rem; line-height: 1.4; }
.ebu-mobile-drawer3 .mobile-cta:hover { background: var(--ebu3-orange-hover); }
.ebu-mobile-drawer3 .ebu-mobile-drawer3-call { border: 1px solid #8195a7; background: transparent; }
.ebu-mobile-drawer3 .ebu-mobile-drawer3-call:hover { background: rgba(255, 255, 255, .08); }

/* Homepage hero: warm background, clear service message, illustrative image. */
.ebu-hero3 { background: var(--ebu3-warm); color: var(--ebu3-ink); padding: clamp(40px, 6vw, 76px) 0 44px; border-bottom: 1px solid #e9e1d7; }
.ebu-hero3-inner { width: min(100%, 1220px); margin: 0 auto; padding: 0 20px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 36px; align-items: center; }
.ebu-hero3-copy { min-width: 0; }
.ebu-hero3 .section-label,
.ebu-hero3 .ebu-hero3-eyebrow { display: block; margin: 0 0 16px; color: #a73915; font-size: .78rem; line-height: 1.5; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; }
.ebu-hero3 h1 { max-width: 18ch; margin: 0 0 22px; color: var(--ebu3-navy); font-size: clamp(2.25rem, 5vw, 3.8rem); font-weight: 800; line-height: 1.08; letter-spacing: -.04em; overflow-wrap: normal; }
.ebu-hero3 h1 span,
.ebu-hero3 h1 em { color: #af3d16; font-style: normal; }
.ebu-hero3-copy > p { max-width: 57ch; margin: 0 0 20px; color: #425768; font-size: 1.08rem; line-height: 1.7; }
.ebu-hero3-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 28px; }
.ebu-hero3-actions .btn-primary,
.ebu-hero3-actions .btn-outline { justify-content: center; min-height: 52px; padding: 15px 23px; border-radius: 8px; font-size: 1rem; line-height: 1.35; }
.ebu-hero3-actions .btn-primary { background: var(--ebu3-orange); color: #fff; }
.ebu-hero3-actions .btn-primary:hover { background: var(--ebu3-orange-hover); color: #fff; }
.ebu-hero3-actions .btn-outline { border-color: var(--ebu3-navy); color: var(--ebu3-navy); }
.ebu-hero3-actions .btn-outline:hover { background: var(--ebu3-navy); color: #fff; }
.ebu-hero3-actions svg { width: 20px; height: 20px; flex: 0 0 20px; }
.ebu-hero3-media { min-width: 0; margin: 0; }
.ebu-hero3-media img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border: 1px solid #ded5c9; border-radius: 20px; box-shadow: 0 18px 40px rgba(28, 49, 63, .12); }
.ebu-hero3-caption { margin: 12px 4px 0; color: #586571; font-size: .8rem; line-height: 1.5; }
.ebu-hero3 a:focus-visible,
.ebu-content3 a:focus-visible,
.ebu-content3 summary:focus-visible { outline: 3px solid #b13f17; outline-offset: 4px; }

/* The trust strip only displays supplied business facts. */
.ebu-trust-strip3 { background: var(--ebu3-navy); color: #fff; padding: 22px 0; }
.ebu-trust-strip3-inner { width: min(100%, 1220px); margin: 0 auto; padding: 0 20px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.ebu-trust-fact3 { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ebu-trust-fact3 strong { color: #fff; font-size: 1rem; font-weight: 750; line-height: 1.4; }
.ebu-trust-fact3 span,
.ebu-trust-fact3 small { color: #cbd9e5; font-size: .86rem; line-height: 1.5; }
.ebu-trust-fact3 svg { width: 24px; height: 24px; color: var(--ebu3-orange-light); flex-shrink: 0; }

/* Form fields and their own grid remain owned by estimate-form.css. */
.ebu-home-quote3 { padding: clamp(40px, 6vw, 68px) 20px; background: #fff; scroll-margin-top: 108px; }
.ebu-home-quote3 > .wrap { max-width: 1180px; padding: 0; }
.ebu-home-quote3 > .wrap > h2,
.ebu-home-quote3 > h2 { color: var(--ebu3-navy); font-size: clamp(1.6rem, 3.2vw, 2.2rem); line-height: 1.2; letter-spacing: -.025em; margin: 0 0 12px; }
.ebu-home-quote3 > .wrap > p,
.ebu-home-quote3 > p { max-width: 68ch; margin-bottom: 24px; color: var(--ebu3-muted); line-height: 1.7; }

/* Refreshed hub content; unrelated theme sections keep their existing styling. */
.ebu-content3 { color: var(--ebu3-ink); overflow-wrap: anywhere; }
.ebu-content3 > section { margin-bottom: 42px; }
.ebu-content3 > section:last-child { margin-bottom: 0; }
.ebu-content3 h2 { margin: 0 0 18px; color: var(--ebu3-navy); font-size: clamp(1.5rem, 3vw, 2rem); line-height: 1.25; letter-spacing: -.02em; }
.ebu-content3 h3 { margin: 1.25em 0 .55em; color: var(--ebu3-navy); font-size: 1.15rem; line-height: 1.35; }
.ebu-content3 p { margin: 0 0 18px; color: var(--ebu3-muted); line-height: 1.75; }
.ebu-content3 ul,
.ebu-content3 ol { padding-left: 1.4rem; margin: 0 0 24px; }
.ebu-content3 ul { list-style: disc; }
.ebu-content3 ol { list-style: decimal; }
.ebu-content3 li { padding-left: 4px; margin-bottom: 10px; line-height: 1.7; color: var(--ebu3-muted); }
.ebu-content3 a { color: #1b4c6b; text-decoration: underline; text-underline-offset: 3px; }
.ebu-content3 a:hover { color: #9b3514; }
.ebu-content3 .ebu-page-intro { padding: 24px; background: var(--ebu3-warm); border: 1px solid #e9e1d7; border-left: 4px solid var(--ebu3-orange); border-radius: 12px; }
.ebu-content3 .ebu-page-intro > p:first-child { font-size: 1.1rem; color: var(--ebu3-ink); }
.ebu-content3 .ebu-page-intro > p:last-child { margin-bottom: 0; }
.ebu-content3 .ebu-services-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; margin: 24px 0; }
.ebu-content3 .ebu-service-card { display: flex; flex-direction: column; min-width: 0; padding: 26px; border: 1px solid var(--ebu3-line); border-top: 3px solid #d7653c; border-radius: 12px; background: #fff; box-shadow: 0 5px 18px rgba(21, 48, 70, .045); }
.ebu-content3 .ebu-service-card h3 { margin: 0 0 14px; font-size: 1.2rem; }
.ebu-content3 .ebu-service-card h3 a { text-decoration: none; }
.ebu-content3 .ebu-service-card h3 a:hover { text-decoration: underline; }
.ebu-content3 .ebu-service-card p { font-size: .98rem; }
.ebu-content3 .ebu-service-card > p:last-child { margin-top: auto; margin-bottom: 0; padding-top: 8px; }
.ebu-content3 .ebu-service-card > p:last-child a { display: inline-flex; align-items: center; min-height: 44px; padding: 7px 0; font-size: .95rem; font-weight: 700; }
.entry-content .ebu-content3 .btn-primary,
.entry-content.ebu-content3 .btn-primary,
.ebu-content3 .btn-primary { min-height: 48px; align-items: center; justify-content: center; padding: 14px 22px; background: var(--ebu3-orange); color: #fff; text-decoration: none; line-height: 1.4; text-align: center; }
.entry-content .ebu-content3 .btn-primary:hover,
.entry-content.ebu-content3 .btn-primary:hover,
.ebu-content3 .btn-primary:hover { background: var(--ebu3-orange-hover); color: #fff; text-decoration: none; }
.ebu-content3 .ebu-final-cta { padding: 30px 24px; border-radius: 14px; background: var(--ebu3-navy); color: #fff; }
.ebu-content3 .ebu-final-cta h2 { color: #fff; }
.ebu-content3 .ebu-final-cta p { color: #d8e2ea; }
.ebu-content3 .ebu-final-cta > p:last-child { margin-bottom: 0; }
.ebu-content3 .ebu-final-cta a:focus-visible { outline-color: var(--ebu3-orange-light); }
.ebu-content3 details { margin: 0 0 12px; border: 1px solid var(--ebu3-line); border-radius: 10px; background: #fff; overflow: hidden; }
.ebu-content3 details summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 52px; padding: 17px 20px; color: var(--ebu3-navy); font-weight: 700; line-height: 1.5; cursor: pointer; list-style: none; }
.ebu-content3 details summary::-webkit-details-marker { display: none; }
.ebu-content3 details summary::after { content: '+'; color: var(--ebu3-orange); font-size: 1.25rem; flex: 0 0 auto; }
.ebu-content3 details[open] summary::after { content: '−'; transform: none; }
.ebu-content3 details > p,
.ebu-content3 details > div { margin: 0; padding: 0 20px 20px; }
.ebu-content3 details[open] summary { background: var(--ebu3-warm); margin-bottom: 14px; }
.ebu-content3 [id] { scroll-margin-top: 108px; }

@media (max-width: 359px) {
  .ebu-header3-actions { display: none; }
}
@media (min-width: 480px) {
  .ebu-header3 .nav-inner { padding-right: 20px; padding-left: 20px; gap: 12px; }
  .ebu-header3 .site-title { font-size: 1.03rem; }
  .ebu-header3 .site-description { font-size: .69rem; }
  .ebu-header3-call { padding-right: 15px; padding-left: 15px; font-size: .88rem; }
  .ebu-mobile-drawer3-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 640px) {
  .ebu-trust-strip3-inner { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
  .ebu-trust-fact3 + .ebu-trust-fact3 { border-left: 1px solid #486074; padding-left: 24px; }
  .ebu-content3 .ebu-services-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 700px) {
  .ebu-header3-estimate { display: inline-flex; padding: 12px 17px; font-size: .88rem; }
  .ebu-header3-actions { gap: 10px; }
}
@media (min-width: 900px) {
  .ebu-hero3-inner { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 44px; padding-right: 28px; padding-left: 28px; }
  .ebu-hero3 { padding-bottom: 56px; }
  .ebu-trust-strip3-inner { padding-right: 28px; padding-left: 28px; }
  .ebu-content3 .ebu-page-intro { padding: 30px; }
}
@media (min-width: 1100px) {
  .ebu-header3 .site-branding { flex: 0 1 260px; }
  .ebu-header3 #site-navigation .nav-menu { display: flex; align-items: center; gap: 2px; }
  .ebu-header3 .menu-toggle { display: none; }
  .ebu-header3 .nav-inner { gap: 16px; }
  .ebu-header3-actions { margin-left: auto; }
  .ebu-content3 .ebu-services-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 782px) {
  .admin-bar .ebu-header3 { top: 46px; }
}
@media (max-width: 600px) {
  .admin-bar .ebu-header3 { top: 0; }
}
@media (max-width: 479px) {
  .ebu-hero3-actions { display: grid; grid-template-columns: minmax(0, 1fr); }
  .ebu-hero3-actions a { width: 100%; }
  .ebu-hero3 h1 { max-width: 100%; font-size: 2.25rem; }
  .ebu-content3 .ebu-page-intro,
  .ebu-content3 .ebu-service-card,
  .ebu-content3 .ebu-final-cta { padding: 22px 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .ebu-header3 *,
  .ebu-mobile-drawer3 *,
  .ebu-hero3 *,
  .ebu-content3 * { transition: none !important; animation: none !important; }
}

/* Plain-language service summaries in the footer. */
.ebu-footer-service-note { display: block; margin: 3px 0 12px; color: #cad8e3; font-size: .8rem; line-height: 1.5; }
