/* ========================================
   COMMERCIALBER.IE — MASTER STYLESHEET
   Brand: Homerating.ie system
   Fonts: DM Sans + Source Serif 4
   Colors: Deep Teal / Energy Green / Warm Cream
   ======================================== */

/* --- VARIABLES --- */
:root {
  --deep-teal: #0B3D3F;
  --teal-dark: #082E30;
  --teal-mid: #14605E;
  --teal-light: #1A7A77;
  --energy-green: #2ECC71;
  --green-dark: #27AE60;
  --green-glow: #34E87D;
  --warm-cream: #FDF8F0;
  --cream-dark: #F5EDE0;
  --sand: #E8DDD0;
  --charcoal: #1A1A1A;
  --text-primary: #1A1A1A;
  --text-secondary: #4A5568;
  --text-light: #718096;
  --accent-gold: #D4A843;
  --gold-light: #E8C468;
  --border-light: #E2D9CC;
  --white: #FFFFFF;
  --shadow-sm: 0 1px 3px rgba(11,61,63,0.06);
  --shadow-md: 0 4px 16px rgba(11,61,63,0.08);
  --shadow-lg: 0 8px 32px rgba(11,61,63,0.12);
  --shadow-xl: 0 16px 48px rgba(11,61,63,0.16);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
}

/* --- RESET --- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  font-family: 'DM Sans', -apple-system, sans-serif;
  background: var(--warm-cream);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
button { border: none; cursor: pointer; font-family: inherit; }
ul, ol { list-style: none; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* --- ANIMATIONS --- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}
@keyframes grain {
  0%, 100% { transform: translate(0, 0); }
  10% { transform: translate(-5%, -10%); }
  50% { transform: translate(12%, 9%); }
  90% { transform: translate(-1%, 7%); }
}
.animate-up { opacity: 0; animation: fadeUp 0.7s cubic-bezier(0.23,1,0.32,1) forwards; }
.delay-1 { animation-delay: .1s; }
.delay-2 { animation-delay: .2s; }
.delay-3 { animation-delay: .3s; }
.delay-4 { animation-delay: .4s; }
.delay-5 { animation-delay: .5s; }

/* ========================================
   NAVIGATION
   ======================================== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 0 24px; transition: all .35s ease;
}
.nav.scrolled {
  background: rgba(11,61,63,0.97);
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 20px rgba(0,0,0,0.15);
}
.nav-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; height: 72px;
}
.nav-logo {
  display: flex; align-items: center; gap: 3px;
  font-size: 20px; font-weight: 700; color: var(--white); letter-spacing: -0.3px;
}
.nav-logo span { color: var(--energy-green); }
.nav-links {
  display: flex; align-items: center; gap: 32px;
}
.nav-links a {
  color: rgba(255,255,255,0.8); font-size: 14px; font-weight: 500;
  transition: color .2s; letter-spacing: .2px;
}
.nav-links a:hover { color: var(--white); }
.nav-cta {
  background: var(--energy-green); color: var(--deep-teal) !important;
  padding: 10px 22px; border-radius: 100px;
  font-weight: 700 !important; font-size: 13px !important;
  transition: all .25s ease;
}
.nav-cta:hover {
  background: var(--green-glow); transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(46,204,113,0.3);
}
.nav-phone {
  display: flex; align-items: center; gap: 6px;
  color: var(--energy-green) !important; font-weight: 600 !important;
}
.nav-phone svg { width: 14px; height: 14px; }
.mobile-menu-btn { display: none; background: none; color: white; padding: 8px; }
.mobile-nav {
  display: none; position: fixed; top: 72px; left: 0; right: 0;
  background: var(--deep-teal); padding: 24px; z-index: 99;
  flex-direction: column; gap: 16px;
  border-top: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  color: rgba(255,255,255,0.85); font-size: 16px; font-weight: 500;
  padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,0.06);
}

/* ========================================
   HERO (Homepage)
   ======================================== */
