/* =========================================================
   Agape Service Corporation — Stylesheet
   ========================================================= */

:root {
  --color-primary: #C1502E;
  --color-primary-dark: #9C3D22;
  --color-primary-light: #E8734C;
  --color-secondary: #3F7359;
  --color-gold: #E8A94B;
  --color-cream: #FFF8EF;
  --color-cream-2: #FCEFE2;
  --color-dark: #26211E;
  --color-gray: #6B6058;
  --color-gray-light: #D8CCC0;
  --color-white: #FFFFFF;

  --font-heading: 'Poppins', sans-serif;
  --font-body: 'Inter', sans-serif;

  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;

  --shadow-sm: 0 4px 14px rgba(38, 33, 30, 0.06);
  --shadow-md: 0 12px 32px rgba(38, 33, 30, 0.10);
  --shadow-lg: 0 24px 60px rgba(38, 33, 30, 0.16);

  --transition: 0.3s cubic-bezier(.4,0,.2,1);
  --header-h: 78px;
}

/* ===== Reset ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  font-family: var(--font-body);
  color: var(--color-dark);
  background: var(--color-cream);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, textarea { font-family: inherit; font-size: 1rem; }
h1, h2, h3, h4 { font-family: var(--font-heading); font-weight: 700; line-height: 1.2; color: var(--color-dark); }

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== Preloader ===== */
#preloader {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--color-cream);
  display: flex; align-items: center; justify-content: center;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}
#preloader.loaded { opacity: 0; visibility: hidden; }
.loader-heart {
  width: 46px; height: 46px;
  background: var(--color-primary);
  clip-path: path('M23 40S4 27 4 15a10 10 0 0 1 19-4 10 10 0 0 1 19 4c0 12-19 25-19 25z');
  animation: pulse 1s ease-in-out infinite;
}
@keyframes pulse { 0%,100%{transform:scale(1);} 50%{transform:scale(0.8);} }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 30px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition);
  white-space: nowrap;
}
.btn-primary {
  background: var(--color-primary);
  color: var(--color-white);
  box-shadow: 0 10px 24px rgba(193, 80, 46, 0.28);
}
.btn-primary:hover { background: var(--color-primary-dark); transform: translateY(-2px); box-shadow: 0 14px 28px rgba(193, 80, 46, 0.34); }
.btn-outline {
  background: transparent;
  color: var(--color-dark);
  border: 2px solid var(--color-gray-light);
}
.btn-outline:hover { border-color: var(--color-primary); color: var(--color-primary); }
.btn-light {
  background: var(--color-white);
  color: var(--color-primary);
}
.btn-light:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-sm { padding: 10px 22px; font-size: 0.88rem; }
.btn-block { width: 100%; }

/* ===== Header ===== */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--header-h);
  display: flex; align-items: center;
  background: rgba(255, 248, 239, 0.7);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: box-shadow var(--transition), background var(--transition);
}
.site-header.scrolled {
  background: rgba(255, 248, 239, 0.92);
  box-shadow: var(--shadow-sm);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; }

