/* Clifton Automations — Landing Page Styles */

:root {
  --navy: #1e3a5f;
  --navy-deep: #0f2440;
  --blue: #2563eb;
  --blue-dark: #1e40af;
  --green: #059669;
  --green-hover: #047857;
  --orange: #ea580c;
  --red: #dc2626;
  --gold: #d97706;
  --white: #ffffff;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--white);
  color: var(--gray-800);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ═══ SKIP LINK ═══ */
.skip-link {
  position: absolute;
  top: -100%;
  left: 0;
  background: var(--blue);
  color: white;
  padding: 8px 16px;
  z-index: 100;
  transition: top 0.2s ease;
}
.skip-link:focus { top: 0; }

/* ═══ NAV ═══ */
.nav {
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  position: sticky;
  top: 0;
  z-index: 50;
}
.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.nav-logo {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--navy);
  text-decoration: none;
  letter-spacing: -0.5px;
}
.nav-links {
  display: flex;
  gap: 32px;
}
.nav-links a {
  color: var(--gray-600);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.15s;
}
.nav-links a:hover { color: var(--gray-900); }
.nav-phone {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--navy);
  text-decoration: none;
}
.nav-phone:hover { color: var(--blue); }
.nav-mobile-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  gap: 5px;
}
.menu-bar {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--gray-700);
  transition: transform 0.3s, opacity 0.3s;
}
.mobile-menu {
  display: none;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  border-top: 1px solid var(--gray-200);
}
.mobile-menu.open { max-height: 400px; }
.mobile-menu a {
  display: block;
  padding: 14px 24px;
  color: var(--gray-700);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  border-bottom: 1px solid var(--gray-100);
}
.mobile-menu a:hover { background: var(--gray-50); }

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-phone { display: none; }
  .nav-mobile-btn { display: flex; }
  .mobile-menu { display: block; }
}

/* ═══ BUTTONS ═══ */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: all 0.15s ease;
  border: 2px solid transparent;
}
.btn-primary {
  background: var(--green);
  color: var(--white);
  border-color: var(--green);
}
.btn-primary:hover {
  background: var(--green-hover);
  border-color: var(--green-hover);
}
.btn-outline {
  background: transparent;
  color: var(--green);
  border-color: var(--green);
}
.btn-outline:hover {
  background: var(--green);
  color: var(--white);
}

/* CTA pulse */
@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(5, 150, 105, 0.4); }
  50% { box-shadow: 0 0 20px 8px rgba(5, 150, 105, 0.15); }
}
.cta-pulse { animation: pulse-glow 2.5s ease-in-out infinite; }

/* ═══ HERO ═══ */
.hero {
  background: var(--navy-deep);
  color: var(--white);
  text-align: center;
  padding: 80px 24px 72px;
}
.hero-inner {
  max-width: 720px;
  margin: 0 auto;
}
.hero h1 {
  font-size: 2.6rem;
  font-weight: 900;
  letter-spacing: -1.5px;
  line-height: 1.15;
  margin-bottom: 20px;
}
.hero-sub {
  font-size: 1.15rem;
  opacity: 0.85;
  line-height: 1.7;
  margin-bottom: 32px;
}
.hero-note {
  margin-top: 14px;
  font-size: 0.85rem;
  opacity: 0.55;
}

@media (max-width: 640px) {
  .hero { padding: 56px 20px 48px; }
  .hero h1 { font-size: 1.8rem; }
  .hero-sub { font-size: 1rem; }
}

/* ═══ SECTIONS ═══ */
.section {
  padding: 80px 0;
}
.section-dark {
  background: var(--gray-900);
  color: var(--white);
}
.section-dark .section-subtitle { color: rgba(255, 255, 255, 0.6); }
.section-title {
  font-size: 2rem;
  font-weight: 800;
  text-align: center;
  letter-spacing: -1px;
  margin-bottom: 12px;
}
.section-subtitle {
  text-align: center;
  color: var(--gray-500);
  font-size: 1.05rem;
  max-width: 600px;
  margin: 0 auto 48px;
}

@media (max-width: 640px) {
  .section { padding: 56px 0; }
  .section-title { font-size: 1.5rem; }
}

/* ═══ HOW IT WORKS ═══ */
.steps {
  max-width: 640px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.step {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}
.step-number {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  background: var(--navy);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 800;
}
.step-content h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--gray-900);
}
.step-content p {
  color: var(--gray-600);
  font-size: 0.95rem;
  line-height: 1.65;
}

/* ═══ WHAT'S DIFFERENT GRID ═══ */
.diff-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}
.diff-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 28px;
  transition: transform 0.2s, box-shadow 0.2s;
}
.diff-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}
.diff-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--white);
}
.diff-card p {
  font-size: 0.9rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.65);
}

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

/* ═══ ROI CALCULATOR ═══ */
.roi-calc {
  max-width: 600px;
  margin: 0 auto;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 16px;
  padding: 36px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}
.roi-toggle {
  display: flex;
  gap: 8px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}
