/*
Theme Name: The Gut Solution
Theme URI: https://thegutsolution.com
Author: Houleye
Author URI: https://thegutsolution.com
Description: A warm, elegant health coaching theme for The Gut Solution — naturopathic nutrition and gut wellness by Houleye. Features hero, about, services, recipes, testimonials, and contact sections.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: gutsolution
Tags: health, wellness, nutrition, one-page, custom-colors, custom-logo, featured-images, full-width-template, theme-options
*/

/* =============================================
   CSS VARIABLES
   ============================================= */
:root {
  --cream: #faf5ef;
  --warm-white: #fdf9f4;
  --gold: #c9a96e;
  --gold-light: #e8d5b0;
  --terracotta: #c4694f;
  --terra-soft: #e8937e;
  --brown: #5c3d2e;
  --brown-mid: #7d5a47;
  --text-dark: #2d1f15;
  --text-mid: #6b4c3b;
  --text-light: #9c7a6a;
  --section-bg: #f5ede3;
  --border: #e8d5b0;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--cream);
  color: var(--text-dark);
  font-family: 'Jost', sans-serif;
  font-weight: 300;
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--terracotta); text-decoration: none; transition: color 0.3s; }
a:hover { color: var(--brown); }

h1, h2, h3, h4, h5, h6 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 400;
  color: var(--brown);
  line-height: 1.2;
}

p { color: var(--text-mid); line-height: 1.85; margin-bottom: 1rem; }
ul, ol { padding-left: 1.5rem; color: var(--text-mid); }

/* =============================================
   UTILITY CLASSES
   ============================================= */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section-label {
  font-family: 'Jost', sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--terracotta);
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 1.2rem;
}
.section-label::before {
  content: '';
  display: block;
  width: 30px;
  height: 1px;
  background: var(--terracotta);
}

.btn-primary {
  display: inline-block;
  padding: 0.9rem 2.4rem;
  background: var(--terracotta);
  color: white !important;
  font-family: 'Jost', sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: background 0.3s, transform 0.2s;
  text-decoration: none;
}
.btn-primary:hover {
  background: var(--brown);
  transform: translateY(-2px);
  color: white !important;
}

.btn-outline {
  display: inline-block;
  padding: 0.9rem 2.4rem;
  border: 1px solid var(--gold);
  color: var(--brown) !important;
  font-family: 'Jost', sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transition: background 0.3s, color 0.3s;
  text-decoration: none;
}
.btn-outline:hover {
  background: var(--gold);
  color: white !important;
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}

/* =============================================
   NAVIGATION
   ============================================= */
#site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(250, 245, 239, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gold-light);
  transition: box-shadow 0.3s;
}
#site-header.scrolled {
  box-shadow: 0 4px 30px rgba(92, 61, 46, 0.1);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem 3rem;
}
.site-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--brown) !important;
  letter-spacing: 0.04em;
  text-decoration: none;
}
.site-logo span { color: var(--terracotta); }

.main-nav ul {
  display: flex;
  gap: 2.5rem;
  list-style: none;
  padding: 0; margin: 0;
}
.main-nav a {
  font-family: 'Jost', sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-mid);
  text-decoration: none;
  transition: color 0.3s;
}
.main-nav a:hover { color: var(--terracotta); }

.nav-cta { margin-left: 1rem; }

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4rem;
  flex-direction: column;
  gap: 5px;
}
.menu-toggle span {
  display: block;
  width: 24px; height: 2px;
  background: var(--brown);
  transition: all 0.3s;
}

/* =============================================
   HERO SECTION
   ============================================= */
#hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding-top: 80px;
  overflow: hidden;
}
.hero-left {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 5rem 3rem 5rem 5rem;
  animation: fadeLeft 1s 0.2s ease both;
}
.hero-eyebrow {
  font-family: 'Jost', sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 1.8rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.hero-eyebrow::before {
  content: '';
  display: block;
  width: 40px; height: 1px;
  background: var(--terracotta);
}
.hero-title {
  font-size: clamp(2.8rem, 4.5vw, 5rem);
  font-weight: 300;
  line-height: 1.1;
  color: var(--brown);
  margin-bottom: 1.8rem;
}
.hero-title em { font-style: italic; color: var(--terracotta); }
.hero-subtitle {
  font-size: 1rem;
  line-height: 1.85;
  color: var(--text-mid);
  max-width: 430px;
  margin-bottom: 3rem;
}
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

.hero-right {
  position: relative;
  overflow: hidden;
  animation: fadeRight 1s 0.3s ease both;
}
.hero-visual {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, #e8c9a8 0%, #d4956e 50%, #c4694f 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-blob {
  width: 320px; height: 400px;
  background: rgba(255,255,255,0.12);
  border-radius: 60% 40% 55% 45% / 50% 60% 40% 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2.5rem;
  animation: morph 8s ease-in-out infinite;
}
.hero-blob-icon { font-size: 3.5rem; margin-bottom: 1rem; }
.hero-blob-quote {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.4rem;
  font-style: italic;
  color: white;
  line-height: 1.5;
}
.hero-badge {
  position: absolute;
  bottom: 2rem; right: 2rem;
  width: 100px; height: 100px;
  background: var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  animation: spin-slow 20s linear infinite;
}
.hero-badge span {
  font-size: 0.58rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: white;
  line-height: 1.6;
  padding: 0 0.8rem;
}

/* =============================================
   MARQUEE STRIP
   ============================================= */
.marquee-strip {
  background: var(--brown);
  padding: 1rem 0;
  overflow: hidden;
  display: flex;
  white-space: nowrap;
}
.marquee-inner {
  display: flex;
  gap: 3rem;
  animation: marquee 22s linear infinite;
  flex-shrink: 0;
}
.marquee-inner span {
  font-family: 'Jost', sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-light);
  flex-shrink: 0;
}
.marquee-inner .dot { color: var(--terracotta); }

/* =============================================
   ABOUT SECTION
   ============================================= */
#about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  padding: 7rem 5rem;
  background: var(--warm-white);
}
.about-image-col { position: relative; }
.about-photo-wrapper {
  position: relative;
  width: 100%;
  max-width: 380px;
}
.about-photo-wrapper::before {
  content: '';
  position: absolute;
  top: 20px; left: 20px;
  right: -20px; bottom: -20px;
  border: 1px solid var(--gold);
  z-index: 0;
}
.about-photo {
  position: relative; z-index: 1;
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  display: block;
}
.about-photo-placeholder {
  position: relative; z-index: 1;
  width: 100%;
  aspect-ratio: 3/4;
  background: linear-gradient(160deg, #e0b896, #c4694f);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
  opacity: 0.6;
}
.about-text-col {
  padding: 2rem 0 2rem 5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.about-text-col h2 {
  font-size: 2.8rem;
  margin-bottom: 1.4rem;
}
.about-credentials {
  display: flex;
  gap: 2rem;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--gold-light);
}
.cred-item { text-align: center; }
.cred-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2rem;
  color: var(--terracotta);
  font-weight: 600;
  display: block;
}
.cred-label {
  font-family: 'Jost', sans-serif;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-top: 0.3rem;
  display: block;
}

/* =============================================
   SERVICES SECTION
   ============================================= */
#services {
  padding: 7rem 5rem;
  background: var(--section-bg);
}
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 4rem;
}
.section-header h2 { font-size: 3rem; }
.section-header h2 em { font-style: italic; color: var(--terracotta); }

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.service-card {
  background: var(--warm-white);
  padding: 2.5rem;
  border-top: 3px solid var(--gold);
  transition: transform 0.3s, box-shadow 0.3s;
  position: relative;
  overflow: hidden;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(92, 61, 46, 0.1);
}
.service-icon { font-size: 2rem; margin-bottom: 1.2rem; display: block; }
.service-card h3 {
  font-size: 1.4rem;
  margin-bottom: 0.8rem;
}
.service-card p { font-size: 0.88rem; margin-bottom: 0; }

