/* ============================================
   AE Brothers Roofing — Landing Page CSS
   Brand: #f25c05 (orange), #1a1a37 (dark navy)
   ============================================ */

/* ===== RESET & BASE ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --orange: #f25c05;
  --orange-dark: #d94e00;
  --orange-light: #ff7a2e;
  --navy: #1a1a37;
  --navy-light: #252550;
  --navy-lighter: #2e2e60;
  --white: #ffffff;
  --off-white: #fafafa;
  --gray-light: #f5f5f7;
  --gray: #e8e8ec;
  --gray-text: #6b6b80;
  --text: #1a1a2e;
  --text-light: #4a4a6a;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 4px 24px rgba(0,0,0,0.08);
  --shadow-md: 0 8px 40px rgba(0,0,0,0.14);
  --shadow-lg: 0 16px 64px rgba(0,0,0,0.18);
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

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

/* ===== TYPOGRAPHY ===== */
h1, h2, h3 {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.highlight {
  color: var(--orange);
}

.highlight-light {
  color: #ffb380;
}

.section-tag {
  display: inline-block;
  background: rgba(242, 92, 5, 0.1);
  color: var(--orange);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 16px;
  border: 1px solid rgba(242, 92, 5, 0.2);
}

.section-title {
  font-size: clamp(2rem, 4vw, 2.75rem);
  color: var(--navy);
  margin-bottom: 16px;
}

.section-sub {
  font-size: 1.05rem;
  color: var(--text-light);
  max-width: 600px;
  line-height: 1.7;
}

.section-header.centered {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 60px;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 600;
  padding: 13px 26px;
  border-radius: var(--radius);
  cursor: pointer;
  border: 2px solid transparent;
  text-decoration: none;
  transition: all var(--transition);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.12);
  opacity: 0;
  transition: opacity var(--transition);
}

.btn:hover::before {
  opacity: 1;
}

.btn-primary {
  background: var(--orange);
  color: var(--white);
  box-shadow: 0 4px 20px rgba(242, 92, 5, 0.35);
}

.btn-primary:hover {
  background: var(--orange-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(242, 92, 5, 0.45);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-ghost {
  background: rgba(255,255,255,0.12);
  color: var(--white);
  border-color: rgba(255,255,255,0.4);
  backdrop-filter: blur(8px);
}

.btn-ghost:hover {
  background: rgba(255,255,255,0.22);
  border-color: rgba(255,255,255,0.7);
  transform: translateY(-2px);
}

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

.btn-white-outline:hover {
  background: rgba(255,255,255,0.15);
  border-color: var(--white);
  transform: translateY(-2px);
}

.btn-large {
  padding: 16px 32px;
  font-size: 16px;
  border-radius: 14px;
}

.btn-xl {
  padding: 18px 40px;
  font-size: 17px;
  border-radius: 14px;
}

.btn-full {
  width: 100%;
  justify-content: center;
}

.btn-header {
  padding: 11px 22px;
  font-size: 14px;
}

/* ===== TOP BAR ===== */
.top-bar {
  background: var(--navy);
  color: rgba(255,255,255,0.85);
  font-size: 13px;
  font-weight: 500;
  padding: 8px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.top-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.top-bar-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.top-bar-left a {
  color: var(--orange);
  font-weight: 700;
  font-size: 14px;
}

.top-bar-left a:hover {
  color: var(--orange-light);
}

.phone-icon {
  width: 16px;
  height: 16px;
  color: var(--orange);
}

.top-bar-divider {
  color: rgba(255,255,255,0.3);
}

.top-bar-right {
  display: flex;
  align-items: center;
  gap: 6px;
  color: rgba(255,255,255,0.65);
}

/* ===== HEADER ===== */
.header {
  background: var(--white);
  border-bottom: 1px solid var(--gray);
  padding: 14px 0;
  position: sticky;
  top: 37px;
  z-index: 999;
  box-shadow: 0 2px 16px rgba(0,0,0,0.05);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.logo {
  height: 48px;
  width: auto;
  object-fit: contain;
}

.logo-link {
  flex-shrink: 0;
}

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  background: url('images/hero-bg.png') center center / cover no-repeat;
  padding: 80px 0 60px;
}

.hero-bg-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(26, 26, 55, 0.88) 0%,
    rgba(26, 26, 55, 0.70) 50%,
    rgba(242, 92, 5, 0.25) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
}

.hero-text {
  max-width: 680px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(242, 92, 5, 0.15);
  border: 1px solid rgba(242, 92, 5, 0.4);
  color: #ffb380;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 7px 16px;
  border-radius: 100px;
  margin-bottom: 24px;
  backdrop-filter: blur(8px);
}

.hero-badge svg {
  color: var(--orange);
  flex-shrink: 0;
}

.hero-headline {
  font-size: clamp(2.4rem, 5.5vw, 3.8rem);
  color: var(--white);
  margin-bottom: 20px;
  line-height: 1.1;
}

.hero-sub {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.82);
  margin-bottom: 28px;
  line-height: 1.65;
}

.hero-sub strong {
  color: var(--white);
}

.hero-trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 36px;
}