.hero {
  position: relative; background: var(--deep-teal);
  min-height: 92vh; display: flex; align-items: center; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 70% 20%, rgba(46,204,113,0.07) 0%, transparent 60%),
    radial-gradient(ellipse 60% 80% at 20% 80%, rgba(20,96,94,0.15) 0%, transparent 50%);
  pointer-events: none;
}
.hero::after {
  content: ''; position: absolute; inset: -50%; width: 200%; height: 200%;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
  animation: grain 8s steps(10) infinite; pointer-events: none; opacity: 0.5;
}
.hero-lines { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.hero-lines::before {
  content: ''; position: absolute; top: 15%; right: -5%;
  width: 500px; height: 500px;
  border: 1px solid rgba(46,204,113,0.06); border-radius: 50%;
}
.hero-lines::after {
  content: ''; position: absolute; bottom: 10%; right: 5%;
  width: 300px; height: 300px;
  border: 1px solid rgba(46,204,113,0.04); border-radius: 50%;
}
.hero-content {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1fr 420px; gap: 60px;
  align-items: center; padding-top: 72px;
}
.hero-text { max-width: 600px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(46,204,113,0.1); border: 1px solid rgba(46,204,113,0.15);
  color: var(--energy-green); font-size: 12px; font-weight: 600;
  letter-spacing: 1.5px; text-transform: uppercase;
  padding: 8px 18px; border-radius: 100px; margin-bottom: 28px;
}
.hero-badge::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: var(--energy-green); animation: pulse 2s ease-in-out infinite;
}
.hero h1 {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: clamp(38px, 5vw, 56px); font-weight: 700; line-height: 1.1;
  color: var(--white); margin-bottom: 22px; letter-spacing: -0.5px;
}
.hero h1 em { font-style: normal; color: var(--energy-green); }
.hero-sub {
  font-size: 18px; color: rgba(255,255,255,0.7); line-height: 1.7;
  margin-bottom: 36px; max-width: 480px;
}
.hero-trust { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.trust-item {
  display: flex; align-items: center; gap: 8px;
  color: rgba(255,255,255,0.55); font-size: 13px; font-weight: 500;
}
.trust-icon { width: 20px; height: 20px; color: var(--energy-green); display: flex; align-items: center; justify-content: center; }

/* ========================================
   PAGE HERO (Inner pages)
   ======================================== */
.page-hero {
  background: var(--deep-teal); padding: 130px 0 70px; position: relative; overflow: hidden;
}
.page-hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 60% at 70% 30%, rgba(46,204,113,0.06), transparent 60%);
  pointer-events: none;
}
.page-hero-content { position: relative; z-index: 1; max-width: 700px; }
.page-hero .section-label { color: var(--energy-green); margin-bottom: 12px; }
.page-hero h1 {
  font-family: 'Source Serif 4', serif;
  font-size: clamp(32px, 4vw, 48px); font-weight: 700; line-height: 1.15;
  color: var(--white); margin-bottom: 18px;
}
.page-hero h1 em { font-style: normal; color: var(--energy-green); }
.page-hero p {
  font-size: 17px; color: rgba(255,255,255,0.7); line-height: 1.75; max-width: 560px;
}
.breadcrumb {
  display: flex; gap: 8px; margin-bottom: 20px;
  font-size: 13px; color: rgba(255,255,255,0.4);
}
.breadcrumb a { color: rgba(255,255,255,0.5); transition: color .2s; }
.breadcrumb a:hover { color: var(--energy-green); }
.breadcrumb span { color: rgba(255,255,255,0.3); }

/* ========================================
   QUOTE CARD
   ======================================== */
