/*
Theme Name: Growing Scholars
Theme URI: https://growingscholars.com
Author: Growing Scholars
Author URI: https://growingscholars.com
Description: Custom WordPress theme for Growing Scholars — PhD mentorship and academic guidance.
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: growing-scholars
Tags: education, mentorship, academic, clean, minimal
*/

/* =========================================================
   DESIGN TOKENS
   ========================================================= */
:root {
  --gs-ink:       #1a1a2e;
  --gs-slate:     #3d405b;
  --gs-sage:      #5c7a6e;
  --gs-sage-lt:   #8aaa9e;
  --gs-cream:     #f8f5f0;
  --gs-warm:      #ede8df;
  --gs-gold:      #b5945a;
  --gs-gold-lt:   #d4b484;
  --gs-white:     #ffffff;

  --gs-ff-head:   'Playfair Display', Georgia, serif;
  --gs-ff-body:   'Source Serif 4', 'Georgia', serif;
  --gs-ff-label:  'DM Sans', system-ui, sans-serif;

  --gs-max-w:     1100px;
  --gs-gap:       clamp(2rem, 5vw, 4rem);
  --gs-radius:    4px;
  --gs-shadow:    0 4px 24px rgba(26,26,46,0.08);

  --gs-transition: 0.3s ease;
}

/* =========================================================
   GOOGLE FONTS IMPORT
   ========================================================= */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,700;1,400;1,500&family=Source+Serif+4:ital,wght@0,300;0,400;0,600;1,300;1,400&family=DM+Sans:wght@300;400;500;600&display=swap');

/* =========================================================
   RESET & BASE
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--gs-ff-body);
  font-size: clamp(1rem, 1.2vw, 1.125rem);
  line-height: 1.75;
  color: var(--gs-slate);
  background: var(--gs-cream);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a {
  color: var(--gs-sage);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--gs-transition);
}
a:hover { color: var(--gs-gold); }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--gs-ff-head);
  color: var(--gs-ink);
  line-height: 1.25;
  font-weight: 500;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.6rem); }
h4 { font-size: 1.1rem; font-family: var(--gs-ff-label); font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; }

p { margin-bottom: 1.1em; }
ul, ol { padding-left: 1.4em; }
li { margin-bottom: 0.4em; }

/* =========================================================
   LAYOUT HELPERS
   ========================================================= */
.container {
  width: 100%;
  max-width: var(--gs-max-w);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 2.5rem);
}

.section { padding: var(--gs-gap) 0; }
.section--dark { background: var(--gs-ink); color: var(--gs-cream); }
.section--dark h1, .section--dark h2, .section--dark h3 { color: var(--gs-cream); }
.section--warm { background: var(--gs-warm); }
.section--sage { background: var(--gs-sage); color: var(--gs-cream); }
.section--sage h1, .section--sage h2, .section--sage h3 { color: var(--gs-white); }

/* =========================================================
   HEADER / NAV
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--gs-white);
  border-bottom: 1px solid rgba(26,26,46,0.1);
  box-shadow: 0 2px 16px rgba(26,26,46,0.05);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.site-logo {
  font-family: var(--gs-ff-head);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--gs-ink);
  text-decoration: none;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.site-logo span { color: var(--gs-sage); }
.site-logo:hover { color: var(--gs-ink); }

.site-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.site-nav a {
  font-family: var(--gs-ff-label);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--gs-slate);
  text-decoration: none;
  padding: 0.4rem 0.75rem;
  border-radius: var(--gs-radius);
  transition: all var(--gs-transition);
}
.site-nav a:hover,
.site-nav a.current-page-ancestor,
.site-nav .current_page_item > a { color: var(--gs-sage); background: rgba(92,122,110,0.08); }

.site-nav .nav-cta > a {
  background: var(--gs-ink);
  color: var(--gs-cream);
  padding: 0.5rem 1.1rem;
  border-radius: 2px;
}
.site-nav .nav-cta > a:hover { background: var(--gs-sage); color: var(--gs-white); }

/* Dropdown */
.site-nav .menu-item-has-children { position: relative; }
.site-nav .sub-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 280px;
  background: var(--gs-white);
  border: 1px solid rgba(26,26,46,0.1);
  border-radius: var(--gs-radius);
  box-shadow: var(--gs-shadow);
  padding: 0.5rem 0;
  list-style: none;
}
.site-nav .menu-item-has-children:hover .sub-menu { display: block; }
.site-nav .sub-menu li a {
  display: block;
  padding: 0.55rem 1.25rem;
  font-size: 0.875rem;
  border-radius: 0;
  color: var(--gs-slate);
}
.site-nav .sub-menu li a:hover { background: var(--gs-warm); color: var(--gs-sage); }

/* Mobile hamburger */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  flex-direction: column;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--gs-ink);
  transition: all var(--gs-transition);
}

