/*
Theme Name: The Home Delivery Guys
Theme URI: https://thehomedeliveryguys.com
Author: Nexus IT Today
Author URI: https://thehomedeliveryguys.com
Description: Production theme for The Home Delivery Guys. Consolidates the marketing site and WooCommerce booking site. Requires the THDG Core plugin for redirects, structured data and SEO defaults.
Version: 1.3.2
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 8.0
License: Proprietary
Text Domain: thdg
*/

:root{
  --red:#E52635;
  --red-dark:#BD1521;
  --ink:#161A22;
  --muted:#5B6270;
  --line:#E8E9ED;
  --soft:#F6F7F9;
  --white:#FFFFFF;
  --radius:18px;
  --radius-lg:28px;
  --shadow:0 18px 50px rgba(18,22,30,.08);
  --focus:#0B5FFF;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--ink);background:var(--white);line-height:1.6;font-size:16px}
img{max-width:100%;height:auto;display:block}
a{color:inherit;text-decoration:none}
h1,h2,h3,h4{font-weight:800;margin:0 0 .5em}
p{margin:0 0 1em}
ul,ol{margin:0}

a:focus-visible,button:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{
  outline:3px solid var(--focus);outline-offset:2px
}

.skip-link{
  position:absolute;left:-9999px;top:0;background:#fff;color:var(--ink);
  padding:12px 18px;z-index:9999;border-radius:0 0 10px 0
}
.skip-link:focus{left:0}

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

.wrap{width:min(1180px,calc(100% - 36px));margin:auto}

/* Topbar */
.topbar{background:#151820;color:#fff;font-size:14px}
.topbar .wrap{display:flex;justify-content:space-between;align-items:center;padding:9px 0;flex-wrap:wrap;gap:6px}
.topbar a{color:#fff}
.topbar a:hover{color:var(--red)}

/* Header / nav */
.site-header{position:sticky;top:0;z-index:50;background:rgba(255,255,255,.97);backdrop-filter:blur(14px);border-bottom:1px solid var(--line)}
.nav{min-height:82px;display:flex;align-items:center;gap:28px;flex-wrap:wrap;padding:10px 0}
.brand{display:flex;align-items:center;gap:12px;margin-right:auto}
.brand img{width:56px;height:56px;object-fit:contain}
.brand strong{font-size:19px;display:block}
.brand small{display:block;color:var(--muted);font-size:11px;letter-spacing:.08em;text-transform:uppercase}

.menu{display:flex;gap:22px;font-weight:700;font-size:14px;flex-wrap:wrap;list-style:none;margin:0;padding:0}
.menu li{position:relative}
.menu a{padding:8px 2px;display:inline-block}
.menu a:hover{color:var(--red)}
.menu a[aria-current="page"]{color:var(--red)}

.menu-toggle{display:none;background:none;border:1px solid var(--line);border-radius:10px;padding:8px 12px;font-weight:700;cursor:pointer}

.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:13px 20px;border-radius:999px;font-weight:800;border:1px solid var(--line);background:#fff;cursor:pointer;font-size:15px}
.btn.red{background:var(--red);border-color:var(--red);color:#fff}
.btn.red:hover{background:var(--red-dark);border-color:var(--red-dark)}
.btn:hover{border-color:var(--red)}

/* Hero */
.hero{padding:64px 0 48px;background:linear-gradient(180deg,#fff 0%,#fafafa 100%)}
.hero-grid{display:grid;grid-template-columns:1.1fr .9fr;gap:50px;align-items:center}
.eyebrow{display:inline-flex;padding:7px 12px;border-radius:999px;background:#fff0f1;color:var(--red-dark);font-weight:800;font-size:12px;letter-spacing:.06em;text-transform:uppercase}
.hero h1{font-size:clamp(34px,5vw,58px);line-height:1.05;letter-spacing:-.03em;margin:16px 0 18px}
.hero h1 span{color:var(--red)}
.hero p{font-size:18px;color:var(--muted);max-width:620px}
.actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:26px}
.trust{display:flex;gap:20px;flex-wrap:wrap;margin-top:26px;color:#4d5560;font-weight:600;font-size:14px;list-style:none;padding:0}
.trust li{display:flex;align-items:center;gap:6px}
.hero-image{border-radius:var(--radius-lg);overflow:hidden;box-shadow:var(--shadow)}

/* Sections */
.section{padding:64px 0}
.soft{background:var(--soft)}
.section-head{display:flex;justify-content:space-between;gap:30px;align-items:flex-end;margin-bottom:30px;flex-wrap:wrap}
.section h2{font-size:clamp(28px,3.6vw,42px);line-height:1.1;letter-spacing:-.02em;margin:0}
.section-head p{max-width:560px;color:var(--muted);margin:0}

/* Cards */
.cards{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;list-style:none;padding:0;margin:0}
.card{background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:24px;min-height:210px;transition:.2s;display:block}
.card:hover{transform:translateY(-3px);box-shadow:var(--shadow)}
.card h3{margin:18px 0 8px;font-size:19px}
.card p{color:var(--muted);font-size:14px;margin:0 0 12px}
.card .link{color:var(--red);font-weight:800}
.icon{width:58px;height:58px;border-radius:16px;background:#fff0f1;color:var(--red);display:grid;place-items:center;font-size:20px;font-weight:900}
.service-icon svg{width:34px;height:34px;fill:none;stroke:currentColor;stroke-width:3;stroke-linecap:round;stroke-linejoin:round}
.service-icon svg circle,.service-icon svg rect{fill:none}
.brand-icon{display:flex;align-items:center;justify-content:flex-start;width:100%;height:92px;margin:0 0 10px;padding:8px 0;overflow:hidden}
.brand-icon img{display:block;width:auto;height:auto;max-width:230px;max-height:76px;object-fit:contain;object-position:left center}
.brand-vp img{width:76px;height:76px;max-width:76px;max-height:76px;border-radius:14px}
.brand-plumbworld img{max-width:225px;max-height:72px}
.brand-bathroom-mountain img{max-width:230px;max-height:70px}
#returns .card{min-height:260px}
#returns .card h3{margin-top:12px}
.card{position:relative;overflow:hidden}
.card:after{content:"";position:absolute;right:-34px;top:-34px;width:96px;height:96px;border-radius:50%;background:rgba(229,38,53,.035);pointer-events:none}
.card:hover .service-icon{background:var(--red);color:#fff;transform:translateY(-1px)}
.service-icon{transition:background .2s,color .2s,transform .2s}

/* Steps */
.steps{display:grid;grid-template-columns:repeat(3,1fr);gap:20px;list-style:none;padding:0;margin:0}
.step{padding:24px;border-left:3px solid var(--red);background:#fff;border-radius:0 16px 16px 0}
.step b{font-size:13px;color:var(--red)}
.step h3{margin:8px 0}

/* Split panels */
.split{display:grid;grid-template-columns:1fr 1fr;gap:22px}
.panel{border-radius:var(--radius-lg);padding:34px;background:#171A21;color:#fff}
.panel.light{background:#fff;color:var(--ink);border:1px solid var(--line)}
.panel h3{font-size:27px;margin:0 0 12px}
.panel p{color:#c7cad0}
.panel.light p{color:var(--muted)}
.pillrow{display:flex;flex-wrap:wrap;gap:8px;margin-top:16px}
.pill{padding:8px 12px;background:rgba(255,255,255,.09);border-radius:999px;font-size:13px}
.panel.light .pill{background:#f2f3f5}

/* CTA */
.cta{background:var(--red);color:#fff;border-radius:var(--radius-lg);padding:42px;display:flex;justify-content:space-between;align-items:center;gap:24px;flex-wrap:wrap}
.cta h2{max-width:650px;margin:0}
.cta .btn{background:#fff;color:var(--red-dark);border-color:#fff}

/* FAQ */
.faq{border:1px solid var(--line);border-radius:var(--radius);margin-bottom:12px;overflow:hidden}
.faq summary{padding:18px 20px;font-weight:700;cursor:pointer;list-style:none;display:flex;justify-content:space-between;align-items:center}
.faq summary::-webkit-details-marker{display:none}
.faq[open] summary{border-bottom:1px solid var(--line)}
.faq-a{padding:16px 20px;color:var(--muted)}

/* Breadcrumbs / content shell */
.breadcrumbs{font-size:13px;color:var(--muted);margin-bottom:18px}
.breadcrumbs a{color:var(--muted);text-decoration:underline}
.content-shell{padding:50px 0;min-height:50vh}
.content-shell h1{font-size:clamp(30px,4vw,44px);letter-spacing:-.02em}
.content-shell .entry-content h2{margin-top:2em}

/* Footer */
.footer{background:#14171D;color:#fff;padding:48px 0 24px}
.footer-grid{display:grid;grid-template-columns:1.5fr 1fr 1fr;gap:40px}
.footer h3,.footer h4{color:#fff}
.footer p,.footer a{color:#b8bdc6}
.footer a:hover{color:#fff}
.powered{margin-top:24px;padding-top:18px;border-top:1px solid #2b2e35;color:#9298a3;font-size:13px}
.powered b{color:#fff}

/* WooCommerce overrides */
.woocommerce ul.products li.product,.woocommerce-page ul.products li.product{border:1px solid var(--line);border-radius:16px;padding:16px;background:#fff}
.woocommerce a.button,.woocommerce button.button,.woocommerce input.button{background:var(--red)!important;color:#fff!important;border-radius:999px!important;border:none!important}
.woocommerce a.button:hover,.woocommerce button.button:hover{background:var(--red-dark)!important}
.woocommerce nav.woocommerce-breadcrumb{font-size:13px;color:var(--muted);margin-bottom:20px}
.woocommerce-checkout .form-row,.woocommerce-cart .shop_table{border-radius:var(--radius)}

.notice{background:#fff7e6;border:1px solid #f0d8a0;border-radius:12px;padding:14px 16px;margin:18px 0;font-size:14px}

/* Responsive — canonical */
@media(max-width:1180px){
  .wrap{width:min(100% - 48px,1040px)}
  .menu{display:none}.menu-toggle{display:inline-flex}
  .site-header.nav-open #primary-menu{order:4;width:100%}
  .site-header.nav-open .menu{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px 18px;width:100%;padding:14px 0 4px}
  .hero-grid{grid-template-columns:1fr;gap:32px}.hero{padding:52px 0 42px}
  .cards{grid-template-columns:repeat(2,minmax(0,1fr))}.section{padding:54px 0}
  .footer-grid{grid-template-columns:1.25fr 1fr 1fr;gap:28px}
}
@media(max-width:760px){
  .wrap{width:calc(100% - 36px)}.topbar{display:none}
  .nav{min-height:74px;padding:9px 0}.brand img{width:48px;height:48px}.brand strong{font-size:17px}.brand small{font-size:10px}
  .site-header .nav>.btn{order:3;margin-top:6px}.site-header.nav-open #primary-menu{order:4}
  .site-header.nav-open .menu{grid-template-columns:1fr}
  .hero{padding:40px 0 34px}.section{padding:44px 0}
  .section-head,.cta{align-items:flex-start;flex-direction:column;gap:14px}.cards,.steps,.split{grid-template-columns:1fr}
  .footer-grid{grid-template-columns:1fr}
}
@media(max-width:480px){.wrap{width:calc(100% - 28px)}.brand{gap:9px}.brand img{width:44px;height:44px}.brand strong{font-size:16px}}

/* Retailer returns — one implementation, no stacked overrides */
.returns-overview-card-v2{display:block;padding:28px;margin-bottom:28px}
.returns-overview-icon-v2{width:64px;height:64px;border-radius:18px;background:#fff0f2;color:var(--red);display:flex;align-items:center;justify-content:center;margin:0 0 22px}
.returns-overview-icon-v2 svg{width:34px;height:34px}.returns-overview-copy-v2 h3{margin:0 0 10px;font-size:24px}.returns-overview-copy-v2 p{margin:0 0 18px;color:var(--muted);font-size:16px}
.retailer-cards{grid-template-columns:repeat(3,minmax(0,1fr));gap:22px;align-items:stretch}
.retailer-card{padding:0!important;min-height:0!important;height:100%;overflow:hidden;display:flex;flex-direction:column;background:#fff}.retailer-card:after{display:none}
.retailer-logo-slot{width:100%;height:180px;flex:0 0 180px;padding:22px 26px;background:#fff;display:flex;align-items:center;justify-content:center;border-bottom:1px solid var(--line);overflow:hidden}
.retailer-logo-slot img{display:block;width:100%;height:100%;object-fit:contain;object-position:center}
#returns .retailer-card h3{margin:22px 24px 8px;font-size:22px;line-height:1.2}#returns .retailer-card p{margin:0 24px 20px;color:var(--muted);font-size:15px;line-height:1.55}
.button-link{margin:auto 24px 24px;display:inline-flex;align-items:center;justify-content:center;min-height:48px;padding:0 20px;border-radius:999px;background:var(--red);color:#fff;font-weight:800;width:max-content}
@media(max-width:1180px){.retailer-cards{grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}}
@media(max-width:760px){.retailer-cards{grid-template-columns:1fr}.retailer-logo-slot{height:160px;flex-basis:160px;padding:18px 22px}.returns-overview-card-v2{padding:22px}.button-link{width:calc(100% - 44px);margin:0 22px 22px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*{transition:none!important}}


/* THDG real-photo enhancement v1.3.0 */
.hero-photo-card{
  border:1px solid var(--line);
  border-radius:var(--radius-lg);
  overflow:hidden;
  background:#fff;
  box-shadow:var(--shadow);
  min-height:420px;
}
.hero-photo-card img{
  display:block;
  width:100%;
  height:100%;
  min-height:420px;
  object-fit:cover;
}
.thdg-photo-section{
  background:linear-gradient(180deg,#fff,#f7f8fa);
}
.photo-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:18px;
}
.photo-card{
  display:block;
  background:#fff;
  border:1px solid var(--line);
  border-radius:18px;
  overflow:hidden;
  box-shadow:0 10px 30px rgba(18,22,30,.06);
  transition:transform .18s ease,box-shadow .18s ease;
}
.photo-card:hover{
  transform:translateY(-3px);
  box-shadow:var(--shadow);
}
.photo-card img{
  display:block;
  width:100%;
  aspect-ratio:3/2;
  object-fit:cover;
}
.photo-card span{
  display:block;
  padding:14px 16px 16px;
  color:var(--ink);
  font-weight:800;
  font-size:15px;
  border-top:3px solid var(--red);
}
@media(max-width:1180px){
  .hero-photo-card{min-height:360px}
  .hero-photo-card img{min-height:360px}
  .photo-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:760px){
  .hero-photo-card{min-height:250px}
  .hero-photo-card img{min-height:250px}
  .photo-grid{grid-template-columns:1fr}
}


/* Business handoff to Nexus */
.for-business-link{
  display:inline-flex;
  align-items:center;
  min-height:44px;
  padding:0 14px;
  border-radius:999px;
  color:var(--ink);
  font-weight:800;
  text-decoration:none;
  white-space:nowrap;
}
.for-business-link:hover{background:#fff0f2;color:var(--red)}
.business-handoff-card{
  display:grid;
  grid-template-columns:1.35fr .65fr;
  gap:28px;
  padding:30px;
  border:1px solid var(--line);
  border-radius:var(--radius-lg);
  background:linear-gradient(135deg,#fff 0%,#fff 58%,#fff5f6 100%);
  box-shadow:var(--shadow);
}
.business-handoff-copy h2{margin:8px 0 12px;font-size:clamp(30px,4vw,48px);line-height:1.05}
.business-handoff-copy p{color:var(--muted);font-size:17px;line-height:1.6;max-width:760px}
.business-handoff-tags{display:flex;flex-wrap:wrap;gap:8px;margin-top:18px}
.business-handoff-tags span{padding:8px 11px;border-radius:999px;background:#fff0f2;color:var(--red-dark);font-size:13px;font-weight:800}
.business-handoff-cta{
  border-radius:22px;
  background:#12161e;
  color:#fff;
  padding:26px;
  display:flex;
  flex-direction:column;
  justify-content:center;
}
.business-handoff-cta strong{font-size:28px}
.business-handoff-cta p{color:#d6dae2;line-height:1.5}
.business-handoff-cta .btn{margin-top:10px;background:var(--red);color:#fff;width:max-content}
@media(max-width:900px){
  .business-handoff-card{grid-template-columns:1fr}
  .for-business-link{order:2}
}
@media(max-width:680px){
  .for-business-link{min-height:40px;padding:0 10px;font-size:14px}
  .business-handoff-card{padding:22px}
  .business-handoff-cta .btn{width:100%}
}


/* THDG compact business navigation v1.3.2 */
.compact-site-nav{
  min-height:88px;
  display:flex;
  align-items:center;
  gap:22px;
}
.compact-site-nav .brand{flex:0 0 auto}
.compact-primary-nav{
  margin-left:auto;
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:nowrap;
}
.compact-nav-link,
.compact-nav-group summary{
  display:inline-flex;
  align-items:center;
  min-height:42px;
  padding:0 11px;
  border-radius:12px;
  color:var(--ink);
  font-size:14px;
  font-weight:800;
  text-decoration:none;
  white-space:nowrap;
  cursor:pointer;
  list-style:none;
}
.compact-nav-group summary::-webkit-details-marker{display:none}
.compact-nav-group summary::after{content:"▾";font-size:10px;margin-left:6px}
.compact-nav-group{position:relative}
.compact-nav-group[open] summary{background:#fff0f2;color:var(--red)}
.compact-dropdown{
  position:absolute;
  top:calc(100% + 8px);
  left:0;
  z-index:9999;
  min-width:230px;
  padding:8px;
  border:1px solid var(--line);
  border-radius:14px;
  background:#fff;
  box-shadow:0 18px 45px rgba(18,22,30,.14);
}
.compact-dropdown a{
  display:block;
  padding:10px 12px;
  border-radius:10px;
  color:var(--ink);
  text-decoration:none;
  font-size:14px;
  font-weight:700;
}
.compact-dropdown a:hover{background:#fff0f2;color:var(--red)}
.nexus-business-link{
  border:1px solid #dcdfe7;
  background:#fff;
}
.nexus-business-link::after{
  content:"↗";
  margin-left:5px;
  color:var(--red);
}
.nexus-business-link:hover{border-color:var(--red);color:var(--red)}
.compact-book-btn{padding:11px 17px;white-space:nowrap}
.compact-menu-toggle{display:none}

@media(max-width:1180px){
  .compact-site-nav{flex-wrap:wrap;padding:12px 0}
  .compact-menu-toggle{display:inline-flex;margin-left:auto}
  .compact-primary-nav{
    display:none;
    width:100%;
    margin-left:0;
    padding-top:8px;
    flex-wrap:wrap;
  }
  .site-header.nav-open .compact-primary-nav{display:flex}
  .compact-nav-group{position:static}
  .compact-dropdown{
    left:24px;
    right:24px;
    top:auto;
    min-width:0;
  }
}
@media(max-width:680px){
  .compact-primary-nav{display:none;flex-direction:column;align-items:stretch;gap:5px}
  .site-header.nav-open .compact-primary-nav{display:flex}
  .compact-nav-link,.compact-nav-group summary,.compact-book-btn{width:100%;justify-content:flex-start}
  .compact-book-btn{justify-content:center}
  .compact-dropdown{position:static;margin-top:5px;box-shadow:none}
}
