/*
Theme Name: JuicySEO 2026
Theme URI: https://www.juicyseo.co.uk/
Author: Stuart Cole
Author URI: https://www.juicyseo.co.uk/
Description: A modern, mobile-friendly WordPress theme for JuicySEO's Gloucestershire SEO and AI search consultancy.
Version: 1.0.0
Text Domain: juicyseo-2026
*/

:root {
  --ink: #121719;
  --muted: #5b656a;
  --line: #d9e0dc;
  --paper: #f8faf5;
  --white: #ffffff;
  --green: #36a33b;
  --green-dark: #205b24;
  --blue: #1c6785;
  --blue-dark: #0b3447;
  --gold: #d7a629;
  --coral: #e96f45;
  --shadow: 0 22px 60px rgba(18, 23, 25, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(90deg, rgba(18, 23, 25, 0.04) 1px, transparent 1px),
    linear-gradient(rgba(18, 23, 25, 0.035) 1px, transparent 1px),
    var(--paper);
  background-size: 54px 54px;
  color: var(--ink);
  font-family: Lato, Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  padding: 14px clamp(16px, 4vw, 56px);
  background: rgba(248, 250, 245, 0.9);
  border-bottom: 1px solid rgba(18, 23, 25, 0.1);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.brand img {
  width: 174px;
  max-height: 58px;
  object-fit: contain;
}

.nav {
  display: flex;
  justify-content: center;
  gap: 24px;
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 700;
}

.primary-menu {
  display: flex;
  gap: 24px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.nav a,
.header-cta,
.button {
  text-decoration: none;
}

.nav a {
  position: relative;
}

.nav a::after {
  position: absolute;
  right: 0;
  bottom: -7px;
  left: 0;
  height: 2px;
  background: var(--green);
  content: "";
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.nav a:hover::after,
.nav a:focus-visible::after {
  transform: scaleX(1);
}

.header-cta {
  padding: 10px 14px;
  border: 1px solid rgba(32, 91, 36, 0.32);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.56);
  color: var(--green-dark);
  font-weight: 900;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.88fr);
  align-items: center;
  gap: clamp(26px, 5vw, 70px);
  min-height: calc(100vh - 128px);
  padding: clamp(34px, 5vw, 66px) clamp(18px, 6vw, 82px);
  overflow: hidden;
}

.hero::before {
  position: absolute;
  inset: 0 0 auto;
  height: 8px;
  background: linear-gradient(90deg, var(--green), var(--blue), var(--gold), var(--coral));
  content: "";
}

.hero-copy {
  position: relative;
  z-index: 1;
  animation: lift-in 650ms ease both;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--green-dark);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 880px;
  margin-bottom: 18px;
  font-size: clamp(3rem, 6.3vw, 6.25rem);
  font-weight: 900;
  line-height: 0.9;
}

h2 {
  max-width: 850px;
  margin-bottom: 16px;
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 900;
  line-height: 1.02;
}

h3 {
  margin-bottom: 8px;
  font-size: 1.1rem;
}

.hero-text {
  max-width: 670px;
  color: var(--muted);
  font-size: 1.22rem;
  font-weight: 700;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 18px;
  border-radius: 6px;
  font-weight: 900;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button-primary {
  background: var(--green);
  color: var(--white);
  box-shadow: 0 14px 32px rgba(54, 163, 59, 0.26);
}

.button-secondary {
  border: 1px solid rgba(18, 23, 25, 0.14);
  background: rgba(255, 255, 255, 0.75);
  color: var(--ink);
}

.search-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-width: 680px;
  margin-top: 28px;
}

.search-strip span {
  padding: 8px 11px;
  border: 1px solid rgba(18, 23, 25, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--blue-dark);
  font-size: 0.9rem;
  font-weight: 900;
  animation: pulse-chip 5.4s ease-in-out infinite;
}

.search-strip span:nth-child(2) { animation-delay: 0.4s; }
.search-strip span:nth-child(3) { animation-delay: 0.8s; }
.search-strip span:nth-child(4) { animation-delay: 1.2s; }
.search-strip span:nth-child(5) { animation-delay: 1.6s; }
.search-strip span:nth-child(6) { animation-delay: 2s; }

.search-lab {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 18px;
  padding: clamp(18px, 3vw, 28px);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(12, 48, 59, 0.96), rgba(18, 23, 25, 0.96)),
    var(--ink);
  box-shadow: var(--shadow);
  color: var(--white);
  animation: lab-enter 760ms ease 140ms both;
}

