/*
Theme Name: SEOsocial
Theme URI: https://seosocial.co
Author: SEOsocial.co
Author URI: https://seosocial.co
Description: A modern, conversion-focused WordPress block theme for SEOsocial.co — selling professionally managed Google Reviews campaigns. Blue + orange SaaS branding, floating review cards, Google-style star ratings, and PayPal-ready order flow.
Version: 1.0.0
Requires at least: 6.4
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: seosocial
*/

/* ============================================================
   1. Base + brand helpers
   ============================================================ */
:root {
  --ss-shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
  --ss-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
  --ss-shadow-lg: 0 20px 50px rgba(13, 110, 253, 0.16);
  --ss-radius: 16px;
}

body {
  -webkit-font-smoothing: antialiased;
}

/* Accessibility: skip link + visible keyboard focus */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 9999;
  background: var(--wp--preset--color--primary-deep);
  color: #fff;
  padding: 0.75rem 1.25rem;
  border-radius: 0 0 10px 0;
  font-family: 'Sora', sans-serif;
  font-weight: 600;
}
.skip-link:focus { left: 0; }
a:focus-visible,
.wp-block-button__link:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--wp--preset--color--accent);
  outline-offset: 2px;
}

.wp-site-blocks > footer {
  margin-block-start: 0;
}

/* Eyebrow / kicker label above section headings */
.ss-eyebrow {
  display: block;
  font-family: 'Sora', sans-serif;
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--wp--preset--color--primary);
  margin: 0 0 0.5rem;
}
/* Centered eyebrow: ensure the text itself is centered */
.ss-eyebrow.has-text-align-center { text-align: center; width: 100%; }
.ss-eyebrow.is-on-dark { color: var(--wp--preset--color--gold); }

/* Section helpers */
.ss-section { padding-block: clamp(3.5rem, 7vw, 6rem); }

/* ============================================================
   2. Buttons (orange CTA, blue outline)
   ============================================================ */
.wp-block-button__link {
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
  box-shadow: var(--ss-shadow-sm);
}
.wp-block-button__link:hover { transform: translateY(-2px); }

/* Orange primary CTA */
.is-style-cta-orange .wp-block-button__link,
.wp-block-button.is-style-cta-orange .wp-block-button__link {
  background-color: var(--wp--preset--color--accent);
  color: var(--wp--preset--color--white);
}
.is-style-cta-orange .wp-block-button__link:hover {
  background-color: #e96e00;
  box-shadow: 0 12px 26px rgba(255, 122, 0, 0.35);
}

/* Outline (ghost) button */
.is-style-outline-blue .wp-block-button__link {
  background-color: transparent;
  color: var(--wp--preset--color--primary);
  border: 2px solid var(--wp--preset--color--primary);
}
.is-style-outline-blue .wp-block-button__link:hover {
  background-color: var(--wp--preset--color--primary);
  color: var(--wp--preset--color--white);
}
/* Outline on dark backgrounds */
.is-style-outline-white .wp-block-button__link {
  background-color: rgba(255,255,255,0.08);
  color: var(--wp--preset--color--white);
  border: 2px solid rgba(255,255,255,0.6);
}
.is-style-outline-white .wp-block-button__link:hover {
  background-color: var(--wp--preset--color--white);
  color: var(--wp--preset--color--primary-deep);
}

/* ============================================================
   3. Header / navigation
   ============================================================ */
.ss-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: saturate(180%) blur(8px);
  background-color: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--wp--preset--color--border);
}
.ss-header .wp-block-navigation a {
  font-family: 'Sora', sans-serif;
  font-weight: 500;
  color: var(--wp--preset--color--ink);
}
.ss-header .wp-block-navigation a:hover { color: var(--wp--preset--color--primary); }
.ss-brand .wp-block-site-title a { color: var(--wp--preset--color--primary-deep); text-decoration: none; }
.ss-brand .ss-brand-dot { color: var(--wp--preset--color--accent); }
/* Header logo sizing */
.ss-brand .wp-block-site-logo { margin: 0; }
.ss-brand .wp-block-site-logo img,
.ss-brand .wp-block-site-logo a img { height: auto !important; max-height: 64px; width: auto !important; }
.ss-brand .wp-block-site-logo a { display: flex; align-items: center; }
@media (max-width: 600px) {
  .ss-brand .wp-block-site-logo img,
  .ss-brand .wp-block-site-logo a img { max-height: 46px; }
}

/* ============================================================
   4. Hero
   ============================================================ */
