/*
Theme Name: Kore Collective
Theme URI: https://korecollective.com
Author: Creative Mayaa Design Studio
Description: Custom WordPress theme for Kore Collective — Fertility & Women's Health. Built with Gutenberg block patterns for full editorial control.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: kore-collective
*/

/* ═══════════════════════════════════════════════
   KORE COLLECTIVE — BRAND SYSTEM
   ═══════════════════════════════════════════════ */

:root {
  /* Brand Colours */
  --kore-bordeaux: #4D0012;
  --kore-ivory: #F9F7E8;
  --kore-olive: #928451;
  --kore-seashell: #FBEBE4;
  --kore-carbon: #181818;
  --kore-white: #FFFFFF;

  /* Transparencies */
  --kore-bordeaux-light: rgba(77,0,18,0.06);
  --kore-olive-light: rgba(146,132,81,0.15);
  --kore-olive-line: rgba(146,132,81,0.2);

  /* Typography */
  --font-heading: 'Gestura', 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Public Sans', -apple-system, sans-serif;

  /* Spacing */
  --section-padding: 80px 40px;
  --section-padding-mobile: 48px 24px;
  --max-content: 900px;
}


/* ─── RESET & BASE ─── */

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.8;
  color: var(--kore-carbon);
  background-color: var(--kore-white);
}

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

a {
  color: var(--kore-bordeaux);
  text-decoration: none;
  transition: opacity 0.3s ease;
}
a:hover { opacity: 0.8; }


/* ─── TYPOGRAPHY ─── */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 400;
  color: var(--kore-bordeaux);
  line-height: 1.2;
}

h1 { font-size: 48px; margin-bottom: 20px; }
h2 { font-size: 36px; margin-bottom: 16px; }
h3 { font-size: 26px; margin-bottom: 12px; }
h4 { font-size: 20px; margin-bottom: 8px; }

p { margin-bottom: 20px; }
p:last-child { margin-bottom: 0; }

.kore-subtitle {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 18px;
  color: var(--kore-olive);
  line-height: 1.5;
  margin-bottom: 24px;
}

.kore-body-text {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.8;
  color: var(--kore-carbon);
  opacity: 0.85;
}

.kore-body-emphasis {
  font-weight: 500;
  opacity: 1;
}

blockquote {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 22px;
  color: var(--kore-bordeaux);
  line-height: 1.6;
  border: none;
  padding: 0;
  margin: 0;
}


/* ─── SITE HEADER ─── */

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 40px;
  border-bottom: 1px solid var(--kore-olive-line);
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--kore-white);
}

.site-logo {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 500;
  color: var(--kore-bordeaux);
  letter-spacing: 0.04em;
  text-decoration: none;
}

.site-nav {
  display: flex;
  gap: 24px;
  align-items: center;
}

.site-nav a {
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--kore-carbon);
  opacity: 0.6;
  transition: opacity 0.3s;
}
.site-nav a:hover { opacity: 1; }

.site-nav .nav-cta {
  color: var(--kore-bordeaux);
  opacity: 1;
  font-weight: 500;
}

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--kore-bordeaux);
  margin: 5px 0;
  transition: all 0.3s;
}


/* ─── BUTTONS ─── */

.kore-btn {
  display: inline-block;
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 15px;
  padding: 12px 28px;
  border-radius: 28px;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  line-height: 1.4;
}

.kore-btn-primary {
  background: var(--kore-bordeaux);
  color: var(--kore-ivory);
}
.kore-btn-primary:hover {
  opacity: 0.9;
  color: var(--kore-ivory);
}

.kore-btn-outline {
  background: transparent;
  border: 1.5px solid var(--kore-bordeaux);
  color: var(--kore-bordeaux);
}
.kore-btn-outline:hover {
  background: var(--kore-bordeaux-light);
  color: var(--kore-bordeaux);
}

.kore-btn-text {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 15px;
  color: var(--kore-olive);
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  text-decoration: none;
}
.kore-btn-text:hover { color: var(--kore-bordeaux); }

.kore-btn-group {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}


/* ─── LAYOUT SECTIONS ─── */

.kore-section {
  padding: var(--section-padding);
  max-width: var(--max-content);
  margin: 0 auto;
}

.kore-section-full {
  padding: var(--section-padding);
}

.kore-section-inner {
  max-width: var(--max-content);
  margin: 0 auto;
}

.kore-center { text-align: center; }