.quote-card {
  background: var(--white); border-radius: var(--radius-xl);
  padding: 36px; box-shadow: var(--shadow-xl), 0 0 0 1px rgba(0,0,0,0.04);
  position: relative;
}
.quote-card::before {
  content: ''; position: absolute; top: -1px; left: 24px; right: 24px; height: 3px;
  background: linear-gradient(90deg, var(--energy-green), var(--teal-light));
  border-radius: 0 0 4px 4px;
}
.quote-header { margin-bottom: 28px; }
.quote-header h2 {
  font-family: 'Source Serif 4', serif; font-size: 22px; font-weight: 700;
  color: var(--deep-teal); margin-bottom: 6px;
}
.quote-header p { font-size: 13px; color: var(--text-light); }
.form-group { margin-bottom: 20px; }
.form-label {
  display: block; font-size: 12px; font-weight: 700; color: var(--text-secondary);
  letter-spacing: .8px; text-transform: uppercase; margin-bottom: 8px;
}
.form-select, .form-input {
  width: 100%; padding: 13px 16px; background: var(--warm-cream);
  border: 1.5px solid var(--border-light); border-radius: var(--radius-sm);
  font-family: 'DM Sans', sans-serif; font-size: 15px; color: var(--text-primary);
  transition: all .2s ease; appearance: none; -webkit-appearance: none;
}
.form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%234A5568' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
  padding-right: 40px; cursor: pointer;
}
.form-select:focus, .form-input:focus {
  outline: none; border-color: var(--teal-mid);
  box-shadow: 0 0 0 3px rgba(20,96,94,0.1); background-color: var(--white);
}
.form-textarea {
  width: 100%; padding: 13px 16px; background: var(--warm-cream);
  border: 1.5px solid var(--border-light); border-radius: var(--radius-sm);
  font-family: 'DM Sans', sans-serif; font-size: 15px; color: var(--text-primary);
  transition: all .2s ease; resize: vertical; min-height: 100px;
}
.form-textarea:focus {
  outline: none; border-color: var(--teal-mid);
  box-shadow: 0 0 0 3px rgba(20,96,94,0.1); background-color: var(--white);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.btn-quote {
  width: 100%; padding: 16px; background: var(--energy-green);
  color: var(--deep-teal); font-size: 15px; font-weight: 700;
  border-radius: var(--radius-sm); transition: all .25s ease; letter-spacing: .3px;
}
.btn-quote:hover {
  background: var(--green-dark); color: var(--white);
  transform: translateY(-1px); box-shadow: 0 6px 20px rgba(46,204,113,0.3);
}
.quote-footer { text-align: center; margin-top: 16px; font-size: 12px; color: var(--text-light); }
.quote-footer strong { color: var(--text-secondary); }

/* Quote result */
.quote-result {
  display: none; background: linear-gradient(135deg, var(--deep-teal), var(--teal-mid));
  border-radius: var(--radius-md); padding: 24px; margin-top: 20px;
  text-align: center; color: white; animation: fadeUp .4s ease;
}
.quote-result.visible { display: block; }
.quote-result .price-label {
  font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; opacity: .7; margin-bottom: 4px;
}
.quote-result .price {
  font-family: 'Source Serif 4', serif; font-size: 32px; font-weight: 700;
  color: var(--energy-green); margin-bottom: 8px;
}
.quote-result .price-note { font-size: 12px; opacity: .65; }

/* Floating widget is self-contained with inline styles */


/* Form success (hero form) */
.form-success { display: none; text-align: center; padding: 24px 0; }
.form-success.visible { display: block; animation: fadeUp .5s ease; }
.form-success svg { margin: 0 auto 16px; color: var(--energy-green); }
.form-success h3 {
  font-family: 'Source Serif 4', serif; font-size: 22px; font-weight: 700;
  color: var(--deep-teal); margin-bottom: 8px;
}
.form-success p { font-size: 14px; color: var(--text-secondary); line-height: 1.7; }

/* ========================================
   SECTION COMMONS
   ======================================== */
.section { padding: 100px 0; }
.section-label {
  font-size: 11px; font-weight: 700; letter-spacing: 2.5px;
  text-transform: uppercase; color: var(--teal-mid); margin-bottom: 12px;
}
.section-title {
  font-family: 'Source Serif 4', serif;
  font-size: clamp(30px, 3.5vw, 40px); font-weight: 700;
  color: var(--deep-teal); line-height: 1.2; margin-bottom: 16px; letter-spacing: -.3px;
}
.section-subtitle {
  font-size: 17px; color: var(--text-secondary); line-height: 1.7; max-width: 560px;
}
.section-center { text-align: center; }
.section-center .section-subtitle { margin: 0 auto; }

/* ========================================
   STATS BAR
   ======================================== */
.stats-bar {
  background: var(--deep-teal); padding: 56px 0; position: relative; overflow: hidden;
}
.stats-bar::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, rgba(46,204,113,0.04), transparent 70%);
}
.stats-bar::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(46,204,113,0.03) 50%, transparent 70%);
  background-size: 200% 100%;
  animation: statsShimmer 6s ease-in-out infinite;
}
@keyframes statsShimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px;
  position: relative; z-index: 1;
}
.stat { text-align: center; }
.stat-number {
  font-family: 'Source Serif 4', serif; font-size: 44px; font-weight: 700;
  color: var(--energy-green); line-height: 1; margin-bottom: 6px;
}
.stat-label { font-size: 13px; color: rgba(255,255,255,0.6); font-weight: 500; }

