/* ============================================
   ETS Design System v2 — Professional Refinements
   Fixes: icon scaling, opacity, brand graphics,
   inline style eradication, color discipline
   ============================================ */

:root {
  --mountain-opacity: 0.12;
  --brand-graphic-border: rgba(255, 255, 255, 0.12);
  --brand-graphic-shadow: 0 2px 12px rgba(0, 0, 0, 0.10);
  --section-wave: #f5f2ee;
  --bg-warm: #f5f2ed;
}

/* ========== MOUNTAIN SILHOUETTE (VISIBLE) ========== */

.mountain-divider {
  position: relative;
  height: 80px;
  overflow: hidden;
  background: transparent;
  margin: -1px 0;
  pointer-events: none;
}

.mountain-divider svg {
  display: block;
  width: 100%;
  height: 100%;
}

/* Prevent opacity:0.04 — now 0.12, actually visible */
.mountain-divider svg path:first-child {
  opacity: 0.12;
}
.mountain-divider svg path:last-child {
  opacity: 0.08;
}

/* ========== BRAND GRAPHIC (INTENTIONAL, NOT BROKEN) ========== */

.brand-graphic {
  position: relative;
  width: 100%;
  max-width: 360px;
  aspect-ratio: 4/3;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--brand-graphic-shadow);
}

/* Geometric accent shapes - subtle morphing background */
.brand-graphic::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -15%;
  width: 60%;
  height: 80%;
  background: var(--accent);
  opacity: 0.12;
  border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
}

.brand-graphic::after {
  content: '';
  position: absolute;
  bottom: -10%;
  left: -10%;
  width: 50%;
  height: 50%;
  background: rgba(255,255,255,0.06);
  border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
}

.brand-graphic-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-align: center;
  padding: 24px;
  z-index: 1;
}

.brand-graphic-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 16px;
  opacity: 0.85;
}

.brand-graphic-label {
  font-family: 'Hanken Grotesk', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.65;
}

/* Variant: square aspect (used on about/managed-it) */
.brand-graphic-square {
  aspect-ratio: 1;
  max-width: 280px;
}

/* Variant: wide aspect (for service area) */
.brand-graphic-wide {
  aspect-ratio: 16/7;
  max-width: 100%;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
}

/* ========== HERO PHOTO — MODERN (NO ROUNDED CORNERS) ========== */

.hero-photo {
  border-radius: 4px;
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--bg-alt);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.10), 0 0 0 1px rgba(0, 0, 0, 0.04);
}

.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 30%;
}

/* ========== PROCESS STRIP (FIXED ICON SCALING) ========== */

.process-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 36px;
}

.process-step {
  text-align: center;
  padding: 32px 24px;
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.process-step:hover {
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.06);
  transform: translateY(-3px);
}

/* CRITICAL: Explicit SVG sizing to prevent 1092px scaling bug */
.process-step-icon {
  width: 44px !important;
  height: 44px !important;
  margin: 0 auto 16px;
  color: var(--accent);
  display: block;
}

.process-step h4 {
  margin-bottom: 8px;
  font-size: 1rem;
}

.process-step p {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 0;
}

@media (max-width: 700px) {
  .process-strip {
    grid-template-columns: 1fr;
  }
}

/* ========== CTA + NEWSLETTER COMBINED ========== */

.cta-with-signup {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  padding: 72px 0;
  text-align: center;
  color: #fff;
}

.cta-with-signup h2 {
  color: #fff;
  margin-bottom: 8px;
}

.cta-with-signup .cta-sub {
  color: rgba(255,255,255,0.65);
  margin-bottom: 32px;
  font-size: 1.05rem;
}

/* CTA buttons in combined section - balanced pair */
.cta-with-signup .cta-buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

/* Newsletter form inside CTA section */
.cta-with-signup .newsletter-form {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  max-width: 540px;
  margin: 0 auto;
}

.cta-with-signup .newsletter-form input {
  flex: 1 1 200px;
  padding: 14px 18px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.08);
  color: #fff;
  font-family: inherit;
  font-size: 1rem;
}

.cta-with-signup .newsletter-form input::placeholder {
  color: rgba(255,255,255,0.45);
}

