/* Elemental World Services — one stylesheet for every page.
 *
 * The look follows kahf.online (Manrope text, uppercase Inter menu, a
 * Cormorant button, a pale tinted page) with its green and purple swapped
 * for dusty blue and dusty red. Every colour lives in :root.
 */

:root {
  --blue-900: #22364A;
  --blue-800: #2F4760; /* dark band behind white text (9.6:1) */
  --blue-700: #3E5C7A; /* headings, menu (6.5:1 on the page) */
  --blue-500: #6F8FAF; /* the logo's stroke — dusty blue */
  --blue-200: #C9D6E3;
  --blue-100: #E3EBF2;
  --blue-50:  #F4F7FA; /* the page */

  --red-700: #8E4C52;
  --red-600: #A85D63; /* buttons; white text 4.8:1 */
  --red-500: #B5676E; /* the logo's dot — dusty red */
  --red-100: #F3E4E5;

  --ink: #1C2630;
  --text: #3D4A55;
  --muted: #66727D;
  --line: #DCE3EA;
  --white: #FFFFFF;

  --radius: 6px;
  --wrap: 1180px;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --menu: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --serif: "Cormorant", Georgia, "Times New Roman", serif;

  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--blue-50);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.7;
  letter-spacing: -0.1px;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--blue-700); }
:focus-visible { outline: 2px solid var(--red-600); outline-offset: 3px; border-radius: 2px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
@media (max-width: 600px) { .wrap { padding: 0 16px; } }

.skip {
  position: absolute; left: -9999px; top: 8px;
  background: var(--white); padding: 8px 14px; border-radius: var(--radius); z-index: 10;
}
.skip:focus { left: 16px; }

/* --- Logo ----------------------------------------------------------------
 * Kahf's mark is a thin lowercase word under a "roof": one stroke that runs
 * up the left side and across the top, with a coloured dot above a letter.
 * Here the word is "elemental" and the dot is dusty red.
 */
.logo {
  display: inline-flex; align-items: flex-end;
  text-decoration: none; color: var(--blue-500);
  line-height: 1;
}
.logo-roof {
  position: relative;
  display: inline-block;
  padding: 15px 14px 0 9px;
  border-top: 2.5px solid currentColor;
  border-left: 2.5px solid currentColor;
  border-top-left-radius: 2px;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 25px;
  letter-spacing: 0.02em;
  text-transform: lowercase;
}
.logo-roof .dot { position: relative; }
.logo-roof .dot::before {
  content: "";
  position: absolute; left: 50%; top: -0.12em;
  width: 0.28em; height: 0.28em; margin-left: -0.14em;
  border-radius: 50%; background: var(--red-500);
}
.logo-small .logo-roof { font-size: 21px; padding: 13px 12px 0 8px; border-width: 2px; }

/* --- Header -------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 5;
  background: rgba(244, 247, 250, 0.94);
  backdrop-filter: saturate(140%) blur(8px);
  -webkit-backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; min-height: 84px;
}
.menu { display: flex; align-items: center; gap: 4px; margin: 0; padding: 0; list-style: none; }
.menu a {
  display: block;
  padding: 10px 14px;
  font-family: var(--menu);
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: color .15s, border-color .15s;
}
.menu a:hover { color: var(--blue-700); }
.menu a[aria-current="page"] { color: var(--blue-700); border-bottom-color: var(--blue-500); }

.menu-toggle {
  display: none;
  background: none; border: 0; padding: 10px; margin-right: -10px;
  color: var(--blue-700); cursor: pointer;
}
.menu-toggle svg { width: 26px; height: 26px; }

@media (max-width: 900px) {
  .menu-toggle { display: block; }
  .site-header .wrap { min-height: 72px; }
  .site-nav {
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--blue-50);
    border-bottom: 1px solid var(--line);
    display: none;
  }
  .site-nav.open { display: block; }
  .menu { flex-direction: column; align-items: stretch; padding: 8px 16px 16px; }
  .menu a { padding: 14px 4px; border-bottom: 1px solid var(--line); }
  .menu li:last-child a { border-bottom: 0; }
  .menu a[aria-current="page"] { border-bottom-color: var(--line); color: var(--red-600); }
}

/* --- Type ------------------------------------------------------------------ */
h1, h2, h3 { color: var(--blue-700); font-family: var(--sans); letter-spacing: -0.02em; margin: 0; }
h1 { font-size: clamp(38px, 5.2vw, 58px); line-height: 1.1; font-weight: 700; }
h2 { font-size: clamp(28px, 3.4vw, 38px); line-height: 1.2; font-weight: 700; }
h3 { font-size: 20px; line-height: 1.35; font-weight: 700; }
p { margin: 0 0 16px; color: var(--text); font-weight: 400; }
.lead { font-size: clamp(18px, 1.8vw, 21px); line-height: 1.65; font-weight: 300; color: var(--text); }
.eyebrow {
  display: block; margin-bottom: 14px;
  font-family: var(--menu); font-size: 14px; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.08em; color: var(--red-700);
}

/* --- Buttons --------------------------------------------------------------- */
.btn {
  display: inline-block;
  padding: 10px 26px 12px;
  border-radius: 3px;
  background: var(--red-600);
  color: var(--white);
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  text-transform: capitalize;
  transition: background .15s;
}
.btn:hover { background: var(--red-700); }
.btn-quiet {
  background: transparent; color: var(--blue-700);
  box-shadow: inset 0 0 0 1.5px var(--blue-500);
}
.btn-quiet:hover { background: var(--blue-100); }
.actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }

