/* GeniusTax Website - Clean CSS without Nicepage Dependencies */

/* ===== Color Palette ===== */
:root {
  --primary-color: #0097a7;
  --primary-light: #e1f5fe;
  --primary-light-3: #b3e5fc;
  --secondary-color: #ffc900;
  --secondary-hover: #e6b700;
  --text-dark: #333;
  --text-light: #666;
  --white: #ffffff;
  --black: #000000;
  --grey-light: #f8f9fa;
  --palette-1-base: #0097a7;
  --palette-1-light-3: #e1f5fe;
  --palette-3-base: #ffc900;
  --hover-color-var: #ffc900;
  --custom-color-2: #f8f9fa;
  --custom-color-3: #ffc900;
  --custom-color-4: #ff6b35;
}

/* ===== Base Styles ===== */ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Roboto', 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #fff;
  margin: 0;
  padding: 0;
}

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

/* ===== Typography ===== */
h1, h2, h3, h4, h5, h6 {
  margin-bottom: 1rem;
  font-weight: 600;
  line-height: 1.2;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
  margin-bottom: 1rem;
}

a {
  color: #0097a7;
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: #007c91;
}

/* ===== Header Styles ===== */
.header {
  background: #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
}

.logo-image {
  height: 50px;
  width: auto;
}

/* ===== Navigation ===== */
.nav {
  position: relative;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
}

.hamburger-line {
  width: 25px;
  height: 3px;
  background: #333;
  margin: 3px 0;
  transition: 0.3s;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
}

.nav-item {
  position: relative;
}

.nav-link {
  color: #333;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
  color: #0097a7;
  background: rgba(0, 151, 167, 0.1);
}

/* ===== Language Selector ===== */
.language-selector {
  position: relative;
  margin-left: 1rem;
}

.language-toggle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: none;
  border: 1px solid #ddd;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.language-toggle:hover {
  border-color: #0097a7;
}

.flag {
  width: 20px;
  height: 15px;
  display: inline-block;
  border-radius: 2px;
}

.flag-ru {
  background: linear-gradient(to bottom, #fff 16%, #f4f4f4 16%, #f4f4f4 42%, #323e95 42%, #323e95 58%, #d8001e 58%, #d8001e 84%, #f4f4f4 84%);
}

.flag-en {
  background: #19237f;
  position: relative;
}

.flag-en::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 2px,
    rgba(255,255,255,0.1) 2px,
    rgba(255,255,255,0.1) 4px
  );
}

/* ===== Testimonials ===== */
.testimonials {
  background: var(--grey-light);
  padding: 56px 0;
}

.testimonials-title {
  text-align: center;
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 28px;
}

/* slider layout */
.testimonials-slider { position: relative; overflow: hidden; }
.slider-track { display: flex; transition: transform .4s ease; will-change: transform; }
.slide { flex: 0 0 100%; }

.testimonial-card {
  background: var(--white);
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.06);
  padding: 20px;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.testimonial-quote {
  color: var(--text-dark);
  font-style: italic;
  margin: 0 0 16px 0;
}

.testimonial-meta {
  margin-top: auto;
  padding-top: 12px;
  border-top: 2px solid var(--primary-color);
}

.testimonial-author {
  font-size: 1.125rem;
  font-weight: 600;
  margin: 0 0 4px 0;
}

.testimonial-role {
  margin: 0;
  color: var(--primary-color);
  font-weight: 600;
}

/* slider controls */
.slider-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid #ddd;
  background: #fff;
  color: #333;
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,.08);
  opacity: 0.4;
  transition: opacity 0.2s ease;
}
.slider-nav:hover { opacity: 1; }
.slider-prev { left: 8px; }
.slider-next { right: 8px; }
.slider-nav:disabled { opacity: 0.2; cursor: not-allowed; }
.slider-nav:disabled:hover { opacity: 0.2; }

.slider-dots { display: flex; gap: 8px; justify-content: center; margin-top: 14px; }
.slider-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #cbd5e1;
  border: 0;
  padding: 0;
  cursor: pointer;
}
.slider-dot.is-active { background: var(--primary-color); }