/* ─── BACKGROUND UTILITIES ─── */

.kore-bg-ivory { background-color: var(--kore-ivory); }
.kore-bg-seashell { background-color: var(--kore-seashell); }
.kore-bg-bordeaux { background-color: var(--kore-bordeaux); color: var(--kore-ivory); }
.kore-bg-white { background-color: var(--kore-white); }


/* ─── HERO ─── */

.kore-hero {
  text-align: center;
  padding: 100px 40px;
}

.kore-hero-home {
  background: linear-gradient(180deg, var(--kore-ivory) 0%, var(--kore-seashell) 100%);
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.kore-hero h1 {
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.kore-hero p {
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}


/* ─── TWO COLUMN LAYOUT ─── */

.kore-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.kore-two-col-reverse {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.kore-two-col-reverse > *:first-child { order: 2; }
.kore-two-col-reverse > *:last-child { order: 1; }


/* ─── DIVIDERS ─── */

.kore-divider {
  text-align: center;
  padding: 40px 0;
  color: var(--kore-olive);
  opacity: 0.3;
  font-size: 16px;
  letter-spacing: 8px;
}

.kore-divider-line {
  width: 60px;
  height: 1px;
  background: var(--kore-olive);
  opacity: 0.3;
  margin: 40px auto;
}


/* ─── ACCORDION ─── */

.kore-accordion-item {
  border-top: 1px solid var(--kore-olive);
  overflow: hidden;
}
.kore-accordion-item:last-child {
  border-bottom: 1px solid var(--kore-olive);
}

.kore-accordion-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 4px;
  cursor: pointer;
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 400;
  color: var(--kore-olive);
  transition: color 0.3s;
}
.kore-accordion-header:hover { color: var(--kore-bordeaux); }

.kore-accordion-chevron {
  font-size: 18px;
  transition: transform 0.3s ease;
  color: var(--kore-olive);
}
.kore-accordion-item.open .kore-accordion-chevron {
  transform: rotate(180deg);
}

.kore-accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
  padding: 0 4px;
}
.kore-accordion-item.open .kore-accordion-body {
  max-height: 800px;
}

.kore-accordion-content {
  padding: 0 0 24px 0;
}

.kore-accordion-content ul {
  list-style: none;
  padding: 0;
}
.kore-accordion-content li {
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.7;
  color: var(--kore-carbon);
  opacity: 0.8;
  padding: 4px 0 4px 16px;
  position: relative;
}
.kore-accordion-content li::before {
  content: '·';
  position: absolute;
  left: 0;
  color: var(--kore-olive);
  font-weight: 600;
}


/* ─── METHOD STEPS ─── */

.kore-method-step {
  padding: 32px;
  border-left: 3px solid var(--kore-olive);
  margin-bottom: 24px;
  background: var(--kore-white);
  border-radius: 0 8px 8px 0;
}
.kore-method-step h4 {
  font-family: var(--font-heading);
  font-size: 22px;
}
.kore-method-step p {
  font-size: 14px;
  line-height: 1.7;
  opacity: 0.8;
}
.kore-method-arrow {
  text-align: center;
  color: var(--kore-olive);
  opacity: 0.3;
  font-size: 20px;
  padding: 8px 0;
}


/* ─── SERVICE CARDS ─── */

.kore-service-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.kore-service-card {
  padding: 28px 24px;
  border: 1px solid var(--kore-olive-line);
  border-radius: 8px;
  transition: border-color 0.3s;
}
.kore-service-card:hover { border-color: var(--kore-bordeaux); }
.kore-service-card h4 {
  font-family: var(--font-heading);
  font-size: 18px;
}
.kore-service-card p {
  font-size: 13px;
  opacity: 0.6;
  line-height: 1.5;
  margin-bottom: 0;
}


/* ─── PILLAR ITEMS ─── */

.kore-pillar-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 16px 0;
  border-bottom: 1px solid rgba(146,132,81,0.1);
}
.kore-pillar-item:last-child { border-bottom: none; }

.kore-pillar-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--kore-seashell);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 14px;
  color: var(--kore-bordeaux);
  flex-shrink: 0;
}

.kore-pillar-text h4 {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
}
.kore-pillar-text p {
  font-size: 13px;
  opacity: 0.7;
  line-height: 1.6;
  margin-bottom: 0;
}


/* ─── PROGRAMME ITEMS ─── */