/* ========================================
   SERVICE CARDS
   ======================================== */
.services { background: var(--white); position: relative; }
.services::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-light), transparent);
}
.services-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 48px;
}
.service-card {
  background: var(--warm-cream); border: 1px solid var(--border-light);
  border-radius: var(--radius-lg); padding: 36px 28px;
  transition: all .35s cubic-bezier(0.23,1,0.32,1);
  position: relative; overflow: hidden; cursor: pointer;
}
.service-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--energy-green); transform: scaleX(0);
  transform-origin: left; transition: transform .35s ease;
}
.service-card:hover {
  border-color: var(--teal-mid); transform: translateY(-4px); box-shadow: var(--shadow-lg);
}
.service-card:hover::before { transform: scaleX(1); }
.service-icon {
  width: 52px; height: 52px;
  background: linear-gradient(135deg, var(--deep-teal), var(--teal-mid));
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px; transition: transform .3s ease;
}
.service-card:hover .service-icon { transform: scale(1.05); }
.service-icon svg { width: 24px; height: 24px; color: var(--energy-green); }
.service-card h3 {
  font-family: 'Source Serif 4', serif; font-size: 20px; font-weight: 700;
  color: var(--deep-teal); margin-bottom: 10px;
}
.service-card p { font-size: 14px; color: var(--text-secondary); line-height: 1.7; margin-bottom: 16px; }
.service-link {
  font-size: 13px; font-weight: 700; color: var(--teal-mid);
  display: inline-flex; align-items: center; gap: 6px; transition: gap .2s ease;
}
.service-card:hover .service-link { gap: 10px; color: var(--deep-teal); }
.services-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 20px; }

/* ========================================
   STEPS
   ======================================== */
.steps-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 48px; position: relative;
}
.steps-grid::before {
  content: ''; position: absolute; top: 36px; left: 60px; right: 60px; height: 2px;
  background: linear-gradient(90deg, var(--energy-green), var(--teal-mid), var(--energy-green), var(--accent-gold));
  opacity: .25;
  background-size: 200% 100%;
  animation: gradientSlide 4s ease infinite;
}
@keyframes gradientSlide {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
.step { text-align: center; position: relative; }
.step-num {
  width: 56px; height: 56px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
  font-family: 'Source Serif 4', serif; font-size: 22px; font-weight: 700;
  position: relative; z-index: 1;
}
.step:nth-child(1) .step-num { background: var(--deep-teal); color: var(--energy-green); }
.step:nth-child(2) .step-num { background: var(--teal-mid); color: var(--white); }
.step:nth-child(3) .step-num { background: var(--energy-green); color: var(--deep-teal); }
.step:nth-child(4) .step-num { background: var(--accent-gold); color: var(--deep-teal); }
.step h3 { font-size: 16px; font-weight: 700; color: var(--deep-teal); margin-bottom: 8px; }
.step p { font-size: 13px; color: var(--text-secondary); line-height: 1.65; max-width: 220px; margin: 0 auto; }

/* ========================================
   WHY US / FEATURES
   ======================================== */
.why-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px;
  align-items: center; margin-top: 48px;
}
.why-features { display: grid; gap: 24px; }
.why-feature { display: flex; gap: 18px; }
.why-icon {
  width: 44px; height: 44px; min-width: 44px;
  background: linear-gradient(135deg, rgba(46,204,113,0.1), rgba(20,96,94,0.08));
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center; color: var(--teal-mid);
}
.why-icon svg { width: 20px; height: 20px; }
.why-feature h4 { font-size: 16px; font-weight: 700; color: var(--deep-teal); margin-bottom: 4px; }
.why-feature p { font-size: 14px; color: var(--text-secondary); line-height: 1.65; }

