/*
Theme Name: WP Support by EZ
Theme URI: https://wpsupportbyez.com/
Author: 397 Digital LLC
Author URI: https://397digital.com/
Description: Single-page landing theme for WP Support by EZ. The front page renders the landing page; everything else falls back to a simple content template.
Version: 1.0.3
Requires at least: 6.0
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: wpsupportbyez
*/

/* ---------- Tokens ---------- */
:root {
  --white: #FFFFFF;
  --ink: #0E1F36;
  --steel: #56627A;
  --blue: #1D5BD8;
  --blue-deep: #1547B0;
  --navy: #0F2A52;
  --silver: #C5CCD6;
  --silver-light: #E3E7ED;
  --mist: #F3F5F8;
  --error: #B42318;

  --font: 'Schibsted Grotesk', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --wrap: 1160px;
  --header-h: 68px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--blue); text-underline-offset: 3px; }
a:hover { color: var(--blue-deep); }
h1, h2, h3 { margin: 0; line-height: 1.08; letter-spacing: -0.02em; font-weight: 700; }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
p { margin: 0; }
p + p { margin-top: 1rem; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 4px; }

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.section { padding-block: clamp(4rem, 8vw, 7rem); }
.muted { color: var(--steel); }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Placeholder marker (swap these out before launch) */
.ph { border-bottom: 1.5px dashed currentColor; opacity: .75; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font: inherit; font-weight: 600; font-size: 1rem; line-height: 1.2;
  padding: .95rem 1.4rem; border-radius: 10px; border: 1px solid transparent;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.btn-primary { background: var(--blue); color: var(--white); }
.btn-primary:hover { background: var(--blue-deep); color: var(--white); }
.btn-outline { background: var(--white); color: var(--ink); border-color: var(--silver); }
.btn-outline:hover { border-color: var(--ink); color: var(--ink); }
.btn-light { background: var(--white); color: var(--navy); }
.btn-light:hover { background: var(--silver-light); color: var(--navy); }
.btn-sm { padding: .6rem 1rem; font-size: .92rem; }
.btn[disabled] { opacity: .65; cursor: progress; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(160%) blur(10px);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--silver-light);
}
.header-inner { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.brand { display: flex; align-items: center; gap: .6rem; color: var(--ink); text-decoration: none; font-weight: 800; letter-spacing: -0.015em; }
.brand:hover { color: var(--ink); }
.nav { display: flex; align-items: center; gap: 1.75rem; }
.nav-links { display: flex; gap: 1.75rem; }
.nav-links a { color: var(--steel); text-decoration: none; font-weight: 500; font-size: .95rem; }
.nav-links a:hover { color: var(--ink); }
@media (max-width: 760px) { .nav-links { display: none; } }

/* ---------- Hero ---------- */
.hero {
  padding-block: clamp(3rem, 7vw, 6rem) clamp(4rem, 8vw, 7rem);
  background: linear-gradient(180deg, var(--white) 0%, var(--mist) 100%);
  border-bottom: 1px solid var(--silver-light);
}
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2.5rem, 5vw, 4.5rem); align-items: center; }
@media (max-width: 940px) { .hero-grid { grid-template-columns: 1fr; } }

.hero h1 {
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  font-weight: 800; letter-spacing: -0.035em; line-height: 1.02;
  max-width: 14ch;
}
.hero-sub { margin-top: 1.4rem; font-size: clamp(1.1rem, 1.6vw, 1.25rem); color: var(--steel); max-width: 34rem; }

.referral {
  margin-top: 1.5rem; max-width: 34rem;
  padding: .8rem 1rem; border-radius: 10px;
  background: var(--white); border: 1px solid var(--silver); border-left: 3px solid var(--blue);
  font-weight: 500;
}