.logo { display: flex; align-items: center; gap: 10px; font-family: var(--font-heading); font-weight: 800; font-size: 1.4rem; color: var(--color-primary); }
.logo-mark { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.footer-brand .logo { color: var(--color-white); }

.main-nav ul { display: flex; gap: 34px; }
.nav-link {
  font-weight: 500; font-size: 0.96rem; color: var(--color-dark);
  position: relative; padding: 6px 0;
  transition: color var(--transition);
}
.nav-link::after {
  content: ''; position: absolute; left: 0; bottom: 0;
  width: 0; height: 2px; background: var(--color-primary);
  transition: width var(--transition);
}
.nav-link:hover { color: var(--color-primary); }
.nav-link:hover::after { width: 100%; }
.nav-link.active { color: var(--color-primary); }
.nav-link.active::after { width: 100%; }

.header-actions { display: flex; align-items: center; gap: 18px; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; width: 26px; }
.nav-toggle span { display: block; height: 2px; width: 100%; background: var(--color-dark); transition: var(--transition); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== Hero ===== */
.hero {
  position: relative;
  padding: calc(var(--header-h) + 70px) 0 90px;
  overflow: hidden;
  isolation: isolate;
}
.hero-blob {
  position: absolute; border-radius: 50%; z-index: -1; filter: blur(10px);
  opacity: 0.5;
}
.blob-1 { width: 460px; height: 460px; background: radial-gradient(circle, var(--color-gold), transparent 70%); top: -140px; right: -140px; }
.blob-2 { width: 380px; height: 380px; background: radial-gradient(circle, var(--color-primary-light), transparent 70%); bottom: -160px; left: -120px; opacity: 0.35; }
.blob-3 { width: 420px; height: 420px; background: radial-gradient(circle, var(--color-secondary), transparent 70%); top: -100px; left: 50%; transform: translateX(-50%); opacity: 0.18; z-index: 0; }

.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 50px;
  align-items: center;
}
.eyebrow {
  display: inline-block;
  font-weight: 600; font-size: 0.85rem; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 14px;
}
.hero h1 {
  font-size: clamp(2.4rem, 4.2vw, 3.6rem);
  margin-bottom: 20px;
  letter-spacing: -0.01em;
}
.text-accent { color: var(--color-primary); }
.hero-lead { font-size: 1.1rem; color: var(--color-gray); max-width: 540px; margin-bottom: 34px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 46px; }

.hero-stats { display: flex; gap: 30px; flex-wrap: wrap; }
.stat { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 0.92rem; color: var(--color-dark); }
.stat-icon { font-size: 1.3rem; }

.hero-illustration { width: 100%; max-width: 440px; margin: 0 auto; animation: float 5s ease-in-out infinite; }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-16px); } }

.scroll-cue {
  position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%);
  width: 26px; height: 42px; border: 2px solid var(--color-gray-light); border-radius: 100px;
}
.scroll-cue span {
  display: block; width: 5px; height: 5px; border-radius: 50%;
  background: var(--color-primary); margin: 8px auto 0;
  animation: scrollDown 1.8s ease infinite;
}
@keyframes scrollDown { 0% { transform: translateY(0); opacity: 1; } 70% { opacity: 0; } 100% { transform: translateY(16px); opacity: 0; } }

/* ===== Sections ===== */
.section { padding: 110px 0; }
.section-alt { background: var(--color-cream-2); }
.section-head { max-width: 640px; margin: 0 auto 60px; text-align: center; }
.section-head h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); }
.section-sub { color: var(--color-gray); margin-top: 12px; font-size: 1.05rem; }

/* ===== About ===== */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.about-copy p { color: var(--color-gray); margin-bottom: 20px; font-size: 1.03rem; }
.about-copy strong { color: var(--color-dark); }

.about-cards { display: flex; flex-direction: column; gap: 18px; }
.about-card {
  background: var(--color-white);
  padding: 26px 28px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  display: flex; align-items: flex-start; gap: 16px;
  transition: transform var(--transition), box-shadow var(--transition);
}
.about-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.about-card-icon { font-size: 1.8rem; flex-shrink: 0; }
.about-card h3 { font-size: 1.1rem; margin-bottom: 4px; }
.about-card p { color: var(--color-gray); font-size: 0.95rem; }

/* ===== Mission / Vision / Goal ===== */
.mv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; margin-bottom: 46px; }
.mv-card {
  background: var(--color-white);
  padding: 42px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}
.mv-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.mv-icon {
  width: 56px; height: 56px; border-radius: 16px;
  background: var(--color-cream-2);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem; margin-bottom: 20px;
}
.mv-card h3 { font-size: 1.3rem; margin-bottom: 14px; }
.mv-card p { color: var(--color-gray); }

