/* =========================================================
   Supreme Automation Ltd — site styles
   Brand: red #D6202A, slate grey #58595B
   ========================================================= */

:root {
  --brand-red: #d6202a;
  --brand-red-dark: #b0161f;
  --brand-grey: #58595b;
  --ink: #1d2228;
  --ink-soft: #4b5158;
  --surface: #ffffff;
  --surface-alt: #f4f6f8;
  --line: #e3e7ea;
  --dark: #171b21;
  --dark-soft: #232932;
  --radius: 12px;
  --shadow: 0 10px 30px rgba(23, 27, 33, 0.08);
  --shadow-hover: 0 16px 40px rgba(23, 27, 33, 0.14);
  --font: "Inter", -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
}

.container {
  width: min(1140px, 100% - 3rem);
  margin-inline: auto;
}

/* ---------- Header / navigation ---------- */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
}

.brand-logo {
  height: 56px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  display: inline-block;
  padding: 0.5rem 0.9rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.98rem;
  color: var(--ink-soft);
  text-decoration: none;
  transition: color 0.15s ease, background-color 0.15s ease;
}

.nav-links a:hover {
  color: var(--brand-red);
}

.nav-links a.active {
  color: var(--brand-red);
}

.nav-links a.nav-cta {
  background: var(--brand-red);
  color: #fff;
  margin-left: 0.4rem;
}

.nav-links a.nav-cta:hover {
  background: var(--brand-red-dark);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  padding: 0.8rem 1.7rem;
  border: 2px solid transparent;
  border-radius: 999px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--brand-red);
  color: #fff;
}

.btn-primary:hover {
  background: var(--brand-red-dark);
}

.btn-primary:disabled {
  opacity: 0.6;
  cursor: default;
}

.btn-outline {
  border-color: rgba(255, 255, 255, 0.55);
  color: #fff;
}

.btn-outline:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.btn-sm {
  padding: 0.45rem 1.1rem;
  font-size: 0.9rem;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(145deg, var(--dark) 0%, var(--dark-soft) 55%, #2b323d 100%);
  color: #fff;
  padding: 11rem 0 6rem;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-circuit {
  position: absolute;
  right: -8%;
  top: 0;
  height: 100%;
  width: 60%;
  color: rgba(255, 255, 255, 0.07);
}

.hero-inner {
  position: relative;
  max-width: 720px;
  margin-inline: auto;
}

.hero-eyebrow {
  margin: 0 0 1rem;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #f0888d;
}

.hero h1 {
  margin: 0 0 1.2rem;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.02em;
}

.hero .accent {
  color: var(--brand-red);
}

.hero-lead {
  margin: 0 0 2.2rem;
  max-width: 56ch;
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.82);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-bottom: 3rem;
}

.hero-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2.2rem;
  margin: 0;
  padding: 1.4rem 0 0;
  list-style: none;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.hero-highlights li {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
}

.hero-highlights svg {
  width: 22px;
  height: 22px;
  color: var(--brand-red);
  flex-shrink: 0;
}

/* ---------- Sections ---------- */

.section {
  padding: 5.5rem 0;
  scroll-margin-top: 76px;
}

.section-alt {
  background: var(--surface-alt);
}

.section-eyebrow {
  margin: 0 0 0.4rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand-red);
}

.section-title {
  margin: 0 0 1rem;
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.section-lead {
  margin: 0 0 2.8rem;
  max-width: 60ch;
  font-size: 1.08rem;
  color: var(--ink-soft);
}

/* ---------- Service cards ---------- */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.4rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.8rem 1.6rem;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(214, 32, 42, 0.35);
}

.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  margin-bottom: 1.1rem;
  border-radius: 12px;
  background: rgba(214, 32, 42, 0.09);
  color: var(--brand-red);
}

.card-icon svg {
  width: 28px;
  height: 28px;
}

.card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.12rem;
  font-weight: 700;
}

.card p {
  margin: 0;
  font-size: 0.96rem;
  color: var(--ink-soft);
}

/* Reveal-on-scroll */

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ---------- About ---------- */

.about-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 3rem;
  align-items: start;
}

.about-grid p {
  color: var(--ink-soft);
  max-width: 62ch;
}

.sectors {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.8rem;
  box-shadow: var(--shadow);
}

.sectors h3 {
  margin: 0 0 1.1rem;
  font-size: 1.05rem;
  font-weight: 700;
}

.sector-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.9rem;
}

.sector-list li {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-weight: 500;
}

.sector-list svg {
  width: 26px;
  height: 26px;
  color: var(--brand-red);
  flex-shrink: 0;
}

/* ---------- Contact form ---------- */

.contact-form {
  max-width: 720px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}

.form-field {
  margin-bottom: 1.2rem;
}

.form-field label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink);
}

.form-field input,
.form-field textarea {
  width: 100%;
  padding: 0.75rem 0.95rem;
  font-family: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid #cfd5da;
  border-radius: 8px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-field textarea {
  resize: vertical;
}

.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--brand-red);
  box-shadow: 0 0 0 3px rgba(214, 32, 42, 0.15);
}

.form-status {
  margin: 1rem 0 0;
  font-weight: 600;
  min-height: 1.5em;
}

.form-status.success {
  color: #1a7f37;
}

.form-status.error {
  color: var(--brand-red);
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--dark);
  color: rgba(255, 255, 255, 0.78);
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2.5rem;
  padding: 3.5rem 0 2.5rem;
}

.footer-logo {
  height: 64px;
  width: auto;
  background: #fff;
  border-radius: 8px;
  padding: 6px 10px;
}

.footer-brand p {
  margin: 1rem 0 0;
  max-width: 34ch;
  font-size: 0.95rem;
}

.site-footer h4 {
  margin: 0 0 0.9rem;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
}

.footer-links ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.5rem;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
  transition: color 0.15s ease;
}

.site-footer a:hover {
  color: #fff;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
}

.social-link svg {
  width: 22px;
  height: 22px;
}

.footer-bottom {
  padding: 1.2rem 0;
  text-align: center;
  font-size: 0.88rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.55);
}

/* ---------- Cookie banner ---------- */

#cb-cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 999;
  display: none;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.8rem 1.4rem;
  padding: 0.9rem 1.5rem;
  background: var(--dark-soft);
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.95rem;
  box-shadow: 0 -6px 20px rgba(0, 0, 0, 0.25);
}

/* ---------- Responsive ---------- */

@media (max-width: 860px) {
  .about-grid {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 720px) {
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0.2rem;
    padding: 0.8rem 1.2rem 1.2rem;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    display: block;
    padding: 0.7rem 0.9rem;
  }

  .nav-links a.nav-cta {
    margin-left: 0;
    text-align: center;
  }

  .hero {
    padding: 9rem 0 4.5rem;
  }

  .section {
    padding: 4rem 0;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
}