.flag-ro {
  background: #f3d54d;
  position: relative;
}

.flag-ro::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 33.33%;
  height: 100%;
  background: #293d86;
}

.flag-ro::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 33.33%;
  height: 100%;
  background: #d23333;
}

.caret {
  width: 12px;
  height: 12px;
  fill: currentColor;
}

.language-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  background: white;
  border: 1px solid #ddd;
  border-radius: 4px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  min-width: 150px;
  display: none;
  z-index: 1001;
}

.language-selector:hover .language-dropdown {
  display: block;
}

.language-option {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  color: #333;
  text-decoration: none;
  transition: background 0.3s ease;
}

.language-option:hover {
  background: #f5f5f5;
}

/* ===== Buttons ===== */
.consultation-btn {
  background: var(--custom-color-3);
  color: #333;
  padding: 19px 47px;
  border-radius: 4px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 1rem;
  text-decoration: none;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.consultation-btn:hover {
  background: var(--secondary-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* ===== Footer Styles ===== */
.footer {
  background: #e1f5fe;
  color: #333;
  padding: 3rem 0 1rem;
}

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

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h5 {
  color: #0097a7;
  margin-bottom: 1rem;
}

.footer-logo {
  height: 60px;
  margin-bottom: 1rem;
}

.footer-address p,
.footer-contacts p {
  margin-bottom: 0.5rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.2);
  padding-top: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.copyright {
  margin: 0;
}

.footer-links {
  display: flex;
  gap: 1rem;
}

.footer-link {
  color: #0097a7;
  text-decoration: none;
  font-size: 0.9rem;
}

.footer-link:hover {
  text-decoration: underline;
}

/* ===== WhatsApp Floating Button ===== */
.whatsapp-float {
  position: fixed;
  bottom: 40px;
  right: 40px;
  background-color: #25d366;
  color: #FFF;
  border-radius: 50px;
  box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.4);
  z-index: 1000;
  display: flex;
  align-items: center;
  text-decoration: none;
  transition: all 0.3s ease;
  padding: 15px 20px;
  gap: 12px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.whatsapp-float:hover {
  background-color: #128C7E;
  color: #FFF;
  transform: scale(1.05);
  box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
}

.whatsapp-float i {
  font-size: 24px;
  flex-shrink: 0;
}

.whatsapp-text {
  font-weight: 600;
  font-size: 14px;
  line-height: 1.2;
}

/* ===== Animations ===== */
@keyframes customAnimationIn {
  0% {
    transform: translateX(var(--animation-custom_in-translate_x, 0)) 
               translateY(var(--animation-custom_in-translate_y, 0)) 
               rotate(var(--animation-custom_in-rotate, 0deg)) 
               scale(var(--animation-custom_in-scale, 1));
    opacity: var(--animation-custom_in-opacity, 1);
  }
  100% {
    transform: translateX(0) translateY(0) rotate(0deg) scale(1);
    opacity: 1;
  }
}

@keyframes counter {
  0% {
    transform: scale(0.5);
    opacity: 0;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

/* ===== Responsive Design ===== */
@media (max-width: 768px) {
  .header-container {
    flex-wrap: wrap;
    gap: 1rem;
  }

  .nav-toggle {
    display: flex;
    order: 3;
  }

  .nav-menu {
    position: fixed;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    flex-direction: column;
    padding: 1rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
  }

  .nav-menu.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .desktop-only {
    display: none;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 0.5rem;
  }

  .whatsapp-float {
    bottom: 20px;
    right: 20px;
    padding: 12px 16px;
    gap: 10px;
  }

  .whatsapp-float i {
    font-size: 20px;
  }

  .whatsapp-text {
    font-size: 12px;
  }
}

@media (max-width: 1199px) {
  .hero-content {
    max-width: 940px;
  }
  
  .hero-text {
    min-height: 571px;
  }
  
  .hero-image {
    min-height: 650px;
  }
  
  .hero-shape {
    margin-top: 113px;
  }
}

@media (max-width: 991px) {
  .hero {
    min-height: 198px;
  }
  
  .hero-content {
    grid-template-columns: 1fr;
    gap: 0;
  }
  
  .hero-text {
    min-height: 347px;
    padding: 30px 30px 30px 0;
  }
  
  .hero-title {
    font-size: 2.25rem;
    margin-top: 19px;
  }
  
  .hero-image {
    min-height: 750px;
  }
  
  .hero-shape {
    width: 258px;
    margin-left: 105px;
  }
  
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  
  .about-content {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

/* Mobile/tablet header alignment similar to index.html */
@media (max-width: 767px) {
  .header-container { justify-content: flex-start; padding: 12px 10px; gap: 0; }
  .logo { order: 1; margin-left: 6px; margin-right: auto; }
  .language-selector { order: 2; margin: 0 4px 0 0; }
  .nav { order: 3; }
  .nav-toggle { display: flex; padding: 6px; }
  .language-dropdown { right: 0; left: auto; }
  .hero {
    min-height: 298px;
  }
  
  .hero-text {
    min-height: 100px;
    padding-right: 10px;
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .services-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 575px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.75rem; }
  h3 { font-size: 1.5rem; }
  
  .container {
    padding: 0 15px;
  }
  
  .header-container {
    padding: 0.75rem 15px;
  }
  
  .footer {
    padding: 2rem 0 1rem;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .hero-title {
    font-size: 1.875rem;
  }
  
  .hero-content {
    padding: 0 20px;
  }
  
  .hero-text {
    padding: 20px;
    min-height: auto;
  }
  
  .hero-image {
    min-height: 500px;
    padding: 0;
  }
  
  .hero-shape {
    width: 200px;
    height: 300px;
  }
  
  .hero-img {
    width: 300px;
    height: 350px;
    margin: -300px auto 0 10px;
  }
  
  .about-content {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .services-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .service-card {
    padding: 20px;
  }
  
  .cta-features {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .consultation-btn {
    padding: 15px 30px;
    font-size: 0.9rem;
  }
}

/* ===== Utility Classes ===== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }

.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }

.py-1 { padding-top: 1rem; padding-bottom: 1rem; }
.py-2 { padding-top: 2rem; padding-bottom: 2rem; }
.py-3 { padding-top: 3rem; padding-bottom: 3rem; }

.px-1 { padding-left: 1rem; padding-right: 1rem; }
.px-2 { padding-left: 2rem; padding-right: 2rem; }

.hidden { display: none !important; }
.visible { display: block !important; }

/* ===== Form Styles ===== */
.form-group {
  margin-bottom: 1rem;
}

.form-control {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.form-control:focus {
  outline: none;
  border-color: #0097a7;
  box-shadow: 0 0 0 3px rgba(0, 151, 167, 0.1);
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-primary {
  background: #0097a7;
  color: white;
}

.btn-primary:hover {
  background: #007c91;
}

.btn-secondary {
  background: #6c757d;
  color: white;
}

.btn-secondary:hover {
  background: #5a6268;
}

/* ===== Nicepage Layout System ===== */
.u-sheet {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.u-layout-wrap {
  display: flex;
  flex-wrap: wrap;
}

.u-layout {
  display: flex;
  width: 100%;
}

.u-layout-row {
  flex-direction: row;
  flex-wrap: wrap;
}

.u-layout-cell {
  flex: 0 0 auto;
  min-height: 1px;
}

.u-container-layout {
  position: relative;
  height: 100%;
  width: 100%;
}

/* ===== Size Classes ===== */
.u-size-25-lg { flex: 0 0 25%; }
.u-size-35-lg { flex: 0 0 35%; }
.u-size-60-md { flex: 0 0 60%; }
.u-size-60-sm { flex: 0 0 60%; }
.u-size-60-xs { flex: 0 0 60%; }
.u-size-25-xl { flex: 0 0 25%; }
.u-size-35-xl { flex: 0 0 35%; }
.u-size-25-xxl { flex: 0 0 25%; }
.u-size-35-xxl { flex: 0 0 35%; }

/* ===== Hero Section - Original Design ===== */
.hero {
  background: var(--palette-1-light-3);
  position: relative;
}

.hero .u-sheet {
  min-height: 749px;
}

.hero-content {
  margin-top: 58px;
  margin-bottom: 31px;
}

.hero-text-container {
  min-height: 692px;
  --animation-custom_in-translate_x: -300px;
  --animation-custom_in-translate_y: 0px;
  --animation-custom_in-opacity: 0;
  --animation-custom_in-rotate: 0deg;
  --animation-custom_in-scale: 1;
  animation: customAnimationIn 800ms 0s ease-in-out both;
}

.hero-title {
  font-size: 2.9375rem;
  font-weight: 700;
  color: var(--palette-1-base);
  margin: 126px 0 0;
  line-height: 1.2;
}

.hero-btn {
  background: var(--custom-color-3);
  color: #333;
  padding: 19px 18px 19px 17px;
  border-radius: 4px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 1rem;
  text-decoration: none;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 39px auto 0 0;
}

.hero-btn:hover {
  background: var(--secondary-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.hero-image-container {
  min-height: 692px;
  --animation-custom_in-translate_x: 300px;
  --animation-custom_in-translate_y: 0px;
  --animation-custom_in-opacity: 0;
  --animation-custom_in-rotate: 0deg;
  --animation-custom_in-scale: 1;
  animation: customAnimationIn 1500ms 500ms ease-in-out both;
}

.hero-shape {
  width: 407px;
  height: 574px;
  background: var(--palette-1-base);
  border-radius: 20px;
  opacity: 0.1;
  margin: 0 0 0 auto;
  animation: customAnimationIn 1000ms 200ms ease-in-out both;
}

.hero-image {
  width: 469px;
  height: 531px;
  object-fit: cover;
  border-radius: 15px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
  margin: -454px auto 0 21px;
  filter: brightness(0.85);
  animation: customAnimationIn 1000ms 0s ease-in-out both;
}

/* ===== Services Section - Original Design ===== */
.services {
  background: #fff;
  padding: 60px 0 59px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  max-width: 1200px;
  margin: 60px auto 59px;
}

.service-card {
  background: white;
  padding: 30px 20px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  --animation-custom_in-translate_x: 0px;
  --animation-custom_in-translate_y: 0px;
  --animation-custom_in-opacity: 0;
  --animation-custom_in-rotate: 0deg;
  --animation-custom_in-scale: 0.3;
  animation: customAnimationIn 1500ms 200ms ease-in-out both;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.service-icon {
  width: 81px;
  height: 81px;
  margin: 0 auto 15px;
  background: var(--palette-1-base);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-icon img {
  width: 50px;
  height: 50px;
}

.service-card h3 {
  color: var(--palette-1-base);
  margin-bottom: 35px;
  font-size: 1.5rem;
  font-family: "Plus Jakarta Sans", sans-serif;
  text-transform: none;
}

.service-card p {
  color: var(--text-light);
  line-height: 1.6;
  font-style: italic;
  margin: 0;
}
/* ===== About Section - Original Design ===== */
.about {
  background: #fff;
  padding: 60px 0;
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
  align-items: center;
}

.about-text {
  padding: 35px 50px 35px 0;
  min-height: 1009px;
  --animation-custom_in-translate_x: 0px;
  --animation-custom_in-translate_y: 300px;
  --animation-custom_in-opacity: 0;
  --animation-custom_in-rotate: 0deg;
  --animation-custom_in-scale: 1;
  animation: customAnimationIn 1500ms 0s ease-in-out both;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.about-text h2 {
  color: var(--text-dark);
  margin-bottom: 20px;
  font-size: 2.5rem;
  font-weight: 700;
}

.about-text p {
  color: var(--text-light);
  line-height: 1.6;
  margin-bottom: 30px;
}

.about-stats {
  background: var(--palette-1-base);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  color: white;
  min-height: 381px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  --animation-custom_in-translate_x: 0px;
  --animation-custom_in-translate_y: 300px;
  --animation-custom_in-opacity: 0;
  --animation-custom_in-rotate: 0deg;
  --animation-custom_in-scale: 1;
  animation: customAnimationIn 1500ms 500ms ease-in-out both;
}

.about-stats img {
  width: 278px;
  height: 91px;
  margin-bottom: 20px;
}

.about-stats h3 {
  font-size: 3rem;
  margin: 20px 0 30px;
  font-weight: 700;
}

.about-stats h5 {
  font-size: 1.11765rem;
  margin: 0;
}

/* ===== CTA Section - Original Design ===== */
.cta {
  background: var(--grey-light);
  color: var(--text-dark);
  padding: 60px 0;
}

.cta-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  max-width: 1200px;
  margin: 40px auto;
}

.cta .feature {
  background: white;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  transition: transform 0.3s ease;
}

.cta .feature:hover {
  transform: translateY(-2px);
}

.cta .feature i {
  color: var(--palette-1-base);
  font-size: 1.5rem;
  margin-bottom: 15px;
  display: block;
}

.cta .feature h4 {
  color: var(--palette-1-base);
  margin-bottom: 15px;
  font-size: 1.25rem;
}

.cta .feature p {
  color: var(--text-light);
  line-height: 1.6;
  margin: 0;
}

.cta-content {
  text-align: center;
  max-width: 1200px;
  margin: 0 auto;
}

.cta h2 {
  color: white;
  margin-bottom: 40px;
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 40px;
}

.cta .consultation-btn {
  background: var(--custom-color-3);
  color: #333;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 19px 47px;
  border: 2px solid var(--palette-1-base);
}

.cta .btn-secondary {
  background: transparent;
  color: white;
  border: 2px solid white;
  padding: 19px 47px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.cta .btn-secondary:hover {
  background: rgba(255,255,255,0.1);
}

/* ===== Overrides: Make top hero fit viewport on desktop ===== */
@media (min-width: 940px){
  /* Fit hero section to viewport height minus header (only homepage hero) */
  #sec-31d2 .u-sheet-1{ min-height: calc(100vh - 120px) !important; }
  #sec-31d2 .u-layout-wrap-1{ margin-top: 20px !important; margin-bottom: 20px !important; }
  #sec-31d2 .u-layout-cell-1,
  #sec-31d2 .u-layout-cell-2{ min-height: auto !important; }
  #sec-31d2 .u-text-1{ margin-top: 0 !important; }
  #sec-31d2 .u-image-1{ height: auto !important; max-height: calc(100vh - 200px) !important; margin-top: 0 !important; }
  #sec-31d2 .u-shape-1{ height: auto !important; max-height: calc(100vh - 220px) !important; margin-top: 0 !important; }
  /* Center hero text block on index hero */
  #sec-31d2 .u-layout-cell-1{ min-height: calc(100vh - 120px) !important; }
  #sec-31d2 .u-container-layout-1{
    display:flex !important;
    flex-direction:column !important;
    align-items:center !important;
    justify-content:center !important;
    text-align:center !important;
    padding: 0 20px !important;
  }
  #sec-31d2 .u-text-1{ text-align:center !important; margin: 0 !important; }
  #sec-31d2 .u-btn-1{ margin: 24px auto 0 !important; }
}

/* Fit hero to viewport on Services and About (desktop) */
@media (min-width: 940px){
  /* Services hero */
  #sec-32b3 .u-sheet-1{ min-height: calc(100vh - 120px) !important; display:flex !important; align-items:center !important; }
  /* About hero */
  #carousel_8fae .u-sheet-1{ height: calc(100vh - 120px) !important; min-height: auto !important; padding-top:24px !important; padding-bottom:24px !important; display:flex !important; align-items:center !important; overflow:hidden !important; }
  /* Enlarge photo without growing section height */
  #carousel_8fae .u-image-1{
    width: auto !important;
    height: calc(100vh - 160px) !important; /* bigger image within hero height */
    max-height: none !important;
    object-fit: cover !important;
    margin-top: 0 !important;
  }
  #carousel_8fae .u-group-1{ margin-top: 0 !important; }
  #carousel_8fae .u-shape-1{ margin-top: 160px !important; }
}
