/* =============================================
   Amil David Masih — Spiritual Healing Website
   style.css
   ============================================= */

/* ---------- Google Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600;700;900&family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

/* ---------- CSS Variables / Color Theme ---------- */
:root {
  --bg:        hsl(220, 15%, 8%);
  --bg-card:   hsl(220, 20%, 11%);
  --bg-card2:  hsl(220, 20%, 14%);
  --fg:        hsl(45, 20%, 90%);
  --fg-muted:  hsl(220, 10%, 58%);
  --border:    hsl(220, 15%, 20%);
  --primary:   hsl(43, 74%, 49%);
  --primary-dark: hsl(43, 74%, 38%);
  --primary-fg: hsl(220, 15%, 8%);
  --wa-green:  #25D366;
  --wa-dark:   #128C7E;
  --radius:    0.75rem;
  --shadow-glow: 0 0 40px hsl(43 74% 49% / 0.15);
  --font-serif: 'Cinzel', Georgia, serif;
  --font-sans:  'Plus Jakarta Sans', system-ui, sans-serif;
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background-color: var(--bg);
  color: var(--fg);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; font-family: var(--font-sans); border: none; background: none; }

.container {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 1.5rem;
}

/* ---------- Typography Helpers ---------- */
.serif   { font-family: var(--font-serif); }
.primary { color: var(--primary); }

h1, h2, h3, h4 { font-family: var(--font-serif); line-height: 1.2; color: var(--fg); }

/* Push all content below the fixed header */
main { padding-top: 64px; }

/* ---------- Section divider ---------- */
.divider {
  width: 4rem;
  height: 3px;
  background: var(--primary);
  border-radius: 2px;
  margin: 1rem 0;
}
.divider.center { margin-inline: auto; }

/* =============================================
   HEADER / NAVBAR
   ============================================= */
#header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 9999;
  padding: 1rem 0;
  background: rgba(14, 17, 26, 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: background 0.3s, padding 0.3s, box-shadow 0.3s;
}

#header.scrolled {
  background: rgba(14, 17, 26, 0.97);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 0.65rem 0;
  box-shadow: 0 2px 24px rgba(0,0,0,0.5);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.logo {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--fg);
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--primary); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.5rem;
  border-radius: 9999px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
  font-family: var(--font-sans);
}

.btn-primary {
  background: var(--primary);
  color: var(--primary-fg);
}
.btn-primary:hover { background: var(--primary-dark); }

.btn-outline {
  background: transparent;
  border: 1px solid var(--primary);
  color: var(--primary);
}
.btn-outline:hover { background: var(--primary); color: var(--primary-fg); }

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

.btn-lg { padding: 0.85rem 2rem; font-size: 1rem; }
.btn-sm { padding: 0.5rem 1.1rem; font-size: 0.85rem; }

/* Mobile hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 6px;
  cursor: pointer;
  z-index: 1100;
}
.nav-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--fg);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  background: hsl(220, 15%, 8%, 0.98);
  backdrop-filter: blur(16px);
  z-index: 1050;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  transition: transform 0.3s;
  transform: translateX(100%);
}
.mobile-menu.open {
  display: flex;
  transform: translateX(0);
}
.mobile-menu a {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  color: var(--fg);
  transition: color 0.2s;
}
.mobile-menu a:hover { color: var(--primary); }

/* =============================================
   HERO SLIDER
   ============================================= */
#hero {
  position: relative;
  width: 100%;
  margin-top: 0;          /* header is fixed, sits on top */
  overflow: hidden;
  background: var(--bg);
  line-height: 0;         /* removes inline-block gap under img */
}

.slider-track {
  display: flex;
  transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
  /* height is determined by the images — no forced crop */
}

.slide {
  flex: 0 0 100%;
  min-width: 100%;
}

.slide img {
  width: 100%;
  height: auto;           /* full image visible — no cropping */
  display: block;
  object-fit: contain;
  background: var(--bg);
}

