/*
 * Storefront page sections: homepage (F1) and collection page (F2).
 * The shared components are in theme.css.
 */

/* ---------- Scroll reveal, driven by theme.js ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .5s ease, transform .5s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

.ec-home-section { padding: 44px 0; }
.ec-picture-empty { align-items: center; background: linear-gradient(135deg, #ece7df, #f7f4ef); color: #b9b0a2; display: flex; font-size: 28px; height: 100%; justify-content: center; width: 100%; }

/* ---------- Hero and trust bar (F1) ---------- */
.ec-hero { background: var(--ec-black); color: #ffffff; }
.ec-hero-slide { align-items: center; background: radial-gradient(ellipse at 70% 40%, #2a2118, var(--ec-black) 70%); display: flex; min-height: 440px; overflow: hidden; position: relative; }
.ec-hero-image { height: 100%; left: 0; object-fit: cover; position: absolute; top: 0; width: 100%; }
.ec-hero-image + .ec-hero-body::before { background: linear-gradient(90deg, rgba(6, 7, 8, .85), rgba(6, 7, 8, .1) 70%); content: ""; inset: 0; pointer-events: none; position: absolute; }
.ec-hero-body { padding-bottom: 48px; padding-top: 48px; position: relative; }
.ec-hero-body > * { position: relative; }
.ec-hero-title { font-family: var(--ec-serif); font-size: 54px; font-weight: 500; letter-spacing: .01em; line-height: 1.05; margin: 0 0 16px; max-width: 620px; }
.ec-hero-script { color: var(--ec-gold-bright); display: block; font-size: 64px; line-height: .9; }
.ec-hero-text { color: #e6e1d8; font-size: 15px; line-height: 1.6; margin: 0 0 24px; max-width: 420px; }
.ec-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.ec-hero-trust { background: #0d0e10; border-top: 1px solid rgba(255, 255, 255, .08); padding: 16px 0; }
.ec-hero-trust-row { display: flex; flex-wrap: wrap; gap: 14px 28px; justify-content: space-around; }
.ec-hero-trust-item { align-items: center; display: flex; gap: 10px; }
.ec-hero-trust-item i { color: var(--ec-gold-bright); font-size: 22px; }
.ec-hero-trust-item strong { display: block; font-size: 11.5px; letter-spacing: .03em; text-transform: uppercase; }
.ec-hero-trust-item span { color: #b5b1a9; display: block; font-size: 11px; }

/* ---------- Embroidery styles ---------- */
.ec-style-grid { display: grid; gap: 16px; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.ec-style-card { background: #ffffff; border: 1px solid var(--ec-line); border-radius: var(--ec-radius); display: block; overflow: hidden; }
.ec-style-card:hover { box-shadow: 0 8px 22px rgba(0, 0, 0, .08); }
.ec-style-media { aspect-ratio: 4 / 3; display: block; overflow: hidden; }
.ec-style-media img { height: 100%; object-fit: cover; width: 100%; }
.ec-style-name { display: block; font-size: 12.5px; font-weight: 600; padding: 9px 6px; text-align: center; }

/* ---------- Product types ---------- */
.ec-type-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(150px, 210px)); justify-content: center; }
.ec-type-card { background: #ffffff; border: 1px solid var(--ec-line); border-radius: var(--ec-radius); display: block; overflow: hidden; }
.ec-type-card:hover { box-shadow: 0 8px 22px rgba(0, 0, 0, .08); }
.ec-type-media { aspect-ratio: 1 / 1; background: #ffffff; display: block; overflow: hidden; }
.ec-type-media img { height: 100%; object-fit: contain; width: 100%; }
.ec-type-name { display: block; font-size: 13px; font-weight: 600; padding: 10px; text-align: center; }
.ec-type-name i { color: var(--ec-gold); font-size: 10px; margin-right: 6px; }
.ec-type-name small { color: var(--ec-muted); font-weight: 400; margin-top: 2px; }

/* ---------- Signature collection ---------- */
.ec-signature-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.ec-signature-card { background: #16171a; border: 1px solid rgba(255, 255, 255, .1); border-radius: var(--ec-radius); color: #ffffff; display: flex; min-height: 130px; overflow: hidden; }
.ec-signature-card:hover { border-color: var(--ec-gold); color: #ffffff; }
.ec-signature-body { display: flex; flex: 1 1 50%; flex-direction: column; justify-content: space-between; padding: 16px; }
.ec-signature-body strong { font-family: var(--ec-serif); font-size: 18px; font-weight: 500; line-height: 1.2; }
.ec-signature-link { font-size: 11px; letter-spacing: .05em; text-transform: uppercase; }
.ec-signature-media { flex: 1 1 50%; overflow: hidden; }
.ec-signature-media img { height: 100%; object-fit: cover; width: 100%; }
.ec-signature-media .ec-picture-empty { background: linear-gradient(135deg, #222327, #2e2b26); color: #6c675e; }

/* ---------- Creations, reviews, why choose, stats, instagram ---------- */
.ec-creation-grid { display: grid; gap: 16px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.ec-creation { background: #ffffff; border-radius: var(--ec-radius); margin: 0; overflow: hidden; }
.ec-creation img { aspect-ratio: 4 / 3; display: block; object-fit: cover; width: 100%; }
.ec-creation figcaption { font-size: 12.5px; font-weight: 600; padding: 9px 10px; }
.ec-review-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.ec-why-list { display: grid; gap: 16px; }
.ec-why-item { align-items: center; display: flex; gap: 14px; }
.ec-why-item strong { display: block; font-size: 14px; }
.ec-why-item p { color: var(--ec-muted); font-size: 12.5px; margin: 0; }
.ec-why-item .ec-step-icon { flex: none; margin: 0; }
.ec-stat-row { display: grid; gap: 18px; grid-template-columns: repeat(2, minmax(0, 1fr)); text-align: center; }
.ec-home-stat strong { color: var(--ec-gold-bright); display: block; font-family: var(--ec-serif); font-size: 26px; font-weight: 500; }
.ec-home-stat span { color: #d6d2ca; font-size: 12px; }
.ec-insta-grid { display: grid; gap: 6px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ec-insta-grid img { aspect-ratio: 1 / 1; display: block; object-fit: cover; width: 100%; }

/* ---------- Bulk band ---------- */
.ec-bulk-band { background: var(--ec-black); color: #ffffff; padding: 40px 0; }
.ec-bulk-inner { align-items: center; display: flex; flex-wrap: wrap; gap: 20px; justify-content: space-between; }
.ec-bulk-title { font-family: var(--ec-serif); font-size: 28px; font-weight: 500; margin: 6px 0; }
.ec-bulk-text { color: #d6d2ca; margin: 0; }

/* ---------- Collection page (F2) ---------- */
.ec-collection-hero { background: var(--ec-cream-soft); min-height: 430px; overflow: hidden; position: relative; }
.ec-collection-hero-image { height: 100%; object-fit: cover; position: absolute; right: 0; top: 0; width: 58%; }
.ec-collection-hero-image::after { content: ""; }
.ec-collection-hero-body { padding-bottom: 24px; padding-top: 18px; position: relative; }
.ec-collection-hero-body .ec-page-heading { font-size: 50px; margin-top: 6px; max-width: 480px; }
.ec-collection-text { font-size: 16px; line-height: 1.5; margin: 12px 0 22px; max-width: 360px; }
.ec-collection-hero-body .ec-trust { background: transparent; border: 0; flex-wrap: wrap; justify-content: flex-start; margin-top: 26px; max-width: 520px; padding: 0; }
.ec-example-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.ec-example { border-radius: var(--ec-radius); display: grid; grid-template-columns: 1fr 1fr; margin: 0; overflow: hidden; position: relative; }
.ec-example > span { display: block; position: relative; }
.ec-example img { aspect-ratio: 3 / 4; display: block; object-fit: cover; width: 100%; }
.ec-example em { background: rgba(0, 0, 0, .6); border-radius: 10px; bottom: 8px; color: #ffffff; font-size: 10px; font-style: normal; left: 50%; letter-spacing: .05em; padding: 2px 8px; position: absolute; text-transform: uppercase; transform: translateX(-50%); }
.ec-example-handle { align-items: center; background: #ffffff; border-radius: 50%; display: flex; font-size: 14px; height: 26px; justify-content: center; left: 50%; position: absolute; top: 50%; transform: translate(-50%, -50%); width: 26px; }
.ec-option-title { font-size: 18px; font-weight: 700; margin: 0; text-align: center; text-transform: uppercase; }
.ec-option-sub { color: var(--ec-muted); font-size: 12.5px; margin: 2px 0 14px; text-align: center; }
.ec-option-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); }
.ec-option { align-items: center; background: #ffffff; border: 1px solid var(--ec-line); border-radius: var(--ec-radius); display: flex; flex-direction: column; font-size: 12.5px; font-weight: 600; gap: 6px; padding: 16px 10px; text-align: center; }
.ec-option > i { color: var(--ec-gold); font-size: 22px; }
.ec-option small { color: var(--ec-gold-dark); font-weight: 600; }
.ec-faq .accordion-button { font-size: 13px; font-weight: 500; padding: 11px 14px; }
.ec-faq .accordion-button:not(.collapsed) { background: var(--ec-cream); box-shadow: none; color: var(--ec-ink); }
.ec-faq .accordion-body { color: var(--ec-muted); font-size: 13px; }
.ec-cta-panel { align-items: flex-start; background: var(--ec-black); border-radius: var(--ec-radius); color: #ffffff; display: flex; flex-direction: column; gap: 18px; height: 100%; justify-content: center; padding: 32px; }
.ec-cta-panel h2 { font-family: var(--ec-serif); font-size: 26px; font-weight: 500; margin: 0; max-width: 460px; }
.ec-cta-points { display: flex; flex-wrap: wrap; font-size: 12px; gap: 8px 18px; }
.ec-cta-points i { color: var(--ec-gold-bright); margin-right: 6px; }

@media (max-width: 991.98px) {
    .ec-style-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .ec-creation-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ec-collection-hero-image { display: block; height: 240px; position: static; width: 100%; }
}
@media (max-width: 575.98px) {
    .ec-home-section { padding: 32px 0; }
    .ec-style-grid, .ec-type-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ec-hero-title { font-size: 38px; }
    .ec-hero-script { font-size: 44px; }
    .ec-hero-slide { min-height: 380px; }
    .ec-hero-trust-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ec-collection-hero-body .ec-page-heading { font-size: 36px; }
}
