/*
Theme Name: Simply.
Theme URI: https://getsimply.com
Description: Clean wellness peptide brand theme with WooCommerce support
Version: 1.0
Author: Simply.
Text Domain: simply
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
*/

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

:root {
  --sand: #c9a96e;
  --sand-light: #f5f0e8;
  --sand-lighter: #faf8f5;
  --dark: #1a1a1a;
  --gray: #6b6b6b;
  --gray-light: #a0a0a0;
  --border: #e8e3db;
  --white: #ffffff;
  --weight-loss: #c9a96e;
  --metabolic: #c9a96e;
  --recovery: #7aab8a;
  --growth: #6b8db5;
  --aesthetics: #b07aab;
  --cognitive: #8a7ec9;
  --radius: 8px;
  --radius-lg: 12px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  color: var(--dark);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4 {
  font-family: 'DM Serif Display', serif;
  font-weight: 400;
  line-height: 1.2;
}

/* ===== ANNOUNCEMENT BAR ===== */
.announcement-bar {
  background: var(--dark);
  color: var(--white);
  text-align: center;
  padding: 10px 20px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.3px;
}
.announcement-bar span { color: var(--sand); }

/* ===== HEADER / NAV ===== */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 0;
}
.logo {
  font-family: 'DM Serif Display', serif;
  font-size: 26px;
  color: var(--dark);
  letter-spacing: -0.5px;
}
.logo em {
  font-style: normal;
  color: var(--sand);
}
.nav-menu {
  display: flex;
  gap: 32px;
  align-items: center;
}
.nav-menu a {
  font-size: 14px;
  font-weight: 500;
  color: var(--dark);
  transition: color 0.2s;
  letter-spacing: 0.2px;
}
.nav-menu a:hover { color: var(--sand); }
.nav-menu .btn-nav {
  background: var(--dark);
  color: var(--white);
  padding: 10px 22px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 500;
  transition: background 0.2s;
}
.nav-menu .btn-nav:hover { background: #333; }
.cart-count {
  background: var(--sand);
  color: var(--white);
  font-size: 11px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 50px;
  margin-left: 4px;
}

/* Mobile nav toggle */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.mobile-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--dark);
  margin: 5px 0;
  transition: 0.3s;
}

/* ===== HERO ===== */
.hero {
  padding: 100px 0 80px;
  text-align: center;
  background: linear-gradient(180deg, var(--sand-lighter) 0%, var(--white) 100%);
}
.hero-badge {
  display: inline-block;
  background: var(--sand-light);
  color: #8a7560;
  padding: 6px 18px;
  border-radius: 50px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 24px;
}
.hero h1 {
  font-size: 54px;
  color: var(--dark);
  max-width: 680px;
  margin: 0 auto 20px;
}
.hero h1 em {
  font-style: normal;
  color: var(--sand);
}
.hero p {
  font-size: 18px;
  color: var(--gray);
  max-width: 520px;
  margin: 0 auto 36px;
  line-height: 1.7;
}
.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--dark);
  color: var(--white);
  padding: 16px 36px;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 600;
  transition: background 0.2s, transform 0.2s;
}
.hero-cta:hover {
  background: #333;
  transform: translateY(-1px);
}
.hero-sub {
  margin-top: 16px;
  font-size: 13px;
  color: var(--gray-light);
}

/* ===== TRUST BAR ===== */
.trust-bar {
  padding: 40px 0;
  border-bottom: 1px solid var(--border);
}
.trust-bar-inner {
  display: flex;
  justify-content: center;
  gap: 60px;
  flex-wrap: wrap;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  font-weight: 500;
  color: var(--dark);
}
.trust-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--sand-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

/* ===== SECTION HEADINGS ===== */
.section-heading {
  text-align: center;
  margin-bottom: 48px;
}
.section-heading h2 {
  font-size: 38px;
  color: var(--dark);
  margin-bottom: 12px;
}
.section-heading p {
  font-size: 16px;
  color: var(--gray);
  max-width: 500px;
  margin: 0 auto;
}

/* ===== PRODUCTS SECTION ===== */
.products-section {
  padding: 80px 0;
}

/* Category filter tabs */
.category-tabs {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}
.cat-tab {
  padding: 8px 20px;
  border-radius: 50px;
  border: 1.5px solid var(--border);
  background: var(--white);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  font-family: 'DM Sans', sans-serif;
}
.cat-tab:hover, .cat-tab.active {
  background: var(--dark);
  color: var(--white);
  border-color: var(--dark);
}