.goal-block {
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  color: var(--color-white);
  padding: 50px;
  border-radius: var(--radius-lg);
}
.goal-block h3 { color: var(--color-white); font-size: 1.5rem; margin-bottom: 14px; }
.goal-block > p { opacity: 0.92; max-width: 640px; margin-bottom: 30px; }
.goal-list { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 34px; }
.goal-list li { display: flex; align-items: flex-start; gap: 12px; font-weight: 500; line-height: 1.5; }
.goal-list li span { font-size: 1.2rem; flex-shrink: 0; }

/* ===== Features ===== */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.feature-card {
  background: var(--color-white);
  padding: 34px 30px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  border: 1px solid transparent;
}
.feature-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: var(--color-gold); }
.feature-icon {
  width: 54px; height: 54px; border-radius: 14px;
  background: var(--color-cream-2);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; margin-bottom: 18px;
}
.feature-card h3 { font-size: 1.15rem; margin-bottom: 10px; }
.feature-card p { color: var(--color-gray); font-size: 0.96rem; }

/* ===== Community Tree ===== */
.tree-section { position: relative; overflow: hidden; }
.tree-inner { display: grid; grid-template-columns: 1fr 1.1fr; gap: 60px; align-items: center; }
.tree-visual img {
  width: 100%;
  max-width: 440px;
  height: auto;
  margin: 0 auto;
  display: block;
  border-radius: var(--radius-lg);
}
.tree-copy p { color: var(--color-gray); font-size: 1.05rem; margin: 18px 0 30px; max-width: 540px; }
.tree-copy h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); }

/* ===== App Screenshots ===== */
.screenshots-row {
  display: flex;
  align-items: center;
  justify-content: center;
}
.phone-card {
  width: 210px;
  flex-shrink: 0;
  filter: drop-shadow(0 24px 44px rgba(38, 33, 30, 0.22));
}
.phone-card img { width: 100%; display: block; }

.phone-left { margin-right: -28px; margin-top: 64px; animation: floatLeft 6s ease-in-out infinite; }
.phone-right { margin-left: -28px; margin-top: 64px; animation: floatRight 6s ease-in-out infinite 0.3s; }
.phone-center { width: 244px; position: relative; z-index: 2; animation: floatCenter 6s ease-in-out infinite 0.15s; }

@keyframes floatCenter { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-16px); } }
@keyframes floatLeft { 0%, 100% { transform: rotate(-7deg) translateY(0); } 50% { transform: rotate(-7deg) translateY(-12px); } }
@keyframes floatRight { 0%, 100% { transform: rotate(7deg) translateY(0); } 50% { transform: rotate(7deg) translateY(-12px); } }

@media (max-width: 760px) {
  .screenshots-row { gap: 0; }
  .phone-left, .phone-right { width: 150px; margin: 40px -22px 0; }
  .phone-center { width: 180px; }
}
@media (max-width: 480px) {
  .phone-left, .phone-right { display: none; }
  .phone-center { width: 220px; margin: 0 auto; }
}

/* ===== Get Our App ===== */
.get-app-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 60px;
  flex-wrap: wrap;
}
.qr-card {
  background: var(--color-white);
  padding: 26px 30px 22px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  text-align: center;
  transition: transform var(--transition), box-shadow var(--transition);
}
.qr-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.qr-image { width: 180px; height: 180px; border-radius: var(--radius-sm); margin: 0 auto; }
.qr-caption { margin-top: 14px; font-weight: 600; color: var(--color-dark); }

.store-buttons { display: flex; flex-direction: column; gap: 20px; }
.store-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 200px;
  height: 60px;
}
.store-badge img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 8px 18px rgba(38, 33, 30, 0.16));
  transition: transform var(--transition);
}
.store-badge:hover img { transform: translateY(-3px); }

@media (max-width: 560px) {
  .get-app-grid { flex-direction: column; }
  .store-buttons { flex-direction: row; flex-wrap: wrap; justify-content: center; }
}

