/*
  The CopyCops - Home Page Styles
  --------------------------------
  Beginner note:
  - HTML controls the structure (sections, headings, images)
  - CSS controls the look (colors, spacing, fonts, layout)

  This file uses:
  - CSS variables (easy theme tweaks)
  - Flexbox and Grid (modern layout)
  - Responsive breakpoints (mobile/tablet/desktop)
*/

 @font-face {
   font-family: "LuckiestGuy";
   src: url("../fonts/LuckiestGuy.ttf") format("truetype");
   font-weight: 400;
   font-style: normal;
   font-display: swap;
 }

 @font-face {
   font-family: "Quicksand_Bold";
   src: url("../fonts/Quicksand_Bold.otf") format("opentype");
   font-weight: 700;
   font-style: normal;
   font-display: swap;
 }

 @font-face {
   font-family: "Hillshort";
   src: url("../fonts/Hillshort.otf") format("opentype");
   font-weight: 400;
   font-style: normal;
   font-display: swap;
 }

 @font-face {
   font-family: "Montserrat-SemiBold";
   src: url("../fonts/Montserrat-SemiBold.ttf") format("truetype");
   font-weight: 600;
   font-style: normal;
   font-display: swap;
 }


  @font-face {
   font-family: "Quicksand-Regular";
   src: url("../fonts/Quicksand-Regular.ttf") format("truetype"), url("../fonts/Quicksand-Regular.otf") format("opentype");
   font-weight: 400;
   font-style: normal;
   font-display: swap;
 }


/* -----------------------------
   Theme (colors, fonts, sizing)
   ----------------------------- */
:root {
  /* Colors */
  --color-black: #0b0b0f;
  --color-white: #ffffff;
  --color-text: #121219;
  --color-muted: #5b5b6b;

  --color-pink: #e33a92;
  --color-purple: #8a2be2;
  --color-purple-deep: #4b1bb7;

  --color-bg: #ffffff;
  --color-soft: #f6f3ff;
  --color-soft-2: #fff2f7;

  /* Type */
  --font-display: "Bangers", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  --font-body: "Poppins", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;

  /* Layout */
  --container: 1140px;
  --radius-lg: 20px;
  --radius-md: 14px;

  --shadow-soft: 0 12px 30px rgba(18, 18, 25, 0.12);
  --shadow-card: 0 18px 50px rgba(18, 18, 25, 0.18);

  /* Spacing */
  --section-pad: 80px;
}

/* -----------------------------
   Base / Reset-ish
   ----------------------------- */
* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg) url("../images/AfterBrand/background.png") no-repeat center 700px / 1440px auto;
  /*! line-height: 2.1; */
}

body.cases-page {
  background: var(--color-bg);
}

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

a {
  color: inherit;
  text-decoration: none;
}

/* Screen-reader-only text (accessible labels) */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* A reusable container that centers content */
.container {
  width: min(var(--container), calc(100% - 48px));
  margin-inline: auto;
}

/* Reusable grid helpers */
.grid {
  display: grid;
  gap: 28px;
}

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

.grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* Reusable button styles */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 20px 35px;
  /*! border-radius: 10px; */
  font-weight: 700;
  letter-spacing: 0.03em;
  border: 0;
  cursor: pointer;
  user-select: none;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
  font-size: 25px;
}

.btn:active {
  transform: translateY(1px);
}

.btn--primary {
  background: var(--color-pink);
  color: var(--color-white);
  box-shadow: 0 10px 22px rgba(227, 58, 146, 0.25);
}

.final-cta .btn--primary {
  font-size: 30px;
}

.btn--ghost {
  background: rgba(138, 43, 226, 0.08);
  color: var(--color-purple-deep);
}

.btn--ghost:hover {
  background: rgba(138, 43, 226, 0.12);
}

.btn--small {
  padding: 10px 14px;
  font-size: 0.95rem;
}
.btn:hover {
  background: var(--color-purple);
  color: var(--color-white);
  box-shadow: 0 14px 30px rgba(138, 43, 226, 0.33);
}

.text-accent {
  color: var(--color-pink);
  font-style: italic;
}

/* -----------------------------
   Header + Nav
   ----------------------------- */
.site-header {
  background: var(--color-white);
  transform: none;
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  width: 100%;
  z-index: 10000;
  display: block;
  opacity: 1 !important;
  backface-visibility: hidden;
}

.nav {
  position: relative;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(18, 18, 25, 0.06);
  transform: none;
  min-height: 64px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  opacity: 1 !important;
}

/* Compensate for fixed header height */
body { 
  padding-top: var(--header-h, 88px);
  position: relative;
}

/* Ensure main content sits above watermark */
main {
  position: relative;
  z-index: 2;
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  position: relative;
}

/* Ensure mobile dropdown sits above page content */
@media (max-width: 767px) {
  .nav__menu { z-index: 10001; }
}

/* Do not animate header/nav position or visibility */
.site-header, .nav {
  transition: none !important;
 /* animation: none !important;*/
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
}

.brand__logo {
  width: auto;
  height: 71px;
}

.brand__mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: conic-gradient(from 180deg, var(--color-purple), var(--color-pink), var(--color-purple));
  color: var(--color-white);
  font-weight: 800;
}

.brand__text {
  letter-spacing: 0.02em;
}

