/* Claco Equipment & Service, Inc. — site styles */

:root {
  --navy-dark: #0c1a2b;
  --navy: #14304f;
  --navy-light: #1e4671;
  --gold: #d9a832;
  --gold-light: #f0c96b;
  --red: #a3232f;
  --ink: #182430;
  --gray: #5a6472;
  --gray-light: #f2f4f7;
  --white: #ffffff;
  --radius: 6px;
  --shadow: 0 10px 30px rgba(12, 26, 43, 0.15);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Inter', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
}

h1, h2, h3, h4 {
  font-family: 'Barlow Condensed', 'Segoe UI', Roboto, sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  line-height: 1.15;
  margin: 0 0 0.5em;
  color: var(--navy-dark);
}

p {
  margin: 0 0 1em;
}

a {
  color: var(--navy-light);
  text-decoration: none;
}

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

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

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.85em 1.8em;
  border-radius: var(--radius);
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-gold {
  background: var(--gold);
  color: var(--navy-dark);
}

.btn-gold:hover {
  background: var(--gold-light);
}

.btn-outline {
  background: transparent;
  border-color: var(--white);
  color: var(--white);
}

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

.btn-lg {
  padding: 1.15em 2.8em;
  font-size: 1.2rem;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.3);
}

/* Header */
.site-header {
  background: var(--navy-dark);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 3px solid var(--gold);
  box-shadow: 0 0 0 rgba(0, 0, 0, 0);
  transition: box-shadow 0.3s ease;
}

.site-header.is-scrolled {
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  padding-bottom: 12px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 14px;
}

.logo-badge {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 3px solid var(--white);
  background: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  color: var(--white);
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  flex-shrink: 0;
}

.logo-text .company {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--white);
  letter-spacing: 0.04em;
  line-height: 1;
}

.logo-text .tagline {
  color: var(--gold-light);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.main-nav a {
  color: var(--white);
  padding: 10px 14px;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.95rem;
  border-radius: var(--radius);
  transition: background 0.15s ease, color 0.15s ease;
}

.main-nav a:hover,
.main-nav a.active {
  background: var(--gold);
  color: var(--navy-dark);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.8rem;
  cursor: pointer;
}

@media (max-width: 860px) {
  .nav-toggle {
    display: block;
  }
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--navy-dark);
    flex-direction: column;
    align-items: stretch;
    padding: 10px 24px 20px;
    gap: 4px;
    border-bottom: 3px solid var(--gold);
  }
  .main-nav.open {
    display: flex;
  }
  .main-nav a {
    padding: 12px 10px;
  }
}

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 55%, var(--navy-light) 100%);
  color: var(--white);
  padding: 90px 0;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  right: -10%;
  top: -30%;
  width: 60%;
  height: 160%;
  background: var(--gold);
  opacity: 0.12;
  transform: rotate(20deg);
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero-eyebrow {
  color: var(--gold-light);
  font-family: 'Barlow Condensed', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 10px;
}

.hero h1 {
  color: var(--white);
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  max-width: 780px;
  margin-bottom: 20px;
}

.hero p.lead {
  max-width: 620px;
  font-size: 1.15rem;
  color: #d7e0eb;
  margin-bottom: 32px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* Hero — filmstrip ribbon, inline badge */
.hero-b {
  background: var(--navy-dark);
}

.hero-b::after {
  content: "";
  position: absolute;
  top: auto;
  left: 0;
  right: 0;
  width: auto;
  bottom: -20px;
  height: 70px;
  background: linear-gradient(120deg, var(--red), #7a1922);
  opacity: 0.9;
  transform: skewY(-3deg);
  z-index: 0;
}

.hero-b .hero-actions {
  align-items: center;
}

.hero-b .hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.25);
  color: var(--gold-light);
  padding: 0.85em 1.4em;
  border-radius: 999px;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Sections */
.section {
  padding: 72px 0;
}

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

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 44px;
}

.section-header .eyebrow {
  color: var(--red);
  font-family: 'Barlow Condensed', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-weight: 700;
  font-size: 0.9rem;
}

.section-header p {
  color: var(--gray);
}

