/* CarWise Christchurch — Static Marketing Site
   Author: ChatGPT
   Notes: Lightweight, modern, fast. No build step.
*/

:root{
  --bg: #F7FAFF;
  --surface: #ffffff;
  --text: #0b1220;
  --muted: #475569;
  --border: rgba(15, 23, 42, .12);
  --primary: #0B2D6B;
  --primary-2: #071A3A;
  --accent: #E11D48;
  --accent-2: #14B8A6;
  --shadow: 0 18px 60px rgba(2, 6, 23, .12);
  --shadow-sm: 0 10px 25px rgba(2, 6, 23, .10);
  --radius: 18px;
  --radius-lg: 26px;
  --container: 1160px;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family: 'Manrope', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color:var(--text);
  background: radial-gradient(1100px 420px at 30% -10%, rgba(20,184,166,.16), transparent 60%),
              radial-gradient(900px 360px at 90% 10%, rgba(225,29,72,.16), transparent 55%),
              var(--bg);
}

img{max-width:100%; height:auto}
a{color:inherit; text-decoration:none}
button{font-family:inherit}
.sr-only{position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0}

.container{width:min(var(--container), 92vw); margin-inline:auto}
.section{padding: clamp(60px, 7vw, 92px) 0}
.section-tight{padding: clamp(48px, 6vw, 72px) 0}
.grid{display:grid; gap:22px}
.flex{display:flex; gap:18px; align-items:center}

.pill{
  display:inline-flex; align-items:center; gap:10px;
  padding:10px 14px;
  background: rgba(255,255,255,.78);
  border:1px solid rgba(255,255,255,.45);
  border-radius: 999px;
  box-shadow: 0 10px 24px rgba(2,6,23,.08);
  backdrop-filter: blur(10px);
  font-weight: 700;
  color: var(--primary);
}
.pill i{color:var(--accent)}

.h1{font-size: clamp(2.1rem, 3.8vw, 3.35rem); line-height:1.05; margin:14px 0 14px}
.h2{font-size: clamp(1.6rem, 2.7vw, 2.25rem); line-height:1.15; margin:0 0 12px}
.lead{font-size: 1.07rem; line-height:1.7; color:var(--muted); margin:0 0 22px}
.kicker{letter-spacing:.12em; text-transform:uppercase; font-weight:800; color:rgba(11,45,107,.75); font-size:.78rem}

.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:10px;
  padding: 12px 16px;
  border-radius: 14px;
  border:1px solid transparent;
  font-weight: 800;
  cursor:pointer;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
}
.btn:active{transform:translateY(1px)}
.btn-primary{background: linear-gradient(135deg, var(--accent), var(--accent-2)); color:white; box-shadow: 0 18px 45px rgba(225,29,72,.24)}
.btn-primary:hover{box-shadow: 0 22px 60px rgba(20,184,166,.22)}
.btn-ghost{background: rgba(255,255,255,.72); border-color: rgba(15,23,42,.12); color:var(--primary)}
.btn-ghost:hover{background: rgba(255,255,255,.92); box-shadow: var(--shadow-sm)}

.badge{
  display:inline-flex; align-items:center; gap:8px;
  padding: 10px 12px;
  border:1px dashed rgba(255,255,255,.45);
  border-radius: 14px;
  background: rgba(7,26,58,.42);
  backdrop-filter: blur(10px);
  color: rgba(255,255,255,.92);
  font-weight:800;
}

.card{
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 8px 26px rgba(2,6,23,.06);
}
.card:hover{box-shadow: var(--shadow-sm)}

.header{
  position: sticky; top:0; z-index: 50;
  background: rgba(247,250,255,.72);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(15,23,42,.10);
}
.topbar{
  background: linear-gradient(90deg, rgba(11,45,107,.94), rgba(7,26,58,.94));
  color: rgba(255,255,255,.92);
  font-size: .92rem;
}
.topbar .container{display:flex; justify-content:space-between; gap:12px; padding:10px 0}
.topbar a{opacity:.95}
.topbar a:hover{opacity:1}
.topbar .meta{display:flex; gap:18px; flex-wrap:wrap}
.topbar i{color: var(--accent-2)}

.nav{
  display:flex; align-items:center; justify-content:space-between;
  padding: 14px 0;
}
.brand{display:flex; gap:12px; align-items:center}
.brand img{height:34px; width:auto}
.brand .name{display:flex; flex-direction:column; line-height:1}
.brand .name strong{font-size:1.02rem}
.brand .name span{font-size:.78rem; color:rgba(11,45,107,.7); font-weight:800; letter-spacing:.08em; text-transform:uppercase}