/* =========================================================
   HERO — HOME
   ========================================================= */
.hero {
  background: var(--gs-ink);
  color: var(--gs-cream);
  padding: clamp(4rem, 10vw, 8rem) 0 clamp(3rem, 7vw, 6rem);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 80% 50%, rgba(92,122,110,0.18) 0%, transparent 70%),
    radial-gradient(ellipse 50% 80% at 10% 20%, rgba(181,148,90,0.12) 0%, transparent 60%);
  pointer-events: none;
}

.hero__inner { position: relative; z-index: 1; max-width: 720px; }

.hero__eyebrow {
  font-family: var(--gs-ff-label);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gs-gold-lt);
  margin-bottom: 1.25rem;
}

.hero h1 {
  color: var(--gs-white);
  font-size: clamp(2.4rem, 5.5vw, 4rem);
  font-weight: 500;
  font-style: italic;
  line-height: 1.15;
  margin-bottom: 1.5rem;
}
.hero h1 em { font-style: normal; color: var(--gs-gold-lt); }

.hero__sub {
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  color: rgba(248,245,240,0.75);
  margin-bottom: 2.5rem;
  max-width: 540px;
}

.hero__actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* =========================================================
   BUTTONS
   ========================================================= */
.btn {
  display: inline-block;
  font-family: var(--gs-ff-label);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
  padding: 0.8rem 1.8rem;
  border-radius: 2px;
  transition: all var(--gs-transition);
  cursor: pointer;
  border: none;
}

.btn--primary {
  background: var(--gs-gold);
  color: var(--gs-ink);
}
.btn--primary:hover { background: var(--gs-gold-lt); color: var(--gs-ink); }

.btn--outline {
  background: transparent;
  color: var(--gs-cream);
  border: 1.5px solid rgba(248,245,240,0.4);
}
.btn--outline:hover { background: rgba(248,245,240,0.1); color: var(--gs-white); border-color: var(--gs-cream); }

.btn--sage {
  background: var(--gs-sage);
  color: var(--gs-white);
}
.btn--sage:hover { background: var(--gs-ink); }

.btn--dark {
  background: var(--gs-ink);
  color: var(--gs-cream);
}
.btn--dark:hover { background: var(--gs-sage); color: var(--gs-white); }

/* =========================================================
   FEATURE PILLARS (HOME)
   ========================================================= */
.pillars {
  background: var(--gs-warm);
  padding: clamp(2.5rem, 6vw, 4.5rem) 0;
}
.pillars__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
}
.pillar {
  background: var(--gs-white);
  border-radius: var(--gs-radius);
  padding: 2rem 1.75rem;
  border-top: 3px solid var(--gs-sage);
  box-shadow: var(--gs-shadow);
  transition: transform var(--gs-transition);
}
.pillar:hover { transform: translateY(-4px); }
.pillar h3 { font-size: 1.1rem; margin-bottom: 0.6rem; }
.pillar p { font-size: 0.95rem; color: var(--gs-slate); margin: 0; }

/* =========================================================
   SERVICES OVERVIEW (HOME)
   ========================================================= */
.services-overview { padding: var(--gs-gap) 0; }
.services-overview__label {
  font-family: var(--gs-ff-label);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gs-gold);
  margin-bottom: 0.5rem;
}
.services-overview h2 { margin-bottom: 0.5rem; }
.services-overview .intro { color: var(--gs-slate); max-width: 500px; margin-bottom: 3rem; }

.services-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}
.service-card {
  background: var(--gs-white);
  border-radius: var(--gs-radius);
  padding: 2.25rem 2rem;
  box-shadow: var(--gs-shadow);
  border-left: 3px solid var(--gs-sage-lt);
  transition: border-color var(--gs-transition), transform var(--gs-transition);
}
.service-card:hover { border-color: var(--gs-sage); transform: translateY(-3px); }
.service-card h3 { font-size: 1.25rem; margin-bottom: 0.75rem; }
.service-card p { font-size: 0.95rem; margin: 0; }

/* =========================================================
   PHILOSOPHY / QUOTE SECTION (HOME)
   ========================================================= */
.philosophy {
  background: var(--gs-sage);
  color: var(--gs-white);
  padding: var(--gs-gap) 0;
}
.philosophy__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.philosophy h2 { color: var(--gs-white); font-style: italic; margin-bottom: 1.25rem; }
.philosophy p { color: rgba(255,255,255,0.85); }
.philosophy ul {
  list-style: none;
  padding: 0;
  margin-top: 1.5rem;
}
.philosophy ul li {
  padding: 0.4rem 0 0.4rem 1.5rem;
  position: relative;
  color: rgba(255,255,255,0.9);
  font-size: 0.95rem;
}
.philosophy ul li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--gs-gold-lt);
}
.philosophy__image { border-radius: var(--gs-radius); overflow: hidden; }
.philosophy__image img { width: 100%; height: 380px; object-fit: cover; }

