/* ============================================
   Infally.online — Main Stylesheet
   Clean, professional, fully responsive
   ============================================ */

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

:root {
  --primary: #1a5276;
  --primary-dark: #154360;
  --primary-light: #2e86c1;
  --text: #1c1c1c;
  --text-muted: #5a6472;
  --bg: #ffffff;
  --bg-light: #f4f6f8;
  --border: #dde1e7;
  --success: #1e8449;
  --radius: 6px;
  --shadow: 0 2px 12px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 24px rgba(0,0,0,0.12);
  --max-width: 1140px;
  --font: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  font-size: 16px;
}

a { color: var(--primary); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--primary-dark); }

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

address { font-style: normal; }

/* ---- CONTAINER ---- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* ---- BUTTONS ---- */
.btn {
  display: inline-block;
  padding: 13px 30px;
  border-radius: var(--radius);
  font-size: 0.97rem;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.2s;
  text-align: center;
  line-height: 1.3;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); color: #fff; }

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

.btn-large { padding: 16px 44px; font-size: 1.05rem; }

/* ---- TAGS ---- */
.tag, .section-tag {
  display: inline-block;
  background: #e8f0f8;
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 5px 12px;
  border-radius: 20px;
  margin-bottom: 14px;
}

/* ---- HEADER ---- */
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 1px 6px rgba(0,0,0,0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 20px;
}

.logo {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.logo span { color: var(--text-muted); font-weight: 400; }

.main-nav ul {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
}

.main-nav a {
  color: var(--text);
  font-size: 0.93rem;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: var(--radius);
  transition: background 0.15s, color 0.15s;
}
.main-nav a:hover, .main-nav a.active { background: #e8f0f8; color: var(--primary); }
.main-nav a.nav-btn {
  background: var(--primary);
  color: #fff;
  padding: 9px 20px;
}
.main-nav a.nav-btn:hover { background: var(--primary-dark); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text);
  padding: 6px;
}

/* ---- HERO ---- */
.hero {
  background: linear-gradient(135deg, #eaf2fb 0%, #f4f6f8 100%);
  padding: 80px 0 60px;
  border-bottom: 1px solid var(--border);
}

.hero-inner {
  display: grid;
  gap: 48px;
}

.hero-text h1 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  line-height: 1.2;
  color: var(--text);
  margin-bottom: 18px;
}

.hero-text p {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 600px;
  margin-bottom: 28px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}

.trust-line {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 10px !important;
}

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

.stat-box {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 28px;
  text-align: center;
  flex: 1 1 140px;
}
.stat-box strong {
  display: block;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
}
.stat-box span { font-size: 0.82rem; color: var(--text-muted); }

/* ---- SECTION ---- */
.section { padding: 72px 0; }
.bg-light { background: var(--bg-light); }

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 52px;
}
.section-header h2 {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 800;
  margin-bottom: 14px;
  line-height: 1.25;
}
.section-header p { color: var(--text-muted); font-size: 1rem; }

/* ---- TWO COL ---- */
.two-col {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
}

.col-text h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 14px;
  color: var(--primary);
}
.col-text p { color: var(--text-muted); margin-bottom: 14px; font-size: 0.97rem; }

.check-list { list-style: none; padding: 0; }
.check-list li {
  padding: 8px 0 8px 28px;
  position: relative;
  font-size: 0.95rem;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
}
.check-list li:last-child { border-bottom: none; }
.check-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--success);
  font-weight: 700;
}

/* ---- CARDS ---- */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 26px;
  transition: box-shadow 0.2s;
}
.card:hover { box-shadow: var(--shadow-md); }

.card-icon { font-size: 1.8rem; margin-bottom: 16px; }
.card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 10px; }
.card p { font-size: 0.93rem; color: var(--text-muted); line-height: 1.7; }

/* ---- TESTIMONIALS ---- */
.testi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-bottom: 24px;
}

.testi-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}
.stars { color: #d4a017; font-size: 1rem; margin-bottom: 14px; letter-spacing: 2px; }
.testi-card p { font-size: 0.95rem; color: var(--text-muted); font-style: italic; margin-bottom: 16px; }
.testi-card strong { font-size: 0.85rem; color: var(--text); }

.disclaimer-note {
  font-size: 0.8rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
  padding-top: 16px;
  margin-top: 8px;
}

/* ---- CTA SECTION ---- */
.cta-section {
  background: var(--primary);
  color: #fff;
}

.cta-inner {
  text-align: center;
  max-width: 680px;
  margin: 0 auto;
}
.cta-section h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  margin-bottom: 16px;
  color: #fff;
}
.cta-section p { color: rgba(255,255,255,0.82); margin-bottom: 28px; font-size: 1rem; }
.cta-section .btn-primary {
  background: #fff;
  color: var(--primary);
  border-color: #fff;
}
.cta-section .btn-primary:hover { background: #e8f0f8; border-color: #e8f0f8; }
.cta-section .trust-line { color: rgba(255,255,255,0.7); margin-bottom: 14px !important; }

.affiliate-note {
  font-size: 0.78rem !important;
  color: rgba(255,255,255,0.55) !important;
  margin-bottom: 0 !important;
  margin-top: 14px;
}

/* ---- FOOTER ---- */
.site-footer {
  background: #0e1720;
  color: rgba(255,255,255,0.65);
}

.footer-inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  padding: 60px 0 40px;
}

