/*
Theme Name: WonderWithWeb
Theme URI: https://wonderwithweb.com
Author: Web Tangoan
Author URI: https://wonderwithweb.com
Description: Purpose coaching theme for the single woman in midlife. Feminine minimalist design with terracotta and cream palette.
Version: 1.0
Requires at least: 6.0
Tested up to: 6.7
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: wonderwithweb
Tags: blog, portfolio, e-commerce, custom-colors, custom-logo, featured-images, full-width-template, theme-options
*/

/* =====================================================
   HOW TO EDIT COLOURS — change these values only
   ===================================================== */
:root {
  --rose:    #C4826A;   /* main terracotta — buttons, accents */
  --rose-dk: #8A4A35;   /* darker terracotta — hover states  */
  --rose-lt: #D4A08C;   /* lighter terracotta — subtle tones */
  --blush:   #F5EDE8;   /* very light blush — section backgrounds */
  --blush2:  #EDD8CE;   /* medium blush — cards, borders */
  --cream:   #FDFAF7;   /* main page background */
  --warm:    #F7F1EB;   /* warm off-white — alternate sections */
  --ink:     #2A1F1A;   /* near-black — headings */
  --mid:     #7A6458;   /* mid-brown — body text */
  --muted:   #B8A89E;   /* muted brown — captions, meta */
  --border:  #EAE0D8;   /* light border colour */
  --white:   #FFFFFF;
}

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

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

body {
  font-family: 'DM Sans', system-ui, -apple-system, sans-serif;
  background: var(--cream);
  color: var(--mid);
  font-size: 16px;
  line-height: 1.75;
  font-weight: 300;
}

img { max-width: 100%; display: block; height: auto; }
a  { color: inherit; text-decoration: none; }

/* =====================================================
   TYPOGRAPHY
   ===================================================== */
h1, h2, h3, h4, h5, h6,
.entry-title, .page-title, .widget-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  color: var(--ink);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(38px, 5.5vw, 72px); }
h2 { font-size: clamp(28px, 4vw, 52px); }
h3 { font-size: clamp(22px, 3vw, 32px); }
h4 { font-size: 20px; }
h5 { font-size: 17px; }
h6 { font-size: 15px; }

p { margin-bottom: 1.2em; font-weight: 300; }
p:last-child { margin-bottom: 0; }

em { font-style: italic; color: var(--rose); }
strong { font-weight: 500; color: var(--ink); }

/* =====================================================
   GOOGLE FONTS — loaded in functions.php
   Cormorant Garamond (headings) + DM Sans (body)
   ===================================================== */

/* =====================================================
   SITE STRUCTURE
   ===================================================== */
.site { display: flex; flex-direction: column; min-height: 100vh; }
.site-content { flex: 1; }
.container { max-width: 1140px; margin: 0 auto; padding: 0 40px; }
.container-sm { max-width: 720px; margin: 0 auto; padding: 0 40px; }

/* =====================================================
   HEADER & NAVIGATION
   ===================================================== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(253,250,247,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.3s ease;
}

.site-header.scrolled {
  box-shadow: 0 2px 20px rgba(42,31,26,0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 24px;
}

/* Site Title / Logo */
.site-branding .site-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 20px;
  font-weight: 300;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--ink);
  line-height: 1;
}

.site-branding .site-title a {
  color: var(--ink);
}

.site-branding .site-title a:hover {
  color: var(--rose);
}

.site-branding .site-description {
  display: none; /* hidden — tagline shown in hero instead */
}

.logo-container {
  display: flex;         /* Activates flexbox layout */
  align-items: center;   /* Perfectly centers logo and text vertically */
  gap: 12px;             /* Creates clean horizontal spacing between them */
}

/* Custom Logo */
.custom-logo-link img {
  height: 40px;
  width: auto;
}

/* Navigation */
.main-navigation {
  display: flex;
  align-items: center;
}

.main-navigation ul {
  display: flex;
  list-style: none;
  align-items: center;
  gap: 32px;
  margin: 0;
  padding: 0;
}

.main-navigation ul li a {
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--mid);
  font-weight: 400;
  transition: color 0.2s;
}

