:root {
    --olive: #4d553b;
    --red: #b43a37;
    --cream: #fdf9c4;
    --green: #d6ebac;
    --bronze: #c88b4a;
    --silver: #c4c4c4;
    --gold: #d6b358;
    --ink: #233629;
}
.eds-section {
    padding: 4rem 5vw;
    color: var(--ink);
}
.btn {
    display: inline-flex;
    align-items: center;
    padding: .85rem 1.2rem;
    border-radius: .5rem;
    font-family: 'Afacad', sans-serif;
    font-size: 1.15rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    text-decoration: none;
}
.btn-red {
    background: var(--red);
    color: #fff;
}
.btn-text {
    color: var(--olive);
    text-decoration: none;
    font-size: 1rem;
    opacity: 0.7;
    transition: opacity 0.25s ease;
}
.btn-text:hover {
    opacity: 1;
}
.btn-olive {
    background: var(--olive);
    color: #fff;
}
.btn-cream {
    background: var(--cream);
    color: var(--ink);
}
/* HERO 1 — three signs on a wall above a counter */ .hero-signs {
    position: relative;
    min-height: 72vh;
    overflow: hidden;
    display: grid;
    align-items: center;
}
.hero-signs .wall {
    position: absolute;
    inset: 0;
    z-index: 0;
    background: linear-gradient(#f3ecd8 0%, #cdd9c3 70%);
}
.hero-signs .counter {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 12vh;
    min-height: 80px;
    z-index: 1;
    background: #2f4b3a;
    box-shadow: 0 -6px 0 rgba(0, 0, 0, .08) inset;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
}
.hero-signs .signs {
    position: relative;
    z-index: 2;
    display: flex;
    gap: 2.2vw;
    justify-content: center;
    align-items: flex-start;
    padding-top: 6vh;
    padding-bottom: 18vh;
}
.hero-signs .sign {
    width: min(20vw, 360px);
    height: auto;
    display: block;
    transform-origin: 50% 0%;
}
.hero-signs .sign-b {
    margin-top: 4vh;
}
.hero-signs .sign-c {
    margin-top: 2vh;
}
.hero-signs .hero-copy {
    position: absolute;
    right: 6vw;
    top: 10vh;
    z-index: 3;
    max-width: 560px;
    color: #233629;
    text-shadow: 0 1px 0 rgba(255, 255, 255, .35);
}
.hero-signs .hero-copy h1 {
    margin: 0 0 .4rem;
    font-size: clamp(2rem, 4.5vw, 3rem);
}
.hero-signs .hero-copy p {
    margin: 0 0 1rem;
    opacity: .95;
}
.hero-signs .cta-wrap {
    display: flex;
    gap: .8rem;
    flex-wrap: wrap;
}
@media (max-width: 800px) {
    .hero-signs .signs {
        flex-direction: column;
        align-items: center;
        gap: 1.2rem;
        padding-bottom: 22vh;
    }
    .hero-signs .sign {
        width: min(60vw, 420px);
    }
    .hero-signs .hero-copy {
        position: relative;
        right: auto;
        top: auto;
        margin: 0 auto;
        text-align: center;
        padding: 1rem 0;
    }
}
/* Paths grid */ .paths {
    padding: 3.5rem 5vw;
}
.paths h2 {
    margin: 0 0 1rem;
}
.paths .grid {
    display: grid;
    gap: 1.2rem;
    grid-template-columns: repeat(4, 1fr);
}
.paths .card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: #233629;
    border-radius: 16px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 6px 22px rgba(0, 0, 0, .06);
}
.paths .card img {
    width: 100%;
    height: auto;
    display: block;
}
.paths .card span {
    padding: .8rem 1rem;
    font-weight: 700;
}
@media (max-width: 900px) {
    .paths .grid {
        grid-template-columns: 1fr 1fr;
    }
}
@media (max-width:600px) {
    .paths .grid {
        grid-template-columns: 1fr;
    }
}
/* Service Packages */ #sp-hero {
    position: relative;
    min-height: 72vh;
    display: grid;
    place-items: center;
    padding: 8rem 5vw;
    background-size: cover;
    background-position: center;
}
#sp-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(243, 236, 216, .72), rgba(205, 217, 195, .35));
}
#sp-hero .wrap {
    position: relative;
    max-width: 960px;
    text-align: center;
}
.sp-plans h2, .sp-process h2, .sp-faq h2 {
    margin: 0 0 1rem;
    text-align: center;
}
.sp-process > .wrap > p {
    text-align: center;
}
.sp-process > .wrap {
    max-width: none;
    padding: 0 5vw;
}
.sp-process .steps {
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}
.sp-plans h2 {
    max-width: none;
    margin: 0 auto 1rem;
    text-align: center;
}
.sp-plans > .wrap {
    max-width: none;
    padding: 0 5vw;
}
.sp-plans > .wrap > p {
    text-align: center;
    max-width: none;
}
.sp-plans .grid {
    display: grid;
    gap: 1.2rem;
    grid-template-columns: repeat(3, 1fr);
    max-width: 1200px;
    margin: 0 auto;
}
.card {
    background: #fff;
    border-radius: 14px;
    padding: 1.2rem;
    box-shadow: 0 6px 22px rgba(0, 0, 0, .06);
}
.card h3 {
    margin: .2rem 0 .15rem;
}
.card .sub {
    opacity: .85;
    margin: 0 0 .6rem;
}
.card .list {
    margin: 0 0 1rem;
    padding-left: 1rem;
}
.card .btn {
    width: 100%;
    text-align: center;
}
.card.bronze {
    border-top: 6px solid var(--bronze);
}
.card.silver {
    border-top: 6px solid var(--silver);
}
.card.gold {
    border-top: 6px solid var(--gold);
}
.sp-process .steps {
    list-style: none;
    padding: 0;
    max-width: 900px;
    margin: 0 auto;
}
.sp-process .steps li {
    margin: .5rem 0;
    padding: .6rem .8rem;
    background: var(--cream);
    border-radius: 10px;
}
.sp-faq {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 2rem;
    padding-right: 2rem;
}
.sp-faq details {
    max-width: 900px;
    margin: .5rem auto;
    background: #fff;
    padding: 1rem;
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .05);
}
.sp-cta .cta-bar {
    max-width: 1100px;
    margin: 0 auto;
    background: var(--olive);
    color: #fff;
    border-radius: 16px;
    padding: 1.2rem 1.4rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}
@media (max-width: 960px) {
    .sp-plans .grid {
        grid-template-columns: 1fr;
    }
    .sp-cta .cta-bar {
        flex-direction: column;
        text-align: center;
    }
}
/* Maintenance hero */ #maintenance-hero {
    position: relative;
    overflow: hidden;
    height: 60vh;
    min-height: 520px;
}
#maintenance-hero .stack {
    position: absolute;
    inset: 0;
}
#maintenance-hero img {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 1920px;
    max-width: none;
    bottom: 0;
}
#maintenance-hero .sky {
    top: 0;
    bottom: auto;
}
.eds-hero {
    position: relative;
    height: 100vh;
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: flex-end;
}
/* Scroll Down — responsive sizing + position */
#hero1 .scroll-down,
#hero2 .scroll-down, #hero3 .scroll-down, #hero4 .scroll-down {
  position: absolute;
  bottom: 20vh;
  left: 50%;
  translate: -50% 0; /* or transform: translateX(-50%); */
  display: inline-block;
  animation: bounce 2s infinite;
  z-index: 3;
}


@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { translate: -50% 0; }
    40%                      { translate: -50% 8px; }
    60%                      { translate: -50% 4px; }
}


.scroll-down img {
    width: 115px;
/* 83 × 1.35 ≈ 115px — 35% bigger overall */ height: 115px;
opacity: 0.85;
transition: opacity 0.3s ease;
}
.scroll-down img:hover {
    opacity: 1;
}
/* Mobile adjustment: slightly smaller and lower */
@media (max-width: 900px) {
    #hero1 .scroll-down {
        bottom: -3vh;
    }
    #hero1 .scroll-down, #hero2 .scroll-down {
        bottom: 10vh;
    }
    .scroll-down img {
        width: 95px;
        height: 95px;
    }
}
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(8px);
    }
    60% {
        transform: translateY(4px);
    }
}
html {
    scroll-behavior: auto !important;
}
/* HERO 1 — constructed wall composition */
#hero1 {
    position: relative;
    height: 100vh;
    overflow: hidden;
}
/* background wall texture */ #hero1 .hero-bg {
    position: absolute;
    inset: 0;
    background: url('/wp-content/uploads/construct/wall.png') center/cover no-repeat;
    z-index: 0;
}
/* CSS worktop — scales to any screen, sits above wall */
#hero1 .hero-worktop {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 18vh;
    min-height: 120px;
    background: linear-gradient(to bottom, var(--cream), var(--green));
    border-top: 3px solid var(--olive);
    z-index: 3;
}

/* utensils — sit on the worktop, never scale beyond native size */
#hero1 .hero-utensils {
    position: absolute;
    bottom: 16vh;
    left: 50%;
    transform: translateX(-50%);
    width: 1920px;
    max-width: none;
    height: auto;
    z-index: 4;
    pointer-events: none;
}
/* sign row */ #hero1 .signs {
    position: absolute;
    top: 20%;
