/*
Theme Name: hopeandclaritycoaching.com
Description: Coaching
Version: 1.0.0
Author: Urho Rättel
Template: Divi
*/

/* ==================================================
   DESIGN TOKENS / TYPOGRAPHY SYSTEM
   ================================================== */

:root {
  /* Fonts */
  --ff-body: 'Satoshi', sans-serif;
  --ff-display: 'Zodiak', serif;

  /* Font Weights */
  --fw-thin: 100;
  --fw-light: 300;
  --fw-regular: 400;
  --fw-bold: 700;

  /* Font Sizes with clamp() – responsive */
--fs-body: clamp(0.938rem, 0.85rem + 0.25vw, 1.125rem);
  --fs-body-caps: clamp(0.625rem, 0.55rem + 0.25vw, 1rem);

  --fs-h1: clamp(2.125rem, 1.4rem + 2.2vw, 5rem);
  --fs-h2: clamp(0.625rem, 0.6rem + 0.15vw, 0.875rem);
  --fs-h3: clamp(0.875rem, 0.6rem + 1.1vw, 2.625rem);
  --fs-h4: clamp(1.375rem, 1.2rem + 0.4vw, 1.75rem);
  --fs-h5: clamp(1.75rem, 1.3rem + 1.9vw, 4.625rem);
}

/* ==================================================
   FONT FACE (Satoshi & Zodiak)
   ================================================== */

