/*
Theme Name: Perrie EV Premium Header Rebuild
Theme URI: https://perrieev.co.uk
Author: OpenAI
Description: Full Perrie EV website with premium rebuilt header, bigger logo, improved hero button styling, and cleaner mobile layout.
Version: 1.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
Text Domain: perrie-ev-fresh
*/

:root{
  --red:#dc1f26;
  --red-dark:#b91c1c;
  --blue:#15488f;
  --blue-light:#2f6edc;
  --text:#1f2937;
  --muted:#64748b;
  --line:#dfe6ef;
  --bg:#f4f7fb;
  --shadow:0 18px 45px rgba(15,23,42,.08);
  --shadow-soft:0 10px 24px rgba(15,23,42,.06);
}

*{box-sizing:border-box}

html{
  scroll-behavior:smooth;
  scroll-padding-top:130px;
}

body{
  margin:0;
  font-family:Arial,Helvetica,sans-serif;
  background:linear-gradient(180deg,#f8fbff 0%,#f4f7fb 100%);
  color:var(--text);
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}

img{max-width:100%;display:block}
a{text-decoration:none;color:inherit}

.container{
  width:min(1240px,calc(100% - 28px));
  margin:0 auto;
}

#home,
#services,
#commercial,
#contact{
  scroll-margin-top:130px;
}

/* =========================
   HEADER
========================= */

.site-header{
  position:sticky;
  top:0;
  z-index:100;
  background:rgba(255,255,255,.97);
  backdrop-filter:blur(10px);
  border-bottom:1px solid #e5e7eb;
  box-shadow:0 4px 12px rgba(0,0,0,.04);
}

.nav{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:30px;
  padding:10px 28px;
}

.brand{
  display:inline-flex;
  align-items:center;
  flex:0 0 auto;
}

.brand img{
  height:165px;
  width:auto;
  display:block;
  max-height:none;
}

.menu{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:32px;
  flex:1 1 auto;
  flex-wrap:wrap;
}

.menu ul,
.menu li{
  list-style:none !important;
  margin:0;
  padding:0;
}

.menu li::marker{
  content:"" !important;
}

.menu a{
  font-size:19px;
  font-weight:900;
  color:#334155 !important;
  text-decoration:none;
  line-height:1;
  position:relative;
  padding:6px 0;
}

.menu a::after{
  content:"";
  position:absolute;
  left:0;
  bottom:-6px;
  width:0;
  height:2px;
  background:var(--red);
  transition:width .22s ease;
}

.menu a:hover::after{
  width:100%;
}