.main-navigation ul li a:hover,
.main-navigation ul li.current-menu-item > a {
  color: var(--rose);
}

/* Free Journal nav button — add CSS class "menu-free-journal" to nav item */
.main-navigation ul li.menu-free-journal > a {
  background: var(--rose);
  color: var(--white);
  padding: 9px 20px;
  border-radius: 2px;
  font-size: 10px;
  letter-spacing: 2px;
  transition: background 0.2s;
}

.main-navigation ul li.menu-free-journal > a:hover {
  background: var(--rose-dk);
  color: var(--white);
}

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  flex-direction: column;
  gap: 5px;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--ink);
  transition: all 0.3s;
}

/* =====================================================
   BUTTONS
   ===================================================== */
.btn,
.wp-block-button__link,
.woocommerce button.button,
.woocommerce a.button,
.woocommerce input.button,
.woocommerce #respond input#submit {
  display: inline-block;
  padding: 14px 32px;
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 400;
  border-radius: 2px;
  transition: all 0.2s ease;
  cursor: pointer;
  border: none;
  text-align: center;
}

.btn-rose,
.wp-block-button__link,
.woocommerce button.button,
.woocommerce a.button,
.woocommerce input.button,
.woocommerce #respond input#submit {
  background: var(--rose);
  color: var(--white);
}

.btn-rose:hover,
.wp-block-button__link:hover,
.woocommerce button.button:hover,
.woocommerce a.button:hover {
  background: var(--rose-dk);
  color: var(--white);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--rose);
  border: 1px solid var(--rose);
}

.btn-outline:hover {
  background: var(--rose);
  color: var(--white);
}

.btn-dark {
  background: var(--ink);
  color: var(--white);
}

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

/* =====================================================
   WOOCOMMERCE OVERRIDES
   ===================================================== */
.woocommerce .price,
.woocommerce .price .amount,
.woocommerce span.amount {
  font-family: 'Cormorant Garamond', serif;
  font-size: 38px;
  color: var(--rose);
  font-weight: 300;
}

.woocommerce-cart .wc-proceed-to-checkout a.checkout-button {
  background: var(--rose);
  border-radius: 2px;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.woocommerce-cart .wc-proceed-to-checkout a.checkout-button:hover {
  background: var(--rose-dk);
}

/* =====================================================
   FORMS & INPUTS
   ===================================================== */
input[type="text"],
input[type="email"],
input[type="search"],
input[type="url"],
textarea,
select {
  border: 1px solid var(--border);
  border-radius: 2px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  color: var(--ink);
  background: var(--white);
  font-weight: 300;
  padding: 12px 16px;
  width: 100%;
  transition: border-color 0.2s;
  outline: none;
}

input[type="email"]:focus,
input[type="text"]:focus,
textarea:focus {
  border-color: var(--rose);
}

/* =====================================================
   POSTS — BLOG LISTING
   ===================================================== */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}

.post-card {
  background: var(--white);
  border-radius: 2px;
  overflow: hidden;
  transition: transform 0.2s;
  display: block;
}

.post-card:hover {
  transform: translateY(-4px);
}

.post-card-img {
  height: 220px;
  background: linear-gradient(135deg, var(--blush), var(--blush2));
  overflow: hidden;
}

.post-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.post-card-body {
  padding: 24px;
}

.post-card-cat {
  font-size: 9.5px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--rose);
  display: block;
  margin-bottom: 10px;
}

.post-card-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 20px;
  color: var(--ink);
  margin-bottom: 10px;
  line-height: 1.3;
}

.post-card-excerpt {
  font-size: 13px;
  color: var(--mid);
  line-height: 1.7;
  margin-bottom: 16px;
}

.post-card-read {
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--rose);
}

/* =====================================================
   SINGLE POST
   ===================================================== */
.entry-header {
  text-align: center;
  padding: 100px 40px 60px;
  background: var(--warm);
}

.entry-meta {
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
}

.entry-content {
  max-width: 720px;
  margin: 0 auto;
  padding: 60px 40px;
  font-size: 17px;
  line-height: 1.85;
  color: var(--mid);
}

.entry-content h2,
.entry-content h3 {
  margin: 40px 0 16px;
}

.entry-content p { margin-bottom: 1.4em; }