/* Nav buttons are absolutely positioned relative to #hero */
.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 100;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(14, 17, 26, 0.65);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(200, 155, 50, 0.35);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
  line-height: 1;
}
.slider-btn:hover { background: var(--primary); color: var(--primary-fg); border-color: var(--primary); }
.slider-btn.prev { left: 1.25rem; }
.slider-btn.next { right: 1.25rem; }

.slider-dots {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 100;
}
.slider-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(230, 210, 160, 0.45);
  border: none;
  cursor: pointer;
  transition: background 0.3s, width 0.3s;
  padding: 0;
}
.slider-dot.active {
  background: var(--primary);
  width: 24px;
  border-radius: 4px;
}

/* =============================================
   INTRODUCTION
   ============================================= */
#about {
  padding: 6rem 0;
  position: relative;
  overflow: hidden;
}

#about::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 500px; height: 500px;
  background: radial-gradient(circle, hsl(43,74%,49%,0.12), transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.intro-img-wrap {
  position: relative;
}
.intro-img-wrap::before {
  content: '';
  position: absolute;
  inset: 0;
  border: 2px solid hsl(43,74%,49%,0.3);
  border-radius: var(--radius);
  transform: translate(12px, 12px);
  transition: transform 0.4s;
}
.intro-img-wrap:hover::before { transform: translate(16px, 16px); }
.intro-img-wrap img {
  border-radius: var(--radius);
  width: 100%;
  object-fit: cover;
  position: relative;
  z-index: 1;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.intro-text h2 { font-size: clamp(1.75rem, 3.5vw, 2.75rem); margin-bottom: 0.75rem; }
.intro-text p { color: var(--fg-muted); font-size: 1.05rem; margin-bottom: 1rem; }
.intro-text .highlight { color: var(--fg); font-weight: 600; }
.intro-cta { margin-top: 2rem; }

/* =============================================
   SERVICES
   ============================================= */
#services {
  padding: 6rem 0;
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}
.section-header h2 { font-size: clamp(1.75rem, 3.5vw, 2.75rem); margin-bottom: 0.75rem; }
.section-header p { color: var(--fg-muted); max-width: 580px; margin-inline: auto; font-size: 1.05rem; }

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.service-card {
  background: var(--bg-card2);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) * 1.5);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
}
.service-card:hover {
  border-color: hsl(43,74%,49%,0.5);
  box-shadow: 0 8px 40px hsl(43,74%,49%,0.12);
  transform: translateY(-4px);
}

.service-img {
  width: 100%;
  height: auto;           /* show full image, no crop */
  display: block;
  object-fit: contain;
  background: var(--bg);
  transition: transform 0.4s;
}
.service-card:hover .service-img { transform: scale(1.03); }

.service-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.service-body h3 {
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
  color: var(--fg);
}
.service-body p {
  color: var(--fg-muted);
  font-size: 0.9rem;
  flex: 1;
  margin-bottom: 1.25rem;
}

.service-btns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
}

/* =============================================
   ARTICLE
   ============================================= */
#article {
  padding: 6rem 0;
  position: relative;
  overflow: hidden;
}

#article::before {
  content: '';
  position: absolute;
  top: 25%;
  left: -100px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, hsl(43,74%,49%,0.08), transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.article-wrap {
  max-width: 800px;
  margin-inline: auto;
  position: relative;
  z-index: 1;
}

.article-wrap h3 {
  font-size: 1.4rem;
  color: var(--primary);
  margin: 3rem 0 1rem;
}
.article-wrap p {
  color: var(--fg-muted);
  margin-bottom: 1rem;
  font-size: 1.025rem;
}
.article-lead {
  font-size: 1.15rem !important;
  color: var(--fg) !important;
  font-weight: 500;
  margin-bottom: 2rem !important;
}

.article-img {
  width: 100%;
  height: auto;           /* full image — no crop */
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: 0 10px 40px rgba(0,0,0,0.3);
  margin: 2rem 0;
  display: block;
}

