/* ============================================================
   ecaterina-rabii-claude — main.css v3
   By New Light Digital — https://newlightdigital.com/ro/
   ============================================================ */

:root {
  --cream:       #F7F3EC;
  --cream-mid:   #EDE8DC;
  --cream-dark:  #DDD5C5;
  --forest:      #253326;
  --forest-mid:  #344736;
  --charcoal:    #1C1C1A;
  --text:        #1E1E1C;
  --muted:       #545450;
  --gold:        #C9A96E;
  --white:       #FFFFFF;
  --font-display: 'Libre Baskerville', Georgia, serif;
  --font-body:    'Inter', 'Helvetica Neue', sans-serif;
  --radius:    10px;
  --radius-lg: 18px;
  --radius-xl: 26px;
  --shadow:    0 4px 24px rgba(0,0,0,0.07);
  --shadow-lg: 0 12px 48px rgba(0,0,0,0.13);
  --transition: 0.26s ease;
  --max-w: 1180px;
  --pad-x: clamp(20px, 4vw, 52px);
  --section-y: clamp(56px, 7vw, 88px);
  /* Header height used for calc */
  --header-h: 80px;
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { font-family: var(--font-body); background: var(--cream); color: var(--text); line-height: 1.72; -webkit-font-smoothing: antialiased; overflow-x: hidden; font-size: 16px; }
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; transition: var(--transition); }
ul { list-style: none; }
button { font-family: var(--font-body); cursor: pointer; border: none; background: none; }
p:last-child { margin-bottom: 0; }

/* ── TYPOGRAPHY ── */
h1,h2,h3,h4,h5 { font-family: var(--font-display); line-height: 1.18; color: var(--charcoal); }
h1 { font-size: clamp(2rem, 4.2vw, 3.5rem); font-weight: 700; line-height: 1.1; }
h2 { font-size: clamp(1.8rem, 3vw, 2.7rem); font-weight: 700; }
h3 { font-size: clamp(1.1rem, 1.7vw, 1.4rem); font-weight: 700; }
h4 { font-size: 1rem; font-weight: 600; font-family: var(--font-body); }
p  { color: var(--muted); font-size: 1.02rem; line-height: 1.78; margin-bottom: 1rem; }

.er-label { display: inline-block; font-family: var(--font-body); font-size: 0.68rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }

/* ── BUTTONS ── */
.er-btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 13px 28px; border-radius: 50px; font-family: var(--font-body); font-size: 0.9rem; font-weight: 500; letter-spacing: 0.01em; transition: var(--transition); white-space: nowrap; cursor: pointer; border: 1.5px solid transparent; text-decoration: none; }
.er-btn-primary { background: var(--charcoal); color: var(--white); border-color: var(--charcoal); }
.er-btn-primary:hover { background: var(--forest); border-color: var(--forest); color: var(--white); }
.er-btn-outline { background: transparent; color: var(--charcoal); border-color: rgba(28,28,26,0.28); }
.er-btn-outline:hover { background: var(--charcoal); color: var(--white); border-color: var(--charcoal); }
.er-btn-ghost-light { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.38); }
.er-btn-ghost-light:hover { background: rgba(255,255,255,0.1); color: var(--white); }
.er-btn-forest { background: var(--forest); color: var(--white); border-color: var(--forest); }
.er-btn-forest:hover { background: var(--forest-mid); border-color: var(--forest-mid); }
.er-btn-lg { padding: 15px 36px; font-size: 0.95rem; font-weight: 600; }

/* ════════════════════════════════════════════════
   HEADER
   ════════════════════════════════════════════════ */
.er-header { position: sticky; top: 0; z-index: 100; background: rgba(247,243,236,0.97); backdrop-filter: blur(8px); border-bottom: 1px solid rgba(28,28,26,0.08); }
.admin-bar .er-header { top: 32px; }
@media(max-width:782px){ .admin-bar .er-header { top: 46px; } }

.er-header-inner { max-width: var(--max-w); margin: 0 auto; padding: 0 var(--pad-x); display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 16px; transition: height 0.3s ease; }
/* Shrunk state when scrolled */
.er-header.scrolled .er-header-inner { height: 58px; }
.er-logo { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-size: 1.02rem; font-weight: 700; color: var(--charcoal); flex-shrink: 0; }
.er-logo-mark { width: 26px; height: 26px; border-radius: 50%; background: var(--charcoal); position: relative; flex-shrink: 0; }
.er-logo-mark::after { content: ''; position: absolute; inset: 7px; border-radius: 50%; background: var(--cream); }
.er-nav { display: flex; align-items: center; gap: 28px; }
.er-nav-links { display: flex; gap: 22px; }
.er-nav-links a { font-size: 0.875rem; color: var(--text); font-weight: 400; opacity: 0.8; text-decoration: none; }
.er-nav-links a:hover { opacity: 1; text-decoration: none; }
.er-mobile-nav a.nav-link { text-decoration: none; }
.er-logo { text-decoration: none; }
.er-lang { display: flex; gap: 2px; margin-left: 4px; }
.er-lang a { font-size: 0.75rem; font-weight: 500; padding: 4px 7px; border-radius: 5px; color: var(--muted); text-decoration: none !important; }
.er-lang a.active { color: var(--charcoal); background: var(--cream-mid); text-decoration: none !important; }
.er-lang a:hover { color: var(--charcoal); text-decoration: none !important; }
/* Nav active state — same style as lang active */
.er-nav-links a { font-size: 0.875rem; color: var(--text); font-weight: 400; opacity: 0.8; text-decoration: none !important; padding: 4px 8px; border-radius: 5px; transition: var(--transition); }
.er-nav-links a:hover { opacity: 1; text-decoration: none !important; background: var(--cream-mid); }
.er-nav-links a.active { color: var(--charcoal); background: var(--cream-mid); opacity: 1; font-weight: 500; }
.er-hamburger { display: none; flex-direction: column; gap: 5px; padding: 6px; background: none; border: none; cursor: pointer; }
.er-hamburger span { display: block; width: 22px; height: 1.5px; background: var(--charcoal); transition: var(--transition); transform-origin: center; }
.er-hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.er-hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.er-hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
.er-mobile-nav { display: none; position: fixed; inset: 0; background: var(--cream); z-index: 90; flex-direction: column; align-items: center; justify-content: center; gap: 24px; text-align: center; padding: 40px var(--pad-x); }
.er-mobile-nav.open { display: flex; }
.er-mobile-nav a.nav-link { font-family: var(--font-display); font-size: 1.9rem; font-weight: 700; color: var(--charcoal); }
.er-mobile-nav a.nav-link:hover { color: var(--forest); }
.er-mobile-nav .er-btn { width: 100%; max-width: 280px; justify-content: center; margin-top: 8px; }
.er-mobile-nav .er-lang { margin-left: 0; margin-top: 16px; }