.cta-with-signup .newsletter-form input:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(255,255,255,0.12);
}

.cta-with-signup .newsletter-separator {
  border: none;
  border-top: 1px solid rgba(255,255,255,0.1);
  margin: 0 auto 28px;
  max-width: 300px;
}

.cta-with-signup .signup-note {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.4);
  margin-top: 16px;
  margin-bottom: 0;
}

/* Light outline button variant for dark backgrounds */
.btn-outline-light {
  background: transparent;
  color: rgba(255,255,255,0.8);
  border: 2px solid rgba(255,255,255,0.25);
}
.btn-outline-light:hover {
  border-color: #fff;
  color: #fff;
  transform: translateY(-1px);
}

/* ========== DARK BRAND HERO ========== */

.hero-brand {
  padding: 100px 0 80px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 50%, #0d2b22 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.hero-brand::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(ellipse at 30% 80%, rgba(217, 114, 52, 0.1) 0%, transparent 50%),
    radial-gradient(ellipse at 70% 20%, rgba(255,255,255,0.05) 0%, transparent 40%);
  z-index: -1;
}

.hero-brand h1 {
  color: #fff;
  font-size: 3.2rem;
  max-width: 640px;
}

.hero-brand .hero-sub {
  color: rgba(255,255,255,0.7);
  font-size: 1.1rem;
  max-width: 520px;
}

.hero-brand .hero-phone a {
  color: #fff;
  border-bottom-color: var(--accent);
}

/* Urgent bar inside dark hero */
.hero-brand .urgent-bar {
  background: rgba(255,248,225,0.1);
  border-color: rgba(255,224,130,0.25);
}
.hero-brand .urgent-bar p,
.hero-brand .urgent-bar a {
  color: #fff;
}

/* Phone note on dark bg */
.hero-brand .hero-phone-note {
  color: rgba(255,255,255,0.55);
}

/* ========== SECTION TREATMENTS ========== */

/* Section wave background */
.section-wave {
  background: var(--section-wave);
}

/* Brand accent bar at top of sections */
.section-brand-accent {
  position: relative;
}
.section-brand-accent::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent);
  z-index: 1;
}

/* ========== CTA HERO PHONE (ABOUT PAGE) ========== */

.cta-phone-hero {
  text-align: center;
}

.cta-phone-hero .cta-phone-number {
  font-family: 'Libre Caslon Text', serif;
  font-size: 3rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
  display: block;
  margin-bottom: 8px;
}

.cta-phone-hero .cta-phone-number a {
  color: #fff;
  text-decoration: none;
  border-bottom: 3px solid var(--accent);
  padding-bottom: 4px;
  transition: border-color 0.2s ease;
}

.cta-phone-hero .cta-phone-number a:hover {
  border-color: rgba(255,255,255,0.5);
}

/* ========== SCROLL REVEAL ========== */

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  transform: translateX(-40px);
}
.reveal-left.visible {
  transform: translateX(0);
}

.reveal-right {
  transform: translateX(40px);
}
.reveal-right.visible {
  transform: translateX(0);
}

.reveal-scale {
  transform: scale(0.92);
}
.reveal-scale.visible {
  transform: scale(1);
}

.reveal-delay-1 { transition-delay: 0.05s; }
.reveal-delay-2 { transition-delay: 0.12s; }
.reveal-delay-3 { transition-delay: 0.2s; }
.reveal-delay-4 { transition-delay: 0.28s; }

/* ========== BRAND ACCENT LINE ========== */

.brand-accent-line {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 24px 0;
}

.brand-accent-line::before,
.brand-accent-line::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border-light);
}

.brand-accent-line .brand-accent-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

/* ========== SERVICE ITEM FEATURED CARDS ========== */

