/* ============================
   VALERIA ZHUPYK — Design System
   Aesthetic Studio Premium
   Mobile-First
   ============================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400&family=Inter:wght@300;400;500;600&display=swap');

/* ── Design Tokens ── */
:root {
  /* Colors */
  --color-primary: #42231A;
  --color-background: #FAF8F5;
  --color-surface: #F3EDE7;
  --color-surface-alt: #EDE5DB;
  --color-accent: #C4A87C;
  --color-accent-dark: #A88D5E;
  --color-accent-rose: #D4A9A9;
  --color-white: #FFFFFF;
  --color-text: #2C2C2C;
  --color-text-light: #6B6560;
  --color-text-muted: #9C958E;
  --color-border: #E8E0D8;
  --color-overlay: rgba(44, 44, 44, 0.35);

  /* Typography */
  --font-heading: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Spacing */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;
  --space-4xl: 80px;

  /* Borders */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-pill: 999px;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.07);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.1);

  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Reset ── */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-background);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  outline: none;
}

/* ── Typography ── */
h1,
h2,
h3,
h4 {
  font-family: var(--font-heading);
  font-weight: 300;
  line-height: 1.15;
  color: var(--color-primary);
}

h1 {
  font-size: clamp(36px, 10vw, 56px);
  letter-spacing: 6px;
  text-transform: uppercase;
}

h2 {
  font-size: clamp(28px, 7vw, 42px);
  letter-spacing: 2px;
}

h3 {
  font-size: clamp(18px, 5vw, 24px);
  font-weight: 400;
  letter-spacing: 0.5px;
}

p {
  color: var(--color-text-light);
  line-height: 1.7;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  border-radius: var(--radius-pill);
  transition: all var(--transition-fast);
  white-space: nowrap;
}


.btn-primary {
  /* Crystal Clean Base */
  background: rgba(66, 35, 26, 0.35);
  /* Use #42231A with 35% opacity */
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  /* Slightly less blur for "clearer" glass */
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.3);
  /* Sharper, cleaner border */
  border-top: 1px solid rgba(255, 255, 255, 0.6);
  /* Strong highlight */
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  /* Sudo shadow */
  position: relative;
  overflow: hidden;
  box-shadow:
    0 4px 24px 0 rgba(66, 35, 26, 0.15),
    /* Soft shadow using #42231A */
    inset 0 0 0 1px rgba(255, 255, 255, 0.1),
    /* Inner rim */
    inset 0 1px 0 0 rgba(255, 255, 255, 0.4);
  /* Top inner highlight */
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  /* Subtle text shadow */
  transition: all 0.3s ease;
}

/* Inner Shine Element - Cleaner */
.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -50%;
  width: 200%;
  height: 100%;
  background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.25), transparent);
  transform: skewX(-20deg);
  transition: transform 0.5s;
  pointer-events: none;
}

.btn-primary:hover {
  background: rgba(66, 35, 26, 0.55);
  /* Slightly more visible on hover */
  transform: translateY(-2px);
  box-shadow:
    0 8px 32px 0 rgba(66, 35, 26, 0.25),
    /* Glow of the accent color */
    inset 0 0 0 1px rgba(255, 255, 255, 0.2),
    inset 0 1px 0 0 rgba(255, 255, 255, 0.5);
  border-color: rgba(255, 255, 255, 0.5);
  color: #FFFFFF;
}

.btn-primary:hover::before {
  animation: shine 1.5s infinite;
}

@keyframes shine {
  0% {
    left: -100%;
  }

  100% {
    left: 200%;
  }
}

.btn-outline {
  background: transparent;
  color: var(--color-primary);
  border: 1.5px solid var(--color-border);
}

.btn-outline:hover {
  border-color: var(--color-primary);
  background: var(--color-primary);
  color: var(--color-white);
}

.btn-accent {
  background: var(--color-accent);
  color: var(--color-white);
  border: 1.5px solid var(--color-accent);
}

.btn-accent:hover {
  background: var(--color-accent-dark);
  border-color: var(--color-accent-dark);
}

.btn-sm {
  padding: 10px 20px;
  font-size: 11px;
  letter-spacing: 1.2px;
}

.btn-lg {
  padding: 18px 40px;
  font-size: 14px;
}

