/*
Theme Name: EuroJap Autos 2026
Theme URI: https://eurojapautos.com/
Author: EuroJap Autos (built with Milo for Huzaifa)
Description: New design for eurojapautos.com based on the approved mockups (Big Motoring World direction, scaled to a local garage). Navy/red palette from the existing logo. Works with the existing HivePress listings: homepage search, car cards and car detail pages read the live listings. Existing pages keep their content. Inactive until activated under Appearance > Themes.
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: eurojap-2026
*/

* { margin:0; padding:0; box-sizing:border-box; }
:root {
  --navy:#16204a; --navy2:#1f2c5e; --red:#c62828;
  --ink:#1c2333; --muted:#5b6478; --line:#e4e7ee; --bg:#f5f6f9; --tick:#1e9e5a;
}
body { background:var(--bg); color:var(--ink); font-family:"Segoe UI", Arial, Helvetica, sans-serif; line-height:1.5; }
img { max-width:100%; }
a { color:var(--navy); }

/* ---------- trust bar ---------- */
.trustbar { background:var(--navy); color:#fff; display:flex; justify-content:center; gap:48px; padding:10px 16px; font-size:14.5px; font-weight:600; flex-wrap:wrap; }
.trustbar span::before { content:"\2713"; display:inline-block; background:var(--tick); color:#fff; border-radius:50%; width:18px; height:18px; line-height:18px; text-align:center; font-size:12px; margin-right:8px; vertical-align:-2px; }

/* ---------- header ---------- */
header.site { background:#fff; display:flex; align-items:center; justify-content:space-between; padding:14px 48px; border-bottom:1px solid var(--line); gap:16px; }
header.site .logo img { height:44px; width:auto; display:block; }
header.site .logo .sitename { font-size:22px; font-weight:800; color:var(--navy); text-decoration:none; }
nav.main ul { list-style:none; display:flex; align-items:center; gap:26px; margin:0; padding:0; }
nav.main a { color:var(--ink); text-decoration:none; font-size:15px; font-weight:600; }
nav.main a:hover { color:var(--red); }
h1, h2, h3, h4, h5, h6 { font-family:"Segoe UI", Arial, Helvetica, sans-serif; }
.phonebtn { background:var(--red); color:#fff; font-weight:700; font-size:15px; padding:11px 20px; border-radius:6px; text-decoration:none; white-space:nowrap; }
.phonebtn:hover { background:#a81f1f; }
.menutoggle { display:none; }

/* ---------- hero ---------- */
.hero { background:linear-gradient(105deg, var(--navy) 0%, var(--navy) 46%, var(--navy2) 100%); color:#fff; padding:64px 48px 120px; }
.hero .wrap { max-width:1240px; margin:0 auto; display:flex; gap:48px; align-items:center; }
.hero h1 { font-size:46px; line-height:1.12; max-width:560px; }
.hero p.sub { margin-top:16px; font-size:18px; color:#c9d2f2; max-width:520px; }
.hero .herocar { flex:1; text-align:right; }
.hero .herocar img { max-width:520px; width:100%; border-radius:10px; box-shadow:0 18px 44px rgba(0,0,0,.35); }

/* ---------- search card ---------- */
.searchcard { max-width:1240px; margin:-72px auto 0; background:#fff; border-radius:12px; box-shadow:0 14px 40px rgba(20,28,64,.16); padding:26px 30px; position:relative; }
.searchcard h2 { font-size:21px; margin-bottom:16px; }
.searchrow { display:flex; gap:14px; }
.searchrow .grow { flex:1; display:flex; }
.field, .searchrow select, .searchrow input[type="search"] {
  flex:1; width:100%; border:1.5px solid var(--line); border-radius:8px; padding:13px 14px;
  color:var(--ink); font-size:15px; background:#fff; font-family:inherit;
}
.btn, button.btn { background:var(--red); color:#fff; border:none; border-radius:8px; font-size:16px; font-weight:700; padding:13px 34px; cursor:pointer; text-decoration:none; display:inline-block; }
.btn:hover { background:#a81f1f; }

/* ---------- sections ---------- */
section.block { max-width:1240px; margin:0 auto; padding:56px 48px 0; }
h3.sec { font-size:26px; margin-bottom:22px; }
.bodypills { display:flex; gap:12px; flex-wrap:wrap; }
.pill { background:#fff; border:1.5px solid var(--line); border-radius:999px; padding:11px 22px; font-size:15px; font-weight:600; color:var(--ink); text-decoration:none; }
.pill:hover { border-color:var(--navy); }

/* ---------- car cards ---------- */
.cars { display:flex; gap:24px; flex-wrap:wrap; }
.cars.grid { display:grid; grid-template-columns:1fr 1fr; gap:22px; }
.card { background:#fff; border:1px solid var(--line); border-radius:12px; overflow:hidden; flex:1; min-width:260px; box-shadow:0 4px 14px rgba(20,28,64,.06); display:flex; flex-direction:column; }
.card .thumb { width:100%; height:190px; object-fit:cover; display:block; background:#dfe3ee; }
.card .body { padding:18px 18px 20px; display:flex; flex-direction:column; flex:1; }
.card h4 { font-size:19px; margin-bottom:8px; }
.chips { display:flex; gap:6px; flex-wrap:wrap; margin-bottom:12px; }
.chip { background:#eef1f8; color:#33405e; font-size:12.5px; font-weight:600; padding:4px 10px; border-radius:5px; }
.price { font-size:22px; font-weight:800; color:var(--navy); }
.viewbtn { display:block; text-align:center; margin-top:14px; background:var(--navy); color:#fff; text-decoration:none; font-weight:700; font-size:15px; padding:12px; border-radius:8px; }
.viewbtn:hover { background:var(--navy2); }
.prow { display:flex; justify-content:space-between; align-items:center; margin-top:auto; }
.prow .viewbtn { margin-top:0; padding:10px 22px; font-size:14px; }

/* ---------- MOT strip ---------- */
.motstrip { max-width:1240px; margin:56px auto 0; padding:0 48px; }
.motpanel { background:linear-gradient(105deg, var(--navy) 0%, var(--navy2) 100%); border-radius:18px; padding:40px 44px 44px; color:#fff; }
.mothead { display:flex; justify-content:space-between; align-items:flex-end; gap:24px; margin-bottom:22px; }
.motstrip h3 { font-size:26px; }
.motstrip p { color:#c9d2f2; margin-top:6px; font-size:15px; max-width:540px; }
.motcall { border:1.5px solid rgba(255,255,255,.45); color:#fff; padding:11px 22px; border-radius:8px; font-weight:700; font-size:15px; text-decoration:none; white-space:nowrap; }
.motcall:hover { background:rgba(255,255,255,.12); }
.motcard { background:#fff; border-radius:12px; box-shadow:0 14px 34px rgba(9,14,38,.35); padding:20px 24px; }
.motcard iframe { width:100%; min-height:174px; border:none; display:block; }

/* ---------- why / testimonials ---------- */
.why { display:flex; gap:20px; flex-wrap:wrap; }
.why .w { flex:1; min-width:220px; background:#fff; border:1px solid var(--line); border-radius:12px; padding:22px; }
.why .w b { display:block; font-size:16.5px; margin-bottom:8px; }
.why .w b::before { content:"\2713"; display:inline-block; background:var(--tick); color:#fff; border-radius:50%; width:20px; height:20px; line-height:20px; text-align:center; font-size:12px; margin-right:9px; }
.why .w p { font-size:14px; color:var(--muted); line-height:1.5; }
.testis { display:flex; gap:20px; align-items:stretch; flex-wrap:wrap; }
.testi { flex:1; min-width:220px; background:#fff; border:1px solid var(--line); border-radius:12px; padding:22px; font-size:14.5px; color:var(--muted); line-height:1.55; }
.testi b { display:block; color:var(--ink); margin-top:12px; font-size:14px; }
.score { background:#fff; border:1px solid var(--line); border-radius:12px; padding:22px; width:210px; text-align:center; }
.score .big { font-size:40px; font-weight:800; color:var(--navy); }
.stars { color:#f5a623; font-size:20px; letter-spacing:2px; }

/* ---------- inventory layout ---------- */
.layout { max-width:1240px; margin:0 auto; padding:36px 48px 64px; display:flex; gap:32px; align-items:flex-start; }
aside.filters { width:270px; background:#fff; border:1px solid var(--line); border-radius:12px; padding:22px; flex-shrink:0; }
aside.filters h3 { font-size:17px; margin-bottom:16px; }
.fgroup { margin-bottom:18px; }
.fgroup label, .fgroup .lbl { display:block; font-size:13px; font-weight:700; color:var(--muted); margin-bottom:7px; text-transform:uppercase; letter-spacing:.4px; }
.fgroup ul { list-style:none; }
.fgroup ul li a { display:block; padding:7px 10px; border-radius:6px; color:var(--ink); text-decoration:none; font-size:14.5px; }
.fgroup ul li a:hover, .fgroup ul li a.on { background:#eef1f8; }
main.results { flex:1; min-width:0; }
.rhead { display:flex; justify-content:space-between; align-items:center; margin-bottom:18px; gap:12px; flex-wrap:wrap; }
.rhead h2 { font-size:24px; }
.rhead .count { color:var(--muted); font-size:14px; }
.note { background:#fff8e1; border:1px solid #f0dfa0; border-radius:8px; padding:12px 16px; font-size:13px; color:#6b5d1f; margin-bottom:20px; }

/* ---------- single car ---------- */
.carpage { max-width:1240px; margin:0 auto; padding:36px 48px 64px; }
.carpage .top { display:flex; gap:36px; align-items:flex-start; flex-wrap:wrap; }
.carpage .gallery { flex:1; min-width:300px; }
.carpage .gallery img.main { width:100%; border-radius:12px; display:block; }
.carpage .gallery .thumbs { display:flex; gap:10px; margin-top:10px; flex-wrap:wrap; }
.carpage .gallery .thumbs img { width:96px; height:72px; object-fit:cover; border-radius:6px; }
.carpage .panel { width:360px; background:#fff; border:1px solid var(--line); border-radius:12px; padding:24px; flex-shrink:0; }
.carpage h1 { font-size:30px; margin-bottom:10px; }
.carpage .specs { margin-top:16px; border-top:1px solid var(--line); }
.carpage .specs div { display:flex; justify-content:space-between; padding:9px 0; border-bottom:1px solid var(--line); font-size:14.5px; }
.carpage .specs div span:first-child { color:var(--muted); }
.carpage .desc { max-width:820px; margin-top:32px; font-size:15.5px; color:var(--ink); line-height:1.65; }
.callcta { display:block; text-align:center; margin-top:18px; background:var(--red); color:#fff; text-decoration:none; font-weight:700; font-size:16px; padding:14px; border-radius:8px; }
.mailcta { display:block; text-align:center; margin-top:10px; background:#fff; border:1.5px solid var(--navy); color:var(--navy); text-decoration:none; font-weight:700; font-size:15px; padding:12px; border-radius:8px; }

/* ---------- generic page ---------- */
.pagecontent { max-width:900px; margin:0 auto; padding:48px 24px 64px; }
.pagecontent h1.pagetitle { font-size:32px; margin-bottom:20px; }
.pagecontent img { border-radius:10px; }
.pagecontent a { color:var(--red); }

/* ---------- footer ---------- */
footer.site { margin-top:56px; background:#10173a; color:#c9d2f2; padding:40px 48px; }
footer.site .wrap { max-width:1240px; margin:0 auto; display:flex; gap:64px; flex-wrap:wrap; }
footer.site h5 { color:#fff; font-size:15px; margin-bottom:12px; }
footer.site p, footer.site a { font-size:14px; line-height:1.8; color:#c9d2f2; text-decoration:none; }
footer.site a:hover { color:#fff; }
footer.site .col { min-width:200px; }

/* ---------- responsive ---------- */
@media (max-width:900px) {
  .cars.grid { grid-template-columns:1fr; }
  .layout { flex-direction:column; padding:24px 18px 48px; }
  aside.filters { width:100%; }
  .carpage .panel { width:100%; }
}
@media (max-width:700px) {
  header.site { padding:12px 14px; flex-wrap:wrap; }
  header.site .logo img { height:32px; }
  .phonebtn { padding:9px 12px; font-size:13.5px; }
  .menutoggle { display:inline-block; background:none; border:1.5px solid var(--line); border-radius:8px; font-size:20px; padding:6px 12px; cursor:pointer; color:var(--navy); }
  nav.main { display:none; width:100%; padding-top:10px; }
  nav.main.open { display:block; }
  nav.main.open ul { flex-direction:column; align-items:stretch; gap:0; }
  nav.main a { display:block; margin:0; padding:10px 4px; border-top:1px solid var(--line); }
  .hero { padding:36px 18px 96px; }
  .hero h1 { font-size:30px; }
  .hero .herocar { display:none; }
  .searchcard { margin:-64px 14px 0; padding:20px; }
  .searchrow { flex-direction:column; }
  section.block { padding:40px 14px 0; }
  .cars, .why, .testis { flex-direction:column; }
  .score { width:auto; }
  .motstrip { padding:0 14px; margin-top:40px; }
  .motpanel { padding:28px 18px 32px; border-radius:14px; }
  .mothead { flex-direction:column; align-items:flex-start; gap:14px; margin-bottom:18px; }
  .motcard { padding:14px; }
  .motcard iframe { min-height:258px; }
  footer.site { padding:32px 18px; }
  footer.site .wrap { gap:28px; }
  .trustbar { gap:14px; font-size:12.5px; }
  .carpage { padding:24px 18px 48px; }
}