.navlinks{display:flex; align-items:center; gap:18px}
.navlinks a{font-weight:800; color:rgba(11,45,107,.85); padding:10px 10px; border-radius:12px}
.navlinks a:hover{background: rgba(11,45,107,.06)}
.navcta{display:flex; gap:10px; align-items:center}
.burger{display:none; border:1px solid rgba(15,23,42,.12); background: rgba(255,255,255,.75); border-radius: 14px; padding:10px 12px; cursor:pointer}
.burger i{font-size:1.1rem; color:var(--primary)}

.hero{
  position:relative;
  overflow:hidden;
  border-bottom: 1px solid rgba(15,23,42,.08);
}
.hero::before{
  content:"";
  position:absolute; inset:-2px;
  background:
    radial-gradient(900px 450px at 20% 20%, rgba(20,184,166,.25), transparent 55%),
    radial-gradient(820px 420px at 80% 0%, rgba(225,29,72,.25), transparent 55%);
  pointer-events:none;
}
.hero-inner{display:grid; grid-template-columns: 1.05fr .95fr; gap:28px; padding: clamp(46px, 7vw, 90px) 0; position:relative}
.hero-media{
  background: linear-gradient(135deg, rgba(11,45,107,.14), rgba(225,29,72,.10));
  border: 1px solid rgba(255,255,255,.32);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow:hidden;
  position:relative;
}
.hero-media .cut{
  position:absolute; inset:-40px -80px auto auto;
  width: 340px; height: 340px;
  background: linear-gradient(135deg, rgba(225,29,72,.75), rgba(20,184,166,.75));
  clip-path: polygon(0 0, 100% 0, 100% 35%, 35% 100%, 0 100%, 0 75%);
  opacity:.24;
  transform: rotate(12deg);
}
.hero-media img{display:block; width:100%; height:auto}
.hero-actions{display:flex; flex-wrap:wrap; gap:12px; align-items:center}
.hero-proof{display:flex; flex-wrap:wrap; gap:10px; margin-top:18px}
.hero-proof .badge{border-style: solid; border-color: rgba(255,255,255,.18)}

.stats{
  margin-top: 18px;
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:12px;
}
.stat{
  background: rgba(255,255,255,.74);
  border: 1px solid rgba(15,23,42,.10);
  border-radius: 16px;
  padding: 14px 14px;
  box-shadow: 0 12px 30px rgba(2,6,23,.10);
}
.stat strong{display:block; font-size:1.2rem; color:var(--primary)}
.stat span{font-size:.92rem; color:var(--muted); font-weight:700}

.marquee{
  display:flex; gap:22px; align-items:center;
  padding: 14px 0;
  opacity:.88;
  flex-wrap:wrap;
}
.marquee .chip{
  display:flex; gap:10px; align-items:center;
  padding:10px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.72);
  border: 1px solid rgba(15,23,42,.10);
  box-shadow: 0 10px 25px rgba(2,6,23,.08);
  font-weight:800;
  color:rgba(11,45,107,.86);
}
.marquee .chip i{color: var(--accent)}

.split{display:grid; grid-template-columns: 1fr 1fr; gap:24px; align-items:stretch}

.service-grid{grid-template-columns: repeat(3, 1fr)}
.service-card{padding:18px; position:relative; overflow:hidden}
.service-card .icon{
  width:46px; height:46px; border-radius:16px;
  display:grid; place-items:center;
  background: rgba(11,45,107,.10);
  color: var(--primary);
}
.service-card:hover .icon{background: rgba(225,29,72,.12); color: var(--accent)}
.service-card h3{margin:14px 0 8px; font-size:1.1rem}
.service-card p{margin:0 0 12px; color:var(--muted); line-height:1.7}
.service-card .thumb{border-radius: 16px; overflow:hidden; border: 1px solid rgba(15,23,42,.10); margin-top: 14px}
.service-card .thumb img{display:block}

.callout{
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(11,45,107,.92), rgba(7,26,58,.92));
  color: rgba(255,255,255,.92);
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: var(--shadow);
  overflow:hidden;
  position:relative;
}
.callout::after{
  content:"";
  position:absolute; inset:auto -120px -120px auto;
  width: 340px; height: 340px;
  background: radial-gradient(circle at 40% 40%, rgba(20,184,166,.9), transparent 60%);
  opacity:.25;
}
.callout .inner{padding: 26px; display:grid; grid-template-columns: 1.2fr .8fr; gap:18px; align-items:center}
.callout h3{margin:0 0 10px; font-size:1.45rem}
.callout p{margin:0; color: rgba(255,255,255,.82); line-height:1.7}
.callout .actions{display:flex; gap:10px; flex-wrap:wrap; justify-content:flex-end}