.nav__menu {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav__link {
  font-weight: 500;
  font-size: 0.95rem;
  color: rgba(18, 18, 25, 0.85);
}

.nav__link.is-active {
  color: var(--color-purple);
}

/* Mobile menu toggle (CSS-only) */
.nav__checkbox {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.nav__toggle {
  display: none; /* becomes visible on small screens */
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(18, 18, 25, 0.06);
  align-items: center;
  justify-content: center;
}

.nav__toggle-lines {
  width: 20px;
  height: 2px;
  background: rgba(18, 18, 25, 0.85);
  position: relative;
}

.nav__toggle-lines::before,
.nav__toggle-lines::after {
  content: "";
  position: absolute;
  left: 0;
  width: 20px;
  height: 2px;
  background: rgba(18, 18, 25, 0.85);
}

.nav__toggle-lines::before {
  top: -6px;
}

.nav__toggle-lines::after {
  top: 6px;
}

/* -----------------------------
   Hero
   ----------------------------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  place-items: center;
  text-align: center;
  color: var(--color-white);
  overflow: hidden;
}

/*
  Hero slideshow
  -------------
  - Slides are absolutely positioned behind the hero text
  - Currently uses Slide1.png
  - To add more slides later, add Slide2.png / Slide3.png
    and duplicate the .hero__slide markup in index.html.
*/
.hero__slideshow {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.02);
  filter: saturate(1.08);
}

.hero__slide--1 {
  background-image: url("../images/SlideShow/Slide1.png");
}

/* Figma-like dark overlay (keeps image visible but text readable) */
.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: none;
}

.hero__inner {
  position: relative;
  z-index: 2;
  padding: 60px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Fade slideshow animation (kept minimal since you currently have only one slide) */
@media (prefers-reduced-motion: no-preference) {
  .hero__slide {
    animation: heroFade 12s ease-in-out infinite;
  }
}

@keyframes heroFade {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 1;
  }
}

.hero__title {
  margin: 0;
  font-family: "LuckiestGuy", var(--font-display);
  font-size: 96px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.hero__subtitle {
  margin: 1px 0 201px;
  font-family: "Quicksand_Bold", var(--font-body);
  font-size: 42.75px;
  font-weight: 700;
  text-align: center;
}

.hero__accent {
  font-family: "Hillshort", var(--font-display);
  font-size: 1.15em;
  font-weight: 400;
  display: inline-grid;
  justify-items: start; /* ensure words start at the left edge */
  text-align: left;     /* force left alignment inside container */
  line-height: 1;
  vertical-align: baseline;
}

.hero__accent-word {
  background: linear-gradient(90deg, #8A2BE2 0%, #E33A92 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  grid-area: 1 / 1;
  justify-self: start;  /* align each animated word to the left */
  text-align: left;
  opacity: 0;
  transform: translateY(16px);
  white-space: nowrap;
}

/* Rotating accent words (loops every 14s) */
.hero__accent-word--0 { animation: heroAccentSlot 14s ease both infinite; animation-delay: 0s; }
.hero__accent-word--1 { animation: heroAccentSlot 14s ease both infinite; animation-delay: 2s; }
.hero__accent-word--2 { animation: heroAccentSlot 14s ease both infinite; animation-delay: 4s; }
.hero__accent-word--3 { animation: heroAccentSlot 14s ease both infinite; animation-delay: 6s; }
.hero__accent-word--4 { animation: heroAccentSlot 14s ease both infinite; animation-delay: 8s; }
.hero__accent-word--5 { animation: heroAccentSlot 14s ease both infinite; animation-delay: 10s; }
.hero__accent-word--6 { animation: heroAccentSlot 14s ease both infinite; animation-delay: 12s; }

/* Each word becomes visible only in its 0-14% window of the 14s cycle */
@keyframes heroAccentSlot {
  0% { opacity: 0; transform: translateY(16px); }
  7% { opacity: 1; transform: translateY(0); }
  14% { opacity: 0; transform: translateY(-12px); }
  100% { opacity: 0; transform: translateY(16px); }
}
.bold-img {
  height: 1.6em;
  width: auto;
  display: inline-block;
  vertical-align: -0.20em;
}

.hero .btn--primary {
  width: 430px;
  height: 110px;
  padding: 0;
  font-size: 2.1rem;
}

.hero .btn--primary:hover {
  background: var(--color-purple);
}

/* -----------------------------
   Client logo strip
   ----------------------------- */
.logo-strip {
  background: var(--color-white);
  border-top: 1px solid rgba(18, 18, 25, 0.06);
  border-bottom: 40px solid var(--color-black);
  margin-bottom: 64px;
}

.logo-strip__inner {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 18px;
  padding: 24px 0;
  flex-wrap: nowrap;
  overflow: hidden;
}

.logo-strip__item {
  font-weight: 700;
  color: rgba(18, 18, 25, 0.7);
}

.logo-strip__img {
  height: 91px;
  width: auto;
  display: block;
  object-fit: contain;
  flex: 0 0 auto;
}

.logo-strip__track {
  display: flex;
  align-items: center;
  gap: 42px;
  will-change: transform;
  animation: marquee-rtl-pause 6s linear infinite;
}

@keyframes marquee-rtl-pause {
  0% { transform: translateX(0); }
  33.333% { transform: translateX(-25%); } /* move right->left for ~4s */
  50% { transform: translateX(-25%); }     /* pause ~2s */
  83.333% { transform: translateX(-50%); } /* move again ~4s */
  100% { transform: translateX(-50%); }    /* pause ~2s */
}

/* -----------------------------
   Sections
   ----------------------------- */
.section {
  padding: var(--section-pad) 0;
}

.section--intro {
  padding-top: 39px;
}

.section__header {
  /*! margin-bottom: 28px; */
  text-align: center;
  position: relative;
}

.section__header--left {
  text-align: left;
  margin: 100px 0 30px 0;
  width: 100%;
  max-width: 100%;
  padding-right: 15px;
}

.section__title {
  margin: 0;
  font-size: clamp(1.7rem, 2.6vw, 2.5rem);
  line-height: 3.15;
  font-family: 'Montserrat-SemiBold', sans-serif;
}

.section__title--xl {
  font-size: 76px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600; /* Regular weight */
  line-height: 1.1;
  letter-spacing: 0.5px; /* Added letter spacing */
  font-style: italic;
}

.section__subtitle {
  margin: 6px 0 0;
  color: var(--color-muted);
}

.lead {
  margin: 0 35px 14px;
  color: rgba(18, 18, 25, 0.86);
}

/* -----------------------------
   Cards (intro)
   ----------------------------- */
.intro-cards {
  align-items: stretch;
}

.card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  background: #ddd;
  position: relative;
}

.card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4 / 3;
}