.ss-hero {
  background:
    radial-gradient(900px 500px at 85% -15%, rgba(13,110,253,0.16) 0%, rgba(255,255,255,0) 60%),
    radial-gradient(700px 400px at 0% 110%, rgba(255,122,0,0.10) 0%, rgba(255,255,255,0) 55%),
    var(--wp--preset--color--white);
}
.ss-hero h1 { letter-spacing: -0.02em; }
.ss-hero .ss-hero-highlight { color: var(--wp--preset--color--primary); }

/* Floating Google review cards */
.ss-review-card {
  background: var(--wp--preset--color--white);
  border: 1px solid var(--wp--preset--color--border);
  border-radius: var(--ss-radius);
  box-shadow: var(--ss-shadow);
  padding: 1.1rem 1.25rem;
}
.ss-review-card.float { animation: ssFloat 4s ease-in-out infinite; }
.ss-review-card.float.delay { animation-delay: 1.2s; }
@keyframes ssFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

/* Star rating */
.ss-stars { color: var(--wp--preset--color--gold); letter-spacing: 2px; font-size: 1.05rem; }

/* Trust strip */
.ss-trust-logo {
  font-family: 'Sora', sans-serif;
  font-weight: 600;
  color: var(--wp--preset--color--ink-soft);
  opacity: 0.85;
}

/* ============================================================
   5. Cards (why-choose, benefits, steps, packages)
   ============================================================ */
.ss-card {
  background: var(--wp--preset--color--white);
  border: 1px solid var(--wp--preset--color--border);
  border-radius: var(--ss-radius);
  box-shadow: var(--ss-shadow-sm);
  padding: 1.75rem;
  height: 100%;
}

/* CRITICAL FIX: WordPress adds .has-global-padding to constrained card groups,
   which injects the huge root-padding clamp and breaks internal card spacing.
   Force all card-type components to use their own consistent padding. */
.ss-card.has-global-padding,
.ss-price-card.has-global-padding,
.ss-greview.has-global-padding,
.ss-flow-card.has-global-padding,
.ss-testimonial.has-global-padding,
.ss-review-card.has-global-padding {
  padding-left: 1.75rem !important;
  padding-right: 1.75rem !important;
  padding-top: 1.75rem !important;
  padding-bottom: 1.75rem !important;
}
/* The empty growth bars must not get card/global padding at all */
.ss-bar.has-global-padding { padding: 0 !important; }
/* Inner groups inside cards (icon+text wrappers) shouldn't inherit global padding */
.ss-card .has-global-padding,
.ss-greview .has-global-padding,
.ss-price-card .has-global-padding {
  padding-left: 0 !important;
  padding-right: 0 !important;
}
.ss-icon-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(13,110,253,0.10);
  color: var(--wp--preset--color--primary);
  font-size: 1.4rem;
  font-weight: 700;
  font-family: 'Sora', sans-serif;
  margin-bottom: 0.75rem;
}
.ss-icon-badge.is-orange { background: rgba(255,122,0,0.12); color: var(--wp--preset--color--accent); }
.ss-icon-badge.is-green { background: rgba(34,197,94,0.12); color: var(--wp--preset--color--success); }
.ss-icon-badge.is-gold { background: rgba(255,193,7,0.16); color: #B8860B; }

/* Step number */
.ss-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--wp--preset--color--primary);
  color: #fff;
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  margin-bottom: 0.6rem;
}

/* Checklist with green ticks */
.ss-checklist { list-style: none; padding-left: 0; margin: 0; }
.ss-checklist li {
  position: relative;
  padding-left: 1.9rem;
  margin-bottom: 0.6rem;
  line-height: 1.5;
}
.ss-checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.15rem;
  width: 1.3rem;
  height: 1.3rem;
  border-radius: 50%;
  background: var(--wp--preset--color--success);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/%3E%3C/svg%3E") center/0.85rem no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/%3E%3C/svg%3E") center/0.85rem no-repeat;
}

/* ============================================================
   6. Pricing packages
   ============================================================ */
