/* ============================================
   Caverofy — Industrial Packaging
   Palette: Charcoal #1F2328, Steel #4A5560, Safety Orange #E8630A
   Fonts: Oswald (headings), Inter (body)
   ============================================ */

:root {
  --charcoal: #1F2328;
  --charcoal-light: #2B3139;
  --steel: #4A5560;
  --steel-light: #6B7684;
  --orange: #E8630A;
  --orange-dark: #C8530A;
  --orange-light: #FFF1E7;
  --bg-light: #F5F6F7;
  --bg-white: #FFFFFF;
  --border-color: #E1E4E8;
  --text-dark: #1F2328;
  --text-body: #3C434B;
  --text-muted: #6B7684;
  --radius: 6px;
  --shadow-sm: 0 1px 3px rgba(31, 35, 40, 0.08);
  --shadow-md: 0 6px 20px rgba(31, 35, 40, 0.12);
  --shadow-lg: 0 16px 40px rgba(31, 35, 40, 0.18);
  --max-width: 1200px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', Arial, Helvetica, sans-serif;
  color: var(--text-body);
  background: var(--bg-white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5 {
  font-family: 'Oswald', 'Arial Narrow', Arial, sans-serif;
  color: var(--text-dark);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  line-height: 1.25;
}

h1 { font-size: 2.6rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.1rem; }

p { margin-bottom: 1rem; }

a { color: var(--orange); text-decoration: none; transition: color 0.2s ease; }
a:hover { color: var(--orange-dark); }

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

ul { list-style: none; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--orange);
  color: #fff;
  padding: 10px 16px;
  z-index: 1000;
}
.skip-link:focus { left: 0; }

/* ---------- Top bar ---------- */
.top-bar {
  background: var(--charcoal);
  color: #C7CDD3;
  font-size: 0.85rem;
}
.top-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 24px;
  flex-wrap: wrap;
  gap: 6px;
}
.top-bar-contact a { color: #C7CDD3; margin-right: 18px; }
.top-bar-contact a:hover { color: var(--orange); }
.top-bar-note { color: #9AA3AC; }

/* ---------- Header / Nav ---------- */
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 500;
  box-shadow: var(--shadow-sm);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
}
.logo-link { display: flex; align-items: center; }
.logo-img { height: 44px; width: auto; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 22px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 600;
}
.nav-toggle span {
  display: block;
  height: 3px;
  width: 100%;
  background: var(--charcoal);
  border-radius: 2px;
  transition: all 0.25s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

.site-nav ul {
  display: flex;
  align-items: center;
  gap: 26px;
}
.site-nav a {
  color: var(--charcoal);
  font-family: 'Oswald', Arial, sans-serif;
  font-size: 0.92rem;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  font-weight: 500;
  padding: 8px 2px;
  display: block;
}
.site-nav a:hover, .site-nav a.active { color: var(--orange); }

.btn-nav-quote {
  background: var(--orange);
  color: #fff !important;
  padding: 10px 20px !important;
  border-radius: var(--radius);
}
.btn-nav-quote:hover { background: var(--orange-dark); color: #fff !important; }

.has-dropdown { position: relative; }
.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  min-width: 260px;
  box-shadow: var(--shadow-lg);
  border-radius: var(--radius);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all 0.2s ease;
  border: 1px solid var(--border-color);
}
.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.dropdown li a {
  padding: 10px 12px !important;
  font-size: 0.85rem !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  border-radius: 4px;
}
.dropdown li a:hover { background: var(--orange-light); color: var(--orange-dark); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: 'Oswald', Arial, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 14px 30px;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
}
.btn-primary { background: var(--orange); color: #fff; }
.btn-primary:hover { background: var(--orange-dark); color: #fff; }
.btn-outline { background: transparent; border-color: #fff; color: #fff; }
.btn-outline:hover { background: #fff; color: var(--charcoal); }
.btn-dark { background: var(--charcoal); color: #fff; }
.btn-dark:hover { background: var(--charcoal-light); color: #fff; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  color: #fff;
  background: var(--charcoal);
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.45;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(31,35,40,0.95) 0%, rgba(31,35,40,0.65) 55%, rgba(31,35,40,0.35) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  padding: 110px 24px 90px;
  max-width: 720px;
}
.hero-eyebrow {
  display: inline-block;
  color: var(--orange);
  font-family: 'Oswald', Arial, sans-serif;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.85rem;
  margin-bottom: 14px;
}
.hero h1 { color: #fff; font-size: 3rem; margin-bottom: 18px; }
.hero p.lead { font-size: 1.15rem; color: #D8DCE1; margin-bottom: 30px; max-width: 600px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.page-hero {
  position: relative;
  color: #fff;
  background: var(--charcoal);
  overflow: hidden;
}
.page-hero-content {
  position: relative;
  z-index: 2;
  padding: 70px 24px 60px;
  max-width: 760px;
}
.page-hero h1 { color: #fff; margin-bottom: 10px; }
.page-hero p { color: #D8DCE1; font-size: 1.05rem; max-width: 620px; margin-bottom: 0; }
.breadcrumb {
  position: relative;
  z-index: 2;
  font-size: 0.85rem;
  color: #AEB6BE;
  padding: 16px 24px 0;
}
.breadcrumb a { color: #AEB6BE; }
.breadcrumb a:hover { color: var(--orange); }

/* ---------- Sections ---------- */
section { padding: 80px 0; }
.section-light { background: var(--bg-light); }
.section-dark { background: var(--charcoal); color: #D8DCE1; }
.section-dark h2, .section-dark h3 { color: #fff; }

.section-head { max-width: 680px; margin: 0 auto 50px; text-align: center; }
.section-head.left { margin: 0 0 40px; text-align: left; }
.eyebrow {
  display: block;
  color: var(--orange);
  font-family: 'Oswald', Arial, sans-serif;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.8rem;
  margin-bottom: 10px;
}
.section-head h2 { margin-bottom: 14px; }
.section-head p { color: var(--text-muted); font-size: 1.05rem; margin-bottom: 0; }

/* ---------- Grids / Cards ---------- */
.grid {
  display: grid;
  gap: 28px;
}
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card-img { height: 200px; overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.card-body h3 { margin-bottom: 10px; font-size: 1.15rem; }
.card-body p { color: var(--text-muted); font-size: 0.95rem; flex: 1; }
.card-link {
  font-family: 'Oswald', Arial, sans-serif;
  text-transform: uppercase;
  font-size: 0.82rem;
  letter-spacing: 0.5px;
  font-weight: 600;
  margin-top: 10px;
}

.icon-card {
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 30px 26px;
  box-shadow: var(--shadow-sm);
}
.icon-card .icon-wrap {
  width: 56px;
  height: 56px;
  border-radius: 10px;
  background: var(--orange-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.icon-card .icon-wrap svg { width: 28px; height: 28px; }
.icon-card h3 { margin-bottom: 10px; font-size: 1.1rem; }
.icon-card p { color: var(--text-muted); font-size: 0.93rem; margin-bottom: 0; }

/* ---------- Split / feature rows ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}
.split img { border-radius: var(--radius); box-shadow: var(--shadow-md); }
.split .eyebrow { margin-bottom: 10px; }
.split h2 { margin-bottom: 16px; }
.split ul.checklist { margin-top: 18px; }

.checklist li {
  padding-left: 30px;
  position: relative;
  margin-bottom: 12px;
  font-size: 0.97rem;
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--orange);
}
.checklist li::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 8px;
  width: 9px;
  height: 5px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg);
}

/* ---------- Stats ---------- */
.stats-bar { background: var(--charcoal); color: #fff; }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
.stat-num {
  font-family: 'Oswald', Arial, sans-serif;
  font-size: 2.6rem;
  color: var(--orange);
  font-weight: 700;
  line-height: 1;
}
.stat-label { color: #AEB6BE; font-size: 0.88rem; text-transform: uppercase; letter-spacing: 0.5px; margin-top: 6px; }

/* ---------- Process steps ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  counter-reset: step;
}
.step { position: relative; padding: 10px 0; }
.step-num {
  font-family: 'Oswald', Arial, sans-serif;
  font-size: 2.2rem;
  color: var(--orange);
  font-weight: 700;
  margin-bottom: 10px;
  display: block;
}
.step h3 { font-size: 1.05rem; margin-bottom: 8px; }
.step p { color: var(--text-muted); font-size: 0.92rem; margin-bottom: 0; }

/* ---------- Testimonials ---------- */
.testimonial-card {
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}
.testimonial-card p.quote { font-style: italic; color: var(--text-body); margin-bottom: 18px; }
.testimonial-name { font-weight: 600; color: var(--text-dark); font-size: 0.95rem; }
.testimonial-role { color: var(--text-muted); font-size: 0.85rem; }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative;
  background: var(--charcoal);
  color: #fff;
  overflow: hidden;
}
.cta-band-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.3; }
.cta-band-overlay { position: absolute; inset: 0; background: linear-gradient(100deg, rgba(31,35,40,0.95), rgba(31,35,40,0.7)); }
.cta-band-content { position: relative; z-index: 2; text-align: center; max-width: 700px; margin: 0 auto; }
.cta-band-content h2 { color: #fff; margin-bottom: 14px; }
.cta-band-content p { color: #D8DCE1; margin-bottom: 26px; font-size: 1.05rem; }

/* ---------- Table ---------- */
table { width: 100%; border-collapse: collapse; margin-bottom: 24px; }
table th, table td {
  text-align: left;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-color);
  font-size: 0.95rem;
}
table th { background: var(--bg-light); font-family: 'Oswald', Arial, sans-serif; text-transform: uppercase; font-size: 0.82rem; letter-spacing: 0.4px; }

/* ---------- FAQ ---------- */
.faq-item {
  border-bottom: 1px solid var(--border-color);
}
.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 4px;
  cursor: pointer;
  font-family: 'Oswald', Arial, sans-serif;
  font-weight: 600;
  font-size: 1.02rem;
  color: var(--text-dark);
}
.faq-question::after {
  content: "+";
  font-size: 1.6rem;
  color: var(--orange);
  flex-shrink: 0;
  margin-left: 16px;
  transition: transform 0.2s ease;
}
.faq-item.open .faq-question::after { transform: rotate(45deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
  color: var(--text-muted);
}
.faq-item.open .faq-answer { max-height: 600px; padding-bottom: 20px; }
.faq-answer p { font-size: 0.95rem; }

/* ---------- Forms ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-group { margin-bottom: 20px; }
.form-group.full { grid-column: 1 / -1; }
label { display: block; font-size: 0.88rem; font-weight: 600; color: var(--text-dark); margin-bottom: 6px; }
input, select, textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  font-family: 'Inter', Arial, sans-serif;
  font-size: 0.95rem;
  background: #fff;
  color: var(--text-dark);
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(232, 99, 10, 0.15);
}
textarea { resize: vertical; min-height: 130px; }
.form-note { font-size: 0.82rem; color: var(--text-muted); margin-top: 6px; }

.alert { padding: 16px 18px; border-radius: var(--radius); margin-bottom: 24px; font-size: 0.95rem; }
.alert-success { background: #E8F7EE; color: #1B5E33; border: 1px solid #B9E6C8; }
.alert-error { background: #FDEBEA; color: #9A2A22; border: 1px solid #F3BDB8; }

/* ---------- Contact info cards ---------- */
.contact-info-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-bottom: 50px; }
.contact-info-card {
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 26px;
  text-align: center;
}
.contact-info-card .icon-wrap {
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--orange-light);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
}
.contact-info-card .icon-wrap svg { width: 24px; height: 24px; }
.contact-info-card h3 { font-size: 1rem; margin-bottom: 8px; }
.contact-info-card p { color: var(--text-muted); font-size: 0.92rem; margin-bottom: 0; }

.map-embed { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid var(--border-color); }
.map-embed iframe { width: 100%; height: 360px; border: 0; display: block; }

/* ---------- Legal pages ---------- */
.legal-content { max-width: 820px; margin: 0 auto; }
.legal-content h2 { margin-top: 40px; margin-bottom: 14px; font-size: 1.4rem; }
.legal-content h2:first-child { margin-top: 0; }
.legal-content h3 { margin-top: 24px; margin-bottom: 10px; font-size: 1.1rem; }
.legal-content ul, .legal-content ol { margin: 0 0 18px 22px; }
.legal-content ul { list-style: disc; }
.legal-content ol { list-style: decimal; }
.legal-content li { margin-bottom: 8px; }
.legal-updated { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 36px; }

/* ---------- 404 ---------- */
.error-page { text-align: center; padding: 120px 24px; }
.error-page .error-code {
  font-family: 'Oswald', Arial, sans-serif;
  font-size: 7rem;
  color: var(--orange);
  font-weight: 700;
  line-height: 1;
}

/* ---------- Footer ---------- */
.site-footer { background: var(--charcoal); color: #AEB6BE; padding-top: 70px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr 1.2fr;
  gap: 32px;
  padding-bottom: 50px;
  border-bottom: 1px solid #343A42;
}
.footer-logo { margin-bottom: 16px; }
.footer-brand p { font-size: 0.9rem; color: #9AA3AC; }
.footer-legal-name { font-size: 0.82rem; color: #7E8891; margin-top: 10px; }
.footer-col h3 {
  color: #fff;
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 18px;
}
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { color: #AEB6BE; font-size: 0.9rem; }
.footer-col ul li a:hover { color: var(--orange); }
.footer-contact address { font-style: normal; font-size: 0.9rem; color: #AEB6BE; margin-bottom: 10px; }
.footer-contact p { font-size: 0.9rem; margin-bottom: 8px; }
.footer-bottom { padding: 22px 0; }
.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.82rem;
  color: #7E8891;
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 991px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 36px; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-info-grid { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; gap: 30px; }
  .split.reverse .split-media { order: -1; }
}

@media (max-width: 900px) {
  .nav-toggle { display: flex; }
  .site-nav {
    position: fixed;
    top: 0;
    right: -320px;
    width: 300px;
    height: 100vh;
    background: #fff;
    box-shadow: var(--shadow-lg);
    padding: 90px 20px 30px;
    transition: right 0.3s ease;
    overflow-y: auto;
  }
  .site-nav.open { right: 0; }
  .site-nav ul { flex-direction: column; align-items: flex-start; gap: 4px; width: 100%; }
  .site-nav ul li { width: 100%; }
  .btn-nav-quote { margin-top: 10px; display: inline-block; }
  .has-dropdown .dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    max-height: 0;
    overflow: hidden;
    padding: 0;
    transition: max-height 0.25s ease;
  }
  .has-dropdown.dropdown-open .dropdown { max-height: 400px; padding: 6px 0 6px 14px; }
}

@media (max-width: 768px) {
  h1 { font-size: 2.1rem; }
  h2 { font-size: 1.6rem; }
  .hero-content, .page-hero-content { padding: 60px 24px 50px; }
  .hero h1 { font-size: 2.2rem; }
  section { padding: 56px 0; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .top-bar-inner { justify-content: center; text-align: center; }
  .error-page .error-code { font-size: 4.5rem; }
}