.card__overlay {
  position: absolute;
  inset: auto 0 0 0;
  padding: 18px 18px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0));
}

.card__tag {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.92);
}

/* After brand two-up section */
.afterbrand-grid {
  align-items: start;
  gap: 28px;
}


.afterbrand-title {
  margin: 0 0 6px;
  font-size: clamp(1.4rem, 2.2vw, 2rem);
  font-weight: 800;
}

.afterbrand-sub {
  margin: 0 0 12px;
  color: var(--color-muted);
}

.afterbrand-img {
  width: 100%;
  height: 100%;
  border-radius: 5px;
  box-shadow: var(--shadow-soft);
  object-fit: cover;
  aspect-ratio: 16 / 11;
}

.afterbrand-marquee {
  overflow: hidden;
  position: relative;
}

.afterbrand-track {
  display: flex;
  gap: 24px;
  will-change: transform;
  transform: translateX(0);
  transition: transform 800ms ease-in-out;
}

/* Tiny nav buttons for Afterbrand marquee */
.marquee-btn {
  position: absolute;
  top: 62%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 0;
  /*background: rgba(18,18,25,0.75);*/
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 16px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 6px 14px rgba(0,0,0,0.18);
}

.marquee-btn--prev { left: 3px; }
.marquee-btn--next { right: 6px; }

@media (hover: hover) and (pointer: fine) {
  .marquee-btn:hover { background: rgba(138,43,226,0.9); }
}

.afterbrand-card {
  display: flex;
  flex-direction: column;
  flex: 0 0 calc(50% - 12px);
}

@keyframes afterbrand-rtl-pause {
  0%, 41.666% { transform: translateX(0); }
  50%, 91.666% { transform: translateX(-25%); }
  100% { transform: translateX(-50%); }
}

/* -----------------------------
   Feature
   ----------------------------- */
.feature {
  align-items: flex-start;
  gap: 50px; /* Increased gap between columns */
  width: 100%;
  position: relative;
  padding-right: 20px; /* Add padding to prevent edge touch */
}

.feature__media {
  position: relative;
  overflow: visible;
  border-radius: var(--radius-lg);
  margin: 40px 0 80px 0; /* Further increased bottom margin to 80px */
  align-self: flex-start;
  width: 100%;
  padding-right: 2%;
  padding-bottom: 70px; /* Increased bottom padding to 70px */
}

.heading-stand-wrap {
  position: relative;
}

.heading-stand {
  display: inline-block;
  font-family: 'Hillshort', sans-serif;
  font-weight: normal;
  color: #F4C93F;
  transform: rotate(-1deg);
  font-size: 1.0em;
  margin: 0 6px;
  letter-spacing: 1px;
  
}

.feature__img {
  box-shadow: var(--shadow-soft);
  width: 120%;
  height: 120%;
  max-width: none;
  margin-left: 0;
  margin-top: 0;
  position: relative;
  z-index: 0;
}

.feature__content p {
  margin: 0 0 25px 0; /* Simplified margins, added bottom margin */
  font-size: 1.2rem;
  line-height: 1.8;
  position: relative;
  z-index: 1;
  padding: 0 15px; /* Added horizontal padding */
}

.feature__content {
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 1px;
  height: auto;
  max-width: 90%;
  margin: 60px 1px 1px 60px; /* Increased top margin to 60px */
  padding: 1px 0 60px; /* Increased vertical padding */
  position: relative;
  z-index: 1;
  /* Add a transparent border to create more space visually */
  border-top: 1px solid transparent;
  margin-top: 30px; /* Additional margin */
}

.feature__content p:nth-child(2) {
  align-self: center;
}

.js .reveal-left,
.js .reveal-right {
  opacity: 0;
  transition: transform 700ms cubic-bezier(0.2, 0.7, 0.2, 1), opacity 700ms ease;
}

.js .reveal-left { transform: translateX(-50px); }
.js .reveal-right { transform: translateX(50px); }
.is-in { opacity: 1; transform: none; }
/* Ensure is-in overrides the hidden pre-state */
.reveal-left.is-in,
.reveal-right.is-in,
.reveal-top.is-in { opacity: 1; transform: none; }

.js .reveal-top {
  opacity: 0;
  transform: translateY(40px);
  transition: transform 700ms cubic-bezier(0.2, 0.7, 0.2, 1), opacity 700ms ease;
}

.services__header.reveal-top { transition-delay: 0ms; }
.services-grid .service.reveal-top:nth-child(1) { transition-delay: 120ms; }
.services-grid .service.reveal-top:nth-child(2) { transition-delay: 240ms; }
.services-grid .service.reveal-top:nth-child(3) { transition-delay: 360ms; }

.checklist {
  margin: 0 0 22px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.checklist__item {
  padding-left: 30px;
  position: relative;
  color: rgba(18, 18, 25, 0.86);
}

.checklist__item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.35em;
  width: 18px;
  height: 18px;
  border-radius: 6px;
  background: linear-gradient(135deg, var(--color-purple), var(--color-pink));
  box-shadow: 0 10px 18px rgba(138, 43, 226, 0.2);
}

/* -----------------------------
   Mid CTA
   ----------------------------- */
.section--cta {
  padding: 38px 0;
}

.cta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  padding: 0;
  border-radius: 0;
  background: none;
  border: 0;
}

.cta__text {
  font-size: clamp(2.6rem, 6vw, 4.2rem);
  line-height: 1.1;
  font-weight: 800;
  font-style: italic;
}

.cta__title {
  margin: 0;
  
  font-size: 76px;
  font-weight: 550;
  letter-spacing: 0.01em;
  line-height: 1.1;
}

