/* ================= Goldenpalms Maafushi ================= */
:root {
  --green: #0d5c4f;
  --green-dark: #073e35;
  --green-soft: #e7f2ef;
  --sand: #f6f1e7;
  --gold: #c19a4b;
  --gold-dark: #a67f31;
  --wa: #25d366;
  --wa-dark: #1da851;
  --ink: #172420;
  --muted: #5a6b66;
  --line: #e6e0d4;
  --white: #ffffff;
  --shadow: 0 24px 50px -28px rgba(7, 62, 53, .4);
  --radius: 14px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.68;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: "Fraunces", Georgia, serif; line-height: 1.12; margin: 0; font-weight: 500; letter-spacing: -.01em; }
img { display: block; max-width: 100%; }
a { color: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.container { width: min(1150px, 90%); margin-inline: auto; }

/* icons */
.ic { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.ic-lg { width: 26px; height: 26px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  font-weight: 500; font-size: .95rem; text-decoration: none;
  padding: .72rem 1.35rem; border-radius: 999px; cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
  border: 0; letter-spacing: .01em;
}
.btn:hover { transform: translateY(-2px); }
.btn-lg { padding: .95rem 1.7rem; font-size: 1rem; }
.btn-wa { background: var(--wa); color: #fff; box-shadow: 0 10px 22px -12px rgba(37,211,102,.9); }
.btn-wa:hover { background: var(--wa-dark); }
.btn-wa .ic { fill: currentColor; stroke: none; }
.btn-ghost { background: rgba(255,255,255,.1); color: #fff; border: 1.5px solid rgba(255,255,255,.55); backdrop-filter: blur(4px); }
.btn-ghost:hover { background: rgba(255,255,255,.2); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255,255,255,.88);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 1.5rem; height: 72px; }
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; margin-right: auto; }
.brand-mark { font-size: 1.65rem; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-family: "Fraunces", serif; font-weight: 600; font-size: 1.2rem; color: var(--green-dark); }
.brand-sub { font-size: .66rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-dark); }
.nav { display: flex; align-items: center; gap: 1.5rem; }
.nav > a { text-decoration: none; font-size: .9rem; color: var(--ink); position: relative; white-space: nowrap; }
.nav > a:not(.btn)::after { content: ""; position: absolute; left: 0; bottom: -5px; width: 0; height: 2px; background: var(--gold); transition: width .2s; }
.nav > a:not(.btn):hover::after { width: 100%; }
.nav-cta { color: #fff; }

/* hamburger */
.nav-toggle { display: none; flex-direction: column; justify-content: center; gap: 5px; width: 44px; height: 44px; background: none; border: 0; cursor: pointer; padding: 0; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--green-dark); border-radius: 2px; transition: transform .25s, opacity .2s; margin-inline: auto; }
body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; color: #fff; min-height: 90vh; display: flex; align-items: center; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; transform: scale(1.03); }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(115deg, rgba(7,62,53,.88) 0%, rgba(7,62,53,.55) 52%, rgba(7,62,53,.2) 100%); }
.hero-inner { position: relative; padding: 5.5rem 0; max-width: 700px; }
.eyebrow { text-transform: uppercase; letter-spacing: .2em; font-size: .74rem; font-weight: 600; color: var(--gold); margin: 0 0 1.1rem; }
.eyebrow-dark { color: var(--gold-dark); }
.hero h1 { font-size: clamp(2.4rem, 5.2vw, 4rem); font-weight: 500; margin-bottom: 1.2rem; }
.hero-lead { font-size: 1.15rem; font-weight: 300; max-width: 44ch; color: rgba(255,255,255,.94); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin: 2rem 0 2.6rem; }

.hero-stats { list-style: none; display: flex; flex-wrap: wrap; padding: 0; margin: 0; gap: 0; }
.hero-stats li { display: flex; flex-direction: column; padding: 0 1.5rem; border-left: 1px solid rgba(255,255,255,.25); }
.hero-stats li:first-child { padding-left: 0; border-left: 0; }
.hero-stats strong { font-family: "Fraunces", serif; font-size: 1.5rem; font-weight: 500; }
.hero-stats span { font-size: .8rem; letter-spacing: .04em; color: rgba(255,255,255,.75); }

/* ---------- Sections ---------- */
.section { padding: 6rem 0; }
.section-tint { background: var(--sand); }
.section-head { max-width: 620px; margin: 0 auto 3.2rem; text-align: center; }
.section-head h2 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); color: var(--green-dark); margin-bottom: .8rem; }
.section-sub { color: var(--muted); font-size: 1.02rem; margin: 0; }
.section-sub.light { color: rgba(255,255,255,.85); }
h2 { color: var(--green-dark); }