/* visually two-thirds up */ left: 50%;
transform: translateX(-50%);
width: 100%;
max-width: 1720px;
display: grid;
grid-template-columns: 1fr 1fr 1fr;
justify-items: center;
align-items: center;
z-index: 2;
}
/* sign styling */ #hero1 .sign {
    width: 28vw;
    max-width: 380px;
    height: auto;
    display: block;
/* animation: signSway 4s ease-in-out infinite alternate;
*/ transform-origin: top center;
}
/* subtle, out-of-phase sway per sign */ .sign-left {
    animation-delay: 0s;
}
.sign-center {
    animation-delay: 0.8s;
}
.sign-right {
    animation-delay: 1.6s;
}
/* hanging sway motion */ @keyframes signSwayLeftRight {
    0% {
        transform: rotate(-2deg);
    }
    100% {
        transform: rotate(2deg);
    }
}
@keyframes signSwayRightLeft {
    0% {
        transform: rotate(2deg);
    }
    100% {
        transform: rotate(-2deg);
    }
}
/* apply to each sign */ .sign-left {
    animation: signSwayLeftRight 4s ease-in-out infinite alternate;
    animation-delay: 0s;
}
.sign-center {
    animation: signSwayRightLeft 4s ease-in-out infinite alternate;
/* opposite direction */ animation-delay: 1s;
/* slight phase offset */}
.sign-right {
    animation: signSwayLeftRight 4s ease-in-out infinite alternate;
    animation-delay: 0.5s;
}
/* mobile version, a touch more sway */ 
@media (max-width: 900px) {
    .sign-left, .sign-right {
        animation: signSwayLeftRight 3.5s ease-in-out infinite alternate;
    }
    .sign-center {
        animation: signSwayRightLeft 3.5s ease-in-out infinite alternate;
    }
}
/* responsive stacking */
@media (max-width: 900px) {
    #hero1 {
/* height: 90vh; */
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
padding-top: 50px;
}

#hero1 .signs {
    position: relative;
    top: -10%;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly; /* distributes signs evenly */
    align-items: center;
    height: 60vh; /* reserved zone for the signs */
    width: 100%;
    row-gap: 0; /* spacing now handled by flex */
    z-index: 2;
}

#hero1 .sign {
    width: 50vw;        /* ~30% smaller than desktop */
    max-width: 280px;   /* keeps them tidy */
    height: auto;
    transform-origin: bottom center;
/* animation: signSwayMobile 3.5s ease-in-out infinite alternate; */
}

#hero1 .hero-utensils {
    width: 1080px;
    bottom: 16vh;
}
}


@media (max-width: 600px) {
    #hero1 {
/* height: 85vh;  tighter fit for phones */
}

#hero1 .signs {
    height: 55vh; /* slightly smaller sign area */
    justify-content: space-around;
}

#hero1 .sign {
    width: 45vw;       /* smaller signs so they fit neatly */
    max-width: 220px;  /* limit their absolute size */
}

#hero1 .hero-utensils {
    width: 1080px;
    bottom: 16vh;
}

#hero1 .scrolldown {
    width: 50px;
    bottom: 3vh;
    opacity: 0.8;
}
}

}

body {
    scroll-padding-top: 55px;
/* prevents overlap when using #anchors */}
/* section one scroll indicator */
.scroll-indicator {
    position: absolute;
    bottom: 4vh;
    left: 50%;
    transform: translateX(-50%);
    animation: floatDown 2.5s ease-in-out infinite;
}
@keyframes floatDown {
    0%, 100% {
        transform: translate(-50%, 0);
        opacity: 1;
    }
    50% {
        transform: translate(-50%, 10px);
        opacity: 0.8;
    }
}

/* utensils z-index handled in #hero1 rules above */
/* Fix for WordPress admin bar overlapping header */
.admin-bar #main-header {
    top: 32px;
}
@media screen and (max-width: 782px) {
    .admin-bar #main-header {
        top: 46px;
    }
}
@media screen and (max-width: 600px) {
    .admin-bar #main-header {
        top: 0;
    }
}
/* Responsive utensils — already handled above, this block kept for closing brace */
@media (max-width: 1920px) {
    #hero1 .hero-utensils {
        /* no overrides needed — utensils stay at 1920px native */
object-fit: cover;
/* trims edges instead of squashing */
}
}
/* HERO 2 — Website Rebuilds */
#hero2 {
    position: relative;
    height: 90vh;
    overflow: hidden;
    /* background: url('/wp-content/uploads/construct/nutstile.png') repeat center; */
    background: none;
    background-size: auto;
}

#hero2 .hero2-bg {
    position: absolute;
    inset: 0;
    background: url('/wp-content/uploads/construct/nutstile.png') repeat center;
    background-size: 200px auto;
    opacity: 0.6; /* 👈 60% transparency */
    z-index: 0;
    pointer-events: none; /* keeps it non-interactive */
}

/* top-left text */
#hero2 .hero2-text {
    display: none;
}

#hero2 .hero2-text h1 {
    font-family: "Afacad", sans-serif;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--red);
    font-size: 7vh;
    margin: 0 0 1.5vh;
    letter-spacing: -0.03em;
    transform: scaleY(1.15);
    line-height:0.9;
}
/* h1 {
  transform-origin: bottom; ( optional — sets the anchor point )
} */

#hero2 .hero2-text p {
    font-family: "Afacad", sans-serif;
    text-transform: lowercase;
    color: var(--olive);
    font-size: 6vh;
    margin: 0;
    line-height:0.9;
}

/* Clock group - right-justified with gap */
#hero2 .hero2-clock {
    position: absolute;
    top: 20vh;
    right: 5vw;              /* Right-justified with gap from edge */
    width: clamp(145px, 15vw, 180px);
    aspect-ratio: 1 / 1;
    z-index: 2;
}
#hero2 .hero2-clock img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: auto;
    transform-origin: 50% 50%;
}
#hero2 .clock-hour {
    animation: spin-hour 60s linear infinite reverse; /* anticlockwise */
}
#hero2 .clock-minute {
    animation: spin-minute 12s linear infinite;
    transform-origin: 50% calc(50% + 5px);
}

/* Clock spin keyframes */
@keyframes spin-hour { from { transform: rotate(0deg); } to { transform: rotate(-360deg); } }
@keyframes spin-minute { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

/* Floor + furniture + tree */
#hero2 .hero2-floor {
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 100%;
    transform: translateX(-50%);
    z-index: 1;
}
#hero2 .hero2-furniture {
    position: absolute;
    bottom: 0;
    left: 70%;
    transform: translateX(-50%);
    width: 65%;
    max-width: 900px;
    min-width: 480px;
    z-index: 3;
}
#hero2 .hero2-tree {
    position: absolute;
    bottom: 10%;
    left: 5%;
    width: 28%;
    max-height: 70vh;
    object-fit: contain;
    z-index: 2;
}


/* Responsive behaviour */
@media (max-width: 1024px) {
    #hero2 .hero2-clock {
        width: 22vw;
    }
    #hero2 .hero2-text {
        top: 18vh;
        left: 6vw;
    }
}
@media (max-width: 900px) {
    /* #hero2 {
        height: 90vh;
    } */
    #hero2 .hero2-text {
        top: 16vh;
        text-align: center;
        left: 50%;
        transform: translateX(-50%);
        width: 90%;
        max-width: none;
    }
    #hero2 .hero2-text h1 {
        font-size: 7vh;
    }
    #hero2 .hero2-text p {
        font-size: 5.5vh;
        margin-top: 1vh;
    }
    #hero2 .hero2-clock {
        left: 62%;
        right: auto;
        transform: none;
        top: 20vh;
    }
    #hero2 .hero2-tree {
        bottom: 7%;
    }
}

/* Portrait viewports: hide tree, center desk */
@media (max-aspect-ratio: 1/1) {
    #hero2 .hero2-tree {
        display: none;
    }
    #hero2 .hero2-furniture {
        left: 50%;
        transform: translateX(-50%);
    }
}

/* Section 3 */
#hero3 {
  position: relative;
  background: var(--red);
  height: 100vh;
  overflow: hidden;
}

/* Centered main image */
#hero3 .hero3-image {
  position: absolute;
  top: 22%;
  left: 50%;
  transform: translateX(-50%);
  width: 40vw;
  max-width: 600px;
  z-index: 2;
}

/* Grid of squares */
.icon-grid {
  position: absolute;
  top: 40%;
  left: 50%;
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  grid-template-rows: repeat(2, 1fr);
  width: 75vw;
  max-width: 1000px;
  gap: 1vw;
  z-index: 1;
}

/* Each square */
.icon-grid .sq {
  aspect-ratio: 1/1;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 14px;
  transition: transform 0.3s ease, background 0.3s ease;
  cursor: pointer;
}
.icon-grid .sq:hover {
  transform: scale(1.12);
  z-index: 2;
}

