/*
Theme Name: Herbacopia Modern
Theme URI: https://herbacopia.com
Author: Herbacopia
Description: A clean, modern custom theme for Herbacopia — Herbal Abundance. Built to replace a legacy premium theme with an original, license-free design.
Version: 1.0.0
Requires PHP: 7.4
Text Domain: herbacopia-modern
*/

/* ==========================================================================
   1. Design tokens
   ========================================================================== */
:root {
  --color-bg: #FBF9F4;
  --color-bg-alt: #F1F0E6;
  --color-sage: #6F8F6E;
  --color-sage-dark: #4E6B4F;
  --color-terracotta: #C77B4E;
  --color-text: #2B2B26;
  --color-text-muted: #5B5B52;
  --color-border: #E2DFD2;
  --color-white: #FFFFFF;

  --font-heading: 'Fraunces', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --radius: 14px;
  --shadow-soft: 0 4px 24px rgba(43, 43, 38, 0.06);
  --shadow-medium: 0 8px 32px rgba(43, 43, 38, 0.10);
  --max-width: 1180px;
}

/* ==========================================================================
   2. Reset & base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--color-sage-dark);
  text-decoration: none;
  transition: color 0.2s ease;
}
a:hover { color: var(--color-terracotta); }

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.2;
  margin: 0 0 0.5em;
  color: var(--color-text);
}

h1 { font-size: clamp(2.2rem, 4vw, 3.2rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
h3 { font-size: 1.35rem; }

p { margin: 0 0 1.2em; }

ul { padding-left: 1.2em; }

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

.section { padding: 72px 0; }
.section--alt { background: var(--color-bg-alt); }
.section--tight { padding: 48px 0; }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--color-sage-dark);
  display: inline-block;
  margin-bottom: 12px;
}

.btn {
  display: inline-block;
  padding: 13px 28px;
  background: var(--color-sage-dark);
  color: var(--color-white);
  border-radius: 100px;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}
.btn:hover { background: var(--color-terracotta); color: var(--color-white); transform: translateY(-1px); }
.btn--outline {
  background: transparent;
  color: var(--color-sage-dark);
  border: 1.5px solid var(--color-sage-dark);
}
.btn--outline:hover { background: var(--color-sage-dark); color: var(--color-white); }

.card {
  background: var(--color-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: 32px;
}

/* ==========================================================================
   3. Header
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 249, 244, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-border);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
}

.site-branding { display: flex; align-items: center; gap: 12px; }
.site-branding img { max-height: 44px; width: auto; border-radius: 8px; }
.site-title {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--color-sage-dark);
  margin: 0;
}
.site-title a { color: inherit; }

.primary-nav ul {
  list-style: none;
  display: flex;
  gap: 32px;
  margin: 0;
  padding: 0;
}
.primary-nav a {
  font-weight: 500;
  color: var(--color-text);
  font-size: 0.98rem;
}
.primary-nav a:hover { color: var(--color-sage-dark); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.6rem;
  cursor: pointer;
  color: var(--color-sage-dark);
}

@media (max-width: 780px) {
  .primary-nav { display: none; width: 100%; }
  .primary-nav.is-open { display: block; }
  .primary-nav ul { flex-direction: column; gap: 4px; padding: 16px 0; }
  .primary-nav a { display: block; padding: 10px 0; }
  .nav-toggle { display: block; }
  .site-header__inner { flex-wrap: wrap; }
}

/* ==========================================================================
   4. Hero
   ========================================================================== */
.hero {
  padding: 88px 0 72px;
  background: linear-gradient(180deg, var(--color-bg-alt) 0%, var(--color-bg) 100%);
}
.hero__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}
.hero p.lead {
  font-size: 1.15rem;
  color: var(--color-text-muted);
  max-width: 46ch;
}
.hero__media {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-medium);
}
.hero__actions { display: flex; gap: 14px; margin-top: 8px; flex-wrap: wrap; }

@media (max-width: 860px) {
  .hero__grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   5. Grids / cards (services, blog, testimonials)
   ========================================================================== */
.grid {
  display: grid;
  gap: 28px;
}
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }

@media (max-width: 860px) {
  .grid--3, .grid--2 { grid-template-columns: 1fr; }
}

.blog-card__meta {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 6px;
}
.blog-card img {
  border-radius: 10px;
  margin-bottom: 16px;
  aspect-ratio: 16/10;
  object-fit: cover;
}

.testimonial-card {
  background: var(--color-white);
  border-left: 3px solid var(--color-sage);
  padding: 28px;
  border-radius: 10px;
  box-shadow: var(--shadow-soft);
}
.testimonial-card p { font-style: italic; color: var(--color-text-muted); }
.testimonial-card .name { font-weight: 600; color: var(--color-sage-dark); font-style: normal; margin: 0; }

/* ==========================================================================
   6. Pricing (services page)
   ========================================================================== */
.pricing-list { list-style: none; margin: 0; padding: 0; }
.pricing-list li {
  display: flex;
  justify-content: space-between;
  padding: 16px 0;
  border-bottom: 1px solid var(--color-border);
}
.pricing-list li:last-child { border-bottom: none; }
.pricing-list .price { font-weight: 700; color: var(--color-sage-dark); }

/* ==========================================================================
   7. Contact
   ========================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-details p { margin-bottom: 0.9em; }
.contact-details strong { color: var(--color-sage-dark); }

.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form textarea,
form.fallback-contact-form input,
form.fallback-contact-form textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 1rem;
  margin-bottom: 16px;
  background: var(--color-white);
}
.wpcf7-form textarea, form.fallback-contact-form textarea { min-height: 140px; resize: vertical; }
.wpcf7-form input[type="submit"] {
  width: auto;
}

/* ==========================================================================
   8. Footer
   ========================================================================== */
.site-footer {
  background: var(--color-sage-dark);
  color: #EDEFE7;
  padding: 56px 0 28px;
  margin-top: 40px;
}
.site-footer a { color: #EDEFE7; }
.site-footer a:hover { color: var(--color-terracotta); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
@media (max-width: 780px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid h4 { color: #FFFFFF; font-size: 1rem; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 8px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 22px;
  font-size: 0.85rem;
  color: #C9D0C0;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

/* ==========================================================================
   9. Misc / WP core alignment classes
   ========================================================================== */
.alignwide { max-width: 1400px; margin-left: auto; margin-right: auto; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.screen-reader-text {
  position: absolute !important;
  clip: rect(1px, 1px, 1px, 1px);
  overflow: hidden;
  height: 1px; width: 1px;
}
