/* ===== Continental Industrial Products - Modern Stylesheet ===== */

:root {
  /* Brand Colors derived from logo */
  --brand-green-dark: #0d3d2e;
  --brand-green: #1a5f3f;
  --brand-green-mid: #2d7a52;
  --brand-green-light: #4a9d6f;
  --brand-accent: #7fc99d;
  --brand-cream: #f5f3ed;

  /* Neutrals */
  --ink: #0f1a14;
  --ink-soft: #2a3a30;
  --muted: #6b7770;
  --line: #e3e6e1;
  --bg: #ffffff;
  --bg-soft: #f7f8f5;
  --bg-dark: #0d2620;

  /* Typography */
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Layout */
  --container: 1240px;
  --radius-sm: 4px;
  --radius: 8px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 2px rgba(15, 26, 20, 0.06);
  --shadow: 0 8px 24px rgba(15, 26, 20, 0.08);
  --shadow-lg: 0 24px 60px rgba(15, 26, 20, 0.14);

  /* Easing */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand-green); text-decoration: none; transition: color 0.2s var(--ease); }
a:hover { color: var(--brand-green-mid); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--ink);
}

h1 { font-size: clamp(2.5rem, 5vw, 4.25rem); }
h2 { font-size: clamp(1.875rem, 3.5vw, 2.75rem); }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.125rem; font-family: var(--font-body); font-weight: 600; }

p { color: var(--ink-soft); }

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

/* ===== Top Bar ===== */
.topbar {
  background: var(--brand-green-dark);
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.85rem;
  padding: 8px 0;
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.topbar a { color: rgba(255, 255, 255, 0.9); }
.topbar a:hover { color: var(--brand-accent); }
.topbar-info { display: flex; gap: 24px; flex-wrap: wrap; }
.topbar-info span::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand-accent);
  margin-right: 8px;
  vertical-align: middle;
}

/* ===== Header / Nav ===== */
.header {
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.96);
}
.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  padding-bottom: 18px;
}
.logo { display: flex; align-items: center; }
.logo img { height: 56px; width: auto; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--ink);
  padding: 10px 16px;
  border-radius: var(--radius);
  position: relative;
  transition: all 0.2s var(--ease);
}
.nav a:hover { color: var(--brand-green); background: var(--bg-soft); }
.nav a.active { color: var(--brand-green); }
.nav a.active::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 16px;
  right: 16px;
  height: 2px;
  background: var(--brand-green);
  border-radius: 2px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: all 0.25s var(--ease);
  font-family: var(--font-body);
  text-decoration: none;
}
.btn-primary {
  background: var(--brand-green);
  color: white;
  box-shadow: 0 4px 14px rgba(26, 95, 63, 0.25);
}
.btn-primary:hover {
  background: var(--brand-green-dark);
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(26, 95, 63, 0.35);
}
.btn-outline {
  background: transparent;
  color: var(--brand-green);
  border: 1.5px solid var(--brand-green);
}
.btn-outline:hover {
  background: var(--brand-green);
  color: white;
}
.btn-light {
  background: white;
  color: var(--brand-green-dark);
}
.btn-light:hover { background: var(--brand-cream); color: var(--brand-green-dark); }

.btn .arrow { transition: transform 0.25s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }

/* ===== Mobile menu ===== */
.menu-toggle {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  gap: 5px;
}
.menu-toggle span {
  width: 24px;
  height: 2px;
  background: var(--ink);
  transition: 0.25s var(--ease);
}

@media (max-width: 900px) {
  .menu-toggle { display: flex; }
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    flex-direction: column;
    align-items: stretch;
    padding: 16px;
    box-shadow: var(--shadow);
    gap: 0;
  }
  .nav.open { display: flex; }
  .nav a { padding: 14px 16px; }
  .nav .btn { margin-top: 8px; justify-content: center; }
}

/* ===== Hero ===== */
.hero {
  position: relative;
  background: linear-gradient(135deg, var(--brand-green-dark) 0%, var(--brand-green) 60%, var(--brand-green-mid) 100%);
  color: white;
  overflow: hidden;
  padding: 100px 0 120px;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(127, 201, 157, 0.18) 0%, transparent 45%),
    radial-gradient(circle at 80% 70%, rgba(127, 201, 157, 0.12) 0%, transparent 50%);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60' viewBox='0 0 60 60'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='0.04' stroke-width='1'%3E%3Cpath d='M0 0L60 60M60 0L0 60'/%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}
.hero .container { position: relative; z-index: 2; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 60px;
  align-items: center;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--brand-accent);
  margin-bottom: 24px;
}
.hero-eyebrow::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--brand-accent);
  border-radius: 50%;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.4); }
}
.hero h1 {
  color: white;
  font-weight: 600;
  margin-bottom: 24px;
}
.hero h1 em {
  font-style: italic;
  color: var(--brand-accent);
  font-weight: 400;
}
.hero-lead {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 36px;
  max-width: 560px;
}
.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 56px;
  padding-top: 36px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}
