/*
 * Geokan Healthcare - brand layer.
 * Loaded AFTER the theme CSS (public/theme/css/style.css) so these tokens win.
 * Hard-coded legacy colours in the theme are remapped to this palette by
 * scripts/import-theme.py (HEX_MAP / RGB_MAP) - never by hand-editing the theme file.
 *
 * Source: Geokan brand palette and typography recommendation.
 * Usage guide (visual proportions, not rigid rules):
 *   white 35% | navy 25% | teal 20% | mint 12% | coral 8%
 * Contrast rules (WCAG 2.2 AA):
 *   - never white text on Geokan Teal #0E9C94 (3.39:1) or on Coral #F2705A (2.90:1)
 *   - use Deep Teal #08756F for text/buttons on white; navy text on coral
 *   - Mid Grey #74818A is not for small text on white (4.00:1)
 * Run scripts/check-contrast.py after changing any token.
 */

/* ---- Self-hosted brand fonts (no third-party request) ------------------ */
@font-face {
  font-family: "Manrope";
  src: url("fonts/manrope-latin-400-normal.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Manrope";
  src: url("fonts/manrope-latin-500-normal.woff2") format("woff2");
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Manrope";
  src: url("fonts/manrope-latin-600-normal.woff2") format("woff2");
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Manrope";
  src: url("fonts/manrope-latin-700-normal.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Manrope";
  src: url("fonts/manrope-latin-800-normal.woff2") format("woff2");
  font-weight: 800; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("fonts/source-sans-3-latin-400-normal.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("fonts/source-sans-3-latin-600-normal.woff2") format("woff2");
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("fonts/source-sans-3-latin-700-normal.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}

/* ---- Brand tokens ------------------------------------------------------- */
:root {
  /* Primary */
  --brand-teal: #0E9C94;          /* Geokan Teal: decorative / large elements */
  --brand-navy: #17324D;          /* Professional Navy: authority */
  /* Secondary */
  --brand-teal-deep: #08756F;     /* Deep Teal: links, headings, buttons (5.55:1 on white) */
  --brand-mint: #E8F5F3;          /* Soft Mint: gentle backgrounds, panels */
  /* Accent (use selectively) */
  --brand-coral: #F2705A;         /* Warm Coral: highlights; navy text on it (4.53:1) */
  /* Neutrals */
  --ink: #202B33;
  --slate: #4B5963;
  --grey: #5F6B73;
  --grey-mid: #74818A;            /* not for small text on white */
  --grey-light: #D5DDE0;
  --mist: #F1F4F5;
  --brand-white: #FFFFFF;
  /* Functional */
  --success: #237A52;
  --warning: #8A4B08;

  /* Theme tokens consumed by the Mindkare CSS */
  --theme-color1: #08756F;
  --theme-color1-rgb: 8, 117, 111;
  --theme-color2: #17324D;
  --theme-color2-rgb: 23, 50, 77;
  --theme-color3: #E8F5F3;
  --theme-color3-rgb: 232, 245, 243;
  --theme-color4: #F1F4F5;
  --theme-color4-rgb: 241, 244, 245;
  --theme-color1-text-color: #FFFFFF;
  --theme-color2-text-color: #FFFFFF;
  --theme-color3-text-color: #17324D;
  --theme-color4-text-color: #17324D;

  --body-bg: #FFFFFF;
  --bg-color: #F1F4F5;
  --text-color: #4B5963;
  --headings-color: #17324D;
  --link-color: #08756F;
  --link-hover-color: #17324D;
  --sec-title-subtitle-color: #08756F;
  --gradient-1: linear-gradient(90deg, #0E9C94 0%, #FFFFFF 100%);

  /* Typography (headings Manrope, body Source Sans 3) */
  --body-font-family: "Source Sans 3", "Helvetica Neue", Arial, sans-serif;
  --heading-font-family: "Manrope", "Helvetica Neue", Arial, sans-serif;
  /* The template references these but never defines them (fell back to the body font). */
  --style-font-family: var(--heading-font-family);
  --title-font: var(--heading-font-family);
  --body-font-size: 17px;                              /* 17-18px */
  --body-line-height: 1.6;
  --body-font-weight: 400;
  --h1-font-size: clamp(2.75rem, 2.3rem + 1.4vw, 3.25rem);    /* 44-52px */
  --h2-font-size: clamp(2rem, 1.75rem + 0.8vw, 2.375rem);     /* 32-38px */
  --h3-font-size: clamp(1.5rem, 1.35rem + 0.45vw, 1.75rem);   /* 24-28px */
  --h4-font-size: 1.375rem;                                   /* 22px */
  --h5-font-size: 1.125rem;                                   /* 18px */
  --h6-font-size: 1rem;
  --h1-font-weight: 700;
  --h2-font-weight: 700;
  --h3-font-weight: 600;
  --h4-font-weight: 600;
  --h5-font-weight: 600;
  --h6-font-weight: 600;
  --sec-title-font-size: var(--h2-font-size);
  --sec-title-font-weight: 700;
  --line-height-heading-h1: 1.15;
  --line-height-heading: 1.25;

  /* Logo heights per slot. Template PNGs were 216x47; our lockup is 436x129, so it needs
     more height to stay legible. Widths follow automatically (aspect 3.38:1). */
  --logo-h-header: 56px;
  --logo-h-sticky: 44px;
  --logo-h-mobile: 44px;
  --logo-h-footer: 64px;
}

/* ---- Base typography ----------------------------------------------------- */
body {
  color: var(--text-color);
  font-family: var(--body-font-family);
  font-size: var(--body-font-size);
  line-height: var(--body-line-height);
}
h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
  font-family: var(--heading-font-family);
  letter-spacing: -0.01em;
}
small, .small, .caption {
  font-family: var(--body-font-family);
  font-size: 14px;
  font-weight: 400;
}
::selection { background: var(--brand-teal); color: #FFFFFF; }
::placeholder { color: var(--grey); opacity: 1; }

/* Navigation: Manrope 600, 15-16px */
.main-menu .navigation > li > a,
.main-menu .navigation > li > ul > li > a,
.mobile-menu .navigation li > a {
  font-family: var(--heading-font-family);
  font-weight: 600;
  font-size: 15.5px;
}

/* Buttons: Manrope 700, 15-16px; rounded as in the brand mock-up */
.theme-btn, .btn-style-one, .btn-style-two, .theme-btn-two .theme-btn {
  font-family: var(--heading-font-family);
  font-weight: 700;
  font-size: 15.5px;
}
.btn-style-one { border-radius: 10px; }

/* Button variants.
   Coral carries NAVY text (4.53:1), never white (2.90:1). Hover reuses the template's navy sweep. */
.theme-btn.btn-style-one.btn-coral {
  background-color: var(--brand-coral);
  color: var(--brand-navy);
}
.theme-btn.btn-style-one.btn-mint {
  background-color: var(--brand-mint);
  color: var(--brand-navy);
}
.geokan-accent { background-color: var(--brand-coral); color: var(--brand-navy); }

.banner-cta { margin-top: 32px; }

/* Visible keyboard focus (WCAG 2.4.7) */
a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--brand-teal) !important;
  outline-offset: 2px;
}

/* ---- Hero and page-title banners: navy ------------------------------------ */
.banner-section .outer-box:before {
  background: rgba(23, 50, 77, 0.92);
}
.banner-section .outer-box .bg-image:before {
  background: var(--brand-navy);
  opacity: 0.35;
}
.banner-section-two .outer-box:before {
  background: rgba(23, 50, 77, 0.88);
}
.page-title { background-color: var(--brand-navy); }
.page-title:before {
  background: linear-gradient(110deg, rgba(23, 50, 77, 0.96) 23%, rgba(23, 50, 77, 0.78) 100%);
  opacity: 1;
}

/* ---- Title sizes: spec H1 44-52px, H2 32-38px ----------------------------------
   The template redefines these in several breakpoints with long selectors
   (e.g. .page-title .title 64px -> 34px, .banner-section ... .banner-title 70px),
   so the spec sizes are enforced here with !important. */
.page-title .title,
.banner-section .outer-box .banner-content .inner-content .banner-title,
.banner-section-two .outer-box .banner-content .inner-content .banner-title {
  font-size: var(--h1-font-size) !important;
  font-weight: var(--h1-font-weight);
  line-height: var(--line-height-heading-h1);
}
.sec-title .title,
.sec-title h2 {
  font-size: var(--h2-font-size) !important;
  font-weight: var(--h2-font-weight);
  line-height: var(--line-height-heading);
}

/* ---- Navigation current item: template thins it to 400; brand emphasises it ---- */
.main-menu .navigation > li.current > a { font-weight: 700; }
.header-style-two .main-menu .navigation > li.current > a,
.sticky-header .main-menu .navigation > li.current > a { color: var(--brand-teal-deep); }

/* ---- Hero "Give Us a Call": white on navy (template inherited the link colour) ---- */
.banner-section .outer-box .feature-box .feature .call a { color: #FFFFFF; }

/* ---- Functional colours ---------------------------------------------------- */
.alert-success { color: var(--success); background-color: var(--brand-mint); border-color: var(--success); }
.alert-warning { color: var(--warning); background-color: var(--mist); border-color: var(--warning); }

/* ---- Footer legal line ------------------------------------------------------- */
.footer-area .footer-bottom .footer-bottom-wrapper {
  flex-wrap: wrap;
  gap: 12px 32px;
}
.footer-area .footer-bottom .footer-bottom-wrapper p {
  font-size: 14px;
  max-width: 760px;
}

/* ---- Logo sizing per slot (overrides the template's 40-45px / 140-181px caps) ---- */
.main-header .logo-box .logo img,
.main-header .header-lower .logo-box .logo img,
.header-style-one .header-lower .inner-container .main-box .left-box .logo-box img,
.main-header .logo img,
.sticky-header .main-header .logo img {
  height: var(--logo-h-header);
  width: auto;
  max-width: none;
  max-height: none;
}
.main-header .header-lower .logo-box,
.main-header .logo { max-width: none; min-width: 0; }
.sticky-header .logo img {
  height: var(--logo-h-sticky);
  width: auto;
  max-width: none;
  max-height: none;
}
.mobile-menu .nav-logo img {
  height: var(--logo-h-mobile);
  width: auto;
  max-width: 100%;
  max-height: none;
}
.footer-area .footer-widget-wrapper .footer-single-widget .widget-logo img {
  height: var(--logo-h-footer);
  width: auto;
  max-width: 100%;
}
@media (max-width: 767.98px) {
  .main-header .logo-box .logo img,
  .main-header .header-lower .logo-box .logo img,
  .header-style-one .header-lower .inner-container .main-box .left-box .logo-box img,
  .main-header .logo img {
    height: 44px;
  }
}

/* ---- Preloader: Geokan mark (favicon pack) instead of the template's leaf icon ---- */
.preloader:after {
  background-image: url("../android-chrome-192x192.png");
  background-size: contain;
}

/* ---- Legal pages (Terms, Privacy): readable long-form text ---- */
.legal-content { max-width: 860px; margin: 0 auto; }
.legal-content .legal-updated { color: var(--grey); margin-bottom: 28px; }
.legal-content h2 { font-size: 28px; line-height: 1.3; margin: 40px 0 14px; }
.legal-content h3 { font-size: 20px; line-height: 1.4; margin: 24px 0 10px; }
.legal-content p { margin-bottom: 14px; }
.legal-content ul { list-style: disc; padding-left: 22px; margin: 0 0 18px; }
.legal-content li { margin-bottom: 6px; }
.legal-content a { color: var(--brand-teal-deep); text-decoration: underline; }
@media (max-width: 767.98px) {
  .legal-content h2 { font-size: 23px; margin-top: 32px; }
}

/* ---- Contact form feedback (success / error) ---- */
.contact-form .form-result {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  width: 100%;
  margin: 0 0 20px;
  padding: 16px 20px;
  border-radius: 14px;
  font-size: 16px;
  line-height: 1.5;
  color: var(--brand-navy);
}
.contact-form .form-result i { flex: 0 0 auto; margin-top: 3px; font-size: 20px; }
.contact-form .form-result--success {
  background: var(--brand-mint);
  border: 1px solid var(--brand-teal-deep);
}
.contact-form .form-result--success i { color: var(--brand-teal-deep); }
.contact-form .form-result--error {
  background: var(--brand-white);
  border: 1px solid var(--brand-coral);
}
.contact-form .form-result--error i { color: var(--brand-navy); }
.contact-form .form-result:focus { outline: none; }
.contact-form button[type="submit"].is-loading { opacity: .7; cursor: progress; }
.contact-form button[type="submit"] .theme-btn { white-space: nowrap; }
