/* MAB Trading — plain PHP/HTML/CSS/JS port (from the live WordPress/Elementor site) */

:root {
  --blue: #467ff7;
  --blue-dark: #2f63d6;
  --green: #218c56;
  --navy: #172a4e;
  --text-main: #1c2b46;
  --text-muted: #5b6b85;
  --border-subtle: #e3e8f0;
  --bg-soft: #f6f8fb;
  --radius-md: 10px;
  --radius-full: 999px;
  --shadow-card: 0 4px 18px rgba(23, 42, 78, 0.08);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Poppins', -apple-system, "system-ui", "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--text-main);
  background: #ffffff;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- Header / Hero ---------- */
.hero {
  position: relative;
  background: linear-gradient(180deg, rgba(9, 17, 33, 0.88) 0%, rgba(9, 17, 33, 0.82) 60%, rgba(9, 17, 33, 0.9) 100%),
              url('../images/hero-banner.jpeg') center / cover no-repeat;
  color: #ffffff;
  padding-bottom: 56px;
}

.hero-inner {
  display: flex;
  align-items: center;
  gap: 48px;
  padding-top: 48px;
}

.brand {
  display: flex;
  flex: 0 0 200px;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

.brand-logo { width: 126px; height: 71px; object-fit: contain; }

.brand-tagline {
  margin: 0;
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
}

.hero-content {
  flex: 1;
  text-align: center;
}

.hero-headline {
  margin: 0 auto 16px;
  max-width: 780px;
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 700;
  line-height: 1.3;
}

.hero-sub {
  margin: 0 auto 32px;
  max-width: 680px;
  font-size: clamp(15px, 2vw, 18px);
  line-height: 1.5;
  opacity: 0.9;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: var(--radius-full);
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}

.btn-primary {
  background: var(--blue);
  color: #ffffff;
}
.btn-primary:hover { background: var(--blue-dark); transform: translateY(-1px); }

.btn-secondary {
  background: var(--blue);
  color: #ffffff;
}
.btn-secondary:hover { background: var(--blue-dark); transform: translateY(-1px); }

.btn-submit { width: 100%; justify-content: center; }
.btn:disabled { opacity: 0.65; cursor: not-allowed; transform: none; }

/* ---------- Section basics ---------- */
.section-heading {
  text-align: center;
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 8px;
}

.section-subheading {
  text-align: center;
  font-size: 16px;
  color: var(--text-muted);
  margin: 0 0 40px;
}

/* ---------- Industries ---------- */
.industries { padding: 64px 0; }
.industries .section-heading { margin-bottom: 40px; }

.industries-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 36px 28px;
}

.industry-card { min-width: 0; }

.industry-figure {
  margin: 0 0 18px;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 338 / 316;
  box-shadow: var(--shadow-card);
}

.industry-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.industry-title {
  margin: 0 0 8px;
  font-size: 19px;
  font-weight: 700;
  color: var(--navy);
}

.industry-desc {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-muted);
}

/* ---------- Contact ---------- */
.contact {
  padding: 72px 0 88px;
  background: var(--bg-soft);
}

.contact-form {
  max-width: 640px;
  margin: 0 auto;
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 36px;
  box-shadow: var(--shadow-card);
}

.form-row--split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-field { margin-bottom: 20px; }

.form-field label,
.group-label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
}

.group-label { margin-bottom: 8px; }

.req { color: #e0393f; }

.form-field input,
.form-field textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid var(--border-subtle);
  font-family: inherit;
  font-size: 15px;
  color: var(--text-main);
  background: #ffffff;
}

.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(70, 127, 247, 0.15);
}

.form-field textarea { resize: vertical; min-height: 110px; }

.field-hint {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  color: var(--text-muted);
}

.field-error {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  color: #e0393f;
  min-height: 1em;
}

.form-field.has-error input,
.form-field.has-error textarea {
  border-color: #e0393f;
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.cf-turnstile { margin: 4px 0 20px; }

.form-status {
  display: none;
  margin-bottom: 20px;
  padding: 12px 14px;
  border-radius: 8px;
  font-size: 14px;
}

.form-status.is-visible { display: block; }
.form-status.is-success { background: rgba(33, 140, 86, 0.1); color: var(--green); }
.form-status.is-error { background: rgba(224, 57, 63, 0.1); color: #e0393f; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--green);
  color: rgba(255, 255, 255, 0.92);
  padding: 26px 0;
}

.footer-inner { text-align: center; }

.footer-info {
  list-style: none;
  margin: 0 0 12px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
  font-size: 14px;
}

.footer-info li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.footer-info a { color: inherit; text-decoration: none; }
.footer-info a:hover { text-decoration: underline; }

.footer-copy {
  margin: 0;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.75);
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .industries-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .hero-inner { flex-direction: column; gap: 24px; padding-top: 32px; }
  .brand { flex-basis: auto; align-items: center; }
  .hero { padding-bottom: 40px; }
  .hero-ctas { flex-direction: column; align-items: stretch; }
  .btn { justify-content: center; }
  .industries { padding: 48px 0; }
  .industries-grid { grid-template-columns: 1fr; gap: 28px; }
  .contact { padding: 48px 0 64px; }
  .contact-form { padding: 24px; }
  .form-row--split { grid-template-columns: 1fr; gap: 0; }
  .footer-info { flex-direction: column; gap: 10px; }
}

/* ---------- Quote page ---------- */
.hero--compact { padding-bottom: 40px; }
.quote-header { display: flex; align-items: center; gap: 48px; padding-top: 32px; }
.quote-header .brand-link { flex: 0 0 200px; }
.radio-inline { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.form-field .radio-inline label { display: inline-flex; align-items: center; gap: 8px; margin: 0; font-weight: 500; }
.form-field .radio-inline input { width: auto; }
.form-field select {
  width: 100%;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid var(--border-subtle);
  font-family: inherit;
  font-size: 15px;
  color: var(--text-main);
  background: #ffffff;
}
.form-field select:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(70, 127, 247, 0.15); }
.form-field.has-error select { border-color: #e0393f; }
[hidden] { display: none !important; }
.footer-copy a { color: inherit; }
@media (max-width: 720px) {
  .quote-header { flex-direction: column; gap: 16px; }
  .quote-header .brand-link { flex-basis: auto; }
}