/* Testimonial block */
.why-testimonial {
  background: var(--deep-teal); border-radius: var(--radius-xl);
  padding: 44px; position: relative; overflow: hidden;
}
.why-testimonial::before {
  content: ''; position: absolute; top: -30%; right: -20%;
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(46,204,113,0.08), transparent 70%);
  border-radius: 50%;
}
.testimonial-quote { position: relative; z-index: 1; }
.quote-mark {
  font-family: 'Source Serif 4', serif; font-size: 72px;
  color: var(--energy-green); line-height: .5; margin-bottom: 16px; opacity: .4;
}
.testimonial-text {
  font-family: 'Source Serif 4', serif; font-size: 19px; font-weight: 400;
  font-style: italic; color: rgba(255,255,255,0.9); line-height: 1.65; margin-bottom: 24px;
}
.testimonial-author { font-size: 14px; font-weight: 600; color: var(--energy-green); }
.testimonial-role { font-size: 13px; color: rgba(255,255,255,0.5); margin-top: 2px; }

/* ========================================
   CONTENT SECTIONS
   ======================================== */
.content-section { padding: 80px 0; }
.content-section.alt { background: var(--white); }

.content-block { max-width: 760px; margin: 0 auto; }
.content-block h2 {
  font-family: 'Source Serif 4', serif; font-size: 28px; font-weight: 700;
  color: var(--deep-teal); margin-bottom: 16px; margin-top: 48px; line-height: 1.3;
}
.content-block h2:first-child { margin-top: 0; }
.content-block h3 {
  font-family: 'Source Serif 4', serif; font-size: 22px; font-weight: 700;
  color: var(--deep-teal); margin-bottom: 12px; margin-top: 36px; line-height: 1.3;
}
.content-block p {
  font-size: 16px; color: var(--text-secondary); line-height: 1.8; margin-bottom: 16px;
}
.content-block ul, .content-block ol {
  margin: 16px 0 24px 24px; list-style: disc;
}
.content-block ol { list-style: decimal; }
.content-block li {
  font-size: 15px; color: var(--text-secondary); line-height: 1.75; margin-bottom: 8px;
}
.content-block strong { color: var(--text-primary); }

/* Info box */
.info-box {
  background: var(--white); border: 1px solid var(--border-light);
  border-left: 4px solid var(--energy-green); border-radius: var(--radius-sm);
  padding: 24px 28px; margin: 28px 0;
}
.info-box.teal { border-left-color: var(--teal-mid); }
.info-box.gold { border-left-color: var(--accent-gold); }
.info-box h4 {
  font-size: 15px; font-weight: 700; color: var(--deep-teal); margin-bottom: 8px;
}
.info-box p { font-size: 14px; margin-bottom: 0; }

/* ========================================
   FAQ ACCORDION
   ======================================== */