/* --- Sections -------------------------------------------------------------- */
.section { padding: 88px 0; }
.section + .section { padding-top: 0; }
.section-head { max-width: 720px; margin-bottom: 44px; }
.section-head h2 { margin-bottom: 14px; }
.white-band { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.white-band.section, .section + .white-band.section { padding: 88px 0; }
.white-band + .section { padding-top: 88px; }
@media (max-width: 600px) {
  .section, .white-band.section, .section + .white-band.section, .white-band + .section { padding: 60px 0; }
  .section + .section { padding-top: 0; }
}

/* Hero */
.hero { padding: 72px 0 88px; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: 64px; align-items: center; }
.hero h1 { margin-bottom: 26px; }
.hero .lead { max-width: 560px; }
.hero-art { width: 100%; max-width: 520px; justify-self: center; }
@media (max-width: 900px) {
  .hero { padding: 48px 0 64px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 44px; }
  .hero-art { max-width: 440px; }
}

/* Page title (inner pages) */
.page-title { padding: 72px 0 56px; }
.page-title h1 { margin-bottom: 20px; }
.page-title .lead { max-width: 760px; margin: 0; }
@media (max-width: 600px) { .page-title { padding: 48px 0 40px; } }

/* Cards */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1000px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: 1fr; } }
@media (max-width: 680px) { .grid-2, .grid-4 { grid-template-columns: 1fr; } }

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 28px 24px;
}
.white-band .card { background: var(--blue-50); }
.card h3 { margin-bottom: 10px; }
.card p:last-child { margin-bottom: 0; }
.card .icon {
  width: 46px; height: 46px; margin-bottom: 18px;
  display: grid; place-items: center;
  border-radius: 50%; background: var(--blue-100); color: var(--blue-700);
}
.card .icon svg { width: 24px; height: 24px; }
.card .num {
  display: block; margin-bottom: 12px;
  font-family: var(--serif); font-size: 34px; font-weight: 600; line-height: 1;
  color: var(--red-600);
}
.card-link { display: inline-block; margin-top: 6px; font-weight: 600; text-decoration: none; color: var(--red-700); }
.card-link:hover { text-decoration: underline; }

