/*
Theme Name: Cosmic Cat Creatives
Theme URI: https://cosmiccatcreatives.com
Author: GIGI 
Author URI: https://cosmiccatcreatives.com
Description: Custom website theme for Cosmic Cat Creatives
Version: 2.2.1
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: cosmic-cat-creatives
Tags: portfolio, one-page, custom-colors, custom-menu, full-width-template
*/

@font-face {
  font-family: 'Panton';
  src: url('fonts/Panton_Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* =============================================
   CSS VARIABLES
   ============================================= */
:root {
  --brand-blue: #5270ff;
  --brand-blue-dark: #3a5ae8;
  --white: #ffffff;
  --black: #000000;
  --white-70: rgba(255,255,255,0.7);
  --white-80: rgba(255,255,255,0.8);
  --white-10: rgba(255,255,255,0.1);
  --white-20: rgba(255,255,255,0.2);
  --white-60: rgba(255,255,255,0.6);
  --blue-20: rgba(91,116,242,0.2);
  --font-main: 'Panton', 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
  --font-body: 'Poppins', 'Helvetica Neue', Arial, sans-serif;
  --font-ui: 'Poppins', 'Helvetica Neue', Arial, sans-serif;
  --brand-pink: #F20F7F;
  --brand-orange: #FF914D;
  --brand-yellow: #FFBD59;
}

/* =============================================
   RESET & BASE
   ============================================= */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  background-color: var(--brand-blue);
  color: var(--white);
  overflow-x: hidden;
  min-height: 100vh;
}

/* Headings — Panton Bold */
h1, h2, h3, h4, h5, h6,
.hero-title,
.section-title,
.about-title,
.cta-title,
.service-title,
.approach-step-title,
.error-404-number {
  font-family: var(--font-main);
  font-weight: 700;
}

/* Subheadings / eyebrows / UI labels — Poppins SemiBold */
.section-eyebrow,
.hero-eyebrow,
.about-eyebrow,
.work-eyebrow,
.blog-eyebrow,
.approach-eyebrow,
.cta-eyebrow,
.service-number,
.blog-card-title,
.blog-card-title a,
.blog-card-category,
.blog-card-link,
.portfolio-item-name,
.portfolio-item-cat,
button,
.btn-primary,
.btn-outline,
.btn-quiz,
.btn-cta,
.main-navigation ul li a,
.form-group label {
  font-family: var(--font-ui);
  font-weight: 600;
}

/* Section descriptions — Poppins SemiBold */
.section-description,
.approach-desc,
.work-section-desc {
  font-family: var(--font-body);
  font-weight: 500;
}

/* Body text — Poppins Regular */
.hero-description,
.service-desc,
.about-text,
.blog-card-excerpt,
.post-card-excerpt,
.approach-step-desc,
.cta-text,
p {
  font-family: var(--font-body);
  font-weight: 400;
}

a {
  color: inherit;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

a:hover {
  opacity: 0.7;
}

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

button {
  cursor: pointer;
  border: none;
  font-family: var(--font-ui);
}

/* =============================================
   LAYOUT UTILITIES
   ============================================= */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* =============================================
   NAVIGATION
   ============================================= */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background-color: rgba(91,116,242,0.8);
  border-bottom: 1px solid var(--white-10);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  max-width: 1280px;
  margin: 0 auto;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--white);
}

.logo-badge {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  flex-shrink: 0;
}

.logo-text h1 {
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: 0.05em;
  line-height: 1;
}

.logo-text span {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: var(--white-70);
}

/* Primary Navigation */
.main-navigation {
  display: none;
}