.roi-tab {
  flex: 1;
  padding: 10px 16px;
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  background: var(--white);
  color: var(--gray-600);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
  min-width: fit-content;
}
.roi-tab.active {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}
.roi-tab:hover:not(.active) { border-color: var(--gray-400, #9ca3af); }
.roi-inputs { margin-bottom: 32px; }
.roi-input-group {
  margin-bottom: 20px;
}
.roi-input-group label {
  display: block;
  font-size: 0.9rem;
  color: var(--gray-700);
  margin-bottom: 8px;
}
.roi-input-group label strong {
  color: var(--navy);
}
.roi-input-range {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: var(--gray-200);
  outline: none;
}
.roi-input-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--blue);
  cursor: pointer;
  border: 2px solid var(--white);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}
.roi-input-range::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--blue);
  cursor: pointer;
  border: 2px solid var(--white);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}
.roi-results {
  border-top: 1px solid var(--gray-200);
  padding-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 24px;
}
.roi-result {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.roi-label {
  font-size: 0.9rem;
  color: var(--gray-600);
}
.roi-value {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--gray-900);
  transition: color 0.2s;
}
.roi-lost { color: var(--red); }
.roi-result-highlight {
  background: var(--gray-50);
  padding: 12px 16px;
  border-radius: 8px;
  margin: 0 -16px;
}
.roi-result-highlight .roi-value { color: var(--green); }
.roi-bottom { text-align: center; }

@media (max-width: 480px) {
  .roi-calc { padding: 24px 20px; }
  .roi-tab { font-size: 0.78rem; padding: 8px 12px; }
  .roi-result { flex-direction: column; align-items: flex-start; gap: 4px; }
}

/* ═══ PRICING ═══ */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 24px;
}
.pricing-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.2s, box-shadow 0.2s;
}
.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.3);
}
.pricing-popular {
  border: 2px solid var(--blue);
}
.pricing-popular::before {
  content: "Most Popular";
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--blue);
  color: white;
  padding: 4px 16px;
  border-radius: 99px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.pricing-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
  width: fit-content;
}
.badge-auto { background: rgba(234, 88, 12, 0.15); color: #fb923c; }
.badge-hvac { background: rgba(37, 99, 235, 0.15); color: #60a5fa; }
.badge-law { background: rgba(124, 58, 237, 0.15); color: #a78bfa; }
.badge-health { background: rgba(5, 150, 105, 0.15); color: #34d399; }
.pricing-tier {
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: 8px;
  color: var(--white);
}
.pricing-price {
  font-size: 2.4rem;
  font-weight: 900;
  color: var(--white);
  margin-bottom: 12px;
  letter-spacing: -1px;
}
.pricing-price span {
  font-size: 1rem;
  font-weight: 500;
  opacity: 0.5;
}
.pricing-desc {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 24px;
  line-height: 1.5;
}
.pricing-features {
  list-style: none;
  margin-bottom: 28px;
  flex-grow: 1;
}
.pricing-features li {
  padding: 6px 0;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.75);
  padding-left: 20px;
  position: relative;
}
.pricing-features li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  color: var(--green);
  font-weight: 700;
}
.pricing-card .btn { width: 100%; }
.pricing-note {
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.4);
}

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

/* ═══ GUARANTEE ═══ */
.guarantee {
  text-align: center;
  max-width: 560px;
}
.guarantee-badge {
  width: 80px;
  height: 80px;
  border: 3px solid var(--navy);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--navy);
}
.guarantee h2 {
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 14px;
  color: var(--gray-900);
}
.guarantee p {
  color: var(--gray-600);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 28px;
}

/* ═══ FAQ ═══ */
.faq-list {
  max-width: 640px;
  margin: 0 auto;
}
.faq-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.faq-toggle {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
}
.faq-toggle:hover { opacity: 0.8; }
.faq-icon {
  font-size: 1.4rem;
  font-weight: 300;
  transition: transform 0.3s;
  flex-shrink: 0;
  margin-left: 16px;
}
.faq-toggle.active .faq-icon { transform: rotate(45deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}
.faq-answer.open { max-height: 300px; }
.faq-answer p {
  padding-bottom: 20px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.92rem;
  line-height: 1.7;
}

/* ═══ FOOTER ═══ */
.footer {
  background: var(--navy-deep);
  color: rgba(255, 255, 255, 0.7);
  padding: 48px 0 0;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 32px;
  padding-bottom: 40px;
}
.footer-brand strong {
  display: block;
  font-size: 1.1rem;
  color: var(--white);
  margin-bottom: 4px;
}
.footer-brand p {
  font-size: 0.85rem;
  margin-bottom: 4px;
}
.footer-brand a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
}
.footer-brand a:hover { color: var(--white); }
.footer-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-links a {
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  font-size: 0.85rem;
}
.footer-links a:hover { color: var(--white); }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 20px 24px;
  text-align: center;
}
.footer-bottom p {
  font-size: 0.78rem;
  opacity: 0.4;
}

@media (max-width: 640px) {
  .footer-inner { flex-direction: column; align-items: center; text-align: center; }
  .footer-links { justify-content: center; }
}
