/* ══════════════════════════════════════════════════════════════
   CLAYPHYLL ENHANCEMENTS — v1.0
   Additive only. No existing styles removed.
   ══════════════════════════════════════════════════════════════
   1. Global Font Update
   2. Product Image Border-radius + Hover Zoom
   3. Shop By Concern Icon Size
   4. CP Tile Slider (Quick Section)
   5. FAQs Page Enhancements
   6. Process Page
   ══════════════════════════════════════════════════════════════ */

/* ────────────────────────────────────────────────────────────
   1. GLOBAL FONT UPDATE
   Headings → Playfair Display
   Body     → Georgia / Montserrat fallback chain
   ──────────────────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Inter:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500;1,600&display=swap');

:root {
    --cp-font-heading: 'Playfair Display', Georgia, serif;
    --cp-font-body:    'Inter', -apple-system, sans-serif;
}

h1, h2, h3, h4, h5, h6,
.sec-title, .logo-text, .page-hero h1,
.faq-title, .cp-process-title, .cp-landing-intro h2 {
    font-family: 'Playfair Display', serif !important;
    letter-spacing: -0.01em;
}

body,
p, span, a, button, input, select, textarea, li, td, th,
.faq-question, .faq-answer, .concern-hint, .pcard-tagline,
.sec-sub, .trust-text p, .tcard-text {
    font-family: var(--cp-font-body), var(--font, sans-serif);
}

.pcard-name,
.pcard-name a,
.pd-title,
.pp-product-name,
.pp-sticky-name,
.cart-prem-name {
    font-family: var(--product-name-font, var(--font, sans-serif)) !important;
}


/* ────────────────────────────────────────────────────────────
   2. PRODUCT IMAGE — border-radius + hover zoom
   Applies to all product pages (.pcard, .product-image, .product-gallery)
   ──────────────────────────────────────────────────────────── */
.pcard-img img,
.product-image img,
.product-gallery img,
.product-main-image img,
.pcard img {
    border-radius: 16px !important;
    transition: transform 0.35s ease, box-shadow 0.35s ease !important;
}

.pcard-img:hover img.img-main,
.product-image:hover img,
.product-gallery a:hover img,
.product-main-image:hover img {
    transform: scale(1.05) !important;
}

/* Keep hover swap images consistent */
.pcard-img img.img-hover {
    border-radius: 16px !important;
}


/* ────────────────────────────────────────────────────────────
   3. SHOP BY CONCERN — icon size 48–60px
   ──────────────────────────────────────────────────────────── */
.concern-icon {
    font-size: 52px !important;
    line-height: 1 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 60px !important;
    color: #31503c !important;
}

.concern-icon i,
.concern-icon svg {
    font-size: inherit !important;
    width: 1em !important;
    height: 1em !important;
}

@media (max-width: 600px) {
    .concern-icon { font-size: 40px !important; min-height: 48px !important; }
}


/* ────────────────────────────────────────────────────────────
   4. CP TILE SLIDER (Quick Section — Tile 3 & 4)
   ──────────────────────────────────────────────────────────── */
.cp-tile-slider {
    cursor: pointer;
    position: relative;
    overflow: hidden;
    /* inherits quick-tile layout (aspect-ratio, border-radius, etc.) */
}

/* Track: sized container, all slides stack inside */
.cp-slider-track {
    position: relative;
    width: 100%;
    height: 100%;
    /* Drives tile height — matches .quick-tile aspect-ratio 4/2.5 */
    aspect-ratio: 4 / 2.5;
}

/* All slides absolutely fill the track */
.cp-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.55s ease;
    pointer-events: none;
    z-index: 1;
}

/* Active slide is visible and on top */
.cp-slide.active {
    opacity: 1;
    pointer-events: auto;
    z-index: 2;
}

.cp-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: inherit;
}

/* ── Arrows ── */
.cp-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: rgba(255,255,255,0.85);
    border: none;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    font-size: 18px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.2s ease, background 0.2s ease;
    color: #31503c;
    font-weight: 700;
    padding: 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.18);
}

.cp-tile-slider:hover .cp-arrow { opacity: 1; }
.cp-arrow:hover { background: rgba(255,255,255,1); }

.cp-prev { left: 8px; }
.cp-next { right: 8px; }

/* ── Dots ── */
.cp-dots {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 4px;
    z-index: 10;
    flex-wrap: wrap;
    justify-content: center;
    max-width: 80%;
    padding: 3px 6px;
    background: rgba(0,0,0,0.18);
    border-radius: 12px;
}

.cp-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: rgba(255,255,255,0.55);
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
    flex-shrink: 0;
}

.cp-dot.active {
    background: #fff;
    transform: scale(1.3);
}

/* Mobile: smaller arrows */
@media (max-width: 600px) {
    .cp-arrow { width: 22px; height: 22px; font-size: 14px; opacity: 1; }
    .cp-dots { bottom: 5px; }
    .cp-dot { width: 4px; height: 4px; }
}