.main-navigation ul {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.main-navigation ul li a {
  font-family: var(--font-ui);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
  color: var(--white);
  text-decoration: none;
  transition: color 0.2s ease;
}

.main-navigation ul li a:hover {
  color: var(--white-70);
  opacity: 1;
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: all 0.3s ease;
}

/* Mobile Nav Open State */
.mobile-nav {
  display: none;
  background: var(--brand-blue);
  border-top: 1px solid var(--white-10);
  padding: 1.5rem;
}

.mobile-nav.is-open {
  display: block;
}

.mobile-nav ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.mobile-nav ul li a {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
  color: var(--white);
}

@media (min-width: 768px) {
  .main-navigation {
    display: block;
  }
  .menu-toggle {
    display: none;
  }
  .mobile-nav {
    display: none !important;
  }
}

/* =============================================
   HEADER — WHITE VARIANT (inner pages)
   ============================================= */
.single .site-header,
.page .site-header,
.single-project .site-header {
  background-color: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(91, 116, 242, 0.12);
}

.single .site-logo,
.page .site-logo,
.single-project .site-logo {
  color: var(--brand-blue);
}

.single .logo-badge,
.page .logo-badge,
.single-project .logo-badge {
  border-color: var(--brand-blue);
  color: var(--brand-blue);
}

.single .logo-text span,
.page .logo-text span,
.single-project .logo-text span {
  color: rgba(91, 116, 242, 0.55);
}

.single .main-navigation ul li a,
.page .main-navigation ul li a,
.single-project .main-navigation ul li a {
  color: var(--brand-blue);
}

.single .main-navigation ul li a:hover,
.page .main-navigation ul li a:hover,
.single-project .main-navigation ul li a:hover {
  color: rgba(91, 116, 242, 0.55);
}

.single .menu-toggle span,
.page .menu-toggle span,
.single-project .menu-toggle span {
  background: var(--brand-blue);
}

.single .mobile-nav,
.page .mobile-nav,
.single-project .mobile-nav {
  background: #ffffff;
  border-top: 1px solid rgba(91, 116, 242, 0.1);
}

.single .mobile-nav ul li a,
.page .mobile-nav ul li a,
.single-project .mobile-nav ul li a {
  color: var(--brand-blue);
}

/* =============================================
   HERO SECTION
   ============================================= */
.hero-section {
  position: relative;
  padding: 5.5rem 1.5rem 3.5rem;
  overflow: hidden;
}

.hero-bg-circles {
  position: absolute;
  inset: 0;
  opacity: 0.1;
  pointer-events: none;
}

.hero-bg-circles .circle-1 {
  position: absolute;
  top: 5rem;
  left: 2.5rem;
  width: 18rem;
  height: 18rem;
  border-radius: 50%;
  border: 1px solid var(--white);
}

.hero-bg-circles .circle-2 {
  position: absolute;
  bottom: 2.5rem;
  right: 2.5rem;
  width: 24rem;
  height: 24rem;
  border-radius: 50%;
  border: 1px solid var(--white);
}

.hero-inner-placeholder {

}

.hero-eyebrow {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.4em;
  color: var(--white-70);
  margin-bottom: 1.5rem;
}

.hero-title {
  font-size: clamp(2rem, 5.5vw, 4rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
  padding-top: 0.15em; /* prevent top of first line being clipped by overflow:hidden */
}

.hero-description {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--white-80);
  max-width: 34rem;
  line-height: 1.75;
  letter-spacing: 0.01em;
  margin-bottom: 1.75rem;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.btn-primary {
  background: var(--white);
  color: var(--brand-blue);
  padding: 0.8rem 1.75rem;
  border-radius: 9999px;
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  transition: transform 0.2s ease;
  display: inline-block;
}

.btn-primary:hover {
  transform: scale(1.05);
  opacity: 1;
  color: var(--brand-blue);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  padding: 0.8rem 1.75rem;
  border-radius: 9999px;
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border: 1px solid rgba(255,255,255,0.5);
  transition: all 0.2s ease;
  display: inline-block;
}

.btn-outline:hover {
  background: var(--white);
  color: var(--brand-blue);
  opacity: 1;
}

.hero-visual-placeholder {
  
}

.hero-circle-badge {
  width: min(420px, 80vw);
  height: min(420px, 80vw);
  border-radius: 50%;
  border: 12px solid var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--brand-blue);
  box-shadow: 0 25px 50px rgba(0,0,0,0.3);
}

.hero-circle-badge .badge-text {
  text-align: center;
  line-height: 1;
}

.hero-circle-badge .badge-text span {
  display: block;
  font-size: clamp(3rem, 8vw, 5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}


/* =============================================
   SERVICES SECTION
   ============================================= */
.services-section {
  background: var(--white);
  color: var(--brand-blue);
  padding: 4.5rem 1.5rem;
}

.section-header {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: 3rem;
}

.section-eyebrow {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.4em;
  font-weight: 700;
  opacity: 0.7;
}

.section-title {
  font-size: clamp(1.9rem, 4.5vw, 3rem);
  color: var(--brand-blue);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
  font-family: var(--font-main);
}

/* Ensure JS-injected char spans inherit Panton Bold */
.section-title .section-title-char {
  font-family: inherit;
  font-weight: inherit;
}

.section-description {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  opacity: 0.75;
  line-height: 1.85;
  letter-spacing: 0.01em;
  max-width: 36rem;
}

.services-grid {
  display: grid;
  gap: 1.5rem;
}

.service-card {
  border-radius: 1.25rem;
  border: 1px solid var(--blue-20);
  padding: 1.5rem;
  transition: all 0.3s ease;
  cursor: default;
}

.service-card:hover {
  border-color: var(--brand-blue);
}

.service-number {
  font-size: 2.5rem;
  font-weight: 700;
  opacity: 0.2;
  margin-bottom: 1.25rem;
  line-height: 1;
  transition: opacity 0.3s ease;
}

/* service-card:hover service-number effect removed */

.service-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.service-desc {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1.8;
  letter-spacing: 0.01em;
  opacity: 0.75;
}

@media (min-width: 768px) {
  .section-header {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
  }
  .services-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 1280px) {
  .services-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* =============================================
   FEATURED WORK SECTION
   ============================================= */
.work-section {
  background: #ffffff;
  color: var(--brand-blue);
  padding: 4.5rem 1.5rem;
}

.work-section .section-eyebrow {
  color: #999999;
}

.work-grid {
  display: grid;
  gap: 2rem;
  margin-top: 4rem;
}

.work-card {
  border-radius: 2rem;
  overflow: hidden;
  background: rgba(255,255,255,0.1);
  border: 1px solid var(--white-10);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.work-card-image {
  height: 20rem;
  background: linear-gradient(135deg, rgba(255,255,255,0.2), transparent);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.work-card-image::before {
  content: '';
  position: absolute;
  width: 16rem;
  height: 16rem;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 50%;
}

/* If work card has a featured image */
.work-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}

.work-card-title {
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
  padding: 0 1.5rem;
  position: relative;
  z-index: 1;
}

.work-card-body {
  padding: 2rem;
}

.work-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.work-card-category {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: var(--white-60);
}

.work-card-arrow {
  color: var(--white-60);
  font-size: 1.2rem;
}

.work-card-excerpt {
  font-family: var(--font-body);
  font-size: 0.975rem;
  font-weight: 400;
  color: var(--white-80);
  line-height: 1.8;
  letter-spacing: 0.01em;
}

@media (min-width: 1024px) {
  .work-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* =============================================
   ABOUT SECTION
   ============================================= */
.about-section {
  background: var(--white);
  color: var(--brand-blue);
  padding: 4.5rem 1.5rem;
}

.about-inner {
  display: grid;
  gap: 3rem;
  align-items: center;
}

.about-eyebrow {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.4em;
  font-weight: 700;
  opacity: 0.7;
  margin-bottom: 1rem;
}

.about-title {
  font-size: clamp(1.9rem, 4.5vw, 3rem);
  font-weight: 700;
  line-height: 1;
  margin-bottom: 2rem;
}

.about-text {
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-weight: 400;
  opacity: 0.75;
  line-height: 1.85;
  letter-spacing: 0.01em;
  margin-bottom: 1.5rem;
}

.about-visual {
  display: flex;
  justify-content: center;
}

.about-stat-circle {
  aspect-ratio: 1;
  width: min(380px, 80vw);
  border-radius: 50%;
  border: 14px solid var(--brand-pink);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.5rem;
}

.about-stat-circle .stat-number {
  font-size: clamp(3rem, 7vw, 4.5rem);
  font-weight: 700;
  line-height: 1;
  text-align: center;
}

.about-stat-circle .stat-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-weight: 700;
  margin-top: 1rem;
  text-align: center;
}

@media (min-width: 1024px) {
  .about-inner {
    grid-template-columns: 1fr 1fr;
  }
}

/* =============================================
   CTA SECTION
   ============================================= */
.cta-section {
  padding: 4rem 1.5rem 5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  background: var(--brand-blue);
}



.cta-bg-circle {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 700px;
  height: 700px;
  border-radius: 50%;
  border: 1px solid var(--white);
  opacity: 0.1;
  pointer-events: none;
}

.cta-inner {
  position: relative;
  max-width: 56rem;
  margin: 0 auto;
}

.cta-eyebrow {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.4em;
  color: var(--white-70);
  margin-bottom: 1.5rem;
}

.cta-title {
  font-size: clamp(2.2rem, 6vw, 4rem);
  font-weight: 700;
  line-height: 0.95;
  margin-bottom: 2rem;
}

.cta-text {
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--white-80);
  line-height: 1.85;
  letter-spacing: 0.01em;
  margin-bottom: 2.5rem;
  max-width: 40rem;
  margin-left: auto;
  margin-right: auto;
}

.btn-cta {
  background: var(--white);
  color: var(--brand-blue);
  padding: 1rem 2.25rem;
  border-radius: 9999px;
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  display: inline-block;
  transition: transform 0.2s ease;
}

.btn-cta:hover {
  transform: scale(1.05);
  opacity: 1;
  color: var(--brand-blue);
}

/* =============================================
   FOOTER
   ============================================= */
.site-footer {
  background: var(--brand-blue);
  border-top: 1px solid var(--white-10);
  padding: 2.5rem 1.5rem;
  color: var(--white-60);
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  font-size: 0.875rem;
}

.footer-copyright {
  color: var(--white-60);
  font-size: 0.8rem;
}

@media (min-width: 768px) {
  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

/* =============================================
   HERO — MOBILE: badge appears above content
   ============================================= */
.hero-inner {
  position: relative;
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  gap: 4rem;
  align-items: center;
}

/* On mobile: visual first, content second */
.hero-visual {
  order: -1;
  display: flex;
  justify-content: center;
}

@media (min-width: 1024px) {
  /*
    2-column grid. .hero-visual height is set by JS to match the
    bottom of .hero-title exactly (see alignHeroVisual in main.js).
    align-items:flex-end pushes the badge to the bottom of that height.
  */
  .hero-inner {
    grid-template-columns: 55fr 45fr;
    align-items: start;
    gap: 2rem;
  }

  .hero-content {
    order: 0;
  }

  .hero-visual {
    order: 1;
    display: flex;
    justify-content: flex-end;
    align-items: center; /* badge centered against full content height */
  }
}

/* =============================================
   QUIZ CTA BUTTON
   ============================================= */
.btn-quiz {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: transparent;
  color: var(--white);
  padding: 1rem 0;
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-bottom: 1px solid rgba(255,255,255,0.4);
  transition: border-color 0.2s ease, opacity 0.2s ease;
}

.btn-quiz:hover {
  border-color: var(--white);
  opacity: 1;
}

/* =============================================
   CTA CONTACT FORM (embedded inside CTA section)
   ============================================= */
.cta-form-wrap {
  margin-top: 3rem;
  width: 100%;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 1.5rem;
  padding: 2.5rem 2rem;
}

.cta-form-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--white-60);
  margin-bottom: 1.5rem;
  text-align: center;
}

.ccc-contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-row {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .form-row-2 {
    grid-template-columns: 1fr 1fr;
  }
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group label {
  font-family: var(--font-ui);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-weight: 700;
  color: var(--white-60);
}

.form-group input,
.form-group select,
.form-group textarea {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 0.75rem;
  padding: 0.875rem 1rem;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.975rem;
  font-weight: 400;
  letter-spacing: 0.01em;
  width: 100%;
  transition: border-color 0.2s ease, background 0.2s ease;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}

.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,0.5)' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 1rem;
  padding-right: 2.5rem;
  cursor: pointer;
}

.form-group select option {
  background: var(--brand-blue);
  color: var(--white);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(255,255,255,0.25);
  font-weight: 400;
  font-style: italic;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: rgba(255,255,255,0.55);
  background: rgba(255,255,255,0.15);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.btn-form-submit {
  align-self: center;
  margin-top: 0.5rem;
}

.ccc-notice {
  padding: 0.875rem 1.25rem;
  border-radius: 0.75rem;
  font-size: 0.9rem;
  font-weight: 600;
  text-align: center;
  margin-bottom: 1rem;
}

.ccc-notice--success {
  background: rgba(72, 199, 142, 0.15);
  border: 1px solid rgba(72, 199, 142, 0.45);
  color: #a8f0cb;
}

.ccc-notice--error {
  background: rgba(255, 90, 90, 0.15);
  border: 1px solid rgba(255, 90, 90, 0.45);
  color: #ffb3b3;
}

/* WordPress SCREEN SPECIFIC */
.wp-caption { max-width: 100%; }

.wp-caption-text {
  font-size: 0.85rem;
  opacity: 0.7;
  margin-top: 0.5rem;
}

.alignleft { float: left; margin-right: 1.5rem; }
.alignright { float: right; margin-left: 1.5rem; }
.aligncenter { display: block; margin: 0 auto; }

/* Screen reader text */
.screen-reader-text {
  clip: rect(1px, 1px, 1px, 1px);
  position: absolute !important;
  height: 1px;
  width: 1px;
  overflow: hidden;
}

/* Skip link */
.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
}
.skip-link:focus {
  left: 1rem;
  top: 1rem;
  z-index: 9999;
  background: var(--white);
  color: var(--brand-blue);
  padding: 0.5rem 1rem;
  border-radius: 4px;
}

/* =============================================
   LOGO BADGE — IMAGE VARIANT
   ============================================= */
.logo-badge--image {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  overflow: hidden;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0; /* hide any fallback text */
}

.logo-badge--image img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  display: block;
}