.service-item-featured {
  background: linear-gradient(135deg, #f9f7f4 0%, #fff 100%);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 24px 28px !important;
  margin-bottom: 12px;
  border-bottom: none !important;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.service-item-featured:hover {
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

.service-item-featured .service-price .amount {
  position: relative;
  display: inline-block;
}

.service-item-featured .service-price .amount::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent);
  opacity: 0.3;
  border-radius: 2px;
}

/* ========== UTILITY REPLACEMENTS FOR INLINE STYLES ========== */

.cta-buttons-spaced {
  margin-bottom: 36px !important;
}

.mt-48 {
  margin-top: 48px;
}

.text-center {
  text-align: center;
}

.mb-0 {
  margin-bottom: 0;
}

/* Service area 2-column grid */
.service-area-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

@media (max-width: 700px) {
  .service-area-grid {
    grid-template-columns: 1fr;
  }
}

/* Years banner subtitle */
.years-subtitle {
  color: var(--text-muted);
  margin-bottom: 0;
  font-size: 0.92rem;
}

/* CTA buttons compact spacing */
.cta-buttons-compact {
  margin-top: 8px !important;
}
/* ============================================
   Service Track Card Redesign — v2c
   Fixes: column alignment, brand graphic position,
   bullet styling, overall card balance
   ============================================ */

/* Make both columns stretch to full card height */
.service-track {
  align-items: stretch !important;
  padding: 44px 44px !important;
}

/* Right column: flex column to push brand graphic to bottom */
.service-track-details {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  gap: 20px;
}

.service-track-details .section-illust {
  margin: 0;
  max-width: 100%;
}

/* Brand graphic inside card — shorter, horizontal layout, bottom aligned */
.service-track-details .brand-graphic {
  max-width: 100%;
  aspect-ratio: 16/7;
  border-radius: var(--radius);
}

.service-track-details .brand-graphic-content {
  padding: 16px 20px;
  flex-direction: row;
  gap: 14px;
  justify-content: flex-start;
  align-items: center;
}

.service-track-details .brand-graphic-icon {
  width: 28px;
  height: 28px;
  margin-bottom: 0;
  flex-shrink: 0;
}

.service-track-details .brand-graphic-label {
  font-size: 0.75rem;
  text-align: left;
}

/* Bullet list — branded dots instead of em dashes */
.service-track-details ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.service-track-details li {
  padding: 7px 0 7px 20px;
  font-size: 0.92rem;
  color: var(--text-muted);
  position: relative;
  line-height: 1.45;
}

.service-track-details li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 14px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.5;
}

/* Left column — refined spacing */
.service-track-intro h2 {
  font-size: 1.35rem;
  margin-bottom: 10px;
}

.service-track-intro p {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin-bottom: 14px;
  line-height: 1.6;
}

.service-track-intro .price-hint {
  font-size: 0.88rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 20px;
  line-height: 1.5;
}

.service-track-intro .price-hint strong {
  color: var(--accent);
  font-size: 1rem;
}

/* Remove morph animation from brand graphics */
.brand-graphic::before,
.brand-graphic::after {
  animation: none !important;
}

.brand-graphic::before {
  opacity: 0.08;
  right: -10%;
  top: -10%;
  width: 45%;
  height: 70%;
}

.brand-graphic::after {
  display: none;
}

/* Subtle texture on brand graphics */
.brand-graphic {
  background:
    linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 60%, #1d5a48 100%),
    repeating-linear-gradient(
      45deg,
      transparent,
      transparent 12px,
      rgba(255,255,255,0.02) 12px,
      rgba(255,255,255,0.02) 13px
    );
}

/* --- Testimonials page --- */
.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 900px;
  margin: 0 auto;
}

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

.testimonial-card {
  background: #ffffff;
  border-radius: 8px;
  padding: 28px 28px 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.07), 0 0 0 1px rgba(0, 0, 0, 0.03);
  position: relative;
}

.testimonial-stars {
  display: flex;
  gap: 2px;
  margin-bottom: 12px;
}

.testimonial-text {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text);
  margin-bottom: 14px;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px;
  font-size: 0.82rem;
}

.testimonial-name {
  font-weight: 600;
  color: var(--text);
}

.testimonial-src {
  color: var(--text-muted);
}

.testimonial-src::before {
  content: '\00b7';
  margin-right: 4px;
  color: var(--text-light);
}

.note-text {
  font-size: 0.88rem;
  font-style: italic;
  color: var(--text-muted);
  margin-top: 8px;
}
/* --- End: Testimonials page --- */