/* ---------- About / split grids ---------- */
.about-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 4rem; align-items: center; }
.about-copy h2 { font-size: clamp(1.9rem, 3.2vw, 2.5rem); margin-bottom: 1.2rem; }
.about-copy p { color: var(--muted); margin: 0 0 1rem; }
.tagline { font-family: "Fraunces", serif; font-style: italic; font-size: 1.25rem; color: var(--green); margin-top: 1.5rem !important; }
.about-media { position: relative; }
.about-media > img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; aspect-ratio: 4/5; object-fit: cover; }
.about-media-2 { position: absolute; width: 48%; right: -20px; bottom: -30px; aspect-ratio: 1 !important; border: 7px solid #fff; }

/* ---------- Highlights ---------- */
.highlights { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; }
.highlight { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem 1.6rem; transition: transform .2s, box-shadow .2s; }
.highlight:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.highlight-icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: var(--green-soft); color: var(--green); }
.highlight h3 { font-size: 1.22rem; margin: 1rem 0 .5rem; color: var(--green-dark); }
.highlight p { color: var(--muted); font-size: .93rem; margin: 0; }

/* ---------- Facilities ---------- */
.facilities { list-style: none; padding: 0; margin: 0 auto; max-width: 900px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem 1.6rem; }
.facilities li { position: relative; padding-left: 2rem; color: var(--ink); font-size: .98rem; }
.facilities li::before { content: "✓"; position: absolute; left: 0; top: 1px; width: 1.4rem; height: 1.4rem; background: var(--green-soft); color: var(--green); border-radius: 50%; display: grid; place-items: center; font-size: .78rem; font-weight: 700; }

/* ---------- Muslim friendly ---------- */
.muslim-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 4rem; align-items: center; }
.muslim-media img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; aspect-ratio: 5/4; object-fit: cover; }
.muslim-copy p { color: var(--muted); margin: 0 0 1rem; }
.muslim-copy h2 { margin-bottom: 1.2rem; }

/* ---------- Activities (editorial numbered list) ---------- */
.activities { list-style: none; padding: 0; margin: 0 auto; max-width: 920px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 3rem; counter-reset: act; }
.activities li { display: flex; align-items: center; gap: 1.1rem; padding: 1.15rem .2rem; border-bottom: 1px solid var(--line); }
.activities .num { font-family: "Fraunces", serif; font-size: 1.05rem; color: var(--gold); min-width: 1.8rem; font-weight: 500; }
.activities .act { font-size: 1.05rem; color: var(--ink); }