.logo-badge--text {
  /* original circle badge with CCC text — unchanged */
}

/* =============================================
   HERO — LOGO BADGE (replaces circle badge)
   ============================================= */
@keyframes hero-badge-float {
  0%   { transform: translateY(0px);    }
  50%  { transform: translateY(-14px);  }
  100% { transform: translateY(0px);    }
}

.hero-logo-badge {
  width: min(380px, 80vw);
  height: min(380px, 80vw);
  border-radius: 50%;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  box-shadow: none;
  overflow: hidden;
  animation: hero-badge-float 4s ease-in-out infinite;
  will-change: transform;
}

.hero-logo-badge img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* Also float the fallback text badge */
.hero-circle-badge {
  animation: hero-badge-float 4s ease-in-out infinite;
  will-change: transform;
}

/* work-section white bg styles moved to portfolio grid section below */

/* =============================================
   FOOTER SOCIAL — ICON BUTTONS
   ============================================= */
.footer-social {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.footer-social-link {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--white-60);
  transition: color 0.2s ease;
  text-decoration: none;
}

.footer-social-link:hover {
  color: var(--white);
  opacity: 1;
}

.footer-social-link svg {
  flex-shrink: 0;
}

.footer-social-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* On very small screens, hide labels, show icons only */
@media (max-width: 480px) {
  .footer-social-label {
    display: none;
  }
}

/* =============================================
   POSTS PAGE — WHITE BACKGROUND
   ============================================= */
.posts-page-wrap {
  background: #ffffff;
  color: #111111;
  min-height: 100vh;
}

.post-card {
  display: grid;
  gap: 2rem;
  margin-bottom: 3rem;
  border-bottom: 1px solid #eeeeee;
  padding-bottom: 3rem;
  max-width: 860px;
}

@media (min-width: 640px) {
  .post-card.has-post-thumbnail {
    grid-template-columns: 280px 1fr;
    align-items: start;
  }
}

.post-card-thumb {
  display: block;
  border-radius: 1rem;
  overflow: hidden;
  flex-shrink: 0;
}