.trust-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.9);
  font-size: 13px;
  font-weight: 500;
  padding: 7px 14px;
  border-radius: 100px;
  backdrop-filter: blur(8px);
}

.trust-chip svg {
  color: #6ee77f;
  flex-shrink: 0;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

/* Hero Stats */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 60px;
  max-width: 720px;
}

.stat-card {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius);
  padding: 20px 16px;
  text-align: center;
  backdrop-filter: blur(12px);
  transition: all var(--transition);
}

.stat-card:hover {
  background: rgba(255,255,255,0.14);
  transform: translateY(-3px);
}

.stat-number {
  font-family: 'Outfit', sans-serif;
  font-size: 1.9rem;
  font-weight: 900;
  color: var(--orange);
  line-height: 1;
  margin-bottom: 6px;
}

.stat-label {
  font-size: 12px;
  color: rgba(255,255,255,0.7);
  font-weight: 500;
  line-height: 1.3;
}

/* ===== TRUST BAR ===== */
.trust-bar {
  background: var(--white);
  border-bottom: 1px solid var(--gray);
  padding: 28px 0;
  box-shadow: 0 2px 16px rgba(0,0,0,0.04);
}

.trust-bar-inner {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0;
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 32px;
}

.trust-item div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.trust-item strong {
  font-size: 14px;
  font-weight: 700;
  color: var(--navy);
}

.trust-item span {
  font-size: 12px;
  color: var(--gray-text);
}

.trust-icon {
  width: 32px;
  height: 32px;
  color: var(--orange);
  flex-shrink: 0;
}

.trust-divider {
  width: 1px;
  height: 44px;
  background: var(--gray);
  flex-shrink: 0;
}

/* ===== ESTIMATOR SECTION ===== */
.estimator-section {
  background: var(--gray-light);
  padding: 96px 0;
}

.estimator-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

/* Left column */
.estimator-left .section-title {
  margin-bottom: 14px;
}

.estimator-left .section-sub {
  margin-bottom: 36px;
}

.value-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 36px;
}

.value-list li {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.value-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  background: rgba(242, 92, 5, 0.1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--orange);
}

.value-list li div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.value-list li strong {
  font-size: 15px;
  font-weight: 700;
  color: var(--navy);
}

.value-list li span {
  font-size: 14px;
  color: var(--text-light);
}

/* Review card */
.review-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--orange);
}

.review-stars {
  color: #f59e0b;
  font-size: 20px;
  margin-bottom: 12px;
  letter-spacing: 2px;
}

.review-text {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-light);
  font-style: italic;
  margin-bottom: 16px;
}

.review-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.reviewer-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--orange);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 16px;
  flex-shrink: 0;
}

.review-author div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.review-author strong {
  font-size: 14px;
  color: var(--navy);
}

.review-author span {
  font-size: 12px;
  color: var(--gray-text);
}

/* Right: Widget card */
.widget-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  position: sticky;
  top: 110px;
}

.widget-header {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-lighter) 100%);
  padding: 28px 28px 20px;
  text-align: center;
  color: var(--white);
}

.widget-icon {
  font-size: 36px;
  margin-bottom: 10px;
  display: block;
}

.widget-header h3 {
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 4px;
}

.widget-header p {
  font-size: 13px;
  color: rgba(255,255,255,0.65);
  font-weight: 500;
}

.widget-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--gray-light);
  border-bottom: 2px solid var(--gray);
}

.tab-btn {
  padding: 14px;
  font-size: 13px;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  color: var(--gray-text);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
}

.tab-btn:hover {
  color: var(--navy);
  background: var(--gray);
}

.tab-btn.active {
  color: var(--orange);
  background: var(--white);
  border-bottom-color: var(--orange);
  font-weight: 700;
}

.widget-panel {
  display: none;
  padding: 20px;
}

.widget-panel.active {
  display: block;
}

.iframe-wrap {
  border-radius: 8px;
  overflow: hidden;
}

.widget-thanks {
  text-align: center;
  padding: 40px 20px;
}

.thanks-icon {
  font-size: 52px;
  margin-bottom: 16px;
  display: block;
}