/* ── HERO SECTION ── */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  min-height: 600px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
      rgba(250, 248, 245, 0.3) 0%,
      rgba(250, 248, 245, 0.15) 40%,
      rgba(250, 248, 245, 0.5) 80%,
      rgba(250, 248, 245, 0.85) 100%);
  z-index: 1;
}

.hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-lg);
}

.hero__subtitle {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--color-text-light);
  margin-bottom: var(--space-sm);
}

.hero__title {
  margin-bottom: var(--space-md);
}

@keyframes popIn {
  from {
    opacity: 0;
    transform: scale(0.9) translateY(20px);
  }

  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.hero__logo {
  max-width: 80vw;
  width: 230px;
  height: auto;
  display: block;
  opacity: 0;
  /* Start hidden */
  animation: popIn 1.2s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
  animation-delay: 0.2s;
}

.hero__divider {
  width: 40px;
  height: 1px;
  background: var(--color-accent);
  margin: var(--space-sm) 0;
}

.hero__tagline {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 300;
  font-style: italic;
  color: black;
  letter-spacing: 1px;
}

.hero__cta {
  margin-top: var(--space-md);
}

.hero__scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  animation: float 2.5s ease-in-out infinite;
}

.hero__scroll-indicator span {
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.hero__scroll-indicator .arrow {
  width: 1px;
  height: 24px;
  background: var(--color-accent);
  position: relative;
}

.hero__scroll-indicator .arrow::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 8px;
  height: 8px;
  border-right: 1px solid var(--color-accent);
  border-bottom: 1px solid var(--color-accent);
}

@keyframes float {

  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }

  50% {
    transform: translateX(-50%) translateY(8px);
  }
}

/* ── SECTION HEADER ── */
.section-header {
  text-align: center;
  padding: var(--space-3xl) var(--space-lg) var(--space-2xl);
}

.section-header__label {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-md);
  display: block;
}

.section-header__title {
  font-size: clamp(26px, 7vw, 40px);
  font-weight: 300;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: var(--space-md);
}

.section-header__divider {
  width: 40px;
  height: 1px;
  background: var(--color-accent);
  margin: 0 auto var(--space-md);
}

.section-header__desc {
  font-size: 14px;
  color: var(--color-text-muted);
  max-width: 320px;
  margin: 0 auto;
}

/* ── SERVICE CARDS (HORIZONTAL ZIG-ZAG) ── */
.services {
  padding: 0 var(--space-lg) var(--space-3xl);
  display: flex;
  flex-direction: column;
  gap: var(--space-2xl);
  max-width: 1000px;
  margin: 0 auto;
}

.service-card {
  display: flex;
  flex-direction: row;
  background: var(--color-white);
  border-radius: 30px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(66, 35, 26, 0.1);
  transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
  opacity: 0;
  transform: translateY(30px);
  min-height: 280px;
}

.service-card.reveal {
  opacity: 1;
  transform: translateY(0);
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 30px 60px rgba(66, 35, 26, 0.15);
}

.service-card:nth-child(even) {
  flex-direction: row-reverse;
}

.service-card__image {
  flex: 1;
  position: relative;
  overflow: hidden;
  min-height: 100%;
}

.service-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.service-card:hover .service-card__image img {
  transform: scale(1.1);
}

.service-card__content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 24px 40px;
  background: var(--color-white);
}

/* Ensure consistent internal spacing regardless of side */
.service-card:nth-child(even) .service-card__content {
  background: var(--color-white);
}

.service-card__number {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 300;
  color: var(--color-primary);
  opacity: 0.3;
  line-height: 1;
  margin-bottom: var(--space-sm);
}

.service-card__title {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: 0.5px;
  color: var(--color-primary);
  margin-bottom: var(--space-md);
  line-height: 1.25;
}

.service-card__desc {
  font-size: 14px;
  color: var(--color-text-light);
  margin-bottom: var(--space-lg);
  line-height: 1.6;
  flex-grow: 1;
}

.service-card__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #BCA68F;
  margin-top: auto;
  padding: 10px 20px;
  background: var(--color-surface);
  border-radius: var(--radius-pill);
  width: fit-content;
  transition: all var(--transition-fast);
}

.service-card__link:hover {
  gap: 12px;
  background: #BCA68F;
  color: var(--color-white);
}

.service-card__link svg {
  width: 14px;
  height: 14px;
  transition: transform var(--transition-fast);
}

.service-card__link:hover svg {
  transform: translateX(2px);
}

