/*
Theme Name: Consumer Clear
Theme URI: https://example.com/consumer-clear
Author: Consumer Clear
Description: WordPress theme for the Consumer Clear marketing site.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: consumer-clear
*/

/* ========== Consumer Clear Base ========== */
:root{
  --bg:#ffffff; --fg:#0e1620; --muted:#5f6b7a;
  --brand:#0b7cc4; --brand-600:#096ba8; --brand-100:#e8f3fc;
  --accent:#0f9960; --border:#e7ecf2;
  --container: 1100px;

  --h1: clamp(1.9rem, 2.4vw + 1rem, 2.8rem);
  --h2: clamp(1.3rem, 1.2vw + .9rem, 1.7rem);
  --h3: clamp(1.05rem, .8vw + .9rem, 1.25rem);
  --lh: 1.65;

  --card-border: rgba(11, 124, 196, 0.42);
  --card-glow-soft: rgba(11, 124, 196, 0.12);
  --card-glow-strong: rgba(11, 124, 196, 0.28);
  --timeline-label-gap: clamp(24px, 3.4vw, 68px);
  --timeline-label-width: clamp(220px, 27vw, 360px);
  --timeline-label-height: clamp(64px, 6vw, 96px);
}

*{box-sizing:border-box}
html,body{
  margin:0;
  background:var(--bg);
  color:var(--fg);
}
a{color:var(--brand);text-decoration:underline;text-underline-offset:2px}
.nav-toggle:checked + .menu-toggle span{opacity:0}
/* Brand (logo + text together) */
.brand {
  display: flex;
  align-items: center;
  gap: 8px;              /* space between logo and text */
  margin-right: auto;    /* pushes nav menu to the right */
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--fg);
  text-decoration: none;
}
.brand-logo {
  height: 28px;   /* adjust for size */
  width: auto;
  display: block;
}
.brand:hover {
  opacity: 0.85;          /* subtle hover effect */
  transition: opacity 0.2s ease-in-out;
}

/* Base nav link */
.menu{display:flex;align-items:center;gap:12px}
.menu-list{
  list-style:none;
  display:flex;
  align-items:center;
  gap:12px;
  margin:0;
  padding:0;
}
.menu-list li{margin:0;}
.menu-list a {
  color: var(--fg);
  text-decoration: none;
  padding: 8px 14px;              /* consistent pill padding */
  border-radius: 20px;            /* pill shape */
  transition: background 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
  display:block;
}

/* Hover effect */
.menu-list a:hover {
  background: var(--brand-100);   /* light blue background */
  color: var(--brand);            /* blue text */
  box-shadow: 0 2px 6px rgba(0,0,0,0.06); /* subtle lift */
}

/* Active (current page) */
.menu-list a.active,
.menu-list .current-menu-item > a,
.menu-list .current_page_item > a,
.menu-list .current-page-ancestor > a {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 3px 8px rgba(0,0,0,0.15); /* stronger lift */
  font-weight: 600;
}

