/* ── Global styles for page.php / number.php (inner PHP pages) ── */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,600;0,700;1,400&family=Inter:wght@400;500;600;700&display=swap');

:root {
  --c-bg:      #f0f8f3;
  --c-surface: #ffffff;
  --c-border:  #c8e5d2;
  --c-primary: #2d8f60;
  --c-pdark:   #1e6644;
  --c-text:    #1a2e22;
  --c-text-2:  #4a6b55;
  --c-text-3:  #7a9a85;
  --c-gold:    #c9a227;
  --r-pill:    9999px;
  --r-md:      18px;
  --r-lg:      28px;
  --ease:      200ms cubic-bezier(.4,0,.2,1);
  --sh-md:     0 4px 16px rgba(20,60,35,.10);
}

*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }
html  { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body  {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--c-bg); color: var(--c-text);
  line-height: 1.65; font-size: 1rem;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--c-primary); }

/* ── Layout ── */
.l-wrap { max-width: 1100px; margin: 0 auto; padding: 0 1.25rem; }
.l-main { padding: 2.5rem 0 4rem; display: grid; gap: 1.5rem; }

/* ── Nav ── */
.l-nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--c-border);
}
.l-nav-inner {
  display: flex; align-items: center;
  justify-content: space-between; gap: 1rem; height: 60px;
}
.l-brand {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.35rem; font-weight: 700; color: var(--c-pdark);
  text-decoration: none; flex-shrink: 0;
}
.l-brand em { font-style: normal; color: var(--c-primary); }
.l-nav-links {
  display: flex; align-items: center; gap: .15rem; list-style: none;
}
.l-nav-links a {
  text-decoration: none; color: var(--c-text-2);
  font-size: .88rem; font-weight: 500;
  padding: .38rem .7rem; border-radius: var(--r-pill);
  transition: color var(--ease), background var(--ease);
}
.l-nav-links a:hover { color: var(--c-pdark); background: #e4f3ec; }
.l-nav-right { display: flex; align-items: center; gap: .6rem; }

/* Shared button styles */
.l-btn-sm, .l-btn-ghost {
  display: inline-flex; align-items: center;
  padding: .4rem 1rem; border-radius: var(--r-pill);
  font-size: .85rem; font-weight: 600;
  text-decoration: none; border: none; cursor: pointer;
  transition: background var(--ease), transform var(--ease);
}
.l-btn-sm { background: var(--c-primary); color: #fff; }
.l-btn-sm:hover { background: var(--c-pdark); transform: translateY(-1px); }
.l-btn-ghost { background: #e4f3ec; color: var(--c-pdark); border: 1px solid var(--c-border); }
.l-btn-ghost:hover { background: var(--c-border); }

/* Language switcher */
.l-lang {
  display: flex; align-items: center; gap: 2px;
  border: 1px solid var(--c-border); border-radius: var(--r-pill);
  padding: 3px;
}
.l-lang a {
  text-decoration: none; font-size: .76rem; font-weight: 700;
  padding: .2rem .55rem; border-radius: var(--r-pill); color: var(--c-text-2);
  transition: background var(--ease), color var(--ease);
}
.l-lang a.lang-active { background: var(--c-primary); color: #fff; }

/* Burger */
.l-burger {
  display: none; background: none;
  border: 1px solid var(--c-border); border-radius: 8px;
  padding: .38rem .5rem; color: var(--c-text);
  font-size: 1.05rem; line-height: 1;
}

@media (max-width: 720px) {
  .l-nav-links { display: none; }
  .l-nav-links.is-open {
    display: flex; flex-direction: column; align-items: flex-start;
    position: fixed; top: 60px; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--c-border);
    padding: 1rem 1.25rem; gap: .1rem; box-shadow: var(--sh-md);
  }
  .l-nav-links.is-open a { padding: .55rem .7rem; width: 100%; }
  .l-burger { display: flex; align-items: center; }
}

/* ── Cards ── */
.card {
  background: var(--c-surface); border: 1px solid var(--c-border);
  border-radius: var(--r-lg); padding: 2rem;
}
.card h1 { font-family: 'Cormorant Garamond', Georgia, serif; font-size: clamp(1.8rem,3.5vw,2.6rem); font-weight: 700; margin-bottom: .9rem; line-height: 1.2; }
.card p  { color: var(--c-text-2); line-height: 1.65; }

/* ── Number page extras ── */
.num-badge {
  display: inline-block; background: #e4f3ec; color: var(--c-pdark);
  font-size: .72rem; font-weight: 700; letter-spacing: .07em;
  text-transform: uppercase; padding: .25rem .8rem;
  border-radius: var(--r-pill); margin-bottom: .75rem;
}
.num-essence {
  font-size: 1.2rem; font-weight: 600; color: var(--c-pdark);
  margin-bottom: 1rem;
}
.num-desc { font-size: .95rem; color: var(--c-text-2); margin-bottom: 1.5rem; }
.num-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }

/* ── Breadcrumb ── */
.breadcrumb { margin-bottom: .5rem; }
.breadcrumb ol {
  display: flex; flex-wrap: wrap; gap: .35rem;
  list-style: none; font-size: .82rem; color: var(--c-text-3);
  align-items: center;
}
.breadcrumb li + li::before { content: '›'; margin-right: .35rem; }
.breadcrumb a { color: var(--c-text-3); text-decoration: none; }
.breadcrumb a:hover { color: var(--c-primary); text-decoration: underline; }
.breadcrumb [aria-current] { color: var(--c-text-2); font-weight: 500; }

/* ── Footer ── */
.l-footer { padding: 1.5rem 0; border-top: 1px solid var(--c-border); }
.l-footer-inner {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: .75rem; font-size: .82rem; color: var(--c-text-3);
}
.l-footer nav { display: flex; gap: 1.25rem; }
.l-footer a { color: var(--c-text-3); text-decoration: none; }
.l-footer a:hover { color: var(--c-primary); }