.cta__subtitle {
  margin: 15px 0 0;
  color: inherit;
  
  font-size: 24px;
  font-weight: 550;
  font-style: italic;
  font-size: inherit;
}

.cta .btn {
  text-transform: uppercase;
  padding: 20px 17px;
  margin-top: 1px;
  font-size: 30px;
}

/* -----------------------------
   Stats
   ----------------------------- */
.section--stats {
  background-color: #ffffff;
  background-image: url('/images/stats-bg.png');
  background-repeat: no-repeat;
  background-position: top center;
  background-size: contain; /* or cover */
  position: relative;
  overflow: hidden;
}

.section--stats::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 50%;
  height: 100%;
  background-image: url("../images/Section6th/BackGround_U_1.png");
  background-repeat: no-repeat;
  background-position: left center;
  background-size: contain;
  opacity: 0.06;
  pointer-events: none;
  z-index: 0;
}

.section--stats::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  background-image: url("../images/Section6th/BackGround_U_2.png");
  background-repeat: no-repeat;
  background-position: right center;
  background-size: contain;
  opacity: 0.06;
  pointer-events: none;
  z-index: 0;
}


.stats {
  margin-top: 18px;
}

/* -----------------------------
   Services (Stand Out. Be Heard.)
   ----------------------------- */
.stats-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.stats-bg__img {
  position: absolute;
  top: -40px;
  width: 52vw;
  max-width: 820px;
  opacity: 0.12;
}

.stats-bg__img--l { left: -4vw; }
.stats-bg__img--r { right: -6vw; }

.services__header { 
  margin-bottom: 26px; 
  position: relative;
}

.services__title {
  margin: 0 0 10px;
  font-family: "Montserrat-SemiBold", sans-serif;
  font-size: 76px;
  font-weight: 600;
  font-style: italic;
  letter-spacing: 0.100em;
  line-height: 1.2;
  position: relative;
  z-index: 10;
}

.services__accent {
  font-family: "Hillshort", sans-serif;
  font-size: 76px;
  font-weight: 400;
  color: var(--color-pink);
  background: linear-gradient(90deg, #ff64b0, #d12b86);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  position: relative;
  z-index: 3;
}

.services__pair {
  width:300px;
  height: auto;

  position: absolute;
  top: -30px;
  left: 65%;
  font-size: 50px;
  z-index: -1;
}

.services__lead {
  margin: 8px 0 0;
  color: rgba(18, 18, 25, 0.75);
  font-weight: 500;
  position: relative;
  z-index: 10;
  line-height: 1.6;
  font-size: 24px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 50px;
  align-items: stretch;
  margin-top: 26px;
}

.service {
  text-align: left;
  /*! background: #ffffff; */
  /*! border: 1px solid rgba(18, 18, 25, 0.08); */
  border-radius: var(--radius-lg);
  /*! padding: 12px; */
  /*! box-shadow: var(--shadow-soft); */
  display: flex;
  flex-direction: column;
  height: 100%;
}

.service__icon {
  width: clamp(113px, 18vw, 300px);
  height: auto;
  margin: 0 0 20px;
  filter: drop-shadow(0 12px 28px rgba(18,18,25,0.18));
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.service__title {
  margin: 0 0 15px;
  font-family: "Montserrat-SemiBold", sans-serif;
  font-size: 3.45rem;
  font-weight: 600;
  line-height: 1.08;
  min-height: 60px;
  display: flex;
  align-items: center;
}

.service__sub {
  margin: 0 0 20px;
  color: #0b0b0f;
  min-height: 40px;
  display: flex;
  align-items: center;
}

.taglist {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0;
  margin: 6px -3px 0px;
  list-style: none;
}

.tag {
  padding: 10px 10px;
  border-radius: 10px;
  background: #ffffff;
  border: 1px solid rgb(0, 0, 63);
  box-shadow: 0 4px 10px rgba(18, 18, 25, 0.05);
  font-size: 0.80rem;
  transition: background-color 220ms ease, color 220ms ease,
              transform 220ms ease, box-shadow 220ms ease,
              border-color 220ms ease;
  cursor: default;
}

@media (hover: hover) and (pointer: fine) {
  .tag:hover {
    background: var(--purple, #7C3AED);
    color: #ffffff;
    border-color: rgba(8, 0, 23, 0);
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(124, 58, 237, 0.25);
  }
}

/* Responsive tweaks for Services */
@media (max-width: 900px) {
  .services-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  .services-grid { grid-template-columns: 1fr; }
  .services__pair { width: 86px; }
}

.stat {
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(18, 18, 25, 0.06);
  border-radius: var(--radius-lg);
  padding: 22px 20px;
  box-shadow: var(--shadow-soft);
}

.stat__icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--color-purple), var(--color-pink));
  opacity: 0.95;
  margin-bottom: 14px;
}