.url-form {
  margin-top: 2rem; max-width: 34rem;
  display: flex; gap: .4rem; padding: .4rem;
  background: var(--white); border: 1px solid var(--silver); border-radius: 14px;
  box-shadow: 0 12px 30px -20px rgba(15, 42, 82, .45);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.url-form:focus-within { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(29, 91, 216, .15); }
.url-form input {
  flex: 1; min-width: 0; border: 0; outline: none; background: transparent;
  font: inherit; color: var(--ink); padding: .7rem .8rem;
}
.url-form input::placeholder { color: #8A94A6; }
@media (max-width: 520px) {
  .url-form { flex-direction: column; }
  .url-form .btn { width: 100%; }
}
.hero-links { margin-top: 1rem; font-size: .95rem; color: var(--steel); }
.hero-links a { font-weight: 600; }
.hero-links p + p { margin-top: .35rem; }

/* Silver browser mock: the quick look, visualized */
.mock {
  border-radius: 18px; padding: 10px;
  background: linear-gradient(145deg, #F8FAFC 0%, #D3D9E1 42%, #EEF1F5 58%, #BFC7D2 100%);
  box-shadow: 0 34px 60px -32px rgba(15, 42, 82, .5), 0 0 0 1px rgba(15, 42, 82, .08);
}
.mock-bar { display: flex; align-items: center; gap: .7rem; padding: .35rem .45rem .65rem; }
.mock-dots { display: flex; gap: 6px; }
.mock-dots span { width: 10px; height: 10px; border-radius: 50%; background: var(--white); box-shadow: inset 0 0 0 1px rgba(15, 42, 82, .18); }
.mock-address {
  flex: 1; min-width: 0; display: flex; align-items: center; gap: .45rem;
  background: var(--white); border-radius: 8px; padding: .35rem .75rem;
  font-size: .85rem; color: var(--steel);
}
.mock-address span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mock-address svg { flex: none; width: 12px; height: 12px; }
.mock-body { background: var(--white); border-radius: 10px; padding: 1.4rem 1.4rem 1.2rem; }
.mock-title { font-weight: 700; font-size: 1.08rem; letter-spacing: -0.01em; overflow-wrap: anywhere; }
.mock-note { font-size: .88rem; color: var(--steel); margin-top: .15rem; }

.checks { list-style: none; margin: 1rem 0 0; padding: 0; }
.checks li {
  display: flex; align-items: center; gap: .8rem;
  padding: .7rem 0; border-top: 1px solid var(--silver-light);
  font-weight: 500; font-size: .98rem; line-height: 1.35;
}
.tick {
  flex: none; width: 24px; height: 24px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1.5px solid var(--silver); background: var(--white);
  animation: tick .3s ease forwards;
  animation-delay: calc(.6s + var(--i) * .35s);
}
.tick svg { width: 12px; height: 12px; opacity: 0; animation: tickmark .3s ease forwards; animation-delay: calc(.6s + var(--i) * .35s); }
@keyframes tick { to { background: var(--blue); border-color: var(--blue); } }
@keyframes tickmark { to { opacity: 1; } }

.mock-video {
  margin-top: 1rem; display: flex; align-items: center; gap: .85rem;
  padding: .8rem .9rem; border-radius: 10px; background: var(--navy); color: var(--white);
}
.play { flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--white); display: grid; place-items: center; }
.play svg { width: 12px; height: 12px; margin-left: 2px; }
.video-text { flex: 1; font-size: .9rem; font-weight: 600; }
.track { height: 4px; margin-top: .45rem; border-radius: 4px; background: rgba(255, 255, 255, .2); overflow: hidden; }
.track span { display: block; height: 100%; width: 0; background: #9DBDF7; animation: fill 1.4s ease forwards 2.5s; }
@keyframes fill { to { width: 36%; } }

/* ---------- Problem ---------- */
.problem-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: end; }
.problem-grid h2 { max-width: 16ch; }
.problem-copy { font-size: 1.15rem; color: var(--steel); max-width: 34rem; }
.problem-copy .strong { color: var(--ink); font-weight: 600; }
@media (max-width: 860px) { .problem-grid { grid-template-columns: 1fr; } }

/* ---------- Quick look ---------- */
.quick-look { background: var(--mist); border-block: 1px solid var(--silver-light); }
.quick-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.quick-copy { font-size: 1.1rem; max-width: 34rem; }
.quick-copy .btn { margin-top: 2rem; }
@media (max-width: 860px) { .quick-grid { grid-template-columns: 1fr; } }

/* ---------- Pricing ---------- */
.pricing-head { max-width: 40rem; }
.pricing-head p { margin-top: 1.1rem; font-size: 1.15rem; color: var(--steel); }
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-top: 3rem; }
@media (max-width: 860px) { .plans { grid-template-columns: 1fr; } }

.plan { display: flex; flex-direction: column; border-radius: 20px; padding: clamp(1.75rem, 3vw, 2.5rem); }
.plan-tuneup { background: var(--white); border: 1px solid var(--silver); }
.plan-care { background: var(--navy); color: var(--white); border: 1px solid var(--navy); box-shadow: 0 30px 60px -36px rgba(15, 42, 82, .7); }

.plan-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.plan h3 { font-size: 1.35rem; letter-spacing: -0.015em; }
.tag {
  padding: .3rem .75rem; border-radius: 999px;
  background: linear-gradient(180deg, #F1F4F7, #CDD4DD); color: var(--navy);
  font-size: .82rem; font-weight: 700;
}
.price { display: flex; align-items: baseline; gap: .45rem; margin-top: 1.25rem; }
.price strong { font-size: clamp(2.8rem, 5vw, 3.6rem); font-weight: 800; letter-spacing: -0.04em; line-height: 1; }
.price span { font-weight: 500; color: var(--steel); }
.plan-care .price span { color: rgba(255, 255, 255, .72); }
.plan-desc { margin-top: .75rem; font-size: 1.08rem; font-weight: 500; }

.features { list-style: none; padding: 0; margin: 1.75rem 0 2rem; display: grid; gap: .75rem; flex: 1; align-content: start; }
.features li { position: relative; padding-left: 1.95rem; line-height: 1.45; }
.features li::before {
  content: ""; position: absolute; left: 0; top: .12em; width: 1.2rem; height: 1.2rem; border-radius: 50%;
  background: var(--mist) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.2l2.3 2.3 4.7-5' fill='none' stroke='%231D5BD8' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 10px no-repeat;
  border: 1px solid var(--silver);
}
.plan-care .features li::before {
  background-color: rgba(255, 255, 255, .1);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.2l2.3 2.3 4.7-5' fill='none' stroke='%23FFFFFF' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  border-color: rgba(255, 255, 255, .25);
}
.small-print { margin-bottom: 1.25rem; padding: .9rem 1rem; border-radius: 10px; background: var(--mist); font-size: .92rem; color: var(--steel); }
.plan .btn { width: 100%; }
.plans-note { margin-top: 2rem; text-align: center; color: var(--steel); }

/* ---------- Proof ---------- */
.proof { border-top: 1px solid var(--silver-light); }
.proof h2 { max-width: 18ch; }
.proof-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); margin-top: 3rem; align-items: start; }
@media (max-width: 860px) { .proof-grid { grid-template-columns: 1fr; } }