/* Cards / grid */
.grid {
  display: grid;
  gap: 28px;
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

@media (max-width: 860px) {
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 620px) {
  .grid-3, .grid-2 {
    grid-template-columns: 1fr;
  }
}

.card {
  background: var(--white);
  border: 1px solid #e4e8ee;
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow);
  border-top: 4px solid var(--gold);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(12, 26, 43, 0.2);
}

.card h3 {
  font-size: 1.35rem;
  margin-bottom: 10px;
}

.card p {
  color: var(--gray);
  margin-bottom: 0;
}

.card ul {
  margin: 0;
  padding-left: 1.1em;
  color: var(--gray);
}

.card ul li {
  margin-bottom: 6px;
}

/* Brand strip */
.brand-strip {
  background: var(--ink);
  padding: 40px 0;
}

.brand-strip .section-header {
  color: var(--white);
  margin-bottom: 28px;
}

.brand-strip .section-header h2 {
  color: var(--white);
}

.brand-strip .section-header p {
  color: #aab4c0;
}

.brand-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

.logo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 16px;
}

.logo-card {
  background: var(--white);
  border-radius: var(--radius);
  height: 88px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px 22px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.logo-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.18);
}

.logo-card img {
  height: 40px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}

.logo-card--fill {
  padding: 6px 12px;
}

.logo-card img.logo-lg {
  height: 66px;
}

.logo-card--dark {
  background: var(--navy);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

/* CTA band */
.cta-band {
  background: linear-gradient(120deg, var(--red), #7a1922);
  color: var(--white);
  padding: 56px 0;
  text-align: center;
}

.cta-band h2 {
  color: var(--white);
}

.cta-band p {
  color: #f4d5d8;
  max-width: 560px;
  margin: 0 auto 26px;
}

/* Info list (contact, about) */
.info-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.info-list li {
  display: flex;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid #e4e8ee;
}

.info-list .info-icon {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--gold-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-family: 'Barlow Condensed', sans-serif;
}

.info-list strong {
  display: block;
  color: var(--navy-dark);
}

/* Timeline (about) */
.timeline {
  border-left: 3px solid var(--gold);
  margin-left: 10px;
  padding-left: 30px;
}

.timeline-item {
  position: relative;
  margin-bottom: 36px;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -38px;
  top: 4px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--gold);
  border: 3px solid var(--white);
  box-shadow: 0 0 0 2px var(--gold);
}

.timeline-item .year {
  color: var(--red);
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  letter-spacing: 0.05em;
}

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

.form-grid .full {
  grid-column: 1 / -1;
}

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

label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  font-size: 0.9rem;
  color: var(--navy-dark);
}

input, textarea, select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #cbd3dc;
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 1rem;
}

input:focus, textarea:focus, select:focus {
  outline: 2px solid var(--gold);
  border-color: var(--gold);
}

