/*
Theme Name: Gut & Glow
Theme URI: https://gutandglow.org
Author: Brasil Botanique
Author URI: https://brasilbotanique.com
Description: Science-backed gut health and skin nutrition for women in Malta.
Version: 1.0
License: GNU General Public License v2 or later
Text Domain: gutglow
*/

:root {
  --primary: #0F6E56;
  --primary-light: #E6F4F0;
  --accent: #C8EBE0;
  --dark: #1A1A1A;
  --mid: #4A4A4A;
  --white: #FFFFFF;
  --serif: 'Playfair Display', Georgia, serif;
  --sans: 'Inter', system-ui, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: var(--sans); color: var(--dark); background: var(--white); line-height: 1.6; }

/* HEADER */
header.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--white);
  border-bottom: 1px solid #E0EDE9;
  padding: 0 5%;
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
  box-shadow: 0 2px 8px rgba(15,110,86,0.06);
}
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-icon {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--primary);
  display: flex; align-items: center; justify-content: center;
  color: white; font-size: 18px;
}
.logo-text { font-family: var(--serif); font-size: 1.25rem; color: var(--primary); font-weight: 700; }
.site-nav { display: flex; align-items: center; gap: 24px; }
.site-nav a { text-decoration: none; color: var(--mid); font-size: 0.875rem; font-weight: 500; transition: color 0.2s; }
.site-nav a:hover { color: var(--primary); }
.lang-switcher {
  display: flex; align-items: center;
  border: 1.5px solid var(--primary); border-radius: 20px; overflow: hidden;
  font-size: 0.75rem; font-weight: 600;
}
.lang-switcher a {
  padding: 4px 12px; text-decoration: none;
  color: var(--primary); transition: all 0.2s;
}
.lang-switcher a.active { background: var(--primary); color: var(--white); }
.lang-switcher a:hover:not(.active) { background: var(--primary-light); }

/* HERO */
.site-hero {
  background: linear-gradient(135deg, #0F6E56 0%, #1A8A6A 100%);
  padding: 80px 5% 70px;
  color: white; text-align: center;
}
.hero-kicker {
  display: inline-block; background: rgba(255,255,255,0.15);
  border-radius: 20px; padding: 6px 18px; font-size: 0.8rem;
  letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 20px;
}
.site-hero h1 { font-family: var(--serif); font-size: clamp(2rem, 5vw, 3.2rem); line-height: 1.2; margin-bottom: 18px; }
.site-hero p { font-size: 1rem; opacity: 0.9; max-width: 560px; margin: 0 auto 32px; }
.btn-hero {
  display: inline-block; background: white; color: var(--primary);
  padding: 14px 32px; border-radius: 30px; font-weight: 700;
  text-decoration: none; font-size: 0.95rem; transition: transform 0.2s;
}
.btn-hero:hover { transform: translateY(-2px); }

/* MAIN CONTENT */
.site-main { max-width: 1120px; margin: 0 auto; padding: 60px 5%; }
.section-label {
  font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--primary); font-weight: 600; margin-bottom: 12px;
}
.section-title { font-family: var(--serif); font-size: 1.9rem; color: var(--dark); margin-bottom: 36px; }

/* ARTICLE GRID */
.posts-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 28px; }
.post-card {
  border-radius: 14px; overflow: hidden;
  border: 1px solid #E0EDE9;
  transition: transform 0.2s, box-shadow 0.2s;
  background: var(--white);
}
.post-card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(15,110,86,0.1); }
.card-img {
  height: 180px;
  display: flex; align-items: center; justify-content: center;
  font-size: 3rem; background: var(--primary-light);
  overflow: hidden;
}
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 22px; }
.card-tag {
  display: inline-block; background: var(--accent); color: var(--primary);
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.06em;
  text-transform: uppercase; padding: 3px 10px; border-radius: 10px; margin-bottom: 10px;
}
.post-card h3 { font-family: var(--serif); font-size: 1.1rem; line-height: 1.4; margin-bottom: 8px; }
.post-card h3 a { text-decoration: none; color: var(--dark); }
.post-card h3 a:hover { color: var(--primary); }
.post-card p { font-size: 0.875rem; color: var(--mid); line-height: 1.6; margin-bottom: 14px; }
.card-link { color: var(--primary); font-size: 0.85rem; font-weight: 600; text-decoration: none; }
.card-link:hover { text-decoration: underline; }