.testimonial { margin: 0; padding: clamp(1.75rem, 3vw, 2.5rem); border-radius: 20px; border: 1.5px dashed var(--silver); background: var(--white); }
.testimonial blockquote { margin: 0; font-size: clamp(1.25rem, 2vw, 1.5rem); font-weight: 500; line-height: 1.4; letter-spacing: -0.01em; color: var(--steel); }
.testimonial figcaption { display: flex; align-items: center; gap: .9rem; margin-top: 1.75rem; }
.avatar {
  flex: none; width: 52px; height: 52px; border-radius: 50%;
  display: grid; place-items: center; font-size: .7rem; font-weight: 600; color: var(--steel);
  background: linear-gradient(145deg, #F4F6F9, #CDD4DD);
}
.who strong { display: block; }
.who span { font-size: .95rem; color: var(--steel); }

.proof-side p:first-child { font-size: 1.3rem; font-weight: 600; line-height: 1.4; letter-spacing: -0.01em; }
.proof-side hr { border: 0; border-top: 1px solid var(--silver); margin: 1.75rem 0; }
.proof-side .cred { color: var(--steel); }

/* ---------- About ---------- */
.about { background: var(--mist); border-block: 1px solid var(--silver-light); }
.about-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(2rem, 6vw, 5.5rem); align-items: center; }
@media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; } }
.photo {
  aspect-ratio: 4 / 5; max-width: 420px; border-radius: 20px;
  display: grid; place-items: center; color: var(--steel); font-weight: 600;
  background: linear-gradient(150deg, #FAFBFC 0%, #D6DCE4 50%, #EDF0F4 70%, #C3CAD4 100%);
  border: 1px solid var(--silver);
}
.about-copy { font-size: 1.12rem; max-width: 36rem; }
.about-copy p { color: var(--steel); }
.about-copy h2 { margin-bottom: 1.5rem; }

/* ---------- FAQ ---------- */
.faq-grid { display: grid; grid-template-columns: 1fr 2fr; gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.faq-side { position: sticky; top: calc(var(--header-h) + 2rem); }
.faq-side p { margin-top: 1rem; color: var(--steel); }
@media (max-width: 860px) {
  .faq-grid { grid-template-columns: 1fr; }
  .faq-side { position: static; }
}
.faq-list { border-top: 1px solid var(--silver); }
.faq-list details { border-bottom: 1px solid var(--silver); }
.faq-list summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 1.5rem;
  padding: 1.25rem 0; font-weight: 600; font-size: 1.1rem; line-height: 1.35;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: ""; flex: none; width: 14px; height: 14px;
  background:
    linear-gradient(var(--blue), var(--blue)) center / 14px 2px no-repeat,
    linear-gradient(var(--blue), var(--blue)) center / 2px 14px no-repeat;
  transition: transform .2s ease;
}
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list summary:hover { color: var(--blue-deep); }
.faq-answer { padding: 0 2.5rem 1.4rem 0; color: var(--steel); max-width: 62ch; }

/* ---------- Final CTA ---------- */
.cta { background: var(--navy); color: var(--white); }
.cta-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 6vw, 5rem); align-items: start; }
@media (max-width: 900px) { .cta-grid { grid-template-columns: 1fr; } }
.cta h2 { max-width: 14ch; }
.cta-lede { margin-top: 1.25rem; font-size: 1.15rem; color: rgba(255, 255, 255, .78); max-width: 32rem; }

