/* ===================================================================
   ICA Macau Church — Plan Your Visit  ·  navy + orange design system
   =================================================================== */

:root {
  --navy:        #0b1c42;
  --navy-2:      #0a1738;
  --navy-deep:   #071230;
  --navy-line:   rgba(255,255,255,.14);
  --orange:      #e2531f;
  --orange-dark: #c4441a;
  --orange-soft: #fdeee7;
  --ink:         #14213a;
  --slate:       #55617a;
  --muted:       #8a93a6;
  --line:        #e6e8ee;
  --bg:          #ffffff;
  --bg-alt:      #eceef1;
  --white:       #ffffff;

  --radius:      14px;
  --radius-sm:   9px;
  --shadow:      0 6px 20px -8px rgba(11,28,66,.25);
  --shadow-lg:   0 30px 60px -22px rgba(7,18,48,.5);
  --maxw:        1140px;

  --display:     'Rubik', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --sans:        'Inter', system-ui, -apple-system, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.container--narrow { max-width: 780px; }
.center { text-align: center; }

/* ---------- Typography ---------- */
.section { padding: 88px 0; }
.section__title {
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: .02em;
  line-height: 1.18;
  color: var(--navy);
  font-size: clamp(1.7rem, 3.6vw, 2.5rem);
  text-wrap: balance;
}
.section__title.light { color: var(--white); }
.section__title.center { text-align: center; }
.section__head { max-width: 660px; margin: 0 auto 52px; text-align: center; }
.section__lead { color: var(--slate); margin-top: 16px; }
.formsec .section__lead, .formsec__lead, .diff__lead { color: rgba(255,255,255,.85); }
.eyebrow {
  display: inline-block;
  font-size: .78rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 10px;
}
.eyebrow--light { color: #f0a184; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--sans); font-weight: 600; font-size: .95rem;
  letter-spacing: .04em; text-transform: uppercase;
  color: var(--white); background: var(--orange);
  border: none; border-radius: var(--radius-sm);
  padding: 14px 30px; cursor: pointer;
  transition: transform .18s ease, background .2s ease, box-shadow .25s ease;
  box-shadow: 0 10px 24px -10px rgba(226,83,31,.7);
}
.btn:hover { background: var(--orange-dark); transform: translateY(-2px); box-shadow: 0 16px 30px -12px rgba(226,83,31,.75); }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: 3px solid #ffd9c9; outline-offset: 2px; }
.btn--sm  { padding: 11px 22px; font-size: .78rem; }
.btn--lg  { padding: 16px 40px; }
.btn--block { width: 100%; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100; padding: 14px 0;
  transition: background .35s ease, box-shadow .35s ease, padding .35s ease;
}
.nav.is-solid {
  background: rgba(8,20,50,.9);
  backdrop-filter: saturate(160%) blur(12px);
  box-shadow: 0 6px 24px -12px rgba(0,0,0,.6);
  padding: 8px 0;
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand__logo { width: 46px; height: 46px; object-fit: contain; flex-shrink: 0; }
.brand__text { color: var(--white); font-size: .72rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; line-height: 1.4; }

/* ---------- 1. Hero ---------- */
.hero {
  position: relative; padding: 132px 0 92px; overflow: hidden;
  background:
    radial-gradient(1100px 460px at 82% 8%, #12285c 0%, transparent 60%),
    linear-gradient(180deg, var(--navy) 0%, var(--navy-2) 100%);
}
.hero__grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: center; }
.hero__title {
  font-family: var(--display); font-weight: 700; color: var(--white);
  font-size: clamp(2.2rem, 5vw, 3.6rem); line-height: 1.12; letter-spacing: .01em;
  text-wrap: balance;
}
.hero__sub { color: rgba(255,255,255,.8); font-size: 1.08rem; max-width: 460px; margin: 22px 0 34px; }
.hero__media { margin: 0; }
.video {
  width: 100%; aspect-ratio: 16 / 9; background: #000;
  border-radius: var(--radius); box-shadow: var(--shadow-lg); object-fit: cover;
}
.hero__cap {
  display: flex; flex-direction: column; gap: 2px;
  margin-top: 16px; text-align: center;
}
.hero__cap strong { font-family: var(--display); font-weight: 600; color: var(--white); font-size: 1.05rem; letter-spacing: .02em; }
.hero__cap span { color: var(--orange); font-weight: 600; font-size: .92rem; letter-spacing: .04em; }
/* Desktop shows the CTA next to the copy; mobile shows it below the video */
.hero__cta--m { display: none; }

/* ---------- 2. What to Expect ---------- */
.expect { background: var(--white); }
.expect__grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.expect__item { text-align: center; padding: 0 34px; position: relative; }
.expect__item + .expect__item::before {
  content: ""; position: absolute; left: 0; top: 6px; bottom: 6px; width: 1px; background: var(--line);
}
.expect__icon {
  width: 64px; height: 64px; margin: 0 auto 20px;
  display: grid; place-items: center; border-radius: 50%;
  background: var(--navy); color: var(--white);
}
.expect__icon svg { width: 30px; height: 30px; fill: currentColor; }
.expect__item h3 {
  font-family: var(--display); font-weight: 600; font-size: 1.1rem;
  color: var(--navy); margin-bottom: 12px; letter-spacing: .02em;
}
.expect__item p { color: var(--slate); font-size: .96rem; }

/* "This is also your home!" */
.promise {
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center;
  margin-top: 72px; padding: 40px; border-radius: var(--radius);
  background: var(--bg-alt);
}
.promise__title { font-family: var(--display); font-weight: 600; font-size: 1.6rem; color: var(--navy); letter-spacing: .02em; }
.promise__intro { color: var(--slate); margin: 8px 0 18px; }
.promise__list { list-style: none; display: flex; flex-direction: column; gap: 12px; margin-bottom: 26px; }
.promise__list li { display: flex; align-items: flex-start; gap: 12px; color: var(--ink); font-weight: 500; }
.promise__list li::before {
  content: ""; flex-shrink: 0; width: 20px; height: 20px; margin-top: 3px; border-radius: 50%;
  background: var(--orange) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/%3E%3C/svg%3E") center/13px no-repeat;
}
.promise__photos { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.promise__photos img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius-sm); box-shadow: var(--shadow); }
.promise__photos img:first-child { grid-column: 1 / -1; aspect-ratio: 16/9; }
.promise__photos img:not(:first-child) { aspect-ratio: 3/4; }

/* ---------- 3. ICA Macau is Different ---------- */
.diff { background: linear-gradient(180deg, var(--navy) 0%, var(--navy-2) 100%); }
.diff__grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: center; }
.diff__lead { margin: 14px 0 26px; max-width: 340px; }
.diff__list { list-style: none; display: grid; gap: 12px; }
.diff__list li {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 20px; border-radius: var(--radius-sm);
  background: rgba(255,255,255,.05);
  border: 1px solid var(--navy-line);
  color: rgba(255,255,255,.9); font-weight: 500;
}
.diff__list li::before {
  content: ""; flex-shrink: 0; width: 22px; height: 22px; border-radius: 50%;
  background: rgba(226,83,31,.18) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23e2531f'%3E%3Cpath d='M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/%3E%3C/svg%3E") center/14px no-repeat;
}
.diff__list .diff__star {
  background: rgba(226,83,31,.14); border-color: rgba(226,83,31,.45);
  color: var(--white); font-weight: 600;
}
.diff__list .diff__star::before {
  background: var(--orange) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M12 17.27L18.18 21l-1.64-7.03L22 9.24l-7.19-.61L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21z'/%3E%3C/svg%3E") center/13px no-repeat;
}