/* =============================================
   RECIPES SECTION
   ============================================= */
#recipes {
  padding: 7rem 5rem;
  background: var(--warm-white);
}
.recipes-header {
  text-align: center;
  margin-bottom: 4rem;
}
.recipes-header .section-label {
  justify-content: center;
}
.recipes-header .section-label::before { display: none; }
.recipes-header h2 { font-size: 3rem; margin-bottom: 1rem; }
.recipes-header h2 em { font-style: italic; color: var(--terracotta); }
.recipes-header p { max-width: 500px; margin: 0 auto; }

.recipes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.recipe-card {
  background: var(--cream);
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
}
.recipe-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 50px rgba(92, 61, 46, 0.12);
}
.recipe-thumb {
  height: 200px;
  overflow: hidden;
  position: relative;
}
.recipe-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}
.recipe-card:hover .recipe-thumb img { transform: scale(1.05); }
.recipe-thumb-placeholder {
  width: 100%; height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
}
.recipe-thumb-1 { background: linear-gradient(135deg, #f0d5b8, #e8a87c); }
.recipe-thumb-2 { background: linear-gradient(135deg, #d4e8c8, #a8c990); }
.recipe-thumb-3 { background: linear-gradient(135deg, #f5c5b0, #e07856); }

.recipe-info { padding: 1.5rem; }
.recipe-tag {
  font-family: 'Jost', sans-serif;
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 0.6rem;
  display: block;
}
.recipe-info h3 { font-size: 1.3rem; margin-bottom: 0.5rem; }
.recipe-info p { font-size: 0.84rem; line-height: 1.65; margin-bottom: 0; }
.recipe-meta {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--gold-light);
  font-family: 'Jost', sans-serif;
  font-size: 0.75rem;
  color: var(--text-light);
}
.recipes-footer { text-align: center; margin-top: 3rem; }

/* =============================================
   TESTIMONIAL SECTION
   ============================================= */
#testimonial {
  padding: 6rem 5rem;
  background: var(--brown);
  text-align: center;
  position: relative;
  overflow: hidden;
}
#testimonial::before {
  content: '"';
  position: absolute;
  top: -3rem; left: 4rem;
  font-family: 'Cormorant Garamond', serif;
  font-size: 22rem;
  color: rgba(201, 169, 110, 0.07);
  line-height: 1;
  pointer-events: none;
}
.testimonial-quote {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-style: italic;
  font-weight: 300;
  color: var(--cream);
  max-width: 720px;
  margin: 0 auto 2rem;
  line-height: 1.5;
  position: relative;
}
.testimonial-cite {
  font-family: 'Jost', sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}

/* =============================================
   CONTACT SECTION
   ============================================= */
#contact {
  padding: 7rem 5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  background: var(--section-bg);
}
.contact-text h2 {
  font-size: 2.8rem;
  margin-bottom: 1.4rem;
  line-height: 1.2;
}
.contact-text h2 em { font-style: italic; color: var(--terracotta); }
.contact-info-list {
  list-style: none;
  padding: 0; margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 2rem;
}
.contact-info-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.9rem;
  color: var(--text-mid);
}
.contact-icon {
  width: 40px; height: 40px;
  background: var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
  color: white;
}

/* Contact Form */
.contact-form-wrap form { display: flex; flex-direction: column; gap: 1.2rem; }
.form-group { display: flex; flex-direction: column; gap: 0.4rem; }
.form-label {
  font-family: 'Jost', sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-mid);
}
.form-control {
  width: 100%;
  padding: 0.9rem 1.1rem;
  background: var(--warm-white);
  border: 1px solid var(--gold-light);
  font-family: 'Jost', sans-serif;
  font-size: 0.9rem;
  color: var(--text-dark);
  outline: none;
  transition: border-color 0.3s;
  appearance: none;
  border-radius: 0;
}
.form-control:focus { border-color: var(--terracotta); }
textarea.form-control { min-height: 130px; resize: vertical; }
.wpcf7-form-control-wrap { width: 100%; }