.post-card-thumb img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.post-card-thumb:hover img {
  transform: scale(1.03);
}

.post-card-body {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.post-card-date {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: #888888;
  font-weight: 600;
}

.post-card-title {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: #111111;
}

.post-card-title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.post-card-title a:hover {
  color: var(--brand-blue);
  opacity: 1;
}

.post-card-excerpt {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 400;
  color: #444444;
  line-height: 1.85;
  letter-spacing: 0.01em;
}

.post-read-more {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--brand-blue);
  border-bottom: 1px solid var(--brand-blue);
  padding-bottom: 2px;
  text-decoration: none;
  transition: opacity 0.2s ease;
  width: fit-content;
}

.post-read-more:hover {
  opacity: 0.7;
}

.posts-none {
  color: #888888;
  font-size: 1rem;
}

/* Override btn-outline color on white posts page */
.posts-page-wrap .btn-outline {
  color: var(--brand-blue);
  border-color: var(--brand-blue);
}

.posts-page-wrap .btn-outline:hover {
  background: var(--brand-blue);
  color: #ffffff;
}

/* =============================================
   FIX 1: FOOTER MENU LINKS
   ============================================= */
.footer-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.footer-menu li a {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  transition: color 0.2s ease;
}

.footer-menu li a:hover {
  color: #ffffff;
}

/* =============================================
   FIX 5: MOBILE VISIBILITY IMPROVEMENTS
   ============================================= */

/* Ensure hero section doesn't clip content on small screens */
@media (max-width: 767px) {
  .hero-section {
    padding: 7rem 1.25rem 2.5rem;
  }

  .hero-inner {
    gap: 2.5rem;
  }

  .hero-logo-badge {
    width: min(260px, 70vw);
    height: min(260px, 70vw);
  }

  .hero-logo-badge img {
    width: 100%;
    height: 100%;
  }

  .hero-title {
    font-size: clamp(1.75rem, 8vw, 2.5rem);
    line-height: 1;
    padding-top: 0.15em;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .btn-primary,
  .btn-outline {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  /* Services section on mobile */
  .services-section {
    padding: 4rem 1.25rem;
  }

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

  /* Work section on mobile */
  .work-section {
    padding: 4rem 1.25rem;
  }

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

  /* About section on mobile */
  .about-section {
    padding: 4rem 1.25rem;
  }

  /* Blog section on mobile */
  .blog-section {
    padding: 4rem 1.25rem;
  }

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

  /* Portfolio grid on mobile — single column */
  .portfolio-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
    margin-top: 2rem;
  }

  /* CTA section on mobile */
  .cta-section {
    padding: 0 1.25rem 4rem;
  }

  /* Section titles on mobile */
  .section-title {
    font-size: clamp(2rem, 9vw, 3rem);
  }

  /* Footer on mobile */
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
  }

  .footer-menu {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 1rem;
  }

  /* Prevent horizontal overflow on posts page */
  .post-card {
    grid-template-columns: 1fr;
  }

  .posts-page-wrap {
    padding: 6rem 1.25rem 3rem;
  }

  /* Form on mobile */
  .form-row-2 {
    grid-template-columns: 1fr;
  }
}



/* Single post / page white area handled via inline styles in single.php / page.php */


/* =============================================
   PORTFOLIO GRID (replaces work-card layout)
   ============================================= */

.work-section .section-eyebrow,
.work-eyebrow {
  color: #999999 !important;
}

.work-section .section-title,
.work-title {
  color: var(--brand-blue) !important;
}

.work-section-desc {
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 600;
  color: #666666;
  line-height: 1.8;
  max-width: 32rem;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem 1.5rem;
  margin-top: 3rem;
}

@media (min-width: 640px) {
  .portfolio-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1024px) {
  .portfolio-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem 2rem;
  }
}

/* Each tile: logo on top, accent bar on bottom */
.portfolio-item {
  position: relative;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.portfolio-item--placeholder {
  cursor: default;
}

/* The visual card area — logo + hover image swap */
.portfolio-logo-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #ffffff;
  border: none;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

/* Logo image — fills card completely */
.portfolio-logo-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  z-index: 2;
  transition: opacity 0.3s ease;
}

/* Hover image — fills the card, hidden by default */
.portfolio-hover-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  z-index: 1;
  transition: opacity 0.35s ease, transform 0.45s ease;
  transform: scale(1.04);
}

.portfolio-item:hover .portfolio-logo-img {
  opacity: 0;
}

.portfolio-item:hover .portfolio-hover-img {
  opacity: 1;
  transform: scale(1);
}

/* Text fallback when no logo image */
.portfolio-logo-text {
  font-family: var(--font-ui);
  font-size: clamp(0.85rem, 2.5vw, 1.1rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--brand-blue);
  opacity: 0.25;
  position: relative;
  z-index: 2;
  transition: opacity 0.3s ease;
}

.portfolio-item:hover .portfolio-logo-text {
  opacity: 0;
}

/* Accent bar removed — client images already include color bars */

/* Meta row below bar (hidden — bar is the only decoration) */
.portfolio-item-meta {
  display: none;
}

.portfolio-item-arrow {
  display: none;
}


/* =============================================
   BLOG SECTION
   ============================================= */
.blog-section {
  background: #ffffff;
  color: var(--brand-blue);
  padding: 4.5rem 1.5rem;
  border-top: 1px solid rgba(91, 116, 242, 0.1);
}

.blog-section-header {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: 2.75rem;
  align-items: flex-start;
}

.blog-eyebrow {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.4em;
  font-weight: 700;
  color: #999999 !important;
  margin-bottom: 0.5rem;
}

.blog-section-title {
  color: var(--brand-blue) !important;
  font-family: var(--font-main);
  font-weight: 700;
}

/* Override btn-outline colours on white blog header */
.blog-btn-outline {
  color: var(--brand-blue) !important;
  border-color: rgba(91, 116, 242, 0.4) !important;
  white-space: nowrap;
  align-self: flex-start;
}

.blog-btn-outline:hover {
  background: var(--brand-blue) !important;
  color: #ffffff !important;
}

@media (min-width: 768px) {
  .blog-section-header {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
  }
  .blog-btn-outline {
    align-self: auto;
    flex-shrink: 0;
  }
}