.faq-list { max-width: 760px; margin: 48px auto 0; }
.faq-item {
  border-bottom: 1px solid var(--border-light);
}
.faq-question {
  width: 100%; padding: 24px 0; background: none;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  text-align: left; font-size: 17px; font-weight: 600; color: var(--deep-teal);
  transition: color .2s;
}
.faq-question:hover { color: var(--teal-mid); }
.faq-icon {
  width: 28px; height: 28px; min-width: 28px; border-radius: 50%;
  background: var(--warm-cream); display: flex; align-items: center; justify-content: center;
  transition: all .3s ease; color: var(--teal-mid);
}
.faq-item.open .faq-icon { transform: rotate(45deg); background: var(--energy-green); color: var(--deep-teal); }
.faq-answer {
  max-height: 0; overflow: hidden; transition: max-height .4s ease;
}
.faq-item.open .faq-answer { max-height: 600px; }
.faq-answer-inner {
  padding: 0 0 24px; font-size: 15px; color: var(--text-secondary); line-height: 1.75;
}

/* ========================================
   BLOG / INSIGHTS GRID
   ======================================== */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 48px; }
.blog-card {
  background: var(--white); border: 1px solid var(--border-light);
  border-radius: var(--radius-lg); overflow: hidden; transition: all .3s ease;
}
.blog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--teal-mid); }
.blog-card-img {
  height: 180px; background: linear-gradient(135deg, var(--deep-teal), var(--teal-mid));
  display: flex; align-items: center; justify-content: center; position: relative;
}
.blog-card-img svg { width: 48px; height: 48px; color: rgba(46,204,113,0.3); }
.blog-cat-tag {
  position: absolute; top: 16px; left: 16px;
  background: var(--energy-green); color: var(--deep-teal);
  font-size: 10px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
  padding: 4px 10px; border-radius: 4px;
}
.blog-card-body { padding: 24px; }
.blog-card-body h3 {
  font-family: 'Source Serif 4', serif; font-size: 18px; font-weight: 700;
  color: var(--deep-teal); line-height: 1.35; margin-bottom: 10px;
}
.blog-card-body p { font-size: 14px; color: var(--text-secondary); line-height: 1.65; margin-bottom: 14px; }
.blog-date { font-size: 12px; color: var(--text-light); font-weight: 500; }

/* ========================================
   CTA SECTION
   ======================================== */
.cta-section {
  background: linear-gradient(135deg, var(--deep-teal), var(--teal-dark));
  padding: 80px 0; text-align: center; position: relative; overflow: hidden;
}
.cta-section::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 50% 80% at 30% 50%, rgba(46,204,113,0.06), transparent),
    radial-gradient(ellipse 50% 80% at 70% 50%, rgba(212,168,67,0.04), transparent);
}
.cta-content { position: relative; z-index: 1; }
.cta-section .section-title { color: var(--white); margin-bottom: 12px; }
.cta-sub {
  font-size: 17px; color: rgba(255,255,255,0.6); margin-bottom: 36px;
  max-width: 500px; margin-left: auto; margin-right: auto; line-height: 1.7;
}
.cta-buttons { display: flex; align-items: center; justify-content: center; gap: 16px; flex-wrap: wrap; }
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 16px 32px; background: var(--energy-green); color: var(--deep-teal);
  font-size: 15px; font-weight: 700; border-radius: 100px; transition: all .25s ease;
}
.btn-primary:hover {
  background: var(--green-glow); transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(46,204,113,0.3);
}
.btn-secondary {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 16px 32px; background: transparent;
  border: 1.5px solid rgba(255,255,255,0.2); color: var(--white);
  font-size: 15px; font-weight: 600; border-radius: 100px; transition: all .25s ease;
}
.btn-secondary:hover { border-color: rgba(255,255,255,0.4); background: rgba(255,255,255,0.05); }

/* Inline CTA bar */
.inline-cta {
  background: linear-gradient(135deg, var(--deep-teal), var(--teal-mid));
  border-radius: var(--radius-xl); padding: 48px; margin-top: 48px;
  display: flex; align-items: center; justify-content: space-between; gap: 32px;
}
.inline-cta h3 {
  font-family: 'Source Serif 4', serif; font-size: 24px; font-weight: 700;
  color: var(--white); margin-bottom: 8px;
}
.inline-cta p { font-size: 15px; color: rgba(255,255,255,0.65); }