/* ════════════════════════════════════════════════
   HERO — FIX #1: above the fold, compact
   ════════════════════════════════════════════════ */
.er-hero {
  background: var(--cream);
  overflow: hidden;
  /* Exactly viewport minus header — never taller */
  height: calc(100vh - var(--header-h));
  max-height: calc(100vh - var(--header-h));
  display: flex;
  align-items: stretch;
}
.er-hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: 100%;
  height: 100%;
}
.er-hero-left {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 32px clamp(28px,4vw,52px) 32px clamp(20px,5vw,80px);
  max-width: 640px;
  margin-left: auto;
  overflow: hidden;
}
.er-hero-tag { display: inline-flex; align-items: center; gap: 8px; background: var(--cream-mid); padding: 5px 12px; border-radius: 50px; font-size: 0.66rem; font-weight: 500; letter-spacing: 0.09em; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; width: fit-content; }
.er-hero-h1 { font-family: var(--font-display); font-size: clamp(1.9rem, 3.8vw, 3.4rem); font-weight: 700; color: var(--charcoal); line-height: 1.1; margin-bottom: 14px; }
.er-hero-h1 em { font-style: italic; color: var(--forest); }
.er-hero-sub { font-size: 0.97rem; color: var(--muted); line-height: 1.68; max-width: 420px; margin-bottom: 16px; font-weight: 400; }
.er-guarantee { display: inline-flex; align-items: center; gap: 8px; background: var(--cream-mid); border: 1px solid var(--cream-dark); border-radius: 50px; padding: 6px 16px; font-size: 0.8rem; color: var(--text); margin-bottom: 20px; width: fit-content; }
/* Buttons side-by-side (not stacked) to save vertical space */
.er-hero-actions { display: flex; flex-direction: row; gap: 10px; margin-bottom: 20px; flex-wrap: wrap; }
.er-hero-trust { display: flex; gap: 16px; flex-wrap: wrap; }
.er-trust-item { display: flex; align-items: center; gap: 6px; font-size: 0.79rem; color: var(--muted); }
.er-trust-dot { width: 4px; height: 4px; border-radius: 50%; background: var(--gold); flex-shrink: 0; }
.er-hero-right { position: relative; overflow: hidden; }
/* FIX #2: clip watermark with object-position */
.er-hero-img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 30%; display: block; }
.er-hero-card { position: absolute; bottom: 28px; left: -16px; background: var(--white); border-radius: var(--radius-lg); padding: 18px 20px; max-width: 210px; box-shadow: 0 16px 48px rgba(0,0,0,0.14); }
.er-hero-card-icon { width: 32px; height: 32px; border-radius: 50%; background: var(--charcoal); display: flex; align-items: center; justify-content: center; margin-bottom: 8px; }
.er-hero-card h4 { font-family: var(--font-display); font-size: 0.92rem; color: var(--charcoal); margin-bottom: 4px; line-height: 1.3; font-weight: 700; }
/* Accessibility fix: h4 replaced with styled p to maintain heading order */
.er-card-title { font-family: var(--font-display); font-size: 0.92rem; color: var(--charcoal); margin-bottom: 4px; line-height: 1.3; font-weight: 700; }
.er-hero-card p  { font-size: 0.77rem; color: var(--muted); margin: 0; line-height: 1.5; }

/* ════════════════════════════════════════════════
   PAIN — FIX #3: new image layout + text visible
   ════════════════════════════════════════════════ */
