/* ==========================================================================
   Marklandwood CMS — styles that used to be inline in the static pages, plus
   the new dynamic components (shop, cart, checkout, enquiry modal, blog
   pagination, service pages). Loaded after css/modern-redesign.css.
   ========================================================================== */

:root { --navy-dark: #0c1928; --brand-deep: #16482a; --brand: #22653d; --brand-bright: #22b863; }

/* ── Shared ──────────────────────────────────────────────────────────── */
.body-copy, .body-copy p { font-size: 16px; color: #4b5563; line-height: 1.8; }
.body-copy p:last-child { margin-bottom: 0; }
.rounded-lg-img { width: 100%; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); position: relative; z-index: 2; }
.btn-teals { background: var(--brand-bright); color: #fff; border: none; }
.btn-teals:hover { background: #1ca456; color: #fff; transform: translateY(-2px); }
.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.dot-pattern { position: absolute; inset: 0; opacity: 0.03; background-image: radial-gradient(var(--accent-teal) 2px, transparent 2px); background-size: 40px 40px; z-index: 1; }
a.doctor-card, a.doctor-card:hover { color: inherit; text-decoration: none; }
.skip-link { position: absolute; left: -999px; }

/* Floating call button (was inline on every page) */
.call-fab { position: fixed; bottom: 20px; right: 20px; width: 65px; height: 65px; background: #2b7b4b; color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; text-decoration: none; font-size: 22px; box-shadow: 0 5px 15px rgba(0,0,0,.3); z-index: 999; transition: .3s ease; }
body:not(.page-home) .call-fab i { transform: rotate(90deg); }
.call-fab:hover { transform: scale(1.08); background: #22653d; color: #fff; }

/* Header cart link */
.nav-cart-link { position: relative; color: #fff; font-size: 1.2rem; }
.nav-cart-link:hover { color: var(--brand-bright); }
.nav-cart-count { position: absolute; top: -8px; right: -12px; background: var(--brand-bright); color: #fff; font-size: 11px; font-weight: 700; min-width: 18px; height: 18px; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center; padding: 0 4px; }

.footer-social a { background: rgba(255,255,255,.1); width: 35px; height: 35px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; }
.footer-social a:hover { background: var(--accent-teal); }

/* ── Home page (styles from the original index.html) ─────────────────── */
.page-home .btn-modern { padding: 14px 32px; border-radius: 50px; text-decoration: none; font-weight: 600; transition: .3s ease; display: inline-flex; align-items: center; justify-content: center; min-width: 200px; }
.page-home .btn-outline-white { border: 1.5px solid rgba(255,255,255,.7); color: #fff; background: transparent; }
.page-home .btn-outline-white:hover { background: #fff; color: #16482a; }
.home-hero { padding: 140px 0; text-align: center; color: #fff; min-height: 90vh; position: relative; overflow: hidden; }
#gsap-dots-container { position: absolute; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; }
.home-hero-badge { background: rgba(255,255,255,.12); padding: 8px 18px; border-radius: 50px; font-size: 14px; backdrop-filter: blur(10px); }
.home-hero-title { font-size: clamp(2.2rem, 5vw, 4.5rem); line-height: 1.2; font-weight: 700; }
.home-hero-text { color: rgba(255,255,255,.9); font-size: clamp(1rem, 2vw, 1.2rem); max-width: 750px; margin: 0 auto 35px; line-height: 1.8; }
.home-hero .gap-5 { gap: 1.5rem; }
.notice-box { background: #fcfcfc; border-left: 4px solid #2b7b4b; border-radius: 12px; }
.notice-box-title { color: #2b7b4b; font-weight: 700; margin-bottom: 12px; font-size: 1.25rem; }
.notice-box-body p { font-size: 16px; color: #4b5563; line-height: 1.8; margin-bottom: 10px; }
.notice-box-body p:last-child { margin-bottom: 0; }
.notice-box-body a { color: #2b7b4b; }
.partner-icon { width: 50px; height: 50px; background-color: var(--accent-teal); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 20px; margin-bottom: 15px; }
.testimonial-avatar { width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: bold; flex-shrink: 0; }
@media (max-width: 768px) {
  .page-home .page-header { padding: 100px 20px !important; min-height: auto !important; }
  .page-home .btn-modern { width: 100%; max-width: 280px; }
}
@media (max-width: 500px) {
  .page-home .new-about, .page-home .new-about-two { margin-top: -150px !important; }
  .notdisplay-in-mobile { display: none !important; }
}

/* ── Service accordion ───────────────────────────────────────────────── */
.service-acc-card { border: 1px solid #eee; margin-bottom: 15px; border-radius: var(--radius-md) !important; box-shadow: var(--shadow-sm); overflow: hidden; }
.service-acc-card .btn-link { color: var(--navy-dark); font-weight: 700; text-decoration: none; padding: 15px 20px; display: flex; align-items: center; justify-content: space-between; border: none; outline: none; box-shadow: none; }
.service-acc-card .btn-link:hover, .service-acc-card .btn-link:focus { text-decoration: none; }
.service-acc-card .btn-link .fa-chevron-down { transition: transform .25s ease; }
.service-acc-card .btn-link:not(.collapsed) .fa-chevron-down { transform: rotate(180deg); }
.service-acc-icon { width: 40px; height: 40px; background-color: rgba(0,180,182,.1); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--accent-teal); font-size: 16px; margin-right: 15px; flex-shrink: 0; }
.service-acc-body { color: #4b5563; font-size: 16px; line-height: 1.6; padding: 0 20px 20px 75px; background-color: #fff; border-top: 1px solid #f8f9fa; }
@media (max-width: 576px) { .service-acc-body { padding-left: 20px; } }

/* ── Services landing / detail ───────────────────────────────────────── */
.service-tile { background: #fff; border-radius: var(--radius-md); padding: 28px; height: 100%; border: 1px solid #edf2ef; box-shadow: var(--shadow-sm); transition: .3s ease; display: flex; flex-direction: column; }
.service-tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.service-tile h3 { font-size: 1.15rem; font-weight: 700; color: var(--navy-dark); margin: 16px 0 10px; }
.service-tile h3 a { color: inherit; }
.service-tile p { color: #4b5563; font-size: 15px; line-height: 1.7; flex: 1; }
.service-tile .service-acc-icon { width: 52px; height: 52px; font-size: 20px; margin: 0; }
.cta-band { background: var(--brand-deep); color: #fff; border-radius: var(--radius-lg); padding: 50px 40px; text-align: center; }
.cta-band h2 { font-family: var(--font-serif); font-size: 2.2rem; margin-bottom: 12px; }
.cta-band p { color: rgba(255,255,255,.85); font-size: 1.05rem; max-width: 640px; margin: 0 auto 24px; }

/* ── Rich content (blog posts, custom pages, service detail) ─────────── */
.content-text { color: #4b5563; font-size: 17px; line-height: 1.8; }
.content-text h2, .content-text h3, .content-text h4 { color: var(--hero-bg); font-weight: 700; margin: 40px 0 20px; }
.content-text h2 { font-size: 1.75rem; }
.content-text h3 { font-size: 1.4rem; }
.content-text img { max-width: 100%; height: auto; border-radius: var(--radius-md); }
.content-text ul, .content-text ol { padding-left: 20px; margin-bottom: 1.5rem; }
.content-text li { margin-bottom: .5rem; }
.content-text blockquote { border-left: 5px solid var(--accent-teal); padding: 20px 30px; background: #f8fbfb; border-radius: 0 var(--radius-md) var(--radius-md) 0; margin: 40px 0; font-style: italic; }
.content-text table { width: 100%; margin-bottom: 1.5rem; border-collapse: collapse; }
.content-text th, .content-text td { border: 1px solid #e5e7eb; padding: 10px 12px; }
.content-text a { color: var(--accent-teal); text-decoration: underline; }

/* ── Blog ────────────────────────────────────────────────────────────── */
.blog-card-img { background: #e5e7eb; display: flex; align-items: center; justify-content: center; height: 240px; overflow: hidden; }
.blog-card-img img { width: 100%; height: 100%; object-fit: cover; }
.blog-card-meta { font-size: 13px; color: var(--accent-teal); font-weight: 600; text-transform: uppercase; letter-spacing: .5px; }
.blog-card-title { font-size: 1.25rem; margin-bottom: 15px; color: var(--hero-bg); }
.blog-card-title a { color: inherit; }
.blog-featured { background: #f3f4f6; border-radius: var(--radius-lg); max-height: 450px; display: flex; align-items: center; justify-content: center; overflow: hidden; box-shadow: var(--shadow-sm); }
.blog-featured img { width: 100%; height: 100%; object-fit: cover; }
.sidebar-box { background: #f8fbfb; border-radius: var(--radius-md); border: 1px solid #e5e7eb; padding: 1.5rem; margin-bottom: 2rem; }
.sidebar-box h2 { color: var(--hero-bg); font-weight: 700; margin-bottom: 20px; font-size: 1.25rem; }
.sidebar-thumb { width: 60px; height: 60px; background-size: cover; background-position: center; border-radius: 8px; flex-shrink: 0; margin-right: 12px; background-color: #e5e7eb; }
.sidebar-post a { color: var(--hero-bg); font-weight: 600; font-size: 14px; line-height: 1.3; display: block; margin-bottom: 4px; }
.post-tags a { display: inline-block; background: #eef6f1; color: var(--brand); border-radius: 50px; padding: 4px 12px; font-size: 13px; margin: 0 6px 6px 0; }
.blog-filter-note { background: #eef6f1; border-radius: var(--radius-md); padding: 12px 18px; margin-bottom: 30px; }
.pagination-modern .page-link { border-radius: 50% !important; margin: 0 4px; width: 42px; height: 42px; display: flex; align-items: center; justify-content: center; color: var(--brand); border-color: #d1e7da; }
.pagination-modern .page-item.active .page-link { background: var(--brand); border-color: var(--brand); color: #fff; }

/* ── Shop ────────────────────────────────────────────────────────────── */
.product-card { display: flex; flex-direction: column; height: 100%; }
.product-card .service-content { display: flex; flex-direction: column; flex: 1; }
.product-img-wrap { position: relative; height: 240px; background: #f1f5f3; }
.product-img-wrap img { width: 100%; height: 100%; object-fit: cover; }
.product-img-placeholder { display: flex; align-items: center; justify-content: center; height: 100%; font-size: 3rem; color: #b7d3c2; }
.product-badge { position: absolute; top: 14px; left: 14px; background: #dc2626; color: #fff; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 50px; }
.product-cat { font-size: 12px; color: var(--accent-teal); font-weight: 700; text-transform: uppercase; letter-spacing: .6px; margin-bottom: 6px; }
.product-title { font-size: 1.2rem; margin-bottom: 10px; }
.product-title a { color: var(--hero-bg); }
.product-price { font-size: 1.3rem; font-weight: 700; color: var(--brand); margin: 6px 0 16px; }
.product-price del { color: #9ca3af; font-size: .95rem; font-weight: 500; margin-left: 8px; }
.product-price-ask { font-size: 1rem; color: #6b7280; font-weight: 600; }
.product-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; }
.product-actions .btn-modern { flex: 1 1 auto; justify-content: center; display: inline-flex; align-items: center; border: none; cursor: pointer; }
.product-actions-compact .btn-modern { padding: 10px 16px; font-size: .92rem; min-width: 0; }
.btn-outline-teal { border: 2px solid var(--accent-teal) !important; color: var(--accent-teal); background: transparent; }
.btn-outline-teal:hover { background: var(--accent-teal); color: #fff; }
.product-oos { color: #b91c1c; font-weight: 600; align-self: center; }
.shop-cats { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 40px; }
.shop-cats a { padding: 8px 20px; border-radius: 50px; background: #fff; border: 1px solid #d1e7da; color: var(--brand); font-weight: 600; font-size: 14px; }
.shop-cats a.active, .shop-cats a:hover { background: var(--brand); color: #fff; text-decoration: none; }
.product-gallery-main { background: #f1f5f3; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 1 / 1; display: flex; align-items: center; justify-content: center; }
.product-gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.product-thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.product-thumbs button { width: 72px; height: 72px; border-radius: 10px; overflow: hidden; border: 2px solid transparent; padding: 0; background: #f1f5f3; }
.product-thumbs button.active { border-color: var(--brand); }
.product-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.product-detail-price { font-size: 2rem; font-weight: 700; color: var(--brand); }
.qty-input { width: 90px; text-align: center; }
.product-meta-list { list-style: none; padding: 0; color: #6b7280; font-size: 14px; }
.product-meta-list li { margin-bottom: 4px; }

/* Cart & checkout */
.cart-table td, .cart-table th { vertical-align: middle; }
.cart-thumb { width: 64px; height: 64px; border-radius: 10px; object-fit: cover; background: #f1f5f3; }
.summary-card { background: #fff; border-radius: var(--radius-md); box-shadow: var(--shadow-sm); padding: 28px; border: 1px solid #edf2ef; }
.summary-row { display: flex; justify-content: space-between; padding: 6px 0; color: #4b5563; }
.summary-total { border-top: 1px solid #e5e7eb; margin-top: 8px; padding-top: 12px; font-weight: 700; font-size: 1.2rem; color: var(--hero-bg); }
.pay-option { display: flex; align-items: center; border: 2px solid #e5e7eb; border-radius: 12px; padding: 14px 16px; margin-bottom: 10px; cursor: pointer; transition: .2s; }
.pay-option:hover { border-color: #b7d3c2; }
.pay-option input { margin-right: 12px; }
.pay-option.selected { border-color: var(--brand); background: #f4faf6; }
.pay-option i { font-size: 1.4rem; margin-left: auto; color: #6b7280; }
.checkout-section { padding: 80px 0; background: var(--off-white); }
.form-control-modern.is-invalid { border-color: #dc2626; }
.order-status-pill { display: inline-block; padding: 4px 14px; border-radius: 50px; font-weight: 600; font-size: 13px; background: #eef6f1; color: var(--brand); }

/* Enquiry modal + AJAX form feedback */
.enquiry-modal { border-radius: var(--radius-md); border: none; }
.enquiry-product { background: #eef6f1; border-radius: 10px; padding: 10px 14px; font-weight: 600; color: var(--brand); }
.enquiry-product:empty { display: none; }
.form-feedback { font-size: 14px; }
.form-feedback.ok { color: #15803d; background: #ecfdf3; padding: 10px 14px; border-radius: 10px; }
.form-feedback.err { color: #b91c1c; background: #fef2f2; padding: 10px 14px; border-radius: 10px; }
.mw-toast { position: fixed; left: 50%; bottom: 30px; transform: translateX(-50%) translateY(20px); background: var(--hero-bg); color: #fff; padding: 12px 22px; border-radius: 50px; box-shadow: var(--shadow-lg); z-index: 2000; opacity: 0; transition: .3s ease; font-size: 15px; }
.mw-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.mw-toast a { color: #4be28d; font-weight: 600; margin-left: 8px; }

/* Mental health page */
.mh-card { background: #fff; border-radius: var(--radius-md); padding: 28px; height: 100%; border: 1px solid #edf2ef; box-shadow: var(--shadow-sm); }
.mh-card h3 { font-size: 1.15rem; font-weight: 700; color: var(--navy-dark); margin: 14px 0 8px; }
.mh-card p { color: #4b5563; font-size: 15px; line-height: 1.7; margin: 0; }
.crisis-note { background: #fff7ed; border-left: 5px solid #ea580c; border-radius: 12px; padding: 18px 22px; color: #7c2d12; }
.crisis-note a { color: #9a3412; font-weight: 700; }
.faq-card { border: 1px solid #eee; border-radius: var(--radius-md) !important; margin-bottom: 12px; overflow: hidden; }

/* 404 */
.error-code { font-size: clamp(5rem, 15vw, 9rem); font-weight: 800; color: var(--brand); line-height: 1; font-family: var(--font-serif); }

/* About page floating box */
.about-float-box { background: #fff; padding: 30px; border-radius: var(--radius-md); box-shadow: 0 15px 40px rgba(0,0,0,.06); position: relative; z-index: 3; margin-top: -40px; margin-left: -20px; border-left: 5px solid var(--accent-teal); width: calc(100% + 10px); }
.about-float-text { color: #4b5563; font-size: 15px; line-height: 1.7; }
.about-float-text strong { color: var(--accent-teal); }
.about-body p { margin-bottom: 1.5rem; }
.about-body strong { color: var(--navy-dark); }
@media (max-width: 576px) { .about-float-box { margin-left: 0; width: 100%; } }
.contact-icon { width: 50px; height: 50px; border-radius: 50%; background: rgba(0,180,182,.1); display: flex; align-items: center; justify-content: center; color: var(--accent-teal); font-size: 20px; flex-shrink: 0; }
.policy-card { padding: 40px 30px; background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); height: 100%; text-align: center; border: 1px solid rgba(0,0,0,.03); }
.policy-icon { width: 60px; height: 60px; background: rgba(0,180,182,.1); color: #22653d; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 24px; margin: 0 auto 20px; }
.policy-title { font-weight: 700; font-size: 1.25rem; margin-bottom: 15px; }
.policy-text { color: var(--text-light); font-size: 15px; line-height: 1.6; }
.carousel-btn { width: 50px; height: 50px; background-color: var(--accent-teal); border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 10px rgba(0,0,0,.2); color: #fff; font-size: 20px; }
.booking-copy p { font-size: 16px; color: #4b5563; line-height: 1.7; }