.ss-price-card {
  background: var(--wp--preset--color--white);
  border: 1px solid var(--wp--preset--color--border);
  border-radius: var(--ss-radius);
  box-shadow: var(--ss-shadow-sm);
  padding: 1.75rem 1.5rem;
  height: 100%;
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.ss-price-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--ss-shadow-lg);
  border-color: rgba(13,110,253,0.4);
}
.ss-price-card.is-featured {
  border: 2px solid var(--wp--preset--color--accent);
  box-shadow: 0 18px 44px rgba(255,122,0,0.18);
}
.ss-price-card h3 { color: var(--wp--preset--color--primary-deep); }
.ss-price-amount {
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: 2.4rem;
  color: var(--wp--preset--color--accent);
  line-height: 1;
}
.ss-price-amount .ss-price-unit {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--wp--preset--color--ink-soft);
}
.ss-price-reviews {
  display: inline-block;
  font-family: 'Sora', sans-serif;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--wp--preset--color--primary);
  background: rgba(13,110,253,0.08);
  border-radius: 999px;
  padding: 0.25rem 0.85rem;
  margin-bottom: 0.5rem;
}
.ss-popular-badge {
  position: absolute;
  top: -0.9rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--wp--preset--color--accent);
  color: #fff;
  font-family: 'Sora', sans-serif;
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  white-space: nowrap;
  box-shadow: 0 6px 16px rgba(255,122,0,0.35);
}

/* ============================================================
   7. Testimonials
   ============================================================ */
.ss-testimonial {
  background: var(--wp--preset--color--white);
  border: 1px solid var(--wp--preset--color--border);
  border-radius: var(--ss-radius);
  box-shadow: var(--ss-shadow-sm);
  padding: 1.75rem;
  height: 100%;
}
.ss-testimonial .ss-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--wp--preset--gradient--blue-deep);
  color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: 'Sora', sans-serif; font-weight: 700;
}

/* ============================================================
   8. FAQ (details/summary via core block)
   ============================================================ */
.ss-faq .wp-block-details {
  background: var(--wp--preset--color--white);
  border: 1px solid var(--wp--preset--color--border);
  border-radius: 12px;
  padding: 1rem 1.25rem;
  margin-bottom: 0.75rem;
  box-shadow: var(--ss-shadow-sm);
}
.ss-faq .wp-block-details summary {
  font-family: 'Sora', sans-serif;
  font-weight: 600;
  color: var(--wp--preset--color--primary-deep);
  cursor: pointer;
}
.ss-faq .wp-block-details[open] summary { color: var(--wp--preset--color--primary); }

/* ============================================================
   9. CTA bands
   ============================================================ */
.ss-cta-band {
  background: var(--wp--preset--gradient--blue-deep);
  border-radius: 24px;
  overflow: hidden;
  position: relative;
}
.ss-cta-band::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(600px 300px at 100% 0%, rgba(255,122,0,0.25) 0%, rgba(255,255,255,0) 60%);
  pointer-events: none;
}
.ss-cta-band * { position: relative; z-index: 1; }

/* Page title banner */
.ss-page-banner {
  background:
    radial-gradient(700px 360px at 85% -20%, rgba(13,110,253,0.18) 0%, rgba(255,255,255,0) 60%),
    var(--wp--preset--color--surface);
  border-bottom: 1px solid var(--wp--preset--color--border);
}

/* ============================================================
   10. Footer
   ============================================================ */