.er-pain {
  background: var(--white);
  padding: var(--section-y) var(--pad-x);
  /* BG graphic: subtle arc top-right */
  position: relative;
  overflow: hidden;
}
/* BG: wide monstera-style leaf — top-right, pain section */
.er-pain::before {
  content: '';
  position: absolute;
  top: -10px; right: -20px;
  width: 200px; height: 240px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 240' fill='none'%3E%3Cpath d='M190 8 C190 8 100 5 50 70 C10 125 40 200 90 215 C140 230 200 170 195 100 C192 55 190 8 190 8Z' fill='%23EDE8DC' opacity='0.7'/%3E%3Cpath d='M190 8 C160 55 130 110 90 215' stroke='%23DDD5C5' stroke-width='1.8' fill='none'/%3E%3Cpath d='M160 30 C140 70 120 120 90 215' stroke='%23DDD5C5' stroke-width='1' fill='none' opacity='0.5'/%3E%3Cpath d='M120 90 C80 100 50 120 40 170' stroke='%23DDD5C5' stroke-width='1' fill='none' opacity='0.4'/%3E%3Cpath d='M150 65 C130 75 115 95 100 145' stroke='%23DDD5C5' stroke-width='0.8' fill='none' opacity='0.35'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: contain;
  opacity: 0.65;
  pointer-events: none;
}
@media(max-width:768px){ .er-pain::before { display: none; } }

.er-pain-inner { max-width: var(--max-w); margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; position: relative; z-index: 1; }
.er-pain-text h2 { margin-bottom: 18px; }
.er-pain-text > p { margin-bottom: 24px; }
.er-pain-points { display: flex; flex-direction: column; gap: 11px; }
.er-pain-item { display: flex; align-items: center; gap: 14px; padding: 14px 18px; background: var(--cream); border-radius: 12px; border: 1px solid var(--cream-dark); }
.er-pain-item-icon { width: 38px; height: 38px; border-radius: 50%; background: var(--cream-mid); display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: var(--forest); }
.er-pain-item-text { font-size: 0.91rem; color: var(--text); line-height: 1.52; }
.er-pain-item-text strong { font-weight: 600; color: var(--charcoal); }

/* Right: image with rounded corners + floating card */
.er-pain-visual { display: flex; align-items: center; justify-content: center; position: relative; }
.er-pain-illustration { width: 100%; aspect-ratio: 3/4; border-radius: 24px; overflow: hidden; position: relative; }
.er-pain-illustration img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 20%; display: block; }
.er-pain-float {
  position: absolute;
  bottom: 20px;
  right: -12px;
  background: var(--forest);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  max-width: 200px;
  box-shadow: var(--shadow-lg);
}
.er-pain-float h4 { font-family: var(--font-display); font-size: 0.92rem; color: var(--white); margin-bottom: 5px; line-height: 1.3; font-weight: 700; }
/* FIX #3: text is now white (was grey, unreadable on green) */
.er-pain-float p  { font-size: 0.78rem; color: rgba(255,255,255,0.88); line-height: 1.5; margin: 0; }

/* ════════════════════════════════════════════════
   SERVICES — FIX #4: more text per card
   ════════════════════════════════════════════════ */
.er-services {
  background: var(--cream-mid);
  padding: var(--section-y) var(--pad-x);
  position: relative;
  overflow: hidden;
}
/* BG: olive branch style — multiple small leaves on stem, services bottom-left */
.er-services::after {
  content: '';
  position: absolute;
  bottom: 0; left: -5px;
  width: 160px; height: 220px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 150 210' fill='none'%3E%3Cpath d='M75 200 C75 200 70 140 65 90 C60 40 50 10 50 10' stroke='%23C9A96E' stroke-width='1.8' fill='none' opacity='0.35'/%3E%3Cellipse cx='35' cy='155' rx='20' ry='10' transform='rotate(-30 35 155)' fill='%23C9A96E' opacity='0.18'/%3E%3Cellipse cx='82' cy='130' rx='20' ry='10' transform='rotate(20 82 130)' fill='%23C9A96E' opacity='0.16'/%3E%3Cellipse cx='30' cy='100' rx='18' ry='9' transform='rotate(-25 30 100)' fill='%23C9A96E' opacity='0.15'/%3E%3Cellipse cx='80' cy='80' rx='18' ry='9' transform='rotate(15 80 80)' fill='%23C9A96E' opacity='0.14'/%3E%3Cellipse cx='38' cy='52' rx='16' ry='8' transform='rotate(-20 38 52)' fill='%23C9A96E' opacity='0.13'/%3E%3Cellipse cx='70' cy='35' rx='14' ry='7' transform='rotate(10 70 35)' fill='%23C9A96E' opacity='0.12'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: contain;
  background-position: bottom left;
  pointer-events: none;
  opacity: 0.8;
}
@media(max-width:768px){ .er-services::after { display: none; } }