.kore-programme-item {
  padding: 20px 0;
  border-bottom: 1px solid rgba(146,132,81,0.1);
}
.kore-programme-item:last-child { border-bottom: none; }
.kore-programme-item h4 {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
}
.kore-programme-item p {
  font-size: 13px;
  opacity: 0.7;
  line-height: 1.6;
  margin-bottom: 0;
}


/* ─── KNOWLEDGE HUB ─── */

.kore-category-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 32px;
}

.kore-tag {
  font-family: var(--font-body);
  font-size: 12px;
  padding: 6px 16px;
  border: 1px solid rgba(146,132,81,0.3);
  border-radius: 20px;
  color: var(--kore-olive);
  cursor: pointer;
  transition: all 0.3s;
  background: none;
}
.kore-tag:hover, .kore-tag.active {
  background: var(--kore-bordeaux);
  color: var(--kore-ivory);
  border-color: var(--kore-bordeaux);
}

.kore-article-card {
  display: flex;
  gap: 20px;
  padding: 24px 0;
  border-bottom: 1px solid rgba(146,132,81,0.1);
}
.kore-article-thumb {
  width: 100px;
  height: 100px;
  border-radius: 6px;
  flex-shrink: 0;
  object-fit: cover;
  background: linear-gradient(135deg, #E8E4D8, #D9D4C4);
}


/* ─── TESTIMONIAL ─── */

.kore-testimonial {
  background: var(--kore-bordeaux);
  padding: var(--section-padding);
  text-align: center;
}
.kore-testimonial blockquote {
  color: var(--kore-ivory);
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto 16px;
}
.kore-testimonial cite {
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--kore-olive);
  font-style: normal;
  letter-spacing: 0.04em;
}


/* ─── QUOTE ─── */

.kore-quote {
  text-align: center;
  padding: var(--section-padding);
  max-width: 700px;
  margin: 0 auto;
}


/* ─── TAGLINE ─── */

.kore-tagline {
  text-align: center;
  padding: var(--section-padding);
}
.kore-tagline h2 {
  font-size: 42px;
}


/* ─── EMAIL SIGNUP ─── */

.kore-signup-form {
  display: flex;
  gap: 8px;
  max-width: 400px;
}
.kore-signup-form input[type="email"] {
  flex: 1;
  padding: 10px 16px;
  border: 1px solid rgba(146,132,81,0.3);
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 13px;
  outline: none;
  transition: border-color 0.3s;
}
.kore-signup-form input[type="email"]:focus {
  border-color: var(--kore-bordeaux);
}


/* ─── FOOTER ─── */

.site-footer {
  background: var(--kore-bordeaux);
  padding: 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.site-footer span {
  font-family: var(--font-body);
  font-size: 11px;
  color: var(--kore-ivory);
  opacity: 0.5;
}
.site-footer .footer-tagline {
  font-family: var(--font-heading);
  font-size: 16px;
  color: var(--kore-ivory);
  opacity: 0.7;
}


/* ─── SCROLL ANIMATIONS ─── */

.kore-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.kore-reveal.visible {
  opacity: 1;
  transform: translateY(0);
}


/* ─── WORDPRESS SPECIFIC ─── */

.wp-block-group { margin-bottom: 0; }
.entry-content > * { margin-bottom: 0; }
.wp-site-blocks { padding: 0; }

/* Remove default WordPress block spacing */
.wp-block-post-content > *:first-child { margin-top: 0; }
.wp-block-post-content > *:last-child { margin-bottom: 0; }


/* ─── RESPONSIVE ─── */

@media (max-width: 768px) {
  :root {
    --section-padding: 48px 24px;
  }

  h1 { font-size: 36px; }
  h2 { font-size: 28px; }
  h3 { font-size: 22px; }

  .site-header { padding: 16px 20px; }
  .site-nav { display: none; }
  .site-nav.open { 
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--kore-white);
    padding: 20px;
    border-bottom: 1px solid var(--kore-olive-line);
    gap: 16px;
  }
  .menu-toggle { display: block; }

  .kore-two-col,
  .kore-two-col-reverse {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .kore-two-col-reverse > *:first-child { order: 1; }
  .kore-two-col-reverse > *:last-child { order: 2; }

  .kore-service-grid { grid-template-columns: 1fr; }

  .kore-hero { padding: 60px 24px; }
  .kore-hero-home { min-height: 60vh; }

  .site-footer {
    padding: 24px 20px;
    flex-direction: column;
    text-align: center;
  }
}
