/**
 * Home page (`#home`) — section layout, hero, cards, “how it works”, reviews
 * ---------------------------------------------------------------------------
 * Animations: keyframes live in `src/css/base/animations.css` (global bundle).
 * Tokens: colors/fonts from `src/css/tokens/design-tokens.css` + typography.
 */

/* Hero typography utilities (bypass Tailwind purge for arbitrary sizes) */
.hero-title {
	font-size: 36px;
	line-height: 1.1;
}
#home .hero-wordmark {
	animation: heroFadeInLeft 0.75s ease-out forwards;
}

#home .hero-title {
	font-size: clamp(2rem, 5.5vw, 3.35rem);
	line-height: 1.08;
	animation: heroFadeInLeft 0.75s ease-out 0.08s both;
}

#home .hero-lead {
	animation: heroFadeUp 0.75s ease-out 0.14s both;
}

#home .hero-body {
	animation: heroFadeUp 0.75s ease-out 0.2s both;
}

#home .booking-card {
	animation: heroSlideInFromBottom 0.85s ease-out 0.28s both;
	opacity: 0;
	transition: box-shadow 0.3s ease, transform 0.3s ease;
}

#home .booking-card.visible {
	opacity: 1;
}

#home .booking-card:hover {
	box-shadow: 0 16px 48px -12px rgba(0, 77, 61, 0.12);
}

#home .booking-form-preview .hero-date-input {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

#home .hero-search-cta {
	background: linear-gradient(180deg, #ff9f26 0%, #ff8c00 55%, #e67e00 100%);
	transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

#home .hero-search-cta:hover {
	filter: brightness(1.05);
	transform: translateY(-1px);
	box-shadow: 0 10px 28px -6px rgba(255, 140, 0, 0.55);
}

#home .hero-search-cta:active {
	transform: translateY(0);
}

#home .hero-payment-pill {
	animation: heroLogoFadeIn 0.55s ease-out both;
	opacity: 0;
}

#home .hero-payment-pill:nth-child(1) {
	animation-delay: 0.55s;
}
#home .hero-payment-pill:nth-child(2) {
	animation-delay: 0.68s;
}
#home .hero-payment-pill:nth-child(3) {
	animation-delay: 0.81s;
}
#home .hero-payment-pill:nth-child(4) {
	animation-delay: 0.94s;
}

#home .hero-showcase-img {
	animation: heroSlideInRight 0.9s ease-out 0.2s both;
}

#home.hero-section-light {
	font-family: 'Montserrat', sans-serif;
}

.hero-subtitle {
	font-size: 14px;
}

#services-cards-container {
	align-items: stretch;
}

/* Card: no fixed height, auto + min so it grows with text */
#services-cards-container [data-index] {
	height: auto !important;
	min-height: 400px;
}

/* Image block: fixed pixel height so it doesn't depend on card height */
#services-cards-container [data-index] .flex-none {
	height: 180px;
}

