/*
Theme Name: Lamia Coaching
Theme URI: https://coach.lamiaelloumi.com
Author: Lamia Elloumi
Author URI: https://coach.lamiaelloumi.com
Description: A bold, editorial coaching theme built with Fraunces + Space Grotesk. Designed for Lamia's Coaching — Non Diet Coach.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: lamia-coaching
Tags: coaching, wellness, one-column, two-columns, custom-colors, custom-logo, featured-images, blog
*/

/* ============================================================
   DESIGN TOKENS — Edit these to adjust your entire brand
   ============================================================ */
:root {

  /* --- Brand Colors --- */
  --color-steel:      #5B9AAE;   /* Primary blue — nav, links, accents */
  --color-sky:        #9DC4CE;   /* Lighter blue — hover states, borders */
  --color-cream:      #F0EDE7;   /* Warm cream — section backgrounds */
  --color-blush:      #F4A8B6;   /* Soft pink — decorative accents */
  --color-rose:       #B35A6A;   /* Dusty rose — CTAs, highlights */
  --color-rose-dark:  #8a3f4e;   /* Darker rose — hover state for CTAs */

  /* --- Neutral Colors --- */
  --color-ink:        #2C3038;   /* Headings and dark text */
  --color-muted:      #7A8490;   /* Body text, secondary content */
  --color-border:     rgba(44, 48, 56, 0.1);
  --color-offwhite:   #FAFAF8;   /* Page background */
  --color-white:      #FFFFFF;

  /* --- Typography --- */
  --font-display:     'Fraunces', Georgia, serif;
  --font-body:        'Space Grotesk', Helvetica, sans-serif;

  --size-xs:   11px;
  --size-sm:   13px;
  --size-base: 15px;
  --size-md:   18px;
  --size-lg:   24px;
  --size-xl:   32px;
  --size-2xl:  44px;
  --size-3xl:  56px;
  --size-4xl:  72px;

  /* --- Spacing --- */
  --space-xs:  8px;
  --space-sm:  16px;
  --space-md:  24px;
  --space-lg:  40px;
  --space-xl:  64px;
  --space-2xl: 96px;

  /* --- Layout --- */
  --max-width:        1160px;
  --content-width:    720px;
  --radius-sm:        8px;
  --radius-md:        12px;
  --radius-lg:        20px;
  --radius-pill:      40px;

  /* --- Transitions --- */
  --ease:      cubic-bezier(0.4, 0, 0.2, 1);
  --duration:  220ms;
}

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

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

body {
  font-family: var(--font-body);
  font-size: var(--size-base);
  color: var(--color-ink);
  background: var(--color-offwhite);
  line-height: 1.75;
}

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

a {
  color: var(--color-steel);
  text-decoration: none;
  transition: color var(--duration) var(--ease);
}

a:hover { color: var(--color-rose); }

ul, ol { list-style: none; }

/* ============================================================
   TYPOGRAPHY
   ============================================================ */

/* Display headings use Fraunces italic */
h1, h2, h3, .display {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  color: var(--color-ink);
  line-height: 1.1;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(36px, 5vw, var(--size-3xl)); margin-bottom: var(--space-md); }
h2 { font-size: clamp(28px, 4vw, var(--size-2xl)); margin-bottom: var(--space-sm); }
h3 { font-size: clamp(22px, 3vw, var(--size-xl)); margin-bottom: var(--space-sm); }
h4 { font-family: var(--font-body); font-size: var(--size-md); font-weight: 500; font-style: normal; margin-bottom: var(--space-xs); }
h5, h6 { font-family: var(--font-body); font-weight: 600; font-style: normal; font-size: var(--size-base); }

p { margin-bottom: var(--space-sm); color: var(--color-muted); line-height: 1.8; }
p:last-child { margin-bottom: 0; }

.eyebrow {
  font-family: var(--font-body);
  font-size: var(--size-xs);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-steel);
  display: block;
  margin-bottom: var(--space-sm);
}

blockquote {
  border-left: 3px solid var(--color-blush);
  padding: var(--space-sm) var(--space-md);
  margin: var(--space-md) 0;
}

blockquote p {
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--size-lg);
  font-weight: 300;
  color: var(--color-ink);
  line-height: 1.5;
}

/* ============================================================
   LAYOUT UTILITIES
   ============================================================ */
.container {
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--space-lg);
}

.container--narrow {
  max-width: var(--content-width);
  margin-inline: auto;
  padding-inline: var(--space-lg);
}