.blog-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 768px) {
  .blog-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.blog-card {
  display: flex;
  flex-direction: column;
  border-radius: 1.5rem;
  overflow: hidden;
  border: 1px solid rgba(91, 116, 242, 0.12);
  background: #fafafa;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.blog-card:hover {
  box-shadow: 0 12px 40px rgba(91, 116, 242, 0.12);
  transform: translateY(-3px);
}

.blog-card-thumb {
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  flex-shrink: 0;
}

.blog-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.blog-card:hover .blog-card-img {
  transform: scale(1.04);
}

.blog-card-body {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.75rem;
  flex: 1;
}

.blog-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.blog-card-category {
  font-family: var(--font-ui);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-weight: 700;
  color: var(--brand-blue);
  opacity: 0.6;
}

.blog-card-date {
  font-family: var(--font-body);
  font-size: 0.7rem;
  color: #aaaaaa;
  white-space: nowrap;
}

.blog-card-title {
  font-family: var(--font-ui);
  font-size: clamp(0.9rem, 2vw, 1.05rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--brand-blue);
  flex: 1;
}

.blog-card-title a {
  color: inherit;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.blog-card-title a:hover {
  opacity: 0.7;
}

.blog-card-excerpt {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 400;
  color: #555555;
  line-height: 1.8;
  letter-spacing: 0.01em;
}

.blog-card-link {
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--brand-blue);
  text-decoration: none;
  border-bottom: 1px solid rgba(91, 116, 242, 0.3);
  padding-bottom: 2px;
  width: fit-content;
  margin-top: auto;
  transition: opacity 0.2s ease;
}

.blog-card-link:hover {
  opacity: 0.6;
}


/* =============================================
   REVIEWS SECTION — PDF card style
   Blue background, circular avatars, pink quotes
   ============================================= */

/* =============================================
   REVIEWS SECTION — sleek horizontal strip
   ============================================= */
.reviews-section {
  background: var(--brand-blue);
  padding: 4.5rem 0;
  position: relative;
  overflow: hidden;
  border-top: 1px solid rgba(255,255,255,0.08);
}

/* Subtle noise texture overlay */
.reviews-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(ellipse at 20% 50%, rgba(242,15,127,0.07) 0%, transparent 55%),
                    radial-gradient(ellipse at 80% 50%, rgba(255,145,77,0.05) 0%, transparent 55%);
  pointer-events: none;
  z-index: 0;
}

.reviews-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
  position: relative;
  z-index: 1;
}

/* Header — left-aligned, small */
.reviews-header {
  margin-bottom: 2.5rem;
}

.reviews-eyebrow {
  font-family: var(--font-ui);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.38em;
  font-weight: 700;
  color: rgba(255,255,255,0.6);
  margin-bottom: 0.5rem;
  display: block;
}

.reviews-title {
  font-family: var(--font-main);
  font-size: clamp(1.9rem, 4.5vw, 3rem);
  font-weight: 700;
  color: #ffffff;
  line-height: 0.95;
  letter-spacing: -0.02em;
}

/* Viewport clips overflow */
.reviews-viewport {
  overflow: hidden;
  width: 100%;
}

/* Track scrolls horizontally */
.reviews-track {
  display: flex;
  gap: 1rem;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
  align-items: stretch;
}

/* Cards — slim horizontal pill */
.review-card {
  flex: 0 0 calc((100% - 2rem) / 3);
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 0.875rem;
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  box-sizing: border-box;
  transition: background 0.25s ease, border-color 0.25s ease;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.review-card:hover {
  background: rgba(255,255,255,0.11);
  border-color: rgba(255,255,255,0.22);
  transform: none;
  box-shadow: none;
}

/* Top row: avatar + name + stars inline */
.review-card-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
}

.review-card-right {
  width: 100%;
}

/* Stars above the quote */
.review-stars {
  color: var(--brand-yellow);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  flex-shrink: 0;
  margin-left: auto;
}

/* Circular avatar — compact */
.review-avatar-wrap {
  width: 36px;
  height: 36px;
  min-width: 36px;
  border-radius: 50%;
  overflow: hidden;
  border: 1.5px solid rgba(255,255,255,0.3);
  background: #4454E8;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  flex-shrink: 0;
  box-shadow: none;
}

.review-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 50%;
}

.review-avatar-fallback {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0.05) 100%);
  color: rgba(255,255,255,0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-ui);
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  border-radius: 50%;
  position: absolute;
  inset: 0;
}

/* Author name — white, compact */
.review-author-name {
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.9);
  text-decoration: none;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Quote body */
.review-body {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* Quotation marks — small, accent pink */
.review-quote {
  display: none;
}

.review-quote--open {
  margin-right: 0.15em;
}

.review-quote--close {
  margin-left: 0.15em;
}

/* Review text — white, legible */
.review-text {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 400;
  line-height: 1.65;
  color: rgba(255,255,255,0.72);
  border: none;
  margin: 0;
  padding: 0;
  display: inline;
}

/* Controls */
.reviews-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.5rem;
  padding-bottom: 0;
}

/* Pattern strip — remove */
.reviews-pattern-strip {
  display: none;
}

.reviews-arrow {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.25);
  background: transparent;
  color: rgba(255,255,255,0.7);
  font-size: 0.85rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
  flex-shrink: 0;
}

.reviews-arrow:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.5);
  color: #ffffff;
}

.reviews-dots {
  display: flex;
  gap: 0.35rem;
  align-items: center;
}

.reviews-dot {
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 9999px;
  border: none;
  background: rgba(255,255,255,0.25);
  cursor: pointer;
  padding: 0;
  transition: background 0.25s, width 0.25s;
}

.reviews-dot--active {
  background: #ffffff;
  width: 1.5rem;
}

/* Responsive */
@media (max-width: 899px) {
  .review-card { flex: 0 0 calc((100% - 1rem) / 2); }
}
@media (max-width: 599px) {
  .review-card { flex: 0 0 100%; }
  .reviews-track { gap: 0.75rem; }
  .reviews-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
}

/* =============================================
   404 PAGE — WHITE
   ============================================= */
