/*
Theme Name: Golden Health Science
Theme URI: https://goldenhealthscience.com
Author: Ikechukwu Raymond
Author URI: https://goldenhealthscience.com/about/
Description: Science-Based Health Education for Every Person on Earth. Complete custom theme fully compatible with Elementor. All 17 pages pre-built and ready to edit.
Version: 3.0.0
Requires at least: 5.0
Tested up to: 6.5
License: GNU General Public License v2 or later
Text Domain: golden-health-science
Tags: health, education, elementor, custom-colors, custom-menu, full-width-template
*/

/* ============================================================
   GOOGLE FONTS
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700;800&family=Source+Sans+3:wght@400;500;600;700&display=swap');

/* ============================================================
   DESIGN TOKENS
   ============================================================ */
:root {
  --navy:      #1A1A2E;
  --navy-dark: #111827;
  --gold:      #C9A84C;
  --gold-light:#D4B96A;
  --white:     #FFFFFF;
  --offwhite:  #F7F5F0;
  --text:      #3D3D3D;
  --muted:     #8A8A9A;
  --dark-text: #C8C8D0;
  --border:    rgba(0,0,0,0.07);
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 24px rgba(0,0,0,0.10);
  --radius:    6px;
  --radius-lg: 14px;
  --transition:all 0.3s ease;
}

/* ============================================================
   RESET
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: 'Source Sans 3', 'Helvetica Neue', Arial, sans-serif;
  font-size: 18px;
  line-height: 1.9;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--gold-light); }
p { margin-bottom: 1.4em; }
p:last-child { margin-bottom: 0; }

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1,h2,h3,h4,h5,h6 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  line-height: 1.2;
  color: var(--navy);
}
h1 { font-size: clamp(36px,6vw,72px); font-weight: 800; }
h2 { font-size: clamp(26px,4vw,44px); }
h3 { font-size: clamp(18px,2.5vw,24px); font-weight: 600; }

/* ============================================================
   HEADER
   ============================================================ */
#ghs-header {
  position: sticky;
  top: 0;
  background: var(--white);
  box-shadow: 0 1px 24px rgba(0,0,0,0.08);
  z-index: 9999;
  width: 100%;
}
.ghs-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}
.ghs-logo {
  font-family: 'Playfair Display', serif;
  font-size: 19px;
  font-weight: 800;
  color: var(--navy);
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
}
.ghs-logo span { color: var(--gold); }
.ghs-search-form {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--offwhite);
  border: 1.5px solid transparent;
  border-radius: 24px;
  padding: 7px 16px;
  transition: var(--transition);
}
.ghs-search-form:focus-within {
  border-color: var(--gold);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(201,168,76,0.15);
}
.ghs-search-form input {
  border: none;
  background: transparent;
  font-size: 14px;
  color: var(--text);
  outline: none;
  width: 180px;
  font-family: inherit;
}
.ghs-nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.ghs-nav-list > li { position: relative; }
.ghs-nav-list > li > a {
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
  padding: 8px 14px;
  border-radius: var(--radius);
  white-space: nowrap;
  display: block;
  text-decoration: none;
}
.ghs-nav-list > li > a:hover { color: var(--gold); background: var(--offwhite); }
.ghs-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 48px rgba(0,0,0,0.16);
  border: 1px solid rgba(201,168,76,0.15);
  min-width: 320px;
  padding: 12px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3px;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  pointer-events: none;
}
.ghs-nav-list > li:hover .ghs-dropdown,
.ghs-nav-list > li:focus-within .ghs-dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: all;
}
.ghs-dropdown a {
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  padding: 9px 14px;
  border-radius: var(--radius);
  display: block;
  text-decoration: none;
}
.ghs-dropdown a:hover { background: var(--offwhite); color: var(--gold); }
.ghs-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--navy);
}

/* ============================================================
   READING PROGRESS BAR
   ============================================================ */
#ghs-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  z-index: 99999;
  transition: width 0.1s linear;
}

/* ============================================================
   ELEMENTOR COMPATIBILITY
   ============================================================ */