/* ========================================
   FOOTER
   ======================================== */
.footer { background: var(--charcoal); color: rgba(255,255,255,0.6); padding: 64px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.footer-brand .nav-logo { margin-bottom: 16px; font-size: 22px; }
.footer-brand p { font-size: 14px; line-height: 1.7; max-width: 280px; margin-bottom: 20px; }
.footer-seai {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.08);
  padding: 10px 16px; border-radius: var(--radius-sm);
  font-size: 12px; font-weight: 600; color: var(--energy-green);
}
.footer h4 {
  font-size: 12px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase;
  color: rgba(255,255,255,0.4); margin-bottom: 20px;
}
.footer ul { display: flex; flex-direction: column; gap: 12px; }
.footer ul a { font-size: 14px; color: rgba(255,255,255,0.6); transition: color .2s; }
.footer ul a:hover { color: var(--white); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08); padding-top: 24px;
  display: flex; align-items: center; justify-content: space-between; font-size: 13px;
}
.footer-bottom a { color: rgba(255,255,255,0.4); transition: color .2s; }
.footer-bottom a:hover { color: rgba(255,255,255,0.7); }
.footer-links-bottom { display: flex; gap: 24px; }

/* ========================================
   MOBILE PHONE BAR
   ======================================== */


/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 1024px) {
  .hero-content { grid-template-columns: 1fr; gap: 40px; padding-top: 100px; padding-bottom: 60px; }
  .quote-card { max-width: 480px; }
  .services-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .blog-grid { grid-template-columns: 1fr 1fr; }
  .inline-cta { flex-direction: column; text-align: center; }
}
@media (max-width: 768px) {
  .nav-links { display: none; }
  .mobile-menu-btn { display: block; }
  .hero { min-height: auto; padding: 0 0 48px; }
  .hero-content { padding-top: 90px; padding-bottom: 20px; }
  .hero h1 { font-size: 34px; }
  .quote-card { max-width: 100%; padding: 28px; }
  .form-row { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .services-row-2 { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .steps-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .steps-grid::before { display: none; }
  .why-grid { grid-template-columns: 1fr; gap: 36px; }
  .blog-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .section { padding: 64px 0; }

  .floating-quote-btn { bottom: 76px; right: 16px; }

  .page-hero { padding: 100px 0 50px; }
}
@media (max-width: 480px) {
  .hero h1 { font-size: 28px; }
  .stat-number { font-size: 36px; }
  .cta-buttons { flex-direction: column; }
  .btn-primary, .btn-secondary { width: 100%; justify-content: center; }
}

/* ========================================
   SCROLL REVEAL ANIMATIONS
   ======================================== */
.reveal {
  opacity: 0;
  transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1);
  will-change: transform, opacity;
}
.reveal.reveal-up {
  transform: translateY(40px);
}
.reveal.reveal-left {
  transform: translateX(-40px);
}
.reveal.reveal-right {
  transform: translateX(40px);
}
.reveal.reveal-scale {
  transform: scale(0.92);
}
.reveal.revealed {
  opacity: 1;
  transform: translateY(0) translateX(0) scale(1);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .reveal { transition: opacity 0.4s ease; transform: none !important; }
  .reveal.revealed { opacity: 1; }
  .floating-quote-btn { animation: none !important; }
  .floating-quote-btn::after { animation: none !important; }
}

/* ========================================
   ENHANCED MICRO-INTERACTIONS
   ======================================== */

/* Nav link underline animation */
.nav-links a:not(.nav-cta):not(.nav-phone) {
  position: relative;
}
.nav-links a:not(.nav-cta):not(.nav-phone)::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--energy-green);
  border-radius: 1px;
  transition: width 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}
.nav-links a:not(.nav-cta):not(.nav-phone):hover::after {
  width: 100%;
}