.header-cta{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:18px 34px;
  border-radius:16px;
  background:linear-gradient(180deg,#ff3b3b,#c8151b);
  color:#fff !important;
  font-weight:900;
  font-size:20px;
  border:2px solid rgba(0,0,0,.08);
  box-shadow:
    0 14px 30px rgba(220,31,38,.35),
    inset 0 1px 0 rgba(255,255,255,.22);
  white-space:nowrap;
  transition:all .22s ease;
}

.header-cta:hover{
  transform:translateY(-2px);
}

/* =========================
   HERO
========================= */

.hero-section{
  padding:22px 0;
}

.hero{
  display:grid;
  grid-template-columns:1fr 1fr;
  min-height:520px;
  background:#fff;
  border:1px solid var(--line);
  border-radius:28px;
  overflow:hidden;
  box-shadow:var(--shadow);
}

.hero-copy{
  background:linear-gradient(135deg, rgba(8,18,41,.98), rgba(21,72,143,.86));
  color:#fff;
  padding:56px 48px;
}

.hero-copy h1{
  margin:0 0 16px;
  font-size:clamp(42px,4.8vw,68px);
  line-height:1.02;
  letter-spacing:-.04em;
  max-width:11ch;
  font-weight:900;
}

.hero-copy p{
  margin:0;
  color:rgba(255,255,255,.92);
  font-size:21px;
  line-height:1.45;
}

.hero-actions{
  margin-top:28px;
  display:flex;
  gap:14px;
  flex-wrap:wrap;
}

.hero-media img{
  width:100%;
  height:100%;
  object-fit:cover;
}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:16px 28px;
  border-radius:14px;
  font-weight:900;
  font-size:18px;
  color:#fff;
  background:linear-gradient(180deg,#ef2b33,#c8151b);
  border:2px solid rgba(0,0,0,.08);
  box-shadow:
    0 14px 30px rgba(220,31,38,.28),
    inset 0 1px 0 rgba(255,255,255,.22);
  transition:all .22s ease;
}

.btn:hover{
  transform:translateY(-2px);
}

.btn-blue{
  background:linear-gradient(180deg,#2f6edc,#1e4fbf);
  box-shadow:
    0 14px 30px rgba(30,79,191,.30),
    inset 0 1px 0 rgba(255,255,255,.22);
}

/* =========================
   GENERAL SECTIONS
========================= */

.section-card{
  margin:22px auto;
  background:#fff;
  border:1px solid var(--line);
  border-radius:28px;
  overflow:hidden;
  box-shadow:var(--shadow-soft);
}

.inner{
  padding:42px 36px;
}

.center-title,
.title-left{
  margin:0 0 16px;
  color:#10284e;
  font-size:clamp(32px,4vw,52px);
  line-height:1.05;
  letter-spacing:-.03em;
}

.center-title{text-align:center}
.title-left{text-align:left}

.section-intro{
  max-width:760px;
  margin:0 auto 24px;
  text-align:center;
  color:var(--muted);
  font-size:18px;
  line-height:1.55;
}

.section-intro.left{
  text-align:left;
  margin-left:0;
  margin-right:0;
}

/* =========================
   CARDS
========================= */

.cards-3,
.install-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:20px;
}

.mini-card,
.install-card{
  background:#fff;
  border:1px solid var(--line);
  border-radius:22px;
  overflow:hidden;
  box-shadow:var(--shadow-soft);
}

.mini-card img{
  width:100%;
  height:210px;
  object-fit:cover;
}

.mini-copy{
  padding:22px;
}

.mini-copy h3,
.install-card h3{
  margin:0 0 10px;
  font-size:24px;
  color:#10284e;
}

.mini-copy p,
.install-card p{
  margin:0;
  font-size:16px;
  color:var(--muted);
  line-height:1.55;
}

/* =========================
   INSTALL
========================= */

.install-head{
  padding:42px 36px 16px;
}

.install-grid{
  padding:0 36px 42px;
}

.install-card{
  padding:18px;
}

.row-photo{
  width:100%;
  height:200px;
  object-fit:cover;
  border-radius:16px;
  margin-bottom:16px;
}

/* =========================
   COMMERCIAL
========================= */

.commercial-grid{
  display:grid;
  grid-template-columns:1fr .95fr;
  gap:28px;
  align-items:center;
  padding:42px 36px;
}

.stack{
  display:grid;
  gap:14px;
}

.item{
  display:flex;
  align-items:center;
  gap:14px;
  padding:16px 18px;
  border:1px solid var(--line);
  border-radius:18px;
  background:#f8fbff;
  font-size:18px;
  font-weight:700;
  color:#334155;
}

.dot{
  width:12px;
  height:12px;
  border-radius:50%;
  background:var(--blue);
  flex:0 0 12px;
}

.thumbs{
  display:grid;
  gap:16px;
}

.thumbs img{
  width:100%;
  height:220px;
  object-fit:cover;
  border-radius:20px;
}

/* =========================
   CONTACT
========================= */

.contact{
  display:grid;
  grid-template-columns:1.15fr 0.85fr;
  gap:24px;
  align-items:start;
  padding:32px 32px 36px;
}

.contact-form-wrap{
  background:#fff;
  border:1px solid var(--line);
  border-radius:24px;
  padding:28px;
  box-shadow:0 10px 24px rgba(15,23,42,.05);
}

.contact-form-wrap .title-left{
  margin-bottom:10px;
  font-size:34px;
}

.contact-form-wrap .section-intro{
  margin-bottom:18px;
  font-size:17px;
}

.contact-form-wrap input,
.contact-form-wrap textarea{
  width:100%;
  border:1px solid #d7dee8;
  border-radius:14px;
  padding:14px 16px;
  font-size:15px;
  background:#fff;
}

.contact-form-wrap textarea{
  min-height:120px;
}

.contact-form-wrap input[type="submit"],
.contact-form-wrap .wpcf7-submit{
  width:100%;
  border:0;
  border-radius:14px;
  padding:16px 18px;
  background:linear-gradient(180deg,#ef2b33,#c8151b);
  color:#fff;
  font-weight:900;
  font-size:16px;
  box-shadow:0 10px 22px rgba(220,31,38,.20);
  cursor:pointer;
}

.contact-card{
  background:#f8fbff;
  border:1px solid #dfe6ef;
  border-radius:24px;
  padding:24px;
  box-shadow:0 10px 24px rgba(15,23,42,.05);
}

.contact-card h4{
  margin:0 0 12px;
  color:#10284e;
  font-size:24px;
  line-height:1.1;
}

.contact-card p{
  margin:10px 0;
  font-size:17px;
  line-height:1.5;
  color:#475569;
}

.contact-logo-box{
  margin-top:16px;
  background:#fff;
  border:1px solid #dfe6ef;
  border-radius:24px;
  padding:18px;
  display:flex;
  align-items:center;
  justify-content:center;
  box-shadow:0 10px 24px rgba(15,23,42,.05);
}

.contact-logo-box img{
  width:280px;
  max-width:100%;
  height:auto;
  display:block;
  border-radius:14px;
}

/* =========================
   FOOTER
========================= */

.site-footer{
  padding:32px 0 40px;
  color:#64748b;
  text-align:center;
}

.site-footer p{
  margin:6px 0;
}

/* =========================
   MOBILE
========================= */

@media (max-width:768px){
  .site-header .nav{
    gap:10px;
    padding:10px 14px;
    flex-direction:column;
  }

  .site-header .brand img{
    height:82px;
    max-width:92vw;
  }

  .site-header .menu{
    gap:12px;
    flex-wrap:wrap;
  }

  .site-header .menu a{
    font-size:15px;
    line-height:1.1;
  }

  .site-header .header-cta{
    width:100%;
    max-width:320px;
    padding:14px 20px;
    font-size:16px;
    border-radius:16px;
  }

  .hero-section{
    padding-top:14px;
  }

  .hero,
  .cards-3,
  .install-grid,
  .commercial-grid,
  .contact{
    grid-template-columns:1fr;
    min-height:auto;
  }

  .hero{
    border-radius:24px;
  }

  .hero-copy{
    padding:28px 22px;
  }

  .hero-copy h1{
    font-size:28px;
    line-height:1.02;
    max-width:none;
  }

  .hero-copy p{
    font-size:16px;
    line-height:1.45;
  }

  .hero-actions{
    margin-top:18px;
    gap:12px;
  }

  .hero-actions .btn{
    width:100%;
    font-size:16px;
    padding:14px 18px;
  }

  .inner,
  .install-head,
  .install-grid,
  .commercial-grid,
  .contact{
    padding:24px 18px;
  }

  .install-grid{
    padding:0 18px 24px;
  }

  .mini-card img,
  .thumbs img,
  .row-photo{
    height:180px;
  }

  .contact-form-wrap,
  .contact-card,
  .contact-logo-box{
    padding:20px;
  }

  .contact-form-wrap .title-left{
    font-size:28px;
  }

  .contact-card h4{
    font-size:22px;
  }

  .contact-card p{
    font-size:16px;
  }

  .contact-logo-box img{
    width:220px;
  }
}

@media (max-width:640px){
  .site-header .brand img{
    height:78px;
  }

  .site-header .menu a{
    font-size:14px;
  }

  .site-header .header-cta{
    max-width:300px;
    padding:13px 18px;
    font-size:15px;
  }
}