.article-img-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin: 2rem 0;
}
.article-img-pair img {
  width: 100%;
  height: auto;           /* full image — no crop */
  display: block;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.cta-block {
  background: var(--bg-card);
  border: 1px solid hsl(43,74%,49%,0.25);
  border-radius: calc(var(--radius) * 1.5);
  padding: 2rem 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  margin: 2.5rem 0;
}
.cta-block h4 {
  font-size: 1.1rem;
  margin-bottom: 0.35rem;
}
.cta-block p { color: var(--fg-muted); font-size: 0.875rem; margin: 0; }
.cta-block-btns {
  display: flex;
  gap: 0.75rem;
  flex-shrink: 0;
}

/* =============================================
   DISCLAIMER
   ============================================= */
#disclaimer {
  padding: 2rem 0;
  border-top: 1px solid var(--border);
  text-align: center;
}
#disclaimer p {
  font-size: 0.78rem;
  color: hsl(220, 10%, 50%);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  max-width: 900px;
  margin-inline: auto;
  line-height: 1.8;
}

/* =============================================
   FOOTER
   ============================================= */
#footer {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.2fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-logo {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--primary);
  display: block;
  margin-bottom: 1rem;
}
.footer-col p { color: var(--fg-muted); font-size: 0.925rem; line-height: 1.7; }
.footer-col h3 {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  margin-bottom: 1.25rem;
  color: var(--fg);
}

.footer-links { list-style: none; display: flex; flex-direction: column; gap: 0.65rem; }
.footer-links a { color: var(--fg-muted); font-size: 0.9rem; transition: color 0.2s; }
.footer-links a:hover { color: var(--primary); }

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}
.footer-contact-item .icon {
  color: var(--primary);
  font-size: 1rem;
  flex-shrink: 0;
  margin-top: 2px;
}
.footer-contact-item a, .footer-contact-item span {
  color: var(--fg-muted);
  font-size: 0.9rem;
  transition: color 0.2s;
}
.footer-contact-item a:hover { color: var(--primary); }

.footer-wa-btn { margin-top: 1rem; width: 100%; }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.footer-bottom p { color: var(--fg-muted); font-size: 0.825rem; }

/* =============================================
   FLOATING BUTTONS
   ============================================= */
.floating-btns {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 900;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: opacity 0.4s, transform 0.4s;
}
.floating-btns.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.float-btn {
  width: 54px; height: 54px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
  transition: transform 0.2s;
  color: #fff;
  font-size: 1.25rem;
  text-decoration: none;
}
.float-btn:hover { transform: scale(1.12); }
.float-btn.call { background: var(--primary); color: var(--primary-fg); }
.float-btn.wa { background: var(--wa-green); }

/* =============================================
   UTILITIES / ANIMATIONS
   ============================================= */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}
.fade-in-delay-1 { transition-delay: 0.1s; }
.fade-in-delay-2 { transition-delay: 0.2s; }
.fade-in-delay-3 { transition-delay: 0.3s; }

/* =============================================
   RESPONSIVE — TABLET (≤900px)
   ============================================= */
@media (max-width: 900px) {
  .nav-links, .nav-links + a { display: none; }
  .nav-toggle { display: flex; }

  .intro-grid { grid-template-columns: 1fr; }
  .intro-img-wrap { order: 2; }
  .intro-text { order: 1; }

  .services-grid { grid-template-columns: repeat(2, 1fr); }

  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid .footer-col:first-child { grid-column: 1 / -1; }

  .cta-block { flex-direction: column; text-align: center; }
}

/* =============================================
   RESPONSIVE — MOBILE (≤600px)
   ============================================= */
@media (max-width: 600px) {
  /* #hero height is auto — images scale naturally on mobile */

  .services-grid { grid-template-columns: 1fr; }

  .article-img-pair { grid-template-columns: 1fr; }
  /* no fixed height — images show fully on mobile too */

  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }

  .cta-block-btns { flex-direction: column; width: 100%; }
  .cta-block-btns .btn { width: 100%; justify-content: center; }

  .slider-btn { width: 38px; height: 38px; }
  .slider-btn svg { width: 16px; height: 16px; }
}

/* =============================================
   SCROLLBAR STYLING
   ============================================= */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary); }