/* Product grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}
.product-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
  background: var(--white);
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.08);
}
.product-card-image {
  height: 260px;
  background: var(--sand-lighter);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.product-card-image img {
  max-height: 200px;
  object-fit: contain;
}
.product-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--white);
}
.badge-weight-loss { background: var(--weight-loss); }
.badge-metabolic { background: var(--metabolic); }
.badge-recovery { background: var(--recovery); }
.badge-growth { background: var(--growth); }
.badge-aesthetics { background: var(--aesthetics); }
.badge-cognitive { background: var(--cognitive); }

.product-card-body {
  padding: 20px;
}
.product-card-body h3 {
  font-family: 'DM Serif Display', serif;
  font-size: 20px;
  margin-bottom: 6px;
}
.product-card-body .product-desc {
  font-size: 13px;
  color: var(--gray);
  margin-bottom: 16px;
  line-height: 1.5;
}
.product-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.product-price {
  font-size: 22px;
  font-weight: 700;
  color: var(--dark);
}
.btn-add-cart {
  background: var(--dark);
  color: var(--white);
  border: none;
  padding: 10px 20px;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  font-family: 'DM Sans', sans-serif;
}
.btn-add-cart:hover { background: #333; }

/* ===== BAC WATER BANNER ===== */
.bac-banner {
  background: var(--sand-light);
  padding: 48px 0;
  text-align: center;
}
.bac-banner h3 {
  font-size: 28px;
  margin-bottom: 10px;
}
.bac-banner h3 em {
  font-style: normal;
  color: var(--sand);
}
.bac-banner p {
  font-size: 15px;
  color: var(--gray);
  max-width: 500px;
  margin: 0 auto;
}

/* ===== HOW IT WORKS ===== */
.how-it-works {
  padding: 80px 0;
}
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  max-width: 900px;
  margin: 0 auto;
}
.step {
  text-align: center;
}
.step-number {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--sand-light);
  color: var(--sand);
  font-family: 'DM Serif Display', serif;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}
.step h4 {
  font-size: 18px;
  margin-bottom: 8px;
}
.step p {
  font-size: 14px;
  color: var(--gray);
  line-height: 1.6;
}

/* ===== WHY SIMPLY ===== */
.why-simply {
  padding: 80px 0;
  background: var(--sand-lighter);
}
.why-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 900px;
  margin: 0 auto;
}
.why-card {
  background: var(--white);
  padding: 32px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}
.why-card h4 {
  font-size: 18px;
  margin-bottom: 8px;
}
.why-card p {
  font-size: 14px;
  color: var(--gray);
  line-height: 1.6;
}

/* ===== FAQ ===== */
.faq-section {
  padding: 80px 0;
}
.faq-list {
  max-width: 700px;
  margin: 0 auto;
}
.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  background: none;
  border: none;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: var(--dark);
  text-align: left;
}
.faq-question::after {
  content: '+';
  font-size: 22px;
  color: var(--sand);
  font-weight: 400;
  transition: transform 0.2s;
}
.faq-item.open .faq-question::after {
  content: '−';
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}
.faq-item.open .faq-answer {
  max-height: 300px;
  padding-bottom: 20px;
}
.faq-answer p {
  font-size: 14px;
  color: var(--gray);
  line-height: 1.7;
}

/* ===== CTA SECTION ===== */
.cta-section {
  padding: 80px 0;
  text-align: center;
  background: var(--dark);
  color: var(--white);
}
.cta-section h2 {
  font-size: 38px;
  margin-bottom: 16px;
}
.cta-section p {
  font-size: 16px;
  color: var(--gray-light);
  margin-bottom: 32px;
  max-width: 460px;
  margin-left: auto;
  margin-right: auto;
}
.btn-cta-light {
  display: inline-block;
  background: var(--sand);
  color: var(--white);
  padding: 16px 40px;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 600;
  transition: background 0.2s, transform 0.2s;
}
.btn-cta-light:hover {
  background: #b89558;
  transform: translateY(-1px);
}

/* ===== FOOTER ===== */
.site-footer {
  background: var(--sand-lighter);
  border-top: 1px solid var(--border);
  padding: 60px 0 30px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-brand .logo {
  margin-bottom: 12px;
}
.footer-brand p {
  font-size: 13px;
  color: var(--gray);
  line-height: 1.7;
  max-width: 280px;
}
.footer-col h5 {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--dark);
  margin-bottom: 16px;
}
.footer-col a {
  display: block;
  font-size: 14px;
  color: var(--gray);
  margin-bottom: 10px;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--sand); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--gray-light);
}
.footer-disclaimer {
  text-align: center;
  padding: 24px 40px;
  font-size: 11px;
  color: var(--gray-light);
  background: var(--sand-lighter);
  line-height: 1.6;
  border-top: 1px solid var(--border);
}

/* ===== WOOCOMMERCE PRODUCT PAGE ===== */
.single-product .product-top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  padding: 60px 0;
}
.product-image-wrap {
  background: var(--sand-lighter);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  min-height: 400px;
}
.product-info h1 {
  font-size: 36px;
  margin-bottom: 8px;
}
.product-info .price {
  font-size: 28px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 20px;
}
.product-info .short-description {
  font-size: 15px;
  color: var(--gray);
  line-height: 1.7;
  margin-bottom: 24px;
}
.coa-download {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 24px;
  transition: border-color 0.2s;
}
.coa-download:hover { border-color: var(--sand); }
.bac-water-note {
  background: var(--sand-light);
  padding: 14px 20px;
  border-radius: var(--radius);
  font-size: 13px;
  color: #8a7560;
  font-weight: 500;
  margin-bottom: 24px;
}
.research-notice {
  padding: 14px 20px;
  background: #fef9f0;
  border: 1px solid #f0e0c0;
  border-radius: var(--radius);
  font-size: 12px;
  color: #8a7560;
  line-height: 1.6;
  margin-bottom: 24px;
}