.elementor-section { width: 100%; }
.elementor-widget-wrap { width: 100%; }

/* Override Elementor defaults to match our design */
.elementor-heading-title {
  font-family: 'Playfair Display', Georgia, serif !important;
}
.elementor-widget-text-editor p,
.elementor-widget-text-editor li {
  font-family: 'Source Sans 3', sans-serif !important;
  font-size: 18px !important;
  line-height: 1.9 !important;
}

/* ============================================================
   PAGE LAYOUT
   ============================================================ */
.ghs-page-wrap {
  min-height: 100vh;
}
.site-content {
  width: 100%;
}

/* ============================================================
   FOOTER
   ============================================================ */
#ghs-footer {
  background: var(--navy);
  padding: 80px 0 0;
}
.ghs-footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 56px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px 80px;
}
.ghs-footer-logo {
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  font-weight: 800;
  color: var(--white);
  text-decoration: none;
  margin-bottom: 16px;
  display: block;
}
.ghs-footer-logo span { color: var(--gold); }
.ghs-footer-tagline {
  font-size: 14px;
  line-height: 1.8;
  color: var(--dark-text);
  margin-bottom: 24px;
}
.ghs-footer-sub input[type="email"] {
  width: 100%;
  padding: 12px 16px;
  border-radius: var(--radius);
  border: none;
  font-size: 14px;
  font-family: inherit;
  color: var(--text);
  margin-bottom: 8px;
}
.ghs-footer-sub button {
  width: 100%;
  padding: 12px;
  background: var(--gold);
  color: var(--white);
  border: none;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 14px;
  font-family: inherit;
  cursor: pointer;
  transition: var(--transition);
}
.ghs-footer-sub button:hover { background: var(--gold-light); }
.ghs-footer-col h4 {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
}
.ghs-footer-col ul { list-style: none; padding: 0; margin: 0; }
.ghs-footer-col ul li { margin-bottom: 9px; }
.ghs-footer-col ul li a {
  font-size: 13px;
  color: var(--dark-text);
  transition: var(--transition);
  text-decoration: none;
}
.ghs-footer-col ul li a:hover { color: var(--gold); }
.ghs-footer-bottom {
  background: var(--navy-dark);
  padding: 20px 32px;
}
.ghs-footer-bottom-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.ghs-footer-copy { font-size: 13px; color: var(--muted); }
.ghs-footer-legal { display: flex; gap: 24px; }
.ghs-footer-legal a {
  font-size: 13px;
  color: var(--muted);
  transition: var(--transition);
  text-decoration: none;
}
.ghs-footer-legal a:hover { color: var(--gold); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .ghs-footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
}

@media (max-width: 768px) {
  .ghs-nav-list { display: none; }
  .ghs-search-form { display: none; }
  .ghs-menu-toggle { display: flex; }
  .ghs-header-inner { padding: 0 20px; }
  .ghs-footer-grid { grid-template-columns: 1fr; }
  .ghs-footer-bottom-inner { flex-direction: column; text-align: center; }
  .ghs-footer-legal { justify-content: center; }
}

/* Mobile nav open state */
.ghs-mobile-open .ghs-nav-list {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--white);
  padding: 24px;
  z-index: 9998;
  gap: 4px;
  overflow-y: auto;
}
.ghs-mobile-open .ghs-search-form {
  display: flex;
  margin: 0 24px 16px;
  width: calc(100% - 48px);
}
.ghs-mobile-open .ghs-nav-list > li > a {
  padding: 14px 16px;
  font-size: 16px;
}
.ghs-mobile-open .ghs-dropdown {
  position: static;
  transform: none;
  opacity: 1;
  visibility: visible;
  box-shadow: none;
  border: none;
  background: var(--offwhite);
  grid-template-columns: 1fr;
  border-radius: var(--radius);
  margin-top: 4px;
  pointer-events: all;
}

@media (max-width: 480px) {
  .ghs-footer-grid { grid-template-columns: 1fr; }
}