.hero-stat .num {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 600;
  color: var(--brand-accent);
  line-height: 1;
  margin-bottom: 6px;
}
.hero-stat .label {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.hero-visual {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.hero-visual img { width: 100%; height: 100%; object-fit: cover; }
.hero-visual::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(13, 38, 32, 0.5) 100%);
}
.hero-card {
  position: absolute;
  bottom: 24px;
  left: 24px;
  right: 24px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  padding: 20px;
  border-radius: var(--radius);
  z-index: 2;
}
.hero-card-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--brand-green);
  font-weight: 600;
  margin-bottom: 6px;
}
.hero-card-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--ink);
  font-weight: 600;
}

@media (max-width: 900px) {
  .hero { padding: 60px 0 80px; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-stats { grid-template-columns: 1fr; gap: 20px; }
}

/* ===== Sections ===== */
.section { padding: 100px 0; }
.section-soft { background: var(--bg-soft); }
.section-dark {
  background: var(--bg-dark);
  color: white;
}
.section-dark h2, .section-dark h3 { color: white; }
.section-dark p { color: rgba(255, 255, 255, 0.75); }

.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 60px;
}
.section-eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--brand-green);
  margin-bottom: 16px;
  position: relative;
  padding-left: 32px;
}
.section-eyebrow::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 24px;
  height: 1.5px;
  background: var(--brand-green);
}
.section-head p {
  font-size: 1.1rem;
  margin-top: 16px;
}

@media (max-width: 600px) { .section { padding: 64px 0; } }

/* ===== Feature grid ===== */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.feature {
  padding: 36px 28px;
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  transition: all 0.3s var(--ease);
}
.feature:hover {
  border-color: var(--brand-green-light);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.feature-icon {
  width: 56px;
  height: 56px;
  background: var(--bg-soft);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-green);
  margin-bottom: 24px;
}
.feature-icon svg { width: 28px; height: 28px; }
.feature h3 { margin-bottom: 12px; font-family: var(--font-body); font-size: 1.2rem; font-weight: 600; }
.feature p { font-size: 0.95rem; }

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

/* ===== Product cards ===== */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.product-card {
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  transition: all 0.3s var(--ease);
  display: flex;
  flex-direction: column;
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.product-image {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--bg-soft);
}
.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.product-card:hover .product-image img { transform: scale(1.05); }
.product-body { padding: 28px; flex: 1; display: flex; flex-direction: column; }
.product-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--brand-green);
  background: rgba(26, 95, 63, 0.08);
  padding: 4px 10px;
  border-radius: 100px;
  margin-bottom: 12px;
  align-self: flex-start;
}
.product-card h3 { margin-bottom: 10px; font-family: var(--font-display); }
.product-card p { font-size: 0.95rem; margin-bottom: 20px; flex: 1; }
.product-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--brand-green);
}
.product-link:hover { gap: 10px; }

@media (max-width: 900px) { .product-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .product-grid { grid-template-columns: 1fr; } }

/* ===== Split section ===== */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.split-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 3;
}
.split-image img { width: 100%; height: 100%; object-fit: cover; }
.split h2 { margin-bottom: 24px; }
.split p { margin-bottom: 16px; }
.split ul { list-style: none; margin-top: 24px; }
.split ul li {
  padding: 12px 0 12px 32px;
  position: relative;
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
}
.split ul li:last-child { border-bottom: none; }
.split ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 18px;
  width: 18px;
  height: 18px;
  background: var(--brand-green);
  border-radius: 50%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-size: 12px;
  background-position: center;
  background-repeat: no-repeat;
}

@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; gap: 40px; }
}

/* ===== Industries strip ===== */
.industries {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.industry {
  background: white;
  padding: 32px 24px;
  text-align: center;
  transition: background 0.25s var(--ease);
}
.industry:hover { background: var(--bg-soft); }
.industry-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 16px;
  color: var(--brand-green);
}
.industry-icon svg { width: 100%; height: 100%; }
.industry h4 { font-size: 1rem; margin-bottom: 6px; }
.industry p { font-size: 0.85rem; }

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

/* ===== CTA banner ===== */
.cta-banner {
  background: linear-gradient(135deg, var(--brand-green-dark), var(--brand-green-mid));
  border-radius: var(--radius-lg);
  padding: 64px 56px;
  position: relative;
  overflow: hidden;
  color: white;
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
  align-items: center;
}
.cta-banner::before {
  content: '';
  position: absolute;
  right: -100px;
  top: -100px;
  width: 360px;
  height: 360px;
  background: radial-gradient(circle, rgba(127, 201, 157, 0.25), transparent 70%);
}
.cta-banner h2 {
  color: white;
  margin-bottom: 16px;
  position: relative;
}
.cta-banner p {
  color: rgba(255, 255, 255, 0.85);
  position: relative;
  font-size: 1.1rem;
}
.cta-banner-buttons {
  display: flex;
  gap: 12px;
  position: relative;
  flex-wrap: wrap;
  justify-content: flex-end;
}