/* Ticked lists */
.ticks { list-style: none; margin: 0 0 16px; padding: 0; }
.ticks li { position: relative; padding-left: 30px; margin-bottom: 10px; color: var(--text); }
.ticks li::before {
  content: ""; position: absolute; left: 2px; top: 0.55em;
  width: 14px; height: 8px;
  border-left: 2px solid var(--red-600); border-bottom: 2px solid var(--red-600);
  transform: rotate(-45deg);
}
.ticks strong { color: var(--ink); font-weight: 600; }

/* Benefits: a definition-style list in two columns */
.benefits { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line); }
.benefits > div { padding: 24px 24px 22px 0; border-bottom: 1px solid var(--line); }
.benefits h3 { font-size: 18px; margin-bottom: 6px; }
.benefits p { margin: 0; font-size: 16px; }
@media (max-width: 1000px) { .benefits { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 680px) { .benefits { grid-template-columns: 1fr; } .benefits > div { padding-right: 0; } }

/* Levels */
.level { position: relative; }
.level .tag {
  display: inline-block; margin-bottom: 14px; padding: 3px 12px;
  border-radius: 999px; background: var(--blue-100); color: var(--blue-700);
  font-family: var(--menu); font-size: 13px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.06em;
}
.level.featured { border-color: var(--red-500); box-shadow: inset 0 3px 0 var(--red-500); }
.level.featured .tag { background: var(--red-100); color: var(--red-700); }

/* Portfolio sections */
.practice { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: start; scroll-margin-top: 110px; }
.practice + .practice { margin-top: 88px; padding-top: 88px; border-top: 1px solid var(--line); }
.practice h2 { margin-bottom: 18px; }
.practice .badge {
  width: 64px; height: 64px; margin-bottom: 24px;
  display: grid; place-items: center;
  border-radius: 14px; background: var(--blue-700); color: var(--white);
}
.practice .badge svg { width: 32px; height: 32px; }
.practice h3 { font-size: 17px; margin: 0 0 14px; font-family: var(--menu); font-weight: 500; text-transform: uppercase; letter-spacing: 0.06em; color: var(--red-700); }
.practice .outcome { margin-top: 26px; padding: 20px 22px; background: var(--white); border-left: 3px solid var(--blue-500); border-radius: 0 var(--radius) var(--radius) 0; }
.practice .outcome p { margin: 0; }
@media (max-width: 900px) {
  .practice { grid-template-columns: 1fr; gap: 24px; }
  .practice + .practice { margin-top: 56px; padding-top: 56px; }
}

.jump { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.jump a {
  padding: 8px 16px; border-radius: 999px; background: var(--white); border: 1px solid var(--line);
  font-family: var(--menu); font-size: 14px; text-decoration: none; color: var(--blue-700);
}
.jump a:hover { border-color: var(--blue-500); }

/* Steps */
.steps { counter-reset: step; }

/* Call to action band */
.cta-band { background: var(--blue-800); color: var(--white); padding: 76px 0; }
.cta-band .wrap { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.cta-band h2 { color: var(--white); margin-bottom: 10px; }
.cta-band p { color: var(--blue-200); margin: 0; max-width: 620px; }

/* Contact */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.contact .card a.big { font-size: 22px; font-weight: 600; word-break: break-word; }
@media (max-width: 760px) { .contact { grid-template-columns: 1fr; } }

/* --- Footer ---------------------------------------------------------------- */
.site-footer { padding: 64px 0 36px; background: var(--blue-50); border-top: 1px solid var(--line); }
.site-footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.site-footer .tagline { margin-top: 22px; max-width: 320px; color: var(--blue-700); font-size: 18px; line-height: 1.5; }
.site-footer h2 {
  font-family: var(--menu); font-size: 15px; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.06em; color: var(--blue-700); margin-bottom: 14px;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer li a { color: var(--text); text-decoration: none; font-size: 16px; }
.site-footer li a:hover { color: var(--red-700); }
.site-footer .legal { margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.site-footer .legal p { color: var(--muted); margin: 0 0 6px; font-size: 14px; }
@media (max-width: 760px) { .site-footer .cols { grid-template-columns: 1fr 1fr; } .site-footer .cols > :first-child { grid-column: 1 / -1; } }