.stat__icon--gear {
  background: linear-gradient(135deg, var(--color-pink), #ffb703);
}

.stat__icon--chart {
  background: linear-gradient(135deg, #00c2ff, var(--color-purple));
}

.stat__title {
  margin: 0 0 6px;
  font-size: 1.1rem;
}

.stat__text {
  margin: 0;
  color: rgba(18, 18, 25, 0.74);
}

/* -----------------------------
   Testimonial
   ----------------------------- */
.section--testimonial {
  background: #ffffff;
}

.quote {
  margin: 0;
  padding: 26px 24px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(138, 43, 226, 0.12), rgba(227, 58, 146, 0.12));
  border: 1px solid rgba(18, 18, 25, 0.06);
  box-shadow: var(--shadow-soft);
  position: relative;
}

.quote__text {
  margin: 0;
  font-size: 1.1rem;
  color: rgba(18, 18, 25, 0.9);
}

.quote__meta {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 18px;
}

.quote__avatar {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 12px 24px rgba(18, 18, 25, 0.15);
}

.quote__name {
  margin: 0;
  font-weight: 700;
}

.quote__role {
  margin: 0;
  font-size: 0.9rem;
  color: rgba(18, 18, 25, 0.65);
}

/* -----------------------------
   Testimonial (new design)
   ----------------------------- */
.testimonial__title {
  margin-top: 150px;
  margin-left: 0;
  font-family: "Montserrat-SemiBold", sans-serif;
  font-weight: 600;
  font-style: italic;
  letter-spacing: -0.01em;
  font-size: 90px;
  line-height: 1.15;
}

.testimonial__hype {
  font-family: "Hillshort", sans-serif;
  color: var(--color-purple);
  margin-right: 6px;
  font-weight: 400;
}

.testimonial__pair {
  width: clamp(370px, 17vw, 292px);
  height: auto;
  vertical-align: baseline;
  /*! margin-left: 6px; */
  transform: rotate(00deg);
  position: absolute;
  left: 38%;
  bottom: -120px;
  pointer-events: none;
  transition: none;
}

.testimonial__subtitle {
  margin-top: -50px;
  /*! color: rgba(18, 18, 25, 0.66); */
  font-weight: 900;
  font-size: 23px;
}

.testimonial-card {
  position: relative;
  margin-top: 98px;
  display: grid;
  place-items: center;
}

.testimonial-card__bg {
  width: min(850px, 90%);
  /*! height: 400px; */
  border-radius: 28px;
  box-shadow: var(--shadow-soft);
}

.testimonial-card__content {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-rows: 1fr auto;
  place-items: center;
  padding: clamp(20px, 4.5vw, 40px);
  color: #fff;
  text-align: center;
}

.testimonial-card__quote {
  position: absolute;
  top: clamp(12px, 3.2vw, 40px);
  /*! left: clamp(16px, 6vw, 36px); */
  width: clamp(40px, 6vw, 56px);
  height: auto;
  opacity: 0.9;
}

.testimonial-card__text {
  max-width: 820px;
  margin: 42px auto 14px;
  font-weight: 600;
  font-size: clamp(22px, 2.2vw, 30px);
  line-height: 1.55;
}

.testimonial-card__meta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  /*! background: rgba(255, 255, 255, 0.1); */
  /*! border-radius: 999px; */
  padding: 6px 10px;
}

.testimonial-card__avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.9);
}

.testimonial-card__name {
  margin: 0;
  font-weight: 700;
  display: block;
  margin-right: 0;
}

.testimonial-card__role {
  margin: -5px 0 0;
  display: block;
  font-size: 0.9rem;
  opacity: 0.9;
}

.testimonial-slider {
  position: relative;
  /*! margin-top: 98px; */
  min-height: 420px;
}

.testimonial-slide {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  opacity: 0;
  transform: translateX(-28px);
  animation: tSlide 12s ease-in-out infinite;
}

.testimonial-slide--1 { animation-delay: 0s; }
.testimonial-slide--2 { animation-delay: 6s; }

@keyframes tSlide {
  0% { opacity: 0; transform: translateX(-28px); }
  6% { opacity: 1; transform: translateX(0); }
  44% { opacity: 1; transform: translateX(0); }
  50% { opacity: 0; transform: translateX(28px); }
  100% { opacity: 0; transform: translateX(28px); }
}

@media (prefers-reduced-motion: reduce) {
  .testimonial-slide { animation: none; opacity: 1; transform: none; }
  .testimonial-slide--2 { display: none; }
}

/* -----------------------------
   Cases
   ----------------------------- */
.section--cases {
  /*! margin-top: 300px; */
  padding-top: 0;
  position: relative;
  overflow: hidden;
}

.cases-hero {
  position: relative;
  /*! display: grid; */
  align-items: end;
  min-height: 540px;
  padding: calc(var(--header-h, 88px) + 40px) 0 50px;
  background: #0e0e12;
  color: #ffffff;
  overflow: hidden;
  /*! margin-top: px; */
}
.cases-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.25) 50%, rgba(0,0,0,0.55) 100%);
  pointer-events: none;
  z-index: 0;
}
.cases-hero__bg { position: absolute; inset: 0; z-index: 0; }
.cases-hero__topframe { position: absolute; top: 0; left: 0; width: 100%; height: auto; opacity: 0.4; box-shadow: 0 4px 20px rgba(0, 0, 0, 0.979); }
.cases-hero__band { position: absolute; top: 120px; left: 50%; transform: translateX(-50%); width: min(1200px, 95vw); height: auto; opacity: 0.9; }
.cases-hero__header { position: relative; z-index: 2; width: min(var(--container), calc(100% - 48px)); margin-inline: auto; margin-top: 20px;/*! font-size: 50px; */}
.cases-hero__title { margin: 0; font-size: clamp(5rem, 6vw, 4.2rem); letter-spacing: 0.02em; }
.cases-hero__subtitle { margin: 6px 0 0; color: rgba(255,255,255,0.88); font-size: clamp(1rem, 2.3vw, 1.3rem); }

/* Rope bridge image (sits between hero and grid) */
.cases-bridge { background: #fff; position: relative; padding: 6px 0 0; }
.cases-bridge__img { display: block; margin: 0 auto 10px; width: min(1200px, 96vw); height: auto; pointer-events: none; }
/* Overlay label + arrow for rope bridge */
.cases-bridge .case__footer--overlay {
  left: 404px;
  right: 18px;
  bottom: 8px;
  padding: 8px 10px;
  color: #ffffff;
}
.cases-bridge .case__name { font-size: 26px; font-weight: 700; text-shadow: 0 2px 6px rgba(0,0,0,0.35); }
.cases-bridge .case__round {
  width: 60px;
  height: 32px;
  border-radius: 40px;
  border: 1px solid rgba(255,255,255,0.7);
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(2px);
}

/* Cases page grid overrides (2-col like Figma) */
.cases-page .cases-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 700px) { .cases-page .cases-grid { grid-template-columns: 1fr; } }