.widget-thanks h3 {
  font-size: 1.5rem;
  color: var(--navy);
  margin-bottom: 10px;
}

.widget-thanks p {
  color: var(--text-light);
  font-size: 15px;
  line-height: 1.6;
}

.widget-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 14px;
  background: var(--gray-light);
  font-size: 12px;
  color: var(--gray-text);
  font-weight: 500;
}

/* Repair form */
.repair-intro {
  background: #fff8f3;
  border: 1px solid rgba(242, 92, 5, 0.2);
  border-radius: 8px;
  padding: 12px 16px;
  margin-bottom: 20px;
}

.repair-intro p {
  font-size: 14px;
  color: var(--text-light);
}

.repair-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.form-group label {
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
}

.form-group input {
  padding: 11px 14px;
  border: 1.5px solid var(--gray);
  border-radius: 8px;
  font-size: 14px;
  font-family: 'Inter', sans-serif;
  color: var(--text);
  transition: border-color var(--transition);
  background: var(--white);
}

.form-group input:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(242, 92, 5, 0.1);
}

.form-group input::placeholder {
  color: #bbb;
}

.form-check {
  margin-top: 4px;
}

.checkbox-label {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 12px;
  color: var(--text-light);
  line-height: 1.5;
  cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  min-width: 16px;
  margin-top: 2px;
  accent-color: var(--orange);
}

.checkbox-label a {
  color: var(--orange);
  text-decoration: underline;
}

.repair-thanks {
  text-align: center;
  padding: 40px 20px;
}

/* ===== WHY SECTION ===== */
.why-section {
  padding: 96px 0;
  background: var(--white);
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.why-card {
  background: var(--off-white);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  border: 1px solid var(--gray);
  transition: all var(--transition);
}

.why-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: rgba(242, 92, 5, 0.2);
}

.why-icon {
  width: 56px;
  height: 56px;
  background: rgba(242, 92, 5, 0.08);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--orange);
  margin-bottom: 20px;
  transition: all var(--transition);
}

.why-card:hover .why-icon {
  background: var(--orange);
  color: var(--white);
}

.why-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 10px;
}

.why-card p {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.65;
}

/* ===== SERVICES SECTION ===== */
.services-section {
  padding: 96px 0;
  background: var(--gray-light);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.service-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  text-align: center;
  border: 1px solid var(--gray);
  transition: all var(--transition);
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--orange);
}

.service-emoji {
  font-size: 40px;
  margin-bottom: 16px;
  display: block;
}

.service-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 10px;
}

.service-card p {
  font-size: 13.5px;
  color: var(--text-light);
  line-height: 1.6;
  margin-bottom: 20px;
}

.service-link {
  color: var(--orange);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all var(--transition);
}

.service-link:hover {
  color: var(--orange-dark);
  gap: 8px;
}

/* ===== REVIEWS SECTION ===== */
.reviews-section {
  padding: 96px 0;
  background: var(--white);
}

.reviews-rating-bar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
}

.big-stars {
  font-size: 28px;
  color: #f59e0b;
  letter-spacing: 3px;
}

.big-rating {
  font-size: 15px;
  color: var(--text-light);
  font-weight: 500;
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.review-item {
  background: var(--off-white);
  border-radius: var(--radius-lg);
  padding: 28px;
  border: 1px solid var(--gray);
  transition: all var(--transition);
}

.review-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.review-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.review-header div:nth-child(2) {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}

.review-header strong {
  font-size: 14px;
  color: var(--navy);
  font-weight: 700;
}

.review-location {
  font-size: 12px;
  color: var(--gray-text);
}

.review-stars-sm {
  color: #f59e0b;
  font-size: 14px;
  letter-spacing: 1px;
  margin-left: auto;
}

.review-item p {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.7;
  font-style: italic;
}

/* ===== CTA BANNER ===== */
.cta-banner {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-lighter) 60%, #3a1a60 100%);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(242, 92, 5, 0.18) 0%, transparent 70%);
  pointer-events: none;
}

.cta-banner-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 60px;
  align-items: center;
}

.cta-banner-text h2 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  color: var(--white);
  margin-bottom: 14px;
}

.cta-banner-text p {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.72);
  margin-bottom: 28px;
  line-height: 1.65;
}

.cta-checklist {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cta-checklist li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  color: rgba(255,255,255,0.85);
}

.cta-checklist li span {
  color: #6ee77f;
  font-weight: 800;
  font-size: 16px;
}

.cta-banner-actions {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: center;
  min-width: 280px;
}

.cta-note {
  font-size: 12px;
  color: rgba(255,255,255,0.45);
  text-align: center;
}