.s1  { background: var(--olive); }
.s2  { background: #3d000f; }
.s3  { background: #e1776e; }
.s4  { background: #3d000f; }
.s5  { background: var(--olive); }
.s6  { background: #3d000f; }
.s7  { background: #e1776e; }
.s8  { background: var(--olive); }
.s9  { background: #e1776e; }
.s10 { background: #3d000f; }

.sq img {
  width: 60%;
  height: auto;
  border-radius: 50%;
  box-shadow: 0 0 0 rgba(255,255,255,0);
  transition: transform 0.4s ease, opacity 0.4s ease, box-shadow 0.2s ease;
}

/* Responsive: portrait view = 2x5 */
@media (max-aspect-ratio: 2/3) {
  .icon-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(5, 1fr);
    width: 80vw;
  }
  #hero3 .hero3-image {
      top: 14%;
      width: 50vw;
  }
  .icon-grid {
      top: 27%;
      width: 40vw;
  }
}
/* ============================================================
   HERO 4 — Graphic Design
   ============================================================ */
#hero4 {
  position: relative;
  height: 100vh;
  overflow: hidden;
  background: var(--ink); /* fallback */
}

/* Background image */
#hero4 .hero4-bg {
  position: absolute;
  inset: 0;
  background: url('/wp-content/uploads/construct/graphic-design-bg.jpg') center/cover no-repeat;
  z-index: 0;
}

/* Rocket animation (behind badge) */
#hero4 .hero4-rocket {
  position: absolute;
  top: 25%;
  left: -12%;
  width: 12vw;
  min-width: 120px;
  max-width: 200px;
  animation: hero4-rocket-fly 12s linear infinite;
  z-index: 1;
}

/* Center badge */
#hero4 .hero4-badge {
  position: absolute;
  top: 48%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80vw;
  max-width:1200px;
  height: auto;
  z-index: 2;
}

/* Red footer bar */
#hero4 .hero4-footer {
  position: absolute;
  bottom: 3vh;
  left: 0;
  width: 100%;
  height: 12vh;
  background: var(--red);
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  font-family: "Afacad", sans-serif;
  text-transform: uppercase;
  color: var(--cream);
  font-size: 3vh;
  letter-spacing: -0.03em;
  transform: scaleY(1.15);
  transform-origin: bottom center;
  z-index: 3;
}

/* Rocket motion */
@keyframes hero4-rocket-fly {
  0% {
    left: -15%;
    transform: translateY(0) rotate(3deg);
  }
  25% {
    transform: translateY(-20px) rotate(0deg);
  }
  50% {
    left: 50%;
    transform: translateY(10px) rotate(-3deg);
  }
  75% {
    transform: translateY(-15px) rotate(0deg);
  }
  100% {
    left: 115%;
    transform: translateY(0) rotate(3deg);
  }
}

/* Responsive tweaks */
@media (max-width: 900px) {
  #hero4 .hero4-rocket {
    top: 30%;
    width: 20vw;
    min-width: 90px;
  }

  #hero4 .hero4-badge {
    width: 60vw;
  }

  #hero4 .hero4-footer {
    font-size: 2.4vh;
    height: 18vh;
    padding: 0 2vw;
  }
}

/* ============================================================
   HERO 5 — Maintenance Sky & Plane Scene (Revised)
   ============================================================ */
#hero5 {
  position: relative;
  height: 100vh;
  min-height: 700px;        /* Increased to show more buildings */
  overflow: hidden;
  background: var(--green); /* Match reference sky color */
}

/* Layer container */
#hero5 .hero5-layers {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

/* Layer 1: sky background (tiled) */
#hero5 .sky {
  background: url('/wp-content/uploads/construct/maintenance-sky.jpg') repeat-x top center;
  background-size: auto 100%;
  position: absolute;
  inset: 0;
  z-index: 0;
  animation: hero5-sky-scroll 120s linear infinite;
}

@keyframes hero5-sky-scroll {
  from { background-position-x: 0; }
  to   { background-position-x: -1920px; }
}

/* ============================================================
   HERO 5 — Simplified static cloud layout
   ============================================================ */
#hero5 .cloud {
  position: absolute;
  width: clamp(70px, 8vw, 120px);
  height: auto;
  opacity: 0.95;
  z-index: 1;
  transition: opacity 0.3s ease;
  /* SVG cloud - no filter needed */
}

/* Randomly dispersed across top 40% of viewport */
#hero5 .cloud:nth-child(1) { left: 2%;  top: 15%; }   /* +10% */
#hero5 .cloud:nth-child(2) { left: 8%;  top: 38%; }   /* +10% */
#hero5 .cloud:nth-child(3) { left: 28%; top: 18%; }   /* +10% */
#hero5 .cloud:nth-child(4) { left: 48%; top: 8%; }    /* Moved up and left to be visible */
#hero5 .cloud:nth-child(5) { left: 75%; top: 16%; }   /* +10% */
#hero5 .cloud:nth-child(6) { left: 88%; top: 30%; }   /* +10% */

/* optional: soft hover */
#hero5 .cloud:hover {
  opacity: 0.9;
}


/* Plane — left→right continuous flight */
#hero5 .plane {
  position: absolute;
  top: 20%;
  left: -25%;
  width: clamp(480px, 45vw, 750px);
  animation: hero5-plane-fly 40s linear infinite;
  z-index: 2;
}

@keyframes hero5-plane-fly {
  0%   { left: -25%; transform: translateY(0) rotate(-1deg); }
  25%  { transform: translateY(-8px) rotate(0deg); }
  50%  { left: 50%; transform: translateY(5px) rotate(1deg); }
  75%  { transform: translateY(-6px) rotate(0deg); }
  100% { left: 125%; transform: translateY(0) rotate(-1deg); }
}


/* Ground layers - sized to show building tops clearly */
#hero5 .ground {
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 110%;
  min-width: 1100px;
  height: auto;
  z-index: 3;
  transition: none;
  will-change: transform;
}

/* Layer stacking - maintenance01 (g1) at BACK, maintenance03 (g3) at FRONT */
#hero5 .ground.g1 { z-index: 3; width: 105%; min-width: 1050px; bottom: -6%; }   /* Back layer */
#hero5 .ground.g2 { z-index: 4; width: 110%; min-width: 1100px; bottom: -8%; }   /* Middle layer */
#hero5 .ground.g3 { z-index: 5; width: 115%; min-width: 1150px; bottom: -10%; }  /* Front layer */


/* When footer gets taller (narrow viewports) */
@media (max-width: 800px) {
  #hero5 .ground {
    bottom: 6vh;  /* lift slightly to stay above footer */
  }
}

/* Tablet - larger clouds */
@media (max-width: 1024px) {
  #hero5 .cloud {
    width: clamp(80px, 12vw, 140px);
  }
}

/* Square/portrait viewports - raise buildings higher */
@media (max-aspect-ratio: 4/3) {
  #hero5 .ground.g1 { bottom: 6%; }
  #hero5 .ground.g2 { bottom: 3%; }
  #hero5 .ground.g3 { bottom: 0%; }
}

@media (max-aspect-ratio: 1/1) {
  #hero5 .ground.g1 { bottom: 10%; }
  #hero5 .ground.g2 { bottom: 6%; }
  #hero5 .ground.g3 { bottom: 2%; }
  #hero5 .cloud {
    width: clamp(90px, 15vw, 160px);
  }
}

/* Mobile tweaks */
@media (max-width: 700px) {
  #hero5 .cloud { opacity: 0.85; width: clamp(70px, 18vw, 120px); }
  #hero5 .plane { width: 50vw; top: 18%; }
}

/* ============================================================
   HERO 5 — Footer bar
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Zen+Tokyo+Zoo&display=swap');

#hero5 .hero5-footer {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  max-width: 100%;
  background: var(--olive);
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  font-family: "Zen Tokyo Zoo", sans-serif;
  color: var(--cream);
  font-size: clamp(2rem, 8vw, 8rem);  /* Responsive font size based on viewport width */
  letter-spacing: 0.02em;
  z-index: 6;
  line-height: 1;
  padding: 2vh 5vw;
  min-height: 14vh;
  transition: min-height 0.3s ease;
  box-sizing: border-box;
}

/* Mobile: bigger CARE PLANS text */
@media (max-width: 700px) {
  #hero5 .hero5-footer {
    font-size: clamp(2.8rem, 12vw, 5rem);
    min-height: 18vh;
  }
}

/* ============================================================
   SHARED PAGE STYLES
   ============================================================ */

/* Wrap container */
.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Wider wrap for editorial case study layouts */
#cs-fasttrack .wrap,
#cs-motormarks .wrap,
#cs-magpie .wrap,
#cs-moreproduction .wrap,
#cs-volksworking .wrap {
  max-width: 1400px;
}

/* Section intro text */
.section-intro {
  text-align: center;
  opacity: 0.85;
  margin-bottom: 2rem;
  font-size: 1.1rem;
}

/* Lead paragraph — inherits base body styling */

/* Price styling */
.card .price {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--olive);
  margin: 0.5rem 0;
}

.card .price span {
  font-size: 1rem;
  font-weight: 400;
  opacity: 0.7;
}

/* Ideal for text */
.card .ideal {
  font-size: 0.9rem;
  font-style: italic;
  opacity: 0.8;
  margin: 1rem 0;
  padding-top: 0.5rem;
  border-top: 1px solid rgba(0,0,0,0.08);
}

/* Featured card badge + hover interaction */
.sp-plans .card {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.card.featured {
  position: relative;
}
/* Scale up whichever card is hovered */
.sp-plans .card:hover {
  transform: scale(1.04);
  box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.card .badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--red);
  color: #fff;
  padding: 0.3rem 1rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
}

/* ============================================================
   LANDING PAGE STYLES
   ============================================================ */

/* Landing hero */
.landing-hero {
  background: linear-gradient(135deg, var(--green) 0%, var(--cream) 100%);
  text-align: center;
  padding: 8rem 5vw;
}

