/* ==========================================================================
   Amara Maryam FZC — stylesheet
   Colours and logo sizes come from js/config.js via custom properties on :root.
   The values below are fallbacks so the page still looks right before JS runs.
   ========================================================================== */

:root {
  --color-primary: #1b2a4e;
  --color-primary-dark: #111c36;
  --color-accent: #c27272;
  --color-accent-soft: #e3a3a3;
  --color-bg: #ffffff;
  --color-surface: #f6f4f2;
  --color-border: #e4e0dc;
  --color-text: #1f2430;
  --color-text-muted: #5c6472;
  --color-on-primary: #ffffff;
  --color-on-accent: #ffffff;

  --logo-nav-h: 48px;
  --logo-nav-h-desktop: 56px;
  --logo-footer-h: 56px;
  --logo-footer-h-desktop: 64px;

  --font-head: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;

  --radius: 10px;
  --shadow: 0 1px 2px rgba(27, 42, 78, 0.06), 0 8px 24px rgba(27, 42, 78, 0.07);
  --max-width: 1140px;
}

/* ---------- base ---------- */

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
  font-family: var(--font-head);
  color: var(--color-primary);
  line-height: 1.22;
  margin: 0 0 0.5em;
}

h1 {
  font-size: clamp(2rem, 5vw, 3rem);
}

h2 {
  font-size: clamp(1.5rem, 3.4vw, 2.125rem);
}

h3 {
  font-size: 1.125rem;
}

p {
  margin: 0 0 1rem;
}

a {
  color: var(--color-primary);
  text-decoration: none;
}

a:hover {
  color: var(--color-accent);
}

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

:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 2px;
  border-radius: 4px;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}

.center {
  text-align: center;
}

.lead {
  font-size: 1.0625rem;
  color: var(--color-text-muted);
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-accent);
  margin-bottom: 0.75rem;
}

.section {
  padding: 64px 0;
}

.section-alt {
  background: var(--color-surface);
}

.section-title {
  text-align: center;
}

.section-intro {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 2.5rem;
  color: var(--color-text-muted);
}

/* ---------- buttons ---------- */

.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.9375rem;
  border: 2px solid transparent;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn-lg {
  padding: 14px 30px;
  font-size: 1rem;
}

.btn-primary {
  background: var(--color-primary);
  color: var(--color-on-primary);
}

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

.btn-accent {
  background: var(--color-accent);
  color: var(--color-on-accent);
}

.btn-accent:hover {
  background: var(--color-primary);
  color: var(--color-on-primary);
}

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

.btn-outline:hover {
  background: var(--color-primary);
  color: var(--color-on-primary);
}

/* ---------- header / nav ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 12px;
  padding-bottom: 12px;
}

.logo-nav {
  height: var(--logo-nav-h);
  width: auto;
  object-fit: contain;
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 8px 14px;
  font: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-primary);
  cursor: pointer;
}

.nav-toggle-bars {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
}

.nav-toggle-bars span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--color-primary);
}

.nav-menu {
  display: none;
  width: 100%;
  padding-bottom: 12px;
}

.nav-menu.is-open {
  display: block;
}

.nav-list {
  list-style: none;
  margin: 0 0 12px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.nav-link {
  display: block;
  padding: 10px 4px;
  font-weight: 500;
  border-bottom: 1px solid var(--color-border);
}

.nav-link.is-active {
  color: var(--color-accent);
  font-weight: 700;
}

.nav-cta {
  display: inline-block;
}

/* ---------- hero ---------- */

.hero {
  background: linear-gradient(135deg, var(--color-surface) 0%, #ffffff 60%);
  padding: 56px 0;
}

.hero-grid {
  display: grid;
  gap: 32px;
  align-items: center;
}

.hero-text h1 {
  margin-bottom: 0.4em;
}

.hero-about {
  color: var(--color-text-muted);
  border-left: 3px solid var(--color-accent-soft);
  padding-left: 14px;
  font-size: 0.9375rem;
}

.hero-media img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 3;
  object-fit: cover;
  max-width: 100%;
}

/* ---------- grids / cards ---------- */

.grid {
  display: grid;
  gap: 24px;
}

.point {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-top: 3px solid var(--color-accent-soft);
  border-radius: var(--radius);
  padding: 22px;
}

.point p {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 0.9375rem;
}

.card {
  display: block;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  color: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

a.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  color: inherit;
}

.card-img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  max-width: 100%;
}

.card-body {
  padding: 20px;
}

.card-body h2,
.card-body h3 {
  font-size: 1.1875rem;
  margin-bottom: 0.4em;
}

.card-body p {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 0.9375rem;
}

.section .center {
  margin-top: 36px;
}

/* ---------- mission / vision ---------- */

.foundation {
  background: var(--color-primary);
  color: var(--color-on-primary);
  padding: 56px 0;
}

.foundation-grid {
  display: grid;
  gap: 28px;
}

.foundation-item h3 {
  color: var(--color-accent-soft);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 700;
}

.foundation-item p {
  margin: 0;
  font-size: 1.0625rem;
  color: rgba(255, 255, 255, 0.92);
}