/* ===== FOOTER ===== */
.footer {
  background: #0f0f1f;
  padding: 56px 0 0;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-logo {
  height: 44px;
  width: auto;
  margin-bottom: 16px;
  filter: brightness(0) invert(1);
}

.footer-logo-wrap p {
  font-size: 13px;
  color: rgba(255,255,255,0.45);
  line-height: 1.6;
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-contact p {
  font-size: 14px;
  color: rgba(255,255,255,0.65);
}

.footer-contact a {
  color: var(--orange);
  transition: color var(--transition);
}

.footer-contact a:hover {
  color: var(--orange-light);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  font-size: 14px;
  color: rgba(255,255,255,0.55);
  transition: color var(--transition);
  display: inline-flex;
  align-items: center;
}

.footer-links a:hover {
  color: var(--orange);
}

.footer-bottom {
  padding: 20px 0;
  text-align: center;
}

.footer-bottom p {
  font-size: 12px;
  color: rgba(255,255,255,0.3);
}

/* ===== MOBILE STICKY CTA ===== */
.mobile-sticky-cta {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  padding: 12px 16px;
  padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  background: var(--white);
  border-top: 2px solid var(--gray);
  box-shadow: 0 -4px 24px rgba(0,0,0,0.12);
  gap: 10px;
}

.mobile-cta-call {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex: 1;
  padding: 13px 16px;
  background: transparent;
  border: 2px solid var(--navy);
  color: var(--navy);
  font-size: 14px;
  font-weight: 700;
  border-radius: var(--radius);
  transition: all var(--transition);
}

.mobile-cta-call:hover, .mobile-cta-call:active {
  background: var(--navy);
  color: var(--white);
}

.mobile-cta-estimate {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 2;
  padding: 13px 16px;
  background: var(--orange);
  color: var(--white);
  font-size: 14px;
  font-weight: 700;
  border-radius: var(--radius);
  box-shadow: 0 4px 16px rgba(242, 92, 5, 0.35);
  transition: all var(--transition);
}

.mobile-cta-estimate:hover, .mobile-cta-estimate:active {
  background: var(--orange-dark);
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse-ring {
  0% { box-shadow: 0 0 0 0 rgba(242, 92, 5, 0.4); }
  70% { box-shadow: 0 0 0 14px rgba(242, 92, 5, 0); }
  100% { box-shadow: 0 0 0 0 rgba(242, 92, 5, 0); }
}

.btn-primary {
  animation: pulse-ring 2.5s ease-out infinite;
}

.btn-primary:hover {
  animation: none;
}

/* ===== RESPONSIVE ===== */

/* Tablet */
@media (max-width: 1024px) {
  .estimator-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .widget-card {
    position: static;
  }

  .hero-stats {
    grid-template-columns: repeat(4, 1fr);
  }

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

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

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

  .cta-banner-inner {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }

  .cta-checklist {
    align-items: center;
  }

  .cta-banner-actions {
    align-items: center;
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }

  .footer-logo-wrap {
    grid-column: 1 / -1;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .top-bar-right {
    display: none;
  }

  .hero {
    min-height: auto;
    padding: 48px 0 80px;
  }

  .hero-headline {
    font-size: 2rem;
  }

  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
    margin-top: 36px;
    max-width: 100%;
  }

  .hero-cta-group {
    flex-direction: column;
    align-items: stretch;
  }

  .btn-large {
    text-align: center;
    justify-content: center;
  }

  .trust-bar-inner {
    flex-direction: column;
    gap: 0;
  }

  .trust-item {
    padding: 12px 0;
    width: 100%;
  }

  .trust-divider {
    width: 100%;
    height: 1px;
  }

  .estimator-section {
    padding: 60px 0 80px;
  }

  .why-grid {
    grid-template-columns: 1fr;
  }

  .services-grid {
    grid-template-columns: 1fr 1fr;
  }

  .reviews-grid {
    grid-template-columns: 1fr;
  }

  .widget-tabs .tab-btn {
    font-size: 12px;
    padding: 12px 8px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .mobile-sticky-cta {
    display: flex;
  }

  body {
    padding-bottom: 70px;
  }

  .why-section,
  .services-section,
  .reviews-section {
    padding: 60px 0;
  }

  .cta-banner {
    padding: 60px 0;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }

  .footer-logo-wrap {
    grid-column: auto;
  }
}

@media (max-width: 480px) {
  .hero-badge {
    font-size: 11px;
    padding: 6px 12px;
  }

  .hero-headline {
    font-size: 1.75rem;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .stat-number {
    font-size: 1.6rem;
  }

  .logo {
    height: 38px;
  }
}

/* Scroll animation utility */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}
