/*
Theme Name: Esto Quod Es
Theme URI: https://estoquodes.co.za
Author: Esto Quod Es
Author URI: https://estoquodes.co.za
Description: A refined one-page WordPress theme for Esto Quod Es — Executive Coach, Strategy Facilitator and Impact Speaker. Features plum and gold branding with Playfair Display and Inter typography.
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: esto-quod-es
Tags: one-page, coaching, business, custom-colors, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready
*/

/* ---------- Design Tokens ---------- */
:root {
  --plum: #5B2A4A;
  --plum-dark: #3E1B33;
  --gold: #C9A96A;
  --gold-light: #E0C89A;
  --charcoal: #24272E;
  --charcoal-fg: #F5F2EC;
  --bg: #FFFFFF;
  --fg: #1F1B24;
  --muted: #6B6470;
  --secondary: #F7F3EE;
  --border: #E8E2DA;

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --container: 1200px;
  --radius: 10px;
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--fg);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--plum); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--gold); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 .6em;
  color: var(--fg);
}
h1 { font-size: clamp(2.2rem, 5vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.75rem); }
h3 { font-size: 1.5rem; }
p  { margin: 0 0 1em; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.eyebrow {
  color: var(--gold);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .15em;
  font-size: .8rem;
  margin-bottom: .75rem;
}

.btn {
  display: inline-block;
  padding: .9rem 1.75rem;
  background: var(--gold);
  color: var(--charcoal);
  font-weight: 600;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  transition: opacity .2s ease, transform .2s ease;
}
.btn:hover { opacity: .9; color: var(--charcoal); }
.btn-outline {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,.6);
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: transparent;
  transition: background .3s ease, box-shadow .3s ease;
}
.site-header.scrolled {
  background: rgba(91, 42, 74, .85);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 12px rgba(0,0,0,.08);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}
.site-branding { display: flex; align-items: center; gap: .75rem; }
.site-branding img { height: 56px; width: auto; }
.site-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: #fff;
}

.main-nav ul {
  display: flex;
  gap: 2rem;
  list-style: none;
  margin: 0; padding: 0;
}
.main-nav a {
  color: rgba(255,255,255,.85);
  font-size: .9rem;
  font-weight: 500;
}
.main-nav a:hover, .main-nav .current-menu-item a { color: var(--gold); }

.menu-toggle {
  display: none;
  background: none; border: none;
  color: #fff; font-size: 1.5rem; cursor: pointer;
}

@media (max-width: 900px) {
  .menu-toggle { display: block; }
  .main-nav {
    display: none;
    position: absolute;
    top: 80px; left: 0; right: 0;
    background: #fff;
    border-top: 1px solid var(--border);
  }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; gap: 0; padding: 1rem 1.5rem; }
  .main-nav a { color: var(--fg); display: block; padding: .75rem 0; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero-bg::after {
  content: '';
  position: absolute; inset: 0;
  background: rgba(91, 42, 74, .45);
}
.hero-content { position: relative; z-index: 1; max-width: 900px; padding: 6rem 1.5rem 2rem; }
.hero-content h1 { color: #fff; }
.hero-content h1 em { color: var(--gold); font-style: italic; }
.hero-content p.lead {
  font-size: 1.15rem;
  color: rgba(255,255,255,.85);
  max-width: 600px;
  margin: 1.5rem auto 0;
}

/* ---------- Sections ---------- */
.section { padding: 6rem 0; }
.section.bg-secondary { background: var(--secondary); }
.section.bg-plum { background: var(--plum); color: #fff; }
.section.bg-plum h2 { color: #fff; }
.section-head { text-align: center; max-width: 700px; margin: 0 auto 3rem; }

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 3rem;
  align-items: center;
}
@media (max-width: 800px) { .about-grid { grid-template-columns: 1fr; } }

/* Services */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}
.service-card {
  background: #fff;
  padding: 2rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color .2s, transform .2s;
}
.service-card:hover { border-color: var(--gold); transform: translateY(-2px); }
.service-card h3 { font-size: 1.25rem; }

/* Testimonials */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}
.testimonial-card {
  background: rgba(255,255,255,.08);
  padding: 2rem;
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,.1);
}
.testimonial-card .quote-mark { color: var(--gold); font-size: 2rem; line-height: 1; }
.testimonial-card cite { display: block; font-style: normal; margin-top: 1rem; }
.testimonial-card cite strong { display: block; }
.testimonial-card cite span { color: rgba(255,255,255,.65); font-size: .85rem; }

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
}
@media (max-width: 800px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-item {
  display: flex; align-items: center; gap: 1rem;
  padding: 1.25rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 1rem;
}
.contact-item .icon {
  width: 44px; height: 44px;
  background: rgba(91,42,74,.1);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: var(--plum);
  font-weight: bold;
}
.contact-cta {
  background: var(--plum);
  color: #fff;
  padding: 2.5rem;
  border-radius: var(--radius);
}
.contact-cta h3 { color: #fff; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--charcoal);
  color: var(--charcoal-fg);
  padding: 3.5rem 0 1.5rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2.5rem;
  margin-bottom: 2rem;
}
.site-footer img { height: 56px; width: auto; margin-bottom: 1rem; }
.site-footer h4 {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 1rem;
}
.site-footer a { color: rgba(245,242,236,.8); }
.site-footer a:hover { color: var(--gold); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer ul li { margin-bottom: .6rem; font-size: .9rem; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12);
  padding-top: 1.25rem;
  text-align: center;
  font-size: .8rem;
  color: rgba(245,242,236,.5);
}

/* ---------- Animations ---------- */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-in { animation: fadeInUp .8s ease-out both; }