.entry-content blockquote {
  border-left: 3px solid var(--rose);
  padding: 16px 24px;
  margin: 32px 0;
  background: var(--warm);
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  font-style: italic;
  color: var(--ink);
}

/* =====================================================
   CATEGORY LABELS
   ===================================================== */
.cat-links a,
.entry-meta a {
  font-size: 9.5px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--rose);
}

/* =====================================================
   SIDEBAR WIDGETS
   ===================================================== */
.widget-area {
  padding: 40px;
}

.widget {
  margin-bottom: 40px;
}

.widget-title {
  font-family: 'DM Sans', sans-serif;
  font-size: 10px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
  font-weight: 500;
}

/* =====================================================
   FOOTER
   ===================================================== */
.site-footer {
  background: var(--ink);
  color: var(--muted);
  padding: 80px 0 40px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 60px;
}

.footer-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 20px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--white);
  display: block;
  margin-bottom: 16px;
  font-weight: 300;
}

.footer-brand p {
  font-size: 13px;
  color: rgba(255,255,255,0.35);
  line-height: 1.75;
  max-width: 260px;
  margin-bottom: 24px;
}

.footer-col h4 {
  font-family: 'DM Sans', sans-serif;
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: 20px;
  font-weight: 500;
}

.footer-col a {
  display: block;
  font-size: 13.5px;
  color: rgba(255,255,255,0.35);
  padding: 6px 0;
  transition: color 0.2s;
}

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

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 32px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-bottom p {
  font-size: 12px;
  color: rgba(255,255,255,0.2);
  letter-spacing: 0.5px;
  margin: 0;
}

/* =====================================================
   HERO SECTION (used on front page template)
   ===================================================== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--warm);
  padding: 120px 40px 80px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  right: -10%; top: 5%;
  width: 55%; aspect-ratio: 1;
  background: radial-gradient(ellipse, rgba(196,130,106,0.12), transparent 70%);
  pointer-events: none;
}

.hero-inner {
  max-width: 1140px;
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.hero-kicker {
  font-size: 11px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--rose);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero-kicker::before {
  content: '';
  width: 32px;
  height: 1px;
  background: var(--rose);
}

.hero h1 { margin-bottom: 24px; }

.hero-sub {
  font-size: 18px;
  color: var(--mid);
  line-height: 1.7;
  margin-bottom: 40px;
  font-weight: 300;
  max-width: 480px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}

.hero-note {
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 1px;
  margin-top: 8px;
}

/* =====================================================
   SECTIONS — generic layout blocks
   ===================================================== */
section { padding: 100px 40px; }

.section-eyebrow {
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--rose);
  display: block;
  margin-bottom: 14px;
}

.section-head { text-align: center; margin-bottom: 64px; }
.section-head h2 { margin-bottom: 16px; }
.section-head p { color: var(--mid); max-width: 520px; margin: 0 auto; }

/* Two-column grid */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

/* Three-column grid */
.three-col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* =====================================================
   PILLAR CARDS
   ===================================================== */
.pillar {
  background: var(--white);
  padding: 48px 36px;
  transition: background 0.3s;
}

.pillar:hover { background: var(--warm); }

.pillar.featured { background: var(--ink); }
.pillar.featured h3 { color: var(--white); }
.pillar.featured p { color: var(--muted); }
.pillar.featured:hover { background: var(--ink); }

.pillar-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 52px;
  color: var(--blush2);
  line-height: 1;
  margin-bottom: 24px;
  display: block;
}

.pillar-price {
  font-family: 'Cormorant Garamond', serif;
  font-size: 36px;
  color: var(--rose);
  display: block;
  margin-bottom: 20px;
  line-height: 1;
}

.pillar-price span {
  font-size: 14px;
  color: var(--muted);
  font-family: 'DM Sans', sans-serif;
  font-weight: 300;
}

.pillar.featured .pillar-price { color: var(--rose-lt); }

/* =====================================================
   TESTIMONIALS
   ===================================================== */
.testimonial {
  background: var(--white);
  padding: 32px 28px;
  border-radius: 2px;
  position: relative;
}

