/*
Theme Name:   OrganicPahad Child
Theme URI:    https://organicpahad.com
Description:  Premium Himalayan organic brand child theme for Astra. Includes custom WooCommerce templates, Homestay & Explore Uttarakhand templates, and full OrganicPahad branding.
Author:       OrganicPahad
Author URI:   https://organicpahad.com
Template:     astra
Version:      1.0.0
License:      Proprietary
Text Domain:  organicpahad
*/

/* ============================================================
   OrganicPahad — Design Tokens
   ============================================================ */
:root {
  --op-primary:      #2E7D32;
  --op-primary-dark: #1B5E20;
  --op-secondary:    #4CAF50;
  --op-accent:       #8BC34A;
  --op-bg:           #F4FAF4;
  --op-card:         #FFFFFF;
  --op-text:         #1F2937;
  --op-text-muted:   #4B5563;
  --op-border:       #E5E7EB;
  --op-gold:         #C9A961;
  --op-danger:       #DC2626;

  --op-font-heading: 'Poppins', sans-serif;
  --op-font-body:    'Open Sans', sans-serif;

  --op-radius-sm:  6px;
  --op-radius-md:  12px;
  --op-radius-lg:  20px;

  --op-shadow-sm:  0 1px 2px rgba(46,125,50,.06);
  --op-shadow-md:  0 8px 24px rgba(46,125,50,.10);
  --op-shadow-lg:  0 20px 48px rgba(46,125,50,.14);
}

/* ============================================================
   Global
   ============================================================ */
body {
  background: var(--op-bg);
  color: var(--op-text);
  font-family: var(--op-font-body);
  font-size: 16px;
  line-height: 1.65;
}
h1,h2,h3,h4,h5,h6 {
  font-family: var(--op-font-heading);
  color: var(--op-text);
  font-weight: 600;
  letter-spacing: -0.01em;
}
a { color: var(--op-primary); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--op-primary-dark); }

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

/* ============================================================
   Buttons
   ============================================================ */
.op-btn,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.woocommerce-page a.button.alt,
.woocommerce-page button.button.alt {
  background: var(--op-primary) !important;
  color: #fff !important;
  border: none !important;
  padding: 12px 26px !important;
  border-radius: 999px !important;
  font-family: var(--op-font-heading) !important;
  font-weight: 500 !important;
  letter-spacing: .01em;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease !important;
  box-shadow: var(--op-shadow-sm);
  cursor: pointer;
}
.op-btn:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce #respond input#submit:hover {
  background: var(--op-primary-dark) !important;
  transform: translateY(-1px);
  box-shadow: var(--op-shadow-md);
}
.op-btn-outline {
  background: transparent !important;
  color: var(--op-primary) !important;
  border: 1.5px solid var(--op-primary) !important;
}
.op-btn-outline:hover {
  background: var(--op-primary) !important;
  color: #fff !important;
}
.op-btn-buy-now {
  background: var(--op-gold) !important;
  color: #fff !important;
}
.op-btn-buy-now:hover { background: #a88a48 !important; }

/* ============================================================
   Cards
   ============================================================ */
.op-card {
  background: var(--op-card);
  border: 1px solid var(--op-border);
  border-radius: var(--op-radius-md);
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  box-shadow: var(--op-shadow-sm);
}
.op-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--op-shadow-lg);
  border-color: var(--op-accent);
}

/* ============================================================
   Hero
   ============================================================ */
.op-hero {
  position: relative;
  min-height: 82vh;
  display: flex;
  align-items: center;
  color: #fff;
  overflow: hidden;
  background: linear-gradient(120deg, rgba(27,94,32,.72) 0%, rgba(46,125,50,.55) 60%, rgba(139,195,74,.35) 100%),
              url('https://images.unsplash.com/photo-1626621341517-bbf3d9990a23?w=1920&q=80') center/cover no-repeat;
}
.op-hero__inner { max-width: 720px; padding: 40px 6vw; }
.op-hero__tag {
  display: inline-block;
  background: rgba(255,255,255,.14);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,.22);
  color: #fff;
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 13px;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.op-hero__title {
  font-size: clamp(2.2rem, 5vw, 4.2rem);
  color: #fff;
  line-height: 1.1;
  margin: 0 0 18px;
  font-weight: 700;
}
.op-hero__sub {
  font-size: 1.15rem;
  opacity: .92;
  margin-bottom: 32px;
  max-width: 560px;
}

/* ============================================================
   Sections
   ============================================================ */