/* ---------- CTA band ---------- */

.cta-band {
  background: var(--color-surface);
  padding: 56px 0;
}

.cta-band p {
  color: var(--color-text-muted);
  max-width: 560px;
  margin: 0 auto 1.5rem;
}

/* ---------- page header (inner pages) ---------- */

.page-header {
  background: linear-gradient(135deg, var(--color-surface) 0%, #ffffff 70%);
  padding: 56px 0 40px;
  text-align: center;
}

.page-header .lead {
  max-width: 620px;
  margin: 0 auto;
}

/* ---------- contact ---------- */

.contact-grid {
  display: grid;
  gap: 32px;
}

.detail {
  padding: 18px 0;
  border-bottom: 1px solid var(--color-border);
}

.detail:first-child {
  padding-top: 0;
}

.detail h3 {
  font-family: var(--font-body);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: 0.35em;
}

.detail p {
  margin: 0;
  font-size: 1.0625rem;
}

.contact-actions {
  background: var(--color-surface);
  border-radius: var(--radius);
  padding: 28px;
}

.btn-whatsapp {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 16px 24px;
  border-radius: var(--radius);
  background: #25d366; /* WhatsApp green — used for this button only */
  color: #ffffff;
  font-weight: 700;
  font-size: 1.0625rem;
}

.btn-whatsapp:hover {
  background: #1da851;
  color: #ffffff;
}

.contact-social {
  margin-top: 28px;
}

.contact-social h3 {
  font-family: var(--font-body);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.social-list {
  list-style: none;
  display: flex;
  gap: 12px;
  margin: 0;
  padding: 0;
}

.social-list a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  background: var(--color-bg);
  color: var(--color-primary);
}

.social-list a:hover {
  background: var(--color-primary);
  color: var(--color-on-primary);
}

/* ---------- QR codes (contact) ---------- */

.contact-qr {
  margin-top: 56px;
}

.qr-grid {
  list-style: none;
  display: grid;
  gap: 20px;
  max-width: 620px;
  margin: 0 auto;
  padding: 0;
}

.qr-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 18px;
  transition: box-shadow 0.2s ease;
}

.qr-card:hover {
  box-shadow: var(--shadow);
}

.qr-card a {
  display: block;
  color: inherit;
}

.qr-card a:hover {
  color: inherit;
}

.qr-img {
  width: 100%;
  max-width: 220px;
  height: auto;
  margin: 0 auto 12px;
  border-radius: 8px;
  background: #ffffff;
}

.qr-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  color: var(--color-primary);
}

.qr-label svg {
  width: 18px;
  height: 18px;
}

.qr-hint {
  margin: 18px auto 0;
  text-align: center;
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

@media (min-width: 600px) {
  .qr-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ---------- footer ---------- */

.site-footer {
  background: var(--color-primary);
  color: rgba(255, 255, 255, 0.88);
  padding-top: 48px;
  margin-top: 0;
}

.footer-grid {
  display: grid;
  gap: 32px;
  padding-bottom: 32px;
}

.logo-footer {
  height: var(--logo-footer-h);
  width: auto;
  object-fit: contain;
  background: #ffffff;
  border-radius: 6px;
  padding: 6px 10px;
}

.footer-brand p {
  margin-top: 14px;
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.8);
}

.footer-col h3 {
  color: var(--color-accent-soft);
  font-family: var(--font-body);
  font-size: 0.8125rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.9375rem;
}

.site-footer a:hover {
  color: var(--color-accent-soft);
}

.footer-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.footer-whatsapp svg {
  width: 18px;
  height: 18px;
}

.social-list-footer {
  margin-top: 16px;
}

.social-list-footer a {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

.social-list-footer a:hover {
  background: var(--color-accent);
  border-color: var(--color-accent);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 18px;
  padding-bottom: 18px;
}

.footer-bottom p {
  margin: 0;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.7);
}

/* ---------- desktop ---------- */

@media (min-width: 768px) {
  .section {
    padding: 80px 0;
  }

  .logo-nav {
    height: var(--logo-nav-h-desktop);
  }

  .logo-footer {
    height: var(--logo-footer-h-desktop);
  }

  .nav {
    flex-wrap: nowrap;
  }

  .nav-toggle {
    display: none;
  }

  .nav-menu {
    display: flex !important;
    align-items: center;
    gap: 28px;
    width: auto;
    padding-bottom: 0;
  }

  .nav-list {
    flex-direction: row;
    gap: 28px;
    margin: 0;
  }

  .nav-link {
    padding: 4px 0;
    border-bottom: 2px solid transparent;
  }

  .nav-link.is-active {
    border-bottom-color: var(--color-accent);
  }

  .hero {
    padding: 88px 0;
  }

  .hero-grid {
    grid-template-columns: 1.05fr 1fr;
    gap: 48px;
  }

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

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

  .foundation-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 48px;
  }

  .contact-grid {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 56px;
    align-items: start;
  }

  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 48px;
  }
}

@media (min-width: 1024px) {
  .grid-4 {
    grid-template-columns: repeat(4, 1fr);
  }
}