.er-services-head { max-width: var(--max-w); margin: 0 auto 48px; text-align: center; position: relative; z-index: 1; }
.er-services-head h2 { margin-bottom: 12px; }
.er-services-head p  { max-width: 500px; margin: 0 auto; }
.er-services-grid { max-width: var(--max-w); margin: 0 auto; display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; position: relative; z-index: 1; }
.er-service-card { background: var(--white); border-radius: var(--radius-lg); padding: 26px 22px 38px; position: relative; border: 1px solid rgba(28,28,26,0.05); transition: var(--transition); }
.er-service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.er-service-num { width: 40px; height: 40px; border-radius: 50%; background: var(--forest); color: var(--white); font-family: var(--font-body); font-size: 0.82rem; font-weight: 700; display: flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.er-service-card h3 { font-size: 1.05rem; margin-bottom: 8px; }
.er-service-card p  { font-size: 0.86rem; line-height: 1.65; }
.er-service-icon-svg { position: absolute; bottom: 16px; right: 18px; color: var(--cream-dark); }
.er-service-cta { background: var(--charcoal); border-radius: var(--radius-lg); padding: 26px 22px; display: flex; flex-direction: column; justify-content: space-between; }
.er-service-cta-star { color: var(--gold); margin-bottom: 10px; }
.er-service-cta h3   { color: var(--white); font-size: 1.15rem; margin-bottom: 8px; }
.er-service-cta p    { color: rgba(255,255,255,0.68); font-size: 0.86rem; margin-bottom: 22px; line-height: 1.65; }
.er-service-cta a    { display: block; text-align: center; background: var(--white); color: var(--charcoal); padding: 12px 18px; border-radius: 50px; font-size: 0.88rem; font-weight: 600; transition: var(--transition); }
.er-service-cta a:hover { background: var(--cream); }

/* ════════════════════════════════════════════════
   PROCESS — FIX #5: new image, fills column height
   ════════════════════════════════════════════════ */
.er-process { background: var(--white); padding: var(--section-y) var(--pad-x); }
.er-process-inner { max-width: var(--max-w); margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 68px; align-items: start; }
.er-process-text { position: sticky; top: calc(var(--header-h) + 24px); }
.er-process-text h2 { margin-bottom: 12px; }
.er-process-text > p { margin-bottom: 32px; }
.er-process-steps { display: flex; flex-direction: column; }
.er-step { display: flex; gap: 16px; padding-bottom: 24px; position: relative; }
.er-step::before { content: ''; position: absolute; left: 17px; top: 36px; bottom: 0; width: 1px; background: var(--cream-dark); }
.er-step:last-child::before { display: none; }
.er-step-num { width: 36px; height: 36px; border-radius: 50%; background: var(--charcoal); color: var(--white); display: flex; align-items: center; justify-content: center; font-size: 0.79rem; font-weight: 600; flex-shrink: 0; position: relative; z-index: 1; }
.er-step-body h4, .er-step-label { font-size: 0.95rem; margin-bottom: 3px; color: var(--charcoal); font-weight: 600; line-height: 1.4; }
.er-step-label { margin: 0 0 3px; }
.er-step-body p  { font-size: 0.86rem; line-height: 1.6; margin: 0; }
.er-process-visual { border-radius: var(--radius-xl); overflow: hidden; min-height: 480px; position: relative; }
.er-process-visual img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; min-height: 480px; }

/* ════════════════════════════════════════════════
   ABOUT — FIX #6: full redesign, text readable
   ════════════════════════════════════════════════ */
.er-about {
  background: var(--forest);
  padding: var(--section-y) var(--pad-x);
  position: relative;
  overflow: hidden;
}
/* BG: fern frond style — feathery, spreading right — about section top-right */
.er-about::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 300px; height: 220px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 280 200' fill='none'%3E%3Cpath d='M280 0 C240 20 180 50 120 90 C80 115 50 140 30 180' stroke='rgba(255,255,255,0.09)' stroke-width='2' fill='none'/%3E%3Cpath d='M220 10 C210 30 185 55 150 80' stroke='rgba(255,255,255,0.07)' stroke-width='1.2' fill='none'/%3E%3Cpath d='M255 5 C240 25 215 50 185 75' stroke='rgba(255,255,255,0.07)' stroke-width='1.2' fill='none'/%3E%3Cpath d='M190 25 C175 45 155 65 130 90' stroke='rgba(255,255,255,0.06)' stroke-width='1' fill='none'/%3E%3Cpath d='M160 40 C145 58 128 78 105 100' stroke='rgba(255,255,255,0.05)' stroke-width='1' fill='none'/%3E%3Cpath d='M270 15 C245 40 210 65 175 90' stroke='rgba(255,255,255,0.06)' stroke-width='1' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: contain;
  pointer-events: none;
}
@media(max-width:768px){ .er-about::before { display: none; } }

.er-about-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  /* Text LEFT, image RIGHT — avoids image behind text */
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}

/* Text column */
.er-about-text { order: 1; }
.er-about-text .er-label { color: rgba(255,255,255,0.45); }
.er-about-text h2 {
  color: var(--white);
  margin-bottom: 20px;
  font-size: clamp(1.55rem, 2.8vw, 2.2rem);
  line-height: 1.2;
}
.er-about-text p { color: rgba(255,255,255,0.78); margin-bottom: 14px; font-size: 1rem; }
.er-about-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 28px; }
.er-stat { background: rgba(255,255,255,0.09); border: 1px solid rgba(255,255,255,0.14); border-radius: var(--radius); padding: 14px 16px; }
.er-stat-num { font-family: var(--font-display); font-size: 1.75rem; font-weight: 700; color: var(--gold); line-height: 1; margin-bottom: 3px; }
.er-stat-label { font-size: 0.78rem; color: rgba(255,255,255,0.58); line-height: 1.4; }

/* Image column — landscape 4:3, right side */
.er-about-img-wrap { order: 2; border-radius: var(--radius-xl); overflow: hidden; aspect-ratio: 4/3; }
.er-about-img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 25%; }

/* ════════════════════════════════════════════════
   TESTIMONIALS — FIX #7: arrow centering
   ════════════════════════════════════════════════ */
.er-reviews {
  background: var(--cream-mid);
  padding: var(--section-y) var(--pad-x);
  overflow: hidden;
  position: relative;
}
/* Subtle dot grid background — cream section */
.er-reviews::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(37,51,38,0.07) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
}
@media(max-width:768px){ .er-reviews::before { display: none; } }

.er-reviews-head { max-width: var(--max-w); margin: 0 auto 40px; text-align: center; position: relative; z-index: 1; }
.er-reviews-head h2 { margin-bottom: 8px; }