.section {
  padding-block: var(--space-2xl);
}

.section--cream { background: var(--color-cream); }
.section--offwhite { background: var(--color-offwhite); }
.section--ink { background: var(--color-ink); }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-xl); align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-md); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-md); }

.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.gap-sm { gap: var(--space-sm); }
.gap-md { gap: var(--space-md); }
.gap-lg { gap: var(--space-lg); }

.text-center { text-align: center; }
.text-muted { color: var(--color-muted); }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  font-family: var(--font-body);
  font-size: var(--size-sm);
  font-weight: 500;
  letter-spacing: 0.03em;
  padding: 13px 26px;
  border-radius: var(--radius-pill);
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: all var(--duration) var(--ease);
  white-space: nowrap;
}

.btn-primary {
  background: var(--color-rose);
  color: var(--color-white);
  border-color: var(--color-rose);
}
.btn-primary:hover {
  background: var(--color-rose-dark);
  border-color: var(--color-rose-dark);
  color: var(--color-white);
}

.btn-secondary {
  background: transparent;
  color: var(--color-rose);
  border-color: var(--color-rose);
}
.btn-secondary:hover {
  background: var(--color-rose);
  color: var(--color-white);
}

.btn-outline {
  background: transparent;
  color: var(--color-steel);
  border-color: var(--color-sky);
}
.btn-outline:hover {
  background: var(--color-steel);
  color: var(--color-white);
  border-color: var(--color-steel);
}

.btn-light {
  background: var(--color-offwhite);
  color: var(--color-ink);
  border-color: transparent;
}
.btn-light:hover {
  background: var(--color-white);
  color: var(--color-rose);
}

.btn-lg { padding: 16px 36px; font-size: var(--size-base); }
.btn-sm { padding: 9px 18px; font-size: var(--size-xs); }

/* ============================================================
   CARDS
   ============================================================ */
.card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  padding: var(--space-lg);
  transition: transform var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(44, 48, 56, 0.08);
}

.card--featured {
  background: var(--color-rose);
  border-color: transparent;
  color: var(--color-white);
}

.card--featured h3,
.card--featured p { color: rgba(255,255,255,0.9); }

.card--cream { background: var(--color-cream); border-color: transparent; }

.card-tag {
  font-size: var(--size-xs);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-rose);
  margin-bottom: var(--space-sm);
}

.card--featured .card-tag { color: rgba(255,255,255,0.65); }

/* ============================================================
   SITE HEADER / NAVIGATION
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-offwhite);
  border-bottom: 1px solid var(--color-border);
  backdrop-filter: blur(8px);
}

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

.site-logo {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 20px;
  font-weight: 300;
  color: var(--color-ink);
  text-decoration: none;
  letter-spacing: -0.01em;
}

.site-logo span { color: var(--color-rose); }

.site-logo:hover { color: var(--color-ink); }

/* Primary nav */
.primary-nav ul {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  list-style: none;
}

.primary-nav a {
  font-size: var(--size-sm);
  font-weight: 500;
  color: var(--color-muted);
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: color var(--duration) var(--ease);
}

.primary-nav a:hover,
.primary-nav .current-menu-item a {
  color: var(--color-ink);
}

/* Dropdown */
.primary-nav .menu-item-has-children {
  position: relative;
}

.primary-nav .sub-menu {
  display: none;
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  min-width: 200px;
  padding: var(--space-xs) 0;
  box-shadow: 0 8px 32px rgba(44, 48, 56, 0.1);
}

.primary-nav .menu-item-has-children:hover .sub-menu { display: block; }

.primary-nav .sub-menu li a {
  display: block;
  padding: 10px var(--space-md);
  font-size: var(--size-sm);
  color: var(--color-muted);
  white-space: nowrap;
}

.primary-nav .sub-menu li a:hover {
  color: var(--color-rose);
  background: var(--color-cream);
}

/* Mobile hamburger */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-xs);
  flex-direction: column;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-ink);
  border-radius: 2px;
  transition: all var(--duration) var(--ease);
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 600px;
  background: var(--color-cream);
  overflow: hidden;
}

.hero__text {
  padding: var(--space-2xl) var(--space-xl);
  display: flex;
  flex-direction: column;
  justify-content: center;
  animation: fadeUp 0.7s var(--ease) both;
}

.hero__text h1 {
  font-size: clamp(40px, 5vw, 60px);
  margin-bottom: var(--space-md);
}