.testimonial::before {
  content: '\201C';
  font-family: 'Cormorant Garamond', serif;
  font-size: 80px;
  color: var(--blush2);
  position: absolute;
  top: 8px; right: 20px;
  line-height: 1;
  pointer-events: none;
}

.testimonial-text {
  font-family: 'Cormorant Garamond', serif;
  font-size: 17px;
  font-style: italic;
  color: var(--ink);
  line-height: 1.55;
  margin-bottom: 24px;
}

.testimonial-name {
  font-size: 12px;
  color: var(--mid);
  letter-spacing: 1px;
  text-transform: uppercase;
  font-weight: 500;
}

.testimonial-role { font-size: 11px; color: var(--muted); }
.stars { color: var(--rose); font-size: 14px; margin-bottom: 12px; letter-spacing: 2px; }

/* =====================================================
   DARK EMAIL CAPTURE SECTION
   ===================================================== */
.capture-section {
  background: var(--ink);
  text-align: center;
}

.capture-section h2 { color: var(--white); margin-bottom: 16px; }
.capture-section p { color: var(--muted); margin-bottom: 40px; }

.capture-form {
  display: flex;
  max-width: 440px;
  margin: 0 auto;
}

.capture-form input[type="email"] {
  flex: 1;
  border: 1px solid rgba(255,255,255,0.12);
  border-right: none;
  background: rgba(255,255,255,0.06);
  color: var(--white);
  border-radius: 2px 0 0 2px;
  width: auto;
}

.capture-form input[type="email"]::placeholder {
  color: rgba(255,255,255,0.3);
}

.capture-form input[type="email"]:focus {
  border-color: var(--rose);
}

.capture-form button {
  padding: 14px 24px;
  background: var(--rose);
  color: var(--white);
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  border-radius: 0 2px 2px 0;
  flex-shrink: 0;
  font-family: 'DM Sans', sans-serif;
  cursor: pointer;
  border: none;
}

.capture-form button:hover { background: var(--rose-dk); }

.capture-note {
  font-size: 11px;
  color: rgba(255,255,255,0.3);
  margin-top: 16px;
  letter-spacing: 0.5px;
}

/* =====================================================
   PAGINATION
   ===================================================== */
.pagination {
  text-align: center;
  padding: 40px 0;
}

.page-numbers {
  display: inline-flex;
  gap: 8px;
}

.page-numbers a,
.page-numbers span {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 2px;
  font-size: 13px;
  color: var(--mid);
  transition: all 0.2s;
}

.page-numbers a:hover,
.page-numbers .current {
  background: var(--rose);
  color: var(--white);
  border-color: var(--rose);
}

/* =====================================================
   UTILITY CLASSES
   ===================================================== */
.text-rose  { color: var(--rose); }
.text-ink   { color: var(--ink); }
.text-muted { color: var(--muted); }
.text-center { text-align: center; }
.bg-cream   { background: var(--cream); }
.bg-warm    { background: var(--warm); }
.bg-blush   { background: var(--blush); }
.bg-ink     { background: var(--ink); }
.mt-0  { margin-top: 0; }
.mb-0  { margin-bottom: 0; }
.mt-40 { margin-top: 40px; }
.mb-40 { margin-bottom: 40px; }

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 1024px) {
  .hero-inner  { grid-template-columns: 1fr; }
  .two-col     { grid-template-columns: 1fr; gap: 48px; }
  .three-col   { grid-template-columns: 1fr 1fr; }
  .footer-top  { grid-template-columns: 1fr 1fr; gap: 40px; }
  .posts-grid  { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  section { padding: 72px 24px; }
  .container, .container-sm { padding: 0 24px; }
  .hero { padding: 100px 24px 60px; }
  .hero-kicker::before { display: none; }
  .three-col { grid-template-columns: 1fr; }
  .posts-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .capture-form { flex-direction: column; }
  .capture-form input[type="email"] {
    border-right: 1px solid rgba(255,255,255,0.12);
    border-bottom: none;
    border-radius: 2px 2px 0 0;
    width: 100%;
  }
  .capture-form button { border-radius: 0 0 2px 2px; }
  .main-navigation ul { display: none; }
  .menu-toggle { display: flex; }
  h1 { font-size: 36px; }
  h2 { font-size: 28px; }
}