/* Utility tile aspect helpers */
.case--square .case__img { aspect-ratio: 1 / 1; object-fit: cover; }
.case--landscape .case__img { aspect-ratio: 16 / 9; object-fit: cover; }
.case--wide { grid-column: span 2; }
/* Wider landscape tile (used for Tradersync on Cases page) */
.case--wider .case__img { aspect-ratio: 22 / 9; object-fit: cover; }
/* Slimmer landscape tile (used for FindATutor.ch on Cases page) */
.case--slim .case__img { aspect-ratio: 24 / 9; object-fit: cover; }

/* Show full image (no crop) for wide cases tile */
.case--wide .case__img {
  aspect-ratio: auto;
  height: auto;
  object-fit: contain;
  background: #fff;
}

/* New Cases header styles */
.cases__header { margin-bottom: 6px; }
.cases__title {
  margin: 0;
  font-weight: 600;
  font-style: italic;
  color: var(--color-purple);
  font-size: 80px;
}
.cases__subtitle {
  margin: 2px 0 0;
  color: rgb(1, 1, 14);
  font-size: 35px;
}

/* Decorative image between heading and grid */
.cases-decor {
  display: flex;
  justify-content: center;
  margin: 6px 0 12px;
}
.cases-decor__img {
  width: min(980px, 100%);
  height: auto;
  opacity: 0.95;
}

.cases-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 22px;
  align-items: start; /* prevent shorter cards from stretching to tallest row height */
}
.contact-copy {
  /*! max-width: 520px; */
  text-align: left;
}

.contact-copy__text {
  font-size: 18px;
  line-height: 1.6;
  color: #222;
  margin-bottom: 16px;
}

.contact-copy__text .muted {
  color: #555;
  font-size: 15px;
}

.contact-email {
  color: #ff2f92; /* pink like screenshot */
  text-decoration: none;
  font-weight: 500;
}

.contact-email:hover {
  text-decoration: underline;
}



.cases-grid--show4 { margin-top: 6px; }

@media (hover: hover) and (pointer: fine) {
  .section--cases .case__link {
    cursor: none;
  }
}
.partners-section {
  position: relative;
  padding: 100px 20px 150px;
  background: transparent;
  text-align: center;
  overflow: hidden;
}

/* light purple inverted triangle watermark (image) */
.partners-section::after {
  content: "";
  position: absolute;
  top: 60px;
  left: 50%;
  transform: translateX(-50%);
  width: clamp(280px, 42vw, 600px);
  height: clamp(320px, 52vw, 720px);
  background: url("../images/AboutUs/AboutRectangle.png") no-repeat center/contain;
  opacity: .05;
  z-index: 0;
  pointer-events: none;
  
}

/* heading pill */
.partners-section h2 {
  position: relative;
  z-index: 1;
  display: inline-block;
  /*! background: #ffffff; */
  padding: 12px 26px;
  border-radius: 999px;
  font-size: 40px;
  font-weight: 600;
  margin-bottom: 30px;
  line-height: 0.9;
}

/* scribble word */
.scribble {
  color: #8b3dff;
}

/* list container */
.partners-list {
  position: relative;
  z-index: 1;
  list-style: none;
  padding: 0;
  /*! margin: 0px auto; */
  /*! max-width: 520px; */
  text-align: left;
  margin-left: 30%;
  font-size: 0px;
}

/* list items */
.partners-list li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 14px;
  font-size: 19px;
  line-height: 1.2;
}

/* purple arrow bullets */
.partners-list li::before {
  content: "▶";
  position: absolute;
  left: 0;
  top: 11px;
  font-size: 12px;
  color: #8b3dff;
}


.cases-cursor-img {
  position: fixed;
  left: 0;
  top: 0;
  width: 280px;
  height: 140px;
  pointer-events: none;
  opacity: 0;
  transform: translate(-85%, -50%) scale(0.92);
  transform-origin: 50% 50%;
  transition: opacity 140ms ease, transform 140ms ease;
  z-index: 10070;
}

.cases-cursor-img.is-visible {
  opacity: 1;
  transform: translate(-85%, -50%) scale(1);
}

