/* ==========================================================================
   Microwell — shared stylesheet
   Palette: deep industrial blue + safety orange accent (Servokon-style)
   ========================================================================== */

:root {
  --navy: #12325c;
  --navy-dark: #0b2140;
  --orange: #f5821f;
  --orange-dark: #d76c0f;
  --gray-bg: #f4f6f9;
  --gray-border: #dde3ea;
  --text-dark: #1c2733;
  --text-muted: #5b6b7c;
  --white: #ffffff;
  --radius: 6px;
  --max-width: 1160px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Segoe UI", Arial, Helvetica, sans-serif;
  color: var(--text-dark);
  background: var(--white);
  line-height: 1.6;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
ul { margin: 0; padding: 0; list-style: none; }

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Top bar ---------- */
.topbar {
  background: var(--navy-dark);
  color: #cfd9e6;
  font-size: 13px;
}
.topbar .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 8px;
  padding-bottom: 8px;
  flex-wrap: wrap;
  gap: 6px;
}
.topbar a { color: #cfd9e6; }
.topbar a:hover { color: var(--orange); }
.topbar .contact-bits span { margin-right: 18px; white-space: nowrap; }

/* ---------- Header / Nav ---------- */
header.site-header {
  background: var(--navy-dark);
  border-bottom: 2px solid #c9a24a;
  position: sticky;
  top: 0;
  z-index: 50;
}
.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
}
.logo {
  font-size: 26px;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: 0.5px;
}
.logo span { color: var(--orange); }
.logo small {
  display: block;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  text-transform: uppercase;
}
.logo-link { display: block; line-height: 0; }
.logo-img { height: 84px; width: auto; }
@media (max-width: 500px) {
  .logo-img { height: 62px; }
}
nav.main-nav ul {
  display: flex;
  gap: 30px;
}
nav.main-nav a {
  font-weight: 600;
  font-size: 14.5px;
  color: #e6edf5;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}
nav.main-nav a:hover,
nav.main-nav a.active {
  color: var(--orange);
  border-bottom-color: var(--orange);
}
.nav-cta {
  background: var(--orange);
  color: var(--white) !important;
  padding: 10px 20px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 14px;
}
.nav-cta:hover { background: var(--orange-dark); color: var(--white) !important; }

.menu-toggle {
  display: none;
  font-size: 26px;
  background: none;
  border: none;
  cursor: pointer;
  color: #ffffff;
}

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(120deg, var(--navy) 0%, var(--navy-dark) 100%);
  color: var(--white);
  padding: 70px 0;
}
.hero .wrap {
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}
.hero-text { flex: 1 1 420px; }
.hero-text .eyebrow {
  color: var(--orange);
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-size: 13px;
  margin-bottom: 10px;
  display: block;
}
.hero-text h1 {
  font-size: 40px;
  line-height: 1.25;
  margin: 0 0 18px;
}
.hero-text p {
  color: #cfd9e6;
  font-size: 16px;
  max-width: 520px;
  margin-bottom: 26px;
}
.btn-row { display: flex; gap: 14px; flex-wrap: wrap; }
.btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 14.5px;
  border: 2px solid transparent;
}
.btn-primary { background: var(--orange); color: var(--white); }
.btn-primary:hover { background: var(--orange-dark); }
.btn-outline { border-color: #ffffff66; color: var(--white); }
.btn-outline:hover { border-color: var(--white); background: #ffffff14; }

.hero-visual {
  flex: 1 1 320px;
  background: #ffffff10;
  border: 1px solid #ffffff22;
  border-radius: var(--radius);
  padding: 30px;
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #cfd9e6;
  font-size: 14px;
}

/* ---------- Stats strip ---------- */
.stats {
  background: var(--white);
  border-bottom: 1px solid var(--gray-border);
}
.stats .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  padding: 30px 24px;
}
.stat {
  flex: 1 1 200px;
  text-align: center;
}
.stat .num {
  font-size: 30px;
  font-weight: 800;
  color: var(--navy);
}
.stat .num span { color: var(--orange); }
.stat .label {
  font-size: 13.5px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ---------- Sections ---------- */
section { padding: 64px 0; }
section.alt { background: var(--gray-bg); }

.section-head { text-align: center; max-width: 640px; margin: 0 auto 44px; }
.section-head .eyebrow {
  color: var(--orange);
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-size: 13px;
}
.section-head h2 {
  font-size: 30px;
  color: var(--navy);
  margin: 10px 0 12px;
}
.section-head p { color: var(--text-muted); font-size: 15.5px; }

/* ---------- Product cards ---------- */
.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}
@media (max-width: 900px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
}

.card {
  background: var(--white);
  border: 1px solid var(--gray-border);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: box-shadow .2s, transform .2s;
}
.card:hover {
  box-shadow: 0 10px 24px rgba(18,50,92,0.10);
  transform: translateY(-3px);
}
.card .icon {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  background: var(--navy);
  color: var(--orange);
  font-weight: 800;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.card h3 { color: var(--navy); font-size: 18px; margin: 0 0 8px; }
.card p { color: var(--text-muted); font-size: 14.5px; margin: 0 0 12px; }
.card .tag-row { display: flex; flex-wrap: wrap; gap: 6px; }
.tag {
  background: var(--gray-bg);
  border: 1px solid var(--gray-border);
  color: var(--navy);
  font-size: 12.5px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
}
.card a.card-link {
  font-weight: 700;
  color: var(--orange);
  font-size: 13.5px;
}

/* ---------- Two column (story / about) ---------- */
.two-col {
  display: flex;
  gap: 46px;
  align-items: center;
  flex-wrap: wrap;
}
.two-col > div { flex: 1 1 380px; }
.two-col h2 { color: var(--navy); font-size: 28px; margin-top: 0; }
.two-col .eyebrow {
  color: var(--orange);
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-size: 13px;
}
.check-list li {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
  color: var(--text-dark);
  font-size: 15px;
}
.check-list li .bullet {
  color: var(--orange);
  font-weight: 900;
}
.placeholder-box {
  background: var(--gray-bg);
  border: 1px dashed #b9c4d1;
  border-radius: var(--radius);
  padding: 40px 20px;
  text-align: center;
  color: var(--text-muted);
  font-size: 14px;
}
.placeholder-box img,
.hero-visual img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius);
}
.hero-visual { padding: 0; overflow: hidden; min-height: 0; }

