/*
Theme Name: Quality Carpet & Tile
Theme URI: https://qualitycleaningnj.com/
Description: Child theme of Twenty Twenty-Five for Quality Carpet & Tile Cleaning LLC. Built by Outrivex.
Author: Outrivex
Template: twentytwentyfive
Version: 2.0.0
Requires at least: 6.5
Text Domain: qct-theme
*/

/* ---------- Base ---------- */
body { -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4 { letter-spacing: -0.02em; text-wrap: balance; }
p { text-wrap: pretty; }
a { text-underline-offset: 3px; }
:where(.wp-site-blocks) > main { margin-block-start: 0; }
.wp-site-blocks > * + * { margin-block-start: 0; }
img { height: auto; }

/* ---------- Header ---------- */
.qct-header-wrap { position: sticky; top: 0; z-index: 50; }
body.admin-bar .qct-header-wrap { top: 32px; }
@media (max-width: 782px) { body.admin-bar .qct-header-wrap { top: 0; } }
.qct-header { background: rgba(249,252,254,.985); border-bottom: 1px solid rgba(19,43,90,.08); }
.qct-header .wp-block-site-logo img { max-height: 54px; width: auto; }
.qct-nav { font-weight: 600; font-size: 15px; }
.qct-nav .wp-block-navigation-item__content { padding: 8px 12px; border-radius: 10px; color: var(--wp--preset--color--ink-soft); }
.qct-nav .wp-block-navigation-item__content:hover,
.qct-nav .current-menu-item > .wp-block-navigation-item__content { background: var(--wp--preset--color--mist); color: var(--wp--preset--color--navy); }
.qct-nav .wp-block-navigation__submenu-container { border: 1px solid rgba(19,43,90,.1) !important; border-radius: 14px; padding: 8px !important; box-shadow: 0 20px 50px -20px rgba(19,43,90,.35); min-width: 250px !important; }
.qct-nav .wp-block-navigation__submenu-container .wp-block-navigation-item__content { padding: 9px 12px; }
.qct-nav .wp-block-navigation__responsive-container.is-menu-open { padding: 24px; }
.qct-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content { font-size: 18px; }

/* Phone icon on call buttons */
.qct-btn-call .wp-block-button__link::before,
a.qct-call::before {
  content: ""; display: inline-block; width: 1em; height: 1em; margin-right: .5em; vertical-align: -0.12em;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.92v3a2 2 0 0 1-2.18 2 19.8 19.8 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6A19.8 19.8 0 0 1 2.1 4.18 2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72c.13.96.36 1.9.7 2.81a2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45c.91.34 1.85.57 2.81.7A2 2 0 0 1 22 16.92z'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.92v3a2 2 0 0 1-2.18 2 19.8 19.8 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6A19.8 19.8 0 0 1 2.1 4.18 2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72c.13.96.36 1.9.7 2.81a2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45c.91.34 1.85.57 2.81.7A2 2 0 0 1 22 16.92z'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* ---------- Buttons ---------- */
.wp-block-button__link { transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease; }
.wp-block-button__link:hover { transform: translateY(-1px); }
.qct-btn-call .wp-block-button__link,
.wp-block-button.is-style-fill.qct-btn-call .wp-block-button__link { background: var(--wp--preset--color--amber); color: var(--wp--preset--color--amber-ink); box-shadow: 0 12px 30px -10px rgba(249,173,38,.7); }
.qct-btn-ghost .wp-block-button__link { background: rgba(255,255,255,.08); color: #fff; border: 1px solid rgba(255,255,255,.35); }
.qct-btn-ghost .wp-block-button__link:hover { background: rgba(255,255,255,.16); }
.qct-btn-navy .wp-block-button__link { background: var(--wp--preset--color--navy); color: #fff; }
.qct-header-cta .wp-block-button__link { padding: 11px 18px; font-size: 15px; }

/* ---------- Sections ---------- */
.qct-section { padding-top: clamp(56px, 8vw, 96px); padding-bottom: clamp(56px, 8vw, 96px); }
.qct-section.qct-tight { padding-top: clamp(40px, 6vw, 64px); padding-bottom: clamp(40px, 6vw, 64px); }
.qct-bg-light { background: var(--wp--preset--color--mist); }
.qct-bg-soft { background: var(--wp--preset--color--soft); }
.qct-bg-navy { background: var(--wp--preset--color--navy); color: #fff; }
.qct-bg-navy :where(h1,h2,h3,h4) { color: #fff; }
.qct-eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: 13px !important; font-weight: 700; color: var(--wp--preset--color--teal-dark); margin-bottom: 8px !important; }
.qct-bg-navy .qct-eyebrow, .qct-hero .qct-eyebrow { color: var(--wp--preset--color--teal); }
.qct-lead { font-size: clamp(17px, 1.6vw, 19px) !important; color: var(--wp--preset--color--muted); max-width: 46rem; }
.qct-bg-navy .qct-lead, .qct-hero .qct-lead { color: rgba(255,255,255,.85); }

/* ---------- Hero ---------- */
.qct-hero {
  color: #fff; position: relative;
  background-color: var(--wp--preset--color--navy);
  background-image: linear-gradient(120deg, rgba(4,19,53,.95), rgba(19,43,90,.86) 55%, rgba(0,130,149,.5)), url("assets/hero.webp");
  background-size: cover; background-position: center;
  padding-top: clamp(64px, 10vw, 128px); padding-bottom: clamp(64px, 10vw, 120px);
}
.qct-hero.qct-hero-sm { padding-top: clamp(48px, 7vw, 88px); padding-bottom: clamp(48px, 7vw, 80px); }
.qct-hero h1 { color: #fff; font-size: clamp(34px, 5.2vw, 58px); line-height: 1.08; max-width: 52rem; }
.qct-hero.qct-hero-sm h1 { font-size: clamp(30px, 4.2vw, 46px); }
.qct-hero .qct-quick-answer { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); border-left: 4px solid var(--wp--preset--color--teal); border-radius: 14px; padding: 16px 20px; max-width: 48rem; color: rgba(255,255,255,.92); }
.qct-hero .qct-quick-answer strong { color: var(--wp--preset--color--teal); }
.qct-trust { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0 !important; margin-top: 28px !important; }
.qct-trust li { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); border-radius: 999px; padding: 7px 14px 7px 12px; font-size: 14px; font-weight: 600; }
.qct-trust li::before { content: "✓"; color: var(--wp--preset--color--teal); margin-right: 8px; font-weight: 800; }
.qct-crumbs { font-size: 14px; color: rgba(255,255,255,.75); margin-bottom: 14px !important; }
.qct-crumbs a { color: rgba(255,255,255,.9); text-decoration: none; }
.qct-crumbs a:hover { text-decoration: underline; }
.qct-crumbs .breadcrumbs, .qct-crumbs nav { color: inherit; }

/* ---------- Cards ---------- */
.qct-grid { display: grid !important; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 22px; }
.qct-grid.qct-grid-2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.qct-grid.qct-grid-4 { grid-template-columns: repeat(4, minmax(0,1fr)); }
@media (max-width: 960px) { .qct-grid, .qct-grid.qct-grid-4 { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 640px) { .qct-grid, .qct-grid.qct-grid-2, .qct-grid.qct-grid-4 { grid-template-columns: 1fr; } }
.qct-grid > * { margin: 0 !important; }
.qct-card { background: #fff; border: 1px solid rgba(19,43,90,.09); border-radius: 18px; padding: 22px; box-shadow: 0 20px 50px -28px rgba(19,43,90,.35); transition: transform .2s ease, box-shadow .2s ease; position: relative; }
.qct-card:hover { transform: translateY(-3px); box-shadow: 0 26px 60px -26px rgba(19,43,90,.45); }
.qct-card .wp-block-image { margin: -22px -22px 18px !important; }
.qct-card .wp-block-image img { border-radius: 18px 18px 0 0; aspect-ratio: 16/10; object-fit: cover; width: 100%; }
.qct-card h3 { font-size: 20px; margin: 0 0 8px; }
.qct-card h3 a { color: var(--wp--preset--color--navy); text-decoration: none; }
.qct-card h3 a::after { content: ""; position: absolute; inset: 0; border-radius: 18px; }
.qct-card p { margin: 0 0 8px; color: var(--wp--preset--color--muted); font-size: 15.5px; }
.qct-card .qct-more { color: var(--wp--preset--color--navy); font-weight: 700; font-size: 15px; margin-top: 12px; }
.qct-card .qct-more::after { content: " →"; }
.qct-bg-navy .qct-card { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.12); box-shadow: none; }
.qct-bg-navy .qct-card:hover { transform: none; }
.qct-bg-navy .qct-card p { color: rgba(255,255,255,.75); }
.qct-bg-navy .qct-card h3 { color: #fff; }
.qct-step-num { font-family: var(--wp--preset--font-family--sora); font-weight: 800; font-size: 40px !important; line-height: 1; color: rgba(255,255,255,.18) !important; margin-bottom: 14px !important; }

/* Who we help */
.qct-split .wp-block-image img { border-radius: 18px; aspect-ratio: 4/3; object-fit: cover; width: 100%; }

/* Check list */
ul.qct-checks { list-style: none; padding-left: 0 !important; }
ul.qct-checks li { position: relative; padding-left: 32px; margin-bottom: 12px; }
ul.qct-checks li::before { content: ""; position: absolute; left: 0; top: .2em; width: 20px; height: 20px; border-radius: 50%; background: var(--wp--preset--color--mist) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23008295' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 12px no-repeat; }
.qct-bg-navy ul.qct-checks li::before { background-color: rgba(255,255,255,.12); }

/* Area chips */
.qct-chips { display: flex !important; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0 !important; }
.qct-chips li { margin: 0; }
.qct-chips a { display: inline-flex; align-items: center; gap: 6px; background: #fff; border: 1px solid rgba(19,43,90,.12); border-radius: 999px; padding: 9px 16px; font-weight: 600; color: var(--wp--preset--color--navy); text-decoration: none; box-shadow: 0 8px 20px -14px rgba(19,43,90,.4); }
.qct-chips a::before { content: ""; width: 14px; height: 14px; background: var(--wp--preset--color--teal-dark); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 10c0 6-8 12-8 12S4 16 4 10a8 8 0 0 1 16 0Z'/%3E%3Ccircle cx='12' cy='10' r='3'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 10c0 6-8 12-8 12S4 16 4 10a8 8 0 0 1 16 0Z'/%3E%3Ccircle cx='12' cy='10' r='3'/%3E%3C/svg%3E") center/contain no-repeat; }
.qct-chips a:hover { border-color: var(--wp--preset--color--teal); }

/* FAQ */
.qct-faq { max-width: 860px; }
.qct-faq-item { background: #fff; border: 1px solid rgba(19,43,90,.1); border-radius: 14px; padding: 0 !important; margin-bottom: 12px !important; overflow: hidden; }
.qct-faq-item summary { cursor: pointer; padding: 18px 52px 18px 20px; font-weight: 700; color: var(--wp--preset--color--navy); position: relative; list-style: none; font-size: 17px; }
.qct-faq-item summary::-webkit-details-marker { display: none; }
.qct-faq-item summary::after { content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); font-size: 24px; color: var(--wp--preset--color--teal-dark); font-weight: 600; }
.qct-faq-item[open] summary::after { content: "–"; }
.qct-faq-item > :not(summary) { padding: 0 20px 18px; margin: 0; color: var(--wp--preset--color--muted); }

/* CTA banner */
.qct-cta { background: linear-gradient(135deg, var(--wp--preset--color--teal-dark), #0b5f86 60%, var(--wp--preset--color--navy)); border-radius: 24px; padding: clamp(28px, 4vw, 48px) !important; color: #fff; }
.qct-cta h2 { color: #fff; margin: 0; font-size: clamp(26px, 3vw, 36px); }
.qct-cta p { color: rgba(255,255,255,.88); margin: 6px 0 0; }

/* Info card */
.qct-info { background: #fff; border-radius: 20px; padding: 26px !important; border: 1px solid rgba(19,43,90,.09); box-shadow: 0 20px 50px -28px rgba(19,43,90,.35); }
.qct-info p { margin: 0 0 10px; }
.qct-map iframe { width: 100%; height: 320px; border: 0; border-radius: 16px; display: block; }
.qct-form-card { background: #fff; border-radius: 22px; padding: clamp(20px, 3vw, 32px) !important; border: 1px solid rgba(19,43,90,.09); box-shadow: 0 24px 60px -30px rgba(19,43,90,.4); }
.qct-note { font-size: 14px !important; color: var(--wp--preset--color--muted); }
.qct-media img { border-radius: 18px; width: 100%; aspect-ratio: 4/3; object-fit: cover; }

/* Fluent Forms skin */
.qct-form-card .fluentform .ff-el-input--label label { font-weight: 600; color: var(--wp--preset--color--navy); font-size: 15px; }
.qct-form-card .fluentform .ff-el-form-control { border-radius: 12px; border: 1px solid rgba(19,43,90,.18); background: var(--wp--preset--color--soft); padding: 11px 14px; font-size: 16px; }
.qct-form-card .fluentform .ff-el-form-control:focus { border-color: var(--wp--preset--color--teal-dark); box-shadow: 0 0 0 3px rgba(19,187,194,.2); background: #fff; }
.qct-form-card .fluentform .ff-btn-submit { background: var(--wp--preset--color--amber) !important; color: var(--wp--preset--color--amber-ink) !important; border-radius: 14px !important; font-weight: 700; padding: 13px 24px; font-size: 16px; border: 0 !important; box-shadow: 0 12px 30px -10px rgba(249,173,38,.7); width: 100%; }

/* ---------- Footer ---------- */
.qct-footer { background: var(--wp--preset--color--navy-deep); color: rgba(255,255,255,.78); font-size: 15px; }
.qct-footer h2, .qct-footer h3 { color: var(--wp--preset--color--teal); font-size: 14px; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 14px; font-family: var(--wp--preset--font-family--manrope); }
.qct-footer a { color: rgba(255,255,255,.88); text-decoration: none; }
.qct-footer a:hover { color: #fff; text-decoration: underline; }
.qct-footer ul { list-style: none; padding: 0; margin: 0; }
.qct-footer li { margin-bottom: 8px; }
.qct-footer-logo { background: #fff; border-radius: 14px; padding: 14px 16px !important; display: inline-block; }
.qct-footer-logo img { width: 210px; height: auto; display: block; }
.qct-footer-bottom { border-top: 1px solid rgba(255,255,255,.12); font-size: 14px; color: rgba(255,255,255,.6); }

/* ---------- Mobile ---------- */
@media (max-width: 781px) {
  .qct-header-cta { display: none !important; }
  .qct-header .wp-block-site-logo img { max-height: 44px; }
  body { padding-bottom: 68px; }
  .qct-cta .wp-block-buttons { justify-content: flex-start !important; }
}

/* Refinements */
.qct-split .wp-block-image img, .qct-split .qct-media img { aspect-ratio: 16/10; }
@media (min-width: 782px) { .qct-cta .wp-block-buttons { justify-content: flex-end; } }
.qct-cta .wp-block-column { margin-block-start: 0; }
.wp-block-post-content > .qct-section, .wp-block-post-content > section.alignfull { margin-block-start: 0 !important; margin-block-end: 0 !important; }
.qct-form-card .fluentform .ff-btn-submit { font-family: inherit !important; }
.qct-info h3 { margin-bottom: 14px; }
.qct-footer { padding-bottom: 96px !important; }
@media (max-width: 781px) { .qct-footer { padding-bottom: 32px !important; } }
.qct-section .qct-grid + .wp-block-group { margin-top: 40px; }

.qct-nav .wp-block-navigation__responsive-container.is-menu-open { background: #fff; }
.qct-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container { box-shadow: none; border: 0 !important; padding: 4px 0 4px 12px !important; }

/* Hero as an editable Cover block (photo + overlay are set in the editor) */
.wp-block-cover.qct-hero { background-image: none; background-color: transparent; min-height: 0; align-items: flex-start; }
.wp-block-cover.qct-hero .wp-block-cover__inner-container { color: #fff; width: 100%; }
.wp-block-cover.qct-hero .wp-block-cover__image-background { object-position: center; }