.op-section { padding: 84px 6vw; }
.op-section--tight { padding: 56px 6vw; }
.op-section__head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 48px;
}
.op-section__eyebrow {
  color: var(--op-primary);
  font-family: var(--op-font-heading);
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-size: 13px;
  margin-bottom: 12px;
}
.op-section__title {
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  margin-bottom: 12px;
}
.op-section__desc {
  color: var(--op-text-muted);
  font-size: 1.05rem;
}

/* ============================================================
   Category grid
   ============================================================ */
.op-cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}
.op-cat-card {
  background: var(--op-card);
  border-radius: var(--op-radius-lg);
  overflow: hidden;
  box-shadow: var(--op-shadow-sm);
  transition: transform .3s ease, box-shadow .3s ease;
  display: flex; flex-direction: column;
}
.op-cat-card:hover { transform: translateY(-6px); box-shadow: var(--op-shadow-lg); }
.op-cat-card__img {
  aspect-ratio: 4/3;
  background-size: cover;
  background-position: center;
  position: relative;
}
.op-cat-card__count {
  position: absolute; top: 12px; right: 12px;
  background: rgba(255,255,255,.92);
  color: var(--op-primary-dark);
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  font-family: var(--op-font-heading);
}
.op-cat-card__body { padding: 22px; }
.op-cat-card__title {
  font-size: 1.35rem;
  margin: 0 0 8px;
}
.op-cat-card__desc { color: var(--op-text-muted); font-size: .95rem; }

/* ============================================================
   Product grid & card (WooCommerce overrides)
   ============================================================ */
.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product {
  background: var(--op-card);
  border-radius: var(--op-radius-md);
  padding: 16px !important;
  box-shadow: var(--op-shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease;
  border: 1px solid var(--op-border);
}
.woocommerce ul.products li.product:hover {
  transform: translateY(-4px);
  box-shadow: var(--op-shadow-lg);
  border-color: var(--op-accent);
}
.woocommerce ul.products li.product .price {
  color: var(--op-primary-dark) !important;
  font-weight: 700 !important;
  font-family: var(--op-font-heading);
}
.woocommerce ul.products li.product .price del { color: #999; font-weight: 400; }
.woocommerce ul.products li.product h2,
.woocommerce ul.products li.product .woocommerce-loop-product__title {
  font-family: var(--op-font-heading) !important;
  font-size: 1.05rem !important;
  color: var(--op-text) !important;
  padding: 8px 0 6px !important;
}
.woocommerce span.onsale {
  background: var(--op-gold) !important;
  color: #fff !important;
  border-radius: 6px !important;
  padding: 6px 10px !important;
  font-family: var(--op-font-heading);
  font-size: 12px;
  min-height: auto !important;
  min-width: auto !important;
  line-height: 1 !important;
}

/* Star rating */
.woocommerce .star-rating span::before,
.woocommerce p.stars a::before { color: var(--op-gold) !important; }

/* ============================================================
   Single product page
   ============================================================ */
.woocommerce div.product .product_title {
  font-size: 2rem;
  color: var(--op-text);
}
.woocommerce div.product p.price,
.woocommerce div.product span.price {
  color: var(--op-primary-dark) !important;
  font-family: var(--op-font-heading) !important;
  font-weight: 700 !important;
  font-size: 1.6rem !important;
}
.op-product-badges { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0 20px; }
.op-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(139,195,74,.15);
  color: var(--op-primary-dark);
  padding: 4px 12px; border-radius: 999px;
  font-size: 12px; font-weight: 600;
  font-family: var(--op-font-heading);
}
.op-share-row { display: flex; gap: 10px; margin: 20px 0; align-items: center; }
.op-share-row a {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--op-bg); color: var(--op-primary-dark);
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--op-border);
  transition: all .2s ease;
}
.op-share-row a:hover { background: var(--op-primary); color: #fff; transform: translateY(-2px); }

/* Know Your Product Section */
.op-kyp {
  margin: 60px 0;
  padding: 40px;
  background: linear-gradient(135deg, #f7fcf7 0%, #ecf7ec 100%);
  border-radius: var(--op-radius-lg);
  border: 1px solid var(--op-border);
}
.op-kyp__title {
  font-size: 1.75rem;
  margin: 0 0 8px;
  color: var(--op-primary-dark);
}
.op-kyp__sub { color: var(--op-text-muted); margin-bottom: 32px; }
.op-kyp__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 32px;
}
.op-kyp__item {
  background: #fff;
  padding: 20px;
  border-radius: var(--op-radius-md);
  border: 1px solid var(--op-border);
}
.op-kyp__label {
  font-size: 11px; letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--op-primary);
  font-weight: 600;
  margin-bottom: 6px;
}
.op-kyp__value {
  font-family: var(--op-font-heading);
  font-size: 1.05rem;
  color: var(--op-text);
  font-weight: 500;
}
.op-kyp__story {
  background: #fff;
  padding: 28px;
  border-radius: var(--op-radius-md);
  border-left: 4px solid var(--op-primary);
  font-style: italic;
  color: var(--op-text-muted);
  line-height: 1.8;
}