/* WooCommerce button overrides */
.woocommerce #respond input#submit,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit.alt,
.woocommerce a.button.alt,
.woocommerce button.button.alt,
.woocommerce input.button.alt {
  background: var(--dark) !important;
  color: var(--white) !important;
  border-radius: var(--radius) !important;
  font-family: 'DM Sans', sans-serif !important;
  font-weight: 600 !important;
  font-size: 14px !important;
  padding: 12px 28px !important;
  border: none !important;
  transition: background 0.2s !important;
}
.woocommerce #respond input#submit:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce #respond input#submit.alt:hover,
.woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover,
.woocommerce input.button.alt:hover {
  background: #333 !important;
}

/* WooCommerce checkout disclaimer */
.checkout-disclaimer {
  background: #fef9f0;
  border: 1px solid #f0e0c0;
  padding: 16px 20px;
  border-radius: var(--radius);
  margin-bottom: 20px;
  font-size: 13px;
  line-height: 1.6;
  color: #8a7560;
}
.checkout-disclaimer input[type="checkbox"] {
  margin-right: 8px;
}

/* WooCommerce notices */
.woocommerce-message {
  border-top-color: var(--sand) !important;
}
.woocommerce-message::before {
  color: var(--sand) !important;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .container { padding: 0 24px; }
  nav, .header-inner { padding: 16px 0; }
  .hero { padding: 60px 0 50px; }
  .hero h1 { font-size: 36px; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-grid { grid-template-columns: 1fr; gap: 30px; }
  .why-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .single-product .product-top { grid-template-columns: 1fr; gap: 30px; }
  .trust-bar-inner { gap: 30px; }
}
@media (max-width: 600px) {
  .hero h1 { font-size: 30px; }
  .section-heading h2 { font-size: 28px; }
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .product-card-image { height: 140px; }
  .product-card-image img { max-height: 110px; }
  .product-card-body { padding: 12px; }
  .product-card-body h3 { font-size: 15px; margin-bottom: 4px; }
  .product-card-body .product-desc { display: none; }
  .product-price { font-size: 17px; }
  .btn-add-cart { padding: 7px 12px; font-size: 11px; }
  .product-badge { font-size: 8px; padding: 3px 8px; top: 8px; left: 8px; }
  .footer-grid { grid-template-columns: 1fr; }
  .nav-menu { display: none; }
  .mobile-toggle { display: block; }
  .nav-menu.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
    gap: 16px;
  }
}

/* ===== RESEARCH PROFILE SECTION ===== */
.research-profile {
  padding: 40px 0 60px;
  border-top: 1px solid var(--border);
  margin-top: 20px;
}
.research-profile h2 {
  font-size: 28px;
  margin-bottom: 24px;
}
.research-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 40px;
}
@media (max-width: 600px) {
  .research-grid { grid-template-columns: 1fr; }
}
.research-card {
  background: var(--sand-lighter);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
}
.research-card-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gray-light);
  margin-bottom: 8px;
}
.research-card h4 {
  font-size: 18px;
  margin-bottom: 16px;
}
.research-card table {
  width: 100%;
  border-collapse: collapse;
}
.research-card table td {
  padding: 8px 0;
  font-size: 14px;
  border-bottom: 1px solid var(--border);
}
.research-card table td:first-child {
  color: var(--gray);
}
.research-card table td:last-child {
  font-weight: 600;
  text-align: right;
}
.storage-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.storage-item:last-child { border-bottom: none; }
.storage-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}
.storage-item-text { font-size: 14px; }
.storage-item-text strong { display: block; font-size: 13px; }
.storage-item-text span { color: var(--gray); font-size: 12px; }

/* Sources section */
.sources-section {
  margin-top: 40px;
}
.sources-section h3 {
  font-size: 22px;
  margin-bottom: 8px;
}
.sources-section .sources-sub {
  font-size: 13px;
  color: var(--gray);
  margin-bottom: 20px;
}
.sources-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 16px;
}
.source-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  transition: border-color 0.2s;
}
.source-card:hover { border-color: var(--sand); }
.source-journal {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--recovery);
  margin-bottom: 8px;
}
.source-title {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 8px;
}
.source-meta {
  font-size: 12px;
  color: var(--gray-light);
}
.source-link {
  display: inline-block;
  margin-top: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--sand);
}

/* Research notice on product page */
.research-notice-box {
  background: #fef9f0;
  border: 1px solid #f0e0c0;
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-top: 40px;
}
.research-notice-box h4 {
  color: #b8860b;
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.research-notice-box p {
  font-size: 13px;
  color: #8a7560;
  line-height: 1.7;
  margin-bottom: 8px;
}
.research-notice-box p:last-child { margin-bottom: 0; }