/* FIX: wrapper has explicit padding so arrows sit outside but slider content is centered */
.er-slider-wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  position: relative;
  z-index: 1;
  /* Add horizontal padding so arrows don't overlap content */
  padding: 0 52px;
}

.er-slider {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 4px 0 16px;
  /* Center the cards when fewer than fill the row */
  justify-content: flex-start;
}
.er-slider::-webkit-scrollbar { display: none; }

/* Portrait 9:16 cards */
.er-slide { flex: 0 0 200px; scroll-snap-align: start; background: var(--charcoal); border-radius: 14px; overflow: hidden; position: relative; aspect-ratio: 9/16; }
.er-slide-img { width: 100%; height: 100%; object-fit: cover; object-position: center top; opacity: 0.72; display: block; }
.er-slide-play { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); width: 46px; height: 46px; background: rgba(255,255,255,0.9); border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: var(--transition); }
.er-slide-play:hover { background: var(--white); transform: translate(-50%,-50%) scale(1.08); }
.er-slide-play::after { content: ''; border-left: 13px solid var(--charcoal); border-top: 7px solid transparent; border-bottom: 7px solid transparent; margin-left: 3px; }
.er-slide-info { position: absolute; bottom: 0; left: 0; right: 0; background: linear-gradient(transparent, rgba(20,20,18,0.9)); padding: 28px 12px 13px; }
.er-slide-meta { display: flex; align-items: center; gap: 7px; margin-bottom: 5px; }
.er-slide-meta img { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; }
.er-slide-name { color: var(--white); font-size: 0.82rem; font-weight: 500; }
.er-slide-quote { color: rgba(255,255,255,0.84); font-size: 0.76rem; line-height: 1.44; margin: 0; }

.er-slider-btn {
  position: absolute;
  top: calc(50% - 8px);
  transform: translateY(-50%);
  width: 38px; height: 38px;
  background: var(--white);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 2px 12px rgba(0,0,0,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 4;
  color: var(--charcoal);
  transition: var(--transition);
}
.er-slider-btn:hover { background: var(--charcoal); color: var(--white); }
/* Arrows inside the padding zone, centered on the card height */
.er-slider-prev { left: 6px; }
.er-slider-next { right: 6px; }

/* ════════════════════════════════════════════════
   FAQ — clean accordion
   ════════════════════════════════════════════════ */
.er-faq {
  background: var(--cream);
  padding: var(--section-y) var(--pad-x);
  position: relative;
  overflow: hidden;
}
/* Gentle wave line top — SVG-based via pseudo */
.er-faq::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0.4;
}
.er-faq-inner { max-width: 760px; margin: 0 auto; }
.er-faq-head { text-align: center; margin-bottom: 48px; }
.er-faq-head h2 { margin-bottom: 8px; }
.er-faq-list { display: flex; flex-direction: column; }
.er-faq-item { border-bottom: 1px solid var(--cream-dark); }
.er-faq-item:first-child { border-top: 1px solid var(--cream-dark); }
.er-faq-q { width: 100%; text-align: left; padding: 20px 0; display: flex; justify-content: space-between; align-items: center; gap: 20px; font-family: var(--font-display); font-size: clamp(0.95rem,1.4vw,1.1rem); font-weight: 400; color: var(--charcoal); cursor: pointer; background: none; border: none; transition: color var(--transition); }
.er-faq-q:hover { color: var(--forest); }
.er-faq-q span:first-child { flex: 1; }
.er-faq-toggle { width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid var(--cream-dark); background: var(--white); display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: var(--transition); position: relative; }
.er-faq-toggle::before,.er-faq-toggle::after { content: ''; position: absolute; background: var(--charcoal); border-radius: 2px; transition: var(--transition); }
.er-faq-toggle::before { width: 10px; height: 1.5px; }
.er-faq-toggle::after  { width: 1.5px; height: 10px; }
.er-faq-item.open .er-faq-toggle { background: var(--charcoal); border-color: var(--charcoal); }
.er-faq-item.open .er-faq-toggle::before { background: var(--white); }
.er-faq-item.open .er-faq-toggle::after  { background: var(--white); transform: scaleY(0); }
.er-faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.32s ease; overflow: hidden; }
.er-faq-item.open .er-faq-a { grid-template-rows: 1fr; }
.er-faq-a-inner { overflow: hidden; padding-bottom: 0; transition: padding-bottom 0.32s ease; }
.er-faq-item.open .er-faq-a-inner { padding-bottom: 20px; }
.er-faq-a p { font-size: 0.95rem; color: var(--muted); line-height: 1.76; margin: 0; }

/* ════════════════════════════════════════════════
   CONTACT — FIX #8: no white space, sticky left
   ════════════════════════════════════════════════ */
.er-contact { background: var(--forest); padding: var(--section-y) var(--pad-x); }
.er-contact-inner { max-width: var(--max-w); margin: 0 auto; display: grid; grid-template-columns: 1fr 1.55fr; gap: 52px; align-items: start; }
.er-contact-left { position: sticky; top: calc(var(--header-h) + 24px); }
.er-contact-left h2 { color: var(--white); font-size: clamp(1.55rem,2.8vw,2.2rem); margin-bottom: 14px; line-height: 1.18; }
.er-contact-left > p { color: rgba(255,255,255,0.68); margin-bottom: 22px; font-size: 0.98rem; }
.er-contact-left .er-label { color: rgba(255,255,255,0.45); }