.error-404-wrap {
  background: #ffffff;
  color: var(--brand-blue);
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.error-404-inner {
  padding-top: 10rem;
  padding-bottom: 8rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.error-404-eyebrow {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.4em;
  font-weight: 700;
  color: #aaaaaa;
}

.error-404-number {
  font-family: var(--font-ui);
  font-size: clamp(6rem, 20vw, 14rem);
  font-weight: 700;
  line-height: 1;
  color: var(--brand-blue);
  opacity: 0.08;
  letter-spacing: -0.04em;
  margin: -1rem 0;
}

.error-404-message {
  font-family: var(--font-body);
  font-size: 1.2rem;
  font-weight: 400;
  color: #444444;
  line-height: 1.7;
  max-width: 28rem;
  letter-spacing: 0.01em;
}

.btn-404 {
  display: inline-block;
  background: var(--brand-blue);
  color: #ffffff;
  padding: 1rem 2.25rem;
  border-radius: 9999px;
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  text-decoration: none;
  margin-top: 0.5rem;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.btn-404:hover {
  transform: scale(1.05);
  opacity: 0.9;
}

/* Ensure footer on 404 stays on white bg */
.error-404-wrap ~ .site-footer {
  background: #ffffff;
  border-top-color: rgba(91, 116, 242, 0.12);
}

.error-404-wrap ~ .site-footer .footer-copyright,
.error-404-wrap ~ .site-footer .footer-social-link,
.error-404-wrap ~ .site-footer .footer-social-label,
.error-404-wrap ~ .site-footer .footer-menu li a {
  color: #999999;
}

.error-404-wrap ~ .site-footer .footer-social-link:hover,
.error-404-wrap ~ .site-footer .footer-menu li a:hover {
  color: var(--brand-blue);
}



/* =============================================
   SINGLE PROJECT (CASE STUDY) — WHITE
   ============================================= */
.single-project-wrap {
  background: #ffffff;
  color: #111111;
  min-height: 100vh;
}

.project-hero {
  padding-top: 8rem;
  padding-bottom: 1rem;
  background: #ffffff;
}

.project-hero-inner {
  max-width: 860px;
}

.project-meta-top {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.project-back-link {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-weight: 700;
  color: var(--brand-blue);
  text-decoration: none;
  opacity: 0.6;
  transition: opacity 0.2s ease;
}

.project-back-link:hover {
  opacity: 1;
}

.project-category-badge {
  font-family: var(--font-ui);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-weight: 700;
  color: var(--brand-blue);
  background: rgba(91, 116, 242, 0.1);
  padding: 0.3rem 0.85rem;
  border-radius: 9999px;
}

.project-title {
  font-family: var(--font-main);
  font-size: clamp(2.5rem, 6vw, 3.5rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
  color: #111111;
  margin-bottom: 1rem;
}

.project-date {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 400;
  color: #aaaaaa;
  letter-spacing: 0.04em;
}

.project-featured-image {
  background: #ffffff;
  padding: 0;
  margin-bottom: 4rem;
}

.project-hero-img {
  width: 100%;
  height: auto;
  display: block;
  max-height: 70vh;
  object-fit: cover;
}

.project-content-wrap {
  max-width: 860px;
  padding-bottom: 6rem;
}

.project-content {
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-weight: 400;
  line-height: 1.85;
  color: #333333;
  letter-spacing: 0.01em;
}

.project-content h2,
.project-content h3,
.project-content h4 {
  font-family: var(--font-ui);
  font-weight: 700;
  color: #111111;
  letter-spacing: -0.01em;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

.project-content h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
.project-content h3 { font-size: clamp(1.2rem, 2.5vw, 1.5rem); }

.project-content p {
  margin-bottom: 1.5rem;
}

.project-content img {
  border-radius: 1rem;
  margin: 2rem 0;
  width: 100%;
  height: auto;
}

.project-nav {
  border-top: 1px solid #eeeeee;
  padding: 2.5rem 1.5rem;
  background: #ffffff;
}

.project-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.project-nav-inner a,
.project-nav-prev a,
.project-nav-next a {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
  color: var(--brand-blue);
  text-decoration: none;
  opacity: 0.6;
  transition: opacity 0.2s ease;
}

.project-nav-inner a:hover,
.project-nav-prev a:hover,
.project-nav-next a:hover {
  opacity: 1;
}

.project-nav-all {
  opacity: 0.4 !important;
}

/* Footer is always brand-blue — no overrides needed for inner pages */


/* =============================================
   SINGLE POST (BLOG) — WHITE
   ============================================= */
.single-post-wrap {
  background: #ffffff;
  color: #111111;
  min-height: 100vh;
}

.single-post-header {
  padding-top: 8rem;
  padding-bottom: 3rem;
  background: #ffffff;
}

.single-post-header-inner {
  max-width: 720px;
}

.single-post-meta-top {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.single-post-category {
  font-family: var(--font-ui);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-weight: 700;
  color: var(--brand-blue);
  background: rgba(91, 116, 242, 0.1);
  padding: 0.3rem 0.85rem;
  border-radius: 9999px;
}

.single-post-date {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 400;
  color: #aaaaaa;
}

.single-post-title {
  font-family: var(--font-ui);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: #111111;
  margin-bottom: 1rem;
}

.single-post-byline {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 400;
  color: #aaaaaa;
}

.single-post-thumb {
  background: #f4f4f4;
  margin-bottom: 4rem;
}

.single-post-img {
  width: 100%;
  height: auto;
  max-height: 60vh;
  object-fit: cover;
  display: block;
}

.single-post-body {
  max-width: 720px;
  padding-bottom: 6rem;
}

.single-post-content {
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-weight: 400;
  line-height: 1.9;
  color: #333333;
  letter-spacing: 0.01em;
}

.single-post-content h2,
.single-post-content h3,
.single-post-content h4 {
  font-family: var(--font-ui);
  font-weight: 700;
  color: #111111;
  letter-spacing: -0.01em;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

.single-post-content h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); }
.single-post-content h3 { font-size: clamp(1.2rem, 2.5vw, 1.5rem); }

.single-post-content p {
  margin-bottom: 1.5rem;
}

.single-post-content img {
  border-radius: 1rem;
  margin: 2rem 0;
  width: 100%;
  height: auto;
}

.single-post-nav {
  border-top: 1px solid #eeeeee;
  padding: 2.5rem 1.5rem;
  background: #ffffff;
}

.single-post-nav-inner {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.single-post-nav-prev a,
.single-post-nav-next a {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
  color: var(--brand-blue);
  text-decoration: none;
  opacity: 0.6;
  transition: opacity 0.2s ease;
}

.single-post-nav-prev a:hover,
.single-post-nav-next a:hover {
  opacity: 1;
}
/* =============================================
   CONTACT FORM 7 — THEME STYLES
   ============================================= */

.wpcf7 {
    width: 100%;
}

.wpcf7 .wpcf7-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

/* Text, email, tel, url inputs */
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 input[type="url"],
.wpcf7 textarea,
.wpcf7 select {
    width: 100%;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 6px;
    padding: 0.85rem 1rem;
    color: inherit;
    font-family: inherit;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.2s ease;
}

.wpcf7 input[type="text"]:focus,
.wpcf7 input[type="email"]:focus,
.wpcf7 input[type="tel"]:focus,
.wpcf7 input[type="url"]:focus,
.wpcf7 textarea:focus,
.wpcf7 select:focus {
    border-color: rgba(255, 255, 255, 0.7);
}

.wpcf7 input::placeholder,
.wpcf7 textarea::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.wpcf7 textarea {
    resize: vertical;
    min-height: 140px;
}

/* Labels */
.wpcf7 .wpcf7-form-control-wrap {
    display: block;
    width: 100%;
}

/* Submit button — inherits your btn-primary style */
.wpcf7 input[type="submit"] {
    display: inline-block;
    cursor: pointer;
    border: 1px solid #fff;
    padding: 0.85rem 2rem;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    border-radius: 6px;
    background: transparent; 
    color: #fff;
    transition: opacity 0.2s ease;
}

.wpcf7 input[type="submit"]:hover {
    opacity: 0.85;
}

/* Validation messages */
.wpcf7 .wpcf7-not-valid-tip {
    color: #f87171;
    font-size: 0.8rem;
    margin-top: 0.25rem;
    display: block;
}

.wpcf7 .wpcf7-response-output {
    margin-top: 1rem;
    padding: 0.75rem 1rem;
    border-radius: 6px;
    font-size: 0.9rem;
    border: 1px solid rgba(255,255,255,0.2);
}

.wpcf7 .wpcf7-mail-sent-ok {
    border-color: #ffffff;
    color: #4ade80;
}

.wpcf7 .wpcf7-mail-sent-ng,
.wpcf7 .wpcf7-aborted {
    border-color: #f87171;
    color: #f87171;
}


/* =============================================
   MOBILE FIXES — Contact, Latest Thinking, Our Work
   ============================================= */

/* ── 1. Our Work: center the last orphan item ────────────────────────────── */
/* Uses a pseudo-element spacer approach — works for any count */
@media (min-width: 640px) {
  .portfolio-grid::after {
    content: '';
    display: block;
  }

  /* 1 orphan on a 3-col grid: push it to the center column */
  .portfolio-grid .portfolio-item:last-child:nth-child(3n + 1) {
    grid-column: 2 / 3;
  }

  /* 2 orphans: they already fill two columns starting from left — center the pair */
  .portfolio-grid .portfolio-item:nth-last-child(2):nth-child(3n + 1) {
    grid-column: 1 / 2;
  }
}

/* ── 2. Latest Thinking: fix title overflow on mobile ───────────────────── */
@media (max-width: 767px) {
  /* "LATEST THINKING" is 14 chars — at 2.5rem (40px) it wraps mid-word.
     Drop the minimum so the whole phrase fits on one or two clean lines. */
  .blog-section-title,
  .blog-section .section-title {
    font-size: clamp(1.6rem, 7vw, 2.5rem) !important;
    word-break: normal;
    hyphens: none;
    letter-spacing: -0.01em;
  }

  /* Header row stacks cleanly */
  .blog-section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.25rem;
  }

  .blog-btn-outline {
    align-self: flex-start;
    width: auto;
  }

  /* Card titles readable on phone */
  .blog-card-title {
    font-size: clamp(1.05rem, 4vw, 1.25rem);
  }

  .blog-card {
    width: 100%;
    box-sizing: border-box;
  }

  .blog-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

/* ── 3. Contact Section: prevent overflow on mobile ─────────────────────── */
@media (max-width: 767px) {
  /* CTA title won't overflow narrow screens */
  .cta-title {
    font-size: clamp(2rem, 9vw, 3.5rem);
    word-break: break-word;
    hyphens: auto;
    line-height: 1;
  }

  /* Buttons stack vertically and stay within screen */
  .cta-inner .btn-cta {
    display: block;
    width: 100%;
    box-sizing: border-box;
    text-align: center;
    padding: 1.1rem 1.5rem;
    /* Allow long emails to wrap rather than overflow */
    word-break: break-all;
    font-size: 0.72rem;
    letter-spacing: 0.08em;
  }

  /* Add breathing room between the two CTA buttons */
  .cta-inner .btn-cta + .btn-cta {
    margin-top: 0.75rem;
  }

  /* Contact form stays within bounds */
  .cta-form-wrap {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 1.75rem 1.25rem;
  }

  /* Ensure CTA section has safe side padding */
  .cta-section {
    padding: 0 1.25rem 4rem;
    overflow-x: hidden;
  }

  .cta-inner {
    width: 100%;
    box-sizing: border-box;
  }
}


/* =============================================
   DESIGN APPROACH SECTION
   ============================================= */
.approach-section {
  padding: 4.5rem 0;
  position: relative;
  overflow: hidden;
  background-color: #ffffff !important;
  color: #111111;
}

/* Subtle palette accents as background hints */
.approach-section::before {
  content: '';
  position: absolute;
  top: -80px;
  right: -120px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(242,15,127,0.05) 0%, transparent 70%);
  pointer-events: none;
}

.approach-section::after {
  content: '';
  position: absolute;
  bottom: -60px;
  left: -80px;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,145,77,0.04) 0%, transparent 70%);
  pointer-events: none;
}

.approach-eyebrow {
  color: var(--brand-pink);
}

.approach-title {
  color: var(--brand-blue);
  font-family: var(--font-main);
  font-weight: 700;
}

.approach-desc {
  color: rgba(0,0,0,0.55);
  font-family: var(--font-body);
  font-weight: 600;
}

.approach-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: 3.5rem;
  border-radius: 1rem;
  overflow: hidden;
}

.approach-step {
  position: relative;
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: transform 0.3s ease;
}

.approach-step:hover {
  transform: translateY(-4px);
}

/* Per-step accent colors */
.approach-step--1 { background: var(--brand-blue); }
.approach-step--2 { background: var(--brand-pink); }
.approach-step--3 { background: var(--brand-orange); }
.approach-step--4 { background: var(--brand-yellow); }

/* Subtle inner glow accent strip at top */
.approach-step-accent {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: rgba(255,255,255,0.35);
  border-radius: 0;
}

/* Arrow between steps */
.approach-step-arrow {
  position: absolute;
  right: -10px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 0;
  height: 0;
  border-top: 12px solid transparent;
  border-bottom: 12px solid transparent;
  border-left: 16px solid rgba(255,255,255,0.75);
}

.approach-step-title {
  font-family: var(--font-main);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.approach-star {
  font-size: 1rem;
  color: rgba(255,255,255,0.9);
  font-family: Arial, sans-serif;
  font-style: normal;
}

.approach-step-desc {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 400;
  color: rgba(255,255,255,0.9);
  line-height: 1.6;
}

@media (max-width: 900px) {
  .approach-steps {
    grid-template-columns: repeat(2, 1fr);
  }
  .approach-step-arrow {
    display: none;
  }
}

@media (max-width: 560px) {
  .approach-steps {
    grid-template-columns: 1fr;
  }
}

/* =============================================
   SUBTLE PALETTE ACCENTS — SITE-WIDE
   ============================================= */

/* Hero: soft pink glow behind the badge */
.hero-circle-badge {
  box-shadow: 0 0 80px rgba(242,15,127,0.12), 0 0 160px rgba(255,145,77,0.07);
}

/* Services: faint warm accent on card hover border */
.service-card:nth-child(5n+2):hover {
  border-color: rgba(242,15,127,0.4);
}
.service-card:nth-child(5n+3):hover {
  border-color: rgba(255,145,77,0.4);
}
.service-card:nth-child(5n+4):hover {
  border-color: rgba(255,189,89,0.4);
}

/* Section eyebrows: rotate through palette */
.work-eyebrow  { color: var(--brand-orange); }
.blog-eyebrow  { color: var(--brand-yellow); }

/* CTA section: subtle gradient hint */
.cta-section {
  background-image: radial-gradient(ellipse at 80% 50%, rgba(242,15,127,0.06) 0%, transparent 60%),
                    radial-gradient(ellipse at 20% 80%, rgba(255,145,77,0.05) 0%, transparent 50%);
}

/* Blog card link hover */
.blog-card-link:hover {
  color: var(--brand-orange);
}

/* Services section: 5-column grid when 5 cards present */
@media (min-width: 1024px) {
  .services-grid:has(.service-card:nth-child(5)) {
    grid-template-columns: repeat(5, 1fr);
  }
}



/* =============================================
   HERO TITLE — GRADIENT CLIP + GSAP ANIMATION
   ============================================= */

/*
  Each line of the hero title is wrapped in .hero-title-line by JS.
  The gradient sweep is driven by a CSS custom property --gp (0→100%)
  that GSAP animates per line with a stagger.
*/

.hero-title {
  /* override the default white so the clip shows */
  color: transparent !important;
  font-size: clamp(2rem, 5.5vw, 4rem);
}

.hero-title-line {
  display: block;
  position: relative;

  /* clip the text to the gradient */
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;

  /*
    Gradient: starts as the brand blue, sweeps through
    pink → orange → yellow → white as --gp advances.
    The gradient is wider than 100% so the sweep feels
    like a wipe of light across the letters.
  */
  background-image: linear-gradient(
    105deg,
    var(--white)        0%,
    var(--white)        calc(var(--gp, 0%) - 60%),
    var(--brand-yellow) calc(var(--gp, 0%) - 30%),
    var(--brand-orange) calc(var(--gp, 0%) - 10%),
    var(--brand-pink)   calc(var(--gp, 0%) + 10%),
    var(--brand-blue)   calc(var(--gp, 0%) + 35%),
    var(--brand-blue)   100%
  );

  background-size: 200% 100%;
  will-change: background-image;

  /* start invisible — GSAP drives the reveal */
  opacity: 0;
  transform: translateY(24px);
}


/* =============================================
   V5 COHESION FIXES — SPACING, ALIGNMENT, POLISH
   ============================================= */

/* ── Hero: tighter eyebrow spacing ── */
.hero-eyebrow {
  margin-bottom: 1.25rem;
  letter-spacing: 0.35em;
}

/* ── Hero: description tighter line-height on large screens ── */
@media (min-width: 1024px) {
  .hero-description {
    font-size: 0.9rem;
    line-height: 1.7;
    max-width: 28rem;
    margin-bottom: 1.5rem;
  }
}

/* ── Hero buttons: consistent sizing and alignment ── */
.hero-buttons {
  align-items: center;
  gap: 0.875rem;
}

.btn-primary,
.btn-outline {
  padding: 0.8rem 1.6rem;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}

.btn-quiz {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  padding: 0.8rem 0;
}

/* ── Section rhythm: consistent padding across all sections ── */
/* padding set per-section above */

/* ── Section headers: consistent bottom margin ── */
.section-header {
  margin-bottom: 2.75rem;
}

/* ── Section eyebrow: unified style ── */
.section-eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.38em;
  margin-bottom: 0.625rem;
}

/* ── Section title: unified sizing ── */
.section-title {
  font-size: clamp(1.9rem, 4.5vw, 3rem);
  line-height: 0.95;
}

/* ── Service cards: consistent border and spacing ── */
.service-card {
  border-radius: 1.25rem;
  padding: 1.5rem 1.5rem;
}

/* ── Service number: tighter baseline alignment ── */
.service-number {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  opacity: 0.45;
  margin-bottom: 1.25rem;
}

.service-title {
  font-size: 1.2rem;
  margin-bottom: 0.625rem;
}

.service-desc {
  font-size: 0.85rem;
  line-height: 1.7;
}

/* ── Portfolio grid: consistent gap ── */
.portfolio-grid {
  gap: 1px;
}

/* ── CTA section: remove excess padding ── */
/* cta padding set above */

/* ── Reviews section: consistent padding ── */
/* reviews padding set above */

/* ── Footer: consistent padding ── */
.site-footer {
  padding-top: 3rem;
  padding-bottom: 3rem;
}

/* ── Desktop section header two-column alignment ── */
@media (min-width: 768px) {
  .section-header {
    align-items: flex-start;
    gap: 2.5rem;
  }

  .section-description {
    font-size: 1rem;
    max-width: 32rem;
  }
}

/* ── About section: visual tightening ── */
.about-title {
  font-size: clamp(1.9rem, 4.5vw, 3rem);
  line-height: 0.95;
  white-space: pre-line;
  margin-bottom: 1.5rem;
}

/* ── Blog cards: consistent min-height ── */
@media (min-width: 768px) {
  .blog-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ── CTA title: tighter line height ── */
.cta-title {
  line-height: 0.95;
  margin-bottom: 2.5rem;
}

/* ── Approach steps: unified spacing ── */
.approach-step {
  padding: 1.5rem 1.5rem;
}

.approach-step-title {
  font-size: 1.2rem;
}

.approach-step-desc {
  font-size: 0.85rem;
  line-height: 1.7;
}

/* ── Hero circle badge: consistent with logo badge ── */
.hero-circle-badge {
  border-width: 10px;
}

/* Respect reduced-motion preference */
@media (prefers-reduced-motion: reduce) {
  .hero-logo-badge,
  .hero-circle-badge {
    animation: none;
  }
}

/* =============================================
   MOBILE HEADER FIXES (max-width: 767px)
   ============================================= */

/* 1. Tighter header padding on mobile so logo has room to breathe */
@media (max-width: 767px) {
  .header-inner {
    padding: 1.1rem 1.25rem 1.1rem 1.5rem;
    gap: 0.5rem;
  }

  .logo-badge {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
  }

  .site-logo {
    min-width: 0;
    flex: 1;
    overflow: hidden;
    gap: 0.6rem;
  }

  .logo-text {
    min-width: 0;
    overflow: hidden;
  }

  .logo-text h1 {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  /* 2. Tagline: two lines on mobile */
  .site-tagline {
    display: block;
  }

  .tagline-sep {
    display: none; /* hide the " | " separator on mobile */
  }

  .tagline-line1,
  .tagline-line2 {
    display: block; /* each phrase on its own line */
  }
}

/* On desktop: restore single-line tagline */
@media (min-width: 768px) {
  .tagline-sep {
    display: inline;
  }

  .tagline-line1,
  .tagline-line2 {
    display: inline;
  }
}
