/* ==========================================================================
   base.css — reset, design tokens, typography, utilities
   Muslim Astrologer UK  |  muslimastrologeruk.com
   ========================================================================== */

:root {
  --green-900: #062b1d;
  --green-800: #073c29;
  --green-700: #0a4c34;
  --green-600: #0e6343;
  --green-100: #e6f1ec;
  --green-50:  #f2f8f5;

  --gold-700: #9a7a34;
  --gold-600: #b8934a;
  --gold-500: #c9a65e;
  --gold-300: #e6d2a4;
  --gold-50:  #fbf6ea;

  --ink-900: #16211d;
  --ink-800: #22302a;
  --ink-700: #3b4a43;
  --ink-500: #5d6d65;
  --ink-400: #7b8a82;
  --ink-200: #dfe5e1;
  --ink-100: #eef1ef;

  --cream:  #fbf9f4;
  --white:  #ffffff;

  --wa:     #25d366;
  --wa-dk:  #1da851;

  --radius-s: 6px;
  --radius-m: 10px;
  --radius-l: 16px;
  --radius-xl: 24px;

  --shadow-s: 0 1px 2px rgba(6, 43, 29, .06), 0 1px 3px rgba(6, 43, 29, .05);
  --shadow-m: 0 4px 12px rgba(6, 43, 29, .08), 0 2px 4px rgba(6, 43, 29, .05);
  --shadow-l: 0 12px 32px rgba(6, 43, 29, .12), 0 4px 8px rgba(6, 43, 29, .06);
  --shadow-xl: 0 24px 56px rgba(6, 43, 29, .18);

  --container: 1180px;
  --container-narrow: 760px;

  --font-sans: "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", system-ui, -apple-system, sans-serif;
  --font-serif: Georgia, "Times New Roman", "Noto Serif", serif;

  --header-h: 86px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 1rem;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--ink-800);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, picture, svg, video { max-width: 100%; height: auto; display: block; }
svg { fill: currentColor; }

h1, h2, h3, h4, h5 {
  font-family: var(--font-serif);
  color: var(--green-900);
  line-height: 1.25;
  margin: 0 0 .6em;
  font-weight: 700;
  letter-spacing: -.01em;
}
h1 { font-size: clamp(1.95rem, 1.35rem + 2.3vw, 2.9rem); }
h2 { font-size: clamp(1.5rem, 1.18rem + 1.3vw, 2.05rem); }
h3 { font-size: clamp(1.16rem, 1.05rem + .45vw, 1.36rem); }
h4 { font-size: 1.05rem; }

p { margin: 0 0 1.15em; }
p:last-child { margin-bottom: 0; }

a { color: var(--green-700); text-decoration-color: var(--gold-500); text-underline-offset: 3px; }
a:hover { color: var(--green-600); text-decoration-color: var(--gold-600); }

ul, ol { margin: 0 0 1.2em; padding-left: 1.25em; }
li { margin-bottom: .5em; }
li:last-child { margin-bottom: 0; }

strong { color: var(--green-900); font-weight: 700; }
em { font-style: italic; }

blockquote {
  margin: 1.6em 0;
  padding: 1.1em 1.4em;
  background: var(--green-50);
  border-left: 4px solid var(--gold-500);
  border-radius: 0 var(--radius-m) var(--radius-m) 0;
  font-size: 1.03rem;
  color: var(--ink-700);
  font-style: italic;
}
blockquote p:last-child { margin-bottom: 0; }

hr { border: 0; border-top: 1px solid var(--ink-200); margin: 2.4em 0; }

small { font-size: .87rem; color: var(--ink-500); }
code, kbd, samp { font-family: ui-monospace, "SFMono-Regular", Menlo, monospace; font-size: .92em; }
abbr[title] { text-decoration: underline dotted; cursor: help; }

/* ------------------------------------------------------------ a11y */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--gold-600);
  outline-offset: 2px;
  border-radius: 3px;
}

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 12px; top: -80px;
  z-index: 999;
  background: var(--green-800);
  color: #fff;
  padding: 12px 20px;
  border-radius: 0 0 var(--radius-m) var(--radius-m);
  font-weight: 600; text-decoration: none;
  transition: top .18s ease;
}
.skip-link:focus { top: 0; color: #fff; }

/* --------------------------------------------------------- container */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 20px;
}
.container--narrow { max-width: var(--container-narrow); }
.container--wide { max-width: 1320px; }

.section { padding: clamp(2.6rem, 1.8rem + 3vw, 4.6rem) 0; }
.section--tight { padding: clamp(1.8rem, 1.2rem + 2vw, 3rem) 0; }
.section--cream { background: var(--cream); }
.section--green { background: var(--green-800); color: #e9f1ed; }
.section--green h2, .section--green h3 { color: #fff; }
.section--green a { color: var(--gold-300); }

.section__head { max-width: 720px; margin: 0 auto clamp(1.8rem, 1rem + 2vw, 2.8rem); text-align: center; }
.section__head p { color: var(--ink-500); font-size: 1.04rem; margin-bottom: 0; }
.section__head--left { margin-left: 0; text-align: left; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold-700);
  margin-bottom: .7rem;
}
.section--green .eyebrow { color: var(--gold-300); }

/* ------------------------------------------------------------ buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  padding: .78rem 1.5rem;
  border-radius: 999px;
  border: 1.5px solid transparent;
  font-family: var(--font-sans);
  font-size: .96rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.btn:active { transform: translateY(1px); }
.btn svg { width: 18px; height: 18px; flex: none; }

.btn--primary { background: var(--green-700); color: #fff; box-shadow: var(--shadow-m); }
.btn--primary:hover { background: var(--green-600); color: #fff; box-shadow: var(--shadow-l); }

.btn--gold { background: var(--gold-500); color: var(--green-900); box-shadow: var(--shadow-m); }
.btn--gold:hover { background: var(--gold-300); color: var(--green-900); }

.btn--ghost { background: transparent; color: var(--green-800); border-color: var(--ink-200); }
.btn--ghost:hover { border-color: var(--green-600); background: var(--green-50); color: var(--green-800); }

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

.btn--block { width: 100%; }
.btn--sm { padding: .55rem 1.05rem; font-size: .88rem; }

/* --------------------------------------------------------- utilities */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.lead {
  font-size: 1.12rem;
  line-height: 1.7;
  color: var(--ink-700);
}
.measure { max-width: 72ch; }
.nowrap { white-space: nowrap; }
.stack > * + * { margin-top: 1rem; }
