/*
Theme Name: Ebony Credit Child
Theme URI: https://www.ebonycredit.com/
Description: Astra child theme for Ebony Credit Solutions — business credit & funding. ACF-driven page templates.
Author: Ebony Credit Solutions
Template: astra
Version: 1.0.0
Text Domain: ebony-credit-child
*/

:root {
  --ec-bg: #FFFFFF;
  --ec-surface: #F7F5F1;
  --ec-dark: #131A24;
  --ec-ink: #1E2430;
  --ec-muted: #6A6A6A;
  --ec-accent: #D67900;
  --ec-accent-2: #C96B00;
  --ec-gold: #D6B981;
  --ec-radius-sm: 4px;
  --ec-radius-md: 8px;
}

/* ---- Base ---- */
.ec-page { font-family: 'Muli', sans-serif; color: var(--ec-ink); }
.ec-wrap { max-width: 1140px; margin: 0 auto; padding: 0 24px; }
.ec-section { padding: 72px 0; background: var(--ec-bg); }
.ec-section--tint { background: var(--ec-surface); }
.ec-band { background: var(--ec-dark); color: #fff; padding: 56px 0; }
.ec-band h2, .ec-band h3 { color: #fff; }
.ec-page h1, .ec-page h2, .ec-page h3, .ec-page h4 { font-family: 'Muli', sans-serif; font-weight: 700; line-height: 1.12; }
.ec-section-title { text-align: center; text-transform: uppercase; font-size: 34px; margin: 0 0 14px; letter-spacing: .5px; }
.ec-section-sub { text-align: center; color: var(--ec-muted); max-width: 70ch; margin: 0 auto 40px; font-size: 18px; }
.ec-band .ec-section-sub { color: #d8dce2; }
.ec-accent { color: var(--ec-accent); }

/* ---- Buttons ---- */
.ec-btn { display: inline-block; background: var(--ec-accent); color: #fff !important; text-transform: uppercase; font-weight: 700; letter-spacing: .8px; padding: 15px 34px; border-radius: var(--ec-radius-sm); text-decoration: none; border: 0; transition: background .15s ease; }
.ec-btn:hover { background: var(--ec-accent-2); color: #fff; }
.ec-btn--ghost { background: transparent; border: 2px solid #fff; }
.ec-btn--ghost:hover { background: #fff; color: var(--ec-dark) !important; }

/* ---- Hero ---- */
.ec-hero { position: relative; background-size: cover; background-position: center; }
.ec-hero::before { content: ""; position: absolute; inset: 0; background: rgba(12, 16, 24, .72); }
.ec-hero .ec-wrap { position: relative; padding-top: 110px; padding-bottom: 110px; text-align: center; }
.ec-hero h1 { color: #fff; text-transform: uppercase; font-size: clamp(34px, 5vw, 54px); margin: 0 0 14px; }
.ec-hero .ec-hero-sub { color: var(--ec-gold); text-transform: uppercase; font-weight: 700; font-size: clamp(17px, 2.2vw, 23px); margin: 0 0 30px; letter-spacing: .5px; }
.ec-hero--page .ec-wrap { padding-top: 80px; padding-bottom: 80px; }

/* ---- Pillars strip ---- */
.ec-pillars { padding: 34px 0; }
.ec-pillars .ec-wrap { display: flex; gap: 24px; justify-content: center; flex-wrap: wrap; }
.ec-pillar { flex: 1 1 220px; text-align: center; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; font-size: 17px; padding: 10px 0; border-top: 3px solid var(--ec-accent); }

/* ---- Cards ---- */
.ec-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 28px; }
.ec-card { background: #fff; border-radius: var(--ec-radius-md); padding: 34px 30px; box-shadow: 0 8px 28px rgba(60, 45, 20, .10); display: flex; flex-direction: column; }
.ec-section--tint .ec-card, .ec-band .ec-card { box-shadow: 0 8px 28px rgba(20, 16, 8, .16); }
.ec-band .ec-card { color: var(--ec-ink); }
.ec-band .ec-card h3 { color: var(--ec-ink); }
.ec-card h3 { font-size: 21px; text-transform: uppercase; color: var(--ec-accent); margin: 0 0 12px; }
.ec-card p { color: var(--ec-muted); margin: 0 0 16px; }
.ec-card .ec-card-link { margin-top: auto; font-weight: 700; color: var(--ec-accent); text-decoration: none; text-transform: uppercase; font-size: 14px; letter-spacing: .6px; }
.ec-card .ec-card-link:hover { color: var(--ec-accent-2); }

/* ---- Steps ---- */
.ec-step { position: relative; padding-top: 46px; }
.ec-step .ec-step-num { position: absolute; top: 20px; left: 30px; transform: translateY(-50%); background: var(--ec-accent); color: #fff; font-weight: 800; border-radius: 50%; width: 52px; height: 52px; display: flex; align-items: center; justify-content: center; font-size: 21px; }

/* ---- Offer / pricing ---- */
.ec-offer { max-width: 560px; margin: 0 auto; background: #fff; border-radius: var(--ec-radius-md); overflow: hidden; box-shadow: 0 10px 34px rgba(20, 16, 8, .18); color: var(--ec-ink); }
.ec-offer-head { background: var(--ec-dark); color: #fff; text-align: center; padding: 26px 24px; }
.ec-offer-head h3 { margin: 0; text-transform: uppercase; font-size: 22px; letter-spacing: 1px; color: #fff; }
.ec-offer-price { text-align: center; padding: 26px 24px 8px; }
.ec-offer-price .ec-price { font-size: 34px; font-weight: 800; color: var(--ec-accent); }
.ec-offer-price .ec-price-note { color: var(--ec-muted); font-size: 15px; margin-top: 6px; }
.ec-offer ul { list-style: none; margin: 18px 0 0; padding: 0 34px 10px; }
.ec-offer ul li { padding: 11px 0 11px 30px; border-bottom: 1px solid #efe9df; position: relative; color: var(--ec-ink); font-size: 16px; }
.ec-offer ul li:last-child { border-bottom: 0; }
.ec-offer ul li::before { content: "\2713"; position: absolute; left: 0; color: var(--ec-accent); font-weight: 800; }
.ec-offer .ec-offer-cta { padding: 20px 34px 32px; text-align: center; }
.ec-offer .ec-btn { width: 100%; }

/* ---- Benefits / prose ---- */
.ec-prose { max-width: 76ch; margin: 0 auto; font-size: 17px; line-height: 1.7; color: var(--ec-ink); }
.ec-prose p { margin: 0 0 18px; }

/* ---- Testimonials ---- */
.ec-testimonials { text-align: center; }
.ec-quote { max-width: 78ch; margin: 0 auto 34px; }
.ec-quote blockquote { font-size: 21px; line-height: 1.5; font-style: italic; margin: 0 0 12px; color: #fff; }
.ec-quote cite { color: var(--ec-gold); font-style: normal; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; font-size: 14px; }

/* ---- CTA banner ---- */
.ec-cta-banner { text-align: center; }
.ec-cta-banner h2 { text-transform: uppercase; font-size: 30px; margin: 0 0 10px; }
.ec-cta-banner p { color: #d8dce2; max-width: 62ch; margin: 0 auto 26px; font-size: 18px; }

/* ---- FAQ ---- */
.ec-faq { max-width: 820px; margin: 0 auto; }
.ec-faq details { background: #fff; border-radius: var(--ec-radius-md); box-shadow: 0 6px 20px rgba(60, 45, 20, .08); margin-bottom: 14px; padding: 0; overflow: hidden; }
.ec-faq summary { cursor: pointer; font-weight: 700; font-size: 17px; padding: 18px 22px; list-style: none; position: relative; padding-right: 48px; }
.ec-faq summary::-webkit-details-marker { display: none; }
.ec-faq summary::after { content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); color: var(--ec-accent); font-size: 24px; font-weight: 400; }
.ec-faq details[open] summary::after { content: "\2212"; }
.ec-faq .ec-faq-a { padding: 0 22px 18px; color: var(--ec-muted); line-height: 1.65; }

/* ---- Contact ---- */
.ec-contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 44px; align-items: start; }
.ec-contact-info h3 { text-transform: uppercase; font-size: 20px; color: var(--ec-accent); margin: 0 0 14px; }
.ec-contact-info p { margin: 0 0 10px; color: var(--ec-ink); }
.ec-contact-info a { color: var(--ec-accent); text-decoration: none; }
.ec-form-card { background: #fff; border-radius: var(--ec-radius-md); box-shadow: 0 8px 28px rgba(60, 45, 20, .10); padding: 30px; }

/* ---- Booking ---- */
.ec-booking { max-width: 860px; margin: 0 auto; }
.ec-booking-meta { text-align: center; color: var(--ec-muted); margin-bottom: 30px; font-size: 17px; }

/* ---- Responsive ---- */
@media (max-width: 820px) {
  .ec-section { padding: 52px 0; }
  .ec-hero .ec-wrap { padding-top: 76px; padding-bottom: 76px; }
  .ec-contact-grid { grid-template-columns: 1fr; }
}