.hero__text h1 em {
  font-style: normal;
  color: var(--color-rose);
}

.hero__text p {
  font-size: var(--size-md);
  color: var(--color-muted);
  line-height: 1.75;
  max-width: 420px;
  margin-bottom: var(--space-lg);
}

.hero__actions {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.hero__image {
  position: relative;
  overflow: hidden;
  background: var(--color-steel);
}

.hero__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.hero__badge {
  position: absolute;
  bottom: var(--space-md);
  left: var(--space-md);
  background: var(--color-offwhite);
  border-radius: var(--radius-pill);
  padding: 10px 18px;
  font-size: var(--size-xs);
  font-weight: 500;
  color: var(--color-ink);
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.hero__badge::before {
  content: '';
  display: block;
  width: 8px;
  height: 8px;
  background: var(--color-rose);
  border-radius: 50%;
}

/* ============================================================
   TRUST BAR
   ============================================================ */
.trust-bar {
  background: var(--color-offwhite);
  border-bottom: 1px solid var(--color-border);
  padding: var(--space-md) 0;
}

.trust-bar__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xl);
  flex-wrap: wrap;
}

.trust-bar__item {
  font-size: var(--size-xs);
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--color-muted);
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.trust-bar__item::before {
  content: '';
  display: block;
  width: 4px;
  height: 4px;
  background: var(--color-blush);
  border-radius: 50%;
}

/* ============================================================
   ABOUT / INTRO SECTION
   ============================================================ */
.about__image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/5;
  background: var(--color-cream);
}

.about__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

/* ============================================================
   SERVICES / PROGRAM CARDS
   ============================================================ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
  margin-top: var(--space-xl);
}

/* ============================================================
   QUIZ / CTA BANNER
   ============================================================ */
.cta-banner {
  background: var(--color-steel);
  border-radius: var(--radius-lg);
  padding: var(--space-xl) var(--space-2xl);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-xl);
  flex-wrap: wrap;
}

.cta-banner h2 {
  font-size: clamp(24px, 3vw, 34px);
  color: var(--color-white);
  margin-bottom: var(--space-xs);
}

.cta-banner p {
  color: rgba(255,255,255,0.75);
  font-size: var(--size-base);
  margin: 0;
  max-width: 440px;
}

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testimonial {
  background: var(--color-cream);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
}

.testimonial__text {
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--size-lg);
  font-weight: 300;
  color: var(--color-ink);
  line-height: 1.5;
  margin-bottom: var(--space-md);
}

.testimonial__author {
  font-size: var(--size-sm);
  font-weight: 500;
  color: var(--color-muted);
}

/* ============================================================
   BLOG / POSTS
   ============================================================ */
.blog-card {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--color-border);
  background: var(--color-white);
  transition: transform var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(44,48,56,0.08);
}

.blog-card__image {
  aspect-ratio: 3/2;
  overflow: hidden;
  background: var(--color-cream);
}

.blog-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s var(--ease);
}

.blog-card:hover .blog-card__image img { transform: scale(1.04); }

.blog-card__body { padding: var(--space-md); }

.blog-card__cat {
  font-size: var(--size-xs);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-steel);
  margin-bottom: var(--space-xs);
}

.blog-card h3 {
  font-size: 19px;
  margin-bottom: var(--space-xs);
  line-height: 1.3;
}

.blog-card p {
  font-size: var(--size-sm);
  color: var(--color-muted);
  line-height: 1.65;
}

/* Single post */
.entry-content {
  max-width: var(--content-width);
  margin-inline: auto;
  padding: var(--space-2xl) var(--space-lg);
}

.entry-content h2,
.entry-content h3 { margin-top: var(--space-xl); }

.entry-content ul,
.entry-content ol {
  list-style: disc;
  padding-left: var(--space-md);
  margin-bottom: var(--space-sm);
  color: var(--color-muted);
}

.entry-content li { margin-bottom: var(--space-xs); }

/* ============================================================
   FORMS / NEWSLETTER
   ============================================================ */
.form-row {
  display: flex;
  gap: var(--space-xs);
  flex-wrap: wrap;
}

input[type="text"],
input[type="email"],
input[type="tel"],
textarea,
select {
  font-family: var(--font-body);
  font-size: var(--size-base);
  color: var(--color-ink);
  background: var(--color-white);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 13px 16px;
  width: 100%;
  transition: border-color var(--duration) var(--ease);
  outline: none;
}

