/*
Theme Name: ECT Chingford
Template: twentytwentyfive
Description: ECT Chingford site theme. Dark, cyan accents, Outfit type.
Version: 1.0.8
Text Domain: ect
*/

:root {
  --ect-cyan: #00d9ff;
  --ect-cyan-2: #06b6d4;
  --ect-bg: #0a0a0a;
  --ect-card: rgba(20, 20, 20, 0.6);
  --ect-border: rgba(0, 87, 102, 0.55);
  --ect-muted: #a1a1aa;
  --ect-gutter: clamp(16px, 4vw, 32px);
}

body { -webkit-font-smoothing: antialiased; }
::selection { background: var(--ect-cyan); color: #000; }

/* ---------- Header ---------- */
.ect-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 10, 10, 0.88);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.admin-bar .ect-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .ect-header { top: 0; } }
.ect-logo { font-weight: 900; font-size: 1.9rem; letter-spacing: -0.04em; line-height: 1; margin: 0; }
.ect-logo a { color: #fff !important; text-decoration: none !important; }
.ect-logo a::after { content: "."; color: var(--ect-cyan); }
.ect-header .wp-block-navigation { font-weight: 600; font-size: 0.98rem; gap: 1.6rem; }
.ect-header .wp-block-navigation a { color: #e4e4e7; }
.ect-header .wp-block-navigation a:hover,
.ect-header .wp-block-navigation .current-menu-item > a { color: var(--ect-cyan); text-decoration: none; }
.ect-header .wp-block-navigation__submenu-container {
  background: #111 !important; border: 1px solid var(--ect-border) !important; border-radius: 12px; padding: 0.4rem 0;
}
.ect-header .wp-block-navigation__responsive-container.is-menu-open { background: #0a0a0a !important; color: #fff; }
/* Drop-down menus: WordPress made the submenu text black on the dark box, so it could not be seen */
.ect-header .wp-block-navigation__submenu-container a,
.ect-header .wp-block-navigation__submenu-container .wp-block-navigation-item__content { color: #e4e4e7 !important; }
.ect-header .wp-block-navigation__submenu-container a:hover,
.ect-header .wp-block-navigation__submenu-container a:focus { color: var(--ect-cyan) !important; }
.ect-phone-pill .wp-block-button__link { border-radius: 999px !important; padding: 0.65rem 1.3rem !important; white-space: nowrap; }
@media (max-width: 600px) { .ect-header .ect-phone-pill { display: none !important; } .ect-logo { font-size: 1.6rem; } }

/* ---------- Sections ---------- */
.ect-hero {
  background: radial-gradient(1200px 500px at 85% -10%, rgba(0, 217, 255, 0.10), transparent 60%), #000;
  padding-top: clamp(3rem, 8vw, 6.5rem) !important; padding-bottom: clamp(3rem, 7vw, 5.5rem) !important;
  padding-left: var(--ect-gutter) !important; padding-right: var(--ect-gutter) !important;
}
.ect-section { padding: clamp(3rem, 7vw, 5.5rem) var(--ect-gutter) !important; }
.ect-section-alt { background: #050505; border-top: 1px solid rgba(255,255,255,0.06); border-bottom: 1px solid rgba(255,255,255,0.06); }
.ect-eyebrow {
  display: inline-block; color: var(--ect-cyan); font-weight: 700; font-size: 0.82rem;
  letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 0 !important;
}
.ect-lead { color: #d4d4d8; font-size: clamp(1.1rem, 2vw, 1.4rem); line-height: 1.55; max-width: 46rem; }
.ect-muted, .ect-section p.ect-muted { color: var(--ect-muted); }
.ect-small { font-size: 0.88rem; color: var(--ect-muted); }

/* ---------- Cards & grids ---------- */
.ect-card {
  background: var(--ect-card); border: 1px solid var(--ect-border); border-radius: 14px;
  padding: clamp(1.25rem, 2.5vw, 1.75rem) !important; height: 100%; box-sizing: border-box;
  transition: border-color .2s, transform .2s;
}
.ect-card:hover { border-color: rgba(0, 217, 255, 0.55); }
.ect-card h3 { margin-top: 0; }
.ect-card p { color: var(--ect-muted); }
.ect-card .ect-more a { font-weight: 700; }
.ect-card .ect-more a::after { content: " →"; }
.ect-stat { text-align: center; }
.ect-stat strong { display: block; font-size: 2rem; font-weight: 900; color: var(--ect-cyan); line-height: 1.1; }

/* Ticks and pills */
ul.ect-check { list-style: none; padding-left: 0; }
ul.ect-check li { position: relative; padding-left: 1.8rem; margin: 0.45rem 0; }
ul.ect-check li::before {
  content: ""; position: absolute; left: 0; top: 0.45em; width: 1.05rem; height: 1.05rem; border-radius: 50%;
  background: var(--ect-cyan) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/68% no-repeat;
}
ul.ect-pills { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 0.55rem; }
ul.ect-pills li {
  border: 1px solid var(--ect-border); background: rgba(0, 217, 255, 0.06); color: #e4e4e7;
  padding: 0.4rem 0.95rem; border-radius: 999px; font-size: 0.93rem; font-weight: 600; margin: 0;
}

/* Buttons */
.wp-block-button.is-style-outline .wp-block-button__link {
  background: transparent !important; color: var(--ect-cyan) !important; border: 1.5px solid var(--ect-cyan-2) !important;
}
.wp-block-button.is-style-outline .wp-block-button__link:hover { background: rgba(0, 217, 255, 0.08) !important; }
.ect-btn-whatsapp .wp-block-button__link { background: #25d366 !important; color: #000 !important; }
.ect-btn-dark .wp-block-button__link { background: #111 !important; color: #fff !important; border: 1px solid #333 !important; }

/* Tables */
.ect-table table { border-collapse: separate; border-spacing: 0; width: 100%; font-size: 0.97rem; }
.ect-table { border: 1px solid var(--ect-border); border-radius: 14px; overflow: hidden; }
.ect-table th { background: #111; color: var(--ect-cyan); text-align: left; font-weight: 700; }
.ect-table th, .ect-table td { padding: 0.7rem 1rem !important; border: 0 !important; border-bottom: 1px solid rgba(255,255,255,0.06) !important; }
.ect-table tr:last-child td { border-bottom: 0 !important; }
.ect-table td:last-child, .ect-table th:last-child { text-align: right; white-space: nowrap; }
.ect-table figcaption { color: var(--ect-muted); font-size: 0.85rem; padding: 0.6rem 1rem; text-align: left; }

/* FAQ */
.wp-block-details.ect-faq {
  border: 1px solid var(--ect-border); border-radius: 12px; padding: 1rem 1.25rem; background: var(--ect-card); margin-top: 0.75rem;
}
.wp-block-details.ect-faq summary { font-weight: 700; cursor: pointer; }
.wp-block-details.ect-faq[open] summary { color: var(--ect-cyan); margin-bottom: 0.5rem; }
.wp-block-details.ect-faq p { color: #d4d4d8; margin: 0; }

/* CTA band */
.ect-cta {
  background: linear-gradient(135deg, rgba(0,217,255,0.14), rgba(6,182,212,0.04)); border: 1px solid var(--ect-border);
  border-radius: 18px; padding: clamp(1.75rem, 4vw, 3rem) !important; text-align: center;
}

/* Reviews */
.ect-review { font-size: 0.98rem; }
.ect-review p { color: #d4d4d8 !important; }
.ect-review .ect-stars { color: #facc15; letter-spacing: 0.1em; margin-bottom: 0.4rem; }
.ect-review .ect-reviewer { color: #fff !important; font-weight: 700; margin-top: 0.75rem; }

/* ---------- Price checker & forms ---------- */
.ect-checker, .ect-form {
  background: #0f0f0f; border: 1px solid var(--ect-border); border-radius: 16px; padding: clamp(1.25rem, 3vw, 2rem);
}
.ect-checker .ect-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 0.9rem; }
.ect-checker label, .ect-form label { display: block; font-size: 0.85rem; font-weight: 600; color: var(--ect-muted); margin-bottom: 0.35rem; }
.ect-checker select, .ect-form input, .ect-form select, .ect-form textarea {
  width: 100%; box-sizing: border-box; background: #000; color: #fff; border: 1px solid #2a2a2a; border-radius: 10px;
  padding: 0.8rem 0.9rem; font: inherit; font-size: 1rem;
}
.ect-checker select:focus, .ect-form input:focus, .ect-form select:focus, .ect-form textarea:focus { outline: 2px solid var(--ect-cyan); border-color: transparent; }
.ect-checker select:disabled { opacity: 0.45; }
.ect-result { margin-top: 1.25rem; display: none; }
.ect-result.is-on { display: block; }
.ect-option {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 0.9rem 1rem; margin-top: 0.6rem;
  border: 1px solid #262626; border-radius: 12px; background: #000;
}
.ect-option strong { font-size: 1.5rem; color: var(--ect-cyan); font-weight: 800; }
.ect-meta { color: var(--ect-muted); font-size: 0.9rem; margin: 0.75rem 0 0; }
.ect-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1rem; }
.ect-actions a, .ect-form button {
  display: inline-block; background: var(--ect-cyan); color: #000 !important; font-weight: 700; border-radius: 12px;
  padding: 0.8rem 1.3rem; text-decoration: none !important; border: 0; font: inherit; font-weight: 700; cursor: pointer;
}
.ect-actions a.ect-wa { background: #25d366; }
.ect-form .ect-grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0.9rem; }
.ect-form p { margin: 0 0 0.9rem; }
.ect-notice { padding: 1rem 1.25rem; border-radius: 12px; margin-bottom: 1rem; font-weight: 600; }
.ect-notice.ok { background: rgba(37, 211, 102, 0.12); border: 1px solid #25d366; }
.ect-notice.err { background: rgba(239, 68, 68, 0.12); border: 1px solid #ef4444; }
.ect-hp { position: absolute !important; left: -9999px !important; }

/* ---------- Footer ---------- */
.ect-footer { background: #000; border-top: 1px solid rgba(255,255,255,0.08); color: var(--ect-muted); font-size: 0.95rem; }
.ect-footer h2, .ect-footer h3 { color: #fff; font-size: 1rem !important; letter-spacing: 0; }
.ect-footer a { color: #d4d4d8; }
.ect-footer a:hover { color: var(--ect-cyan); }
.ect-footer ul { list-style: none; padding: 0; margin: 0; }
.ect-footer li { margin: 0.35rem 0; }

/* ---------- WooCommerce ---------- */
.woocommerce ul.products li.product, .wc-block-grid__product, .wp-block-post.product {
  background: var(--ect-card); border: 1px solid var(--ect-border); border-radius: 14px; padding: 1rem !important;
}
.woocommerce ul.products li.product img { border-radius: 10px; background: #fff; }
.woocommerce ul.products li.product .woocommerce-loop-product__title { color: #fff; font-size: 1.05rem; font-weight: 700; }
.woocommerce ul.products li.product .price { color: var(--ect-cyan) !important; font-weight: 800; font-size: 1.15rem; }
.woocommerce ul.products li.product .price del { color: var(--ect-muted); font-weight: 400; }
.woocommerce ul.products li.product .button, .woocommerce a.button, .woocommerce button.button {
  background: var(--ect-cyan) !important; color: #000 !important; border-radius: 10px !important; font-weight: 700 !important;
}
.woocommerce span.onsale { background: var(--ect-cyan); color: #000; }
.woocommerce .out-of-stock, .woocommerce .stock.out-of-stock { color: #f87171; }

@media (max-width: 781px) {
  .ect-hero .wp-block-buttons .wp-block-button { width: 100%; }
  .ect-hero .wp-block-buttons .wp-block-button__link { width: 100%; box-sizing: border-box; }
}

/* Left-align content inside full-width sections (constrained layout centres narrow blocks by default). */
.ect-hero > *, .ect-section > * { margin-left: max(0px, calc((100% - 1200px) / 2)) !important; }
.ect-hero > .wp-block-buttons, .ect-section > .wp-block-group, .ect-section > .wp-block-columns, .ect-section > .wp-block-shortcode, .ect-section > .wp-block-details { max-width: 1200px; }
.ect-cta > * { margin-left: auto !important; margin-right: auto !important; }

/* Product grid: even columns at every width */
.woocommerce ul.products { display: grid !important; grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); gap: 1.25rem; margin: 0 0 1.5rem !important; }
.woocommerce ul.products::before, .woocommerce ul.products::after { display: none !important; }
.woocommerce ul.products li.product { width: auto !important; margin: 0 !important; float: none !important; display: flex; flex-direction: column; }
.woocommerce ul.products li.product .button { margin-top: auto; align-self: flex-start; }
@media (max-width: 480px) { .woocommerce ul.products { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; } .woocommerce ul.products li.product .woocommerce-loop-product__title { font-size: 0.95rem; } }

/* Visit line under the hero buttons */
.ect-visit { color: #d4d4d8; font-size: 0.98rem; margin-top: 1rem !important; }
.ect-visit a { font-weight: 700; }

/* Phone screens: get the repair button and a contact option onto the first screen */
@media (max-width: 600px) {
  .ect-hero { padding-top: 1.75rem !important; padding-bottom: 2.25rem !important; }
  .ect-hero h1 { font-size: 2.15rem !important; line-height: 1.08; margin-top: 0.5rem !important; }
  .ect-hero .ect-eyebrow { font-size: 0.72rem; letter-spacing: 0.08em; }
  .ect-hero .ect-lead { font-size: 1.05rem; margin-top: 0.75rem !important; }
  .ect-hero .wp-block-buttons { display: grid !important; grid-template-columns: 1fr 1fr; gap: 0.6rem; margin-top: 1rem !important; align-items: stretch !important; }
  .ect-hero .wp-block-buttons .wp-block-button { width: auto !important; display: flex; }
  .ect-hero .wp-block-buttons .wp-block-button:first-child { grid-column: 1 / -1; }
  .ect-hero .wp-block-buttons .wp-block-button__link { width: 100%; box-sizing: border-box; padding: 0.8rem 0.6rem !important; font-size: 0.95rem; text-align: center; display: flex; align-items: center; justify-content: center; height: 100%; }
}
