/* ============================================================
   APLO AUTOMATION — STYLESHEET
   Colors: #0A0A0A (black), #ED1C24 (red), #FFFFFF (white)
   Font: Arial
   ============================================================ */

:root {
  --black: #0A0A0A;
  --red: #ED1C24;
  --red-dark: #c41219;
  --white: #FFFFFF;
  --gray-light: #F5F5F5;
  --gray-border: #E0E0E0;
  --gray-text: #6E6E6E;
  --body-text: #2A2A2A;
  --nav-height: 72px;
  --max-width: 1180px;
  --font: Arial, Helvetica, sans-serif;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  font-size: 16px;
  color: var(--black);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 200;
  background: var(--white);
  border-bottom: 1px solid var(--gray-border);
  height: var(--nav-height);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  text-decoration: none;
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.nav-logo-img {
  height: 38px;
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  font-size: 14px;
  color: var(--black);
  letter-spacing: 0.02em;
  transition: color 0.15s;
}

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

.nav-cta {
  background: var(--red) !important;
  color: var(--white) !important;
  padding: 10px 22px;
  font-size: 13px !important;
  font-weight: bold;
  letter-spacing: 0.05em;
  transition: background 0.15s !important;
}

.nav-cta:hover { background: var(--red-dark) !important; }

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}

.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--black);
  transition: all 0.25s;
}

/* Mobile menu */
.mobile-menu {
  display: none;
  position: fixed;
  top: var(--nav-height);
  left: 0; right: 0;
  background: var(--white);
  border-bottom: 1px solid var(--gray-border);
  padding: 16px 24px 24px;
  z-index: 199;
  flex-direction: column;
}

.mobile-menu.open { display: flex; }

.mobile-menu a {
  text-decoration: none;
  color: var(--black);
  font-size: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--gray-border);
  display: block;
}

.mobile-menu a:last-child { border-bottom: none; color: var(--red); font-weight: bold; }

/* ============================================================
   HERO (home)
   ============================================================ */
.hero {
  background: var(--black);
  padding: 120px 24px 100px;
  text-align: center;
}

.hero-inner { max-width: 780px; margin: 0 auto; }

.hero h1 {
  font-size: clamp(32px, 5vw, 58px);
  font-weight: bold;
  color: var(--white);
  line-height: 1.12;
  margin-bottom: 28px;
  letter-spacing: -0.01em;
}

.hero p {
  font-size: 18px;
  line-height: 1.75;
  color: rgba(255,255,255,0.68);
  margin-bottom: 44px;
  max-width: 580px;
  margin-left: auto;
  margin-right: auto;
}

/* PAGE HERO (interior) */
.page-hero {
  background: var(--black);
  padding: 72px 24px 64px;
  border-bottom: 3px solid var(--red);
}

.page-hero-inner { max-width: var(--max-width); margin: 0 auto; }

.page-hero h1 {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: bold;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 16px;
}

.page-hero p {
  font-size: 17px;
  line-height: 1.75;
  color: rgba(255,255,255,0.65);
  max-width: 660px;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-block;
  padding: 14px 30px;
  font-family: var(--font);
  font-size: 14px;
  font-weight: bold;
  text-decoration: none;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  border: none;
  transition: background 0.15s, color 0.15s;
}

.btn-red { background: var(--red); color: var(--white); }
.btn-red:hover { background: var(--red-dark); color: var(--white); }

.btn-white-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.5);
}
.btn-white-outline:hover { border-color: var(--white); }

/* ============================================================
   SECTIONS
   ============================================================ */
.section { padding: 80px 24px; }
.section-inner { max-width: var(--max-width); margin: 0 auto; }
.section-alt { background: var(--gray-light); }

.section-eyebrow {
  font-size: 11px;
  font-weight: bold;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 14px;
}

.section-headline {
  font-size: clamp(22px, 3vw, 34px);
  font-weight: bold;
  color: var(--black);
  line-height: 1.2;
  margin-bottom: 20px;
}

.section-intro {
  font-size: 17px;
  line-height: 1.75;
  color: var(--body-text);
  max-width: 680px;
  margin-bottom: 52px;
}

.red-rule { width: 36px; height: 3px; background: var(--red); margin-bottom: 28px; }

/* ============================================================
   HOME — INDUSTRIES STRIP
   ============================================================ */
.industries-strip { padding: 0; }

.industries-strip-header {
  padding: 56px 24px 40px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.industries-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--gray-border);
  border-left: 1px solid var(--gray-border);
}