input[type="email"]:focus,
input[type="text"]:focus,
textarea:focus,
select:focus {
  border-color: var(--color-steel);
  box-shadow: 0 0 0 3px rgba(91, 154, 174, 0.15);
}

textarea { min-height: 140px; resize: vertical; }

label {
  font-size: var(--size-sm);
  font-weight: 500;
  color: var(--color-ink);
  display: block;
  margin-bottom: 6px;
}

.form-group { margin-bottom: var(--space-md); }

/* ============================================================
   SITE FOOTER
   ============================================================ */
.site-footer {
  background: var(--color-ink);
  color: rgba(255,255,255,0.6);
  padding: var(--space-2xl) 0 var(--space-lg);
}

.site-footer__top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: var(--space-xl);
  padding-bottom: var(--space-xl);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: var(--space-lg);
}

.footer-logo {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 22px;
  font-weight: 300;
  color: var(--color-white);
  display: block;
  margin-bottom: var(--space-sm);
}

.footer-tagline {
  font-size: var(--size-sm);
  color: rgba(255,255,255,0.5);
  line-height: 1.6;
  margin: 0;
}

.footer-col h4 {
  font-size: var(--size-xs);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  margin-bottom: var(--space-sm);
}

.footer-col ul { list-style: none; }

.footer-col ul li { margin-bottom: var(--space-xs); }

.footer-col ul li a {
  font-size: var(--size-sm);
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  transition: color var(--duration) var(--ease);
}

.footer-col ul li a:hover { color: var(--color-white); }

.site-footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: var(--size-xs);
  color: rgba(255,255,255,0.3);
  flex-wrap: wrap;
  gap: var(--space-sm);
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.animate-fade-up {
  animation: fadeUp 0.6s var(--ease) both;
}

.animate-fade-up--delay-1 { animation-delay: 0.1s; }
.animate-fade-up--delay-2 { animation-delay: 0.2s; }
.animate-fade-up--delay-3 { animation-delay: 0.3s; }

/* ============================================================
   RESPONSIVE — TABLET (< 900px)
   ============================================================ */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .hero__image { min-height: 360px; }
  .grid-2 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .services-grid { grid-template-columns: 1fr 1fr; }
  .site-footer__top { grid-template-columns: 1fr 1fr; }
  .cta-banner { text-align: center; flex-direction: column; }
}

/* ============================================================
   RESPONSIVE — MOBILE (< 600px)
   ============================================================ */
@media (max-width: 600px) {
  :root {
    --space-2xl: 64px;
    --space-xl:  40px;
  }

  .container { padding-inline: var(--space-md); }

  .primary-nav,
  .header-cta { display: none; }

  .nav-toggle { display: flex; }

  .primary-nav.is-open {
    display: block;
    position: fixed;
    top: 68px;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--color-offwhite);
    padding: var(--space-lg);
    overflow-y: auto;
  }

  .primary-nav.is-open ul {
    flex-direction: column;
    gap: var(--space-sm);
  }

  .primary-nav.is-open a {
    font-size: var(--size-md);
    color: var(--color-ink);
  }

  .grid-3 { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .site-footer__top { grid-template-columns: 1fr; }
  .trust-bar__inner { gap: var(--space-md); justify-content: flex-start; }
  .hero__text { padding: var(--space-xl) var(--space-md); }
  .cta-banner { padding: var(--space-lg); }
}

/* ============================================================
   WORDPRESS CORE CLASSES
   ============================================================ */
.alignleft  { float: left; margin-right: var(--space-md); }
.alignright { float: right; margin-left: var(--space-md); }
.aligncenter { display: block; margin-inline: auto; }
.alignwide  { max-width: 1000px; margin-inline: auto; }
.alignfull  { width: 100vw; position: relative; left: 50%; right: 50%; margin-left: -50vw; margin-right: -50vw; }

.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: var(--size-sm); color: var(--color-muted); margin-top: 6px; font-style: italic; }

.sticky { border-left: 3px solid var(--color-rose); padding-left: var(--space-sm); }

.screen-reader-text {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
}

/* ============================================================
   UTILITY CLASSES
   ============================================================ */
.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }
.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }
.color-rose   { color: var(--color-rose); }
.color-steel  { color: var(--color-steel); }
.color-muted  { color: var(--color-muted); }
.bg-cream     { background: var(--color-cream); }
.bg-offwhite  { background: var(--color-offwhite); }