.landing-hero h1 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  margin-bottom: 1rem;
  color: var(--ink);
}

.landing-hero .hero-sub {
  font-size: 1.25rem;
  max-width: 600px;
  margin: 0 auto 2rem;
  opacity: 0.9;
}

/* Problem section */
.landing-problem {
  background: #fff;
}

.problem-grid, .trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin: 2rem 0;
}

.problem-item, .trust-item {
  text-align: center;
  padding: 1.5rem;
}

.problem-item strong, .trust-item strong {
  display: block;
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: var(--red);
}

.solution-intro {
  text-align: center;
  font-size: 1.2rem;
  margin-top: 2rem;
  padding: 1.5rem;
  background: var(--cream);
  border-radius: 12px;
}

/* Services section */
.landing-services {
  background: var(--green);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

.service-item, .service-card {
  background: #fff;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}

.service-item h3, .service-card h3 {
  margin: 0 0 0.5rem;
  color: var(--olive);
}

/* Quick Fix + Rebuild section centering */
#quick-fix .cs-narrative,
#rebuild .cs-narrative {
  text-align: center;
  max-width: 100%;
}
#quick-fix .cs-narrative h2,
#quick-fix .cs-narrative p,
#rebuild .cs-narrative h2,
#rebuild .cs-narrative p {
  max-width: 100%;
}
/* Quick Fix icon cards */
.fix-grid .service-card {
  text-align: center;
  padding: 2rem 1.5rem;
}
.fix-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 1rem;
  opacity: 0.75;
}
.rebuild-cta-card {
  background: #3d000f !important;
  color: var(--cream);
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.rebuild-cta-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}
.rebuild-cta-card h3 {
  color: var(--cream) !important;
}
.rebuild-cta-card p {
  color: var(--green);
}
.rebuild-cta-card .fix-icon {
  opacity: 0.5;
}

.service-card .from {
  font-weight: 700;
  color: var(--red);
  margin-top: 1rem;
}

/* Landing packages */
.landing-packages {
  background: #fff;
  text-align: center;
}

.landing-packages h2 {
  margin-bottom: 2rem;
}

.landing-packages .cta-wrap {
  margin-top: 2rem;
}

.cta-wrap.center {
  text-align: center;
  justify-content: center;
}

/* Trust section */
.landing-trust {
  background: var(--cream);
}

.trust-item strong {
  color: var(--olive);
}

/* Testimonials */
.landing-testimonials {
  background: #fff;
}

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

.testimonial {
  background: var(--green);
  padding: 2rem;
  border-radius: 12px;
  margin: 0;
}

.testimonial p {
  font-size: 1.1rem;
  line-height: 1.6;
  margin: 0 0 1rem;
}

.testimonial cite {
  font-style: normal;
  font-weight: 600;
  opacity: 0.8;
}

/* Landing CTA */
.landing-cta {
  background: var(--olive);
  color: #fff;
}

.landing-cta .cta-bar {
  background: transparent;
  padding: 0;
}

.landing-cta h2 {
  color: #fff;
  margin-bottom: 0.5rem;
}

.landing-cta p {
  opacity: 0.9;
}

/* ============================================================
   WEB DESIGN PAGE STYLES
   ============================================================ */

.wd-hero-scene {
  /* hero3 styles already exist */
}

.wd-services {
  background: #fff;
}

.wd-included, .maintenance-included {
  background: var(--green);
}
.wd-included > .wrap > h2,
.wd-included > .wrap > p {
  text-align: center;
  max-width: none;
  margin-left: auto;
  margin-right: auto;
}
.wd-included > .wrap {
  max-width: none;
  padding: 0 5vw;
}
.wd-included .included-grid {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.included-grid, .why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

.included-item, .why-item {
  background: #fff;
  padding: 1.5rem;
  border-radius: 12px;
  text-align: center;
}

.included-item strong, .why-item strong {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--olive);
  font-size: 1.1rem;
}

/* ---- WEBSITES PAGE — tech-style cards ---- */
#updates-hero .included-item {
  border-radius: 0;
  border: 1px solid #e0ddd5;
  border-top: 3px solid var(--olive);
  padding: 2rem 1.8rem;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
}
#updates-hero .included-item:last-child {
  border-top-color: var(--red);
}
#updates-hero .included-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}
/* Card label + price split */
.card-label {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #888;
  margin-bottom: 0.4rem;
}
.card-price {
  display: block;
  font-family: 'Roboto Slab', Georgia, serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.02em;
}
#updates-hero .included-item p {
  margin-top: 1rem;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--olive);
  flex-grow: 1;
}

/* Card text links */
.card-link {
  display: block;
  text-align: center;
  margin-top: 1.5rem;
  color: var(--red);
  text-decoration: none;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  transition: color 0.25s ease;
}
.card-link:hover {
  color: var(--olive);
}
.rebuild-footnote {
  text-align: right;
  font-size: 0.8rem;
  opacity: 0.6;
  margin-top: 1.5rem;
  max-width: 100% !important;
  width: 100%;
}
.refresh-ctas {
  margin-top: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.card-link.secondary {
  font-size: 0.85rem;
  font-weight: 400;
  opacity: 0.6;
}
.card-link.secondary:hover {
  opacity: 1;
}

.wd-tech {
  background: #fff;
}

.tech-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

.tech-item {
  text-align: center;
  padding: 1.5rem;
  background: var(--cream);
  border-radius: 12px;
}

.tech-item strong {
  display: block;
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: var(--ink);
}

/* ============================================================
   MAINTENANCE PAGE STYLES
   ============================================================ */

.maintenance-intro {
  text-align: left;
  background: #fff;
}
#maintenance-cta,
#brand-cta {
  background: var(--green);
}
#maintenance-cta .wrap,
#brand-cta .wrap {
  text-align: right;
  margin-left: auto;
  margin-right: auto;
  max-width: 1200px;
  padding-left: 25%;
}
#maintenance-cta h2,
#maintenance-cta p,
#brand-cta h2,
#brand-cta p {
  max-width: 100%;
}

.maintenance-intro h1 {
  margin-bottom: 1rem;
}

.maintenance-why {
  background: #fff;
}

/* ============================================================
   PORTFOLIO PAGE STYLES
   ============================================================ */

.portfolio-hero {
  position: relative;
  min-height: 50vh;
  display: grid;
  place-items: center;
  padding: 6rem 5vw;
  background-size: cover;
  background-position: center;
  text-align: center;
}

.portfolio-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(243, 236, 216, .8), rgba(205, 217, 195, .6));
}

.portfolio-hero .wrap {
  position: relative;
  z-index: 1;
}

.portfolio-hero h1 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  margin-bottom: 1rem;
}

.portfolio-intro {
  text-align: center;
  background: #fff;
  padding: 3rem 5vw;
}

.portfolio-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.portfolio-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.12);
}

.no-results {
  text-align: center;
  padding: 4rem 2rem;
  background: var(--cream);
  border-radius: 12px;
}

/* ============================================================
   RESPONSIVE ADJUSTMENTS
   ============================================================ */

@media (max-width: 900px) {
  .problem-grid, .trust-grid, .included-grid, .why-grid, .tech-grid {
    grid-template-columns: 1fr 1fr;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .testimonial-grid {
    grid-template-columns: 1fr;
  }

  .card.featured {
    transform: none;
  }
}

@media (max-width: 600px) {
  .problem-grid, .trust-grid, .included-grid, .why-grid, .tech-grid {
    grid-template-columns: 1fr;
  }

  .landing-hero {
    padding: 5rem 5vw;
  }

  .landing-hero h1 {
    font-size: 2rem;
  }
}


/* ============================================================
   DAY 10 — DESIGN PASS / MOBILE OPTIMISATION
   ============================================================ */

/* ---- REMOVE WORDPRESS FLOW MARGINS BETWEEN SECTIONS ---- */
/* Homepage already handled in style.css; this covers all other pages */
main.wp-block-group.alignfull > * {
  margin-block-start: 0;
  margin-block-end: 0;
}


/* ---- BASE TYPOGRAPHY ---- */
.wp-site-blocks,
.wp-site-blocks .wp-block-group {
  font-family: 'Inter', sans-serif;
  color: var(--olive);
  font-size: clamp(1.05rem, 1.8vw, 1.35rem);
  line-height: 1.55;
  letter-spacing: -0.015em;
}

h1, h2, h3, h4 {
  font-family: 'Roboto Slab', Georgia, serif;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.03em;
  color: var(--ink);
}

h1 { font-size: clamp(2rem, 5vw, 3rem); margin-bottom: 1.25rem; }
h2 { font-size: clamp(2rem, 5vw, 3.2rem); margin-bottom: 1.25rem; line-height: 1.15; }
h3 { font-size: clamp(1.15rem, 3vw, 1.5rem); margin-bottom: 0.75rem; }

/* Section headings — cap at 2/3 width */
.eds-section .wrap > h2,
.eds-section > h2 {
  max-width: 66%;
}

/* First paragraph after a section heading — no special styling, inherits body text */

/* All body text in sections — cap width */
.eds-section .wrap > p,
.eds-section > p {
  max-width: 66%;
}

/* Centred sections — remove 66% cap, let text flow full width and centre naturally */
.eds-section.sp-process .wrap > h2,
.eds-section.sp-process .wrap > h2 + p,
.eds-section.sp-process .wrap > p,
.eds-section.sp-plans .wrap > h2,
.eds-section.sp-plans .wrap > h2 + p,
.eds-section.sp-plans .wrap > p,
.eds-section.wd-included .wrap > h2,
.eds-section.wd-included .wrap > h2 + p,
.eds-section.wd-included .wrap > p,
#brand-services .wrap > h2,
#brand-services .wrap > h2 + p,
#brand-services .wrap > p,
.eds-section.maintenance-why .wrap > h2,
.eds-section.maintenance-why .wrap > h2 + p,
.eds-section.maintenance-why .wrap > p,
.eds-section.sp-faq > h2,
#case-studies .wrap > h2,
#case-studies .wrap > p,
#about-hero .wrap > h2,
#about-hero .wrap > p,
#faq-hero .wrap > h2,
#faq-hero .wrap > p,
#home-leadmagnet .wrap > h2,
#home-leadmagnet .wrap > p,
#home-leadmagnet .leadmagnet-title,
.landing-hero h2,
.landing-hero p,
#maintenance-plans > h2,
#maintenance-plans > p,
.portfolio-intro h2,
.portfolio-intro p,
.section-intro {
  max-width: none;
}

/* CTA bars and grids should remain full width */
.sp-cta .cta-bar,
.included-grid,
.services-grid,
.why-grid,
.tech-grid,
.sp-faq details,
.cs-stats,
.cs-devices,
.cs-browser-mockup,
.portfolio-grid,
.portfolio-filters {
  max-width: none;
}

@media (max-width: 768px) {
  .eds-section .wrap > h2,
  .eds-section > h2,
  .eds-section .wrap > h1 + p,
  .eds-section > h1 + p,
  .eds-section .wrap > h2 + p,
  .eds-section > h2 + p,
  .eds-section .wrap > p,
  .eds-section > p {
    max-width: 100%;
  }
}

/* Case study .sub overrides — already styled, keep compact */
.cs-narrative .sub {
  margin-bottom: 2rem;
}

p { margin-bottom: 1rem; }

/* Section headings that introduce grids/content blocks need more breathing room */
#brand-portfolio h2,
#maintenance-plans h2 {
  margin-bottom: 1.75rem;
}

