/*
 * sections.css - Reusable section styling (why-choose, testimonials, home contact).
 * Loaded only on pages that render these sections (home/about/feedback, etc.).
 */

/* Speed: skip layout/paint for below-the-fold sections */
.cv-auto{content-visibility:auto;contain-intrinsic-size:1px 800px}

/* ===== Why Choose Us (modern cards) ===== */
.why-choose-section {
  position: relative;
  background:
    radial-gradient(1200px 400px at 50% -250px, rgba(26, 82, 118, 0.08), transparent 70%),
    linear-gradient(180deg, #f8f9fb 0%, #ffffff 100%);
}

.why-choose-section .why-choose-title {
  color: #1f2430;
  margin-bottom: 0.5rem;
}

.why-choose-section .why-choose-divider {
  width: 84px;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
  margin: 0 auto 1rem;
}

.why-choose-subtitle {
  color: #3d4a5c;
  max-width: 720px;
  margin: 0 auto;
}

.why-choose-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.why-choose-grid > * {
  min-width: 0;
}

.why-choose-item {
  height: 100%;
  padding: 1.5rem 1.25rem;
  border: 1px solid #e8ecf2;
  border-radius: 16px;
  background-color: #fff;
  box-shadow: 0 10px 30px rgba(17, 24, 39, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.why-choose-item:hover {
  transform: translateY(-4px);
  border-color: rgba(26, 82, 118, 0.24);
  box-shadow: 0 14px 34px rgba(17, 24, 39, 0.1);
}

.why-choose-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  margin: 0 auto 1rem;
  border-radius: 14px;
  color: var(--primary);
  background: linear-gradient(145deg, rgba(26, 82, 118, 0.08), rgba(31, 100, 144, 0.14));
}

.why-choose-icon-svg {
  width: 1.9rem;
  height: 1.9rem;
}

.why-choose-heading {
  color: #1f2430;
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.65rem;
}

.why-choose-desc {
  color: #3d4a5c;
  font-size: 1.02rem;
  line-height: 1.6;
  margin: 0;
}

@media (max-width: 991px) {
  .why-choose-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
  .why-choose-grid { grid-template-columns: 1fr; }
}

/* ===== Modern Testimonials (cards) ===== */
.testimonial-layout-modern {
  background: linear-gradient(180deg, #f8f9fa 0%, #ffffff 100%);
}

.testimonial-layout-modern__card {
  position: relative;
  display: flex;
  flex-direction: column;
  border: 1px solid #eee;
  border-radius: 14px;
  background: #fff;
  padding: 1.5rem;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.05);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.testimonial-layout-modern__card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
}

.testimonial-layout-modern__quote-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: color-mix(in srgb, var(--primary) 12%, transparent);
  color: var(--primary);
  margin-bottom: 1rem;
}

.testimonial-layout-modern__message {
  margin: 0 0 1rem;
  color: #2d3748;
  font-size: 0.98rem;
  line-height: 1.7;
}

.testimonial-layout-modern__meta { margin-top: auto; }

.testimonial-layout-modern__rating {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-bottom: 1rem;
}

.testimonial-layout-modern__star-wrap {
  position: relative;
  display: inline-flex;
  width: 16px;
  height: 16px;
}

.testimonial-layout-modern__star-base,
.testimonial-layout-modern__star-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  display: inline-flex;
  align-items: center;
}

.testimonial-layout-modern__star-base { width: 100%; color: #d4d7dc; }
.testimonial-layout-modern__star-fill { overflow: hidden; color: #f2b635; white-space: nowrap; }
.testimonial-layout-modern__star { width: 16px; height: 16px; }

.testimonial-layout-modern__author {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  border-top: 1px dashed #e9ecef;
  padding-top: 0.9rem;
}

.testimonial-layout-modern__name {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  color: #1f2430;
}

.testimonial-layout-modern__label {
  font-size: 0.82rem;
  color: #495057;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ===== Home Contact Modern ===== */
.home-contact-modern {
  background: linear-gradient(180deg, #f8f9fa 0%, #ffffff 100%);
}

.home-contact-modern__info {
  background: linear-gradient(160deg, #2b2e4a 0%, #20233b 100%);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 14px;
  padding: 1.75rem;
  box-shadow: 0 10px 24px rgba(33, 37, 41, 0.18);
}

.home-contact-modern__info-title {
  color: #fff !important;
  margin: 0 0 0.75rem;
  font-size: 1.3rem;
}

.home-contact-modern__info-text {
  color: rgba(255, 255, 255, 0.88);
  margin: 0 0 1.25rem;
}

.home-contact-modern__feature-list {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.home-contact-modern__feature-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.06);
}

.home-contact-modern__feature-item strong {
  display: block;
  color: #fff;
  margin-bottom: 0.15rem;
}

.home-contact-modern__feature-item p {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.92rem;
}

.home-contact-modern__feature-item p.home-contact-modern__reply-timing {
  color: #fff;
}

.home-contact-modern__feature-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: linear-gradient(180deg, var(--primary-light) 0%, var(--primary) 100%);
  box-shadow: 0 6px 14px color-mix(in srgb, var(--primary) 35%, transparent);
}

.home-contact-modern__feature-icon svg {
  display: block;
  width: 1.125em;
  height: 1.125em;
  flex-shrink: 0;
}

.home-contact-modern__form-wrap { height: 100%; }

.home-contact-modern__form {
  border: 1px solid #eee;
  border-radius: 14px;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.05);
}

.home-contact-modern__textarea {
  resize: vertical;
  min-height: 140px;
}

.home-contact-modern__honeypot { display: none; }

@media (max-width: 991px) {
  .home-contact-modern__info { margin-bottom: 0.5rem; }
}