.er-form-box { background: var(--white); border-radius: var(--radius-xl); padding: 30px 28px; }
.er-form-box .wpcf7 { width: 100%; }
/* FIX #3 white box: CF7 injects a hidden response div at the top — hide it until needed */
.er-form-box .wpcf7-response-output { display: none; }
.er-form-box .wpcf7-response-output:not(:empty) { display: block; border-radius: 8px; padding: 10px 14px; font-size: 0.84rem; margin-top: 8px; border: none !important; grid-column: 1/-1; }
/* Global CF7 response output — hidden until CF7 adds a status class */
.wpcf7 .wpcf7-response-output,
.wpcf7-form .wpcf7-response-output,
div.wpcf7-response-output {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  min-height: 0 !important;
  max-height: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  border: none !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}
.wpcf7 .wpcf7-response-output.wpcf7-mail-sent-ok,
.wpcf7 .wpcf7-response-output.wpcf7-mail-sent-ng,
.wpcf7 .wpcf7-response-output.wpcf7-spam-blocked,
.wpcf7 .wpcf7-response-output.wpcf7-validation-errors,
.wpcf7 .wpcf7-response-output.wpcf7-acceptance-missing {
  display: block !important;
  visibility: visible !important;
  height: auto !important;
  min-height: auto !important;
  max-height: none !important;
  overflow: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  border-radius: 8px !important;
  padding: 11px 15px !important;
  margin: 12px 0 0 !important;
  font-size: 0.86rem !important;
  font-family: 'Inter', sans-serif !important;
  border: none !important;
}
.wpcf7 .wpcf7-response-output.wpcf7-mail-sent-ok { background: #EDF7ED !important; color: #2D7A2E !important; }
.wpcf7 .wpcf7-response-output.wpcf7-mail-sent-ng,
.wpcf7 .wpcf7-response-output.wpcf7-spam-blocked { background: #FEF2F2 !important; color: #991B1B !important; }
.wpcf7 .wpcf7-response-output.wpcf7-validation-errors,
.wpcf7 .wpcf7-response-output.wpcf7-acceptance-missing { background: #FFFBEB !important; color: #92400E !important; }
.er-form-box .wpcf7-mail-sent-ok { background: #EDF7ED; color: #2D7A2E; }
.er-form-box .wpcf7-validation-errors { background: #FFF8E1; color: #8A6D00; }
/* Also hide any empty paragraph CF7 generates */
.er-form-box .wpcf7-form > p:empty,
.er-form-box .wpcf7-form > div:empty { display: none !important; }

/* Hide ONLY the response-output div — not field validation tips */
.er-form-box .wpcf7-form > p:empty,
.er-form-box .wpcf7-form > div:empty { display: none !important; }

/* Response output: hidden always */
.wpcf7-response-output {
  content-visibility: hidden !important;
  height: 0 !important;
  max-height: 0 !important;
  min-height: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  border: none !important;
  overflow: hidden !important;
  font-size: 0 !important;
  line-height: 0 !important;
  color: transparent !important;
  position: absolute !important;
  left: -9999px !important;
  width: 0 !important;
  clip-path: inset(50%) !important;
}
/* CF7 6.x hidden-fields-container: contains validation summary — hide it */
.wpcf7-form .hidden-fields-container,
fieldset.hidden-fields-container {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  width: 0 !important;
  overflow: hidden !important;
  position: absolute !important;
  border: none !important;
  padding: 0 !important;
  margin: 0 !important;
}
/* The line/separator CF7 renders */
.wpcf7-form > hr,
.wpcf7-form .hidden-fields-container + hr { display: none !important; }

/* wpcf7-form is block — inner er-cf7-grid handles columns */
.er-form-box .wpcf7-form {
  display: block !important;
  width: 100%;
}

/* Our grid wrapper: 2 columns */
.er-form-box .wpcf7-form > .er-cf7-grid {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 14px !important;
  width: 100% !important;
}

.er-form-box .wpcf7-form p { margin: 0; line-height: 1; }
.er-field-full { grid-column: 1/-1; }
/* CF7 form grid classes */
.er-cf-half { grid-column: span 1; margin: 0; }
.er-cf-full { grid-column: 1 / -1; margin: 0; }
.er-cf-turnstile { grid-column: 1 / -1; min-height: 62px; }
.er-cf-accept { grid-column: 1 / -1; font-size: 0.78rem; color: var(--muted); }
.er-form-box label { display: block; font-size: 0.76rem; font-weight: 500; color: var(--text); margin-bottom: 4px; letter-spacing: 0.01em; }
.er-form-box .req { color: #C94040; margin-left: 1px; }
.er-form-box input[type="text"],.er-form-box input[type="email"],.er-form-box input[type="tel"],.er-form-box input[type="number"],.er-form-box textarea,.er-form-box select { width: 100%; padding: 10px 12px; border: 1.5px solid var(--cream-dark); border-radius: 9px; font-family: var(--font-body); font-size: 0.88rem; color: var(--text); background: var(--cream); transition: border-color var(--transition),background var(--transition); -webkit-appearance: none; appearance: none; margin-top: 3px; line-height: 1.4; }
.er-form-box input:focus,.er-form-box textarea:focus,.er-form-box select:focus { outline: none; border-color: var(--charcoal); background: var(--white); }
.er-form-box input::placeholder,.er-form-box textarea::placeholder { color: #B5B0A5; font-size: 0.86rem; }
.er-form-box textarea { min-height: 80px; resize: vertical; }
.er-form-box select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='7'%3E%3Cpath d='M1 1l4.5 4.5L10 1' stroke='%23545450' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 11px center; padding-right: 32px; cursor: pointer; }
.er-turnstile-wrap { grid-column: 1/-1; min-height: 60px; display: flex; align-items: center; }
.er-form-box .wpcf7-submit { width: 100%; padding: 14px; background: var(--charcoal); color: var(--white); border: none; border-radius: 50px; font-family: var(--font-body); font-size: 0.94rem; font-weight: 600; cursor: pointer; transition: background var(--transition); letter-spacing: 0.015em; display: block !important; visibility: visible !important; opacity: 1 !important; }
.er-form-box .wpcf7-submit:hover { background: var(--forest); }
/* Force submit wrapper always visible regardless of CF7 form state */
.er-cf7-grid > div:has(input[type="submit"]),
.er-cf7-grid > p:has(input[type="submit"]) { display: block !important; visibility: visible !important; margin-top: 4px; }
.er-form-box .wpcf7-not-valid-tip { color: #C94040; font-size: 0.72rem; margin-top: 2px; display: block; }
/* Fix 2: red border on invalid acceptance checkbox */
.er-form-box .wpcf7-acceptance.wpcf7-not-valid,
.er-cf-accept .wpcf7-acceptance.wpcf7-not-valid { outline: 2px solid #C94040; border-radius: 8px; padding: 6px 8px; }
.er-form-box .wpcf7-acceptance,
.er-cf-accept .wpcf7-acceptance { font-size: 0.77rem; color: var(--muted); line-height: 1.5; }
.er-form-box .wpcf7-acceptance label,
.er-cf-accept .wpcf7-acceptance label { display: flex; align-items: flex-start; gap: 8px; cursor: pointer; font-size: inherit; font-weight: 400; color: inherit; margin-bottom: 0; }
.er-form-box .wpcf7-acceptance input[type="checkbox"],
.er-cf-accept .wpcf7-acceptance input[type="checkbox"] { accent-color: var(--charcoal); margin-top: 2px; flex-shrink: 0; width: 14px; height: 14px; cursor: pointer; }

/* ════════════════════════════════════════════════
   FINAL CTA
   ════════════════════════════════════════════════ */
.er-final-cta {
  background: var(--cream-mid);
  padding: clamp(48px,6vw,76px) var(--pad-x);
  text-align: center;
  position: relative;
  overflow: hidden;
}
/* Eucalyptus round-leaf clusters — CTA section, flanking */
.er-final-cta::before {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 140px; height: 160px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 130 150' fill='none'%3E%3Cpath d='M20 145 C20 145 35 100 55 65 C70 35 90 10 90 10' stroke='%23253326' stroke-width='1.5' fill='none' opacity='0.12'/%3E%3Ccircle cx='45' cy='115' r='14' fill='%23253326' opacity='0.08'/%3E%3Ccircle cx='72' cy='88' r='13' fill='%23253326' opacity='0.07'/%3E%3Ccircle cx='55' cy='60' r='12' fill='%23253326' opacity='0.07'/%3E%3Ccircle cx='78' cy='38' r='11' fill='%23253326' opacity='0.06'/%3E%3Ccircle cx='62' cy='15' r='9' fill='%23253326' opacity='0.05'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: contain;
  background-position: bottom left;
  pointer-events: none;
}
.er-final-cta::after {
  content: '';
  position: absolute;
  right: 0; bottom: 0;
  width: 140px; height: 160px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 130 150' fill='none'%3E%3Cpath d='M110 145 C110 145 95 100 75 65 C60 35 40 10 40 10' stroke='%23253326' stroke-width='1.5' fill='none' opacity='0.12'/%3E%3Ccircle cx='85' cy='115' r='14' fill='%23253326' opacity='0.08'/%3E%3Ccircle cx='58' cy='88' r='13' fill='%23253326' opacity='0.07'/%3E%3Ccircle cx='75' cy='60' r='12' fill='%23253326' opacity='0.07'/%3E%3Ccircle cx='52' cy='38' r='11' fill='%23253326' opacity='0.06'/%3E%3Ccircle cx='68' cy='15' r='9' fill='%23253326' opacity='0.05'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: contain;
  background-position: bottom right;
  pointer-events: none;
}
@media(max-width:768px){ .er-final-cta::before,.er-final-cta::after { display: none; } }
.er-final-cta h2 { font-size: clamp(1.55rem,2.8vw,2.2rem); margin-bottom: 10px; position: relative; z-index: 1; }
.er-final-cta p  { max-width: 420px; margin: 0 auto 28px; position: relative; z-index: 1; }
.er-final-cta-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; position: relative; z-index: 1; }

/* ════════════════════════════════════════════════
   FOOTER
   ════════════════════════════════════════════════ */
.er-footer { background: var(--charcoal); padding: 22px var(--pad-x); }
.er-footer-inner { max-width: var(--max-w); margin: 0 auto; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; font-size: 0.8rem; color: rgba(255,255,255,0.62); }
.er-footer-inner a { color: rgba(255,255,255,0.78); text-decoration: underline; text-underline-offset: 3px; }
.er-footer-inner a:hover { color: rgba(255,255,255,0.95); }

/* Hide WPML bottom bars */
.wpml-ls-legacy-list-horizontal,.wpml-ls-statics-footer,body > .wpml-ls,#wpml-ls-statics-post_translations { display: none !important; }

/* Gutenberg resets */
.wp-block-html { margin: 0 !important; padding: 0 !important; }
.entry-content > * { max-width: none !important; }
.wp-site-blocks { padding: 0 !important; }
.is-layout-constrained > * { max-width: none !important; margin-left: 0 !important; margin-right: 0 !important; }

/* Animations */
.er-fade { opacity: 0; transform: translateY(16px); transition: opacity 0.52s ease, transform 0.52s ease; }
.er-fade.visible { opacity: 1; transform: translateY(0); }
.er-fade-d1 { transition-delay: 0.1s; }
.er-fade-d2 { transition-delay: 0.2s; }
.er-fade-d3 { transition-delay: 0.3s; }

/* ════════════════════════════════════════════════
   RESPONSIVE
   ════════════════════════════════════════════════ */
@media (max-width: 960px) {
  .er-nav-links, .er-nav > .er-btn-primary { display: none; }
  .er-hamburger { display: flex; }

  /* HERO: stack, image on top, max 45vh so text is above fold */
  .er-hero { height: auto; max-height: none; }
  .er-hero-grid { grid-template-columns: 1fr; }
  .er-hero-right { order: -1; height: 42vh; max-height: 320px; overflow: hidden; }
  .er-hero-img { height: 100%; min-height: unset; max-height: unset; }
  .er-hero-left { padding: 24px var(--pad-x) 36px; max-width: 100%; margin-left: 0; }
  .er-hero-card { display: none; }
  .er-hero-actions { flex-direction: column; align-items: stretch; max-width: 340px; }
  .er-hero-actions .er-btn { width: 100%; justify-content: center; }

  .er-pain-inner { grid-template-columns: 1fr; gap: 40px; }
  .er-pain-float { position: static; max-width: 100%; margin-top: 14px; border-radius: var(--radius); }
  .er-pain-illustration { aspect-ratio: 3/2; }

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

  .er-process-inner { grid-template-columns: 1fr; gap: 36px; }
  .er-process-text { position: static; }
  .er-process-visual { min-height: 280px; }
  .er-process-visual img { min-height: 280px; }

  .er-about-inner { grid-template-columns: 1fr; gap: 32px; }
  .er-about-img-wrap { aspect-ratio: 16/9; order: -1; }
  .er-about-text { order: 1; }

  .er-contact-inner { grid-template-columns: 1fr; gap: 28px; }
  .er-contact-left { position: static; }

  /* slider */
  .er-slider-wrap { padding: 0; }
  .er-slider-prev { left: -32px; }
  .er-slider-next { right: -32px; }
  .er-slide { flex: 0 0 160px; }
}

@media (max-width: 640px) {
  :root { --pad-x: 18px; --section-y: 48px; }
  h1 { font-size: 1.9rem; }
  h2 { font-size: 1.6rem; }
  .er-services-grid { grid-template-columns: 1fr; }
  .er-slide { flex: 0 0 60vw; }
  /* Arrows closer on mobile */
  .er-slider-prev { left: -22px; }
  .er-slider-next { right: -22px; }
  .er-form-box .wpcf7-form > .er-cf7-grid { grid-template-columns: 1fr !important; }
  .er-cf-half, .er-cf-full { grid-column: 1 !important; }
  .er-field-full,.er-turnstile-wrap { grid-column: 1; }
  .er-form-box { padding: 22px 16px; }
  .er-faq-q { font-size: 0.95rem; padding: 16px 0; }
  .er-final-cta-btns { flex-direction: column; align-items: center; }
  .er-final-cta-btns .er-btn { width: 100%; max-width: 310px; }
  .er-footer-inner { flex-direction: column; text-align: center; gap: 5px; }
  .er-process-visual { min-height: 220px; }
  .er-process-visual img { min-height: 220px; }
  .er-about-stats { grid-template-columns: 1fr 1fr; }
  .er-hero-right { height: 38vh; max-height: 260px; }

  /* Mobile: hero trust row wraps cleanly */
  .er-hero-trust { flex-direction: row; gap: 10px; flex-wrap: wrap; }
  .er-trust-item { font-size: 0.74rem; }

  /* Pain items vertical on mobile */
  .er-pain-item { flex-direction: row; }
}

/* ── ACF Testimonials — portrait card with thumbnail + play overlay ── */
.er-slide-acf { flex: 0 0 200px; background: var(--charcoal); border-radius: 14px; overflow: hidden; position: relative; display: flex; flex-direction: column; scroll-snap-align: start; }
.er-slide-link { display: block; position: relative; aspect-ratio: 9/16; overflow: hidden; text-decoration: none; }
.er-slide-link .er-slide-img { width: 100%; height: 100%; object-fit: cover; object-position: center top; display: block; opacity: 0.82; transition: opacity 0.25s ease; }
.er-slide-link:hover .er-slide-img { opacity: 1; }
.er-slide-img-placeholder { width: 100%; aspect-ratio: 9/16; background: #2a2a28; }
.er-slide-play-btn { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); width: 50px; height: 50px; background: rgba(255,255,255,0.92); border-radius: 50%; display: flex; align-items: center; justify-content: center; transition: transform 0.2s ease, background 0.2s ease; pointer-events: none; }
.er-slide-link:hover .er-slide-play-btn { transform: translate(-50%,-50%) scale(1.1); background: white; }
.er-slide-play-btn svg { margin-left: 3px; }
.er-slide-ig-badge { position: absolute; top: 10px; right: 10px; width: 28px; height: 28px; background: rgba(0,0,0,0.45); border-radius: 6px; display: flex; align-items: center; justify-content: center; pointer-events: none; }
.er-slide-no-video { display: none; }