/* ── FOOTER ── */
.footer {
  background: var(--color-primary);
  color: var(--color-white);
  text-align: center;
  padding: var(--space-3xl) var(--space-lg) var(--space-2xl);
}

.footer__logo {
  display: flex;
  justify-content: center;
  margin-bottom: var(--space-md);
}

.footer__logo-img {
  max-width: 240px;
  width: 216px;
  height: auto;
  display: block;
}

.footer__tagline {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 300;
  font-style: italic;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: var(--space-xl);
  letter-spacing: 1px;
}

.footer__divider {
  width: 40px;
  height: 1px;
  background: var(--color-accent);
  margin: 0 auto var(--space-xl);
}

.footer__socials {
  display: flex;
  justify-content: center;
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
}

.footer__social-link {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  /* Glass Effect */
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  color: rgba(255, 255, 255, 0.7);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.footer__social-link:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
  color: var(--color-white);
  box-shadow:
    0 8px 20px rgba(0, 0, 0, 0.15),
    inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.footer__social-link svg {
  width: 20px;
  height: 20px;
}

.footer__buttons {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  max-width: 280px;
  margin: 0 auto var(--space-xl);
}

.footer .btn-accent {
  width: 100%;
  /* Glass Accent Effect */
  background: rgba(196, 168, 124, 0.25);
  /* Accent color glass */
  backdrop-filter: blur(6px);
  border: 1px solid rgba(196, 168, 124, 0.3);
  border-top: 1px solid rgba(196, 168, 124, 0.6);
  color: var(--color-white);
  box-shadow:
    0 4px 15px rgba(196, 168, 124, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.footer .btn-accent:hover {
  background: rgba(196, 168, 124, 0.4);
  border-color: rgba(196, 168, 124, 0.5);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(196, 168, 124, 0.25);
}

.footer .btn-outline {
  width: 100%;
  /* Glass Outline Effect */
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.8);
}

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

.footer__copyright {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.3);
  letter-spacing: 1px;
}

/* ── SERVICE DETAIL PAGE ── */
.service-detail {
  min-height: 100vh;
}

.service-detail__hero {
  position: relative;
  height: 50vh;
  min-height: 300px;
  overflow: hidden;
}

.service-detail__hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-detail__hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
      transparent 50%,
      var(--color-background) 100%);
}

.service-detail__back {
  position: absolute;
  top: var(--space-lg);
  left: var(--space-lg);
  z-index: 10;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-sm);
}

.service-detail__back:hover {
  background: var(--color-white);
  box-shadow: var(--shadow-md);
}

.service-detail__back svg {
  width: 20px;
  height: 20px;
  color: var(--color-primary);
}

.service-detail__body {
  padding: var(--space-xl) var(--space-lg);
  max-width: 480px;
  margin: 0 auto;
  padding-bottom: 120px;
}

.service-detail__label {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-md);
  display: block;
}

.service-detail__title {
  font-size: clamp(28px, 8vw, 40px);
  font-weight: 300;
  letter-spacing: 2px;
  margin-bottom: var(--space-lg);
}

.service-detail__divider {
  width: 40px;
  height: 1px;
  background: var(--color-accent);
  margin-bottom: var(--space-lg);
}

.service-detail__description {
  font-size: 15px;
  color: var(--color-text-light);
  line-height: 1.8;
  margin-bottom: var(--space-xl);
}

.service-detail__benefits {
  list-style: none;
  margin-bottom: var(--space-xl);
}

.service-detail__benefits li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  padding: var(--space-md) 0;
  border-bottom: 1px solid var(--color-border);
  font-size: 14px;
  color: var(--color-text);
}

.service-detail__benefits li:last-child {
  border-bottom: none;
}

.service-detail__benefits .check {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--color-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}

.service-detail__benefits .check svg {
  width: 12px;
  height: 12px;
  color: var(--color-accent);
}

.service-detail__info {
  display: flex;
  justify-content: space-between;
  padding: var(--space-lg);
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-xl);
}

.service-detail__info-item {
  text-align: center;
  flex: 1;
}

.service-detail__info-item:first-child {
  border-right: 1px solid var(--color-border);
}

.service-detail__info-label {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: var(--space-xs);
  display: block;
}

.service-detail__info-value {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 400;
  color: var(--color-primary);
}

