/* ================= home.css ================= */
/*
Cleaned & reordered version
Goals:

* Remove duplicates
* Group related styles
* Reduce mobile overflow risks
* Make responsive rules predictable

ORDER:

1. CSS variables & base
2. Layout helpers
3. Typography
4. Buttons
5. Generic components (cards, images)
6. Sections (Hero, Why, Services, App, CTA, Search, Trust)
7. Utilities
8. Responsive overrides
   */

/* ================= 1. Variables & Base ================= */
:root {
--green: #00BF63;
--yellow: #FFE066;
--dark: #1b1b1b;
--radius: 10px;
}

.home {
font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
color: var(--dark);
}

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

/* ================= 2. Layout Helpers ================= */

section {
padding: 35px 0;
}

.grid-2 {
display: grid;
grid-template-columns: repeat(2, 1fr);
gap: 40px;
}

.grid-3 {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 30px;
}

/* ================= 3. Typography ================= */
h1, h2, h3 {
line-height: 1.2;
}

.heroTitle {
font-size: 2rem;
color: #fff;
}

.searchTitle {
font-size: 1rem;
color: #000;
}

.customSectionTitle {
font-size: 2rem;
line-height: 1.2;
color: #000;
}

.section-lead {
font-size: 1.1rem;
margin-bottom: 20px;
}

/* ================= 4. Buttons ================= */
.btn {
display: inline-block;
padding: 12px 22px;
border-radius: var(--radius);
font-weight: 600;
text-decoration: none;
white-space: normal;
text-align: center;
}

.btn.primary {
background: var(--green);
color: #fff;
}

.btn.secondary {
background: #fff;
color: var(--green);
border: 2px solid var(--green);
}

.btn.large {
font-size: 1.1rem;
padding: 14px 28px;
}

/* ================= 5. Generic Components ================= */
.card {
background: #fff;
border-radius: var(--radius);
padding: 24px;
box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}

.card.highlight {
background: var(--yellow);
}

.image-card {
width: 100%;
max-width: 520px;
margin-left: auto;
}

.image-card img {
border-radius: 16px;
box-shadow: 0 12px 32px rgba(0,0,0,0.12);
}

/* ================= 6. Sections ================= */

/* ---------- Hero ---------- */
.hero {
position: relative;
overflow: clip;
padding: 80px 0 60px;
color: #fff;
}

.hero-bg {
position: absolute;
inset: 0;
background-size: cover;
background-position: center;
transform: scale(1.15);
z-index: 0;
}

.hero-overlay {
position: absolute;
inset: 0;
/* background: var(--yellow); */
z-index: 1;
}

.hero .container {
position: relative;
z-index: 2;
}

.hero h1 {
font-size: 2.6rem;
margin-bottom: 12px;
}

.hero-sub {
font-size: 1rem;
max-width: 650px;
}

.hero-grid {
display: grid;
grid-template-columns: 1fr 1fr;
align-items: center;
gap: 40px;
}

.hero-image {
max-width: 520px;
margin-left: auto;
}

.hero-image img {
border-radius: 16px;
object-fit: cover;
}

.hero-steps {
display: flex;
gap: 20px;
margin: 30px 0;
font-weight: 600;
flex-wrap: wrap;
}

.step {
display: flex;
align-items: center;
gap: 10px;
}

.step-badge {
width: 20px;
height: 20px;
border-radius: 50%;
background: var(--green);
color: #fff;
display: flex;
align-items: center;
justify-content: center;
font-size: 14px;
}

.hero-cta {
display: flex;
gap: 16px;
flex-wrap: wrap;
}

/* HERO BASE */
.hero {
  position: relative;
  overflow: hidden;
}

/* BACKGROUND IMAGE LAYER */
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 0;
}

/* OVERLAY */
.hero-overlay {
  position: absolute;
  inset: 0;
  /* background: rgba(255, 215, 0, 0.85); /* or your --yellow */ 
  z-index: 1;
}

/* CONTENT */
.hero-grid {
  position: relative;
  z-index: 2;
}

/* ---------- Search ---------- */
/* FLAGS */
.flags-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.25rem;
}

.flag-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

/* IMPORTANT PART */
.flag-item img {
  width: 33px;
  height: 22px;
  object-fit: cover;
}

/* ---------- Why / Trust / Reviews / App / CTA titles ---------- */
.why h2,
.services h2,
.trust h2,
.reviews h2,
.app h2,
.cta h2 {
margin-bottom: 16px;
}

/* ---------- Why ---------- */
.why {
background: var(--yellow);
padding: 40px 0;
}

.why .grid-2 {
align-items: center;
}

.why-text {
display: flex;
flex-direction: column;
}

/* ---------- Services ---------- */
.services .grid-3 {
gap: 24px;
}

.service-card {
background: #fff;
border-radius: 10px;
overflow: hidden;
text-align: center;
}

.service-image {
height: 200px;
overflow: hidden;
}

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

.service-card h3 {
margin: 16px 16px 8px;
}

.service-card p {
margin: 0 16px 20px;
color: #555;
}

.icon-overlay {
position: absolute;
top: 12px;
right: 12px;
width: 46px;
height: 46px;
background: rgba(0,0,0,0.6);
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
}

.icon-overlay i {
color: #fff;
font-size: 18px;
}

/* Checklist */
.checklist {
  list-style: none;
  padding: 0;
}

.checklist li {
  padding-left: 26px;
  margin-bottom: 10px;
  position: relative;
}

.checklist li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--green);
  font-weight: bold;
}

/* ---------- App ---------- */
.app-links {
display: flex;
gap: 14px;
margin-top: 16px;
}

.app-image {
max-width: 360px;
margin-left: auto;
}

.app-image img {
border-radius: 24px;
box-shadow: 0 16px 40px rgba(0,0,0,0.2);
}

/* ---------- CTA ---------- */
.cta {
background: var(--yellow);
text-align: center;
}

.cta .container {
display: flex;
flex-direction: column;
align-items: center;
}

.ai-section{
	background: var(--yellow);
}

/* ================= 7. Utilities ================= */
.trust-heart {
color: #e63946;
}

/* ================= 8. Responsive ================= */
@media (hover: hover) {
.service-card:hover .icon-overlay {
background: var(--green);
}
}

@media (max-width: 992px) {
	.grid-2,
	.grid-3,
	.hero-grid {
	grid-template-columns: 1fr;
	}

	.hero h1 {
	font-size: 2.1rem;
	}

	.hero-image,
	.image-card,
	.app-image {
	margin: 0 auto;
	max-width: 100%;
	}
}

@media (max-width: 376px) {

	.hero-image {
		display: none;
	}
}

@media (max-width: 768px) {
.customSectionTitle {
font-size: 1.6rem;
line-height: 1.18;
}

.service-image {
height: 180px;
}

.icon-overlay {
width: 40px;
height: 40px;
}

.icon-overlay i {
font-size: 16px;
}
}

@media (max-width: 576px) {
.customSectionTitle {
font-size: 1.35rem;
line-height: 1.15;
}

.cta .btn {
width: 100%;
max-width: 100%;
padding-left: 18px;
padding-right: 18px;
font-size: 1rem;
box-sizing: border-box;
}
}