/* ---------- 4. Service Times & Location ---------- */
.times { background: var(--white); }
.times__grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px; align-items: center; }
.times__list { list-style: none; display: flex; flex-direction: column; margin-top: 24px; }
.times__list li { display: flex; gap: 18px; align-items: flex-start; padding: 20px 0; border-bottom: 1px solid var(--line); }
.times__list li:last-child { border-bottom: none; }
.times__ic {
  flex-shrink: 0; width: 46px; height: 46px;
  display: grid; place-items: center; border-radius: 50%;
  border: 1.5px solid var(--navy); color: var(--navy);
}
.times__ic svg { width: 24px; height: 24px; fill: currentColor; }
.times__list strong { color: var(--navy); font-family: var(--display); font-weight: 600; letter-spacing: .02em; font-size: 1rem; }
.times__list li > span:last-child { color: var(--slate); line-height: 1.55; }
.times__map {
  position: relative; display: grid; place-items: center;
  aspect-ratio: 16 / 10; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line);
  background:
    linear-gradient(rgba(80,150,190,.14), rgba(80,150,190,.14)),
    repeating-linear-gradient(50deg, #dfe6ea 0 26px, #d6dee3 26px 28px),
    repeating-linear-gradient(-40deg, #e6edf0 0 44px, #dbe3e8 44px 46px);
  transition: box-shadow .25s ease;
}
.times__map:hover { box-shadow: var(--shadow-lg); }
.times__map::before {
  content: ""; position: absolute; left: 0; right: 40%; bottom: 0; top: 55%;
  background: linear-gradient(120deg, #a9d4e6, #bfe0ee); opacity: .6; transform: skewY(-6deg);
}
.times__pin {
  position: relative; z-index: 2; width: 46px; height: 46px;
  display: grid; place-items: center; color: var(--orange);
  filter: drop-shadow(0 6px 8px rgba(0,0,0,.3));
  animation: bob 2.4s ease-in-out infinite;
}
.times__pin svg { width: 46px; height: 46px; fill: currentColor; }
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.times__maplabel {
  position: absolute; z-index: 2; bottom: 14px;
  font-size: .8rem; font-weight: 600; color: var(--navy);
  background: rgba(255,255,255,.92); padding: 6px 14px; border-radius: 20px;
}

/* ---------- 5. Pastor ---------- */
.pastors { background: var(--bg-alt); }
.pastors__grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 54px; align-items: center; }
.pastors__photo { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); background: var(--navy); }
.pastors__photo img { width: 100%; aspect-ratio: 1/1; object-fit: cover; object-position: center top; }
.pastors__hi { font-family: var(--display); font-size: 1.15rem; color: var(--navy); margin: 14px 0 12px; letter-spacing: .02em; }
.pastors__body p { color: var(--slate); margin-bottom: 16px; }
.pastors__body .btn { margin-top: 8px; }