/* Map placeholder */
.map-frame {
  border: 0;
  width: 100%;
  height: 340px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* Footer */
.site-footer {
  background: var(--navy-dark);
  color: #b9c3cf;
  padding: 50px 0 26px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 30px;
}

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

.site-footer h4 {
  color: var(--white);
  font-size: 1.05rem;
  margin-bottom: 14px;
}

.site-footer a {
  color: #b9c3cf;
}

.site-footer a:hover {
  color: var(--gold-light);
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer ul li {
  margin-bottom: 8px;
}

.footer-bottom {
  border-top: 1px solid #24384f;
  padding-top: 20px;
  font-size: 0.85rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.social-links {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  color: var(--white);
  transition: background 0.15s ease, color 0.15s ease;
}

.social-links a:hover {
  background: var(--gold);
  color: var(--navy-dark);
}

.social-links svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* Page hero (interior pages) */
.page-hero {
  background: var(--navy-dark);
  color: var(--white);
  padding: 56px 0;
  border-bottom: 3px solid var(--gold);
}

.page-hero .eyebrow {
  color: var(--gold-light);
  font-family: 'Barlow Condensed', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-weight: 700;
  font-size: 0.9rem;
}

.page-hero h1 {
  color: var(--white);
  margin-bottom: 8px;
}

.page-hero p {
  color: #c5d0dc;
  max-width: 640px;
  margin-bottom: 0;
}

/* Quote popup */
.quote-popup {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.quote-popup[hidden] {
  display: none;
}

.quote-popup-overlay {
  position: absolute;
  inset: 0;
  background: rgba(12, 26, 43, 0.72);
}

.quote-popup-modal {
  position: relative;
  background: var(--white);
  border-radius: var(--radius);
  border-top: 4px solid var(--gold);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.45);
  padding: 36px;
  max-width: 420px;
  width: 100%;
}

.quote-popup-close {
  position: absolute;
  top: 12px;
  right: 14px;
  background: none;
  border: none;
  font-size: 1.6rem;
  line-height: 1;
  color: var(--gray);
  cursor: pointer;
  padding: 4px;
}

.quote-popup-close:hover {
  color: var(--navy-dark);
}

.quote-popup-eyebrow {
  color: var(--red);
  font-family: 'Barlow Condensed', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 8px;
}

.quote-popup-modal h3 {
  margin-bottom: 8px;
}

.quote-popup-modal > p {
  color: var(--gray);
  margin-bottom: 20px;
}

.quote-popup-modal form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.quote-popup-modal .btn {
  align-self: flex-start;
  margin-top: 4px;
}

.quote-popup-note {
  font-size: 0.85rem;
  color: var(--gray);
  margin: 14px 0 0;
}

@media (prefers-reduced-motion: no-preference) {
  .quote-popup-modal {
    animation: fadeUp 0.35s ease both;
  }
}

/* Question widget (bottom-right corner, all pages) */
.question-widget {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 250;
}

.question-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--navy-dark);
  color: var(--white);
  border: none;
  border-radius: 999px;
  padding: 12px 18px;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.3);
  cursor: pointer;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.85rem;
  transition: transform 0.2s ease, background 0.2s ease;
}

.question-toggle:hover {
  background: var(--navy);
  transform: translateY(-2px);
}

.question-toggle-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--navy-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  flex-shrink: 0;
}

.question-panel {
  position: absolute;
  bottom: calc(100% + 12px);
  right: 0;
  width: 280px;
  max-width: calc(100vw - 40px);
  background: var(--white);
  border-radius: var(--radius);
  border-top: 4px solid var(--gold);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
  padding: 18px;
}

.question-panel[hidden] {
  display: none;
}

.question-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--navy-dark);
  font-size: 0.95rem;
}

.question-panel-close {
  background: none;
  border: none;
  font-size: 1.3rem;
  line-height: 1;
  color: var(--gray);
  cursor: pointer;
  padding: 2px;
}

.question-panel-close:hover {
  color: var(--navy-dark);
}

.question-panel form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.question-panel input,
.question-panel textarea {
  padding: 9px 11px;
  font-size: 0.9rem;
}

.question-panel .btn {
  padding: 0.7em 1em;
  font-size: 0.85rem;
  text-align: center;
}

.question-note {
  font-size: 0.78rem;
  color: var(--gray);
  margin: 10px 0 0;
}

@media (max-width: 480px) {
  .question-toggle-label {
    display: none;
  }
  .question-toggle {
    padding: 12px;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .question-panel {
    animation: fadeUp 0.25s ease both;
  }
}

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

/* Utility */
.text-center {
  text-align: center;
}

.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }

/* Motion & scroll reveal */
@media (prefers-reduced-motion: no-preference) {

  @keyframes fadeUp {
    from {
      opacity: 0;
      transform: translateY(22px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .hero .container > *,
  .page-hero .container > * {
    animation: fadeUp 0.7s ease both;
  }

  .hero .container > *:nth-child(1),
  .page-hero .container > *:nth-child(1) { animation-delay: 0.05s; }
  .hero .container > *:nth-child(2),
  .page-hero .container > *:nth-child(2) { animation-delay: 0.16s; }
  .hero .container > *:nth-child(3),
  .page-hero .container > *:nth-child(3) { animation-delay: 0.27s; }
  .hero .container > *:nth-child(4),
  .page-hero .container > *:nth-child(4) { animation-delay: 0.38s; }

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

  .reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
  }

  .reveal-stagger > * {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 0.6s ease, transform 0.6s ease;
  }

  .reveal-stagger.is-visible > * {
    opacity: 1;
    transform: translateY(0);
  }
}