.home-content-offset {
	margin-left: 8rem; /* same as ml-32 */
	width: calc(100% - 8rem);
}

 /* Card wrapper */
  .hiw-card-outer {
    position: relative;
    height: 100%;
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
  }

  .hiw-card-outer.visible {
    opacity: 1;
    transform: translateY(0);
  }

  /* White card */
  .hiw-card-inner {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
    height: 100%;
    background: #fff;
    border-radius: 20px;
    padding: 2.5rem 1.5rem 1.75rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
  }

  /* Step number bubble */
  .hiw-number {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 52px;
    height: 52px;
    background: var(--primary-color);
    border-radius: 50%;
    border: 3px solid white;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
  }

  .hiw-number span {
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    font-family: var(--font-montserrat-semibold);
    line-height: 1;
  }

  /* Icon circle */
  .hiw-icon-wrap {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    background: rgba(15, 92, 46, 0.10);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-bottom: 1.25rem;
    flex-shrink: 0;
  }

  .hiw-icon-wrap svg {
    color: var(--secondary-color);
    stroke: var(--secondary-color);
  }

  /* Title */
  .hiw-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--secondary-color);
    font-family: var(--font-montserrat-bold);
    margin-bottom: 8px;
  }

  /* Orange divider under title */
  .hiw-divider {
    width: 50px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
    margin: 0 auto 14px;
  }

  /* Description */
  .hiw-desc {
    width: 80%;
    font-size: 18px;
    color: rgb(0, 0, 0, 0.7);
    line-height: 1.65;
    font-family: var(--font-montserrat-semibold);
    flex: 1;
  }

  /* Payment methods legend */
  .hiw-legend {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #f0efeb;
    width: 100%;
  }

  .hiw-badge {
    padding: 4px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    color: #fff;
    font-family: var(--font-montserrat-semibold);
  }

  /* Connector line (desktop) */
  .hiw-connector {
    position: absolute;
    top: calc(50% - 16px);
    /* offset for the number bubble */
    left: 100%;
    width: calc(1.5rem);
    height: 2px;
    background: var(--secondary-color);
    z-index: 0;
    display: none;
  }

  .reviews-section {
    background: linear-gradient(to bottom, rgba(15,92,46,0.08), #fff);
    padding: 48px 16px 64px;
    font-family: 'Montserrat', sans-serif;
  }
  .reviews-title {
    text-align: center;
    font-size: 28px;
    font-weight: 800;
    color: #111;
    margin-bottom: 32px;
    letter-spacing: -0.5px;
  }
  .reviews-title span { color: #0F5C2E; }
  .reviews-grid {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 20px;
    max-width: 860px;
    margin: 0 auto;
  }
  .summary-card {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.09);
    border: 1px solid #f0f0f0;
    padding: 24px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
  }
  .g-logo {
    width: 40px;
    height: 40px;
  }
  .big-rating {
    font-size: 42px;
    font-weight: 800;
    color: #111;
    line-height: 1;
  }
  .stars-row {
    display: flex;
    gap: 3px;
  }
  .star { color: #FBBC05; font-size: 20px; }
  .avatars {
    display: flex;
    align-items: center;
  }
  .avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid #fff;
    margin-left: -8px;
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    flex-shrink: 0;
  }
  .avatar:first-child { margin-left: 0; }
  .avatar-count {
    background: #0F5C2E;
    font-size: 10px;
    padding: 0 6px;
    border-radius: 12px;
    height: 22px;
    display: flex;
    align-items: center;
    color: #fff;
    font-weight: 700;
    margin-left: -4px;
    border: 2px solid #fff;
  }
  .total-label {
    font-size: 12px;
    color: #555;
    font-weight: 600;
  }
  .write-btn {
    background: #0F5C2E;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 8px 16px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    width: 100%;
    margin-top: 4px;
    transition: background 0.2s;
  }
  .write-btn:hover { background: #0a4521; }
  .reviews-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    overflow-y: auto;
    max-height: 360px;
    padding-right: 4px;
  }
  .reviews-list::-webkit-scrollbar { width: 4px; }
  .reviews-list::-webkit-scrollbar-thumb { background: #ddd; border-radius: 4px; }
  .review-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.07);
    border: 1px solid #f0f0f0;
    padding: 14px 16px;
  }
  .review-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
  }
  .reviewer-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
  }
  .reviewer-name {
    font-size: 13px;
    font-weight: 700;
    color: #111;
    margin: 0;
  }
  .review-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 2px;
  }
  .review-meta .star { font-size: 13px; }
  .review-time {
    font-size: 11px;
    color: #999;
  }
  .review-text {
    font-size: 12px;
    color: #444;
    line-height: 1.6;
    margin: 0;
  }
  .verified-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #e8f5e9;
    color: #0F5C2E;
    font-size: 10px;
    font-weight: 700;
    border-radius: 20px;
    padding: 2px 8px;
    margin-bottom: 10px;
  }
  .powered-by {
    text-align: center;
    margin-top: 16px;
    font-size: 11px;
    color: #999;
  }
  .powered-by a { color: #0F5C2E; text-decoration: none; font-weight: 600; }
  @media (max-width: 600px) {
    .reviews-grid { grid-template-columns: 1fr; }
    .summary-card { flex-direction: row; flex-wrap: wrap; justify-content: space-around; padding: 16px; }
    .reviews-list { max-height: none; }
    .reviews-title { font-size: 22px; }
  }

  @media (min-width: 769px) {
    .hiw-connector {
      display: block;
    }
  }

  .hiw-connector-arrow {
    position: absolute;
    right: -1px;
    top: 50%;
    transform: translateY(-50%);
  }


@media (min-width: 640px) { /* sm */
	.hero-title { font-size: 44px; }
}
@media (min-width: 768px) { /* md */
	.hero-title { font-size: 56px; }
}
@media (min-width: 1024px) { /* lg */
	.hero-title { font-size: 80px; }
}
@media (min-width: 1280px) { /* xl */
	.hero-title { font-size: 88px; }
}

@media (min-width: 640px) { /* sm */
	.hero-subtitle { font-size: 16px; }
}
@media (min-width: 768px) { /* md */
	.hero-subtitle { font-size: 18px; }
}
@media (min-width: 1024px) { /* lg */
	.hero-subtitle { font-size: 20px; }
}
@media (min-width: 1280px) { /* xl */
	.hero-subtitle { font-size: 22px; }
}

@media (min-width: 640px) {
	#services-cards-container [data-index] .flex-none { height: 200px; }
}

@media (min-width: 1024px) {
	#services-cards-container [data-index] .flex-none { height: 220px; }
}

@media (min-width: 1280px) {
	#services-cards-container [data-index] .flex-none { height: 200px; }
}

@media (max-width: 1023px) {
	.home-content-offset {
		margin-left: 0;
		width: 100%;
	}
}