/* ---------- 6. ICA Kids ---------- */
.kids { background: var(--white); }
.kids__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.kidcard { margin: 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform .28s ease, box-shadow .28s ease; }
.kidcard:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.kidcard img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.kids__cta { margin-top: 44px; }

/* ---------- 7. Gallery ---------- */
.belong { background: var(--bg-alt); }
.belong__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.shot { margin: 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform .3s ease, box-shadow .3s ease; }
.shot:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.shot img { width: 100%; aspect-ratio: 1/1; object-fit: cover; }

/* ---------- 8. Form ---------- */
.formsec { background: linear-gradient(180deg, var(--navy-2) 0%, var(--navy) 100%); }
.formcard { background: var(--white); border-radius: 18px; padding: 40px; box-shadow: var(--shadow-lg); }
.fgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 22px; margin-bottom: 26px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field label { font-size: .84rem; font-weight: 600; color: var(--navy); }
.req { color: var(--orange); margin-left: 3px; }
.opt { color: var(--muted); font-weight: 500; }
.field input, .field select {
  font-family: var(--sans); font-size: .98rem; color: var(--ink);
  padding: 12px 14px; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  background: #f8f9fb; width: 100%; appearance: none;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.field select {
  cursor: pointer; padding-right: 34px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%2355617a' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
}
.field input:focus, .field select:focus {
  outline: none; border-color: var(--orange); background: var(--white);
  box-shadow: 0 0 0 4px rgba(226,83,31,.14);
}
.field input.invalid, .field select.invalid { border-color: #e5484d; box-shadow: 0 0 0 4px rgba(229,72,77,.12); }
.formcard__heart { text-align: center; color: var(--orange); font-weight: 600; margin-top: 18px; }

/* ---------- Footer ---------- */
.footer { background: var(--navy-deep); color: rgba(255,255,255,.75); padding-top: 52px; }
.footer__inner { display: flex; flex-wrap: wrap; gap: 32px; justify-content: space-between; align-items: center; padding-bottom: 40px; }
.footer__brand { display: flex; align-items: center; gap: 16px; max-width: 480px; }
.footer__brand p { font-size: .92rem; color: rgba(255,255,255,.6); }
.footer__links { display: flex; flex-wrap: wrap; gap: 24px; }
.footer__links a { font-size: .92rem; color: rgba(255,255,255,.75); transition: color .2s ease; }
.footer__links a:hover { color: var(--orange); }
.footer__bar { border-top: 1px solid rgba(255,255,255,.1); padding: 20px 0; }
.footer__bar p { font-size: .82rem; color: rgba(255,255,255,.45); text-align: center; }

/* ---------- GSAP reveal (only when GSAP is active) ---------- */
.has-gsap [data-anim] { opacity: 0; transform: translateY(34px); will-change: transform, opacity; }

/* ---------- Responsive ---------- */
@media (max-width: 940px) {
  .hero__grid { grid-template-columns: 1fr; gap: 32px; }
  .hero__copy { text-align: center; }
  .hero__sub { margin-left: auto; margin-right: auto; }
  /* Swap the CTAs: hide the desktop one, show the one below the video */
  .hero__cta--d { display: none; }
  .hero__cta--m { display: inline-flex; justify-self: center; margin-top: -8px; }
  .expect__grid, .kids__grid { grid-template-columns: 1fr; gap: 40px; }
  .expect__item { padding: 0; }
  .expect__item + .expect__item::before { display: none; }
  .promise, .diff__grid, .times__grid, .pastors__grid { grid-template-columns: 1fr; gap: 34px; }
  .belong__grid { grid-template-columns: repeat(2, 1fr); }
  .brand__text { display: none; }
}
@media (max-width: 560px) {
  .section { padding: 58px 0; }
  .hero { padding: 112px 0 64px; }
  .promise { padding: 26px 20px; }
  .fgrid { grid-template-columns: 1fr; }
  .formcard { padding: 26px 20px; }
  .footer__inner { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; }
  .has-gsap [data-anim] { opacity: 1 !important; transform: none !important; }
}