/* NEWSLETTER */
.newsletter-box {
  background: var(--primary-light); border-radius: 16px;
  padding: 50px 40px; text-align: center; margin-top: 60px;
}
.newsletter-box h2 { font-family: var(--serif); font-size: 1.7rem; margin-bottom: 10px; }
.newsletter-box p { color: var(--mid); margin-bottom: 24px; }
.email-form { display: flex; gap: 10px; max-width: 420px; margin: 0 auto; }
.email-form input {
  flex: 1; padding: 12px 18px; border-radius: 30px;
  border: 1.5px solid #B8DAD2; outline: none; font-size: 0.9rem;
}
.email-form input:focus { border-color: var(--primary); }
.email-form button {
  background: var(--primary); color: white;
  padding: 12px 24px; border: none; border-radius: 30px;
  font-weight: 600; cursor: pointer; font-size: 0.9rem;
  transition: background 0.2s;
}
.email-form button:hover { background: #0a5542; }

/* FOOTER */
footer.site-footer {
  background: var(--dark); color: #aaa;
  padding: 40px 5%; text-align: center; margin-top: 60px;
}
.footer-logo { font-family: var(--serif); font-size: 1.3rem; color: white; margin-bottom: 10px; }
footer.site-footer p { font-size: 0.8rem; line-height: 1.8; }
footer.site-footer a { color: #aaa; text-decoration: none; }
footer.site-footer a:hover { color: white; }
.footer-links { margin: 14px 0; display: flex; justify-content: center; gap: 24px; }

/* SINGLE POST */
.single-wrap { max-width: 780px; margin: 0 auto; padding: 60px 5%; }
.post-header { margin-bottom: 40px; border-bottom: 1px solid var(--primary-light); padding-bottom: 28px; }
.post-header .card-tag { display: inline-block; margin-bottom: 16px; }
.post-header h1 { font-family: var(--serif); font-size: clamp(1.8rem, 4vw, 2.8rem); line-height: 1.25; margin-bottom: 14px; }
.post-meta { font-size: 0.82rem; color: var(--mid); }
.entry-content { margin-top: 36px; }
.entry-content h2 { font-family: var(--serif); font-size: 1.5rem; margin: 40px 0 16px; color: var(--primary); }
.entry-content h3 { font-family: var(--serif); font-size: 1.2rem; margin: 28px 0 12px; color: var(--dark); }
.entry-content p { margin-bottom: 20px; line-height: 1.85; font-size: 1rem; }
.entry-content ul, .entry-content ol { margin: 0 0 20px 26px; }
.entry-content li { margin-bottom: 10px; line-height: 1.7; }
.entry-content strong { color: var(--dark); }
.entry-content blockquote {
  border-left: 3px solid var(--primary); padding: 16px 24px;
  background: var(--primary-light); margin: 28px 0; font-style: italic; border-radius: 0 8px 8px 0;
}
.entry-content table { width: 100%; border-collapse: collapse; margin: 24px 0; font-size: 0.9rem; }
.entry-content th { background: var(--primary); color: white; padding: 10px 14px; text-align: left; }
.entry-content td { padding: 10px 14px; border-bottom: 1px solid var(--primary-light); }
.entry-content pre { background: #f5f5f5; padding: 16px; border-radius: 8px; overflow-x: auto; font-size: 0.85rem; margin: 20px 0; }
.back-link { display: inline-block; color: var(--primary); font-weight: 600; text-decoration: none; margin-top: 48px; padding: 10px 0; }
.back-link:hover { text-decoration: underline; }

/* STATIC PAGES */
.page-wrap { max-width: 780px; margin: 0 auto; padding: 60px 5%; }
.page-wrap h1 { font-family: var(--serif); font-size: 2.2rem; margin-bottom: 28px; }
.page-wrap p { margin-bottom: 20px; line-height: 1.8; }

/* PAGINATION */
.pagination { text-align: center; margin: 48px 0; }
.pagination a, .pagination span { display: inline-block; padding: 8px 16px; margin: 0 4px; border-radius: 8px; font-size: 0.9rem; }
.pagination a { color: var(--primary); border: 1.5px solid var(--primary-light); text-decoration: none; }
.pagination a:hover { background: var(--primary-light); }
.pagination .current { background: var(--primary); color: white; }

/* RESPONSIVE */
@media (max-width: 640px) {
  .site-nav { gap: 12px; font-size: 0.8rem; }
  .site-hero { padding: 60px 5% 50px; }
  .email-form { flex-direction: column; }
  .lang-switcher { display: none; }
}
