/* Design tokens, base typography, utilities and keyframes.
   Ported verbatim from the Next.js clone (src/app/globals.css). */

/* ============================================================
   Web fonts

   The Next.js build loaded these through `next/font/local`, which generates
   the @font-face rules at build time (src/app/layout.tsx). Nothing generates
   them here, so without this block `--font-butler` and `--font-karla` resolve
   to nothing and every heading and paragraph falls back to the generic serif —
   the whole site renders in Times New Roman.

   Weights match the ones the design actually uses.
   ============================================================ */

@font-face {
  font-family: "Butler";
  src: url("../fonts/Butler-Light.woff2?v=tr") format("woff2"),
       url("../fonts/Butler-Light.woff?v=tr") format("woff");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Butler";
  src: url("../fonts/Butler.woff2?v=tr") format("woff2"),
       url("../fonts/Butler.woff?v=tr") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Karla";
  src: url("../fonts/Karla-Light.woff2?v=tr") format("woff2"),
       url("../fonts/Karla-Light.woff?v=tr") format("woff");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Karla";
  src: url("../fonts/Karla-Regular.woff2?v=tr") format("woff2"),
       url("../fonts/Karla-Regular.woff?v=tr") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Karla";
  src: url("../fonts/Karla-Medium.woff2?v=tr") format("woff2"),
       url("../fonts/Karla-Medium.woff?v=tr") format("woff");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Karla";
  src: url("../fonts/Karla-SemiBold.woff2?v=tr") format("woff2"),
       url("../fonts/Karla-SemiBold.woff?v=tr") format("woff");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Karla";
  src: url("../fonts/Karla-Bold.woff2?v=tr") format("woff2"),
       url("../fonts/Karla-Bold.woff?v=tr") format("woff");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ============================================================
   Base reset

   The Next.js build got these normalisations from Tailwind's preflight.
   The WordPress theme does not load Tailwind, so the equivalent rules live
   here — without them the browser defaults (underlined links, list bullets,
   heading margins) break the design.
   ============================================================ */

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

html {
  -webkit-text-size-adjust: 100%;
  tab-size: 4;
}

body,
h1, h2, h3, h4, h5, h6,
p, figure, blockquote, dl, dd, pre {
  margin: 0;
}

ul, ol, menu {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  color: inherit;
  text-decoration: inherit;
}

b, strong {
  font-weight: bolder;
}

button, input, optgroup, select, textarea {
  font: inherit;
  color: inherit;
  margin: 0;
  padding: 0;
  line-height: inherit;
  letter-spacing: inherit;
  background-color: transparent;
}

button, [type="button"], [type="submit"], [type="reset"] {
  appearance: button;
  cursor: pointer;
}

img, svg, video, canvas, audio, iframe, embed, object {
  display: block;
  vertical-align: middle;
}

img, video {
  max-width: 100%;
  height: auto;
}

table {
  border-collapse: collapse;
  text-indent: 0;
}

hr {
  height: 0;
  color: inherit;
  border-top-width: 1px;
}

/* ============================================================
   Design tokens
   ============================================================ */

:root {
  /* The families the @font-face blocks above declare. Every rule reads these
     through var(), and the Style tab lets Elementor override them per section. */
  --font-butler: "Butler";
  --font-karla: "Karla";

  /* Global colors: the Mint palette, the site default (inc/palettes.php). The
     palette in use is printed as :root[data-bb-palette] and overrides these;
     they are the fallback for a page without that attribute. */
  --color-primary: #49746a; /* buttons, bands, links */
  --color-secondary: #222222; /* headings */
  --color-text: #666a6b; /* body text */
  --color-accent: #daf2f4; /* soft tint (buttons, cards) */
  --color-background: #ffffff;
  --color-border: #e6eaea;
  --color-alternate: #eff6f7; /* lightest tint (card bg) */
  --color-tertiary: #667071; /* muted */
  /* Named for the Main palette's pink; in any palette it is the extra soft
     tint (original global 03a7c7e). Renaming it would touch every rule. */
  --color-pink-soft: #daeff0;

  /* Typography scale — desktop base */
  --type-text-size: 18px;
  --type-text-lh: 1.45em;
  --type-accent-size: 14px; /* header menus; the eyebrow overrides it */
  --type-accent-lh: 1.6em;
  --type-meta-size: 14px;
  --type-meta-lh: 1.7em;
  --type-taxonomy-size: 13px; /* Karla 700, uppercase */
  --type-taxonomy-lh: 1.7em;
  --type-small-size: 15px;
  --type-small-lh: 1.75em;
  --type-h1-size: 68px;
  --type-h1-lh: 1.1em;
  --type-h2-size: 56px;
  --type-h2-lh: 1.15em;
  --type-h3-size: 42px;
  --type-h3-lh: 1.2em;
  --type-h4-size: 30px;
  --type-h4-lh: 1.25em;
  --type-h5-size: 20px;
  --type-h5-lh: 1.45em;
  --type-h6-size: 15px;
  --type-h6-lh: 1.55em;
  --type-button-size: 14px; /* Karla 700, ls 2px, uppercase */
  --type-button-lh: 1.6em;
  --type-blockquote-size: 30px; /* Butler 300 */
  --type-blockquote-lh: 1.35em;
  --type-lead-size: 20px; /* kit custom "4ef5887" — Karla 300 */
  --type-lead-lh: 1.5em;

  /* Layout */
  --container-max-width: 1280px;
  --container-gutter: 20px;
}

/* Tablet (Elementor ≤1024) */
@media (max-width: 1024px) {
  :root {
    --type-text-size: 17px;
    --type-accent-size: 13px;
    --type-meta-size: 13px;
    --type-taxonomy-size: 12px;
    --type-small-size: 14px;
    --type-h1-size: 60px;
    --type-h2-size: 48px;
    --type-h3-size: 36px;
    --type-h4-size: 24px;
    --type-h5-size: 18px;
    --type-h6-size: 13px;
    --type-button-size: 13px;
    --type-blockquote-size: 26px;
    --type-lead-size: 19px;
  }
}

/* Mobile (Elementor ≤767) */
@media (max-width: 767px) {
  :root {
    --type-text-size: 15px;
    --type-accent-size: 13px;
    --type-meta-size: 12px;
    --type-taxonomy-size: 11px;
    --type-small-size: 13px;
    --type-h1-size: 42px;
    --type-h2-size: 32px;
    --type-h3-size: 26px;
    --type-h4-size: 20px;
    --type-h5-size: 15px;
    --type-h6-size: 11px;
    --type-button-size: 12px;
    --type-blockquote-size: 20px;
    --type-lead-size: 18px;
  }
}


/* ============ base ============ */

html {
  scroll-behavior: smooth;
}

body {
  background: var(--color-background);
  color: var(--color-text);
  font-family: var(--font-karla), sans-serif;
  /* The original sets body copy in Karla Light; the clone had it at 400,
     which made every paragraph a shade heavier than the source. */
  font-weight: 300;
  font-size: var(--type-text-size);
  line-height: var(--type-text-lh);
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-butler), serif;
  font-weight: 300;
  color: var(--color-secondary);
}
h1 {
  font-size: var(--type-h1-size);
  line-height: var(--type-h1-lh);
}
h2 {
  font-size: var(--type-h2-size);
  line-height: var(--type-h2-lh);
}
h3 {
  font-size: var(--type-h3-size);
  line-height: var(--type-h3-lh);
}
h4 {
  font-size: var(--type-h4-size);
  line-height: var(--type-h4-lh);
}
h5,
h6 {
  font-family: var(--font-karla), sans-serif;
  font-weight: 400;
  color: var(--color-secondary);
}
h5 {
  font-size: var(--type-h5-size);
  line-height: var(--type-h5-lh);
}
h6 {
  font-size: var(--type-h6-size);
  line-height: var(--type-h6-lh);
}