.contact { margin: 2.5rem 0 0; padding: 0; max-width: 32rem; }
.contact div { display: flex; justify-content: space-between; gap: 1rem; padding: 1rem 0; border-top: 1px solid rgba(255, 255, 255, .16); }
.contact div:last-child { border-bottom: 1px solid rgba(255, 255, 255, .16); }
.contact dt { color: rgba(255, 255, 255, .7); }
.contact dd { margin: 0; font-weight: 600; text-align: right; }
.contact a { color: var(--white); }
.contact a:hover { color: #BFD3FA; }

.form-card { background: var(--white); color: var(--ink); border-radius: 20px; padding: clamp(1.5rem, 3vw, 2.25rem); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .45); }
.field { display: grid; gap: .4rem; margin-bottom: 1.1rem; }
.field label { font-weight: 600; font-size: .95rem; }
.field .opt { font-weight: 400; color: var(--steel); }
.field .req { color: var(--error); }
.field input, .field textarea {
  width: 100%; font: inherit; color: var(--ink);
  padding: .8rem .9rem; border: 1px solid var(--silver); border-radius: 10px; background: var(--white);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(29, 91, 216, .15); }
.field input:user-invalid { border-color: var(--error); }
.form-card .btn { width: 100%; margin-top: .4rem; }
.form-error { margin-top: .9rem; color: var(--error); font-size: .95rem; }

.form-success { text-align: left; }
.form-success:focus { outline: none; }
.success-icon { width: 48px; height: 48px; border-radius: 50%; background: var(--blue); display: grid; place-items: center; margin-bottom: 1.25rem; }
.success-icon svg { width: 22px; height: 22px; }
.form-success p { font-size: 1.2rem; font-weight: 600; line-height: 1.45; }

/* ---------- Footer ---------- */
.site-footer { padding-block: 2rem; font-size: .92rem; color: var(--steel); }
.footer-inner { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .tick { background: var(--blue); border-color: var(--blue); }
  .tick svg { opacity: 1; }
  .track span { width: 36%; }
}

/* ---------- WordPress ---------- */
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
@media (max-width: 600px) { .admin-bar .site-header { top: 0; } }

.entry { max-width: 46rem; }
.entry + .entry { margin-top: 4rem; padding-top: 4rem; border-top: 1px solid var(--silver-light); }
.entry-title { font-size: clamp(2rem, 4vw, 3rem); }
.entry-title a { color: inherit; text-decoration: none; }
.entry-meta { margin-top: .75rem; color: var(--steel); font-size: .95rem; }
.entry-content { margin-top: 2rem; }
.entry-content > * + * { margin-top: 1.25rem; }
.entry-content h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); margin-top: 2.5rem; }
.entry-content h3 { font-size: 1.35rem; margin-top: 2rem; }
.entry-content img { height: auto; border-radius: 12px; }
.pagination { margin-top: 4rem; display: flex; gap: 1rem; }