/* Hero */
.hero{padding:72px 0;background:linear-gradient(180deg,#fff,var(--brand-100))}
.hero h1{margin-bottom:8px}
.hero p{max-width:70ch}

/* Cards / grid */
.grid{display:grid;gap:20px}
@media (min-width:900px){
  .grid.cols-3{grid-template-columns:repeat(3,1fr)}
  .grid.cols-2{grid-template-columns:repeat(2,1fr)}
}
.card{
  border:1px solid var(--card-border);
  border-radius:16px;
  padding:20px;
  background:#fff;
  position:relative;
  box-shadow:0 0 0 3px var(--card-glow-soft),0 18px 32px -12px var(--card-glow-strong);
}
label{font-size:.92rem;color:#263240}
/* orphaned fragment from diff corruption - opening selector missing (likely .num):
  box-shadow:0 0 0 4px var(--brand-100);
  z-index:1;
} */

/* Small screens: keep alternation + spine, just tighten spacing & width */
@media (max-width: 960px){
  .menu-toggle{display:flex}
  .menu{
    position:absolute;
    top:calc(100% + 10px);
    right:0;
    left:0;
    padding:18px 20px;
    border:1px solid var(--border);
    border-radius:18px;
    background:#fff;
    box-shadow:0 24px 48px -22px rgba(14,22,32,0.32);
    display:none;
    flex-direction:column;
    align-items:flex-start;
    gap:8px;
    z-index:40;
  }
  .nav-toggle:not(:checked) ~ .menu{display:none}
  .nav-toggle:checked ~ .menu{display:flex}
  .menu a{width:100%;padding:10px 14px;border-radius:12px}
  .menu a + a{margin-top:4px}
  .menu-list{
    flex-direction:column;
    align-items:flex-start;
    width:100%;
    gap:8px;
  }
  .menu-list li{width:100%;}
  .menu-list li + li{margin-top:4px}
  .menu-list a{width:100%;padding:10px 14px;border-radius:12px}
  .nav{align-items:flex-start}
}

@media (max-width: 760px){
  .timeline{ gap: 18px; }
  .timeline::before{ display:none; }
  .timeline-item,
  .timeline-item:nth-child(even){
    width:100%;
    max-width:100%;
    justify-self:stretch;
  }
  .timeline-item .step{
    padding:118px 24px 26px;
  }
  .timeline-item .step-head{
    position:absolute;
    top:24px;
    left:0;
    right:0;
    display:flex;
    flex-direction:column;
    align-items:center;
    gap:14px;
    margin:0;
  }
}
/* ================================================================
   Rebuilt sections — restored classes referenced by the templates
   that were lost in the diff corruption.
   ================================================================ */

/* Base typography & layout */
body{
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;
  font-size:16px;
  line-height:var(--lh);
}
h1{font-size:var(--h1);line-height:1.2;margin:0 0 12px}
h2{font-size:var(--h2);line-height:1.3;margin:0 0 12px}
h3{font-size:var(--h3);line-height:1.35;margin:0 0 8px}
h4{margin:0 0 8px}
p{margin:0 0 12px}
img{max-width:100%;height:auto}
section{padding:44px 0}

.container{
  max-width:var(--container);
  margin:0 auto;
  padding:0 20px;
}
.small{font-size:.9rem;color:var(--muted)}
.hr{height:1px;background:var(--border);margin:22px 0}
.sr-only{
  position:absolute;
  width:1px;height:1px;
  padding:0;margin:-1px;
  overflow:hidden;
  clip:rect(0,0,0,0);
  white-space:nowrap;border:0;
}

/* Header / nav bar */
.site-header{
  position:sticky;
  top:0;
  z-index:50;
  background:rgba(255,255,255,0.95);
  border-bottom:1px solid var(--border);
}
.nav{
  display:flex;
  align-items:center;
  gap:16px;
  padding-top:12px;
  padding-bottom:12px;
  position:relative;
}
.nav-toggle{display:none}
.menu-toggle{
  display:none;
  align-items:center;
  justify-content:center;
  width:42px;height:42px;
  border:1px solid var(--border);
  border-radius:12px;
  cursor:pointer;
  background:#fff;
}
.menu-toggle span:not(.sr-only){
  display:block;
  width:18px;height:2px;
  background:var(--fg);
  position:relative;
}
.menu-toggle span:not(.sr-only)::before,
.menu-toggle span:not(.sr-only)::after{
  content:"";
  position:absolute;
  left:0;
  width:18px;height:2px;
  background:var(--fg);
}
.menu-toggle span:not(.sr-only)::before{top:-6px}
.menu-toggle span:not(.sr-only)::after{top:6px}

/* Buttons */
.btn{
  display:inline-block;
  background:var(--brand);
  color:#fff;
  border:1px solid var(--brand);
  border-radius:12px;
  padding:12px 18px;
  font-weight:600;
  font-size:1rem;
  text-decoration:none;
  cursor:pointer;
}
.btn:hover{background:var(--brand-600);color:#fff}
.btn-outline{
  background:transparent;
  color:var(--brand);
  border:1px solid var(--brand);
}
.btn-outline:hover{background:var(--brand-100);color:var(--brand-600)}
.whatsapp-btn{
  background:#25d366;
  border-color:#25d366;
  margin-left:8px;
  padding:8px 14px;
  font-size:.9rem;
}
.whatsapp-btn:hover{background:#1ebe57;border-color:#1ebe57}

/* Forms (contact page) */
.form{display:flex;flex-direction:column;gap:14px}
.input{display:flex;flex-direction:column;gap:6px}
input,select,textarea{
  font:inherit;
  color:var(--fg);
  background:#fff;
  border:1px solid var(--border);
  border-radius:10px;
  padding:10px 12px;
  width:100%;
}
input:focus,select:focus,textarea:focus{
  outline:none;
  border-color:var(--brand);
  box-shadow:0 0 0 3px var(--brand-100);
}
textarea{resize:vertical}

/* Notice box */
.notice{
  background:var(--brand-100);
  border:1px solid var(--card-border);
  border-radius:12px;
  padding:14px 18px;
}

/* FAQ accordions */
details{
  border:1px solid var(--border);
  border-radius:14px;
  padding:14px 18px;
  margin-bottom:12px;
  background:#fff;
}
details[open]{border-color:var(--card-border)}
summary{
  cursor:pointer;
  font-weight:600;
  list-style:none;
  position:relative;
  padding-right:26px;
}
summary::-webkit-details-marker{display:none}
summary::after{
  content:"+";
  position:absolute;
  right:0;top:0;
  color:var(--brand);
  font-weight:700;
}
details[open] summary::after{content:"–"}

/* Steps (front page) */
.steps{display:grid;gap:16px}
@media (min-width:760px){
  .steps{grid-template-columns:repeat(2,1fr)}
}
.step{
  border:1px solid var(--card-border);
  border-radius:16px;
  padding:18px 20px;
  background:#fff;
  position:relative;
  box-shadow:0 0 0 3px var(--card-glow-soft),0 14px 26px -14px var(--card-glow-strong);
}
.step-head{
  display:flex;
  align-items:center;
  gap:12px;
  margin-bottom:8px;
}
.step-head h3{margin:0}
.num{
  flex:0 0 auto;
  width:36px;height:36px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:var(--brand);
  color:#fff;
  font-weight:700;
  border-radius:50%;
  box-shadow:0 0 0 4px var(--brand-100);
  z-index:1;
}

/* Timeline (How it works, desktop) */
.plan-grid{margin-top:18px}
.timeline{
  position:relative;
  display:grid;
  gap:26px;
}
.timeline::before{
  content:"";
  position:absolute;
  top:0;bottom:0;
  left:50%;
  width:2px;
  background:var(--card-border);
  transform:translateX(-50%);
}
.timeline-item{
  position:relative;
  width:calc(50% - var(--timeline-label-gap));
  justify-self:start;
}
.timeline-item:nth-child(even){justify-self:end}

/* Footer */
.site-footer{
  border-top:1px solid var(--border);
  background:#fbfdff;
  padding:32px 0 26px;
  margin-top:32px;
}
.footer-cols{display:grid;gap:24px}
@media (min-width:760px){
  .footer-cols{grid-template-columns:2fr 1fr 1fr}
}
.site-footer h4{margin:0 0 10px}

/* Back to top */
.back-to-top{
  position:fixed;
  right:18px;
  bottom:18px;
  width:44px;
  height:44px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:var(--brand);
  color:#fff;
  border-radius:50%;
  text-decoration:none;
  font-size:1.2rem;
  box-shadow:0 10px 22px -8px rgba(11,124,196,.6);
  z-index:60;
}
.back-to-top:hover{background:var(--brand-600);color:#fff}