/* ===== Values ===== */
.values-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }
.value-chip {
  padding: 14px 30px;
  background: var(--color-white);
  border-radius: 100px;
  font-weight: 600;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.value-chip:hover { background: var(--color-primary); color: var(--color-white); transform: translateY(-3px); }

/* ===== CTA Banner ===== */
.cta-banner {
  background: linear-gradient(120deg, var(--color-secondary), #2c5544);
  color: var(--color-white);
  padding: 80px 0;
  text-align: center;
}
.cta-inner h2 { color: var(--color-white); font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 14px; }
.cta-inner p { opacity: 0.9; margin-bottom: 34px; font-size: 1.05rem; }

/* ===== Contact ===== */
.contact-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 50px; }
.contact-info { display: flex; flex-direction: column; gap: 28px; }
.info-item { display: flex; gap: 16px; align-items: flex-start; }
.info-icon {
  width: 48px; height: 48px; border-radius: 14px;
  background: var(--color-cream-2);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; flex-shrink: 0;
}
.info-item h4 { font-size: 1rem; margin-bottom: 4px; }
.info-item p, .info-item a { color: var(--color-gray); }
.info-item a:hover { color: var(--color-primary); }
.social-row { display: flex; gap: 10px; margin-top: 6px; }
.social-row a {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--color-white); box-shadow: var(--shadow-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.78rem; font-weight: 700; color: var(--color-primary);
  transition: var(--transition);
}
.social-row a:hover { background: var(--color-primary); color: var(--color-white); }

.contact-form {
  background: var(--color-white);
  padding: 40px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 8px; }
.form-group input, .form-group textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1.5px solid var(--color-gray-light);
  border-radius: var(--radius-sm);
  background: var(--color-cream);
  transition: border-color var(--transition), box-shadow var(--transition);
  resize: vertical;
}
.form-group input:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 4px rgba(193, 80, 46, 0.1);
}
.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; }
.form-status { margin-top: 14px; font-size: 0.92rem; font-weight: 500; min-height: 1.2em; }
.form-status.success { color: var(--color-secondary); }
.form-status.error { color: var(--color-primary); }

/* ===== Footer ===== */
.site-footer { background: var(--color-dark); color: rgba(255,255,255,0.75); padding: 70px 0 0; }
.footer-inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 50px; }
.footer-brand p { margin-top: 14px; max-width: 260px; color: rgba(255,255,255,0.55); }
.footer-links h4 { color: var(--color-white); font-size: 0.95rem; margin-bottom: 18px; }
.footer-links a { display: block; margin-bottom: 12px; color: rgba(255,255,255,0.65); transition: color var(--transition); font-size: 0.94rem; }
.footer-links a:hover { color: var(--color-gold); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 24px 0;
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
}

/* ===== Back to top ===== */
.back-to-top {
  position: fixed; right: 26px; bottom: 26px; z-index: 900;
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--color-primary); color: var(--color-white);
  font-size: 1.1rem; box-shadow: var(--shadow-md);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: var(--transition);
}
.back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--color-primary-dark); }

/* ===== Reveal animation ===== */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in-view { opacity: 1; transform: translateY(0); }

/* ===== Responsive ===== */
@media (max-width: 980px) {
  .hero-inner, .about-grid, .mv-grid, .tree-inner, .contact-grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; max-width: 320px; margin: 0 auto; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .tree-visual { max-width: 240px; margin: 0 auto 10px; }
}

@media (max-width: 760px) {
  .main-nav {
    position: fixed; top: var(--header-h); left: 0; right: 0;
    background: var(--color-cream);
    flex-direction: column;
    box-shadow: var(--shadow-md);
    max-height: 0; overflow: hidden;
    transition: max-height var(--transition);
  }
  .main-nav.open { max-height: 420px; }
  .main-nav ul { flex-direction: column; gap: 0; padding: 10px 24px 20px; }
  .main-nav ul li { border-bottom: 1px solid var(--color-gray-light); }
  .main-nav a { display: block; padding: 16px 0; }
  .nav-toggle { display: flex; }
  .header-actions .btn-sm { display: none; }

  .features-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .goal-list { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; text-align: left; }
  .section { padding: 80px 0; }
  .goal-block, .contact-form { padding: 30px 24px; }
}