.lab-top,
.lab-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.lab-top span,
.lab-bottom span {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.lab-top strong {
  color: #99f09e;
  font-size: 0.92rem;
}

.lab-stage {
  position: relative;
  min-height: 430px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 42px 42px;
}

.scan-line {
  position: absolute;
  inset: 0 auto 0 0;
  width: 34%;
  background: linear-gradient(90deg, transparent, rgba(54, 163, 59, 0.22), transparent);
  animation: scan 4s ease-in-out infinite;
}

.node {
  position: absolute;
  display: grid;
  width: 112px;
  min-height: 74px;
  place-items: center;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.09);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
  text-align: center;
  animation: float-node 5.8s ease-in-out infinite;
}

.node span {
  font-weight: 900;
  line-height: 1.1;
}

.node-site {
  top: 40%;
  left: 50%;
  width: 132px;
  min-height: 88px;
  background: var(--green);
  transform: translate(-50%, -50%);
}

.node-google { top: 8%; left: 10%; color: #dbf6ff; }
.node-maps { top: 12%; right: 9%; color: #ebffe8; animation-delay: 0.5s; }
.node-ai { right: 10%; bottom: 12%; color: #fff1cb; animation-delay: 1s; }
.node-schema { bottom: 10%; left: 9%; color: #cfeaff; animation-delay: 1.5s; }
.node-content { top: 42%; left: 4%; color: #ffd9c9; animation-delay: 2s; }

.path {
  position: absolute;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(153, 240, 158, 0.9), transparent);
  transform-origin: left;
  animation: path-glow 2.4s ease-in-out infinite;
}

.path-one { top: 31%; left: 27%; width: 34%; transform: rotate(22deg); }
.path-two { top: 32%; left: 53%; width: 31%; transform: rotate(-22deg); animation-delay: 0.5s; }
.path-three { top: 61%; left: 53%; width: 31%; transform: rotate(22deg); animation-delay: 1s; }
.path-four { top: 62%; left: 25%; width: 35%; transform: rotate(-20deg); animation-delay: 1.5s; }

.metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border-block: 1px solid var(--line);
}

.metrics div {
  padding: 26px clamp(18px, 4vw, 42px);
  background: rgba(255, 255, 255, 0.86);
}

.metrics strong,
.metrics span {
  display: block;
}

.metrics strong {
  font-size: 1.2rem;
  font-weight: 900;
}

.metrics span {
  color: var(--muted);
}

.split-section,
.services,
.proof,
.method,
.cta-band,
.content-page {
  padding: clamp(52px, 8vw, 96px) clamp(18px, 6vw, 82px);
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1fr);
  gap: clamp(26px, 6vw, 80px);
  align-items: start;
}

.split-section > p {
  color: var(--muted);
  font-size: 1.15rem;
  font-weight: 700;
}

.section-heading {
  max-width: 780px;
  margin-bottom: 28px;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.service-grid article,
.portfolio-strip article,
.testimonial-grid blockquote,
.method-list li {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
}

.service-grid article {
  position: relative;
  min-height: 220px;
  padding: 24px;
  overflow: hidden;
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.service-grid article::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: linear-gradient(var(--green), var(--blue));
  content: "";
  opacity: 0;
  transition: opacity 220ms ease;
}

.service-grid article:hover {
  border-color: rgba(54, 163, 59, 0.36);
  box-shadow: 0 18px 44px rgba(18, 23, 25, 0.11);
  transform: translateY(-5px);
}

.service-grid article:hover::before {
  opacity: 1;
}

.service-grid p,
.portfolio-strip p,
.method-list p,
.cta-band p {
  color: var(--muted);
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
}

.reveal.is-visible {
  animation: reveal-up 620ms ease both;
}

.proof {
  background: #eef5ea;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.portfolio-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.portfolio-strip article {
  overflow: hidden;
}

.portfolio-strip img {
  width: 100%;
  aspect-ratio: 4 / 2.65;
  object-fit: cover;
  background: var(--line);
  filter: saturate(0.95) contrast(1.03);
  transition: transform 260ms ease;
}

.portfolio-strip article:hover img {
  transform: scale(1.035);
}

.portfolio-strip h3,
.portfolio-strip p {
  padding-inline: 20px;
}

.portfolio-strip h3 {
  margin-top: 18px;
}

.portfolio-strip p {
  margin-bottom: 20px;
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 14px;
}

.testimonial-grid blockquote {
  margin: 0;
  padding: 24px;
}

.testimonial-grid p {
  font-size: 1.2rem;
  font-weight: 900;
  line-height: 1.35;
}

.testimonial-grid cite {
  color: var(--muted);
  font-style: normal;
  font-weight: 900;
}

.method-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.method-list li {
  padding: 24px;
}

.method-list span {
  display: block;
  margin-bottom: 28px;
  color: var(--gold);
  font-weight: 900;
}

.method-list strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1.18rem;
}

.cta-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  background:
    linear-gradient(90deg, rgba(54, 163, 59, 0.18), transparent 42%),
    var(--ink);
  color: var(--white);
}

.cta-band .eyebrow,
.cta-band p {
  color: #d4dfd8;
}

.cta-band h2 {
  margin-bottom: 12px;
}

.site-footer {
  padding: 28px clamp(18px, 6vw, 82px);
  background: #0f1416;
  color: rgba(255, 255, 255, 0.72);
}

.site-footer a {
  color: var(--white);
}

.content-page {
  max-width: 980px;
}

.content-page .entry-title {
  font-size: clamp(2.4rem, 5vw, 4.5rem);
}

@keyframes lift-in {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes lab-enter {
  from { opacity: 0; transform: translateY(24px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes scan {
  0%, 100% { transform: translateX(-80%); }
  50% { transform: translateX(260%); }
}

@keyframes float-node {
  0%, 100% { margin-top: 0; }
  50% { margin-top: -8px; }
}

@keyframes path-glow {
  0%, 100% { opacity: 0.28; }
  50% { opacity: 1; }
}

@keyframes pulse-chip {
  0%, 100% {
    background: rgba(255, 255, 255, 0.72);
    transform: translateY(0);
  }

  45% {
    background: rgba(231, 244, 228, 0.96);
    transform: translateY(-2px);
  }
}

@keyframes reveal-up {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 1050px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .search-lab {
    max-width: 760px;
  }
}

@media (max-width: 920px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .nav {
    display: none;
  }

  .split-section,
  .cta-band {
    grid-template-columns: 1fr;
  }

  .metrics,
  .service-grid,
  .method-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .site-header {
    gap: 12px;
    padding-inline: 14px;
  }

  .brand img {
    width: 138px;
  }

  .header-cta {
    padding: 9px 10px;
    font-size: 0.88rem;
  }

  .hero {
    min-height: auto;
    padding-top: 34px;
  }

  h1 {
    font-size: clamp(2.75rem, 13vw, 3.35rem);
    line-height: 0.94;
  }

  h2 {
    font-size: clamp(2rem, 10vw, 2.7rem);
  }

  .hero-text {
    font-size: 1.05rem;
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .search-strip span {
    font-size: 0.84rem;
  }

  .metrics,
  .service-grid,
  .portfolio-strip,
  .testimonial-grid,
  .method-list {
    grid-template-columns: 1fr;
  }

  .metrics div {
    padding-block: 20px;
  }

  .lab-stage {
    min-height: 360px;
  }

  .node {
    width: 96px;
    min-height: 64px;
    font-size: 0.86rem;
  }

  .node-site {
    width: 112px;
    min-height: 76px;
  }

  .lab-bottom {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 390px) {
  .site-header {
    grid-template-columns: 1fr;
  }

  .header-cta {
    justify-self: start;
  }

  .lab-stage {
    min-height: 330px;
  }

  .node-content {
    top: 45%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