a {
  transition: color 0.3s ease;
}

/* Elementor-style boxed container */
/* Elementor .e-con-boxed: 1280px content box, no inner padding — section-level
   padding supplies the gutters (matches the original's x=72 content edge at 1440). */
.container-boxed {
  width: 100%;
  /* Sections add their own 40px horizontal padding, so the cap includes it:
     content settles at exactly 1280px on wide viewports, like the original. */
  max-width: calc(var(--container-max-width) + 80px);
  margin-inline: auto;
}

/* Section eyebrow label (accent typography) */
.type-accent {
  font-family: var(--font-karla), sans-serif;
  font-weight: 400;
  /* The original sets section eyebrows at 15px. The token stays 14px because
     the header menus share it and the original keeps those at 14. */
  font-size: 15px;
  line-height: var(--type-accent-lh);
  letter-spacing: 2px;
  text-transform: uppercase;
}

/* Button typography */
.type-button {
  font-family: var(--font-karla), sans-serif;
  font-weight: 700;
  font-size: var(--type-button-size);
  line-height: var(--type-button-lh);
  letter-spacing: 2px;
  text-transform: uppercase;
}

/* ============ entrance animations (Elementor) ============ */

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translate3d(0, 100%, 0);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes zoomIn {
  from {
    opacity: 0;
    transform: scale3d(0.3, 0.3, 0.3);
  }
  50% {
    opacity: 1;
  }
}

.animated {
  animation-duration: 1.25s;
  animation-fill-mode: both;
}
.anim-fadeIn {
  animation-name: fadeIn;
}
.anim-fadeInUp {
  animation-name: fadeInUp;
}
.anim-zoomIn {
  animation-name: zoomIn;
}
/* pre-animation hidden state (added until element enters viewport) */
.invisible-pre {
  opacity: 0;
}

/* Continuous floating rotation (hero circle badge):
   Floating effect — rotate 0deg→180deg, 10s, infinite alternate */
@keyframes floatRotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(180deg);
  }
}
.float-rotate {
  animation: floatRotate 10s linear infinite alternate;
}
