:root{
  --navy:#0b1f3a;
  --navy2:#122a4b;
  --grey:#f3f5f7;
  --grey2:#e7ebef;
  --text:#132033;
  --muted:#5b6b7f;
  --orange:#ff8a00;
  --yellow:#ffc400;
  --green:#25D366;

  --card:#ffffff;
  --border:#dfe6ee;
  --shadow: 0 8px 24px rgba(10, 25, 41, 0.08);
  --radius:18px;
  --max:1180px;

  --hover-bg:#ecfbf1;
  --hover-border:#bfead1;
  --hover-shadow:0 4px 10px rgba(37,211,102,.15);
}

*{box-sizing:border-box}
html,body{margin:0;padding:0}
body{
  font-family:system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
  color:var(--text);
  background:var(--grey);
  line-height:1.55;
}
a{color:inherit;text-decoration:none}
a:hover{text-decoration:underline}
.container{max-width:var(--max);margin:0 auto;padding:0 16px}

/* Topbar */
.topbar{background:linear-gradient(90deg,var(--navy),var(--navy2));color:#fff;}
.topbar .row{
  display:flex;gap:12px;align-items:center;justify-content:space-between;
  padding:10px 0;font-size:14px;flex-wrap:wrap;overflow:visible;
}
.topbar a{color:#fff;opacity:.95}
.topbar a:hover{opacity:1}
.topbar-left{position:relative;display:flex;align-items:center;gap:10px;}
.topbar-logo-link{
  position:absolute;left:0;top:50%;transform:translateY(-50%);
  display:inline-block;z-index:5;
}
img.topbar-logo{height:70px;width:auto;display:block;}
.topbar-text{padding-left:80px;line-height:1.2;}
.topbar-subtitle{margin-top:2px;font-size:12px;color:#cfe0ff;opacity:.95;display:block;}

.brandbar{background:#fff;border-bottom:1px solid var(--border)}
.brandbar .row{
  display:flex;gap:14px;align-items:center;justify-content:space-between;
  padding:14px 0;flex-wrap:wrap;
}

nav{
  display:flex;flex-wrap:wrap;gap:10px;align-items:center;justify-content:flex-start;
}
nav a{
  padding:9px 11px;border-radius:12px;color:var(--navy);
  font-weight:700;font-size:14px;
}
nav a.active, nav a:hover{background:var(--grey2);text-decoration:none}

/* Buttons */
.btn,
.btn.primary,
.btn.navy,
button.btn,
input[type="submit"].btn,
input[type="button"].btn{
  display:inline-flex;align-items:center;justify-content:center;
  padding:6px 12px;font-size:13px;font-weight:800;border-radius:12px;
  background:#fff;color:var(--navy);border:1px solid var(--border);
  cursor:pointer;box-shadow:none;
  transition:background-color .18s ease,border-color .18s ease,box-shadow .18s ease,color .18s ease,filter .18s ease;
}
.btn:hover,
.btn.primary:hover,
.btn.navy:hover,
button.btn:hover,
input[type="submit"].btn:hover,
input[type="button"].btn:hover{
  background:var(--hover-bg);
  border-color:var(--hover-border);
  color:var(--navy);
  box-shadow:var(--hover-shadow);
  text-decoration:none;
}
.btn.small{padding:4px 9px;font-size:11.5px;border-radius:999px;line-height:1}
.btn.tiny{padding:4px 9px;font-size:11.5px;border-radius:999px;line-height:1}
.btn.qe-mini{padding:4px 9px;font-size:11.5px;border-radius:999px;line-height:1;font-weight:900}

.topbar-enquiry{
  background:transparent;color:#fff;border:1px solid rgba(255,255,255,.35);
  white-space:nowrap;font-weight:900;
}
.topbar-enquiry:hover{
  background:var(--hover-bg);
  color:var(--navy);
  border-color:var(--hover-border);
  text-decoration:none;
  box-shadow:var(--hover-shadow);
}

/* Layout */
.hero{padding:28px 0 16px}
.hero-grid{
  display:grid;
  grid-template-columns:1.3fr .9fr;
  gap:18px;
  align-items:stretch;
}
@media(max-width:900px){.hero-grid{grid-template-columns:1fr}}

.card{
  background:var(--card);
  border:1px solid var(--border);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
}
.card.pad{padding:18px}

/* Distinct hero card colours */
.hero-grid > .card:first-child{
  background:linear-gradient(180deg,#ffffff 0%, #fff7ef 100%);
}
.hero-grid > .card:last-child{
  background:linear-gradient(180deg,#fbfcfe 0%, #f1f5fb 100%);
}

.h1{font-size:34px;line-height:1.1;margin:0 0 10px;color:var(--navy)}
@media(max-width:520px){.h1{font-size:28px}}
.lead{margin:0 0 14px;color:var(--muted);font-size:16px}

/* Badges: neat alignment */
.badges{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px;
  margin-top:12px;
}
@media(max-width:700px){.badges{grid-template-columns:1fr}}
.badge{
  font-size:12px;
  padding:8px 10px;
  border-radius:999px;
  background:var(--grey2);
  border:1px solid var(--border);
  color:var(--navy);
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
  min-height:38px;
  line-height:1.15;
  text-decoration:none;
  cursor:pointer;
}

.badge:hover{
  filter:brightness(0.98);
  box-shadow:0 6px 16px rgba(0,0,0,0.06);
}

.kpis{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:12px}
.kpi{padding:14px;border-radius:16px;background:var(--grey);border:1px solid var(--border)}
.kpi .num{font-weight:900;font-size:18px;color:var(--navy)}
.kpi .lbl{font-size:12px;color:var(--muted)}

.grid3{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}
@media(max-width:900px){.grid3{grid-template-columns:1fr}}
.grid2{display:grid;grid-template-columns:repeat(2,1fr);gap:14px}
@media(max-width:900px){.grid2{grid-template-columns:1fr}}

.section{padding:14px 0 24px}
.h2{font-size:20px;margin:0 0 10px;color:var(--navy)}
.p{margin:0;color:var(--muted)}
.list{margin:10px 0 0;padding-left:18px;color:var(--muted)}
hr.sep{border:none;border-top:1px solid var(--border);margin:16px 0}

/* Forms */
.form{display:grid;gap:10px}
.form label{font-weight:800;font-size:13px;color:var(--navy)}
input,select,textarea{
  width:100%;
  padding:11px 12px;
  border-radius:14px;
  border:1px solid var(--border);
  background:#fff;
  font:inherit;
}
textarea{min-height:110px;resize:vertical}
.help{font-size:12px;color:var(--muted)}
.row2{display:grid;grid-template-columns:1fr 1fr;gap:12px}
@media(max-width:700px){.row2{grid-template-columns:1fr}}

.alert{padding:12px 14px;border-radius:14px;border:1px solid var(--border);background:#fff}
.alert.ok{border-color:#bfe7c8;background:#f2fbf4}
.alert.err{border-color:#ffb8b8;background:#fff3f3}

/* Tables */
.table{width:100%;border-collapse:separate;border-spacing:0 10px}
.table td,.table th{padding:12px;text-align:left;font-size:14px}
.table tr{background:#fff;border:1px solid var(--border)}
.table tr td:first-child,.table tr th:first-child{border-radius:14px 0 0 14px}
.table tr td:last-child,.table tr th:last-child{border-radius:0 14px 14px 0}
.price{font-weight:900;color:var(--navy)}
.muted{color:var(--muted)}

/* Footer */
.footer{
  background:linear-gradient(180deg,var(--navy2),var(--navy));
  color:#eaf0f6;
  border-top:1px solid rgba(255,255,255,.10);
  padding:22px 0 90px;
  margin-top:18px;
}
.footer .container{padding-right:90px;}
.footer .cols{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:16px;
  align-items:stretch;
}
@media(max-width:980px){.footer .cols{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:520px){.footer .cols{grid-template-columns:1fr}}

.footer .card{
  background:rgba(255,255,255,.03);
  border:1px solid rgba(255,255,255,.08);
  border-radius:16px;
  box-shadow:none;
}
.footer .card.pad{height:100%;display:flex;flex-direction:column;padding:14px;}
.footer .h2{color:#fff;font-size:15px;margin:0 0 8px}
.footer .p{color:#d6e2f0;font-size:13.5px;line-height:1.55;margin:0 0 10px}
.footer .small{font-size:12.5px;color:#d6e2f0;opacity:.92;line-height:1.55}
.footer .list{color:#d6e2f0;padding-left:14px;margin:6px 0 0;}
.footer .list li{margin:6px 0}
.footer .list a{color:#fff;opacity:.92}
.footer .list a:hover{opacity:1;text-decoration:underline}
.footer hr.sep{border-top:1px solid rgba(255,255,255,.14);margin:10px 0}
.footer-bottom{margin-top:18px;text-align:center;display:flex;flex-direction:column;gap:6px;}
.footer-bottom a{color:#fff;opacity:.92}
.footer-bottom a:hover{opacity:1;text-decoration:underline}

/* WhatsApp */
.whatsapp-fab{
  position:fixed;right:18px;bottom:18px;z-index:50;
  width:56px;height:56px;border-radius:999px;background:var(--green);
  display:flex;align-items:center;justify-content:center;
  box-shadow:0 12px 26px rgba(0,0,0,.18);
  border:0;
}
.whatsapp-fab svg{width:28px;height:28px;fill:#fff}

/* Images */
.thumb{
  width:120px;height:90px;overflow:hidden;border-radius:10px;
  background:#f3f5f7;display:flex;align-items:center;justify-content:center;
}
.thumb img{width:100%;height:100%;object-fit:contain;display:block;}

.machine-hero img,
.machine-image img{
  width:100%;height:auto;max-height:420px;object-fit:contain;
  background:#f3f5f7;border-radius:16px;
}

/* Gallery */
.gallery-grid{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(180px,1fr));
  gap:14px;
  margin-top:14px;
}
.gallery-item{
  background:#f3f5f7;border-radius:12px;overflow:hidden;
  display:flex;align-items:center;justify-content:center;
}
.gallery-item img{
  width:100%;height:160px;object-fit:contain;background:#f3f5f7;display:block;
}

/* Enquiry form card – slightly darker than left card */
.enquiry-card,
.enquiry-form,
.card.enquiry {
    background-color: #f1f1f1;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}

/* buy.php – keep filters available while browsing results */
#filters {
  position: sticky;
  top: 14px;
  z-index: 5;
  background: #ffffff;
  border-radius: 14px;
  box-shadow: 0 10px 24px rgba(0,0,0,0.10);
  padding: 14px;
}
#filters .row2 { margin-top: 10px; }

@media (max-width: 820px) {
  #filters {
    position: static;
    box-shadow: none;
    padding: 0;
    background: transparent;
  }
}

/* hire.php – keep Quick enquiry available while browsing */
#quick-enquiry .card.pad {
  position: sticky;
  top: 14px;
  z-index: 5;
}

@media (max-width: 820px) {
  #quick-enquiry .card.pad {
    position: static;
    top: auto;
  }
}
/* ===============================
   HEADER LOGO FINAL ALIGNMENT FIX
   =============================== */

/* Stop logo overlapping text */
.topbar-left{
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Keep logo inside flow (no collision) */
.topbar-logo-link{
  position: relative;      /* was absolute */
  left: auto;
  top: auto;
  transform: none;
  flex-shrink: 0;
}

/* Logo size – balanced */
img.topbar-logo{
  height: 52px;
  width: auto;
  max-width: 220px;
  display: block;
}

/* Remove forced text offset */
.topbar-text{
  padding-left: 0;
}

/* Mobile: keep everything tidy */
@media (max-width: 768px){
  img.topbar-logo{
    height: 40px;
    max-width: 180px;
  }
}
.hero-grid > .card:first-child{
  background: linear-gradient(180deg, #ffffff 0%, #f4f6f8 100%);
}

.hero-grid > .card:last-child{
  background: linear-gradient(180deg, #fbfdff 0%, #edf3f9 100%);
}
/* =========================================
   TOPBAR ALIGNMENT — FINAL STABLE LAYOUT
   Fixes misalignment on desktop + mobile
   ========================================= */

.topbar .row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  flex-wrap:nowrap;        /* desktop stays on one line */
}

/* Left side: logo + text */
.topbar-left{
  position:static !important;
  display:flex !important;
  align-items:center !important;
  gap:12px !important;
  flex:1 1 auto !important;
  min-width:0 !important;
}

/* Logo stays inside flow (no overlap, no shifting) */
.topbar-logo-link{
  position:static !important;
  left:auto !important;
  top:auto !important;
  transform:none !important;
  display:inline-flex !important;
  align-items:center !important;
  flex:0 0 auto !important;
}

img.topbar-logo{
  display:block !important;
  height:52px !important;
  width:auto !important;
  max-width:220px !important;
  object-fit:contain !important;
}

/* Text block */
.topbar-text{
  padding-left:0 !important;
  min-width:0 !important;
  line-height:1.2 !important;
}

/* Right side: contacts/quick enquiry */
.topbar .row > div:last-child{
  display:flex !important;
  gap:10px !important;
  flex-wrap:nowrap !important;
  align-items:center !important;
  justify-content:flex-end !important;
  flex:0 0 auto !important;
  white-space:nowrap;       /* stops breaking on desktop */
}

/* Mobile: allow wrap and tidy stacking */
@media (max-width: 820px){
  .topbar .row{flex-wrap:wrap !important;}
  .topbar .row > div:last-child{
    flex-wrap:wrap !important;
    width:100% !important;
    justify-content:flex-start !important;
    white-space:normal !important;
  }
  img.topbar-logo{height:40px !important; max-width:180px !important;}
}
/* =========================================
   MOBILE NAV COMPACT MODE
   Keeps menu on ONE LINE
   ========================================= */

@media (max-width: 820px){

  /* Keep nav in one row */
  nav{
    flex-wrap: nowrap;           /* stop wrapping */
    gap: 6px;                    /* tighter spacing */
    overflow-x: auto;            /* safety: scroll if ever needed */
    -webkit-overflow-scrolling: touch;
  }

  /* Make buttons slimmer */
  nav a{
    padding: 6px 8px;            /* was 9px 11px */
    font-size: 13px;             /* slightly smaller */
    border-radius: 10px;
    white-space: nowrap;         /* prevent word breaking */
  }
}
/* =========================================
   NAV ALIGNMENT: desktop right / mobile left
   ========================================= */

/* Desktop & large screens */
@media (min-width: 821px){
  .brandbar nav{
    justify-content: flex-end;   /* push menu to the right */
  }
}

/* Mobile & tablets */
@media (max-width: 820px){
  .brandbar nav{
    justify-content: flex-start; /* keep menu on the left */
  }
}
/* =========================================
   NAV ALIGNMENT (FORCED):
   Desktop = right
   Mobile  = left
   ========================================= */

/* Mobile & tablets */
@media (max-width: 820px){
  .brandbar .row nav{
    justify-content: flex-start !important;
  }
}

/* Desktop */
@media (min-width: 821px){
  .brandbar .row nav{
    justify-content: flex-end !important;
  }
}
@media (max-width: 820px){
  .brandbar .row{
    justify-content: flex-start !important;
  }
  .brandbar .row nav{
    margin-left: 0 !important;
  }
}


/* --- Form polish (added 24-01-2026) --- */

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
input[type="date"],
input[type="time"],
input[type="password"],
input[type="url"],
input[type="search"],
select{
  width:100%;
  padding:11px 12px;
  border-radius:14px;
  border:1px solid var(--border);
  background:#fff;
  font:inherit;
}

label{display:block;font-weight:800;margin:0 0 6px}
.field{display:flex;flex-direction:column;gap:6px}
.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}
@media (max-width:720px){.form-grid{grid-template-columns:1fr}}
.form-actions{display:flex;gap:10px;flex-wrap:wrap;align-items:center;margin-top:14px}

.alert-error{
  border:1px solid rgba(200,0,0,.25);
  background:rgba(200,0,0,.06);
  border-radius:14px;
  padding:10px 12px;
  margin:12px 0;
}
.alert-success{
  border:1px solid rgba(0,140,0,.25);
  background:rgba(0,140,0,.06);
  border-radius:14px;
  padding:10px 12px;
  margin:12px 0;
}
.error-text{color:#b00020;font-weight:700;font-size:13px}