.ss-footer { background: var(--wp--preset--color--ink); color: #cbd5e1; }
.ss-footer h3, .ss-footer .wp-block-site-title a { color: #fff; }
.ss-footer a { color: #cbd5e1; text-decoration: none; }
.ss-footer a:hover { color: var(--wp--preset--color--gold); }
.ss-footer .ss-footer-heading {
  font-family: 'Sora', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #94a3b8;
  margin-bottom: 0.75rem;
}
/* Remove bullet dots from footer link lists */
.ss-footer .ss-footer-links,
.ss-footer ul.wp-block-list {
  list-style: none !important;
  padding-left: 0 !important;
  margin: 0;
}
.ss-footer .ss-footer-links li { margin-bottom: 0.45rem; }
.ss-footer .ss-footer-links li::marker { content: none; }
/* Footer logo: the colorful logo on dark bg sits in a subtle light pill for contrast */
.ss-footer-logo { margin-top: 0; margin-bottom: 0.5rem; }
.ss-footer-logo img {
  background: #ffffff;
  padding: 8px 12px;
  border-radius: 10px;
  max-width: 180px;
  height: auto;
}

/* ============================================================
   11. Equal-height cards
   ============================================================ */
.equal-cards > .wp-block-column {
  display: flex;
  flex-direction: column;
  flex-grow: 0;
}
.equal-cards > .wp-block-column > .wp-block-group {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.equal-cards .cta-bottom {
  margin-top: auto;
  justify-content: center;
}

/* ============================================================
   12. Animation & motion
   PROGRESSIVE ENHANCEMENT: content is fully visible by default.
   Hidden initial states apply ONLY when JS confirms it can reveal them
   (html.ss-js). If JS fails/blocked, nothing is ever invisible.
   ============================================================ */
.animate-on-scroll { transition: opacity 0.5s ease, transform 0.5s ease; }

/* Gentle entrance: never drops below readable opacity, just a soft slide-up.
   Even if JS timing is off, text stays legible. */
html.ss-js .animate-on-scroll {
  opacity: 0.35;
  transform: translateY(18px);
}
html.ss-js .animate-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

html.ss-js .fade-up { opacity: 0; transform: translateY(30px); animation: ssFadeUp 0.7s ease forwards; }
@keyframes ssFadeUp { to { opacity: 1; transform: translateY(0); } }

html.ss-js .stagger-children > * {
  opacity: 0;
  transform: translateY(20px);
  animation: ssFadeUp 0.55s ease forwards;
}
html.ss-js .stagger-children > *:nth-child(1) { animation-delay: 0.08s; }
html.ss-js .stagger-children > *:nth-child(2) { animation-delay: 0.16s; }
html.ss-js .stagger-children > *:nth-child(3) { animation-delay: 0.24s; }
html.ss-js .stagger-children > *:nth-child(4) { animation-delay: 0.32s; }
html.ss-js .stagger-children > *:nth-child(5) { animation-delay: 0.40s; }

.hover-lift { transition: transform 0.2s ease, box-shadow 0.2s ease; }
.hover-lift:hover { transform: translateY(-4px); box-shadow: var(--ss-shadow); }

/* ============================================================
   12b. Google Reviews -> Ranking -> Sales section
   ============================================================ */
.ss-rank {
  background:
    radial-gradient(700px 360px at 100% 0%, rgba(255,122,0,0.08), rgba(255,255,255,0) 60%),
    var(--wp--preset--color--primary-deep);
  color: #fff;
}
.ss-rank h2, .ss-rank h3 { color: #fff; }
.ss-rank .ss-eyebrow { color: var(--wp--preset--color--gold); }

/* Flow steps (More Reviews -> Higher Ranking -> More Visibility -> More Sales) */
.ss-flow-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--ss-radius);
  padding: 1.5rem 1.25rem;
  height: 100%;
  text-align: center;
  position: relative;
  transition: transform 0.25s ease, background 0.25s ease;
}
.ss-flow-card:hover { transform: translateY(-6px); background: rgba(255,255,255,0.10); }
.ss-flow-icon {
  width: 56px; height: 56px; margin: 0 auto 0.75rem;
  display: flex; align-items: center; justify-content: center;
  border-radius: 16px; font-size: 1.6rem; font-weight: 700; font-family: 'Sora',sans-serif;
  background: var(--wp--preset--gradient--orange-soft); color: #1F2937;
}
.ss-flow-arrow { color: var(--wp--preset--color--gold); font-size: 1.6rem; text-align: center; }

/* Animated stat counters */
.ss-stat { text-align: center; }
.ss-stat-num {
  font-family: 'Sora', sans-serif; font-weight: 700;
  font-size: clamp(2.2rem, 4vw, 3rem); line-height: 1; color: var(--wp--preset--color--gold);
}
.ss-stat-label { color: rgba(255,255,255,0.85); font-size: 0.95rem; margin-top: 0.35rem; }

/* Ascending growth bars (CSS-only, animate on view) */
.ss-bars { display: flex; align-items: flex-end; gap: 0.6rem; height: 150px; justify-content: center; }
.ss-bar {
  width: 38px; border-radius: 8px 8px 0 0;
  background: var(--wp--preset--gradient--orange-soft);
  height: 12%;
  transition: height 0.9s cubic-bezier(0.16,1,0.3,1);
}
.is-visible .ss-bar:nth-child(1){ height: 28%; transition-delay:.05s; }
.is-visible .ss-bar:nth-child(2){ height: 46%; transition-delay:.15s; }
.is-visible .ss-bar:nth-child(3){ height: 64%; transition-delay:.25s; }
.is-visible .ss-bar:nth-child(4){ height: 82%; transition-delay:.35s; }
.is-visible .ss-bar:nth-child(5){ height: 100%; transition-delay:.45s; }
.ss-bar.is-peak { background: var(--wp--preset--color--gold); }

/* ============================================================
   12c. Google-style review cards (review showcase)
   ============================================================ */
.ss-greview {
  background: #fff;
  border: 1px solid var(--wp--preset--color--border);
  border-radius: 14px;
  box-shadow: var(--ss-shadow-sm);
  padding: 1.4rem;
  height: 100%;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.ss-greview:hover { transform: translateY(-5px); box-shadow: var(--ss-shadow); }
.ss-greview-head { display: flex; align-items: center; justify-content: flex-start; gap: 0.75rem; margin-bottom: 0.6rem; }
.ss-greview-head.wp-block-group { justify-content: flex-start !important; }
/* Reviewer avatar with initials */
.ss-greview-avatar {
  width: 44px; height: 44px; border-radius: 50%; flex: 0 0 44px;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Sora', sans-serif; font-weight: 700; color: #fff; font-size: 1rem;
}
.ss-av-blue { background: #4285F4; }
.ss-av-red { background: #EA4335; }
.ss-av-green { background: #34A853; }
.ss-av-orange { background: var(--wp--preset--color--accent); }
.ss-av-purple { background: #7E57C2; }
.ss-av-teal { background: #00897B; }
.ss-greview-name { font-family: 'Sora', sans-serif; font-weight: 600; color: var(--wp--preset--color--ink); line-height: 1.1; }
.ss-greview-meta { font-size: 0.78rem; color: var(--wp--preset--color--ink-soft); }
.ss-greview-stars { color: var(--wp--preset--color--gold); letter-spacing: 1px; font-size: 0.95rem; }
/* Google "G" multi-color mark, drawn with conic-gradient ring */
.ss-google-g {
  width: 20px; height: 20px; border-radius: 50%; flex: 0 0 20px; position: relative;
  background:
    conic-gradient(from -45deg, #EA4335 0deg 90deg, #FBBC05 90deg 180deg, #34A853 180deg 270deg, #4285F4 270deg 360deg);
  -webkit-mask: radial-gradient(circle 5px at center, transparent 98%, #000 100%);
  mask: radial-gradient(circle 5px at center, transparent 98%, #000 100%);
}
.ss-greview-foot { display: flex; align-items: center; gap: 0.4rem; margin-top: 0.85rem; font-size: 0.78rem; color: var(--wp--preset--color--ink-soft); }
.ss-greview-foot .ss-google-word { font-family: 'Sora', sans-serif; font-weight: 600; }
.ss-greview-foot .gb { color:#4285F4 } .ss-greview-foot .gr{color:#EA4335} .ss-greview-foot .gy{color:#FBBC05} .ss-greview-foot .gg{color:#34A853}

/* ============================================================
   13. Reduced motion
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
  .animate-on-scroll, .fade-up, .stagger-children > *, .ss-review-card.float {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ============================================================
   14. Editor visibility overrides
   ============================================================ */
.editor-styles-wrapper .animate-on-scroll,
.editor-styles-wrapper .fade-up,
.editor-styles-wrapper .stagger-children > *,
.editor-styles-wrapper .ss-review-card.float {
  opacity: 1 !important;
  transform: none !important;
  animation: none !important;
  transition: none !important;
}

/* ============================================================
   15. Responsive
   ============================================================ */

/* Global overflow guards — stop wide media/tables breaking layout on small screens */
html, body { overflow-x: hidden; max-width: 100%; width: 100%; margin: 0; }
img, iframe, video, table { max-width: 100%; }
.wp-block-post-content table { display: block; overflow-x: auto; }
.wp-block-image img { height: auto; }
/* Never let a child force the page wider than the viewport */
.wp-site-blocks, .wp-block-group, .wp-block-columns { max-width: 100%; }

.wp-site-blocks { overflow-x: clip; }
/* Full-width sections: background spans the ENTIRE viewport, edge to edge.
   Zero side margin/padding on the section itself so the background touches
   both screen edges. (Inner content gets centered + padded in section 18.) */
.alignfull {
  margin-left: 0 !important;
  margin-right: 0 !important;
  max-width: 100% !important;
  width: 100%;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

/* ============================================================
   GLOBAL GUTTERS — WordPress applies root padding (set in theme.json)
   to full-width sections via useRootPaddingAwareAlignments, so content
   keeps a comfortable side gutter and never hugs the screen edge.
   These rules just make alignwide content center cleanly.
   ============================================================ */
.alignwide { margin-left: auto; margin-right: auto; }
/* Hero/header inner rows are alignwide and inherit the centered gutter */
.ss-hero .alignwide,
.ss-header .alignwide { width: 100%; }

/* ---- Tablet (≤ 1024px) ---- */
@media (max-width: 1024px) {
  .ss-section { padding-block: clamp(3rem, 6vw, 4.5rem); }

  /* Multi-up grids collapse to 2 columns on tablet for readability.
     WordPress lays columns out with flex; force a wrapping 2-up grid. */
  .wp-block-columns.equal-cards {
    flex-wrap: wrap;
  }
  .wp-block-columns.equal-cards > .wp-block-column {
    flex-basis: calc(50% - 0.75rem) !important;
    flex-grow: 1;
  }
  /* Pricing: keep 2-up but let the featured card breathe */
  .ss-price-card.is-featured { margin-top: 1rem; }
}

/* ---- Mobile (≤ 781px : WordPress's column-stacking breakpoint) ---- */
@media (max-width: 781px) {
  .ss-hero { text-align: center; }
  .ss-hero .wp-block-columns { gap: 1rem; }

  /* Force ALL columns (hero + any with explicit widths) to stack full-width */
  .wp-block-columns { flex-wrap: wrap !important; }
  .wp-block-columns > .wp-block-column { flex-basis: 100% !important; min-width: 100% !important; }

  /* All card grids go single column */
  .wp-block-columns.equal-cards > .wp-block-column {
    flex-basis: 100% !important;
  }

  /* Long headline words wrap instead of overflowing */
  h1, h2, .wp-block-post-title { overflow-wrap: break-word; word-break: break-word; }

  /* Floating review cards: re-center, no offset, calm the motion */
  .ss-review-card.float.delay { margin-left: 0 !important; }
  .ss-review-card { animation: none !important; }

  /* Sticky header: tighter, allow nav button to wrap cleanly */
  .ss-header .wp-block-group { row-gap: 0.5rem; }

  /* Headings scale down so they never overflow narrow screens */
  h1, .wp-block-post-title { font-size: clamp(1.9rem, 7vw, 2.4rem) !important; line-height: 1.15; }
  h2 { font-size: clamp(1.6rem, 6vw, 2rem) !important; }

  /* Pricing */
  .ss-price-amount { font-size: 2.1rem; }
  .ss-popular-badge { font-size: 0.7rem; white-space: normal; text-align: center; }

  /* CTA band + cards: trim padding on phones */
  .ss-cta-band { padding-left: 1.25rem !important; padding-right: 1.25rem !important; }
  .ss-card, .ss-price-card, .ss-testimonial { padding: 1.4rem; }

  /* Full-width buttons feel better on mobile for the main CTAs */
  .ss-hero .wp-block-buttons .wp-block-button { flex: 1 1 100%; }
  .ss-hero .wp-block-buttons .wp-block-button .wp-block-button__link { display: block; text-align: center; }

  /* Footer columns stack with comfortable spacing */
  .ss-footer .wp-block-column { flex-basis: 100% !important; margin-bottom: 1.25rem; }

  /* Trust strip: wrap + center so industry names never get cut off */
  .ss-trust .wp-block-group,
  .has-surface-background-color .wp-block-group.alignwide {
    justify-content: center !important;
    gap: 0.6rem 1.4rem !important;
  }
  /* Review cards must never exceed the column width */
  .ss-review-card { margin-left: 0 !important; max-width: 100%; }
}

/* ---- Small phones (≤ 480px) ---- */
@media (max-width: 480px) {
  .ss-section { padding-block: 2.5rem; }
  .ss-trust-logo { font-size: 0.9rem; }
  .ss-stars { font-size: 1rem; }
  .ss-icon-badge { width: 46px; height: 46px; }

  /* Header: brand + hamburger + button fit on one row without clipping */
  .ss-header .wp-block-site-title { font-size: 1.15rem; }
  .ss-header .wp-block-button__link { padding: 0.55rem 0.9rem; font-size: 0.85rem; }

  /* Ranking flow stacks vertically; hide the horizontal arrows on phones */
  .ss-rank .wp-block-columns { flex-wrap: wrap !important; }
  .ss-flow-arrow { transform: rotate(90deg); margin: 0.25rem auto; }
}

/* Larger, finger-friendly tap targets on touch devices */
@media (hover: none) and (pointer: coarse) {
  .wp-block-navigation a,
  .ss-footer a { padding-block: 0.25rem; }
  .wp-block-button__link { min-height: 44px; display: inline-flex; align-items: center; }
}

/* ============================================================
   16. GLOBAL POLISH — tame oversized text, fix pricing tables,
   header height, and consistent spacing across all breakpoints.
   ============================================================ */

/* --- Reduce oversized headings site-wide for a cleaner, professional scale --- */
h1, .wp-block-post-title { font-size: clamp(2rem, 3.6vw, 2.9rem) !important; line-height: 1.12; }
h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem) !important; line-height: 1.2; }
h3 { font-size: clamp(1.15rem, 1.6vw, 1.4rem) !important; line-height: 1.25; }
.has-huge-font-size { font-size: clamp(2rem, 3.6vw, 2.9rem) !important; }
.has-xx-large-font-size { font-size: clamp(1.5rem, 2.6vw, 2.1rem) !important; }
.has-x-large-font-size { font-size: clamp(1.3rem, 2vw, 1.6rem) !important; }
.has-large-font-size { font-size: 1.2rem !important; }
.ss-price-amount { font-size: clamp(2rem, 2.6vw, 2.4rem) !important; }
.ss-stat-num { font-size: clamp(1.8rem, 3vw, 2.6rem) !important; }

/* --- Benefit cards (5-up "Why Google Reviews matter"): smaller headings,
   no ugly mid-word breaks, content vertically centered (kills empty bottom gap) --- */
.ss-card h3.has-large-font-size,
.ss-card h3 {
  font-size: 1.15rem !important;
  line-height: 1.25;
  overflow-wrap: normal;
  word-break: keep-all;        /* don't break words mid-character */
  hyphens: none;
}
/* The 5-up benefit row: don't stretch cards taller than their content */
.equal-cards > .wp-block-column > .ss-card {
  justify-content: center;     /* center content vertically, removes big bottom gap */
}
/* Benefit/why-choose cards: comfortable, balanced padding */
.ss-card { padding: 1.5rem 1.4rem; }

/* --- Header height: fit the logo cleanly, vertically centered --- */
.ss-header > .wp-block-group { min-height: 72px; }
.ss-brand .wp-block-site-logo img,
.ss-brand .wp-block-site-logo a img { max-height: 56px !important; }

/* --- PRICING TABLE: never compress; cards keep a sensible min width --- */
.ss-price-card { min-width: 0; }
.wp-block-columns.equal-cards { gap: 1.5rem; }
/* On desktop the 3-up row each gets equal share; enforce so "Professional" never wraps */
.ss-price-card h3 { white-space: nowrap; }
.ss-price-card .ss-checklist li { font-size: 0.92rem; }

/* Tablet: pricing becomes a clean 2-up grid (was compressing to tiny columns) */
@media (max-width: 1024px) {
  .wp-block-columns.equal-cards { flex-wrap: wrap; }
  .wp-block-columns.equal-cards > .wp-block-column {
    flex: 1 1 calc(50% - 0.75rem) !important;
    min-width: calc(50% - 0.75rem) !important;
  }
}
/* Mobile: pricing + all card grids go single, full-width column */
@media (max-width: 680px) {
  .wp-block-columns.equal-cards > .wp-block-column {
    flex: 1 1 100% !important;
    min-width: 100% !important;
  }
  .ss-price-card h3 { white-space: normal; }
}

/* --- Consistent vertical rhythm: tighten section text width for readability --- */
.ss-section p { max-width: 65ch; }
.ss-section .has-text-align-center { margin-left: auto; margin-right: auto; }

/* ============================================================
   17. Fluent Forms — brand styling so the Order/Contact forms
   match the site (blue/orange, rounded, proper spacing).
   ============================================================ */
.fluentform .ff-el-input--label label,
.fluentform label {
  font-family: 'Sora', sans-serif;
  font-weight: 600;
  color: var(--wp--preset--color--primary-deep);
  margin-bottom: 0.35rem;
}
.fluentform .ff-el-group { margin-bottom: 1.1rem; }
.fluentform input[type=text],
.fluentform input[type=email],
.fluentform input[type=tel],
.fluentform input[type=url],
.fluentform input[type=number],
.fluentform select,
.fluentform textarea {
  width: 100%;
  border: 1px solid var(--wp--preset--color--border) !important;
  border-radius: 10px !important;
  padding: 0.7rem 0.9rem !important;
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem;
  background: #fff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  box-shadow: none !important;
}
.fluentform input:focus,
.fluentform select:focus,
.fluentform textarea:focus {
  border-color: var(--wp--preset--color--primary) !important;
  box-shadow: 0 0 0 3px rgba(13,110,253,0.12) !important;
  outline: none;
}
.fluentform textarea { min-height: 120px; }
/* Submit button matches the orange CTA */
.fluentform .ff-btn-submit,
.fluentform button[type=submit] {
  background: var(--wp--preset--color--accent) !important;
  color: #fff !important;
  font-family: 'Sora', sans-serif;
  font-weight: 600;
  border: none !important;
  border-radius: 10px !important;
  padding: 0.85rem 2rem !important;
  font-size: 1rem !important;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
  width: auto;
}
.fluentform .ff-btn-submit:hover,
.fluentform button[type=submit]:hover {
  background: #e96e00 !important;
  transform: translateY(-2px);
}
.ff-message-success {
  background: rgba(34,197,94,0.1);
  border: 1px solid var(--wp--preset--color--success);
  border-radius: 10px;
  padding: 1rem;
  color: #166534;
}

/* Selected-package summary box on the order page (shows price; H1 has no price) */
/* The pill (name + reviews + price) is ONE bordered unit, CENTERED under the
   title. Uses fit-content + auto side margins so it centers regardless of the
   section's content rules. */
.ss-pkg-summary {
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  width: fit-content !important;
  max-width: 90% !important;
  margin: 1rem auto 0 auto !important;
  background: #fff !important;
  border: 2px solid var(--wp--preset--color--accent) !important;
  border-radius: 999px !important;
  padding: 0.5rem 1.25rem !important;
  box-shadow: var(--ss-shadow-sm) !important;
  flex-wrap: wrap;
}
.ss-pkg-summary-name,
.ss-pkg-summary-meta,
.ss-pkg-summary-price { display: inline-flex; align-items: center; }
.ss-pkg-summary-name {
  font-family: 'Sora', sans-serif; font-weight: 700;
  color: var(--wp--preset--color--primary-deep);
}
.ss-pkg-summary-meta {
  font-size: 0.9rem; color: var(--wp--preset--color--ink-soft);
}
.ss-pkg-summary-price {
  font-family: 'Sora', sans-serif; font-weight: 700;
  color: var(--wp--preset--color--accent);
  background: rgba(255,122,0,0.1);
  border-radius: 999px;
  padding: 0.15rem 0.75rem;
}

/* ============================================================
   18. FULL-WIDTH BACKGROUNDS, CENTERED CONTENT  (the correct pattern)
   - Section BACKGROUND = 100% viewport width, edge to edge.
   - Section CONTENT (text, headings, cards) = centered, max 1200px.
   ============================================================ */
:root { --ss-container: 1200px; --ss-edge: clamp(1rem, 4vw, 3rem); }

/* Kill WordPress root padding on full-width sections so the BACKGROUND
   reaches both screen edges (no inset). */
body { --wp--style--root--padding-left: 0px; --wp--style--root--padding-right: 0px; }

/* Section wrappers: full viewport width, background touches the edges */
.ss-header, .ss-hero, .ss-section, .ss-footer, .ss-page-banner,
.alignfull.ss-header, .alignfull.ss-hero, .alignfull.ss-section, .alignfull.ss-footer, .alignfull.ss-page-banner {
  width: 100% !important;
  max-width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

/* Inner content: CENTERED + max-width + padded. Applied to EVERY direct child
   of a section (groups, columns, headings, paragraphs, details/FAQ, buttons,
   spacers...) so NOTHING stretches full-width or touches the edge — only the
   section background is full-width. This is the ONLY place gutters live. */
.ss-header > *,
.ss-hero > *,
.ss-section > *,
.ss-footer > *,
.ss-page-banner > * {
  max-width: var(--ss-container) !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: var(--ss-edge) !important;
  padding-right: var(--ss-edge) !important;
  box-sizing: border-box;
}
/* Inner-page post-content is FULL WIDTH so its alignfull sections (which carry
   the colored backgrounds) reach both screen edges exactly like the homepage. */
.wp-block-post-content {
  max-width: 100% !important;
  width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}
/* alignfull sections inside post-content span the full viewport (background
   edge-to-edge). The section's OWN content gets centered by the rules below. */
.wp-block-post-content > .alignfull,
.wp-block-post-content > .ss-section,
.wp-block-post-content > .ss-page-banner {
  width: 100% !important;
  max-width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}
/* Any full-width intro group inside post-content (NOT a styled section):
   keep its inner content centered in a container so eyebrows/headings/text
   don't escape to the far-left edge. */
.wp-block-post-content > .alignfull.is-layout-constrained > *,
.wp-block-post-content > .alignfull:not(.ss-section):not(.ss-page-banner) > * {
  max-width: var(--ss-container) !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: var(--ss-edge);
  padding-right: var(--ss-edge);
  box-sizing: border-box;
}
/* Plain text blocks (Privacy/Terms paragraphs, headings NOT in a full section)
   stay centered + padded so they don't touch the edge. */
.wp-block-post-content > :not(.alignfull):not(.ss-section):not(.ss-page-banner) {
  max-width: var(--ss-container) !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: var(--ss-edge) !important;
  padding-right: var(--ss-edge) !important;
  box-sizing: border-box;
}
/* Spacers/separators don't need horizontal padding (avoid odd gaps) */
.ss-section > .wp-block-spacer,
.ss-section > .wp-block-separator { padding-left: 0 !important; padding-right: 0 !important; }