.beforeafter{
  position:relative; border-radius: var(--radius-lg); overflow:hidden;
  border: 1px solid rgba(15,23,42,.12);
  box-shadow: var(--shadow-sm);
}
.beforeafter .pane{position:absolute; inset:0; background-size:cover; background-position:center}
.beforeafter .pane.after{clip-path: inset(0 0 0 50%)}
.beforeafter .handle{
  position:absolute; top:0; bottom:0; left:50%;
  width: 2px;
  background: rgba(255,255,255,.75);
  box-shadow: 0 0 0 1px rgba(2,6,23,.25);
}
.beforeafter .knob{
  position:absolute; left:50%; top:50%;
  transform:translate(-50%,-50%);
  width: 54px; height:54px; border-radius:999px;
  background: rgba(255,255,255,.88);
  border: 1px solid rgba(15,23,42,.14);
  display:grid; place-items:center;
  box-shadow: 0 18px 45px rgba(2,6,23,.18);
}
.beforeafter input[type="range"]{
  position:absolute; inset:0; width:100%; height:100%;
  opacity:0; cursor:ew-resize;
}

.tabs{display:flex; gap:10px; flex-wrap:wrap}
.tab{
  padding:10px 12px; border-radius: 999px;
  border:1px solid rgba(15,23,42,.12);
  background: rgba(255,255,255,.72);
  cursor:pointer;
  font-weight:800;
  color: rgba(11,45,107,.86);
}
.tab[aria-selected="true"]{background: linear-gradient(135deg, rgba(225,29,72,.14), rgba(20,184,166,.14)); border-color: rgba(11,45,107,.18)}

.projects{grid-template-columns: 1.05fr .95fr; gap:24px}
.project-list{display:grid; gap:14px}
.project{
  display:grid; grid-template-columns: 86px 1fr; gap:14px; padding:14px;
  border-radius: 18px;
  border:1px solid rgba(15,23,42,.10);
  background: rgba(255,255,255,.72);
}
.project img{width:86px; height:62px; object-fit:cover; border-radius: 14px; border:1px solid rgba(15,23,42,.10)}
.project h4{margin:2px 0 4px; font-size:1.02rem}
.project p{margin:0; color:var(--muted); line-height:1.5; font-weight:700; font-size:.92rem}

.form{
  padding: 18px;
}
.form .row{display:grid; grid-template-columns: 1fr 1fr; gap:12px}
.field label{display:block; font-weight:800; font-size:.9rem; margin:0 0 6px; color: rgba(11,45,107,.86)}
.field input, .field select, .field textarea{
  width:100%;
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid rgba(15,23,42,.14);
  background: rgba(255,255,255,.92);
  outline: none;
  transition: box-shadow .15s ease, border-color .15s ease;
}
.field textarea{min-height: 110px; resize: vertical}
.field input:focus, .field select:focus, .field textarea:focus{
  border-color: rgba(20,184,166,.65);
  box-shadow: 0 0 0 4px rgba(20,184,166,.14);
}
.form small{color:var(--muted); font-weight:700}
.notice{display:none; margin-top:12px; padding: 12px 12px; border-radius: 14px; font-weight:800}
.notice.ok{display:block; background: rgba(20,184,166,.12); border:1px solid rgba(20,184,166,.30); color: rgba(7,26,58,.92)}
.notice.err{display:block; background: rgba(225,29,72,.12); border:1px solid rgba(225,29,72,.25); color: rgba(7,26,58,.92)}