@media (max-width: 800px) {
  .cta-banner { grid-template-columns: 1fr; padding: 40px 28px; }
  .cta-banner-buttons { justify-content: flex-start; }
}

/* ===== Page Hero (interior pages) ===== */
.page-hero {
  background: linear-gradient(135deg, var(--brand-green-dark) 0%, var(--brand-green) 100%);
  color: white;
  padding: 80px 0 100px;
  position: relative;
  overflow: hidden;
}
.page-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60' viewBox='0 0 60 60'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='0.04' stroke-width='1'%3E%3Cpath d='M0 0L60 60M60 0L0 60'/%3E%3C/g%3E%3C/svg%3E");
}
.page-hero .container { position: relative; z-index: 2; max-width: 880px; }
.page-hero h1 { color: white; margin-bottom: 20px; }
.page-hero p { color: rgba(255, 255, 255, 0.85); font-size: 1.2rem; max-width: 640px; }
.breadcrumb {
  display: flex;
  gap: 8px;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 24px;
}
.breadcrumb a { color: rgba(255, 255, 255, 0.85); }
.breadcrumb a:hover { color: white; }
.breadcrumb span { opacity: 0.6; }

/* ===== Prose ===== */
.prose { max-width: 760px; margin: 0 auto; }
.prose p { font-size: 1.05rem; margin-bottom: 20px; }
.prose h2 { margin: 48px 0 20px; }
.prose h3 { margin: 32px 0 12px; font-family: var(--font-display); }
.prose ul { margin: 20px 0 20px 20px; }
.prose ul li { margin-bottom: 8px; color: var(--ink-soft); }
.prose strong { color: var(--ink); font-weight: 600; }

/* ===== FAQ ===== */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item {
  border-bottom: 1px solid var(--line);
  padding: 4px 0;
}
.faq-item summary {
  cursor: pointer;
  padding: 24px 40px 24px 0;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--ink);
  list-style: none;
  position: relative;
  transition: color 0.2s var(--ease);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.6rem;
  font-weight: 300;
  color: var(--brand-green);
  transition: transform 0.25s var(--ease);
}
.faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-item summary:hover { color: var(--brand-green); }
.faq-item p { padding: 0 40px 28px 0; color: var(--ink-soft); }

/* ===== Form ===== */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}
@media (max-width: 800px) { .form-grid { grid-template-columns: 1fr; } }

.contact-info-card {
  background: var(--bg-soft);
  padding: 40px;
  border-radius: var(--radius-lg);
  height: fit-content;
}
.contact-info-card h3 { margin-bottom: 24px; font-family: var(--font-display); }
.contact-info-block { margin-bottom: 28px; }
.contact-info-label {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--brand-green);
  margin-bottom: 6px;
}
.contact-info-value { color: var(--ink); font-size: 1rem; line-height: 1.5; }
.contact-info-value a { color: var(--ink); }
.contact-info-value a:hover { color: var(--brand-green); }

form { display: flex; flex-direction: column; gap: 20px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .field-row { grid-template-columns: 1fr; } }
label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink);
}
input, select, textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 14px 16px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  background: white;
  color: var(--ink);
  transition: all 0.2s var(--ease);
  width: 100%;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--brand-green);
  box-shadow: 0 0 0 3px rgba(26, 95, 63, 0.1);
}
textarea { resize: vertical; min-height: 130px; font-family: var(--font-body); }
button[type="submit"] {
  align-self: flex-start;
  margin-top: 4px;
}

/* Honeypot field */
.hidden-field { position: absolute; left: -9999px; visibility: hidden; }

/* ===== Footer ===== */
.footer {
  background: var(--bg-dark);
  color: rgba(255, 255, 255, 0.75);
  padding: 80px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 56px;
}
.footer-brand img {
  height: 56px;
  width: auto;
  margin-bottom: 20px;
  opacity: 0.95;
}
.footer-brand p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
  max-width: 320px;
}
.footer h4 {
  color: white;
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 20px;
}
.footer ul { list-style: none; }
.footer ul li { margin-bottom: 10px; }
.footer ul a { color: rgba(255, 255, 255, 0.7); font-size: 0.95rem; }
.footer ul a:hover { color: var(--brand-accent); }
.footer-bottom {
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.55);
}

@media (max-width: 800px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 500px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(20px); transition: all 0.7s var(--ease); }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* Success message */
.success-message {
  background: rgba(26, 95, 63, 0.08);
  border: 1px solid var(--brand-green-light);
  color: var(--brand-green-dark);
  padding: 16px 20px;
  border-radius: var(--radius);
  display: none;
}
.success-message.show { display: block; }