/* ────────────────────────────────────────────────────────────
   5. FAQs PAGE ENHANCEMENTS (cp-faqs-page)
   Builds on existing .faq-container / .faq-item styles
   ──────────────────────────────────────────────────────────── */
.cp-faqs-page .faq-subtitle {
    text-align: center;
    color: #6b7280;
    font-size: 14px;
    margin: -8px 0 28px;
    font-family: var(--cp-font-body);
}

.cp-faqs-page .faq-item {
    border-radius: 10px;
    border: 1px solid #e8e0d4;
    margin-bottom: 10px;
    overflow: hidden;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
    scroll-margin-top: 110px; /* offset for sticky header */
}

.cp-faqs-page .faq-item:hover {
    border-color: #c8a87a;
    box-shadow: 0 2px 12px rgba(0,0,0,0.07);
}

.cp-faqs-page .faq-item.active {
    border-color: #31503c;
    box-shadow: 0 4px 20px rgba(49,80,60,0.12);
}

/* Highlighted target (from ?q=N) */
.cp-faqs-page .faq-item.cp-faq-target {
    border-color: #31503c;
    box-shadow: 0 0 0 3px rgba(49,80,60,0.18), 0 4px 20px rgba(49,80,60,0.12);
    animation: cpHighlight 1.2s ease forwards;
}

@keyframes cpHighlight {
    0%   { background: rgba(49,80,60,0.07); }
    100% { background: transparent; }
}