/* Promote Local Tourism block */
.op-tourism {
  margin: 60px 0;
  padding: 40px;
  background: #fff;
  border-radius: var(--op-radius-lg);
  border: 1px solid var(--op-border);
}
.op-tourism__title { color: var(--op-primary-dark); margin-bottom: 8px; }

/* ============================================================
   Homestay card
   ============================================================ */
.op-homestay-card {
  background: #fff;
  border-radius: var(--op-radius-lg);
  overflow: hidden;
  box-shadow: var(--op-shadow-sm);
  transition: all .3s ease;
}
.op-homestay-card:hover { transform: translateY(-6px); box-shadow: var(--op-shadow-lg); }
.op-homestay-card__img { aspect-ratio: 16/10; background-size: cover; background-position: center; }
.op-homestay-card__body { padding: 22px; }
.op-homestay-card__loc {
  font-size: 13px; color: var(--op-primary);
  font-family: var(--op-font-heading); font-weight: 500;
  letter-spacing: .06em; text-transform: uppercase;
  margin-bottom: 6px;
}
.op-homestay-card__title { font-size: 1.35rem; margin: 0 0 10px; }
.op-homestay-card__cta {
  display: flex; gap: 10px; margin-top: 16px;
}

/* WhatsApp float button */
.op-whatsapp-float {
  position: fixed; bottom: 24px; right: 24px;
  width: 56px; height: 56px;
  background: #25D366; color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 24px rgba(37,211,102,.4);
  z-index: 999; text-decoration: none;
  transition: transform .2s ease;
}
.op-whatsapp-float:hover { transform: scale(1.08); color: #fff; }
.op-whatsapp-float i { font-size: 28px; }

/* ============================================================
   Explore Uttarakhand article card
   ============================================================ */
.op-article-card {
  background: #fff;
  border-radius: var(--op-radius-md);
  overflow: hidden;
  box-shadow: var(--op-shadow-sm);
  transition: all .3s ease;
}
.op-article-card:hover { transform: translateY(-4px); box-shadow: var(--op-shadow-md); }
.op-article-card__img { aspect-ratio: 16/9; background-size: cover; background-position: center; }
.op-article-card__body { padding: 20px; }
.op-article-card__cat {
  display: inline-block;
  color: var(--op-primary); font-size: 12px;
  text-transform: uppercase; letter-spacing: .08em;
  font-family: var(--op-font-heading); font-weight: 600;
  margin-bottom: 8px;
}
.op-article-card__title { font-size: 1.2rem; margin: 0 0 10px; line-height: 1.35; }
.op-article-card__meta { color: var(--op-text-muted); font-size: 13px; }

/* ============================================================
   Footer
   ============================================================ */
.op-footer {
  background: #0f1d13;
  color: #cfd8d0;
  padding: 64px 6vw 24px;
  margin-top: 80px;
}
.op-footer h4 { color: #fff; font-size: 1rem; margin-bottom: 18px; letter-spacing: .04em; }
.op-footer a { color: #cfd8d0; }
.op-footer a:hover { color: var(--op-accent); }
.op-footer__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}
.op-footer__bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: 24px;
  text-align: center;
  font-size: 13px;
  opacity: .7;
}

/* ============================================================
   Utility
   ============================================================ */
.op-container { max-width: 1280px; margin: 0 auto; }
.op-flex { display: flex; }
.op-grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.op-mt-40 { margin-top: 40px; }

/* Breadcrumbs */
.woocommerce-breadcrumb, .op-breadcrumb {
  font-size: 13px !important;
  color: var(--op-text-muted) !important;
  margin-bottom: 24px !important;
  font-family: var(--op-font-heading);
}
.woocommerce-breadcrumb a { color: var(--op-primary); }

/* Responsive */
@media (max-width: 768px) {
  .op-section { padding: 56px 5vw; }
  .op-hero { min-height: 70vh; }
  .op-kyp, .op-tourism { padding: 24px; }
}