.footer-col .logo { color: #fff; margin-bottom: 12px; }
.footer-col p { font-size: 0.87rem; line-height: 1.7; margin-bottom: 10px; }
.footer-col h4 {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.4);
  margin-bottom: 16px;
  font-weight: 600;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col a { color: rgba(255,255,255,0.65); font-size: 0.88rem; }
.footer-col a:hover { color: #fff; }
.affiliate-badge {
  font-size: 0.78rem;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  padding: 8px 12px;
  border-radius: 4px;
  display: inline-block;
  margin-top: 4px;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 20px 0;
}
.footer-bottom p { font-size: 0.8rem; color: rgba(255,255,255,0.4); text-align: center; }
.footer-bottom a { color: rgba(255,255,255,0.5); }
.footer-bottom a:hover { color: #fff; }

/* ---- HERO WITH IMAGE ---- */
.hero-with-img {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.hero-img-wrap img {
  width: 100%;
  height: 440px;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.13);
}
.hero-with-img .hero-stats {
  margin-top: 28px;
}

/* ---- ABOUT IMAGE ---- */
.about-img-wrap {
  margin: 0 0 0 0;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.about-img-wrap img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  display: block;
}

/* ---- BENEFITS IMAGE ROW ---- */
.benefits-img-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}
.benefit-img-item {
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow);
}
.benefit-img-item img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
  transition: transform 0.3s;
}
.benefit-img-item:hover img { transform: scale(1.03); }
.benefit-img-item span {
  display: block;
  text-align: center;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
  padding: 10px 8px 12px;
  background: #fff;
  border: 1px solid var(--border);
  border-top: none;
}

/* ---- TESTIMONIAL AVATARS ---- */
.testi-author-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}
.testi-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border);
  flex-shrink: 0;
}
.testi-author-row div strong {
  display: block;
  font-size: 0.93rem;
  color: var(--text);
}
.testi-author-row div span {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* ---- HERO WITH IMAGE ---- */
.hero-with-img {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.hero-img-wrap {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(0,0,0,0.18);
}
.hero-img-wrap img {
  width: 100%;
  height: 440px;
  object-fit: cover;
  display: block;
}
.hero-with-img .hero-stats {
  margin-top: 28px;
  flex-wrap: wrap;
}

/* ---- ABOUT IMAGE ---- */
.about-img-wrap {
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 8px;
  box-shadow: var(--shadow);
}
.about-img-wrap img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  display: block;
}

/* ---- BENEFITS IMAGE ROW ---- */
.benefits-img-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 40px;
}
.benefit-img-item {
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow);
}
.benefit-img-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  transition: transform 0.3s;
}
.benefit-img-item:hover img { transform: scale(1.04); }
.benefit-img-item span {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.65));
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 20px 14px 10px;
  display: block;
}

/* ---- TESTIMONIAL AVATAR ---- */
.testi-author-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}
.testi-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border);
  flex-shrink: 0;
}
.testi-author-row div strong {
  display: block;
  font-size: 0.95rem;
  color: var(--text);
}
.testi-author-row div span {
  font-size: 0.8rem;
  color: var(--text-muted);
}
.testi-card p { margin-top: 10px; }

/* ---- RESPONSIVE IMAGES ---- */
@media (max-width: 900px) {
  .hero-with-img {
    grid-template-columns: 1fr;
  }
  .hero-img-wrap { display: none; }
  .benefits-img-row {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 560px) {
  .benefits-img-row {
    grid-template-columns: 1fr;
  }
  .about-img-wrap img { height: 200px; }
}

/* ---- HERO WITH IMAGE ---- */
.hero-with-img {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.hero-with-img .hero-stats {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.hero-img-wrap {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0,0,0,0.13);
}
.hero-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ---- ABOUT IMAGE ---- */
.about-img-wrap {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
  margin-bottom: 0;
}
.about-img-wrap img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  display: block;
}

/* ---- BENEFIT IMAGE ROW ---- */
.benefits-img-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}
.benefit-img-item {
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow);
}
.benefit-img-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  transition: transform 0.3s;
}
.benefit-img-item:hover img { transform: scale(1.03); }
.benefit-img-item span {
  display: block;
  text-align: center;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
  padding: 10px 8px;
  background: #fff;
  border: 1px solid var(--border);
  border-top: none;
}