.cases-cursor-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.cases-cursor {
  position: fixed;
  left: 0;
  top: 0;
  transform: translate(-50%, -50%) scale(0.92);
  width: 160px;
  height: 68px;
  background: #ffffff;
  color: #121219;
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 10px 24px rgba(0,0,0,0.12);
  pointer-events: none;
  opacity: 0;
  transition: opacity 160ms ease, transform 160ms ease;
  z-index: 10060;
  font-weight: 700;
}
.cases-cursor.is-visible { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.cases-cursor__label { font-size: 16px; }
.cases-cursor__arrow {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid rgba(18,18,25,0.2);
  font-size: 18px;
}

.case {
  /*! border-radius: 18px; */
  overflow: hidden;
  /*! box-shadow: var(--shadow-card); */
  /*! background: #fff; */
  position: relative;
}

.case__link {
  display: grid;
}

.case__img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

/* Landscape override for Tradersync only */
.case__link[aria-label="Case Tradersync"] .case__img {
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

/* Landscape override for FindATutor.ch only (match reference small tile) */
.case__link[aria-label="Case FindATutor.ch"] .case__img {
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.case__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  /*! background: rgba(255, 255, 255, 0.92); */
}

.case__footer--overlay {
  position: absolute;
  left: 12px;
  right: 20px;
  bottom: 12px;
  padding: 10px 12px;
  /*! background: linear-gradient(90deg, rgba(255, 0, 0, 0.45), rgba(0,0,0,0.18)); */
  color: #ffffff;
  border-radius: 999px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.case__link:hover .case__footer--overlay,
.case__link:focus-visible .case__footer--overlay {
  opacity: 1;
  transform: translateY(0);
}

.case__name {
  font-weight: 700;
  font-size: 20px;
}

.case__arrow {
  font-weight: 900;
  color: var(--color-purple);
}
.final-cta__title .move-forward {
  display: inline-block;
  transform: translateX(40px);
  margin: 20px;
}

.footer__copy {
  margin-top: 160px; /* default placement when used in column */
}
/* When copyright is in the footer bar row, remove the extra margin */
.footer__bar .footer__copy { margin: 0; }


.case__round {
  display: inline-grid;
  place-items: center;
  width: 84px;
  height: 44px;
  border-radius: 50px;
  border: 1px solid rgba(255,255,255,0.6);
  /*! background: rgba(255,255,255,0.1); */
  /*! color: #fff; */
  font-size: 20px;
  /*! top: ; */
  margin: px;
}

.cases__cta { 
  margin-top: 18px;
  font-size: 30px;
}

/* -----------------------------
   Final CTA
   ----------------------------- */
.section--final-cta {
  padding: 64px 0 46px;
  background: #ffffff;
}

.final-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  /*! margin: 200px; */
  margin-top: 100px;
}

.final-cta__title {
  margin: 100px;
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0.01em;
  font-size: 80px;
  line-height: 0.88; /* tighter lines as requested */
  margin-left: 60px; /* add left space similar to reference */
}

/* -----------------------------
   Footer
   ----------------------------- */
.site-footer {
  
  padding: 34px 0 46px;
  background: #ffffff;
  color: var(--color-text);
  /*! margin-top: 160px; */
}

.footer {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.brand--footer .brand__mark {
  width: 30px;
  height: 30px;
}

 .brand__logo--footer {
  height: 80px;
 }

.footer__small {
  margin: 10px 0 0;
  color: rgba(18, 18, 25, 0.6);
  font-size: 0.9rem;
}

.footer__title {
  margin: 0 0 30px;
  font-size: 2rem;
}

.footer__links {
  padding: 0;
  margin: 0;
  list-style: none;
  display: grid;
  gap: 12px; /* increased line spacing between sitemap links */
}

.footer__links a {
  color: #000000;
}

.footer__links a:hover {
  color: var(--color-purple);
}

.footer__text {
  margin: 0 0 12px;
  color: rgba(18, 18, 25, 0.7);
}

.footer__sitemap .footer__links { margin-bottom: 12px; }

.footer__logo { margin-top: 50px; }

.footer__bar {
  margin-top: 8px;
  padding-top: 12px;
  display: flex;
  align-items: flex-end; /* align bottoms of items */
  justify-content: space-between; /* logo left, controls right */
  color: rgba(18, 18, 25, 0.7);
  font-size: 0.95rem;
}
.brand--footer { display: inline-flex; align-items: flex-end; }
.footer__group-right {
  display: inline-flex;
  align-items: flex-end; /* align button and copyright on same bottom line */
  gap: 18px; /* keep button near copyright */
}
.footer__bar .backtotop { padding-bottom: 0; margin: 0; }
.footer__bar .footer__copy { line-height: 1; }

.back-to-top { color: inherit; }
.back-to-top:hover { color: var(--color-purple); }
.back-to-top__chev { font-weight: 800; margin-left: 4px; }

/* Footer Back-to-Top button */
.backtotop {
  display: inline-flex;
  align-items: flex-end; /* align text baseline to bottom */
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 50px;
  background: transparent;
  color: #0d0000;
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: none;
  border: none;
}

.backtotop:hover { 
  background: transparent;
  box-shadow: none;
  transform: scale(1.05);
  color: var(--color-pink);
}

.backtotop__text {
  font-weight: 500;
  font-family: 'Quicksand-Regular', var(--font-body), sans-serif;
  font-size: 18px;
  line-height: 1; /* remove extra vertical space */
}

.backtotop__arrow {
  font-size: 16px;
  font-weight: 700;
}

.backtotop.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition-delay: 0s;
}

.newsletter {
  display: flex;
  gap: 10px;
  align-items: center;
}

.newsletter__input {
  width: 100%;
  padding: 12px 12px;
  border-radius: 10px;
  border: 1px solid rgba(18, 18, 25, 0.12);
  outline: none;
  font: inherit;
}

.newsletter__input:focus {
  border-color: rgba(138, 43, 226, 0.45);
  box-shadow: 0 0 0 4px rgba(138, 43, 226, 0.12);
}

/* Footer newsletter (Join The Rebels) — scoped to footer right column */
#blog { 
  text-align: center; 
  margin-left: auto;
}
#blog .footer__title { font-weight: 800; margin: 0 0 6px; }
#blog .footer__text { margin: 0 0 12px; color: rgba(18,18,25,0.66); }
#blog .footer__text { font-size: 1.1rem; line-height: 1.2; }
#blog .newsletter {
  flex-direction: column;
  align-items: center;
  gap: 8px;
  max-width: 360px;
  margin: 0 auto;
}
#blog .newsletter__input {
  width: 100%;
  padding: 12px 16px;
  border-radius: 12px;
  border: 0;
  background: rgba(18,18,25,0.08);
}
#blog .btn.btn--small {
  align-self: center;
  padding: 10px 16px;
    box-shadow: 0 10px 22px rgba(227, 58, 146, 0.20);
}

