/*
Theme Name: Wrights Relocations Sheffield V2
Theme URI: https://www.wrightsrelocations.co.uk/
Author: OpenAI
Description: Custom WordPress theme for Wrights Relocations Ltd in Sheffield, with editable homepage images and content controls.
Version: 2.5.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: wrights-relocations-v2
*/

:root{
  --wr-red:#bd1519;
  --wr-red-dark:#8f0f12;
  --wr-black:#111;
  --wr-text:#252525;
  --wr-muted:#666;
  --wr-soft:#f5f5f5;
  --wr-line:#e4e4e4;
  --wr-max:1200px;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;font-family:Arial,Helvetica,sans-serif;color:var(--wr-text);background:#fff;line-height:1.65}
a{color:var(--wr-red);text-decoration:none}
a:hover{text-decoration:underline}
img{max-width:100%;height:auto;display:block}
.container{width:min(var(--wr-max),calc(100% - 42px));margin:auto}
.utility{background:var(--wr-red);color:#fff;font-size:.92rem}
.utility .container{min-height:40px;display:flex;justify-content:space-between;align-items:center;gap:20px;flex-wrap:wrap}
.utility a{color:#fff;font-weight:700}
.site-header{position:sticky;top:0;z-index:100;background:#fff;border-bottom:1px solid var(--wr-line)}
.nav-row{min-height:96px;display:flex;align-items:center;gap:24px}
.brand{display:flex;align-items:center;gap:14px;min-width:275px}
.brand img{width:95px;height:72px;object-fit:contain}
.brand-copy strong{display:block;color:#161616;font-size:1.18rem;line-height:1.05}
.brand-copy span{display:block;color:#777;font-size:.84rem;margin-top:4px}
.main-nav{margin-left:auto}
.main-nav ul{list-style:none;margin:0;padding:0;display:flex;gap:21px;align-items:center;flex-wrap:wrap}
.main-nav a{color:#151515;font-size:.94rem;font-weight:800}
.nav-quote,.btn{display:inline-flex;align-items:center;justify-content:center;background:var(--wr-red);color:#fff!important;border:2px solid var(--wr-red);border-radius:5px;padding:12px 18px;font-weight:900;text-decoration:none!important}
.btn:hover,.nav-quote:hover{background:var(--wr-red-dark);border-color:var(--wr-red-dark)}
.btn-white{background:#fff;border-color:#fff;color:#111!important}
.btn-dark{background:#111;border-color:#111}
.btn-outline{background:transparent;color:var(--wr-red)!important}
.btn-row{display:flex;gap:12px;flex-wrap:wrap;margin-top:25px}
.eyebrow{text-transform:uppercase;letter-spacing:.15em;font-weight:900;font-size:.79rem;color:var(--wr-red);margin-bottom:9px}
h1,h2,h3{color:#171717;line-height:1.14}
h1{font-size:clamp(2.5rem,5vw,4.8rem);letter-spacing:-.04em}
h2{font-size:clamp(1.9rem,3vw,3rem);letter-spacing:-.025em}
h3{font-size:1.3rem}
.lead{font-size:1.16rem;color:#565656}

/* Hero background is injected from the WordPress Customizer in functions.php */
.hero{position:relative;min-height:635px;display:flex;align-items:center;color:#fff;background:#222 center center/cover no-repeat;overflow:hidden}
.hero:before{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(0,0,0,.80) 0%,rgba(0,0,0,.64) 36%,rgba(0,0,0,.18) 72%,rgba(0,0,0,.06) 100%)}
.hero .container{position:relative;z-index:2;padding:82px 0}
.hero-content{max-width:690px}
.hero .eyebrow,.hero h1{color:#fff}
.hero h1{margin:0 0 19px}
.hero p{font-size:1.22rem;color:#f2f2f2;max-width:660px}
.hero-trust{display:flex;gap:10px;flex-wrap:wrap;margin-top:27px}
.hero-trust span{border:1px solid rgba(255,255,255,.38);background:rgba(0,0,0,.26);padding:9px 12px;border-radius:4px;font-size:.88rem;font-weight:800}
.trust-strip{border-bottom:1px solid var(--wr-line)}
.trust-grid{display:grid;grid-template-columns:repeat(4,1fr)}
.trust-item{text-align:center;padding:22px;border-right:1px solid var(--wr-line)}
.trust-item:last-child{border-right:0}
.trust-item strong{display:block;color:#111;font-size:1.05rem}
.trust-item span{color:#777;font-size:.9rem}
.section{padding:76px 0}
.section.alt{background:var(--wr-soft)}
.section.dark{background:#121212;color:#fff}
.section.dark h2,.section.dark h3{color:#fff}
.section-intro{max-width:780px;margin-bottom:34px}
.grid-2{display:grid;grid-template-columns:1fr 1fr;gap:42px;align-items:center}
.grid-3{display:grid;grid-template-columns:repeat(3,1fr);gap:23px}
.grid-4{display:grid;grid-template-columns:repeat(4,1fr);gap:19px}
.card{background:#fff;border:1px solid var(--wr-line);border-radius:9px;padding:26px;box-shadow:0 7px 22px rgba(0,0,0,.04)}
.card h3{margin-top:0}
.card p{color:#606060}
.service-icon{width:45px;height:45px;background:#fff0f0;color:var(--wr-red);border-radius:50%;display:grid;place-items:center;font-weight:900;margin-bottom:14px}
.home-image{border-radius:10px;overflow:hidden;box-shadow:0 15px 45px rgba(0,0,0,.10)}
.home-image img{width:100%;height:430px;object-fit:cover}
.checks{list-style:none;margin:20px 0;padding:0}
.checks li{position:relative;padding:7px 0 7px 29px}
.checks li:before{content:"✓";position:absolute;left:0;color:var(--wr-red);font-weight:900}
.step{padding:26px;border:1px solid var(--wr-line);border-radius:8px;background:#fff}
.step strong{display:grid;place-items:center;width:42px;height:42px;border-radius:50%;background:var(--wr-red);color:#fff;margin-bottom:13px}
.area-cloud{display:flex;flex-wrap:wrap;gap:10px}
.area-cloud a{border:1px solid var(--wr-line);background:#fff;color:#222;padding:9px 13px;border-radius:999px;font-weight:800}
.review{position:relative;padding-top:38px}
.review:before{content:"“";position:absolute;top:-3px;left:22px;font:4rem Georgia,serif;color:#ddd}
.review .stars{color:#d49500}
.quote-band{background:var(--wr-red);color:#fff;padding:52px 0}
.quote-band .container{display:flex;align-items:center;justify-content:space-between;gap:30px;flex-wrap:wrap}
.quote-band h2{color:#fff;margin:0}
.page-hero{background:#151515;color:#fff;padding:64px 0}
.page-hero h1{color:#fff;margin:0;font-size:clamp(2.2rem,4vw,3.6rem)}
.content-layout{display:grid;grid-template-columns:minmax(0,1fr) 330px;gap:45px;padding:58px 0 74px}
.entry-content h2{margin-top:2.1rem}
.sidebar-box{background:#f6f6f6;border:1px solid var(--wr-line);border-radius:8px;padding:22px;margin-bottom:18px}
.sidebar-box.red{background:var(--wr-red);border-color:var(--wr-red);color:#fff}
.sidebar-box.red h3{color:#fff}
.quote-form{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.quote-form .full{grid-column:1/-1}
.quote-form label{font-weight:800;display:block;margin-bottom:5px}
.quote-form input,.quote-form select,.quote-form textarea{width:100%;padding:12px;border:1px solid #ccc;border-radius:4px;font:inherit}
.notice{padding:14px;border-radius:4px;margin-bottom:18px}
.success{background:#e9f7eb;border:1px solid #a1d8aa}
.error{background:#fff0f0;border:1px solid #e0aaaa}
.site-footer{background:#0f0f0f;color:#ccc;padding:55px 0 20px}
.footer-grid{display:grid;grid-template-columns:1.35fr 1fr 1fr 1fr;gap:34px}
.site-footer h3{color:#fff}
.site-footer a{color:#fff}
.footer-logo{width:115px;background:#fff;padding:5px;border-radius:3px;margin-bottom:15px}
.footer-bottom{border-top:1px solid #333;margin-top:36px;padding-top:18px;font-size:.88rem;color:#999}
@media(max-width:1000px){
 .main-nav{display:none}.grid-4,.trust-grid{grid-template-columns:1fr 1fr}.grid-2,.content-layout{grid-template-columns:1fr}.footer-grid{grid-template-columns:1fr 1fr}
}
@media(max-width:680px){
 .container{width:min(var(--wr-max),calc(100% - 28px))}.brand-copy{display:none}.nav-quote{margin-left:auto}.grid-3,.grid-4,.trust-grid,.footer-grid,.quote-form{grid-template-columns:1fr}.quote-form .full{grid-column:auto}.trust-item{border-right:0;border-bottom:1px solid var(--wr-line)}.hero{min-height:610px}.hero:before{background:linear-gradient(rgba(0,0,0,.72),rgba(0,0,0,.64))}.section{padding:58px 0}
}


/* V2.3 mobile controls */
.mobile-menu-toggle{display:none;margin-left:auto;width:46px;height:42px;border:0;border-radius:5px;background:var(--wr-red);color:#fff;cursor:pointer;padding:8px 10px;align-items:center;justify-content:center;flex-direction:column;gap:5px}
.mobile-menu-toggle span{display:block;width:24px;height:2px;background:#fff;transition:transform .2s ease,opacity .2s ease}
.mobile-menu-toggle[aria-expanded="true"] span:nth-child(1){transform:translateY(7px) rotate(45deg)}
.mobile-menu-toggle[aria-expanded="true"] span:nth-child(2){opacity:0}
.mobile-menu-toggle[aria-expanded="true"] span:nth-child(3){transform:translateY(-7px) rotate(-45deg)}
.mobile-nav{display:none;background:#fff;border-top:1px solid var(--wr-line);border-bottom:1px solid var(--wr-line);box-shadow:0 10px 25px rgba(0,0,0,.08)}
.mobile-nav.is-open{display:block}
.mobile-nav ul{list-style:none;margin:0;padding:10px 0}
.mobile-nav li{border-bottom:1px solid #eee}
.mobile-nav li:last-child{border-bottom:0}
.mobile-nav a{display:block;padding:13px 21px;color:#161616;font-weight:800;text-decoration:none}
.mobile-nav a:hover{background:#fafafa;color:var(--wr-red)}
@media(max-width:1000px){
  .mobile-menu-toggle{display:flex}
  .brand img{width:var(--wr-mobile-logo-width,95px)}
  .nav-row{min-height:var(--wr-mobile-header-height,80px)}
  .hero{min-height:var(--wr-mobile-hero-height,610px);background-position:var(--wr-mobile-hero-position,center center)}
  .hero h1{font-size:var(--wr-mobile-heading-size,44px)}
  .hero p{font-size:var(--wr-mobile-text-size,18px)}
  .hero .container{padding-top:var(--wr-mobile-hero-padding-top,70px);padding-bottom:var(--wr-mobile-hero-padding-bottom,70px)}
  .section{padding-top:var(--wr-mobile-section-spacing,58px);padding-bottom:var(--wr-mobile-section-spacing,58px)}
  body.wr-hide-mobile-hero-text .hero-content>p{display:none}
  body.wr-hide-mobile-trust .hero-trust{display:none}
  body.wr-hide-mobile-seasonal .section.dark{display:none}
  body.wr-hide-mobile-areas .area-cloud{display:none}
}
@media(max-width:680px){
  .hero-content .btn-row{flex-direction:var(--wr-mobile-button-direction,column);align-items:var(--wr-mobile-button-align,stretch)}
  .hero-content .btn-row .btn{width:var(--wr-mobile-button-width,100%)}
}


/* ==========================
   V2.4 MOBILE HEADER FIX
   Ensures logo/branding, quote button and hamburger stay aligned
   without overflowing narrow phone screens.
   ========================== */
@media(max-width:1000px){
  .utility .container{
    min-height:auto;
    padding:8px 0;
    display:block;
    text-align:center;
    line-height:1.35;
  }
  .utility .container span{
    display:block;
    white-space:normal;
  }
  .utility .container span + span{
    margin-top:4px;
  }

  .nav-row{
    display:grid;
    grid-template-columns:minmax(0,1fr) auto auto;
    align-items:center;
    gap:10px;
    width:100%;
    padding:10px 0;
  }

  .brand{
    min-width:0;
    width:auto;
    gap:8px;
    overflow:hidden;
  }

  .brand img,
  .brand .custom-logo{
    width:min(var(--wr-mobile-logo-width,82px),82px);
    max-width:82px;
    height:auto;
    object-fit:contain;
    flex:0 0 auto;
  }

  .brand-copy{
    min-width:0;
    overflow:hidden;
  }

  .brand-copy strong{
    font-size:clamp(.86rem,3.6vw,1rem);
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
  }

  .brand-copy span{
    font-size:.72rem;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
  }

  .nav-quote{
    margin:0;
    padding:10px 12px;
    min-width:auto;
    width:auto;
    max-width:118px;
    font-size:.82rem;
    line-height:1.1;
    white-space:nowrap;
    align-self:center;
  }

  .mobile-menu-toggle{
    margin:0;
    width:44px;
    height:42px;
    flex:0 0 44px;
    align-self:center;
  }

  .mobile-nav{
    width:100%;
    position:relative;
    z-index:120;
  }

  .mobile-nav ul{
    width:100%;
  }
}

@media(max-width:680px){
  .container{
    width:min(var(--wr-max),calc(100% - 24px));
  }

  .nav-row{
    grid-template-columns:minmax(0,1fr) auto auto;
    gap:8px;
  }

  .brand img,
  .brand .custom-logo{
    width:64px;
    max-width:64px;
  }

  .brand-copy{
    display:block;
  }

  .brand-copy strong{
    font-size:.78rem;
  }

  .brand-copy span{
    font-size:.66rem;
  }

  .nav-quote{
    padding:9px 10px;
    font-size:.76rem;
    max-width:96px;
  }

  .mobile-menu-toggle{
    width:42px;
    height:40px;
    flex-basis:42px;
  }
}

@media(max-width:420px){
  .nav-row{
    grid-template-columns:minmax(0,1fr) 88px 42px;
  }

  .brand-copy{
    display:none;
  }

  .brand img,
  .brand .custom-logo{
    width:72px;
    max-width:72px;
  }

  .nav-quote{
    max-width:88px;
    width:88px;
    white-space:normal;
    text-align:center;
    padding:8px 7px;
    line-height:1.05;
    font-size:.72rem;
  }

  .mobile-menu-toggle{
    width:42px;
    height:40px;
  }
}