.industry-tile {
  text-decoration: none;
  display: flex;
  flex-direction: column;
  padding: 40px 32px;
  border-right: 1px solid var(--gray-border);
  border-bottom: 1px solid var(--gray-border);
  background: var(--white);
  transition: background 0.15s;
  min-height: 160px;
  position: relative;
}

.industry-tile:hover { background: var(--gray-light); }
.industry-tile:hover .tile-arrow { color: var(--red); }

.tile-name {
  font-size: 17px;
  font-weight: bold;
  color: var(--black);
  margin-bottom: 16px;
}

.tile-arrow {
  font-size: 20px;
  color: var(--gray-border);
  margin-top: auto;
  transition: color 0.15s;
}

/* ============================================================
   HOME — SERVICES GRID
   ============================================================ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid var(--gray-border);
  border-left: 1px solid var(--gray-border);
}

.service-card {
  padding: 48px 44px;
  border-right: 1px solid var(--gray-border);
  border-bottom: 1px solid var(--gray-border);
  text-decoration: none;
  background: var(--white);
  transition: background 0.15s;
  display: flex;
  flex-direction: column;
}

.service-card:hover { background: var(--gray-light); }
.service-card:hover .service-link { color: var(--red-dark); }

.service-card h3 {
  font-size: 18px;
  font-weight: bold;
  color: var(--black);
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--red);
  display: inline-block;
  align-self: flex-start;
}

.service-card p {
  font-size: 15px;
  line-height: 1.75;
  color: #444;
  margin-bottom: 28px;
  flex: 1;
}

.service-link {
  font-size: 13px;
  font-weight: bold;
  color: var(--red);
  text-decoration: none;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: color 0.15s;
}

/* ============================================================
   CLOSING CTA
   ============================================================ */
.cta-band {
  background: var(--black);
  padding: 80px 24px;
  text-align: center;
}

.cta-band-inner { max-width: 600px; margin: 0 auto; }

.cta-band h2 {
  font-size: clamp(22px, 3vw, 36px);
  font-weight: bold;
  color: var(--white);
  margin-bottom: 16px;
}

.cta-band p {
  font-size: 17px;
  color: rgba(255,255,255,0.65);
  line-height: 1.75;
  margin-bottom: 36px;
}

.cta-band .supporting {
  font-size: 13px;
  color: rgba(255,255,255,0.4);
  margin-top: 16px;
  display: block;
  letter-spacing: 0.03em;
}

/* ============================================================
   SERVICES PAGE
   ============================================================ */
.service-detail {
  padding: 72px 24px;
  border-bottom: 1px solid var(--gray-border);
}

.service-detail-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 72px;
  align-items: start;
}

.service-detail-left h2 {
  font-size: 26px;
  font-weight: bold;
  color: var(--black);
  margin-bottom: 8px;
  line-height: 1.2;
}

.service-detail-left .subhead {
  font-size: 14px;
  color: var(--gray-text);
  font-style: italic;
  line-height: 1.5;
}

.service-detail-right h3 {
  font-size: 11px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--red);
  margin-top: 36px;
  margin-bottom: 12px;
}

.service-detail-right h3:first-child { margin-top: 0; }

.service-detail-right p {
  font-size: 15px;
  line-height: 1.85;
  color: var(--body-text);
  margin-bottom: 16px;
}

/* ============================================================
   INDUSTRIES PAGE
   ============================================================ */
.industry-detail {
  padding: 72px 24px;
  border-bottom: 1px solid var(--gray-border);
}

.industry-detail:nth-child(even) { background: var(--gray-light); }

.industry-detail-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.industry-detail-inner > h2 {
  font-size: 30px;
  font-weight: bold;
  color: var(--black);
  margin-bottom: 6px;
}

.industry-detail-inner > .subhead {
  font-size: 15px;
  color: var(--gray-text);
  font-style: italic;
  margin-bottom: 48px;
}

.industry-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
}

.industry-cols h3 {
  font-size: 11px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--red);
  margin-bottom: 16px;
}

.industry-cols p {
  font-size: 15px;
  line-height: 1.85;
  color: var(--body-text);
  margin-bottom: 14px;
}

/* ============================================================
   ABOUT PAGE
   ============================================================ */
.about-body {
  padding: 80px 24px;
}

.about-body-inner {
  max-width: 740px;
  margin: 0 auto;
}