.carousel{
  position:relative;
}
.carousel .track{display:flex; overflow:hidden}
.carousel .slide{min-width: 100%; padding: 0 2px}
.quote{
  padding: 20px;
}
.quote .head{display:flex; gap:12px; align-items:center; margin-bottom:12px}
.avatar{width:44px; height:44px; border-radius: 14px; background: linear-gradient(135deg, rgba(225,29,72,.22), rgba(20,184,166,.22)); border:1px solid rgba(15,23,42,.12)}
.stars{color: #f59e0b; letter-spacing: 2px}
.quote p{margin:0; color:var(--muted); line-height:1.8; font-weight:650}
.quote strong{display:block; margin-top: 10px; color: rgba(11,45,107,.9)}

.carousel .controls{display:flex; gap:10px; justify-content:flex-end; margin-top: 12px}
.iconbtn{
  width:44px; height:44px; border-radius: 14px;
  border:1px solid rgba(15,23,42,.12);
  background: rgba(255,255,255,.72);
  display:grid; place-items:center;
  cursor:pointer;
}
.iconbtn:hover{box-shadow: var(--shadow-sm)}

.pricing{grid-template-columns: repeat(3, 1fr)}
.plan{padding: 20px; position:relative; overflow:hidden}
.plan .price{font-size:2.05rem; font-weight:900; color: var(--primary); margin: 10px 0 6px}
.plan ul{margin: 12px 0 0; padding:0; list-style:none; display:grid; gap:10px}
.plan li{display:flex; gap:10px; align-items:flex-start; color:var(--muted); font-weight:700; line-height:1.55}
.plan .tag{position:absolute; top:16px; right:16px; padding:8px 10px; border-radius:999px; background: rgba(225,29,72,.10); border:1px solid rgba(225,29,72,.20); color: rgba(225,29,72,.95); font-weight:900; font-size:.82rem}
.plan.featured{border:1px solid rgba(20,184,166,.35); box-shadow: 0 22px 70px rgba(20,184,166,.16)}
.plan.featured .tag{background: rgba(20,184,166,.12); border-color: rgba(20,184,166,.25); color: rgba(7,26,58,.92)}

.steps{grid-template-columns: repeat(4, 1fr)}
.step{padding:18px}
.step .num{width:40px; height:40px; border-radius: 14px; display:grid; place-items:center; font-weight:900; color:white; background: linear-gradient(135deg, var(--accent), var(--accent-2))}
.step h4{margin:14px 0 8px}
.step p{margin:0; color:var(--muted); line-height:1.7; font-weight:700}

.blog{grid-template-columns: repeat(3, 1fr)}
.post{overflow:hidden}
.post .cover{height: 160px; overflow:hidden; border-bottom:1px solid rgba(15,23,42,.10)}
.post .cover img{width:100%; height:100%; object-fit:cover}
.post .body{padding: 16px}
.post h4{margin: 0 0 8px}
.post p{margin:0 0 14px; color:var(--muted); line-height:1.7; font-weight:700}
.post .meta{display:flex; gap:12px; align-items:center; color: rgba(11,45,107,.72); font-weight:900; font-size:.85rem}
.post .meta i{color: var(--accent)}

.footer{
  background: linear-gradient(135deg, rgba(11,45,107,.96), rgba(7,26,58,.96));
  color: rgba(255,255,255,.88);
  border-top: 1px solid rgba(255,255,255,.10);
}
.footer .container{padding: 48px 0}
.footer-grid{display:grid; grid-template-columns: 1.2fr .8fr .8fr .8fr; gap:22px}
.footer a{color: rgba(255,255,255,.84)}
.footer a:hover{color:white}
.footer .brand img{filter: drop-shadow(0 12px 30px rgba(0,0,0,.25)); height:36px}
.footer h5{margin: 0 0 10px; color:white}
.footer ul{list-style:none; margin:0; padding:0; display:grid; gap:10px; font-weight:750; color: rgba(255,255,255,.78)}
.footer .fine{margin-top: 28px; display:flex; justify-content:space-between; gap:14px; flex-wrap:wrap; color: rgba(255,255,255,.72); font-weight:700; border-top:1px solid rgba(255,255,255,.10); padding-top:18px}

.floating{
  position:fixed; right:18px; bottom:18px; z-index:60;
  display:flex; flex-direction:column; gap:10px;
}
.floating a{
  width:52px; height:52px; border-radius: 18px;
  display:grid; place-items:center;
  box-shadow: var(--shadow);
  border:1px solid rgba(255,255,255,.28);
}
.floating .call{background: linear-gradient(135deg, var(--accent), var(--accent-2)); color:white}
.floating .top{background: rgba(255,255,255,.86); color: var(--primary)}

.reveal{opacity:0; transform: translateY(12px); transition: opacity .65s ease, transform .65s ease}
.reveal.in{opacity:1; transform: translateY(0)}

/* Mobile */
@media (max-width: 960px){
  .hero-inner{grid-template-columns: 1fr; gap:18px}
  .stats{grid-template-columns: 1fr 1fr 1fr}
  .split{grid-template-columns: 1fr}
  .service-grid{grid-template-columns: 1fr 1fr}
  .projects{grid-template-columns: 1fr}
  .pricing{grid-template-columns: 1fr}
  .steps{grid-template-columns: 1fr 1fr}
  .blog{grid-template-columns: 1fr}
  .footer-grid{grid-template-columns: 1fr 1fr}
  .navlinks{display:none; position:absolute; left:0; right:0; top:100%; padding: 14px; background: rgba(247,250,255,.92); border-bottom:1px solid rgba(15,23,42,.10); box-shadow: var(--shadow-sm); flex-direction:column; align-items:flex-start}
  .navlinks.open{display:flex}
  .burger{display:inline-flex}
}

@media (max-width: 520px){
  .topbar .container{flex-direction:column; align-items:flex-start}
  .stats{grid-template-columns: 1fr}
  .service-grid{grid-template-columns: 1fr}
  .steps{grid-template-columns: 1fr}
  .form .row{grid-template-columns: 1fr}
  .footer-grid{grid-template-columns: 1fr}
}