/* Footer column headings — needs !important to override WP block styles */
footer h3.wp-block-heading,
.wp-block-group footer h3,
footer .wp-block-column h3 {
  margin-bottom: 1rem !important;
}

/* Header CTA button — keep as Roboto Slab */
header .wp-block-button__link {
  font-family: 'Roboto Slab', Georgia, serif;
  font-weight: 700;
  text-transform: none;
  letter-spacing: normal;
  font-size: 0.85rem;
  padding: 0.5rem 0.8rem;
}
@media (max-width: 600px) {
  header .wp-block-button__link {
    font-size: 0.7rem;
    padding: 0.4rem 0.6rem;
  }
  .wp-site-blocks header.wp-block-template-part .wp-block-site-logo img {
    width: 50px;
  }
  .wp-site-blocks header.wp-block-template-part {
    overflow: hidden;
  }
}

/* Fix hamburger menu overlay on mobile */
@media (max-width: 1100px) {
  .wp-block-navigation__responsive-container.is-menu-open {
    padding: 5rem 2rem 2rem !important;
  }
  .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content {
    font-size: 1.2rem;
    padding: 0.5rem 0;
  }
}

/* Footer button spacing */
footer .wp-block-buttons,
footer .wp-block-column .wp-block-buttons {
  margin-top: 1.25rem !important;
}

/* Content links (not buttons) */
.eds-section a:not(.btn) {
  color: var(--red);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.eds-section a:not(.btn):hover {
  color: var(--olive);
}


/* ---- ALTERNATING SECTION BACKGROUNDS ---- */

/* Homepage */
#home-hero-text .tagline-slide {
  font-size: clamp(1.6rem, 4.6vw, 3.6rem);
  line-height: 1.35;
}
#home-hero-text { background: var(--cream); }
#home-menu      { background: #fff; }

/* ---- OUR MENU — tasting menu style ---- */
.tasting-menu {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
  padding: 2rem 5vw 4rem;
}
.tasting-menu h2 {
  max-width: 100%;
  font-size: clamp(2.2rem, 4vw, 3rem);
  margin-bottom: 4rem;
}
.course {
  padding: 2rem 0;
}
.course-label {
  display: block;
  font-family: 'Afacad', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 1.3rem;
  color: var(--red);
  margin-bottom: 0.8rem;
}
.course h3 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin-bottom: 1.2rem;
}
.course p {
  max-width: 100%;
  margin-bottom: 1rem;
}
.course .btn,
.course .btn-text {
  margin-top: 1.5rem;
}
.menu-cta-pair {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.5rem;
}
.course-divider {
  color: var(--olive);
  opacity: 0.3;
  font-size: 1.5rem;
  letter-spacing: 0.3em;
  padding: 1.5rem 0;
}

#home-services  { background: var(--green); }
.wide-only { display: none; }
@media (min-width: 1450px) {
  .wide-only { display: block; }
}
#home-cta-final { background: var(--green); }
#home-cta-final .wrap {
  text-align: right;
  margin-left: auto;
  margin-right: auto;
  max-width: 1200px;
  padding-left: 25%;
}
#home-cta-final .wrap > h2,
#home-cta-final .wrap > p {
  max-width: 100%;
}
#home-proof     { background: var(--cream); text-align: center; }
#home-proof .wrap > h2,
#home-proof .wrap > p {
  max-width: 100%;
}
.featured-testimonial {
  max-width: 800px;
  margin: 2rem auto;
  padding: 3rem 4rem;
  position: relative;
  text-align: left;
  font-style: italic;
  border: none;
  background: none;
}
.featured-testimonial::before,
.featured-testimonial::after {
  font-family: 'Roboto Slab', Georgia, serif;
  font-size: 8rem;
  font-style: normal;
  color: var(--olive);
  opacity: 0.15;
  position: absolute;
  line-height: 1;
}
.featured-testimonial::before {
  content: '\201C';
  top: -0.5rem;
  left: -0.5rem;
}
.featured-testimonial::after {
  content: '\201D';
  bottom: -2rem;
  right: 0;
}
.featured-testimonial p {
  max-width: 100%;
  margin-bottom: 1rem;
}
.featured-testimonial cite {
  font-style: normal;
  font-weight: 700;
  color: var(--ink);
  display: block;
  margin-top: 1.5rem;
}

#home-proof .services-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
}
#home-proof .service-card {
  flex: 0 1 calc(33% - 1rem);
}
#home-why       { background: #fff; }

/* Website Rebuilds */
#who            { background: #fff; }
#process        { background: #fff; }
#investment     { background: var(--cream); }
#wd-faq         { background: #fff; }
#wd-casestudy   { background: var(--green); }

/* Care Plans */
#maintenance-why          { background: var(--green); }
#maintenance-why .wrap > h2,
#maintenance-why .wrap > p {
  text-align: center;
}
#maintenance-plans        { background: var(--cream); }
#maintenance-who          { background: #fff; }
#maintenance-testimonials { background: var(--green); }
#maintenance-faq          { background: #fff; }

/* Brand & Design */
#brand-services    { background: var(--green); }
#brand-services .wrap > h2,
#brand-services .wrap > p {
  text-align: center;
}
#brand-approach    { background: #fff; }
#brand-portfolio   { background: var(--cream); }
#brand-testimonial { background: var(--green); }
#brand-faq         { background: #fff; }

/* Our Work — alternating case studies */
#case-studies      { background: var(--green); }
#cs-fasttrack      { background: #fff; }
#cs-motormarks     { background: var(--cream); }
#cs-magpie         { background: #fff; }
#cs-moreproduction { background: var(--cream); }
#cs-volksworking   { background: #fff; }

/* About / The Kitchen */
#about-hero       { background: var(--green); }
#about-essential  { background: #fff; }
#about-design     { background: var(--cream); }
#about-solutions  { background: var(--green); }
#about-who        { background: #fff; }

/* FAQs page */
#faq-hero         { background: var(--green); }
#faq-rebuilds     { background: #fff; }
#faq-brand        { background: var(--cream); }
#faq-care         { background: #fff; }
#faq-general      { background: var(--cream); }

/* Contact */
#contact-hero {
  background: var(--red);
  padding-top: 10rem !important;
  color: var(--cream);
  position: relative;
  overflow: hidden;
  text-align: left;
}
#contact-hero h1 {
  color: var(--cream);
  text-shadow:
    1px 1px 0 var(--ink),
    2px 2px 0 var(--ink),
    3px 3px 0 var(--ink),
    4px 4px 0 rgba(0,0,0,0.15);
}
#contact-hero p { color: var(--cream); opacity: 0.9; }
#contact-form     { background: #fff; }
.eds-contact-form { margin: 0; }


/* ---- CENTERED HERO / INTRO SECTIONS ---- */
#about-hero,
#case-studies,
#faq-hero {
  text-align: center;
}

#about-hero .lead,
#case-studies .lead {
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}


/* ---- BLOCKQUOTE STYLING ---- */
blockquote {
  background: var(--cream);
  border-left: 4px solid var(--olive);
  padding: 1.5rem 2rem;
  border-radius: 0 12px 12px 0;
  margin: 2rem 0;
}
blockquote p {
  font-style: italic;
  font-size: 1.05rem;
  line-height: 1.6;
  margin-bottom: 0.5rem;
}
blockquote cite {
  font-style: normal;
  font-weight: 700;
  color: var(--olive);
  display: block;
  margin-top: 0.5rem;
  font-size: 0.95rem;
}