/* Fixed CTA Bar */
.service-detail__cta-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: var(--space-md) var(--space-lg);
  background: rgba(250, 248, 245, 0.95);
  backdrop-filter: blur(20px);
  border-top: 1px solid var(--color-border);
  display: flex;
  gap: var(--space-md);
}

.service-detail__cta-bar .btn {
  flex: 1;
}

/* ── ANIMATIONS ── */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity var(--transition-slow), transform var(--transition-slow);
}

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

.fade-in-left {
  opacity: 0;
  transform: translateX(-20px);
  transition: opacity var(--transition-slow), transform var(--transition-slow);
}

.fade-in-left.reveal {
  opacity: 1;
  transform: translateX(0);
}

.fade-in-right {
  opacity: 0;
  transform: translateX(20px);
  transition: opacity var(--transition-slow), transform var(--transition-slow);
}

.fade-in-right.reveal {
  opacity: 1;
  transform: translateX(0);
}

/* Stagger delay for children */
.stagger>*:nth-child(1) {
  transition-delay: 0s;
}

.stagger>*:nth-child(2) {
  transition-delay: 0.1s;
}

.stagger>*:nth-child(3) {
  transition-delay: 0.2s;
}

.stagger>*:nth-child(4) {
  transition-delay: 0.3s;
}

.stagger>*:nth-child(5) {
  transition-delay: 0.4s;
}

/* ── SPLIT TEXT ANIMATION (ReactBits-inspired) ── */
[data-split-text] {
  overflow: hidden;
  display: inline-block;
  white-space: normal;
  word-wrap: break-word;
}

[data-split-text] .split-line {
  display: block;
  overflow: hidden;
}

[data-split-text] .split-char {
  display: inline-block;
  opacity: 0;
  transform: translateY(40px);
  will-change: transform, opacity;
  transition-property: opacity, transform;
  transition-duration: 0.9s;
  transition-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
  /* power3.out */
}

[data-split-text] .split-char.space {
  width: 0.3em;
}

[data-split-text].split-animated .split-char {
  opacity: 1;
  transform: translateY(0);
}

/* ── RESPONSIVE (Desktop) ── */
@media (min-width: 768px) {
  .service-card {
    min-height: 320px;
  }

  .service-card__content {
    padding: var(--space-2xl) var(--space-xl);
  }

  .service-card__title {
    font-size: 26px;
  }

  .service-card__desc {
    font-size: 14px;
  }

  .footer__buttons {
    flex-direction: row;
    max-width: 400px;
  }

  .service-detail__body {
    padding: var(--space-2xl) var(--space-xl);
    padding-bottom: 120px;
  }
}

@media (min-width: 1024px) {
  .service-card {
    min-height: 400px;
  }

  .service-card__content {
    padding: var(--space-3xl) var(--space-2xl);
  }

  .hero__title {
    letter-spacing: 12px;
  }
}

/* ── Page Transition ── */
.page-transition {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--color-background);
  opacity: 1;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.page-transition.hidden {
  opacity: 0;
}

/* Loading text */
.loading-text {
  font-family: var(--font-heading);
  font-size: 14px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

/* ── RESPONSIVE (Mobile) ── */
@media (max-width: 767px) {
  .hero__title {
    font-size: 32px;
    letter-spacing: 4px;
  }

  /* Force Zig-Zag Layout even on Mobile */
  .service-card {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    min-height: 140px;
    /* Reduced min-height further */
    align-items: stretch;
  }

  .service-card:nth-child(even) {
    flex-direction: row-reverse !important;
  }

  .service-card__image {
    flex: 0 0 38%;
    /* Slightly less than 40% to be safe */
    width: 38%;
    min-height: auto;
    height: auto;
    position: relative;
  }

  .service-card__image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .service-card__content {
    flex: 0 0 62%;
    /* Remaining width */
    width: 62%;
    padding: 12px 16px;
    /* Compact padding */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
  }

  /* Keep text aligned left for readability */
  .service-card:nth-child(even) .service-card__content {
    align-items: flex-start;
    text-align: left;
  }

  .service-card__title {
    font-size: 15px;
    margin-bottom: 6px;
    line-height: 1.2;
  }

  .service-card__number {
    font-size: 12px;
    margin-bottom: 2px;
  }

  .service-card__desc {
    font-size: 10px;
    line-height: 1.3;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    /* Show fewer lines */
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .service-card__link {
    padding: 6px 12px;
    font-size: 9px;
    margin-top: 0;
    letter-spacing: 1px;
  }
}