.about-body-inner p {
  font-size: 17px;
  line-height: 1.85;
  color: var(--body-text);
  margin-bottom: 24px;
}

.about-body-inner h2 {
  font-size: 22px;
  font-weight: bold;
  color: var(--black);
  margin-top: 56px;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--red);
  display: inline-block;
}

.pullquote {
  border-left: 4px solid var(--red);
  padding: 20px 28px;
  background: var(--gray-light);
  margin: 36px 0;
  font-size: 17px;
  line-height: 1.75;
  color: var(--body-text);
  font-style: italic;
}

/* ============================================================
   CONTACT PAGE
   ============================================================ */
.contact-section { padding: 72px 24px 96px; }

.contact-layout {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 80px;
  align-items: start;
}

.contact-form-head {
  font-size: 22px;
  font-weight: bold;
  color: var(--black);
  margin-bottom: 32px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--red);
  display: inline-block;
}

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

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

.form-group label {
  display: block;
  font-size: 12px;
  font-weight: bold;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--black);
  margin-bottom: 7px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--gray-border);
  font-family: var(--font);
  font-size: 15px;
  color: var(--black);
  background: var(--white);
  border-radius: 0;
  -webkit-appearance: none;
  appearance: none;
  outline: none;
  transition: border-color 0.15s;
}

.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%230A0A0A'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 38px;
  cursor: pointer;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--black); }

.form-group textarea { resize: vertical; min-height: 130px; }

.radio-group { display: flex; gap: 28px; margin-top: 4px; }

.radio-group label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: normal;
  text-transform: none;
  letter-spacing: 0;
  cursor: pointer;
}

.radio-group input[type="radio"] { width: auto; accent-color: var(--red); }

.required-note {
  font-size: 12px;
  color: var(--gray-text);
  margin-bottom: 24px;
}

.form-submit {
  width: 100%;
  padding: 15px;
  background: var(--red);
  color: var(--white);
  font-family: var(--font);
  font-size: 14px;
  font-weight: bold;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: background 0.15s;
  margin-top: 4px;
}

.form-submit:hover { background: var(--red-dark); }
.form-submit:disabled { background: #aaa; cursor: default; }

.form-success {
  display: none;
  border-left: 4px solid #2a9d45;
  background: #f0faf2;
  padding: 20px 24px;
  margin-top: 20px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--black);
}

.form-error {
  display: none;
  border-left: 4px solid var(--red);
  background: #fff5f5;
  padding: 20px 24px;
  margin-top: 20px;
  font-size: 15px;
  color: var(--black);
}

/* Sidebar */
.contact-sidebar h3 {
  font-size: 14px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--black);
  margin-bottom: 28px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--gray-border);
}

.sidebar-item { margin-bottom: 24px; }

.sidebar-label {
  font-size: 11px;
  font-weight: bold;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray-text);
  margin-bottom: 4px;
}

.sidebar-value { font-size: 15px; color: var(--black); line-height: 1.5; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--black);
  padding: 48px 24px;
  border-top: 3px solid var(--red);
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 48px;
  align-items: start;
}

.footer-brand-name {
  margin-bottom: 4px;
}

.footer-logo-img {
  height: 30px;
  width: auto;
  display: block;
}

.footer-tagline {
  font-size: 12px;
  color: rgba(255,255,255,0.4);
  letter-spacing: 0.05em;
  margin-bottom: 20px;
}

.footer-legal {
  font-size: 12px;
  color: rgba(255,255,255,0.28);
}

.footer-nav {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: right;
}

.footer-nav a {
  text-decoration: none;
  font-size: 13px;
  color: rgba(255,255,255,0.55);
  transition: color 0.15s;
}

.footer-nav a:hover { color: var(--white); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 960px) {
  .nav-links, .nav-cta { display: none; }
  .nav-hamburger { display: flex; }

  .services-grid { grid-template-columns: 1fr; }

  .service-detail-inner { grid-template-columns: 1fr; gap: 32px; }

  .industry-cols { grid-template-columns: 1fr; gap: 32px; }

  .contact-layout { grid-template-columns: 1fr; }

  .footer-inner { grid-template-columns: 1fr; }
  .footer-nav { text-align: left; flex-direction: row; flex-wrap: wrap; gap: 16px; }
}

@media (max-width: 640px) {
  .industries-grid { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .section { padding: 56px 20px; }
  .hero { padding: 80px 20px 72px; }
  .page-hero { padding: 56px 20px 48px; }
}