/* SATOSHI */
@font-face {
  font-family: 'Satoshi';
  src:
    url('fonts/satoshi/Satoshi-Regular.woff2') format('woff2'),
    url('fonts/satoshi/Satoshi-Regular.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Satoshi';
  src:
    url('fonts/satoshi/Satoshi-Bold.woff2') format('woff2'),
    url('fonts/satoshi/Satoshi-Bold.woff') format('woff');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ZODIAK */
@font-face {
  font-family: 'Zodiak';
  src:
    url('fonts/zodiak/Zodiak-Thin.woff2') format('woff2'),
    url('fonts/zodiak/Zodiak-Thin.woff') format('woff');
  font-weight: 100;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Zodiak';
  src:
    url('fonts/zodiak/Zodiak-Light.woff2') format('woff2'),
    url('fonts/zodiak/Zodiak-Light.woff') format('woff');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Zodiak';
  src:
    url('fonts/zodiak/Zodiak-Regular.woff2') format('woff2'),
    url('fonts/zodiak/Zodiak-Regular.woff') format('woff');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

/* ==================================================
   BASE TYPOGRAPHY – MOBILE FIRST
   ================================================== */

/* BODY */
body,
.et_pb_text,
.et_pb_text_inner {
  font-family: var(--ff-body);
  font-size: var(--fs-body);
  font-weight: var(--fw-regular);
  line-height: 1.5;
}

strong,
b {
  font-weight: var(--fw-bold);
}

.body-caps {
  font-family: var(--ff-body);
  font-size: var(--fs-body-caps);
  font-weight: var(--fw-bold);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* HEADINGS – DIVI-SAFE */
h1,
.et_pb_module h1,
.et_pb_module_header h1,
h1.et_pb_module,
h1.et_pb_module_header {
  font-family: var(--ff-display) !important;  /* Zodiak */
  font-size: var(--fs-h1) !important;
  font-weight: var(--fw-regular) !important;
  line-height: 1.05 !important;
}

h2,
.et_pb_module h2,
.et_pb_module_header h2,
h2.et_pb_module,
h2.et_pb_module_header {
  font-family: var(--ff-body) !important;   /* Satoshi */
  font-size: var(--fs-h2) !important;
  font-weight: var(--fw-bold) !important;   /* 700 */
  text-transform: uppercase !important;     /* caps */
  letter-spacing: 0.05em !important;
}

h3,
.et_pb_module h3,
.et_pb_module_header h3,
h3.et_pb_module,
h3.et_pb_module_header {
  font-family: var(--ff-body) !important;
  font-size: var(--fs-h3) !important;
  font-weight: 700 !important;
}

h4,
.et_pb_module h4,
.et_pb_module_header h4,
h4.et_pb_module,
h4.et_pb_module_header {
  font-family: var(--ff-display) !important;  /* Zodiak */
  font-size: var(--fs-h4) !important;
  font-weight: var(--fw-light) !important;
}

h5,
.et_pb_module h5,
.et_pb_module_header h5,
h5.et_pb_module,
h5.et_pb_module_header {
  font-family: var(--ff-display) !important;  /* Zodiak */
  font-size: var(--fs-h5) !important;
  font-weight: var(--fw-thin) !important;    /* Thin 100 */
  line-height: 1.1 !important;
}
/***headings-END***/
/* ==================================================
   DIVI 5 MENU – FINAL DESIGN SYSTEM
   Author: system-level implementation
================================================== */

/* ------------------------------
   DESIGN TOKENS
------------------------------ */

.menu-nav {
  --menu-font-size: 0.875rem;
  --menu-underline-height: 2px;
  --menu-underline-offset-multiplier: 0.25;

  --menu-link-color: currentColor;
  --menu-link-hover: currentColor;
  --menu-link-active: currentColor;
  --menu-underline: currentColor;
}

/* ------------------------------
   BASE MENU LOGIC
------------------------------ */

.menu-nav .et-menu > li > a {
  position: relative;
  display: inline-flex;
  align-items: center;

  font-size: var(--menu-font-size);
  color: var(--menu-link-color);

  transition: color 0.3s ease-out;
}

/* Hover – only when NOT active */
.menu-nav
.et-menu
> li:not(.current-menu-item)
:not(.current-menu-parent)
:not(.current-menu-ancestor)
> a:hover {
  color: var(--menu-link-hover);
}

/* Active state */
.menu-nav .et-menu > li.current-menu-item > a,
.menu-nav .et-menu > li.current-menu-parent > a,
.menu-nav .et-menu > li.current-menu-ancestor > a {
  color: var(--menu-link-active);
}

/* Underline */
.menu-nav .et-menu > li > a::after {
  content: "";
  position: absolute;
  left: 0;

  bottom: calc(
    var(--menu-font-size) * var(--menu-underline-offset-multiplier) * -1
  );

  width: 100%;
  height: var(--menu-underline-height);

  background-color: var(--menu-underline);
  transform: scaleX(0);
  transform-origin: left;
  opacity: 0;

  transition:
    transform 0.3s ease-out,
    opacity 0.2s ease-out;
}

/* Hover underline – only when NOT active */
.menu-nav
.et-menu
> li:not(.current-menu-item)
:not(.current-menu-parent)
:not(.current-menu-ancestor)
> a:hover::after {
  transform: scaleX(1);
  opacity: 1;
}

/* Active underline */
.menu-nav .et-menu > li.current-menu-item > a::after,
.menu-nav .et-menu > li.current-menu-parent > a::after,
.menu-nav .et-menu > li.current-menu-ancestor > a::after {
  transform: scaleX(1);
  opacity: 1;
}

/* ------------------------------
   MOBILE – UNDERLINE OFF
------------------------------ */

@media (max-width: 980px) {
  .menu-nav .et-menu > li > a::after {
    display: none;
  }
}

/* ------------------------------
   COLOR THEMES
------------------------------ */

/* Light on dark background */
.menu-light {
  --menu-link-color: #ffffff;
  --menu-link-hover: #028FAB;
  --menu-link-active: #028FAB;
  --menu-underline: #028FAB;
}

/* Dark on light background */
.menu-dark {
  --menu-link-color: #031D42;
  --menu-link-hover: #031D42;
  --menu-link-active: #028FAB;
  --menu-underline: #031D42;
}

/* Primary */
.menu-primary {
  --menu-link-color: #028FAB;
  --menu-link-hover: #028FAB;
  --menu-link-active: #028FAB;
  --menu-underline: #028FAB;
}