/* Nav transition */
.nav {
  transition: all .35s ease, transform .35s ease;
}

/* Service card enhanced hover — shine effect */
.service-card::after {
  content: '';
  position: absolute;
  top: 0; left: -75%;
  width: 50%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.08), transparent);
  transform: skewX(-15deg);
  transition: left 0.6s ease;
  pointer-events: none;
}
.service-card:hover::after {
  left: 125%;
}

/* Service icon bounce on card hover */
.service-card:hover .service-icon {
  transform: scale(1.08) translateY(-2px);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Button press feedback */
.btn-quote:active,
.btn-primary:active {
  transform: translateY(1px) scale(0.98);
  transition: all 0.1s ease;
}

/* Quote card glow on focus-within */
.quote-card:focus-within {
  box-shadow: var(--shadow-xl), 0 0 0 2px rgba(46, 204, 113, 0.15);
  transition: box-shadow 0.3s ease;
}

/* Form select/input hover */
.form-select:hover, .form-input:hover, .form-textarea:hover {
  border-color: var(--sand);
}

/* Stat number animated glow on reveal */
.stat-number {
  transition: text-shadow 0.6s ease;
}
.stat.revealed .stat-number {
  text-shadow: 0 0 30px rgba(46, 204, 113, 0.2);
}

/* Step number pop */
.step.revealed .step-num {
  animation: stepPop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes stepPop {
  0% { transform: scale(0.5); }
  60% { transform: scale(1.15); }
  100% { transform: scale(1); }
}

/* FAQ smooth expand */
.faq-answer {
  transition: max-height 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}
.faq-answer-inner {
  transition: opacity 0.3s ease 0.1s;
  opacity: 0;
}
.faq-item.open .faq-answer-inner {
  opacity: 1;
}

/* Why-feature icon lift on hover */
.why-feature:hover .why-icon {
  transform: translateY(-2px);
  background: linear-gradient(135deg, rgba(46,204,113,0.18), rgba(20,96,94,0.12));
  transition: all 0.3s ease;
}

/* Blog card image zoom */
.blog-card-img {
  overflow: hidden;
  transition: all 0.4s ease;
}
.blog-card:hover .blog-card-img svg {
  transform: scale(1.15) rotate(3deg);
  transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

/* Testimonial quote mark float */
.why-testimonial:hover .quote-mark {
  transform: translateY(-4px);
  opacity: 0.55;
  transition: all 0.4s ease;
}

/* CTA buttons glow trail */
.btn-primary {
  position: relative;
  overflow: hidden;
}
.btn-primary::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 0; height: 0;
  background: rgba(255,255,255,0.15);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease;
}
.btn-primary:hover::before {
  width: 300px; height: 300px;
}

/* Info box left border animation */
.info-box {
  transition: border-left-color 0.3s ease, box-shadow 0.3s ease;
}
.info-box:hover {
  box-shadow: var(--shadow-md);
}

/* Inline CTA hover */
.inline-cta {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.inline-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(11, 61, 63, 0.2);
}

/* Shake animation for form validation */
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  15%, 45%, 75% { transform: translateX(-6px); }
  30%, 60%, 90% { transform: translateX(6px); }
}

/* Hero badge pulse */
.hero-badge {
  transition: all 0.3s ease;
}
.hero-badge:hover {
  background: rgba(46, 204, 113, 0.18);
  transform: translateY(-1px);
}

/* Page hero subtle gradient animation */
.page-hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 120px;
  background: linear-gradient(to top, var(--warm-cream), transparent);
  pointer-events: none;
}

/* Footer link underline animation */
.footer ul a {
  position: relative;
}
.footer ul a::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 1px;
  background: var(--energy-green);
  transition: width 0.3s ease;
}
.footer ul a:hover::after {
  width: 100%;
}

/* Smooth body transition for page loads */
body {
  animation: bodyFadeIn 0.5s ease;
}
@keyframes bodyFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