/* ---------- Gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.gallery img { border-radius: var(--radius); aspect-ratio: 4/3; object-fit: cover; width: 100%; box-shadow: 0 12px 26px -20px rgba(7,62,53,.6); transition: transform .35s; }
.gallery img:hover { transform: scale(1.03); }

/* ---------- Contact ---------- */
.contact { background: linear-gradient(160deg, var(--green) 0%, var(--green-dark) 100%); color: #fff; }
.contact .eyebrow { color: var(--gold); }
.contact .section-head h2 { color: #fff; }
.contact-cards { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 1.5rem; max-width: 760px; margin: 0 auto; }
.contact-card { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.16); border-radius: var(--radius); padding: 2.3rem 1.8rem; text-align: center; text-decoration: none; color: #fff; transition: transform .2s, background .2s, border-color .2s; }
.contact-card:hover { transform: translateY(-5px); background: rgba(255,255,255,.13); border-color: var(--gold); }
.contact-icon { width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 1rem; color: #fff; }
.contact-icon .ic { fill: none; }
.contact-icon.wa { background: var(--wa); }
.contact-icon.wa .ic { fill: currentColor; stroke: none; }
.contact-icon.mail { background: var(--gold); }
.contact-card h3 { font-size: 1.35rem; margin-bottom: .4rem; }
.contact-value { font-size: 1.02rem; font-weight: 500; margin: 0 0 .3rem; word-break: break-word; }
.contact-note { font-size: .84rem; color: rgba(255,255,255,.68); }
.contact-foot { text-align: center; max-width: 620px; margin: 2.6rem auto 0; color: rgba(255,255,255,.82); font-size: .95rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--green-dark); color: rgba(255,255,255,.85); padding: 3.2rem 0 1.6rem; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 1.5rem 2.5rem; align-items: center; justify-content: space-between; padding-bottom: 2rem; border-bottom: 1px solid rgba(255,255,255,.12); }
.footer-brand { display: flex; align-items: center; gap: .8rem; }
.footer-name { font-family: "Fraunces", serif; font-size: 1.2rem; color: #fff; margin: 0; }
.footer-sub { font-size: .82rem; margin: 0; color: rgba(255,255,255,.6); }
.footer-nav { display: flex; flex-wrap: wrap; gap: 1.2rem; }
.footer-nav a, .footer-contact a { text-decoration: none; color: rgba(255,255,255,.82); font-size: .9rem; }
.footer-nav a:hover, .footer-contact a:hover { color: var(--gold); }
.footer-copy { text-align: center; font-size: .82rem; color: rgba(255,255,255,.5); margin: 1.6rem 0 0; }

/* ---------- Floating WhatsApp ---------- */
.fab-wa { position: fixed; right: 20px; bottom: 20px; z-index: 55; width: 56px; height: 56px; border-radius: 50%; background: var(--wa); color: #fff; display: grid; place-items: center; box-shadow: 0 12px 26px -8px rgba(37,211,102,.8); transition: transform .18s, background .2s; }
.fab-wa .ic { fill: currentColor; stroke: none; }
.fab-wa:hover { transform: translateY(-3px); background: var(--wa-dark); }

/* ================= Responsive ================= */
@media (max-width: 900px) {
  .nav-toggle { display: flex; }
  .nav {
    position: fixed; inset: 72px 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: .5rem 6% 1.4rem;
    box-shadow: var(--shadow);
    transform: translateY(-140%); transition: transform .3s ease;
    max-height: calc(100vh - 72px); overflow-y: auto;
  }
  body.nav-open .nav { transform: translateY(0); }
  .nav > a { padding: .95rem .2rem; font-size: 1rem; border-bottom: 1px solid var(--line); }
  .nav > a:not(.btn)::after { display: none; }
  .nav-cta { justify-content: center; margin-top: 1rem; border-bottom: 0 !important; }

  .about-grid, .muslim-grid { grid-template-columns: 1fr; gap: 3rem; }
  .muslim-media { order: -1; }
  .highlights { grid-template-columns: repeat(2, 1fr); }
  .facilities { grid-template-columns: repeat(2, 1fr); }
  .about-media > img { aspect-ratio: 16/10; }
  .about-media-2 { position: static; width: 62%; margin: -1.4rem auto 0; aspect-ratio: 16/10 !important; }
}
@media (max-width: 560px) {
  .section { padding: 4.2rem 0; }
  .highlights, .facilities, .gallery, .contact-cards, .activities { grid-template-columns: 1fr; }
  .activities { max-width: 420px; }
  .activities li:last-child { border-bottom: 0; }
  .hero { min-height: 94vh; }
  .hero-inner { padding: 4rem 0; }
  .hero-actions .btn { flex: 1 1 100%; justify-content: center; }
  .hero-stats { gap: .8rem 0; }
  .hero-stats li { width: 50%; padding: 0 1rem; }
  .hero-stats li:nth-child(3) { border-left: 0; padding-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto; animation: none !important; transition: none !important; }
}