/* ---- TESTIMONIAL AVATARS ---- */
.testi-author-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}
.testi-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border);
  flex-shrink: 0;
}
.testi-author-row div strong {
  display: block;
  font-size: 0.93rem;
  color: var(--text);
}
.testi-author-row div span {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* ---- POLICY PAGES ---- */
.page-hero {
  background: var(--bg-light);
  border-bottom: 1px solid var(--border);
  padding: 52px 0 40px;
}
.page-hero h1 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; margin-bottom: 8px; }
.page-hero p { color: var(--text-muted); font-size: 0.93rem; }

.policy-body {
  max-width: 820px;
  margin: 0 auto;
  padding: 60px 20px 80px;
}
.policy-body h2 {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 36px 0 12px;
  color: var(--primary);
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border);
}
.policy-body p, .policy-body li {
  font-size: 0.97rem;
  color: #3a3a3a;
  line-height: 1.85;
  margin-bottom: 12px;
}
.policy-body ul, .policy-body ol { padding-left: 22px; margin-bottom: 14px; }
.policy-body a { color: var(--primary); text-decoration: underline; }
.policy-body .update-date {
  display: inline-block;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 32px;
  padding: 6px 14px;
  background: var(--bg-light);
  border-radius: 4px;
  border: 1px solid var(--border);
}

/* ---- CONTACT PAGE ---- */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 48px;
  max-width: 900px;
  margin: 0 auto;
  padding: 64px 20px;
}
.contact-info h2 { font-size: 1.3rem; font-weight: 700; margin-bottom: 20px; }
.contact-detail {
  display: flex;
  gap: 14px;
  margin-bottom: 22px;
  align-items: flex-start;
}
.contact-detail .icon { font-size: 1.2rem; margin-top: 2px; flex-shrink: 0; }
.contact-detail div p { font-size: 0.93rem; color: var(--text-muted); margin: 0; }
.contact-detail div strong { display: block; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted); margin-bottom: 4px; }

.contact-form-box {
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 30px;
}
.contact-form-box h2 { font-size: 1.2rem; font-weight: 700; margin-bottom: 20px; }
.form-group { margin-bottom: 18px; }
.form-group label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text);
}
.form-group input, .form-group textarea, .form-group select {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-family: var(--font);
  background: #fff;
  color: var(--text);
  transition: border-color 0.2s;
}
.form-group input:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--primary-light);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-success {
  display: none;
  background: #eafaf1;
  border: 1px solid #a9dfbf;
  color: var(--success);
  padding: 14px 18px;
  border-radius: var(--radius);
  font-size: 0.93rem;
  margin-top: 14px;
}

/* ---- BREADCRUMB ---- */
.breadcrumb {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 10px;
}
.breadcrumb a { color: var(--primary); }
.breadcrumb span { margin: 0 6px; }

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
  .nav-toggle { display: block; }
  .main-nav {
    display: none;
    position: absolute;
    top: 64px;
    left: 0; right: 0;
    background: #fff;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
    z-index: 999;
  }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; padding: 12px 0; gap: 0; }
  .main-nav a { display: block; border-radius: 0; padding: 12px 20px; }
  .hero-with-img { grid-template-columns: 1fr; }
  .hero-img-wrap { order: -1; max-height: 260px; }
  .hero-img-wrap img { height: 260px; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { text-align: center; }
  .hero-stats { justify-content: center; }
  .stat-box { flex: 1 1 120px; }
  .benefits-img-row { grid-template-columns: 1fr; }
  .benefit-img-item img { height: 180px; }
  .cta-section p { margin-bottom: 20px; }
}

@media (max-width: 480px) {
  .section { padding: 52px 0; }
  .hero { padding: 52px 0 40px; }
  .hero-text h1 { font-size: 1.7rem; }
  .card { padding: 24px 18px; }
  .testi-card { padding: 22px; }
  .contact-form-box { padding: 24px 18px; }
}

/* ---- RESPONSIVE IMAGE ADDITIONS ---- */
@media (max-width: 900px) {
  .hero-with-img {
    grid-template-columns: 1fr;
  }
  .hero-img-wrap img { height: 260px; }
  .benefits-img-row { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  .hero-with-img { grid-template-columns: 1fr; }
  .hero-img-wrap img { height: 200px; }
  .benefits-img-row { grid-template-columns: 1fr; }
  .about-img-wrap img { height: 180px; }
  .benefit-img-item img { height: 160px; }
}