/* =========================================================
   PAGE HERO (INNER PAGES)
   ========================================================= */
.page-hero {
  background: var(--gs-ink);
  color: var(--gs-white);
  padding: clamp(3rem, 8vw, 6rem) 0 clamp(2.5rem, 6vw, 5rem);
  position: relative;
  overflow: hidden;
}
.page-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 80% at 90% 50%, rgba(92,122,110,0.2) 0%, transparent 70%);
  pointer-events: none;
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { color: var(--gs-white); max-width: 780px; font-style: italic; }
.page-hero .page-hero__sub {
  color: rgba(248,245,240,0.7);
  font-size: 1.1rem;
  margin-top: 1rem;
  max-width: 560px;
}

/* =========================================================
   ABOUT PAGE
   ========================================================= */
.founder {
  padding: var(--gs-gap) 0;
  background: var(--gs-white);
}
.founder__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}
.founder__label {
  font-family: var(--gs-ff-label);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gs-gold);
  margin-bottom: 1rem;
}
.founder h2 { font-style: italic; margin-bottom: 1.5rem; line-height: 1.2; }
.founder__links { margin-top: 1.5rem; }
.founder__links a {
  display: inline-block;
  font-family: var(--gs-ff-label);
  font-size: 0.875rem;
  font-weight: 500;
  margin-right: 1.5rem;
  margin-bottom: 0.5rem;
}
.founder__image {
  border-radius: var(--gs-radius);
  overflow: hidden;
  box-shadow: var(--gs-shadow);
}
.founder__image img { width: 100%; height: 480px; object-fit: cover; }

.journey { padding: var(--gs-gap) 0; background: var(--gs-warm); }
.journey__label {
  font-family: var(--gs-ff-label);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gs-gold);
  margin-bottom: 0.5rem;
}
.journey h2 { margin-bottom: 2.5rem; }
.journey__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}
.journey__item {
  background: var(--gs-white);
  border-radius: var(--gs-radius);
  padding: 2rem 1.75rem;
  box-shadow: var(--gs-shadow);
}
.journey__item h3 {
  font-family: var(--gs-ff-label);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gs-sage);
  margin-bottom: 0.75rem;
}
.journey__item p { font-size: 0.95rem; margin: 0; }

/* =========================================================
   SERVICES PAGE
   ========================================================= */
.service-block {
  padding: var(--gs-gap) 0;
  border-bottom: 1px solid rgba(26,26,46,0.08);
}
.service-block:last-child { border-bottom: none; }
.service-block__inner {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 4rem;
  align-items: start;
}
.service-block__meta { padding-top: 0.5rem; }
.service-block__tag {
  font-family: var(--gs-ff-label);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gs-gold);
  margin-bottom: 0.75rem;
}
.service-block h2 { font-style: italic; }
.service-block .price-badge {
  display: inline-block;
  background: var(--gs-sage);
  color: var(--gs-white);
  font-family: var(--gs-ff-label);
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.45rem 1rem;
  border-radius: 2px;
  margin-top: 1rem;
}
.service-block .service-tagline {
  font-style: italic;
  color: var(--gs-slate);
  font-size: 1rem;
  margin-bottom: 1.25rem;
}

/* FAQ */
.faq { padding: var(--gs-gap) 0; background: var(--gs-warm); }
.faq h2 { margin-bottom: 2.5rem; }
.faq__list { max-width: 760px; }
.faq__item {
  border-bottom: 1px solid rgba(26,26,46,0.12);
  padding: 1.5rem 0;
}
.faq__item:first-child { border-top: 1px solid rgba(26,26,46,0.12); }
.faq__question {
  font-family: var(--gs-ff-label);
  font-size: 1rem;
  font-weight: 600;
  color: var(--gs-ink);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  list-style: none;
}
.faq__question::after { content: '+'; font-size: 1.4rem; color: var(--gs-sage); flex-shrink: 0; }
details[open] .faq__question::after { content: '−'; }
.faq__answer {
  padding-top: 1rem;
  font-size: 0.95rem;
  color: var(--gs-slate);
}

/* CTA BANNER */
.cta-banner {
  background: var(--gs-ink);
  color: var(--gs-white);
  padding: clamp(3rem, 7vw, 5rem) 0;
  text-align: center;
}
.cta-banner h2 {
  color: var(--gs-white);
  font-style: italic;
  margin-bottom: 1rem;
}
.cta-banner p {
  color: rgba(248,245,240,0.75);
  margin-bottom: 2rem;
  font-size: 1.05rem;
}

/* =========================================================
   RESOURCES PAGE
   ========================================================= */