/* Blockquotes on green background sections — white bg instead */
#wd-casestudy blockquote,
#maintenance-testimonials blockquote,
#brand-testimonial blockquote,
#cs-magpie blockquote {
  background: #fff;
}


/* ---- HOMEPAGE TESTIMONIALS (service-card based) ---- */
#home-proof .service-card {
  text-align: center;
  padding: 2rem 1.5rem;
  border-left: 4px solid var(--olive);
}
#home-proof .service-card p:first-child {
  font-style: italic;
  font-size: 1.05rem;
  line-height: 1.6;
}

/* 3-column service cards on homepage */
#home-services .services-grid {
  grid-template-columns: repeat(3, 1fr);
}


/* ---- LOGO CAROUSEL ---- */
.logo-carousel {
  overflow: hidden;
  margin-top: 2rem;
  padding: 1rem 0;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 15%, black 85%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, black 15%, black 85%, transparent 100%);
}
.logo-track {
  display: flex;
  align-items: center;
  gap: 2rem;
  animation: logo-scroll 30s linear infinite;
  width: max-content;
}
.logo-carousel:hover .logo-track {
  animation-play-state: paused;
}
@keyframes logo-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.logo-track a {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  padding: 0.3rem 0.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  min-height: 60px;
  min-width: 120px;
  text-decoration: none;
  flex-shrink: 0;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.logo-track a:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}
.logo-track a img {
  max-height: 45px;
  max-width: 140px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.7;
  transition: filter 0.3s ease, opacity 0.3s ease;
}
.logo-track a:hover img {
  filter: grayscale(0%);
  opacity: 1;
}
.logo-track .logo-dark {
  background: #1a1a1a;
}
.logo-track .logo-dark-blue {
  background: #1a2a4a;
}


/* ---- CONTACT FORM ---- */
.eds-contact-form {
  max-width: 640px;
  margin: 0;
}
.form-group {
  margin-bottom: 1.5rem;
}
.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.4rem;
  font-size: 0.95rem;
}
.form-group label span {
  font-weight: 400;
  opacity: 0.6;
  font-size: 0.85rem;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid #d0d0d0;
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
  background: #fff;
  color: var(--ink);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
  box-sizing: border-box;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--olive);
  box-shadow: 0 0 0 3px rgba(77, 85, 59, 0.15);
}
.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23233629' fill='none' stroke-width='2'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}
.form-note {
  text-align: center;
  opacity: 0.65;
  margin-top: 1.5rem;
  font-size: 0.9rem;
}


/* ---- FAQ ACCORDION POLISH ---- */
.sp-faq details summary {
  font-weight: 600;
  cursor: pointer;
  padding: 0.3rem 0 0.3rem 2rem;
  position: relative;
  list-style: none;
  font-size: 1.05rem;
}
.sp-faq details summary::marker,
.sp-faq details summary::-webkit-details-marker {
  display: none;
}
.sp-faq details summary::before {
  content: '+';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1.4rem;
  height: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--ink);
  background: var(--cream);
  border-radius: 50%;
  transition: background 0.2s ease, color 0.2s ease;
}
.sp-faq details[open] summary::before {
  content: '\2212';
  background: var(--ink);
  color: var(--cream);
}
.sp-faq details p {
  padding-left: 2rem;
  opacity: 0.85;
  margin-top: 0.5rem;
}


/* ---- BUTTON HOVER EFFECTS ---- */
.btn {
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.btn-red:hover   { background: #993230; }
.btn-olive:hover { background: #3d4530; }
.btn-cream:hover { background: #f0e89a; }


/* ---- HERO STATEMENT — Focus Lab-style big headline + subline ---- */
.hero-statement {
  max-width: 66%;
  margin-bottom: 3rem;
}
.hero-statement-headline {
  font-size: clamp(2.2rem, 5.5vw, 3.8rem);
  line-height: 1.1;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}
.hero-statement-sub {
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  line-height: 1.5;
  color: var(--olive);
  opacity: 0.85;
  margin-bottom: 0;
}

@media (max-width: 768px) {
  .hero-statement {
    max-width: 100%;
  }
}


/* ---- CASE STUDY LAYOUT — EDITORIAL ASYMMETRIC ---- */

/* Narrative text: left-justified, 2/3 width, larger font */
.cs-narrative {
  max-width: 66%;
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  line-height: 1.8;
}
.cs-narrative h3 {
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
}
.cs-narrative ul {
  padding-left: 1.5rem;
  margin-bottom: 1.5rem;
}
.cs-narrative ul li {
  margin-bottom: 0.5rem;
  line-height: 1.7;
}
.cs-narrative .sub {
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  color: var(--olive);
  font-weight: 600;
  margin-bottom: 2rem;
  letter-spacing: 0.02em;
}

/* Right-aligned pull quote — floats to the right third */
.cs-quote-right {
  float: right;
  clear: right;
  width: 38%;
  margin: 0 0 2rem 3rem;
  padding: 2rem 2.5rem;
  background: var(--cream);
  border-right: 4px solid var(--olive);
  border-left: none;
  border-radius: 12px 0 0 12px;
  text-align: right;
}
.cs-quote-right p {
  font-style: italic;
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  line-height: 1.6;
  margin-bottom: 0.5rem;
}
.cs-quote-right cite {
  font-style: normal;
  font-weight: 700;
  color: var(--olive);
  display: block;
  margin-top: 0.5rem;
  font-size: 0.95rem;
}
.cs-quote-right ul {
  list-style: none;
  padding: 0;
  margin: 0.75rem 0;
  text-align: right;
}
.cs-quote-right ul li {
  padding: 0.3rem 0;
  font-size: clamp(0.9rem, 1.4vw, 1rem);
  line-height: 1.5;
  color: var(--ink);
}

/* On green/cream backgrounds, quote gets white bg */
#cs-motormarks .cs-quote-right,
#cs-moreproduction .cs-quote-right {
  background: #fff;
}

/* Full-width browser mockup container */
.cs-browser-mockup {
  margin: 2.5rem 0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
  background: #f5f5f5;
}
.cs-browser-mockup .browser-bar {
  background: #e8e8e8;
  padding: 0.6rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.cs-browser-mockup .browser-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ccc;
}
.cs-browser-mockup .browser-dot:nth-child(1) { background: #ff5f57; }
.cs-browser-mockup .browser-dot:nth-child(2) { background: #ffbd2e; }
.cs-browser-mockup .browser-dot:nth-child(3) { background: #28c840; }
.cs-browser-mockup .browser-url {
  flex: 1;
  background: #fff;
  border-radius: 4px;
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  color: #888;
  margin-left: 0.5rem;
}
.cs-browser-mockup img {
  width: 100%;
  height: auto;
  display: block;
}
.cs-browser-mockup .cs-placeholder {
  aspect-ratio: 16/9;
  display: grid;
  place-items: center;
  color: #999;
  font-size: 0.95rem;
  font-style: italic;
}

/* Device pair: desktop + mobile side by side */
.cs-devices {
  display: flex;
  gap: 2rem;
  align-items: flex-end;
  margin: 2.5rem 0;
}
.cs-devices .cs-desktop {
  flex: 3;
}
.cs-devices .cs-mobile {
  flex: 1;
  max-width: 180px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
  background: #f5f5f5;
}
.cs-devices .cs-mobile img {
  width: 100%;
  height: auto;
  display: block;
}
.cs-devices .cs-mobile .cs-placeholder {
  aspect-ratio: 9/16;
  display: grid;
  place-items: center;
  color: #999;
  font-size: 0.8rem;
  font-style: italic;
  padding: 1rem;
  text-align: center;
}

/* Stat blocks — big numbers */
.cs-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1.5rem;
  margin: 2.5rem 0;
  clear: both;
}
.cs-stat {
  background: var(--cream);
  padding: 1.5rem;
  border-radius: 12px;
  text-align: center;
}
.cs-stat .stat-number {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 700;
  color: var(--red);
  line-height: 1.1;
  display: block;
  margin-bottom: 0.3rem;
}
.cs-stat .stat-label {
  font-size: 0.85rem;
  color: var(--olive);
  font-weight: 600;
  line-height: 1.3;
}

/* On cream background sections, stat blocks use white */
#cs-motormarks .cs-stat,
#cs-moreproduction .cs-stat {
  background: #fff;
}

/* Clear float before CTA buttons */
.cs-narrative .btn {
  clear: both;
  display: inline-block;
  margin-top: 1rem;
}

/* Legacy fallback — keep basic list styling if .cs-narrative not used */
.eds-section .wrap > h3 {
  margin-top: 2rem;
  margin-bottom: 0.5rem;
}
.eds-section .wrap > ul {
  padding-left: 1.5rem;
  margin-bottom: 1.5rem;
}
.eds-section .wrap > ul li {
  margin-bottom: 0.4rem;
  line-height: 1.6;
}


/* ---- PORTFOLIO GRID ---- */

.portfolio-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
}
.portfolio-filters button {
  padding: 0.5rem 1.2rem;
  border: 2px solid var(--olive);
  background: transparent;
  color: var(--olive);
  border-radius: 2rem;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}
.portfolio-filters button:hover,
.portfolio-filters button.active {
  background: var(--olive);
  color: #fff;
}

.portfolio-grid {
  columns: 3;
  column-gap: 1.5rem;
}
.portfolio-grid .portfolio-item {
  break-inside: avoid;
  margin-bottom: 1.5rem;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.portfolio-grid .portfolio-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.12);
}
.portfolio-grid .portfolio-item img {
  width: 100%;
  height: auto;
  display: block;
}
.portfolio-grid .portfolio-item .portfolio-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(35,54,41,0.85) 0%, transparent 50%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.portfolio-grid .portfolio-item:hover .portfolio-overlay {
  opacity: 1;
}
.portfolio-overlay h4 {
  color: #fff;
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}
.portfolio-overlay .portfolio-tag {
  color: var(--cream);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Placeholder items before real images are added */
.portfolio-item .portfolio-placeholder {
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, var(--green) 0%, #c8dfa0 100%);
  display: grid;
  place-items: center;
  padding: 2rem;
  text-align: center;
}
.portfolio-item .portfolio-placeholder.tall {
  aspect-ratio: 3/4;
}
.portfolio-item .portfolio-placeholder.square {
  aspect-ratio: 1/1;
}
.portfolio-placeholder .placeholder-icon {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  opacity: 0.4;
}
.portfolio-placeholder .placeholder-text {
  font-size: 0.85rem;
  color: var(--olive);
  opacity: 0.6;
}


/* ---- CTA BAR REFINEMENTS ---- */
.sp-cta .cta-bar h3 {
  margin-top: 0;
  color: #fff;
}
.sp-cta .cta-bar p {
  opacity: 0.9;
  margin-bottom: 0;
}
.sp-cta .cta-wrap {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  flex-shrink: 0;
}


/* ---- PRICING CARDS POLISH ---- */
.sp-plans .card {
  text-align: center;
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
}
.sp-plans .card .list {
  text-align: left;
  flex-grow: 1;
}
.sp-plans .card .btn {
  margin-top: auto;
  box-sizing: border-box;
}


/* ---- CARE PLAN TESTIMONIAL CARDS ---- */
#maintenance-testimonials .service-card {
  padding: 0;
  background: transparent;
  box-shadow: none;
}
#maintenance-testimonials blockquote {
  margin: 0;
  height: 100%;
}


/* ============================================================
   RESPONSIVE — MOBILE OPTIMISATION
   ============================================================ */

@media (max-width: 768px) {
  /* Tighter section padding */
  .eds-section {
    padding: 3rem 4vw;
  }

  /* Stack all grids to single column */
  .services-grid,
  #home-services .services-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .included-grid,
  .why-grid,
  .tech-grid {
    grid-template-columns: 1fr;
  }

  /* Blockquotes tighter */
  blockquote {
    padding: 1.2rem 1.5rem;
    margin: 1.5rem 0;
  }

  /* Logo carousel tighter on mobile */
  .logo-track {
    gap: 1.2rem;
  }
  .logo-track a {
    padding: 0.3rem 0.5rem;
    min-width: 90px;
  }

  /* CTA bar stacks vertically */
  .sp-cta .cta-bar {
    flex-direction: column;
    text-align: center;
    padding: 1.5rem;
  }
  .sp-cta .cta-wrap {
    justify-content: center;
  }

  /* Pricing cards single column */
  .sp-plans .grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
  }

  /* Featured card — no scale on mobile */
  .card.featured {
    transform: none;
  }

  /* Process steps */
  .sp-process {
    padding-left: 4vw;
    padding-right: 4vw;
  }
  .sp-process .steps li {
    font-size: 0.95rem;
  }

  /* FAQ sections need horizontal padding */
  .sp-faq {
    padding-left: 4vw;
    padding-right: 4vw;
  }

  /* ---- EDITORIAL LAYOUT — TABLET ---- */
  .cs-narrative {
    max-width: 100%;
  }
  .cs-quote-right {
    float: none;
    width: 100%;
    margin: 2rem 0;
    text-align: left;
    border-right: none;
    border-left: 4px solid var(--olive);
    border-radius: 0 12px 12px 0;
  }
  .cs-devices {
    flex-direction: column;
    align-items: center;
  }
  .cs-devices .cs-mobile {
    max-width: 200px;
  }

  /* Portfolio grid — 2 columns on tablet */
  .portfolio-grid {
    columns: 2;
  }
}

