/* Integral Automation, Inc. — static site styles */

:root {
  /* Brand palette */
  --navy-header: #21273c;
  --navy-footer: #02133e;
  --blue-light: #a4c2f4;
  --indigo-heading: #1f2260;
  --indigo-link: #2e3192;

  /* Neutrals */
  --ink: #1a1a1a;
  --muted: #55586b;
  --bg: #ffffff;

  --maxw: 1000px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Helvetica Neue", Arial, "Liberation Sans", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1 0 auto; /* fill remaining height so the footer sits at the bottom */
}

a {
  color: var(--indigo-link);
}

img {
  max-width: 100%;
  height: auto;
}

/* ---------- Header / nav ---------- */
.site-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: var(--navy-header);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 10;
}

.header-inner {
  padding: 14px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-toggle {
  display: none; /* shown only on mobile */
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: #fff;
  cursor: pointer;
  transition: background 0.15s;
}

/* Highlighted only while the menu is open */
.nav-toggle[aria-expanded="true"] {
  background: rgba(255, 255, 255, 0.12);
}

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

.brand-name {
  font-weight: 700;
  color: #fff;
  font-size: 1.05rem;
  white-space: nowrap;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.call-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--blue-light);
  color: var(--navy-footer);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 9px 16px;
  border-radius: 999px;
  white-space: nowrap;
  transition: background 0.15s;
}

.nav {
  display: flex;
  gap: 8px;
}

.nav a {
  text-decoration: none;
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 8px 14px;
  border-radius: 6px;
  transition: background 0.15s, color 0.15s;
}

.nav a.active {
  color: var(--blue-light);
}

/* ---------- Hero ---------- */
.hero {
  background:
    linear-gradient(rgba(2, 19, 62, 0.68), rgba(2, 19, 62, 0.68)),
    url("../assets/FANUC_R2000iB_AtWork.jpg") center / cover no-repeat;
  color: #fff;
}

.hero-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 88px 24px;
}

.hero h1 {
  margin: 0;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  line-height: 1.15;
  font-weight: 700;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}

/* ---------- Content sections ---------- */
.section {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 64px 24px;
}

.section.narrow {
  max-width: 760px;
}

.body-logo {
  display: block;
  width: 220px;
  margin-bottom: 32px;
}

.section h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--indigo-heading);
  margin-top: 0;
}

.lead {
  font-size: 1.2rem;
  color: var(--muted);
}

/* ---------- Contact ---------- */
.contact-details {
  margin-top: 24px;
  font-size: 1.1rem;
}

.contact-details p {
  margin: 0 0 16px;
}

.contact-details a {
  text-decoration: none;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-footer);
  color: var(--blue-light);
  font-size: 0.9rem;
}

.footer-inner {
  padding: 28px 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  align-items: center;
  justify-content: space-between;
}

.footer-inner a {
  color: var(--blue-light);
  text-decoration: none;
}

/* ---------- Hover & touch feedback ---------- */
/* Hover styles only on devices with a real pointer, so taps
   don't leave buttons stuck in the highlighted state */
@media (hover: hover) {
  .nav a:hover {
    background: rgba(255, 255, 255, 0.12);
  }

  .call-btn:hover {
    background: #fff;
  }

  .contact-details a:hover {
    text-decoration: underline;
  }

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

/* Momentary press feedback (touch and mouse) */
.nav a:active {
  background: rgba(255, 255, 255, 0.2);
}

.call-btn:active {
  background: #fff;
}

.contact-details a:active {
  text-decoration: underline;
}

.footer-inner a:active {
  color: #fff;
}

/* ---------- Large screens ---------- */
/* Stop header/footer content short of the screen edges */
@media (min-width: 1600px) {
  .header-inner,
  .footer-inner {
    max-width: 1600px;
    margin: 0 auto;
  }
}

/* ---------- Mobile ---------- */
/* Nav buttons collapse into the hamburger dropdown */
@media (max-width: 750px) {
  .header-inner {
    padding: 12px 20px;
  }

  .nav-toggle {
    display: inline-flex;
  }

  /* Collapse the nav into a dropdown panel under the header */
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 4px;
    background: var(--navy-header);
    padding: 8px 16px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.25);
  }

  .nav.open {
    display: flex;
  }

  .nav a {
    padding: 12px 14px;
  }

  .hero-inner {
    padding: 64px 24px;
  }

  .section {
    padding: 48px 24px;
  }
}

/* Hide the company name when space is tight */
@media (max-width: 480px) {
  .brand-name {
    display: none;
  }
}
