/*
Theme Name: Electrify
Theme URI: https://www.electrify.org.uk/
Description: Electrify child theme for Twenty Twenty-Five. Montserrat, cream, near-black, orange and yellow. Includes header, footer, a full-width page template and editable block patterns for the home and terms pages.
Author: Electrify
Template: twentytwentyfive
Version: 1.0.0
Requires at least: 6.6
Text Domain: electrify
*/

/* ---------- Base ---------- */
html { scroll-behavior: smooth; }
body { -webkit-font-smoothing: antialiased; }
:where(.wp-site-blocks) > * { margin-block-start: 0; }
.el-section { padding-block: clamp(64px, 9vw, 120px); scroll-margin-top: 24px; }
.el-section > * + * { margin-block-start: 48px; }
.el-stack > * + * { margin-block-start: 18px !important; }

/* ---------- Type helpers ---------- */
.el-eyebrow { font-size: 13px !important; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--wp--preset--color--bronze); }
.has-night-background-color .el-eyebrow,
.has-dark-card-background-color .el-eyebrow,
.el-hero .el-eyebrow { color: var(--wp--preset--color--yellow); }
.el-intro { max-width: 780px; font-size: 18px; line-height: 1.6; color: var(--wp--preset--color--stone); }
.has-night-background-color .el-intro,
.el-hero .el-intro { color: var(--wp--preset--color--mist); }
.el-muted { color: var(--wp--preset--color--stone); }
.has-night-background-color .el-muted,
.has-dark-card-background-color .el-muted { color: var(--wp--preset--color--mist); }
.el-caption, .el-caption figcaption, figure.el-caption .wp-element-caption { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #9c958a; text-align: center; }
.el-highlight { color: var(--wp--preset--color--yellow); }

/* ---------- Hero ---------- */
.el-hero { background: radial-gradient(ellipse 80% 70% at 30% 0%, #2b1d0c 0%, #0e0c09 60%); color: #fff; overflow: hidden; }
.el-hero h1 { color: #fff; }
.el-hero .wp-block-columns { align-items: center; gap: clamp(48px, 6vw, 80px); }
.el-dot-list { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 24px; font-size: 15px; font-weight: 500; color: var(--wp--preset--color--mist); }
.el-dot-list li { display: flex; align-items: center; gap: 8px; }
.el-dot-list li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--wp--preset--color--yellow); flex: none; }

/* Hero phone stack */
.el-phones { position: relative; width: 100%; max-width: 520px; aspect-ratio: 520 / 600; margin-inline: auto; }
.el-phones > * { margin: 0 !important; }
.el-phone { position: absolute; aspect-ratio: 9 / 19; border: 8px solid #2a2622; border-radius: 32px; overflow: hidden; background: #000; box-shadow: 0 30px 60px -20px rgba(0,0,0,.8); }
.el-phone img { width: 100% !important; height: 100% !important; object-fit: cover; object-position: top; display: block; }
.el-phone--left { left: 0; top: 8%; width: 38%; transform: rotate(-6deg); }
.el-phone--right { right: 0; top: 8%; width: 38%; transform: rotate(6deg); }
.el-phone--centre { left: 50%; top: 0; width: 42%; transform: translateX(-50%); border-width: 9px; border-radius: 36px; background: #f6f3ec; box-shadow: 0 40px 80px -24px rgba(0,0,0,.9); z-index: 2; }

/* ---------- Cards ---------- */
.el-card { background: #fff; border-radius: 20px; padding: 28px; box-shadow: 0 1px 3px rgba(60,40,10,.08); }
.el-card > * + * { margin-block-start: 12px; }
.el-card--cream { background: var(--wp--preset--color--cream); box-shadow: none; border-radius: 24px; padding: clamp(28px, 4vw, 40px); }
.el-card--large { border-radius: 24px; padding: clamp(28px, 4vw, 40px); display: flex; flex-direction: column; }
.el-card--large > * + * { margin-block-start: 18px; }
.el-card--dark { background: var(--wp--preset--color--dark-card); color: #fff; box-shadow: none; }
.el-card--dark h3 { color: #fff; }
.el-card--step { background: rgba(255,255,255,.07); box-shadow: none; }
.el-card--step h3 { color: #fff; }
.el-card h3 { font-size: 20px; font-weight: 700; line-height: 1.25; }
.el-card--large h3, .el-card--cream h3 { font-size: 26px; font-weight: 800; }
.el-card p { font-size: 15px; line-height: 1.6; }

.el-step-num { width: 44px; height: 44px; border-radius: 50%; background: var(--wp--preset--color--orange); color: var(--wp--preset--color--ink); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 18px; }

.el-badge { display: inline-block; background: var(--wp--preset--color--yellow); color: var(--wp--preset--color--ink); font-size: 13px !important; font-weight: 700; padding: 5px 14px; border-radius: 999px; }

/* Lists inside cards */
.el-pills { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: 15px; font-weight: 600; }
.el-pills li { background: #fff; border-radius: 14px; padding: 14px 16px; display: flex; gap: 12px; align-items: center; }
.el-pills li::before, .el-ticks li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--wp--preset--color--orange); flex: none; }
.el-ticks { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 12px; font-size: 15px; line-height: 1.5; }
.el-ticks li { display: flex; gap: 12px; align-items: baseline; }
.el-ticks li::before { transform: translateY(-2px); }
.el-card--dark .el-ticks { color: var(--wp--preset--color--mist); }
.el-card--dark .el-ticks li::before { background: var(--wp--preset--color--yellow); }

.el-topline { border-top: 3px solid var(--wp--preset--color--orange); padding-top: 20px; }
.el-topline > * + * { margin-block-start: 10px; }
.el-topline h3 { font-size: 19px; font-weight: 700; }
.el-topline p { font-size: 15px; line-height: 1.6; }

/* Small phone in installer cards */
.el-phone-sm { margin-top: auto !important; padding-top: 12px; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.el-phone-sm img { width: min(220px, 70%) !important; aspect-ratio: 9 / 17; object-fit: contain; border: 8px solid #2a2622; border-radius: 30px; background: #000; box-shadow: 0 24px 48px -20px rgba(0,0,0,.55); }
.el-phone-sm.is-light img { background: #f4f1ea; }
.el-phone-sm figcaption { font-size: 13px; font-weight: 600; text-align: center; margin: 0; color: var(--wp--preset--color--stone); }
.el-card--dark .el-phone-sm figcaption { color: #bdb6aa; }

/* Browser-style frame for Go deeper */
.el-frame img { background: #2a2622; padding: 10px; border-radius: 22px; box-shadow: 0 40px 80px -36px rgba(40,25,5,.55); width: 100%; height: auto; }

/* Quote */
.el-quote { border-left: 6px solid var(--wp--preset--color--orange) !important; padding-left: clamp(20px, 3vw, 36px) !important; margin: 0; }
.el-quote p { font-weight: 700; font-size: clamp(26px, 3vw, 38px); line-height: 1.25; letter-spacing: -.02em; color: #fff; }

/* FAQ */
.el-faq > * + * { margin-block-start: 10px !important; }
.el-faq .wp-block-details { background: var(--wp--preset--color--cream); border-radius: 18px; padding: 0 24px; }
.el-faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 0; font-weight: 700; font-size: 18px; line-height: 1.35; }
.el-faq summary::-webkit-details-marker { display: none; }
.el-faq summary::after { content: "+"; flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--wp--preset--color--yellow); display: flex; align-items: center; justify-content: center; font-size: 20px; font-weight: 600; transition: transform .2s; }
.el-faq details[open] summary::after { transform: rotate(45deg); }
.el-faq details p { padding-bottom: 24px; margin: 0; font-size: 16px; line-height: 1.65; color: #3d3933; }

/* Closing CTA */
.el-cta { text-align: center; }
.el-cta h2 { color: #fff; font-size: clamp(34px, 5vw, 60px); }

/* Buttons */
.wp-block-button.is-style-yellow .wp-block-button__link { background: var(--wp--preset--color--yellow); color: var(--wp--preset--color--ink); }
.wp-block-button.is-style-small .wp-block-button__link { padding: 11px 20px; font-size: 15px; }

/* ---------- Header and footer ---------- */
.el-header { border-bottom: 1px solid #e6dfd2; }
.el-header .wp-block-navigation { font-size: 15px; font-weight: 600; }
.el-header .wp-block-navigation a:hover { color: var(--wp--preset--color--orange); }
.el-footer { color: #bdb6aa; }
.el-footer a { color: #bdb6aa; text-decoration: none; }
.el-footer a:hover { color: var(--wp--preset--color--yellow); }
.el-footer h4 { color: #fff; font-size: 14px; font-weight: 700; }
.el-footer .el-links > * + * { margin-block-start: 10px !important; }
.el-footer .el-links p { font-size: 14px; }
.el-footer .el-legal { border-top: 1px solid #2a2622; padding-top: 24px; font-size: 13px; }
.el-soon { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; background: #2a2622; color: var(--wp--preset--color--yellow); padding: 3px 8px; border-radius: 999px; margin-left: 6px; }

/* Legal pages */
.el-legal-page > * + * { margin-block-start: 14px; }
.el-legal-page h1 { font-size: clamp(36px, 5vw, 56px); }
.el-legal-page h2 { font-size: 22px; font-weight: 800; letter-spacing: 0; line-height: 1.3; margin-block-start: 36px !important; }
.el-legal-page p { color: #3d3933; line-height: 1.7; }

/* ---------- Floating mobile button ---------- */
.el-float { display: none; }
@media (max-width: 859px) {
  .el-float { display: block; position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 50; text-align: center; background: #f37c00; color: #1b1b1b !important; text-decoration: none; font-weight: 700; font-size: 17px; padding: 17px; border-radius: 999px; box-shadow: 0 10px 30px -8px rgba(14,12,9,.6); }
  body.has-el-float { padding-bottom: 88px; }
  .el-header .el-nav-links { display: none; }
}