@media (max-width: 480px) {
  .eds-section {
    padding: 2.5rem 5vw;
  }

  h1 { font-size: 1.8rem; }
  h2 { font-size: 1.4rem; }

  /* Full-width buttons on small screens */
  .btn {
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    width: 100%;
    text-align: center;
    box-sizing: border-box;
  }

  .cta-wrap {
    flex-direction: column;
    gap: 0.6rem;
    width: 100%;
  }

  /* Tighter blockquotes */
  blockquote {
    padding: 1rem 1.2rem;
  }
  blockquote p {
    font-size: 0.95rem;
  }

  /* Form adjustments */
  .form-group input,
  .form-group select,
  .form-group textarea {
    padding: 0.65rem 0.8rem;
    font-size: 0.95rem;
  }

  /* Lead magnet form stacks */
  .eds-leadmagnet-form {
    flex-direction: column;
  }

  /* Quick Question widget full-width panel on small screens */
  .qq-panel {
    width: calc(100vw - 2rem) !important;
    right: 0 !important;
  }

  /* ---- EDITORIAL LAYOUT — MOBILE ---- */
  .cs-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
  .cs-stat .stat-number {
    font-size: 1.6rem;
  }

  /* Portfolio grid — single column on mobile */
  .portfolio-grid {
    columns: 1;
  }
  .portfolio-grid .portfolio-item .portfolio-overlay {
    opacity: 1;
  }
  .portfolio-filters {
    justify-content: center;
  }
}


/* ============================================================
   URGENCY LINES
   ============================================================ */
#home-hero-text .cta-wrap {
  display: flex;
  align-items: stretch;
  gap: 2rem;
  flex-wrap: wrap;
}
.cta-stack {
  flex-direction: column;
  align-items: flex-start !important;
  gap: 0.8rem;
  margin-bottom: 2.5rem;
}
#home-hero-text .cta-wrap .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
#home-hero-text .urgency {
  margin-top: 2.5rem !important;
}
.urgency {
  font-family: 'Roboto Slab', Georgia, serif;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--olive);
  margin-top: 1rem;
  opacity: 0.9;
}
.sp-cta .urgency {
  color: var(--cream);
  opacity: 0.8;
  font-size: 0.85rem;
  margin-top: 0.5rem;
}


/* ============================================================
   LEAD MAGNET / EMAIL CAPTURE SECTION
   ============================================================ */
#home-leadmagnet {
  background: var(--green);
  text-align: center;
}
.leadmagnet-wrap {
  max-width: 560px;
}
.leadmagnet-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--olive);
  font-style: italic;
  margin-bottom: 1.5rem;
}
.eds-leadmagnet-form {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 0;
}
.eds-leadmagnet-form input {
  flex: 1;
  min-width: 180px;
  padding: 0.75rem 1rem;
  border: 2px solid #d0d0d0;
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
  background: #fff;
  color: var(--ink);
  box-sizing: border-box;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.eds-leadmagnet-form input:focus {
  outline: none;
  border-color: var(--olive);
  box-shadow: 0 0 0 3px rgba(77, 85, 59, 0.15);
}
.eds-leadmagnet-form .btn {
  white-space: nowrap;
}


/* ============================================================
   FREE REPORT PAGE
   ============================================================ */

/* Report hero */
/* ---- FREE REPORT — 3D flip card ---- */
.flip-card {
  perspective: 1000px;
  min-height: 500px;
}
.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 500px;
  transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  transform-style: preserve-3d;
}
.flip-card:hover .flip-card-inner {
  transform: rotateY(180deg);
}
.flip-card-front,
.flip-card-back {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  border-radius: 14px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.flip-card-front {
  background: var(--red);
  text-align: center;
}
.flip-logo {
  width: 110px;
  height: auto;
  border-radius: 12px;
  margin-bottom: 1.5rem;
}
.flip-card-front h3 {
  color: var(--cream);
  font-size: 2.2rem;
  text-shadow:
    1px 1px 0 var(--ink),
    2px 2px 0 var(--ink),
    3px 3px 0 rgba(0,0,0,0.15);
}
.flip-card-back {
  background: #3d000f;
  color: var(--cream);
  transform: rotateY(180deg);
  align-items: flex-start;
  justify-content: center;
}
.flip-card-back ul,
.flip-card-back ol {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: step;
}
.flip-card-back ul li,
.flip-card-back ol li {
  margin-bottom: 1rem;
  font-size: 1.05rem;
  line-height: 1.5;
}
.flip-card-back ol li {
  counter-increment: step;
  padding-left: 2rem;
  position: relative;
}
.flip-card-back ol li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: #f5f0e8;
}
.flip-card-back ul li strong,
.flip-card-back ol li strong {
  color: #fff;
}
@media (max-width: 600px) {
  .flip-card,
  .flip-card-inner {
    min-height: 420px;
  }
  .flip-card-back ul li,
  .flip-card-back ol li {
    font-size: 0.8rem;
    margin-bottom: 0.6rem;
    line-height: 1.4;
  }
  .flip-card-back {
    padding: 1.2rem !important;
  }
  .flip-card-front h3 {
    font-size: 1.6rem;
  }
}
/* Tap hint on touch devices */
.flip-tap-hint {
  display: none;
  position: absolute;
  bottom: 1rem;
  left: 0;
  right: 0;
  text-align: center;
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  color: var(--cream);
  opacity: 0.5;
  letter-spacing: 0.05em;
}
@media (hover: none), (max-width: 1100px) {
  .flip-tap-hint {
    display: block;
  }
  .flip-card:hover .flip-card-inner {
    transform: none;
  }
}