/* ---------- Servo motor photo gallery ---------- */
.photo-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 26px;
}
@media (max-width: 900px) {
  .photo-gallery { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .photo-gallery { grid-template-columns: 1fr; }
}
.photo-card {
  background: var(--white);
  border: 1px solid var(--gray-border);
  border-radius: var(--radius);
  overflow: hidden;
  text-align: center;
}
.photo-card img { width: 100%; height: 150px; object-fit: cover; display: block; }
.photo-card p {
  margin: 0;
  padding: 10px 8px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--navy);
}
.photo-card-pending {
  border-style: dashed;
  border-color: #b9c4d1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 150px;
}
.photo-card-pending p {
  color: var(--text-muted);
  font-weight: 400;
  font-style: italic;
}

/* ---------- Table (specs) ---------- */
table.specs {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border: 1px solid var(--gray-border);
  border-radius: var(--radius);
  overflow: hidden;
}
table.specs th, table.specs td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--gray-border);
  text-align: left;
  font-size: 14.5px;
}
table.specs th {
  background: var(--navy);
  color: var(--white);
  font-weight: 700;
}
table.specs tr:last-child td { border-bottom: none; }
table.specs tr:nth-child(even) td { background: var(--gray-bg); }

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--orange);
  color: var(--white);
  text-align: center;
  padding: 46px 0;
}
.cta-band h2 { margin: 0 0 10px; font-size: 26px; }
.cta-band p { margin: 0 0 22px; color: #fff2e5; }
.cta-band .btn-outline { border-color: #ffffff88; color: var(--white); }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 36px;
}
@media (max-width: 850px) {
  .contact-grid { grid-template-columns: 1fr; }
}
.contact-info .item {
  display: flex;
  gap: 14px;
  margin-bottom: 22px;
}
.contact-info .item .ic {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: var(--navy);
  color: var(--orange);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  flex-shrink: 0;
}
.contact-info .item h4 { margin: 0 0 4px; color: var(--navy); font-size: 15px; }
.contact-info .item p { margin: 0; color: var(--text-muted); font-size: 14.5px; }

form.enquiry {
  background: var(--white);
  border: 1px solid var(--gray-border);
  border-radius: var(--radius);
  padding: 26px;
}
form.enquiry .row { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
form.enquiry .field { flex: 1 1 200px; display: flex; flex-direction: column; gap: 6px; }
form.enquiry label { font-size: 13.5px; font-weight: 700; color: var(--navy); }
form.enquiry input, form.enquiry select, form.enquiry textarea {
  padding: 11px 12px;
  border: 1px solid var(--gray-border);
  border-radius: var(--radius);
  font-size: 14.5px;
  font-family: inherit;
}
form.enquiry textarea { resize: vertical; min-height: 110px; }
form.enquiry .note {
  font-size: 12.5px;
  color: var(--text-muted);
  margin-top: 4px;
}

.map-box {
  border: 1px solid var(--gray-border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: 26px;
}
.map-box iframe { width: 100%; height: 280px; border: 0; display: block; }

/* ---------- Footer ---------- */
footer.site-footer {
  background: var(--navy-dark);
  color: #b7c3d1;
  padding: 54px 0 24px;
  margin-top: 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 30px;
  margin-bottom: 34px;
}
@media (max-width: 850px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 500px) {
  .footer-grid { grid-template-columns: 1fr; }
}
.footer-grid h4 {
  color: var(--white);
  font-size: 15px;
  margin: 0 0 16px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.footer-grid p, .footer-grid a { font-size: 14px; color: #b7c3d1; }
.footer-grid li { margin-bottom: 10px; }
.footer-grid a:hover { color: var(--orange); }
.footer-logo { font-size: 22px; font-weight: 800; color: var(--white); margin-bottom: 14px; }
.footer-logo span { color: var(--orange); }
.footer-logo-box {
  display: inline-block;
  background: transparent;
  padding: 0;
  border-radius: 8px;
  margin-bottom: 14px;
  line-height: 0;
}
.footer-logo-box img { height: 72px; width: auto; }
.footer-bottom {
  border-top: 1px solid #ffffff1a;
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 13px;
  color: #8fa0b3;
}

@media (max-width: 850px) {
  nav.main-nav { display: none; }
  .menu-toggle { display: block; }
  .nav-row { flex-wrap: wrap; }
}

/* ---------- WhatsApp floating button ---------- */
.whatsapp-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 58px;
  height: 58px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(0,0,0,0.25);
  z-index: 100;
  transition: transform .15s;
}
.whatsapp-float:hover { transform: scale(1.06); }
.whatsapp-float svg { width: 30px; height: 30px; }