/* =============================================
   DISCLAIMER BAR
   ============================================= */
.disclaimer-bar {
  background: #1e1410;
  padding: 1.2rem 3rem;
  text-align: center;
  border-top: 1px solid rgba(201, 169, 110, 0.2);
}
.disclaimer-bar p {
  font-size: 0.72rem;
  color: #9c7a6a;
  line-height: 1.8;
  max-width: 860px;
  margin: 0 auto;
}
.disclaimer-bar strong { color: var(--gold); }

/* =============================================
   FOOTER
   ============================================= */
#site-footer {
  background: var(--text-dark);
  padding: 2.5rem 3rem;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem;
  color: var(--cream);
  letter-spacing: 0.04em;
}
.footer-logo span { color: var(--gold); }
.footer-copy {
  font-size: 0.75rem;
  color: var(--text-light);
  margin: 0;
}
.footer-nav { display: flex; gap: 1.5rem; }
.footer-nav a {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-light);
  transition: color 0.3s;
}
.footer-nav a:hover { color: var(--gold); }

/* =============================================
   ANIMATIONS
   ============================================= */
@keyframes fadeLeft {
  from { opacity: 0; transform: translateX(-40px); }
  to { opacity: 1; transform: none; }
}
@keyframes fadeRight {
  from { opacity: 0; transform: translateX(40px); }
  to { opacity: 1; transform: none; }
}
@keyframes morph {
  0%, 100% { border-radius: 60% 40% 55% 45% / 50% 60% 40% 50%; }
  50% { border-radius: 40% 60% 45% 55% / 60% 40% 55% 45%; }
}
@keyframes spin-slow { to { transform: rotate(360deg); } }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* =============================================
   WORDPRESS CORE OVERRIDES
   ============================================= */
.wp-block-image img { height: auto; }
.alignnone { margin: 0; }
.aligncenter { display: block; margin: 1.5rem auto; }
.alignright { float: right; margin: 0 0 1rem 1.5rem; }
.alignleft { float: left; margin: 0 1.5rem 1rem 0; }

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1024px) {
  #hero { grid-template-columns: 1fr; }
  .hero-left { padding: 4rem 3rem; }
  .hero-right { height: 60vw; }
  #about { grid-template-columns: 1fr; gap: 3rem; padding: 4rem 3rem; }
  .about-text-col { padding: 0; }
  .services-grid { grid-template-columns: 1fr 1fr; }
  .recipes-grid { grid-template-columns: 1fr 1fr; }
  #contact { grid-template-columns: 1fr; gap: 3rem; padding: 4rem 3rem; }
  #services, #recipes { padding: 5rem 3rem; }
  .section-header { flex-direction: column; align-items: flex-start; gap: 1.5rem; }
}

@media (max-width: 680px) {
  .nav-inner { padding: 1rem 1.5rem; }
  .main-nav, .nav-cta { display: none; }
  .menu-toggle { display: flex; }
  .main-nav.open {
    display: flex;
    position: fixed;
    top: 64px; left: 0; right: 0;
    background: var(--cream);
    border-bottom: 1px solid var(--gold-light);
    padding: 1.5rem;
  }
  .main-nav.open ul { flex-direction: column; gap: 1rem; }
  .services-grid { grid-template-columns: 1fr; }
  .recipes-grid { grid-template-columns: 1fr; }
  #services, #recipes, #testimonial, #contact { padding: 4rem 1.5rem; }
  #about { padding: 4rem 1.5rem; }
  .footer-inner { flex-direction: column; text-align: center; }
  .disclaimer-bar { padding: 1rem 1.5rem; }
}