/* ---- 404 PAGE ---- */
#error-404 {
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  background: var(--red);
  padding-top: 6rem;
}
.error-404-content {
  position: relative;
  z-index: 2;
}
.error-404-heading {
  font-size: clamp(8rem, 20vw, 16rem);
  font-weight: 700;
  color: var(--cream);
  line-height: 1;
  margin-bottom: 1rem;
  text-shadow:
    2px 2px 0 var(--ink),
    4px 4px 0 var(--ink),
    6px 6px 0 var(--ink),
    8px 8px 0 rgba(0,0,0,0.15);
}
.error-404-sub {
  color: var(--cream);
  opacity: 0.85;
  font-size: 1.2rem;
  max-width: 500px;
  margin: 0 auto 2.5rem;
}
.error-404-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}
.error-404-links .btn-text {
  color: var(--cream) !important;
  opacity: 0.7;
}
.error-404-links .btn-text:hover {
  opacity: 1;
}
.error-404-icons {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}
.err-tile {
  position: absolute;
  width: 80px;
  height: 80px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.15;
}
.err-tile img {
  width: 50px;
  height: 50px;
}
.err-tile.t1 { top: 12%; left: 8%; transform: rotate(-15deg); }
.err-tile.t2 { top: 20%; right: 12%; transform: rotate(10deg); width: 100px; height: 100px; }
.err-tile.t2 img { width: 60px; height: 60px; }
.err-tile.t3 { bottom: 25%; left: 15%; transform: rotate(20deg); }
.err-tile.t4 { bottom: 15%; right: 8%; transform: rotate(-8deg); }
.err-tile.t5 { top: 50%; left: 5%; transform: rotate(12deg); width: 60px; height: 60px; }
.err-tile.t5 img { width: 35px; height: 35px; }
.err-tile.t6 { top: 40%; right: 5%; transform: rotate(-20deg); width: 60px; height: 60px; }
.err-tile.t6 img { width: 35px; height: 35px; }

@media (max-width: 768px) {
  .error-404-heading { font-size: 6rem; }
  .err-tile { display: none; }
}

/* Hide WP-generated title on privacy policy */
.page-id-3 .wp-block-post-title,
.page-id-3 > .wp-site-blocks > main > .wp-block-group > header {
  display: none;
}

#report-hero { background: var(--red); padding-top: 10rem !important; color: var(--cream); position: relative; overflow: hidden; }
.report-hero-grid {
  position: absolute;
  right: max(5vw, calc((100% - 1200px) / 2));
  top: calc(50% + 2.5rem);
  transform: translateY(-50%);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
}
.report-tile {
  width: 100px;
  height: 100px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.report-tile img {
  width: 55px;
  height: 55px;
  opacity: 0.85;
  border-radius: 50%;
  box-shadow: 0 0 20px rgba(255,255,255,0.5);
}
@media (max-width: 768px) {
  .report-hero-grid {
    display: none;
  }
}
#report-hero h1 {
  color: var(--cream);
  text-shadow:
    1px 1px 0 var(--ink),
    2px 2px 0 var(--ink),
    3px 3px 0 var(--ink),
    4px 4px 0 rgba(0,0,0,0.15);
  letter-spacing: 0.02em;
}
#report-hero p { color: var(--cream); opacity: 0.9; }
#report-form { background: #fff; }
#report-form .wrap {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 3rem;
  align-items: start;
}
#report-trust { background: var(--cream); }
#report-next  { background: #fff; }

/* Report form — fill column */
#report-form .cs-narrative {
  max-width: 100%;
}
.eds-report-form {
  max-width: 100%;
}
@media (max-width: 1100px) {
  #report-form .wrap {
    grid-template-columns: 1fr;
  }
  .flip-card,
  .flip-card-inner {
    min-height: 400px;
  }
  .flip-card-back ul li,
  .flip-card-back ol li {
    font-size: 0.9rem;
    margin-bottom: 0.7rem;
  }
}

/* Report "what you'll get" — uses cs-quote-right base, with list styling */
.report-what-you-get ul {
  list-style: none;
  padding: 0;
  margin: 0.75rem 0 0;
  text-align: right;
}
.report-what-you-get li {
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(35,54,41,0.1);
  font-size: 0.9rem;
  line-height: 1.4;
}
.report-what-you-get li:last-child {
  border-bottom: none;
}
.report-what-you-get li strong {
  color: var(--olive);
}


/* ============================================================
   WEBSITE UPDATES PAGE
   ============================================================ */

/* Refresh two-column layout */
.refresh-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-top: 2rem;
}
.refresh-left ul {
  padding-left: 1.2rem;
}
.refresh-left li {
  margin-bottom: 0.5rem;
}
.refresh-right {
  background: #3d000f;
  color: var(--cream);
  padding: 2rem 2rem;
  border-radius: 14px;
}
.refresh-right h3 {
  color: var(--cream);
  margin-bottom: 1.2rem;
}
.refresh-right ol {
  padding-left: 0;
  list-style: none;
  counter-reset: step;
}
.refresh-right ol li {
  counter-increment: step;
  margin-bottom: 1.2rem;
  padding-left: 2rem;
  position: relative;
}
.refresh-right ol li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: #f5f0e8;
}
.refresh-right ol li strong,
.refresh-right ul li strong {
  color: #fff;
}
.refresh-right ul {
  padding-left: 1.2rem;
  list-style: none;
}
.refresh-right ul li {
  margin-bottom: 1rem;
  position: relative;
}
@media (max-width: 1100px) {
  .refresh-columns {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

#updates-hero    { background: var(--cream); }
#quick-fix       { background: #fff; }
#refresh         { background: #f5f0e8; }
#rebuild         { background: #fff; }
#included        { background: #f5f0e8; }
#process         { background: #fff; }
#investment      { background: #f5f0e8; }
#websites-faq    { background: var(--cream); }
#wd-casestudy   { background: #fff; }
#updates-cta {
  background: #f5f0e8;
  color: var(--ink);
}
#updates-cta .wrap {
  text-align: right;
  margin-left: auto;
  margin-right: auto;
  max-width: 1200px;
  padding-left: 25%;
}
#updates-cta h2 {
  color: var(--ink);
  max-width: 100%;
}
#updates-cta p {
  max-width: 100%;
  color: var(--olive);
}
#updates-cta .btn-text {
  color: var(--red);
  opacity: 0.7;
}
#updates-cta .btn-text:hover {
  opacity: 1;
}

/* Quick fix price callout in the aside */
#quick-fix .cs-quote-right p strong,
#refresh .cs-quote-right p strong {
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--red);
  display: block;
  line-height: 1.2;
  margin-bottom: 0.25rem;
}

/* Ladder grid — buttons inside cards */
#updates-ladder .included-item {
  display: flex;
  flex-direction: column;
}
#updates-ladder .included-item .btn {
  margin-top: auto;
  width: 100%;
  text-align: center;
  box-sizing: border-box;
}


/* ============================================================
   FLOATING "QUICK QUESTION?" WIDGET
   ============================================================ */
.qq-widget {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 900;
  font-family: 'Roboto Slab', Georgia, serif;
}

/* Toggle button */
.qq-toggle {
  background: #000;
  color: var(--cream);
  border: none;
  border-radius: 2rem;
  padding: 0.75rem 1.4rem;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.qq-toggle:hover {
  background: #222;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.25);
}
.qq-toggle.open {
  background: var(--red);
}

/* Panel */
.qq-panel {
  position: absolute;
  bottom: calc(100% + 0.75rem);
  right: 0;
  width: 320px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.18);
  overflow: hidden;
}

/* Panel header */
.qq-header {
  background: var(--olive);
  color: var(--cream);
  padding: 0.75rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  font-size: 0.95rem;
}
.qq-close {
  background: none;
  border: none;
  color: var(--cream);
  font-size: 1.4rem;
  cursor: pointer;
  line-height: 1;
  padding: 0 0.2rem;
  opacity: 0.8;
  transition: opacity 0.2s;
}
.qq-close:hover {
  opacity: 1;
}

/* Form inside panel */
.qq-form {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.qq-form input,
.qq-form textarea {
  width: 100%;
  padding: 0.6rem 0.8rem;
  border: 2px solid #d0d0d0;
  border-radius: 6px;
  font-family: inherit;
  font-size: 0.9rem;
  color: var(--ink);
  box-sizing: border-box;
  transition: border-color 0.2s ease;
}
.qq-form input:focus,
.qq-form textarea:focus {
  outline: none;
  border-color: var(--olive);
}
.qq-form .btn {
  width: 100%;
  text-align: center;
  font-size: 0.9rem;
  padding: 0.65rem;
}

/* Note */
.qq-note {
  text-align: center;
  font-size: 0.75rem;
  opacity: 0.55;
  padding: 0 1rem 0.75rem;
  margin: 0;
}