.cp-faqs-page .faq-question {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 16px 20px;
    text-align: left;
    background: linear-gradient(135deg, var(--brown-dark) 0%, #6b6347 50%, var(--brown-dark) 100%);
    border: none;
    cursor: pointer;
    font-family: var(--cp-font-body);
    font-size: 25px;
    font-weight: 500;
    color: white;
    line-height: 1.45;
    transition: background 0.15s ease;
}

.cp-faqs-page .faq-question:hover { background: linear-gradient(135deg, var(--brown-dark) 0%, #6b6347 50%, var(--brown-dark) 100%); }

.cp-faqs-page .faq-item.active .faq-question {
    font-weight: 600;
}

/* FAQ numbers - light brown/orange color */
.faq-num {
    font-family: var(--cp-font-heading);
    font-size: 13px;
    font-weight: 700;
    color: #c8a87a !important;
    min-width: 22px;
    flex-shrink: 0;
}

.cp-faqs-page .faq-num {
    font-family: var(--cp-font-heading);
    font-size: 13px;
    font-weight: 700;
    color: white !important;
    min-width: 22px;
    flex-shrink: 0;
}

.cp-faqs-page .faq-qtext {
    flex: 1;
}

.cp-faqs-page .faq-question .icon {
    font-size: 20px;
    font-weight: 300;
    color: #31503c;
    flex-shrink: 0;
    transition: transform 0.25s ease;
    line-height: 1;
    min-width: 20px;
    text-align: center;
}

.cp-faqs-page .faq-item.active .faq-question .icon {
    transform: rotate(0deg);
}

.cp-faqs-page .faq-item.active .faq-answer {
    background: cornsilk;
    color: #4b5563;
}

.cp-faqs-page .faq-answer {
    display: none;
    padding: 0 20px 18px 52px;
    font-size: 17px;
    line-height: 1.75;
    color: #4b5563;
    font-family: var(--cp-font-body);
    animation: cpFadeIn 0.25s ease;
}

@keyframes cpFadeIn {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}

.cp-faqs-page .faq-answer p { margin: 0 0 10px; }
.cp-faqs-page .faq-answer p:last-child { margin-bottom: 0; }
.cp-faqs-page .faq-answer strong { color: #1f2937; }

/* ── Perspective / Truth blocks (faq2) ── */
.cp-faqs-page .cp-perspective,
.cp-faqs-page .cp-truth {
    margin-bottom: 24px;
}
.cp-faqs-page .cp-perspective:last-child,
.cp-faqs-page .cp-truth:last-child {
    margin-bottom: 0;
}
.cp-faqs-page .cp-perspective strong,
.cp-faqs-page .cp-truth strong {
    display: block;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #1a1a1a;
}
.cp-faqs-page .cp-perspective p,
.cp-faqs-page .cp-truth p {
    font-size: 18px;
    line-height: 1.7;
    margin: 0 0 0 36px;
    color: #374151;
}

@media (max-width: 600px) {
    .cp-faqs-page .faq-question { padding: 14px 16px; font-size: 14px; }
    .cp-faqs-page .faq-answer  { padding: 0 16px 14px 38px; }
    .cp-faqs-page .cp-perspective strong,
    .cp-faqs-page .cp-truth strong { font-size: 18px; }
    .cp-faqs-page .cp-perspective p,
    .cp-faqs-page .cp-truth p { font-size: 16px; margin-left: 20px; }
}


/* ────────────────────────────────────────────────────────────
   6. PROCESS PAGE
   ──────────────────────────────────────────────────────────── */
.cp-process-page {
    padding: 40px 0 64px;
}

/* ── Step Nav Tabs ── */
.cp-process-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 36px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e8e0d4;
}

.cp-process-tab {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 500;
    color: #4b5563;
    background: #f9f4ec;
    text-decoration: none;
    transition: all 0.2s ease;
    border: 1px solid #e8e0d4;
    font-family: var(--cp-font-body);
}

.cp-process-tab:hover {
    background: #f0ebe0;
    border-color: #c8a87a;
    color: #1a1a1a;
}

.cp-process-tab.active {
    background: #31503c;
    border-color: #31503c;
    color: #fff;
    box-shadow: 0 2px 10px rgba(49,80,60,0.25);
}

.cp-tab-icon { font-size: 16px; }
.cp-tab-label { font-weight: 600; }

/* ── Content ── */
.cp-process-content {
    max-width: 780px;
    margin: 0 auto;
}

.cp-process-header {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 32px;
}

.cp-process-icon {
    font-size: 56px;
    line-height: 1;
    flex-shrink: 0;
}

.cp-process-label {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #c8a87a;
    margin-bottom: 4px;
    font-family: var(--cp-font-body);
}

.cp-process-title {
    font-family: var(--cp-font-heading) !important;
    font-size: 28px;
    color: #1a1a1a;
    margin-bottom: 6px;
    line-height: 1.25;
}

.cp-process-tagline {
    font-style: italic;
    color: #6b7280;
    font-size: 15px;
    font-family: var(--cp-font-heading);
}

.cp-process-text p {
    font-size: 16px;
    line-height: 1.8;
    color: #374151;
    margin-bottom: 18px;
    font-family: var(--cp-font-body);
}

.cp-process-highlights {
    margin-top: 28px;
    background: #f6f2ea;
    border-radius: 12px;
    padding: 22px 26px;
    border-left: 4px solid #31503c;
}

.cp-process-highlights h4 {
    font-family: var(--cp-font-heading) !important;
    font-size: 15px;
    color: #31503c;
    margin-bottom: 14px;
}

.cp-process-highlights ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.cp-process-highlights li {
    background: #fff;
    border: 1px solid #d4c4a8;
    border-radius: 6px;
    padding: 5px 12px;
    font-size: 13px;
    font-weight: 500;
    color: #31503c;
    font-family: var(--cp-font-body);
}

.cp-process-footer-nav {
    display: flex;
    gap: 12px;
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid #e8e0d4;
}

/* ── Summary / Manifesto ── */
.cp-manifesto-intro p {
    font-size: 16px;
    line-height: 1.8;
    color: #374151;
    margin-bottom: 16px;
    font-family: var(--cp-font-body);
}

.cp-steps-summary {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 28px;
}

.cp-summary-card {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 20px;
    background: #f6f2ea;
    border-radius: 12px;
    text-decoration: none;
    border: 1px solid #e8e0d4;
    transition: all 0.2s ease;
}

.cp-summary-card:hover {
    background: #eee7d8;
    border-color: #c8a87a;
    transform: translateX(4px);
}

.cp-summary-icon { font-size: 26px; flex-shrink: 0; }
.cp-summary-card strong { display: block; font-size: 14px; color: #1a1a1a; margin-bottom: 2px; font-family: var(--cp-font-body); }
.cp-summary-card p { font-size: 13px; color: #6b7280; margin: 0; font-family: var(--cp-font-body); }

/* ── Landing ── */
.cp-landing-intro {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 40px;
}

.cp-landing-intro h2 {
    font-family: var(--cp-font-heading) !important;
    font-size: 30px;
    margin-bottom: 12px;
}

.cp-landing-intro p {
    font-size: 16px;
    color: #6b7280;
    font-family: var(--cp-font-body);
}

.cp-steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.cp-step-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 24px 20px;
    background: #f9f4ec;
    border-radius: 16px;
    border: 1px solid #e8e0d4;
    text-decoration: none;
    transition: all 0.25s ease;
}

.cp-step-card:hover {
    background: #f0ebe0;
    border-color: #c8a87a;
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

.cp-step-icon { font-size: 36px; }

.cp-step-card strong {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #c8a87a;
    font-family: var(--cp-font-body);
}

.cp-step-card h3 {
    font-family: var(--cp-font-heading) !important;
    font-size: 17px;
    color: #1a1a1a;
    margin: 0;
    line-height: 1.3;
}

.cp-step-card p {
    font-size: 13px;
    color: #6b7280;
    margin: 0;
    font-family: var(--cp-font-body);
    line-height: 1.5;
}

@media (max-width: 768px) {
    .cp-steps-grid { grid-template-columns: repeat(2, 1fr); }
    .cp-process-header { flex-direction: column; gap: 12px; }
    .cp-process-icon { font-size: 40px; }
    .cp-process-title { font-size: 22px !important; }
    .cp-process-nav { gap: 6px; }
    .cp-process-tab { padding: 6px 12px; font-size: 12px; }
}

@media (max-width: 480px) {
    .cp-steps-grid { grid-template-columns: 1fr; }
    .cp-process-footer-nav { flex-direction: column; }
}
