/* Pacific Precision Mfg — public website. Hand-written (no WordPress/theme code). */
:root {
  --accent: #2ea3f2;
  --text: #666;
  --heading: #333;
  --footer-bg: #222;
  --footer-bottom-bg: #171717;
  --field-bg: #eee;
  --container: 1080px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: 'PT Sans', 'Open Sans', Arial, sans-serif;
  font-size: 14px;
  line-height: 1.7em;
  font-weight: 500;
  color: var(--text);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: none; }
p { margin: 0; padding-bottom: 1em; }
p:last-child { padding-bottom: 0; }
h1, h2, h3, h4 { color: var(--heading); font-weight: 500; line-height: 1em; margin: 0; padding-bottom: 10px; }
h1 { font-size: 30px; }
h2 { font-size: 26px; }
h3 { font-size: 22px; }
img { max-width: 100%; height: auto; }

.container { width: 80%; max-width: var(--container); margin: 0 auto; position: relative; }

/* ---------- Header (centered logo + menu) ---------- */
.site-header {
  background: #fff;
  box-shadow: 0 1px 0 rgba(0, 0, 0, .1);
  text-align: center;
  padding-top: 33px;
}
.site-header .logo { display: inline-block; }
.site-header .logo img { box-sizing: content-box; height: 110px; width: auto; padding-bottom: 18px; display: block; }
.main-nav ul { list-style: none; margin: 0; padding: 0; }
.main-nav li { display: inline-block; padding: 0 11px; font-size: 14px; }
.main-nav a { color: var(--text); display: block; padding-bottom: 18px; }
.main-nav a:hover { color: var(--heading); }
.main-nav a.current { color: var(--accent); }
.menu-toggle { display: none; }

/* ---------- Main content ---------- */
.main { padding: 58px 0 30px; }
.main.home { padding-top: 40px; }

/* Home slideshow */
.slideshow { position: relative; max-width: 550px; margin: 0 auto 60px; }
.slideshow .slides { position: relative; aspect-ratio: 550 / 450; overflow: hidden; background: #000; }
.slideshow .slides img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity .6s ease;
}
.slideshow .slides img.active { opacity: 1; }
.slideshow .arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 34px; height: 34px; border: 0; border-radius: 50%;
  background: rgba(0, 0, 0, .55); color: #fff; font-size: 20px; line-height: 34px;
  cursor: pointer; opacity: 0; transition: opacity .2s;
}
.slideshow:hover .arrow, .slideshow .arrow:focus-visible { opacity: 1; }
.slideshow .prev { left: 10px; }
.slideshow .next { right: 10px; }
.slideshow .dots { text-align: center; padding-top: 14px; }
.slideshow .dots button {
  width: 11px; height: 11px; margin: 0 4px; padding: 0; border: 0; border-radius: 50%;
  background: rgba(0, 0, 0, .25); cursor: pointer;
}
.slideshow .dots button.active { background: rgba(0, 0, 0, .7); }

/* Contact page */
.contact-info { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5.5%; margin-bottom: 60px; }
.contact-info strong { color: var(--text); font-weight: 700; }
.contact-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 3%; margin-bottom: 20px; }
.contact-form input[type=text], .contact-form input[type=email], .contact-form textarea {
  width: 100%; border: 0; background: var(--field-bg); color: #999;
  font: inherit; font-size: 14px; padding: 16px;
}
.contact-form input:focus, .contact-form textarea:focus { color: var(--text); outline: none; }
.contact-form textarea { height: 150px; resize: vertical; display: block; }
.contact-form .actions { display: flex; justify-content: flex-end; align-items: center; gap: 15px; margin-top: 16px; }
.contact-form .captcha { display: flex; align-items: center; gap: 4px; }
.contact-form .captcha input { width: 45px; height: 50px; padding: 0 8px; text-align: center; }
.contact-form .submit {
  font: inherit; font-size: 20px; color: var(--accent); background: transparent;
  border: 2px solid var(--accent); border-radius: 3px; padding: 6px 20px; line-height: 1.7em;
  cursor: pointer; transition: background .2s;
}
.contact-form .submit:hover { background: rgba(0, 0, 0, .05); }
.form-message { margin-bottom: 20px; color: var(--heading); }
.form-message.error { color: #c00; }

/* Text pages (privacy policy) */
.page-with-sidebar { display: grid; grid-template-columns: 1fr 250px; }
.page-with-sidebar .content { padding-right: 5.5%; border-right: 1px solid #e2e2e2; }
.page-title { padding-bottom: 20px; }
.entry h2 { margin-top: 18px; }
.entry h3 { font-size: 18px; margin-top: 14px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--footer-bg); color: #fff; }
.footer-widgets { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5.5%; padding: 80px 0 50px; }
.footer-widgets h4 { color: var(--accent); font-size: 18px; padding-bottom: 12px; }
.footer-widgets ul { list-style: none; margin: 0; padding: 0; }
.footer-widgets li { position: relative; padding-left: 14px; padding-bottom: 1em; }
.footer-widgets li::before {
  content: ''; position: absolute; left: 0; top: 9px;
  width: 6px; height: 6px; border-radius: 50%; background: var(--accent);
}
.footer-widgets a { color: #fff; }
.footer-widgets a:hover { color: var(--accent); }
.footer-bottom { background: var(--footer-bottom-bg); padding: 15px 0 5px; }
.footer-bottom p { color: #666; padding-bottom: 10px; }

/* Floating social icons (bottom-right) */
.social-float { position: fixed; right: 30px; bottom: 12px; display: flex; gap: 5px; z-index: 50; }
.social-float a {
  width: 40px; height: 40px; border-radius: 6px; display: grid; place-items: center;
  background: linear-gradient(#5a5a5a, #2b2b2b); border: 2px solid #ddd;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .35);
}
.social-float a:hover { background: linear-gradient(#6a6a6a, #3b3b3b); }
.social-float svg { width: 22px; height: 22px; fill: #fff; }

/* ---------- Phones / tablets ---------- */
@media (max-width: 980px) {
  .container { width: 90%; }
  .site-header { padding-top: 20px; }
  .site-header .logo img { height: 70px; padding-bottom: 10px; }
  .menu-toggle {
    display: flex; justify-content: space-between; align-items: center;
    width: 100%; margin: 0 0 18px; padding: 10px 14px; font: inherit; color: var(--text);
    background: rgba(0, 0, 0, .03); border: 0; border-radius: 3px; cursor: pointer;
  }
  .menu-toggle .bars { font-size: 22px; color: var(--accent); line-height: 1; }
  .main-nav ul {
    display: none; text-align: left; border-top: 3px solid var(--accent);
    box-shadow: 0 2px 5px rgba(0, 0, 0, .1); margin-bottom: 18px;
  }
  .main-nav.open ul { display: block; }
  .main-nav li { display: block; padding: 0; }
  .main-nav a { padding: 10px 5%; border-bottom: 1px solid rgba(0, 0, 0, .03); }
  .contact-info, .footer-widgets { grid-template-columns: 1fr; gap: 0; }
  .contact-info > div, .footer-widgets > div { margin-bottom: 30px; }
  .footer-widgets { padding-top: 50px; padding-bottom: 20px; }
  .page-with-sidebar { grid-template-columns: 1fr; }
  .page-with-sidebar .content { padding-right: 0; border-right: 0; }
}
@media (max-width: 600px) {
  .contact-form .row { grid-template-columns: 1fr; gap: 20px; }
  .social-float { right: 10px; }
}