.resources-grid {
  padding: var(--gs-gap) 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}
.resource-card {
  background: var(--gs-white);
  border-radius: var(--gs-radius);
  padding: 2rem;
  box-shadow: var(--gs-shadow);
  border-top: 3px solid var(--gs-sage);
  transition: transform var(--gs-transition);
}
.resource-card:hover { transform: translateY(-4px); }
.resource-card h3 { font-size: 1.15rem; margin-bottom: 0.75rem; }
.resource-card h3 a { text-decoration: none; color: var(--gs-ink); }
.resource-card h3 a:hover { color: var(--gs-sage); }
.resource-card p { font-size: 0.9rem; color: var(--gs-slate); margin: 0; }

/* =========================================================
   CONTACT PAGE
   ========================================================= */
.contact-wrap {
  padding: var(--gs-gap) 0;
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 4rem;
}
.contact-info h3 { margin-bottom: 0.75rem; }
.contact-info p { font-size: 0.95rem; }

/* Contact Form 7 overrides */
.wpcf7-form .form-row { margin-bottom: 1.25rem; }
.wpcf7-form label {
  display: block;
  font-family: var(--gs-ff-label);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gs-ink);
  margin-bottom: 0.4rem;
}
.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid rgba(26,26,46,0.2);
  border-radius: var(--gs-radius);
  font-family: var(--gs-ff-body);
  font-size: 1rem;
  color: var(--gs-ink);
  background: var(--gs-white);
  transition: border-color var(--gs-transition);
  appearance: none;
}
.wpcf7-form input:focus,
.wpcf7-form textarea:focus {
  outline: none;
  border-color: var(--gs-sage);
}
.wpcf7-form textarea { resize: vertical; min-height: 160px; }
.wpcf7-form .wpcf7-submit {
  background: var(--gs-ink);
  color: var(--gs-cream);
  font-family: var(--gs-ff-label);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  border: none;
  padding: 0.85rem 2rem;
  cursor: pointer;
  transition: background var(--gs-transition);
  border-radius: 2px;
}
.wpcf7-form .wpcf7-submit:hover { background: var(--gs-sage); }

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer {
  background: var(--gs-ink);
  color: rgba(248,245,240,0.65);
  padding: clamp(3rem, 6vw, 5rem) 0 2rem;
}
.site-footer__inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
.footer-brand .site-logo {
  color: var(--gs-white);
  font-size: 1.25rem;
  margin-bottom: 1rem;
  display: block;
}
.footer-brand p { font-size: 0.875rem; max-width: 280px; }
.footer-nav h4, .footer-lang h4 {
  font-family: var(--gs-ff-label);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gs-gold-lt);
  margin-bottom: 1rem;
}
.footer-nav ul, .footer-lang ul { list-style: none; padding: 0; }
.footer-nav li, .footer-lang li { margin-bottom: 0.5rem; }
.footer-nav a, .footer-lang a {
  color: rgba(248,245,240,0.65);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color var(--gs-transition);
}
.footer-nav a:hover, .footer-lang a:hover { color: var(--gs-sage-lt); }
.site-footer__bottom {
  border-top: 1px solid rgba(248,245,240,0.1);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  gap: 1rem;
  flex-wrap: wrap;
}

/* =========================================================
   UTILITY
   ========================================================= */
.text-center { text-align: center; }
.text-gold { color: var(--gs-gold); }
.italic { font-style: italic; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mb-0 { margin-bottom: 0; }

/* Skip link */
.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  z-index: 999;
  background: var(--gs-ink);
  color: var(--gs-white);
  padding: 0.5rem 1rem;
}
.skip-link:focus { left: 1rem; top: 1rem; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 900px) {
  .philosophy__inner { grid-template-columns: 1fr; }
  .philosophy__image { display: none; }
  .founder__inner { grid-template-columns: 1fr; }
  .founder__image { order: -1; }
  .founder__image img { height: 300px; }
  .service-block__inner { grid-template-columns: 1fr; gap: 1.5rem; }
  .contact-wrap { grid-template-columns: 1fr; }
  .site-footer__inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 680px) {
  .site-nav { display: none; }
  .site-nav.is-open {
    display: block;
    position: fixed;
    inset: 72px 0 0 0;
    background: var(--gs-white);
    padding: 1.5rem;
    overflow-y: auto;
    z-index: 99;
  }
  .site-nav.is-open ul { flex-direction: column; gap: 0; }
  .site-nav.is-open a { display: block; padding: 0.8rem 0; font-size: 1.05rem; }
  .site-nav.is-open .sub-menu { display: block; position: static; box-shadow: none; border: none; padding-left: 1rem; }
  .nav-toggle { display: flex; }
  .site-footer__inner { grid-template-columns: 1fr; }
  .site-footer__bottom { flex-direction: column; text-align: center; }
}