/* Footer sitemap link font size increase (scoped) */
.site-footer .footer__links a { font-size: 1.1rem; }

 .blog-page {
   background: #0e0e12;
   color: #ffffff;
 }

 /* Blog page: make the final CTA section dark like the design */
 .blog-page .section--final-cta {
   background: #0e0e12;
 }

 .blog-hero {
   position: relative;
   height: clamp(220px, 42vh, 340px);
   overflow: hidden;
   background: #0e0e12;
 }

 .blog-hero__img {
   width: 100%;
   height: 100%;
   object-fit: contain;
   filter: saturate(0.95) contrast(1.02);
 }

 .blog-hero::after {
   content: "";
   position: absolute;
   inset: 0;
   background: linear-gradient(180deg, rgba(0,0,0,0.40) 0%, rgba(0,0,0,0.68) 100%);
   pointer-events: none;
 }

 .blog-hero__title {
   position: absolute;
   left: 50%;
   top: 50%;
   transform: translate(-50%, -50%);
   z-index: 1;
   margin: 0;
   font-family: 'Pacifico', cursive;
   font-weight: 400;
   font-size: clamp(40px, 6vw, 72px);
   letter-spacing: 0.2px;
   color: #ffffff;
 }

 .section--blog {
   background: #0e0e12;
   padding: 34px 0 44px;
 }

 .blog-grid {
   display: grid;
   grid-template-columns: repeat(2, minmax(0, 1fr));
   gap: 18px;
 }

 .blog-card {
  position: relative;
  overflow: visible;
  border-radius: var(--radius-lg);
  margin-top: 40px;
  align-self: flex-start;
}

 .blog-card__link {
   display: block;
   position: relative;
 }

 .blog-card__img {
   width: 100%;
   height: 100%;
   aspect-ratio: 4 / 3;
   object-fit: cover;
   display: block;
 }

 .blog-card--wide .blog-card__img {
   aspect-ratio: 16 / 9;
 }



 .blog-card__overlay {
   position: absolute;
   left: 0;
   right: 0;
   bottom: 0;
   padding: 16px 12px;
   display: flex;
   align-items: flex-end;
   justify-content: space-between;
   gap: 12px;
   /*! background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.78) 100%); */
   background-color: black;
 }

 .blog-card__meta {
   min-width: 0;
 }

 .blog-card__title {
   margin: 0;
   /*! font-weight: 700; */
   font-size: 22px;
   line-height: 1.15;
   color: #ffffff;
 }

 .blog-card__sub {
   margin: 4px 0 0;
   font-weight: 500;
   font-size: 22px;
   opacity: 0.88;
   color: #ffffff;
 }

 .blog-card__pill {
  display: inline-block;
  font-size: 15px;
  padding: 13px 18px;
  border-radius: 999px;
  border: 1px solid #fff;
  color: #fff;
  background: #000;
  margin-left: 8px;
  vertical-align: middle;
}

 .blog-more {
   display: flex;
   justify-content: center;
   margin-top: 26px;
 }

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

/* -----------------------------
   Responsive breakpoints
   ----------------------------- */

/* Tablet */
@media (max-width: 900px) {
  :root {
    --section-pad: 64px;
  }

  .hero {
    min-height: 100vh;
  }
  body { background-size: 1200px auto; background-position: center -80px; }

  .grid--3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .final-cta {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Mobile nav + small screens */
@media (max-width: 720px) {
  .grid--2 {
    grid-template-columns: 1fr;
  }

  .nav__toggle {
    display: inline-flex;
  }

  /* turn the row of links into a dropdown panel */
  .nav__menu {
    position: absolute;
    top: 64px;
    right: 24px;
    left: 24px;
    display: grid;
    gap: 10px;
    padding: 14px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(18, 18, 25, 0.08);
    box-shadow: var(--shadow-soft);

    /* hidden by default */
    opacity: 0;
    transform: translateY(-6px);
    pointer-events: none;
    transition: opacity 160ms ease, transform 160ms ease;
  }

  /* show menu when checkbox is checked */
  .nav__checkbox:checked ~ .nav__menu {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .logo-strip__inner {
    justify-content: center;
  }

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

  .cases-hero {
    height: 240px;
  }

  .cases-grid {
    grid-template-columns: 1fr;
  }
  body { background-size: 900px auto; background-position: center -60px; }
}

@media (max-width: 420px) {
  .container {
    width: min(var(--container), calc(100% - 32px));
  }

  .hero {
    min-height: 100vh;
  }
  body { background-size: 700px auto; background-position: center -40px; }

  .newsletter {
    flex-direction: column;
    align-items: stretch;
  }
}


.text-design-bold {
    font-family: 'Pacifico', cursive;
    color: #ff3b8d;           /* pink color */
    font-size: 50px;          /* slightly bigger than text */
    font-weight: normal;
    display: inline-block;
    transform: rotate(-3deg); /* slight handwritten tilt */
    margin: 0 4px;
}
 

.contact-form__wrap {
  /*! max-width: 520px; */
  /*! margin: auto; */
  padding: 40px;
  border: 2px solid #ffd1e8;
  border-radius: 5px;
  background: #fff;
  width: 66%;
}

.form-row {
  margin-bottom: 22px;
}

.form-row--2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.form-field {
  position: relative;
}

.form-field input,
.form-field textarea {
  width: 100%;
  padding: 18px 16px;
  border: 1.8px solid #ffb6d9;
  border-radius: 6px;
  background: transparent;
  font-size: 14px;
  outline: none;
}

.form-field textarea {
  resize: none;
}

/* Floating label */
.form-field label {
  position: absolute;
  top: 50%;
  left: 14px;
  transform: translateY(-50%);
  font-size: 12px;
  color: #b5b5b5;
  pointer-events: none;
  transition: 0.3s ease;
  background: #fff;
  padding: 0 6px;
}

.form-field textarea + label {
  top: 18px;
  transform: none;
}

/* Move label up */
.form-field input:focus + label,
.form-field input:not(:placeholder-shown) + label,
.form-field textarea:focus + label,
.form-field textarea:not(:placeholder-shown) + label {
  top: -7px;
  font-size: 10px;
  color: #ff4fa3;
}

/* Submit button */
.submit-btn {
  background: #ff4fa3;
  color: #fff;
  border: none;
  padding: 12px 32px;
  border-radius: 4px;
  font-weight: 600;
  letter-spacing: 1px;
  cursor: pointer;
  float: right;
}

.submit-btn:hover {
  background: #e84393;
}
