/* =====================================================
   ANAYA THEME — MAIN STYLESHEET
   ===================================================== */

/* ----- CSS Variables ----- */
:root {
  --color-primary: #EDC650;
  --color-primary-2: #EAAB36;
  --color-primary-gradient: radial-gradient(circle,
    #f0e4c2 0%, #ffe499 25%, #e7aa51 55%, #ac7031 100%);
  --color-primary-gradient-hover: radial-gradient(circle,
    #e5b467 0%, #f0e4c2 8%, #e5b467 16%,
    #ac7031 25%, #e7aa51 34%, #e7aa51 42%, #ffe499 50%,
    #e7aa51 58%, #ffe499 67%, #e7aa51 84%, #ac7031 100%);
  --color-primary-gradient-line: linear-gradient(142deg,
    rgba(172, 112, 49, 1) 0%,
    rgba(231, 170, 81, 1) 50%,
    rgba(255, 228, 153, 1) 100%);
  --color-primary-gradient-line-vert: linear-gradient(232deg,
    rgba(172, 112, 49, 1) 0%,
    rgba(231, 170, 81, 1) 50%,
    rgba(255, 228, 153, 1) 100%);
  --color-primary-gradient-line-vert-rev: linear-gradient(52deg,
    rgba(172, 112, 49, 1) 0%,
    rgba(231, 170, 81, 1) 50%,
    rgba(255, 228, 153, 1) 100%);
  --color-primary-dark: #C9941F;
  --color-secondary: #0055FF;
  --color-accent: #0055FF;
  --color-dark: #0f172a;
  --color-text: #334155;
  --color-muted: #64748b;
  --color-border: #e2e8f0;
  --color-bg: #000000;
  --color-bg-alt: #f8fafc;
  --color-bg-dark: #0f172a;

  --font-sans: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-serif: 'Georgia', 'Times New Roman', serif;
  --font-mono: 'Fira Code', 'Consolas', monospace;

  --radius-sm: 4px;
  --radius: 8px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, .08), 0 1px 2px rgba(0, 0, 0, .05);
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, .1), 0 2px 4px -1px rgba(0, 0, 0, .06);
  --shadow-lg: 0 10px 25px -3px rgba(0, 0, 0, .1), 0 4px 6px -2px rgba(0, 0, 0, .05);
  --shadow-xl: 0 20px 50px -12px rgba(0, 0, 0, .18);

  --transition: 0.25s ease;
  --container: 1200px;
  --gap: 2rem;
}

/* ----- Reset & Base ----- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--color-primary-dark);
}

ul,
ol {
  list-style: none;
}

/* ----- Typography ----- */
h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--color-dark);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
}

h2 {
  font-size: clamp(1.5rem, 3.5vw, 2.5rem);
}

h3 {
  font-size: clamp(1.25rem, 2.5vw, 1.875rem);
}

h4 {
  font-size: 1.25rem;
}

h5 {
  font-size: 1.125rem;
}

h6 {
  font-size: 1rem;
}

p {
  margin-bottom: 1.25rem;
}

p:last-child {
  margin-bottom: 0;
}

/* ----- Gold-gradient section headings (site-wide) ----- */
.hero-left-title,
.testi-heading,
.team-title,
.team-heading,
.abpg-heading,
.abnew-hero-heading,
.abwhy-title,
.abnew-why-heading,
.about-vision-title,
.about-why-title,
.contact-heading,
.srvpg-why-title,
.gallmas-title,
.hsd-hero-title,
.hsd-po-heading,
.hsd-industry-heading,
.hsd-industry-heading-main,
.hsd-industry-heading-alt,
.hsd-cs-heading,
.hsd-cs-subheading,
.hsd-faq-heading,
.ccs-title,
.ccs-card-title {
  font-family: 'Playfair Display', 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  background: var(--color-primary-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

blockquote {
  border-left: 4px solid var(--color-primary);
  padding: 1rem 1.5rem;
  margin: 2rem 0;
  background: var(--color-bg-alt);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
  color: var(--color-muted);
}

code {
  font-family: var(--font-mono);
  background: var(--color-bg-alt);
  padding: 0.2em 0.45em;
  border-radius: var(--radius-sm);
  font-size: 0.875em;
  color: var(--color-secondary);
}

pre {
  background: var(--color-dark);
  color: #e2e8f0;
  padding: 1.5rem;
  border-radius: var(--radius);
  overflow-x: auto;
  margin: 2rem 0;
}

pre code {
  background: none;
  padding: 0;
  color: inherit;
  font-size: 0.9rem;
}

hr {
  border: none;
  border-top: 1px solid var(--color-border);
  margin: 2.5rem 0;
}

/* ----- Layout ----- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.site-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.site-content {
  flex: 1;
  padding: 4rem 0;
}

.content-area {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 3rem;
  align-items: start;
}

.content-area.full-width {
  grid-template-columns: 1fr;
}

@media (max-width: 1024px) {
  .content-area {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .site-content {
    flex: 1;
    padding: 0rem 0;
  }
}

/* ----- Header (Split Design) ----- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  height: 68px;
  width: 100%;
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.header-left {
  flex: 0 0 55%;
  display: flex;
  align-items: center;
  padding: 0 2.5rem;
  gap: 2rem;
}

.header-info-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #ffffff;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition: color var(--transition);
}

.header-info-item:hover {
  color: var(--color-primary);
}

.header-info-item svg {
  flex-shrink: 0;
  opacity: 0.85;
}

.header-icon-img {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.header-info-sep {
  width: 1px;
  height: 20px;
  background: rgba(255, 255, 255, 0.15);
  flex-shrink: 0;
}

.header-right {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0 2.5rem;
}

.header-right-overlay {
  display: none;
}

/* Navigation */
.main-navigation {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
}

.main-navigation ul {
  display: flex;
  align-items: center;
  gap: 0.125rem;
}

.main-navigation a {
  display: block;
  padding: 0.4rem 0.6rem;
  font-size: 0.875rem;
  font-weight: 500;
  background: var(--color-primary-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  border-radius: var(--radius);
  transition: opacity 0.2s;
  text-decoration: none;
  white-space: nowrap;
}

.main-navigation a:hover {
  opacity: 0.8;
}

/* Active / current page */
.main-navigation .current-menu-item>a,
.main-navigation .current-page-ancestor>a {
  background: var(--color-primary-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* All menu items use gold gradient */
.main-navigation ul>li:nth-child(2)>a {
  background: var(--color-primary-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.main-navigation ul>li:nth-child(2)>a:hover {
  opacity: 0.8;
}

/* About page (2nd item) active also uses gold gradient */
.main-navigation ul>li:nth-child(2).current-menu-item>a,
.main-navigation ul>li:nth-child(2).current-page-ancestor>a {
  background: var(--color-primary-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Dropdown */
.main-navigation li {
  position: relative;
}

.main-navigation ul ul {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  left: auto;
  min-width: 190px;
  background: #111111;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  flex-direction: column;
  gap: 0;
  padding: 0.5rem;
  z-index: 200;
}

.main-navigation li:hover>ul {
  display: flex;
}

.main-navigation ul ul a {
  font-size: 0.875rem;
  color: #cccccc;
}

.main-navigation ul ul a:hover {
  color: var(--color-primary);
}

/* Mobile toggle */
.header-site-title {
  display: none;
}

/* Custom logo inside the mobile header */
.header-site-title .custom-logo-link {
  display: flex;
  align-items: center;
  line-height: 0;
}

.header-site-title .custom-logo {
  max-height: 79px;
  width: 79px;
  display: block;
  object-fit: fill;
}

.menu-toggle {
  display: none;
  position: relative;
  z-index: 1;
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius);
  padding: 0.4rem 0.7rem;
  cursor: pointer;
  color: #ffffff;
  font-size: 1.2rem;
  line-height: 1;
  transition: all var(--transition);
  margin-left: auto;
}

.menu-toggle:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

@media (max-width: 900px) {
  .header-left {
    flex: 0 0 50%;
    padding: 0 1.25rem;
    gap: 1rem;
  }

  .header-right {
    padding: 0 1.25rem;
  }

  .header-info-item span.label {
    display: none;
  }
}

@media (max-width: 768px) {
  .site-header {
    position: static;
    top: auto;
    height: auto;
    flex-direction: column;
  }

  .header-left {
    flex: none;
    width: 100%;
    height: 42px;
    padding: 0 1rem;
    justify-content: flex-start;
  }

  .header-right {
    width: 100%;
    height: 56px;
    background-image: none !important;
    background-color: transparent;
    justify-content: space-between;
    padding: 0 1rem;
  }

  .header-right-overlay {
    display: none;
  }

  .menu-toggle {
    display: flex;
    align-items: center;
  }

  .main-navigation {
    display: none;
  }

  .main-navigation.toggled {
    display: flex;
    position: fixed;
    top: 108px;
    left: 0;
    right: 0;
    bottom: 0;
    background: #0d0d0d;
    flex-direction: column;
    padding: 1.5rem;
    overflow-y: auto;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    z-index: 1002;
  }

  /* Solid header background when nav is open so hero doesn't bleed through */
  body.nav-open .site-header {
    background: #0d0d0d;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .main-navigation.toggled ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0.25rem;
    width: 100%;
  }

  .main-navigation.toggled a {
    padding: 0.75rem 1rem;
    font-size: 1rem;
    border-radius: var(--radius);
    background: none !important;
    -webkit-background-clip: border-box !important;
    background-clip: border-box !important;
    -webkit-text-fill-color: #ffe499 !important;
    color: #ffe499 !important;
  }

  .main-navigation.toggled a:hover {
    background: rgba(255, 255, 255, 0.06) !important;
    -webkit-text-fill-color: #ffffff !important;
    color: #ffffff !important;
  }

  .main-navigation ul ul {
    position: static;
    border: none;
    box-shadow: none;
    background: rgba(255, 255, 255, 0.04);
    border-radius: var(--radius);
    margin-top: 0.25rem;
  }

  /* Site logo / title inside header-right on mobile */
  .header-site-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }
}

/* ----- Hero slide-in animations ----- */
@keyframes hero-from-left {
  from { transform: translateX(-105%); }
  to   { transform: translateX(0); }
}
@keyframes hero-from-right {
  from { transform: translateX(105%); }
  to   { transform: translateX(0); }
}

/* ----- Hero (Split Screen) ----- */
.hero-split {
  display: flex;
  width: 100%;
  min-height: 100vh;
  overflow: hidden;
  position: relative;
}

/* Intro banner overlay — covers the hero on load, then shrinks from 100%
   down to 0% when the user moves the mouse or after 7 seconds. The image
   stays fully visible for the first half of the shrink, then fades out
   once it reaches roughly 50% size. */
.hero-banner-overlay {
  position: absolute;
  inset: 0;
  z-index: 100;
  background: #000;
  overflow: hidden;
  transform: scale(1);
  transform-origin: 100% 50%; /* shrink toward the right side of the hero */
  opacity: 1;
  transition:
    transform 1.6s cubic-bezier(0.65, 0, 0.35, 1),
    opacity   0.45s ease 0.8s; /* fade starts at 50% of the 1.6s shrink */
  will-change: transform, opacity;
  cursor: pointer;
}

.hero-banner-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  user-select: none;
  pointer-events: none;
}

.hero-banner-overlay.is-merged {
  transform: scale(0);
  opacity: 0;
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  .hero-banner-overlay {
    transition: opacity 0.4s ease;
  }
  .hero-banner-overlay.is-merged {
    transform: none !important;
    opacity: 0;
  }
}

/* ---- Left Panel ---- */
.hero-left {
  flex: 0 0 45%;
  will-change: transform;
  background: #000000;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 3rem 3rem 3rem 3.5rem;
  overflow: hidden;
}

/* Icon */
.hero-icon-wrap {
  position: absolute;
  top: 4px;
  left: 3.5rem;
  z-index: 2;
}

.hero-icon-img {
  width: 145px;
  height: 150px;
  object-fit: contain;
  margin-top: 50px;
}

.hero-icon-svg {
  width: 150px;
  height: 150px;
  display: block;
}

/* Decorative L-frame — built from two pseudo-element bars so each can
   draw from 0 → 100% after the intro banner has shrunk away. */
.hero-frame {
  position: absolute;
  top: 26%;
  left: 17.8%;
  width: 95%;
  height: 95%;
  pointer-events: none;
  z-index: 1;
}

.hero-frame::before,
.hero-frame::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  will-change: transform;
}

/* Top horizontal bar — draws left-to-right */
.hero-frame::before {
  width: 100%;
  height: 40px;
  background: var(--color-primary-gradient-line);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.9s cubic-bezier(0.65, 0, 0.35, 1);
}

/* Left vertical bar — draws top-to-bottom (with a slight stagger) */
.hero-frame::after {
  width: 40px;
  height: 100%;
  background: var(--color-primary-gradient-line-vert);
  transform: scaleY(0);
  transform-origin: top center;
  transition: transform 0.9s cubic-bezier(0.65, 0, 0.35, 1) 0.4s;
}

.hero-frame.is-drawn::before { transform: scaleX(1); }
.hero-frame.is-drawn::after  { transform: scaleY(1); }

@media (prefers-reduced-motion: reduce) {
  .hero-frame::before,
  .hero-frame::after {
    transition: none;
  }
  .hero-frame.is-drawn::before { transform: scaleX(1); }
  .hero-frame.is-drawn::after  { transform: scaleY(1); }
}

/* Explore button — bottom left */
.hero-explore-btn {
  position: absolute;
  bottom: 4.5rem;
  left: 10%;
  display: inline-flex;
  align-items: center;
  padding: 0.7rem 2.5rem;
  background: var(--color-primary-gradient);
  color: #ffffff;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius, 8px);
  text-decoration: none;
  transition: background var(--transition), transform var(--transition);
  z-index: 2;
}

.hero-explore-btn:hover {
  background: var(--color-primary-gradient-hover);
  color: #ffffff;
  transform: translateY(-2px);
}

/* ---- Right Panel ---- */
.hero-right {
  flex: 0 0 55%;
  position: relative;
  background-color: #1a1a1a;
  background-size: cover;
  background-position: top;
  background-repeat: no-repeat;
  display: flex;
  flex-direction: column;
  justify-content: center;
  will-change: transform;
  align-items: center;
  padding-bottom: 5rem;
}

.hero-right-overlay {
  display: none;
}

/* Left-panel text content — sits inside the white L-frame */
.hero-left-content {
  position: absolute;
  top: 38%;
  left: calc(17.8% + 40px + 1.75rem);
  right: 2rem;
  z-index: 3;
  max-width: 90%;
}

.hero-left-title {
  font-family: 'Senjalara Demo', 'Dancing Script', cursive;
  font-size: clamp(1.6rem, 3.3vw, 3.3rem);
  font-style: normal;
  font-weight: 600;
  background: linear-gradient(135deg, #ac7031 0%, #e7aa51 25%, #ffe499 50%, #e7aa51 75%, #ac7031 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  line-height: 1.08;
  margin: 0 0 0.85rem;
  letter-spacing: -0.01em;
  text-align: left;
}

.hero-left-subtitle {
  font-family: 'Figtree', sans-serif;
  font-size: clamp(0.85rem, 1.25vw, 1.25rem);
  font-weight: 300;
  color: #ffffff;
  line-height: 1.4;
  margin: 0;
  text-align: left;
}

/* CTA button — pinned to bottom-left of the right panel */
.hero-right-cta-wrap {
  position: absolute;
  bottom: clamp(1.5rem, 5vh, 77px);
  left: clamp(2rem, 15vw, 17.5rem);
  right: auto;
  display: flex;
  justify-content: flex-start;
  z-index: 2;
}

.hero-cta-btn {
  display: inline-flex;
  align-items: center;
  padding: 0.875rem 3rem;
  background: var(--color-primary-gradient);
  color: #ffffff;
  font-family: 'Figtree', sans-serif;
  font-size: 1rem;
  font-weight: 500;
  border-radius: var(--radius, 8px);
  text-decoration: none;
  transition: background var(--transition), transform var(--transition);
}

.hero-cta-btn:hover {
  background: var(--color-primary-gradient-hover);
  color: #0055FF;
  transform: translateY(-2px);
}

/* ---- Responsive: tablet & below (≤ 900px) ---- */
@media (max-width: 900px) {
  .hero-split {
    flex-direction: column;
    min-height: 100svh;
  }

  .hero-left {
    flex: none;
    min-height: 380px;
    padding: 1rem 1.5rem 3rem;
    margin-top: 0px;
    margin-bottom: -117px;
    z-index: 99;
  }

  .hero-frame {
    top: 6%;
    left: 6%;
    width: 86%;
    height: 92%;
  }

  .hero-frame::after {
    width: 40px;
    height: 143%;
    transform: scaleY(0);
    transform-origin: top center;
    transition: transform 0.9s cubic-bezier(0.65, 0, 0.35, 1) 0.4s;
  }

  .hero-icon-wrap {
    top: 20px;
    left: 1.5rem;
  }

  .hero-icon-img,
  .hero-icon-svg {
    width: 100px;
    height: 100px;
  }

  .hero-left-content {
    top: 22%;
    left: calc(6% + 40px + 1.25rem);
    right: 1.5rem;
    max-width: none;
  }

  .hero-left-title {
    font-size: clamp(2rem, 7.5vw, 3.5rem);
  }

  .hero-left-subtitle {
    font-size: clamp(1rem, 3.2vw, 1.4rem);
  }

  .hero-explore-btn {
    bottom: 1.75rem;
    left: 6%;
  }

  .hero-right {
    flex: 1;
    min-height: 96svh;
    padding-bottom: 4.5rem;
    background-position: center top;
  }

  .hero-right-cta-wrap {
    left: 1.5rem;
    right: auto;
    bottom: 1.75rem;
  }
}

/* ---- Responsive: large phones (≤ 640px) ---- */
@media (max-width: 640px) {
  .hero-left {
    min-height: 340px;
    padding: 1rem 1.25rem 2.5rem;
    margin-top: 0px;
  }

  .hero-icon-img,
  .hero-icon-svg {
    display: none;
  }

  .hero-frame {
    top: 6%;
    left: 5%;
    width: 88%;
    height: 90%;
  }

  .hero-frame::after {
    width: 40px;
    height: 195%;
    transform: scaleY(0);
    transform-origin: top center;
    transition: transform 0.9s cubic-bezier(0.65, 0, 0.35, 1) 0.4s;
  }

  .hero-left-content {
    top: 28%;
    left: calc(5% + 40px + 1rem);
    right: 1.25rem;
  }

  .hero-left-title {
    font-size: clamp(1.75rem, 9vw, 2.6rem);
  }

  .hero-left-subtitle {
    font-size: clamp(0.95rem, 4vw, 1.2rem);
  }

  .hero-explore-btn {
    bottom: 1.5rem;
    left: 5%;
    padding: 0.6rem 1.75rem;
    font-size: 0.9rem;
  }

  .hero-right {
    min-height: 55svh;
    padding-bottom: 4rem;
  }

  .hero-right-cta-wrap {
    left: 1.25rem;
    bottom: 1.5rem;
  }

  .hero-cta-btn {
    padding: 0.75rem 2rem;
    font-size: 0.9rem;
  }
}

/* ---- Responsive: small phones (≤ 430px) ---- */
@media (max-width: 430px) {
  .hero-left {
    min-height: 320px;
    padding: 0.75rem 1rem 2.5rem;
    margin-top: 0px;
    margin-bottom: -100px;
    z-index: 99;
  }

  .hero-icon-wrap {
    top: 16px;
    left: 1rem;
  }

  .hero-icon-img,
  .hero-icon-svg {
    display: none;
  }

  .hero-frame {
    top: 6%;
    left: 4%;
    width: 90%;
    height: 88%;
  }

  .hero-left-content {
    top: 22%;
    left: calc(4% + 40px + 0.75rem);
    right: 1rem;
  }

  .hero-left-title {
    font-size: clamp(1.5rem, 10vw, 2.2rem);
    margin-bottom: 0.5rem;
    padding-top: 10px;
  }

  .hero-left-subtitle {
    font-size: clamp(0.875rem, 4.5vw, 1.05rem);
  }

  .hero-explore-btn {
    bottom: 0.25rem;
    left: 5%;
    padding: 0.55rem 1.5rem;
    font-size: 0.85rem;
  }

  .hero-right {
    min-height: 50svh;
    padding-bottom: 3.5rem;
  }

  .hero-right-cta-wrap {
    left: 1rem;
    bottom: 1.25rem;
  }

  .hero-cta-btn {
    padding: 0.65rem 1.5rem;
    font-size: 0.85rem;
  }
}

/* Home page template: fixed header floats above hero */
.page-template-page-home-template-php .site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
}

@media (max-width: 768px) {
  .page-template-page-home-template-php .site-header {
    position: static;
    top: auto;
    left: auto;
    right: auto;
  }
}

/* ----- Buttons ----- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: var(--radius);
  transition: all var(--transition);
  cursor: pointer;
  border: 2px solid transparent;
  text-decoration: none;
  line-height: 1;
}

.btn-primary {
  background: var(--color-primary-gradient);
  color: #fff;
  border-color: var(--color-primary);
}

.btn-primary:hover {
  background: var(--color-primary-gradient-hover);
  border-color: var(--color-primary-dark);
  color: #fff;
  box-shadow: 0 4px 20px rgba(255, 0, 132, 0.35);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.6);
  color: #fff;
}

.btn-secondary {
  background: var(--color-secondary);
  color: #fff;
  border-color: var(--color-secondary);
}

.btn-secondary:hover {
  background: #ea6a00;
  border-color: #ea6a00;
  color: #fff;
}

/* ----- Posts Grid ----- */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: var(--gap);
}

/* ----- Post Card ----- */
.post-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
}

.post-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
  border-color: rgba(255, 0, 132, 0.2);
}

.post-card-thumb {
  overflow: hidden;
  aspect-ratio: 16/9;
}

.post-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.post-card-body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.post-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.8125rem;
  color: var(--color-muted);
  margin-bottom: 0.875rem;
  flex-wrap: wrap;
}

.post-category {
  background: rgba(255, 0, 132, 0.08);
  color: var(--color-primary);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.post-card-title {
  font-size: 1.1875rem;
  font-weight: 700;
  margin-bottom: 0.625rem;
  line-height: 1.35;
}

.post-card-title a {
  color: var(--color-dark);
}

.post-card-title a:hover {
  color: var(--color-primary);
}

.post-card-excerpt {
  font-size: 0.9375rem;
  color: var(--color-muted);
  flex: 1;
  margin-bottom: 1.25rem;
}

.post-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  border-top: 1px solid var(--color-border);
  font-size: 0.875rem;
}

.post-author-mini {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-text);
}

.post-author-mini img {
  border-radius: 50%;
  width: 28px;
  height: 28px;
}

.read-more {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-primary);
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.read-more::after {
  content: '→';
}

.read-more:hover {
  color: var(--color-primary-dark);
}

/* ----- Single Post ----- */
.post-header {
  margin-bottom: 2.5rem;
}

.post-header .post-meta {
  margin-bottom: 1rem;
}

.post-header .post-title {
  margin-bottom: 1rem;
}

.post-featured-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 2.5rem;
  aspect-ratio: 16/6;
}

.post-featured-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.post-content {
  font-size: 1.0625rem;
  line-height: 1.8;
  color: var(--color-text);
}

.post-content h2,
.post-content h3,
.post-content h4 {
  margin: 2.5rem 0 1rem;
}

.post-content p,
.post-content ul,
.post-content ol {
  margin-bottom: 1.5rem;
}

.post-content ul,
.post-content ol {
  padding-left: 1.5rem;
  list-style: initial;
}

.post-content ol {
  list-style: decimal;
}

.post-content li {
  margin-bottom: 0.5rem;
}

.post-content img {
  border-radius: var(--radius);
  margin: 2rem auto;
}

.post-content a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Tags */
.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 2rem;
}

.post-tag {
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  color: var(--color-muted);
  padding: 0.35rem 0.875rem;
  border-radius: var(--radius-full);
  font-size: 0.8125rem;
  transition: all var(--transition);
}

.post-tag:hover {
  background: var(--color-primary-gradient);
  color: #fff;
  border-color: var(--color-primary);
}

/* Author Box */
.author-box {
  display: flex;
  gap: 1.5rem;
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin-top: 3rem;
}

.author-box-avatar img {
  border-radius: 50%;
  width: 80px;
  height: 80px;
  flex-shrink: 0;
}

.author-box-name {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 0.375rem;
}

.author-box-bio {
  font-size: 0.9375rem;
  color: var(--color-muted);
}

@media (max-width: 640px) {
  .author-box {
    flex-direction: column;
  }
}

/* Post Navigation */
.post-navigation {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--color-border);
}

.nav-previous,
.nav-next {
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.25rem;
  transition: all var(--transition);
}

.nav-next {
  text-align: right;
}

.nav-previous:hover,
.nav-next:hover {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-sm);
}

.nav-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-muted);
  display: block;
  margin-bottom: 0.375rem;
}

.nav-title {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--color-dark);
}

@media (max-width: 640px) {
  .post-navigation {
    grid-template-columns: 1fr;
  }
}

/* Comments */
.comments-area {
  margin-top: 3rem;
}

.comments-title {
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
}

.comment-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.comment {
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.comment-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.875rem;
}

.comment-meta img {
  border-radius: 50%;
  width: 40px;
  height: 40px;
}

.comment-author-name {
  font-weight: 600;
  font-size: 0.9375rem;
}

.comment-date {
  font-size: 0.8125rem;
  color: var(--color-muted);
}

.comment-content {
  font-size: 0.9375rem;
}

.comment-form {
  margin-top: 2rem;
}

.comment-form-title {
  margin-bottom: 1.5rem;
  font-size: 1.25rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-dark);
  margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  color: var(--color-text);
  background: var(--color-bg);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(255, 0, 132, 0.12);
}

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

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

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

.submit-btn {
  background: var(--color-primary-gradient);
  color: #fff;
  border: none;
  padding: 0.8125rem 2rem;
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
}

.submit-btn:hover {
  background: var(--color-primary-gradient-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(255, 0, 132, 0.3);
}

/* ----- Sidebar / Widgets ----- */
.widget-area {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.widget {
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}

.widget-title {
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-dark);
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--color-primary);
}

.widget ul {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.widget ul li {
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 0.5rem;
}

.widget ul li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.widget ul a {
  font-size: 0.9375rem;
  color: var(--color-text);
}

.widget ul a:hover {
  color: var(--color-primary);
}

/* Search widget */
.search-form {
  display: flex;
  gap: 0.5rem;
}

.search-form input {
  flex: 1;
  padding: 0.625rem 0.875rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font-size: 0.9375rem;
  font-family: var(--font-sans);
}

.search-form input:focus {
  outline: none;
  border-color: var(--color-primary);
}

.search-form button {
  background: var(--color-primary-gradient);
  color: #fff;
  border: none;
  padding: 0.625rem 1rem;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background var(--transition);
}

.search-form button:hover {
  background: var(--color-primary-gradient-hover);
}

/* ----- Pagination ----- */
.pagination {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 3rem;
  flex-wrap: wrap;
}

.pagination a,
.pagination span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  padding: 0 0.875rem;
  border-radius: var(--radius);
  font-size: 0.9375rem;
  font-weight: 500;
  border: 1px solid var(--color-border);
  background: var(--color-bg);
  color: var(--color-text);
  transition: all var(--transition);
}

.pagination a:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.pagination .current {
  background: var(--color-primary-gradient);
  color: #fff;
  border-color: var(--color-primary);
}

/* ----- Page ----- */
.page-header {
  margin-bottom: 2.5rem;
}

.page-title {
  margin-bottom: 0.625rem;
}

/* ----- 404 ----- */
.error-404 {
  text-align: center;
  padding: 5rem 0;
}

.error-404 .error-code {
  font-size: clamp(6rem, 20vw, 12rem);
  font-weight: 900;
  line-height: 1;
  color: var(--color-border);
  letter-spacing: -0.05em;
  margin-bottom: 0;
}

.error-404 h2 {
  margin-bottom: 1rem;
}

.error-404 p {
  color: var(--color-muted);
  max-width: 400px;
  margin: 0 auto 2rem;
}

/* ----- Footer ----- */
.site-footer {
  color: #cccccc;
  padding: 4rem 0 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Two-column main row — text left-aligned inside, block centered+10% right on desktop */
.footer-main-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  padding-bottom: 3rem;
  max-width: 860px;
  /* center the block then nudge it 10% right: calc(50% - halfWidth + 10%) */
  margin-left: calc(50% - 430px + 10%);
  margin-right: auto;
}

.footer-services-col,
.footer-contact-col {
  text-align: left;
}

/* Tablet — keep 2 columns, reset the desktop offset margin */
@media (min-width: 581px) and (max-width: 1024px) {
  .footer-main-row {
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    gap: 2.5rem;
    padding: 0 2rem 3rem;
  }
}

/* Mobile — stack to single column */
@media (max-width: 580px) {
  .footer-main-row {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    margin-left: auto;
    margin-right: auto;
    padding: 0 1.25rem 3rem;
  }
}

/* "Our Services" heading */
.footer-col-heading {
  color: #ffffff;
  font-family: 'Lato', sans-serif;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0;
  margin-bottom: 1.25rem;
}

/* Services list */
.footer-services-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  list-style: none;
}

.footer-services-list li {
  font-family: 'Lato', sans-serif;
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #ffffff;
  line-height: 1.5;
}

.footer-services-list li a {
  font-family: 'Lato', sans-serif;
  font-size: 15px;
  color: #ffffff;
  text-decoration: none;
  transition: color var(--transition);
}

.footer-services-list li a:hover {
  color: var(--color-primary, #EDC650);
}

/* Social icons row */
.footer-social-row {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.footer-social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-primary-gradient);
  color: #000;
  text-decoration: none;
  transition: opacity var(--transition), transform var(--transition);
  flex-shrink: 0;
}

.footer-social-icon:hover {
  opacity: 0.82;
  transform: scale(1.08);
  color: #000;
}

/* Address */
.footer-address {
  font-family: 'Lato', sans-serif;
  font-size: 15px;
  color: #ffffff;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

/* Office Hours */
.footer-hours {
  margin-bottom: 1.5rem;
}

.footer-hours-label {
  display: block;
  font-family: 'Lato', sans-serif;
  font-size: 17px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.25rem;
}

.footer-hours-text {
  font-family: 'Lato', sans-serif;
  font-size: 15px;
  color: #ffffff;
  line-height: 1.65;
}

/* Phone */
.footer-phone-row {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  color: #ffffff;
}

.footer-phone-row svg {
  flex-shrink: 0;
}

.footer-phone-row a {
  font-family: 'Lato', sans-serif;
  font-size: 15px;
  color: #ffffff;
  text-decoration: none;
  transition: color var(--transition);
}

.footer-phone-row a:hover {
  color: var(--color-primary, #EDC650);
}

/* Footer bottom bar */
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.25rem 0;
  font-size: 0.875rem;
  color: #666666;
  text-align: center;
}

.footer-bottom a {
  color: #ffffff;
  text-decoration: none;
}

.footer-bottom a:hover {
  color: var(--color-primary, #EDC650);
}

/* ----- Breadcrumbs ----- */
.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--color-muted);
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.breadcrumbs a {
  color: var(--color-primary);
}

.breadcrumbs .sep {
  color: var(--color-border);
}

.breadcrumbs .current {
  color: var(--color-text);
  font-weight: 500;
}

/* ----- Section Styles ----- */
.section {
  padding: 5rem 0;
}

.section-alt {
  background: var(--color-bg-alt);
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 3rem;
}

.section-label {
  display: inline-block;
  color: var(--color-primary);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.section-header h2 {
  margin-bottom: 1rem;
}

.section-header p {
  color: var(--color-muted);
  font-size: 1.0625rem;
}

/* ----- Utilities ----- */
.text-center {
  text-align: center;
}

.text-muted {
  color: var(--color-muted);
}

.mt-1 {
  margin-top: 1rem;
}

.mt-2 {
  margin-top: 2rem;
}

.mb-1 {
  margin-bottom: 1rem;
}

.mb-2 {
  margin-bottom: 2rem;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

/* ----- Scrollbar ----- */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: var(--color-bg-alt);
}

::-webkit-scrollbar-thumb {
  background: var(--color-border);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-muted);
}

/* ----- Selection ----- */
::selection {
  background: rgba(255, 0, 132, 0.15);
  color: var(--color-primary-dark);
}

/* ----- Focus ----- */
:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
  border-radius: 2px;
}

/* =========================================================
   ABOUT US SECTION
   ========================================================= */

.about-section {
  display: flex;
  align-items: stretch;
  background: #000000;
  position: relative;
  min-height: 480px;
  padding: 100px 0 100px 0;
}

/* ---- Left: Photo column ---- */
.about-image-col {
  position: relative;
  flex: 0 0 40%;
  min-height: 480px;
}

.about-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  box-shadow: 0 30px 60px rgb(0 0 0 / 19%);
  position: relative;
  z-index: 1;
}

.about-photo-placeholder {
  background: #222;
  width: 100%;
  height: 100%;
}

/* Decorative white bars — top-left & bottom-right of the section.
   Draw from 0 → 100% (scaleY) when the section enters the viewport,
   matching the hero L-frame reveal. */
.about-bar-top,
.about-bar-bottom {
  position: absolute;
  width: 40px;
  height: 100%;
  background: var(--color-primary-gradient-line-vert-rev);
  z-index: 0;
  transform-origin: top center;
  pointer-events: none;
  transform-origin: top center;
  will-change: transform;
}

/* Scroll-linked draw — JS updates --draw-top / --draw-bot from 0 → 1
   based on how far the user has scrolled through the section. */
.about-bar-top {
  top: 0;
  left: 8%;
  transform: scaleY(var(--draw-top, 0));
}

.about-bar-bottom {
  top: 0;
  right: 8%;
  transform: scaleY(var(--draw-bot, 0));
  transform-origin: top center;
}

@media (prefers-reduced-motion: reduce) {
  .about-bar-top,
  .about-bar-bottom {
    transform: scaleY(1);
  }
}

/* ---- Centre: ABOUT US vertical banner ---- */
.about-banner {
  flex: 0 0 175px;
  width: 175px;
  height: 444px;
  background: var(--color-primary-gradient);
  background-attachment: fixed;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-left: 0;
  position: relative;
  z-index: 0;
  margin-left: -17px;
  align-self: center;
  margin-bottom: -115px;
}

.about-banner-text {
  display: block;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  transform: rotate(180deg);
  font-family: 'Playfair Display', 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  font-size: 52px;
  font-weight: 700;
  color: #000;
  letter-spacing: 0.04em;
  white-space: nowrap;
  line-height: 1;
}

/* ---- Right: Content column ---- */
.about-content-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 3rem 4rem 3rem 2.5rem;
  margin-left: 0;
  position: relative;
  z-index: 2;
}

/* "Our Journey" row — line + heading */
.about-journey-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.about-journey-line {
  display: block;
  width: 60px;
  height: 1px;
  background: var(--color-primary-gradient-line);
  flex-shrink: 0;
}

.about-journey-title {
  font-family: 'Lato', sans-serif;
  font-size: 26px;
  font-weight: 300;
  color: #ffffff;
  margin: 0;
  line-height: 1.2;
  letter-spacing: 0.02em;
}

/* Paragraph */
.about-paragraph {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 400;
  color: #ffffff;
  line-height: 1.7;
  margin: 0 0 2.25rem;
  max-width: 480px;
}

/* Pink arrow CTA button */
.about-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  background: var(--color-primary-gradient);
  color: #000;
  font-size: 1.6rem;
  line-height: 1;
  border-radius: 4px;
  text-decoration: none;
  transition: background var(--transition), transform var(--transition);
  align-self: flex-start;
}

.about-cta-btn:hover {
  background: var(--color-primary-gradient-hover);
  color: #000;
  transform: translateX(4px);
}

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .about-section {
    flex-direction: column;
    padding: 71px 0 0px 0;
  }

  .about-image-col {
    flex: none;
    min-height: 214px;
  }

  .about-photo {
    width: 74%;
    height: 100%;
    object-fit: cover;
    display: block;
    box-shadow: 0 30px 60px rgb(0 0 0 / 19%);
    position: relative;
    z-index: 1;
    margin: 1px 6% 0 13%;
  }

  .about-banner {
    width: 74%;
    height: 64px;
    writing-mode: initial;
    margin-bottom: 0px;
    margin-left: 4px;
    flex: 0 0 86px;
  }

  .about-banner-text {
    writing-mode: horizontal-tb;
    transform: none;
    font-size: 36px;
  }

  .about-content-col {
    padding: 2.5rem 1.5rem;
  }

  .about-journey-title {
    font-family: 'Lato', sans-serif;
    font-size: 26px;
    font-weight: 300;
    color: #ffffff;
    margin: 0;
    line-height: 1.2;
    letter-spacing: 0.02em;
    width: 72%;
    margin-left: 19px;
  }

  .about-paragraph {
    max-width: 68%;
    margin-left: 65px;
  }

  a.about-cta-btn.anaya-anim.is-in-view {
    margin-left: 86%;
  }
}

/* =====================================================
   SERVICES SECTION
   ===================================================== */

/* Ensure about section stacks beneath the services slider */
.about-section {
  z-index: 1;
}

/* =====================================================
   HOME — OUR SERVICES (Expanding Card Slider)
   ===================================================== */

/* =====================================================
   SERVICES — FAN CARD GALLERY
   ===================================================== */

.services-fan-section {
  position: relative;
  z-index: 2;
  background: transparent;
  padding: 50px 0 50px;
  overflow: hidden;
  margin: 0 8%;
}

/* Wrappers used only for mobile scroll-pin; transparent on desktop. */
.services-fan-pin,
.services-fan-sticky,
.services-fan-head {
  display: contents;
}

/* White-bg reveal — only the background animates (top→bottom).
   The heading and image gallery stay fully visible the whole time.
   Triggered by .is-in-view once the section enters the viewport
   (roughly when the about section's white bars reach this section). */
.services-fan-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--color-primary-gradient);
  background-size: 100vw 100vh;
  background-position: center center;
  background-repeat: no-repeat;
  clip-path: inset(0 0 100% 0);
  transition: clip-path 5s cubic-bezier(0.22, 1, 0.36, 1);
  z-index: -1;
  pointer-events: none;
}

.services-fan-section.is-in-view::before {
  clip-path: inset(0 0 0 0);
}

@media (prefers-reduced-motion: reduce) {
  .services-fan-section::before {
    transition: none;
    clip-path: inset(0 0 0 0);
  }
}

.services-fan-heading {
  font-family: 'Senjalara Demo', 'Dancing Script', cursive;
  font-size: clamp(1.85rem, 4vw, 2.8rem);
  font-weight: 800;
  letter-spacing: 0.12em;
  color: #000;
  text-align: center;
  text-transform: capitalize;
  line-height: 1.2;
  margin: 0 0 24px;
}

/* Centered description paragraph beneath the heading. */
.services-fan-desc {
  font-family: 'Figtree', 'Inter', sans-serif;
  font-size: clamp(0.95rem, 1.1vw, 1.08rem);
  line-height: 1.7;
  color: #3a3a3a;
  text-align: center;
  max-width: 760px;
  margin: 0 auto 25px !important;
  padding: 0 clamp(16px, 4vw, 24px);
}

@media (max-width: 768px) {
  .services-fan-desc { margin-bottom: 25px; }
}

.services-fan-wrap {
  position: relative;
  max-width: 1400px;
  margin: 0 auto;
}

/* Expanding flex gallery — matches client-case-studies hover animation */
.services-card-row {
  display: flex;
  height: 450px;
  gap: 15px;
  padding: 0 40px;
  overflow: hidden;
}

.services-card-row .card {
  flex: 1;
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  outline: none;
  text-decoration: none;
  display: block;
  background: #2a2a2a;
  transition: flex 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.services-card-row .card:hover,
.services-card-row .card:focus,
.services-card-row .card.is-auto-active {
  flex: 4;
}

.services-card-row .card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
  transform: scale(1);
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.services-card-row .card:hover img,
.services-card-row .card:focus img,
.services-card-row .card.is-auto-active img {
  transform: scale(1.04);
}

/* No darkening overlay on hover — the card stays a single uncut image.
   Text legibility is handled via text-shadow on the title/desc. */

.card-placeholder {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #4a4a4a, #2a2a2a);
}

.card-overlay {
  position: absolute;
  bottom: 30px;
  left: 30px;
  right: 30px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.4s ease 0.25s,
    transform 0.4s ease 0.25s;
  pointer-events: none;
}

.services-card-row .card:hover .card-overlay,
.services-card-row .card:focus .card-overlay,
.services-card-row .card.is-auto-active .card-overlay {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.card-title {
  font-family: 'Inter', sans-serif;
  font-size: clamp(1.1rem, 1.8vw, 1.5rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.25;
  margin: 0 0 0.55rem;
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  /* Layered shadow so the text reads against any background — bright or dark. */
  text-shadow:
    0 1px 2px rgba(0, 0, 0, 0.95),
    0 2px 10px rgba(0, 0, 0, 0.85),
    0 4px 24px rgba(0, 0, 0, 0.7);
}

/* Short description shown under the title on each slide card. */
.card-desc {
  font-family: 'Figtree', 'Inter', sans-serif;
  font-size: clamp(0.78rem, 0.9vw, 0.88rem);
  font-weight: 500;
  color: #ffffff;
  line-height: 1.45;
  margin: 0 0 0.85rem;
  letter-spacing: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-shadow:
    0 1px 2px rgba(0, 0, 0, 0.95),
    0 2px 10px rgba(0, 0, 0, 0.8),
    0 4px 22px rgba(0, 0, 0, 0.65);
}


.card-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 1.4rem;
  background: #000;
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  border-radius: 6px;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.22s ease, transform 0.22s ease;
}

.card-btn:hover {
  background: #222;
  color: #fff;
  transform: translateY(-1px);
}

@media (prefers-reduced-motion: reduce) {
  .services-card-row .card,
  .services-card-row .card img,
  .card-overlay {
    transition: none !important;
  }
}

@media (max-width: 768px) {
  /* Section is the pin track — must NOT clip, or sticky breaks. */
  .services-fan-section {
    padding: 0;
    margin: 0;
    overflow: visible;
  }

  /* Pin track: tall outer box gives scroll distance for the sticky inner. */
  .services-fan-pin {
    display: block;
    position: relative;
    height: calc(100vh + (var(--svc-card-count, 8) * 70vh));
  }

  /* Sticky stage: pins to viewport while user scrolls through the track. */
  .services-fan-sticky {
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow: hidden;
    padding: 56px 0 24px;
    background: var(--color-primary-gradient);
    background-size: 100vw 100vh;
    background-position: center center;
    background-repeat: no-repeat;
  }

  .services-fan-head {
    display: block;
    flex: 0 0 auto;
  }

  .services-fan-heading { padding: 0 5%; margin: 0 0 14px; }
  .services-fan-desc    { margin-bottom: 12px; }

  .services-fan-wrap {
    flex: 1 1 auto;
    position: relative;
    overflow: hidden;
    padding: 0 1.25rem;
    max-width: none;
    margin: 0;
  }

  .services-card-row {
    flex-direction: column;
    height: auto;
    gap: 24px;
    padding: 0;
    overflow: visible;
    will-change: transform;
    transform: translate3d(0, 0, 0);
    transition: transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
  }

  .services-card-row .card {
    flex: 0 0 auto;
    width: 100%;
    height: var(--svc-card-h, 62vh);
    border-radius: 14px;
  }

  .services-card-row .card:hover,
  .services-card-row .card:focus {
    flex: 0 0 auto;
  }

  .services-card-row .card::after { opacity: 1; }

  .services-card-row .card img {
    filter: brightness(0.65);
    transform: scale(1);
  }

  .card-overlay {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
    bottom: 20px;
    left: 20px;
    right: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .services-card-row { transform: none !important; }
}

/* =====================================================
   TESTIMONIALS SECTION
   ===================================================== */

.testi-section {
  position: relative;
  width: 100%;
  min-height: 400px;
  background-color: #111111;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 90px 0;
}

.testi-overlay {
  display: none;
}

.testi-container {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 6%;
}

.testi-heading {
  font-family: 'Senjalara Demo', 'Dancing Script', cursive;
  font-size: 43px;
  font-weight: 700;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 0 0 3rem;
  position: relative;
  display: inline-block;
  padding-bottom: 16px;
}

/* Animated underline that draws in once the heading scrolls into view */
.testi-heading::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 90px;
  height: 3px;
  background: var(--color-primary-gradient);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.85s cubic-bezier(0.22, 1, 0.36, 1) 0.45s;
}

.testi-heading.is-in-view::after {
  transform: scaleX(1);
}

/* ---- Slider ---- */
.testi-slider {
  position: relative;
  overflow: hidden;
}

.testi-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0;
  transition: opacity 0.6s ease;
  pointer-events: none;
}

.testi-slide.is-active {
  position: relative;
  opacity: 1;
  pointer-events: auto;
}

/* Slide-change entrance animations */
@keyframes testi-enter-photo {
  from { opacity: 0; transform: scale(0.82) translateX(-28px); }
  to   { opacity: 1; transform: scale(1)    translateX(0); }
}
@keyframes testi-enter-text {
  from { opacity: 0; transform: translateX(36px); }
  to   { opacity: 1; transform: translateX(0); }
}

.testi-slide.is-active .testi-photo-wrap {
  animation: testi-enter-photo 0.65s cubic-bezier(0.22, 1, 0.36, 1) backwards;
}
.testi-slide.is-active .testi-quote {
  animation: testi-enter-text 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.12s backwards;
}
.testi-slide.is-active .testi-name-wrap {
  animation: testi-enter-text 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.22s backwards;
}

.testi-inner {
  display: flex;
  align-items: center;
  gap: 3.5rem;
}

/* ---- Photo ---- */
.testi-photo-wrap {
  flex-shrink: 0;
  width: 170px;
  height: 170px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid rgba(255, 255, 255, 0.35);
  background: var(--color-primary-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    transform 0.5s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.4s ease,
    box-shadow 0.5s ease;
  cursor: pointer;
}

/* Subtle continuous float — only after entrance animation has finished */
@keyframes testi-photo-float {
  0%, 100% { translate: 0 0; }
  50%      { translate: 0 -8px; }
}
.testi-photo-wrap.is-in-view {
  animation: testi-photo-float 6s ease-in-out infinite;
}

.testi-photo-wrap:hover {
  border-color: var(--color-primary, #D82680);
}

.testi-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.testi-photo-wrap:hover .testi-photo {
  transform: scale(1.08);
}

.testi-photo-placeholder {
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.1);
}

/* Initials shown inside the gold circle in place of a photo */
.testi-initials {
  font-family: 'Playfair Display', 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  font-size: 3.75rem;
  font-weight: 700;
  line-height: 1;
  color: #000;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  user-select: none;
}

/* ---- Content ---- */
.testi-content {
  flex: 1;
}

.testi-quote {
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.88);
  margin: 0 0 1.5rem;
}

.testi-quote strong {
  color: #ffffff;
  font-weight: 700;
}

.testi-name-wrap {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.testi-name {
  font-family: 'Inter', sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: #ffffff;
  margin: 0;
  white-space: nowrap;
}

.testi-name-line {
  flex: 1;
  height: 1px;
  background: var(--color-primary-gradient);
  transform: scaleX(0);
  transform-origin: left center;
  transition: none; /* instant reset when slide is not active */
}

.testi-slide.is-active .testi-name-line {
  transform: scaleX(1);
  transition: transform 1s cubic-bezier(0.22, 1, 0.36, 1) 0.5s;
}

@media (prefers-reduced-motion: reduce) {
  .testi-heading::after,
  .testi-name-line {
    transform: scaleX(1);
    transition: none;
  }
  .testi-photo-wrap.is-in-view {
    animation: none;
  }
  .testi-photo-wrap,
  .testi-photo {
    transition: none;
  }
}

/* ---- Controls ---- */
.testi-controls {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 2.5rem;
}

.testi-prev,
.testi-next {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #ffffff;
  color: #000000;
  border: none;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s;
  flex-shrink: 0;
}

.testi-prev:hover,
.testi-next:hover {
  background: var(--color-primary-gradient);
  color: #ffffff;
}

.testi-dots {
  display: flex;
  gap: 8px;
  align-items: center;
}

.testi-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: transform 0.2s, background 0.2s;
}

.testi-dot.is-active {
  background: #ffffff;
  transform: scale(1.35);
}

/* ---- Responsive ---- */
@media (max-width: 700px) {
  .testi-heading {
    font-size: 1.5rem;
  }

  .testi-inner {
    flex-direction: column;
    text-align: center;
  }

  .testi-name-wrap {
    justify-content: center;
  }
}

/* =====================================================
   CTA SECTION
   ===================================================== */

.cta-outer {
  display: flex;
  align-items: stretch;
  background: var(--color-primary-gradient);
  background-attachment: fixed;
  min-height: 400px;
  margin-top: -1px;
  position: relative;
  margin: -1px 8%;
}

/* Black sweep layer — sits behind the flex items + the .cta-section's
   clip-path cut-aways, then sweeps in left→right when the section enters
   the viewport. Both .cta-left and the staircase notches in .cta-section
   reveal this layer simultaneously, turning the visible "shape" black. */
.cta-outer::before {
  content: '';
  position: absolute;
  inset: 0;
  background: #000000;
  clip-path: inset(0 100% 0 0);
  transition: clip-path 6s cubic-bezier(0.22, 1, 0.36, 1);
  z-index: 0;
  pointer-events: none;
}

.cta-outer.is-in-view::before {
  clip-path: inset(0 0 0 0);
}

/* ---- Left: transparent so the black sweep shows through ---- */
.cta-left {
  flex: 0 0 40%;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding-left: 0;
  background: transparent;
  position: relative;
  z-index: 1;
}

@media (prefers-reduced-motion: reduce) {
  .cta-outer::before {
    transition: none;
    clip-path: inset(0 0 0 0);
  }
}

/* ---- Right: white section with stepped left edge ---- */
.cta-section {
  flex: 0 0 69%;
  display: flex;
  align-items: stretch;
  background: var(--color-primary-gradient);
  background-attachment: fixed;
  clip-path: polygon(
    22% 0%,
    87% 0%,
    87% 100%,
    22% 100%,
    22% 82%,
    0% 82%,
    0% 18%,
    22% 18%
  );
  margin-top: -2px;
  position: relative;
  z-index: 1;
}

.cta-schedule-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2.2rem;
  background: var(--color-primary-gradient);
  color: #ffffff;
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 4px;
  letter-spacing: 0.02em;
  white-space: nowrap;
  transition: background 0.2s, transform 0.2s;
}

.cta-schedule-btn:hover {
  background: var(--color-primary-gradient-hover);
  transform: translateY(-2px);
}

/* ---- Content: logo + text + email form ---- */
.cta-right {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 3.5rem 4rem 3.5rem 6rem;
  background: transparent;
}

.cta-logo-wrap {
  margin-bottom: 1.75rem;
}

.cta-logo-img {
  max-height: 60px;
  width: auto;
  display: block;
}

.cta-offer-text {
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: #111111;
  line-height: 1.6;
  margin: 0 0 0.5rem;
  text-transform: uppercase;
}

.cta-touch-text {
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  font-weight: 400;
  color: #444444;
  margin: 0 0 1.75rem;
}

/* Email form */
.cta-email-form {
  display: flex;
  max-width: 440px;
}

.cta-email-input {
  flex: 1;
  padding: 0.9rem 1.25rem;
  background: #000000;
  color: #ffffff;
  border: none;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  outline: none;
}

.cta-email-input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.cta-email-submit {
  width: 56px;
  background: var(--color-primary-gradient);
  color: #000;
  border: none;
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  flex-shrink: 0;
}

.cta-form-msg {
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.6rem 1rem;
  border-radius: 4px;
  margin: 0 0 1rem;
  max-width: 440px;
}

.cta-form-msg--success {
  background: #e6f9f0;
  color: #1a7a4a;
  border: 1px solid #a3d9be;
}

.cta-form-msg--error {
  background: #fdecea;
  color: #c0392b;
  border: 1px solid #f5b7b1;
}

.cta-email-submit:hover {
  background: var(--color-primary-gradient-hover);
  color: #000;
}

/* ---- Responsive ---- */
@media (max-width: 900px) {
  /* Stack: Schedule button on top, newsletter below */
  .cta-outer {
    flex-direction: column;
    min-height: auto;
  }

  /* Left block spans full width */
  .cta-left {
    display: none;
    flex: none;
    width: 100%;
    min-height: 120px;
    padding: 87px 41px 0px 40px;
    justify-content: center;
    background: var(--color-primary-gradient);
    background-attachment: fixed;
  }

  .cta-outer {
    margin: 0;
  }

  /* Disable the desktop black sweep on mobile */
  .cta-outer::before {
    display: none;
  }

  /* Right block spans full width, remove the polygon cutout */
  .cta-section {
    flex: none;
    width: 100%;
    clip-path: none;
    margin-top: 0;
  }

  /* Remove the large left indent that was for the clip-path gap */
  .cta-right {
    padding: 2.5rem 2rem;
  }

  /* Logo sizing and centering */
  .cta-logo-wrap {
    display: flex;
    justify-content: center;
    margin-bottom: 1.75rem;
  }

  .cta-logo-img {
    max-height: 126px;
  }
}

@media (max-width: 600px) {
  .cta-right {
    padding: 2rem 1.25rem;
  }

  .cta-email-form {
    max-width: 100%;
  }

  .cta-schedule-btn {
    width: 100%;
    text-align: center;
    justify-content: center;
  }
}

/* =====================================================
   ABOUT — REVEAL-ON-SCROLL ANIMATIONS
   (Used by home about + dedicated about page sections)
   ===================================================== */

@keyframes anaya-fade-up {
  from { opacity: 0; transform: translate3d(0, 32px, 0); }
  to   { opacity: 1; transform: translate3d(0, 0,   0); }
}
@keyframes anaya-fade-left {
  from { opacity: 0; transform: translate3d(-40px, 0, 0); }
  to   { opacity: 1; transform: translate3d(0,     0, 0); }
}
@keyframes anaya-fade-right {
  from { opacity: 0; transform: translate3d(40px, 0, 0); }
  to   { opacity: 1; transform: translate3d(0,    0, 0); }
}
@keyframes anaya-zoom-in {
  from { opacity: 0; transform: scale(0.92); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes anaya-pulse {
  0%   { box-shadow: 0 0 0 0   rgba(216, 38, 128, 0.45); }
  70%  { box-shadow: 0 0 0 14px rgba(216, 38, 128, 0); }
  100% { box-shadow: 0 0 0 0   rgba(216, 38, 128, 0); }
}

/* Initial state — hidden until intersection observer flips the class. */
.anaya-anim {
  opacity: 0;
  will-change: opacity, transform;
}
.anaya-anim.is-in-view {
  animation: anaya-fade-up 0.85s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: var(--anim-delay, 0s);
}
.anaya-anim[data-anim="fade-left"].is-in-view  { animation-name: anaya-fade-left;  }
.anaya-anim[data-anim="fade-right"].is-in-view { animation-name: anaya-fade-right; }
.anaya-anim[data-anim="zoom-in"].is-in-view    { animation-name: anaya-zoom-in;    }

/* Honor user motion preferences. */
@media (prefers-reduced-motion: reduce) {
  .anaya-anim,
  .anaya-anim.is-in-view {
    opacity: 1;
    transform: none;
    animation: none;
  }
}

/* =====================================================
   ABOUT — HOVER EFFECTS (home + about page)
   ===================================================== */

/* --- Home about section --- */
.about-photo {
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1),
              filter 0.6s ease,
              box-shadow 0.6s ease;
}
.about-image-col:hover .about-photo {
  transform: scale(1.04) rotate(-0.5deg);
  filter: brightness(1.05);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.45);
}

.about-banner-text {
  transition: letter-spacing 0.6s ease, opacity 0.4s ease;
}
.about-banner:hover .about-banner-text {
  letter-spacing: 0.18em;
  opacity: 0.9;
}

.about-journey-line {
  transition: width 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.about-journey-row:hover .about-journey-line {
  width: 80px;
}

.about-cta-btn {
  transition: background 0.3s ease,
              transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.4s ease;
}
.about-cta-btn:hover {
  transform: translateX(6px) scale(1.08);
  animation: anaya-pulse 1.6s infinite;
}

/* --- Dedicated about page: HERO --- */
.abpg-photos {
  overflow: hidden;
}
.abpg-img-main {
  transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1),
              filter 0.7s ease;
}
.abpg-photos:hover .abpg-img-main {
  transform: scale(1.05);
  filter: brightness(1.05);
}

.abpg-info-row {
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  cursor: default;
}
.abpg-info-row:hover {
  transform: translateX(8px);
}
.abpg-icon {
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
              color 0.3s ease;
}
.abpg-info-row:hover .abpg-icon {
  transform: scale(1.18);
  color: var(--color-primary, #D82680);
}

.abpg-scroll-btn:hover {
  transform: translateY(4px) scale(1.1);
  animation: anaya-pulse 1.4s infinite;
}

/* --- Dedicated about page: WHY CHOOSE --- */
.abwhy-item {
  padding: 1.25rem 0.75rem;
  border-radius: 12px;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
              background 0.45s ease;
  cursor: default;
}
.abwhy-item:hover {
  transform: translateY(-10px);
  background: rgba(255, 255, 255, 0.06);
}
.abwhy-icon {
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}
.abwhy-item:hover .abwhy-icon {
  transform: scale(1.2) rotate(-6deg);
}
.abwhy-text {
  transition: color 0.4s ease;
}
.abwhy-item:hover .abwhy-text {
  color: #fff;
}

/* --- Dedicated about page: TWO COLUMN --- */
.ab2col-col {
  transition: filter 0.5s ease;
  overflow: hidden;
}
.ab2col-section:hover .ab2col-col:not(:hover) {
  filter: brightness(0.7);
}
.ab2col-box {
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.5s ease;
  border-radius: 8px;
}
.ab2col-col:hover .ab2col-box {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.3);
}

@media (prefers-reduced-motion: reduce) {
  .about-photo,
  .about-banner-text,
  .about-journey-line,
  .about-cta-btn,
  .abpg-img-main,
  .abpg-info-row,
  .abpg-icon,
  .abpg-scroll-btn,
  .abwhy-item,
  .abwhy-icon,
  .abwhy-text,
  .ab2col-col,
  .ab2col-box {
    transition: none !important;
    animation: none !important;
  }
}

/* =====================================================
   ABOUT PAGE — HERO SECTION
   ===================================================== */

.abpg-section {
  display: flex;
  align-items: stretch;
  width: 100%;
  min-height: 100vh;
  background: #000000;
  overflow: hidden;
  padding: 0 8%;
  box-sizing: border-box;
}

/* ---- Left: Two overlapping images ---- */
.abpg-photos {
  flex: 0 0 55%;
  position: relative;
  min-height: 520px;
}

.abpg-img-main {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.abpg-img-placeholder {
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.08);
}

/* ---- Right: Content ---- */
.abpg-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 60px 6% 60px 4%;
}

.abpg-heading {
  font-family: 'Senjalara Demo', 'Dancing Script', cursive;
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 800;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin: 0 0 1.75rem;
  line-height: 1.1;
}

/* Info rows (location / hours) */
.abpg-info-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.abpg-icon {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.abpg-info-text {
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.5;
}

/* Paragraph */
.abpg-paragraph {
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.8);
  margin: 1.25rem 0 2rem;
  max-width: 480px;
}

/* Scroll Down */
.abpg-scroll-row {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.abpg-scroll-label {
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.75);
  letter-spacing: 0.02em;
}

.abpg-scroll-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--color-primary-gradient);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: background 0.2s, transform 0.2s;
  flex-shrink: 0;
}

.abpg-scroll-btn:hover {
  background: var(--color-primary-gradient-hover);
  transform: translateY(2px);
}

/* ---- Responsive ---- */
@media (max-width: 960px) {
  .abpg-section {
    flex-direction: column;
  }

  .abpg-photos {
    flex: none;
    width: 100%;
    min-height: 380px;
  }

  .abpg-content {
    padding: 3rem 6%;
  }

  .abpg-heading {
    font-size: 2.4rem;
  }
}

@media (max-width: 600px) {
  .abpg-photos {
    min-height: 158px;
  }

  .abpg-heading {
    font-size: 1.9rem;
  }
}

/* =====================================================
   ABOUT PAGE — WHY CHOOSE SECTION
   ===================================================== */

.abwhy-section {
  position: relative;
  width: 100%;
  padding: 150px 8%;
  box-sizing: border-box;
  background-color: #888;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  background-attachment: scroll;
}

.abwhy-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgb(56 52 52 / 72%);
  z-index: 0;
}

.abwhy-container {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.abwhy-title {
  font-family: 'Senjalara Demo', 'Dancing Script', cursive;
  font-size: clamp(1.85rem, 4vw, 2.8rem);
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 3.5rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: center;
}

/* 3-column × 2-row grid */
.abwhy-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  row-gap: 3rem;
  column-gap: 2rem;
}

.abwhy-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
}

.abwhy-icon {
  width: 42px;
  height: 42px;
  object-fit: contain;
  display: block;
}

.abwhy-icon-placeholder {
  width: 42px;
  height: 42px;
  background: rgba(255,255,255,0.2);
  border-radius: 4px;
}

.abwhy-text {
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  font-weight: 400;
  color: #ffffff;
  line-height: 1.6;
  margin: 0;
  text-align: center;
}

/* Responsive */
@media (max-width: 700px) {
  .abwhy-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .abwhy-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .abwhy-section {
    position: relative;
    width: 100%;
    padding: 55px 8%;
    box-sizing: border-box;
    background-color: #888;
    background-size: fill;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: scroll;
  }
}

/* =====================================================
   ABOUT PAGE — TWO COLUMN SECTION
   ===================================================== */

.ab2col-section {
  display: flex;
  width: 100%;
  background: #000;
}

.ab2col-col {
  flex: 1;
  min-height: 580px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: #1a1a1a;
  padding: 3rem 0;
  box-sizing: border-box;
}

.ab2col-col:first-child {
  padding-left: 8%;
}

.ab2col-col:last-child {
  padding-right: 8%;
}

.ab2col-box {
  padding: 2.5rem 2rem;
}

.ab2col-box--white {
  background: #ffffff;
}

.ab2col-text {
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  line-height: 1.8;
  color: #ffffff;
  margin: 0;
}

.ab2col-text--dark {
  color: #333333;
}

@media (max-width: 768px) {
  .ab2col-section {
    flex-direction: column;
  }

  .ab2col-col {
    min-height: 380px;
    padding: 5rem 8%;
  }

  .ab2col-col:first-child {
    padding-bottom: 0;
  }

  .ab2col-col:last-child {
    padding-top: 0;
  }
}

/* =====================================================
   TEAM PAGE
   ===================================================== */
.team-section {
    background: #000;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.team-layout {
    position: relative;
    height: 720px;
    max-width: 1600px;
    margin: 0 auto;
    --thumb-w: 140px;
    --thumb-h: 200px;
    --thumb-gap: 14px;
    --thumbs-visible: 4;
}

/* --- Top-left: typography block --- */
.team-typography {
    position: absolute;
    left: 7%;
    top: 60px;
    z-index: 2;
    max-width: 420px;
}

.team-heading {
    margin: 0 0 28px;
    line-height: 1;
    display: flex;
    align-items: flex-start;
    gap: 6px;
}

.team-sub {
    font-family: 'Inter', sans-serif;
    font-size: 22px;
    font-weight: 300;
    color: #fff;
    letter-spacing: 0.5px;
    line-height: 1;
    padding-top: 6px;
}

.team-title {
    font-family: 'Lato', 'Inter', sans-serif;
    font-size: 120px;
    font-weight: 900;
    color: #fff;
    line-height: 0.87;
    letter-spacing: 4px;
    text-transform: uppercase;
}

.team-desc {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.55);
    max-width: 380px;
    margin: 0;
}

/* --- Bottom-left: thumbnail carousel --- */
.team-thumbs {
    position: absolute;
    bottom: 30px;
    left: 7%;
    width: calc(var(--thumb-w) * var(--thumbs-visible) + var(--thumb-gap) * (var(--thumbs-visible) - 1));
    height: var(--thumb-h);
    overflow: hidden;
    z-index: 2;
}

.team-thumbs-track {
    display: flex;
    gap: var(--thumb-gap);
    will-change: transform;
}

.team-thumb {
    width: var(--thumb-w);
    height: var(--thumb-h);
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    background: none;
    padding: 0;
    border: 2px solid transparent;
    flex-shrink: 0;
    transition: border-color 0.4s ease;
}

.team-thumb.is-active {
    border-color: rgba(255, 255, 255, 0.85);
}

.team-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: brightness(0.5) saturate(0.75);
    transition: filter 0.4s ease;
}

.team-thumb.is-active img {
    filter: brightness(1) saturate(1);
}

.team-thumb:hover img {
    filter: brightness(0.85) saturate(0.9);
}

/* --- Featured card (sits next to thumbs, height ≈ 3x thumb) --- */
.team-main-card {
    position: absolute;
    bottom: 30px;
    left: calc(7% + var(--thumb-w) * var(--thumbs-visible) + var(--thumb-gap) * var(--thumbs-visible) + 20px);
    width: 280px;
    height: calc(var(--thumb-h) * 3);
    border-radius: 16px;
    /* overflow stays VISIBLE so the bio text can extend past the right edge.
       The image is clipped separately by .team-main-img-wrap. */
    overflow: visible;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.65), 0 8px 24px rgba(0, 0, 0, 0.4);
    z-index: 3;
}

.team-main-img-wrap {
    position: absolute;
    inset: 0;
    overflow: hidden;
    border-radius: 16px;
}

.tm-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: opacity 0.6s ease;
}

.tm-a { z-index: 2; opacity: 1; }
.tm-b { z-index: 1; opacity: 0; }

/* Bottom overlay: gradient stays within the card; bio text is allowed to
   spill past the right edge (overflow visible). Vertical clipping is done
   on the bio itself via line-clamp. */
.team-main-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 110px 18px 20px;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0)    0%,
        rgba(0, 0, 0, 0.45) 45%,
        rgba(0, 0, 0, 0.78) 100%
    );
    z-index: 10;
    overflow: visible;
}

.team-main-overlay.is-fading .team-main-name,
.team-main-overlay.is-fading .team-main-bio {
    opacity: 0;
}

.team-main-name {
    display: block;
    font-family: 'Dancing Script', cursive;
    font-size: 26px;
    color: #fff;
    line-height: 1.2;
    margin-bottom: 6px;
    transition: opacity 0.3s ease;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

.team-main-bio {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.92);
    margin: 0;
    transition: opacity 0.3s ease;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.7);
    /* Wider than the card so the text spills past the right edge. */
    width: 460px;
    /* Clip vertically by line count instead of overlay max-height. */
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* --- Responsive --- */
@media (max-width: 1300px) {
    .team-layout {
        --thumbs-visible: 3;
    }
    .team-main-card { width: 260px; }
    .team-thumbs, .team-typography { left: 5%; }
    .team-main-card {
        left: calc(5% + var(--thumb-w) * var(--thumbs-visible) + var(--thumb-gap) * var(--thumbs-visible) + 20px);
    }
}

@media (max-width: 1024px) {
    .team-layout {
        --thumb-w: 120px;
        --thumb-h: 170px;
    }
    .team-title { font-size: 96px; }
    .team-main-card { width: 240px; }
}

@media (max-width: 900px) {
    .team-layout {
        height: auto;
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 60px 6% 60px;
        gap: 36px;
        --thumb-w: 110px;
        --thumb-h: 160px;
        --thumbs-visible: 3;
    }
    .team-typography,
    .team-main-card,
    .team-thumbs {
        position: relative;
        top: auto; right: auto; left: auto; bottom: auto;
    }
    .team-typography {
        width: 100%;
        max-width: 500px;
        text-align: center;
    }
    .team-heading { justify-content: center; }
    .team-desc { margin: 0 auto; }
    .team-main-card {
        width: 280px;
        overflow: hidden; /* re-clip on mobile so the bio doesn't escape */
    }
    .team-main-bio {
        width: auto;
    }
    .team-title { font-size: 72px; }
}

@media (max-width: 540px) {
    .team-layout {
        --thumb-w: 88px;
        --thumb-h: 130px;
        --thumbs-visible: 3;
    }
    .team-title { font-size: 56px; }
    .team-sub { font-size: 18px; }
    .team-main-card { width: 230px; }
}

/* =====================================================
   CONTACT PAGE
   ===================================================== */
.contact-section {
    background: #000;
    color: #fff;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    padding: 60px 6% 60px 0;
    align-items: stretch;
}

/* Left image */
.contact-left {
    position: relative;
    min-height: 600px;
}
.contact-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.contact-img-placeholder {
    background: #1a1a1a;
}

/* Right content */
.contact-right {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px 0;
}
.contact-heading {
    font-family: 'Senjalara Demo', 'Dancing Script', cursive;
    font-size: clamp(2.25rem, 4.4vw, 4.4rem);
    font-weight: 600;
    color: #fff;
    margin: 0 0 12px;
    line-height: 1.08;
    letter-spacing: -0.01em;
}
.contact-subtitle {
    font-family: 'Figtree', sans-serif;
    font-size: 16px;
    font-weight: 300;
    color: #fff;
    margin: 0 0 36px;
}
.contact-brand {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    font-size: 43px;
    background: var(--color-primary-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin: 0 0 6px;
    line-height: 1.2;
}
.contact-service {
    font-family: 'Lato', sans-serif;
    font-weight: 400;
    font-size: 36px;
    color: #fff;
    margin: 0 0 24px;
}

/* Gray box */
.contact-box {
    background: var(--color-primary-gradient);
    background-attachment: fixed;
    color: #000;
    width: 100%;
    max-width: 520px;
    padding: 28px 28px 22px;
    text-align: left;
    font-family: 'Figtree', sans-serif;
    font-size: 14px;
    line-height: 1.55;
}
.contact-box-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 12px;
}
.contact-box-icon {
    flex: 0 0 auto;
    margin-top: 3px;
    line-height: 0;
}
.contact-box-text {
    flex: 1;
}
.contact-box-heading {
    font-family: 'Figtree', sans-serif;
    font-weight: 700;
    font-size: 14px;
    color: #000;
    margin: 18px 0 4px;
}
.contact-box-intro,
.contact-box-outro {
    margin: 0 0 16px;
}
.contact-box-list {
    list-style: disc;
    padding-left: 22px;
    margin: 0 0 18px;
}
.contact-box-list li {
    margin-bottom: 8px;
}
.contact-box-list strong {
    font-weight: 700;
}
.contact-box-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(0,0,0,.15);
    padding-top: 14px;
    margin-top: 8px;
}
.contact-box-link {
    color: #000;
    text-decoration: none;
    font-size: 14px;
}
.contact-box-link:hover { text-decoration: underline; }

/* Responsive */
@media (max-width: 900px) {
    .contact-section {
        grid-template-columns: 1fr;
        padding: 0 0 40px;
        gap: 30px;
    }
    .contact-right { padding: 0 5%; }
    .contact-left { min-height: 420px; }
    .contact-heading { font-size: 44px; }
    .contact-brand   { font-size: 34px; }
    .contact-service { font-size: 28px; }
}

/* ----- Calendly Booking Section ----- */
.contact-calendly-section {
    background: #000;
    padding: 0 6% 80px;
}
.contact-calendly-inner {
    max-width: 1100px;
    margin: 0 auto;
}
.contact-calendly-inner .calendly-inline-widget {
    width: 100%;
}

@media (max-width: 900px) {
    .contact-calendly-section { padding: 0 5% 60px; }
}

/* =====================================================
   SENJALARA DEMO FONT
   ===================================================== */

@font-face {
    font-family: 'Senjalara Demo';
    src: url('../fonts/SenjalararDemo.woff2') format('woff2'),
         url('../fonts/SenjalararDemo.woff')  format('woff'),
         url('../fonts/SenjalararDemo.ttf')   format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

/* =====================================================
   SERVICES PAGE
   ===================================================== */

.srvpg-section {
    background: #000;
    padding: 80px 6% 100px;
}

.srvpg-header {
    text-align: center;
    margin-bottom: 60px;
}

.srvpg-title {
    font-family: 'Senjalara Demo', 'Dancing Script', cursive;
    font-style: normal;
    font-weight: 600;
    font-size: clamp(2.25rem, 4.4vw, 4.4rem);
    background: linear-gradient(135deg, #ac7031 0%, #e7aa51 35%, #ffe499 75%, #f0e4c2 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    margin: 0 0 20px;
    line-height: 1.08;
    letter-spacing: -0.01em;
}

.srvpg-subtitle {
    font-size: 16px;
    color: #ffffff;
    max-width: 580px;
    margin: 0 auto;
    line-height: 1.75;
}

/* ----- Collage grid ----- */
.srvpg-collage-wrap {
    max-width: 960px;
    margin: 0 auto;
}

.srvpg-collage {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-template-rows: repeat(11, 60px);
    gap: 8px;
}

@keyframes srvpg-zoom-in {
    from { transform: scale(0.7); opacity: 0; }
    to   { transform: scale(1);   opacity: 1; }
}

.srvpg-img {
    overflow: hidden;
    background: #111;
    position: relative;
    opacity: 0;
    animation: srvpg-zoom-in 1.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.srvpg-img-1 { animation-delay: 0.1s; }
.srvpg-img-2 { animation-delay: 0.3s; }
.srvpg-img-3 { animation-delay: 0.5s; }
.srvpg-img-4 { animation-delay: 0.7s; }
.srvpg-img-5 { animation-delay: 0.9s; }
.srvpg-img-6 { animation-delay: 1.1s; }
.srvpg-img-7 { animation-delay: 1.3s; }
.srvpg-img-8 { animation-delay: 1.5s; }
.srvpg-img-9 { animation-delay: 1.7s; }

.srvpg-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.srvpg-img:hover img {
    transform: scale(1.05);
}

.srvpg-img-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 28px 12px 12px;
    background: linear-gradient(to top, rgba(0,0,0,0.78) 0%, transparent 100%);
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    line-height: 1.3;
}

.srvpg-img[data-service] {
    cursor: pointer;
    transition: filter 0.25s, transform 0.25s;
}
.srvpg-img[data-service]:hover {
    filter: brightness(1.12);
    transform: scale(1.03);
    z-index: 10 !important;
}
.srvpg-img--active {
    outline: 3px solid #fff;
    outline-offset: -3px;
}

/* ----- Service card swipe animations ----- */
@keyframes srvpg-swipe-in-right {
    from { transform: translateX(100%); }
    to   { transform: translateX(0); }
}
@keyframes srvpg-swipe-in-left {
    from { transform: translateX(-100%); }
    to   { transform: translateX(0); }
}

.srvpg-swipe-in-right {
    animation: srvpg-swipe-in-right 0.55s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}
.srvpg-swipe-in-left {
    animation: srvpg-swipe-in-left  0.55s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

/* Scattered mosaic positions */
.srvpg-img-1 { grid-column: 4 / 7;  grid-row: 1 / 6;  z-index: 2; }
.srvpg-img-2 { grid-column: 7 / 11; grid-row: 1 / 4;  z-index: 1; }
.srvpg-img-3 { grid-column: 1 / 5;  grid-row: 2 / 7;  z-index: 3; }
.srvpg-img-4 { grid-column: 5 / 8;  grid-row: 4 / 8;  z-index: 4; }
.srvpg-img-5 { grid-column: 8 / 12; grid-row: 3 / 8;  z-index: 2; }
.srvpg-img-6 { grid-column: 1 / 4;  grid-row: 6 / 9;  z-index: 3; }
.srvpg-img-7 { grid-column: 4 / 8;  grid-row: 7 / 12; z-index: 3; }
.srvpg-img-8 { grid-column: 8 / 12; grid-row: 6 / 12; z-index: 1; }
.srvpg-img-9 { grid-column: 1 / 4;  grid-row: 9 / 12; z-index: 2; }

/* ----- Responsive ----- */
@media (max-width: 1024px) {
    .srvpg-section { padding: 70px 5% 90px; }
    .srvpg-header  { margin-bottom: 48px; }
    .srvpg-collage-wrap { max-width: 720px; }
    .srvpg-collage {
        grid-template-rows: repeat(11, 48px);
        gap: 6px;
    }
}

@media (max-width: 900px) {
    .srvpg-section { padding: 60px 5% 80px; }
    .srvpg-header  { margin-bottom: 40px; }
    .srvpg-subtitle { font-size: 15px; }
    .srvpg-collage-wrap { max-width: 100%; }
    .srvpg-collage {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: none;
        gap: 8px;
    }
    .srvpg-img-1, .srvpg-img-2, .srvpg-img-3, .srvpg-img-4,
    .srvpg-img-5, .srvpg-img-6, .srvpg-img-7, .srvpg-img-8, .srvpg-img-9 {
        grid-column: auto;
        grid-row: auto;
        height: clamp(180px, 32vw, 240px);
        z-index: 1;
    }
    .srvpg-img-label {
        padding: 22px 10px 10px;
        font-size: 12px;
        letter-spacing: 0.06em;
    }
}

@media (max-width: 600px) {
    .srvpg-section { padding: 50px 4% 70px; }
    .srvpg-subtitle { max-width: 100%; }
    .srvpg-collage { gap: 6px; }
    .srvpg-img-1, .srvpg-img-2, .srvpg-img-3, .srvpg-img-4,
    .srvpg-img-5, .srvpg-img-6, .srvpg-img-7, .srvpg-img-8, .srvpg-img-9 {
        height: clamp(150px, 42vw, 200px);
    }
    .srvpg-img-label {
        padding: 18px 8px 8px;
        font-size: 11px;
    }
}

@media (max-width: 380px) {
    .srvpg-img-1, .srvpg-img-2, .srvpg-img-3, .srvpg-img-4,
    .srvpg-img-5, .srvpg-img-6, .srvpg-img-7, .srvpg-img-8, .srvpg-img-9 {
        height: 140px;
    }
}

/* =====================================================
   SERVICE DETAIL CARDS
   ===================================================== */

.srvpg-cards-section {
    width: 100%;
    overflow: visible;
}

/* ----- Centered intro (title + description) above each service group ----- */
.srvpg-intro {
    text-align: center;
    background: #ffffff;
    padding: 64px 24px 72px;
    width: 100%;
    box-sizing: border-box;
}

.srvpg-intro-title {
    display: block;
    font-family: 'Playfair Display', 'Senjalara Demo', serif;
    font-style: italic;
    font-weight: 600;
    font-size: clamp(28px, 3.4vw, 44px);
    line-height: 1.15;
    color: #0a0a0a;
    letter-spacing: 0.01em;
    text-align: center;
    max-width: 920px;
    margin: 0 auto 18px;
}

.srvpg-intro-desc {
    display: block;
    font-family: 'Figtree', 'Inter', sans-serif;
    font-size: clamp(0.95rem, 1.05vw, 1.05rem);
    line-height: 1.7;
    color: #3a3a3a;
    text-align: center;
    max-width: 920px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .srvpg-intro { padding: 40px 18px 48px; }
    .srvpg-intro-title { font-size: clamp(24px, 6vw, 32px); margin-bottom: 14px; }
    .srvpg-intro-desc  { font-size: 0.95rem; }
}

/* ----- Row 1: photo left (white bg) + gray info right ----- */
.srvpg-card-row {
    display: flex;
    width: 100%;
    min-height: 480px;
    overflow: visible;
}

.srvpg-card-photo {
    flex: 0 0 50%;
    background: #fff;
    padding: 63px 0 40px 13%;
    position: relative;
    z-index: 2;
}

.srvpg-card-photo img {
    position: absolute;
    top: 63px;
    left: 26%;
    bottom: 40px;
    right: -3vw;
    object-fit: cover;
    display: block;
    width: 82%;
}

.srvpg-card-info {
    flex: 0 0 50%;
    background: var(--color-primary-gradient);
    background-size: 100vw 100vh;
    background-position: center center;
    background-repeat: no-repeat;
    padding: 112px 13% 60px 8%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    position: relative;
    z-index: 1;
    margin-top: -48px;
    overflow: visible !important;
}

.srvpg-card-title {
    font-family: 'Senjalara Demo', 'Dancing Script', cursive;
    font-weight: 400;
    font-size: 52px;
    color: #000;
    margin: 0 0 40px;
    line-height: 1.15;
}

/* ----- Price list ----- */
.srvpg-price-list {
    list-style: none;
    padding: 0;
    margin: 0;
    max-width: 520px;
}

.srvpg-price-item {
    display: flex;
    align-items: baseline;
    gap: 0;
    margin-bottom: 18px;
    color: #000;
    font-size: 15px;
    font-family: 'Inter', sans-serif;
}

.srvpg-price-item::before {
    content: '•';
    margin-right: 10px;
    flex-shrink: 0;
    color: #000;
}

.srvpg-price-name {
    white-space: nowrap;
    flex-shrink: 0;
    min-width: 180px;
}

.srvpg-price-dots {
    flex: 1;
    min-width: 30px;
    border-bottom: 1px dotted rgba(0, 0, 0, 0.5);
    margin: 0 10px;
    position: relative;
    top: -4px;
}

.srvpg-price-value {
    white-space: nowrap;
    flex-shrink: 0;
}

.srvpg-price-item--no-price .srvpg-price-name {
    white-space: normal;
    min-width: 0;
    flex: 1;
}

/* ----- Row 2: why choose left (white bg) + photo right (gray bg) ----- */
.srvpg-card-why {
    display: flex;
    width: 100%;
    min-height: 480px;
    overflow: hidden;
    background: var(--color-primary-gradient);
}

.srvpg-why-content {
    flex: 0 0 50%;
    padding: 125px 8% 60px 13%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    background: transparent;
}

.srvpg-why-title {
    font-family: 'Senjalara Demo', 'Dancing Script', cursive;
    font-weight: 400;
    font-size: 52px;
    color: #222;
    margin: 0 0 28px;
    line-height: 1.15;
}

.srvpg-why-points {
    list-style: disc;
    padding-left: 20px;
    margin: 0;
}

.srvpg-why-points li {
    margin-bottom: 12px;
    font-size: 15px;
    color: #333;
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
}

.srvpg-why-photo {
    flex: 0 0 49%;
    background: transparent;
    padding: 125px 11% 0px 113px;
    display: flex;
    align-items: stretch;
    overflow: hidden;
}

.srvpg-why-photo img {
    flex: 1;
    object-fit: cover;
    display: block;
    min-width: 0;
}

/* ----- Responsive ----- */
@media (max-width: 1024px) {
    .srvpg-card-row,
    .srvpg-card-why     { min-height: auto; }

    .srvpg-card-photo   { padding: 50px 0 32px 8%; }
    .srvpg-card-photo img { left: 18%; right: -2vw; width: 88%; }

    .srvpg-card-info    { padding: 90px 8% 50px 6%; }
    .srvpg-why-content  { padding: 100px 6% 50px 8%; }
    .srvpg-why-photo    { padding: 100px 8% 0 64px; }

    .srvpg-card-title   { font-size: clamp(32px, 4.5vw, 46px); }
    .srvpg-why-title    { font-size: clamp(32px, 4.5vw, 46px); }
}

@media (max-width: 900px) {
    .srvpg-card-row,
    .srvpg-card-why      { flex-direction: column; min-height: auto; }

    .srvpg-card-photo,
    .srvpg-why-photo     {
        flex: none;
        width: 100%;
        height: clamp(260px, 50vw, 360px);
        padding: 0;
    }

    /* Reset the absolute-positioned hero photo so it fills the stacked slot. */
    .srvpg-card-photo img {
        position: relative;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    .srvpg-why-photo img { width: 100%; height: 100%; object-fit: cover; }

    .srvpg-why-content,
    .srvpg-card-info     {
        flex: none;
        width: 100%;
        padding: 44px 6%;
        margin-top: 0;
    }

    .srvpg-card-why      { flex-direction: column-reverse; }

    .srvpg-card-title    { font-size: clamp(28px, 5.5vw, 40px); }
    .srvpg-why-title     { font-size: clamp(28px, 5.5vw, 40px); }

    /* Single-column price list on narrow screens. */
    .srvpg-price-name    { min-width: 0; flex-shrink: 1; }
}

@media (max-width: 540px) {
    .srvpg-card-photo,
    .srvpg-why-photo   { height: clamp(220px, 60vw, 280px); }
    .srvpg-card-info,
    .srvpg-why-content { padding: 36px 5%; }
    .srvpg-card-title  { font-size: 28px; }
    .srvpg-why-title   { font-size: 28px; }
    .srvpg-price-item,
    .srvpg-why-points li { font-size: 14px; }
    .srvpg-price-item  { flex-wrap: wrap; gap: 6px; }
    .srvpg-price-dots  { display: none; }
    .srvpg-price-value { margin-left: auto; }
}

@media (max-width: 380px) {
    .srvpg-card-title  { font-size: 24px; }
    .srvpg-why-title   { font-size: 24px; }
    .srvpg-card-info,
    .srvpg-why-content { padding: 30px 5%; }
}

/* =====================================================
   GALLERY PAGE — animations
===================================================== */
@keyframes gallpg-from-left {
    from { transform: translateX(-90%); opacity: 0; }
    to   { transform: translateX(0);    opacity: 1; }
}
@keyframes gallpg-from-right {
    from { transform: translateX(90%);  opacity: 0; }
    to   { transform: translateX(0);    opacity: 1; }
}
@keyframes gallpg-fade-up {
    from { transform: translateY(50px); opacity: 0; }
    to   { transform: translateY(0);    opacity: 1; }
}
@keyframes gallpg-zoom-in {
    from { transform: scale(0.78); opacity: 0; }
    to   { transform: scale(1);    opacity: 1; }
}

/* Hidden until JS triggers .gp-anim class */
.gallpg-left,
.gallpg-right,
.gallpg-title,
.gallpg-desc,
.gallpg-second-photo,
.gallpg-btn-wrap { opacity: 0; will-change: transform, opacity; }

.gallpg-left.gp-anim        { animation: gallpg-from-left  1s   cubic-bezier(0.25,0.46,0.45,0.94) forwards; }
.gallpg-right.gp-anim       { animation: gallpg-from-right 1s   cubic-bezier(0.25,0.46,0.45,0.94) forwards; }
.gallpg-title.gp-anim       { animation: gallpg-fade-up    0.7s ease forwards; }
.gallpg-desc.gp-anim        { animation: gallpg-fade-up    0.7s ease forwards; }
.gallpg-second-photo.gp-anim{ animation: gallpg-zoom-in    0.9s cubic-bezier(0.34,1.56,0.64,1)    forwards; }
.gallpg-btn-wrap.gp-anim    { animation: gallpg-fade-up    0.6s ease forwards; }

/* =====================================================
   GALLERY PAGE
===================================================== */
.gallpg-section {
    display: flex;
    width: 100%;
    min-height: 85vh;
    background: #000;
    overflow: hidden;
    position: relative;
    padding-bottom: 60px;
}

/* ---- Left: main image ---- */
.gallpg-left {
    flex: 0 0 52%;
    background: #000;
    padding: 40px 0 100px 8%;
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
}

.gallpg-main-photo {
    flex: 1;
    position: relative;
    margin-right: -40px;
}

.gallpg-main-photo img {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
}

/* ---- Buttons ---- */
.gallpg-btn-wrap {
    position: absolute;
    bottom: -35px;
    left: 15%;
    display: flex;
    align-items: stretch;
    gap: 0;
}

.gallpg-btn-primary {
    background: var(--color-primary-gradient);
    color: #fff;
    padding: 14px 36px;
    font-size: 15px;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    letter-spacing: 0.03em;
    transition: background 0.25s;
}

.gallpg-btn-primary:hover {
    background: var(--color-primary-gradient-hover);
    color: #fff;
}

.gallpg-btn-arrow {
    background: #fff;
    color: #333;
    padding: 14px 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: background 0.25s;
}

.gallpg-btn-arrow:hover { background: #e8e8e8; color: #000; }

/* ---- Right: gray panel ---- */
.gallpg-right {
    flex: 0 0 48%;
    background: var(--color-primary-gradient);
    background-attachment: fixed;
    position: relative;
    z-index: 1;
    padding: 55px 8% 0 10%;
    overflow: visible;
}

.gallpg-title {
    font-family: 'Senjalara Demo', 'Dancing Script', cursive;
    font-weight: 600;
    font-size: clamp(2.25rem, 4.4vw, 4.4rem);
    color: #000;
    margin: 0 0 28px;
    line-height: 1.08;
    letter-spacing: -0.01em;
}

.gallpg-desc {
    font-size: 15px;
    color: #000;
    line-height: 1.8;
    max-width: 440px;
    font-family: 'Inter', sans-serif;
}

/* ---- Second image: absolute to section, above both columns ---- */
.gallpg-second-photo {
    position: absolute;
    top: 40%;
    bottom: 0;
    left: 40%;
    width: 28%;
    overflow: hidden;
    z-index: 3;
}

.gallpg-second-photo img {
    width: 71%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ---- Responsive: tablet (≤ 900px) ---- */
@media (max-width: 900px) {
    .gallpg-section {
        flex-direction: column;
        min-height: auto;
    }
    .gallpg-left {
        flex: none;
        width: 100%;
        padding: 24px 5% 80px;
        min-height: 60vw;
    }
    .gallpg-main-photo {
        min-height: 55vw;
    }
    .gallpg-btn-wrap {
        left: 5%;
        bottom: -20px;
    }
    .gallpg-right {
        flex: none;
        width: 100%;
        padding: 40px 5% 200px;
    }
    .gallpg-second-photo {
        height: 180px;
        width: 55%;
        left: 61%;
        top: 24%;
    }
    .gallpg-title { font-size: 32px; }
}

/* ---- Responsive: large phones (≤ 640px) ---- */
@media (max-width: 640px) {
    .gallpg-left {
        padding: 20px 5% 70px;
        min-height: 65vw;
    }
    .gallpg-main-photo {
        min-height: 60vw;
    }
    .gallpg-right {
        padding: 30px 5% 180px;
    }
    .gallpg-second-photo {
        height: 180px;
        width: 55%;
        left: 61%;
        top: 24%;
    }
    .gallpg-title { font-size: 28px; }
    .gallpg-desc  { font-size: 14px; }
    .gallpg-btn-primary { padding: 12px 24px; font-size: 14px; }
}

/* ---- Responsive: small phones (≤ 430px) ---- */
@media (max-width: 430px) {
    .gallpg-left {
        padding: 16px 4% 60px;
        min-height: 70vw;
    }
    .gallpg-main-photo {
        min-height: 65vw;
    }
    .gallpg-btn-wrap {
        left: 4%;
    }
    .gallpg-right {
        padding: 62px 4% 41px;
    }
    .gallpg-second-photo {
        height: 180px;
        width: 38%;
        left: 73%;
        top: 29%;
    }
    .gallpg-title { font-size: 22px; }
    .gallpg-desc  { font-size: 13px; }
    .gallpg-btn-primary { padding: 10px 20px; font-size: 13px; }
}

/* =====================================================
   MASONRY GALLERY SECTION
===================================================== */

/* --- entrance animation keyframes --- */
@keyframes gallmas-fade-up {
    from { transform: translateY(40px); opacity: 0; }
    to   { transform: translateY(0);    opacity: 1; }
}

.gallmas-header,
.gallmas-item { opacity: 0; will-change: transform, opacity; }

.gallmas-header.gallmas-anim { animation: gallmas-fade-up 0.7s ease forwards; }
.gallmas-item.gallmas-anim   { animation: gallmas-fade-up 0.6s cubic-bezier(0.34,1.2,0.64,1) forwards; }

/* --- section --- */
.gallmas-section {
    background: #0a0a0a;
    padding: 80px 5% 90px;
}

.gallmas-header {
    text-align: center;
    margin-bottom: 52px;
}

.gallmas-title {
    font-family: 'Senjalara Demo', 'Dancing Script', cursive;
    font-weight: 400;
    font-size: 46px;
    color: #fff;
    margin: 0;
    line-height: 1.2;
}

/* --- CSS columns masonry --- */
.gallmas-grid {
    columns: 3;
    column-gap: 14px;
}

.gallmas-item {
    break-inside: avoid;
    margin-bottom: 14px;
    overflow: hidden;
    cursor: pointer;
    position: relative;
    border-radius: 2px;
}

.gallmas-item img {
    width: 100%;
    display: block;
    transition: transform 0.55s cubic-bezier(0.25,0.46,0.45,0.94);
}

.gallmas-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallmas-item:hover img          { transform: scale(1.07); }
.gallmas-item:hover .gallmas-overlay { opacity: 1; }

/* --- Lightbox --- */
.gallmas-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.92);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}
.gallmas-lightbox.is-open { display: flex; }

.gallmas-lb-wrap {
    max-width: 88vw;
    max-height: 88vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallmas-lb-wrap img {
    max-width: 100%;
    max-height: 88vh;
    object-fit: contain;
    display: block;
    box-shadow: 0 8px 48px rgba(0,0,0,0.8);
}

.gallmas-lb-close,
.gallmas-lb-prev,
.gallmas-lb-next {
    position: fixed;
    background: rgba(255,255,255,0.12);
    border: none;
    color: #fff;
    cursor: pointer;
    border-radius: 50%;
    width: 46px;
    height: 46px;
    font-size: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    z-index: 10000;
}
.gallmas-lb-close:hover,
.gallmas-lb-prev:hover,
.gallmas-lb-next:hover { background: rgba(255,255,255,0.28); }

.gallmas-lb-close { top: 24px; right: 24px; font-size: 30px; }
.gallmas-lb-prev  { left: 20px; top: 50%; transform: translateY(-50%); }
.gallmas-lb-next  { right: 20px; top: 50%; transform: translateY(-50%); }

/* --- Hidden items (View More) --- */
.gallmas-hidden {
    display: none;
}

/* --- View More button --- */
.gallmas-viewmore-wrap {
    text-align: center;
    margin-top: 48px;
}

.gallmas-viewmore-btn {
    display: inline-block;
    padding: 14px 44px;
    background: transparent;
    border: 2px solid #EDC650;
    color: #EDC650;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    cursor: pointer;
    border-radius: 2px;
    transition: background 0.3s ease, color 0.3s ease;
}

.gallmas-viewmore-btn:hover {
    background: var(--color-primary-gradient);
    color: #fff;
}

/* --- Responsive --- */
@media (max-width: 900px) {
    .gallmas-grid  { columns: 2; }
    .gallmas-title { font-size: 34px; }
}
@media (max-width: 540px) {
    .gallmas-grid  { columns: 1; }
    .gallmas-title { font-size: 26px; }
    .gallmas-section { padding: 50px 4% 60px; }
}

/* =====================================================
   ARCH GALLERY — Wave / Fan 3-D Cards
   Reference behaviour:
   • Cards sit in a straight horizontal row at same height
   • Left cards lean LEFT, right cards lean RIGHT (wave/fan)
   • On hover: ONLY that card straightens + floats up slightly
   • Siblings are completely unchanged — no size, no tilt, no dim
   ===================================================== */

/* ---------- Section shell ---------- */
.arch-gallery-section {
    position: relative;
    width: 100%;
    padding: 70px 0 90px;
    background: #f0eeeb;
    overflow: visible;
}

/* ---------- Perspective wrapper ---------- */
.arch-gallery-track {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    perspective: 1400px;
    perspective-origin: 50% 50%;
    padding: 50px 3vw 60px;
}

/* ---------- Individual card ---------- */
.arch-card {
    --i: 0;
    --total: 9;
    /* spread: leftmost = -4, centre = 0, rightmost = +4 */
    --spread: calc(var(--i) - (var(--total) - 1) / 2);

    position: relative;
    flex: 0 0 auto;
    width: 130px;
    height: 340px;
    border-radius: 18px;
    overflow: hidden;
    text-decoration: none;
    cursor: pointer;
    transform-style: preserve-3d;
    will-change: transform;

    /*  RESTING WAVE TILT
        spread negative (left) → rotateY negative → left face forward
        spread positive (right) → rotateY positive → right face forward
        This creates the spreading wave look from the reference.         */
    transform: rotateY(calc(var(--spread) * 8deg));

    /* Only the hovered card transitions — siblings stay perfectly still */
    transition: transform 0.45s cubic-bezier(0.34, 1.3, 0.64, 1),
                box-shadow 0.45s ease;

    box-shadow: 0 6px 22px rgba(0, 0, 0, 0.18);
    z-index: 1;
}

/* ---------- Hover: ONLY the hovered card reacts ---------- */
.arch-card:hover {
    transform:
        rotateY(0deg)
        translateY(-16px)
        translateZ(40px);
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.28);
    z-index: 20;
}

/* NO sibling rule — siblings must be completely unchanged */

/* ---------- Card image ---------- */
.arch-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    pointer-events: none;
    border-radius: inherit;
}

/* ---------- Placeholder (no image set) ---------- */
.arch-card-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(160deg, #d0cdc9 0%, #b8b5b0 100%);
    border-radius: inherit;
}

/* ---------- Overlay: title + button on hover ---------- */
.arch-card-overlay {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.70) 0%,
        rgba(0, 0, 0, 0.08) 55%,
        transparent 100%
    );
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    padding: 1.2rem 0.65rem 1.5rem;
    opacity: 0;
    transition: opacity 0.38s ease;
}

.arch-card:hover .arch-card-overlay {
    opacity: 1;
}

.arch-card-title {
    display: block;
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-align: center;
    margin-bottom: 0.6rem;
    line-height: 1.3;
}

.arch-card-btn {
    display: inline-block;
    padding: 0.38rem 1rem;
    background: var(--color-primary-gradient);
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border-radius: 5px;
    white-space: nowrap;
    transition: background 0.22s ease;
}

.arch-card-btn:hover {
    background: var(--color-primary-gradient-hover);
    color: #fff;
}

/* ---------- Responsive ---------- */
@media (max-width: 1280px) {
    .arch-card { width: 115px; height: 300px; }
    .arch-gallery-track { gap: 8px; }
}

@media (max-width: 1024px) {
    .arch-card { width: 100px; height: 265px; }
    .arch-gallery-track { gap: 6px; }
}

@media (max-width: 768px) {
    .arch-gallery-section { padding: 48px 0 58px; }
    .arch-gallery-track {
        gap: 5px;
        padding: 30px 2vw 40px;
        perspective: 900px;
    }
    .arch-card {
        width: 78px;
        height: 210px;
        border-radius: 13px;
    }
    .arch-card:hover {
        transform: rotateY(0deg) translateY(-10px) translateZ(25px);
    }
}

@media (max-width: 480px) {
    .arch-gallery-track { gap: 4px; padding: 20px 1vw 28px; }
    .arch-card {
        width: 56px;
        height: 155px;
        border-radius: 9px;
    }
    .arch-card-overlay { padding: 0.5rem 0.3rem 0.7rem; }
    .arch-card-title { font-size: 0.58rem; }
    .arch-card-btn  { font-size: 0.55rem; padding: 0.28rem 0.5rem; }
}


/* =====================================================
   CLIENT CASE STUDIES — Expanding Flex Gallery
   ===================================================== */

.ccs-section {
    padding: 90px 0 80px;
    background: #ffffff;
    overflow: hidden;
}

/* ---- Header ---- */
.ccs-header {
    text-align: center;
    max-width: 860px;
    margin: 0 auto 56px;
    padding: 0 1.5rem;
}

.ccs-title {
    font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
    font-size: clamp(1.85rem, 4vw, 2.8rem);
    font-weight: 800;
    color: #0a0a0a;
    line-height: 1.2;
    letter-spacing: -0.03em;
    margin-bottom: 1rem;
}

.ccs-desc {
    font-size: 1rem;
    line-height: 1.75;
    color: #555;
    max-width: 800px;
    margin: 0 auto;
}

/* ---- Gallery container ---- */
.ccs-gallery {
    display: flex;
    height: 450px;
    gap: 15px;
    padding: 0 40px;
    max-width: 1400px;
    margin: 0 auto;
    overflow: hidden;
}

/* ---- Individual card ---- */
.ccs-card {
    flex: 1;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: flex 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    outline: none;
}

.ccs-card:hover,
.ccs-card:focus {
    flex: 4;
}

/* ---- Background image ---- */
.ccs-card-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    filter: none;
    transform: scale(1);
}

.ccs-card:hover .ccs-card-img,
.ccs-card:focus .ccs-card-img {
    filter: none;
    transform: scale(1.04);
}

.ccs-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0) 55%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.ccs-card:hover::after,
.ccs-card:focus::after {
    opacity: 1;
}

/* ---- Text overlay ---- */
.ccs-card-overlay {
    position: absolute;
    bottom: 30px;
    left: 30px;
    right: 30px;
    z-index: 2;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease 0.25s,
                transform 0.4s ease 0.25s;
    pointer-events: none;
}

.ccs-card:hover .ccs-card-overlay,
.ccs-card:focus .ccs-card-overlay {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.ccs-card-label {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.65);
    margin-bottom: 0.4rem;
}

.ccs-card-title {
    font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
    font-size: clamp(1.1rem, 1.8vw, 1.5rem);
    font-weight: 700;
    color: #ffffff;
    line-height: 1.25;
    margin-bottom: 1rem;
    letter-spacing: -0.01em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ccs-card-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.55rem 1.4rem;
    background: #2b5cff;
    color: #ffffff;
    font-size: 0.82rem;
    font-weight: 600;
    border-radius: 6px;
    text-decoration: none;
    letter-spacing: 0.03em;
    transition: background 0.22s ease, transform 0.22s ease;
    white-space: nowrap;
}

.ccs-card-btn:hover {
    background: #1a44d9;
    color: #ffffff;
    transform: translateY(-1px);
}

/* ---- Responsive: mobile stacking ---- */
@media (max-width: 768px) {
    .ccs-section {
        padding: 60px 0 56px;
    }

    .ccs-header {
        margin-bottom: 36px;
    }

    .ccs-gallery {
        flex-direction: column;
        height: auto;
        padding: 0 1.25rem;
        gap: 12px;
    }

    .ccs-card {
        flex: none;
        height: 240px;
        width: 100%;
        border-radius: 10px;
    }

    .ccs-card:hover,
    .ccs-card:focus {
        flex: none;
    }

    .ccs-card-overlay {
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
        bottom: 20px;
        left: 20px;
        right: 20px;
    }

    .ccs-card-img {
        filter: brightness(0.55);
        transform: scale(1);
    }
}

@media (max-width: 480px) {
    .ccs-card {
        height: 200px;
    }

    .ccs-card-title {
        font-size: 1rem;
    }

    .ccs-card-btn {
        font-size: 0.75rem;
        padding: 0.45rem 1rem;
    }
}

/* =====================================================
   HAIRSTYLING DIPLOMA CANADA — PAGE BACKGROUND
   ===================================================== */

body.page-template-page-hairstyling-diploma-canada-template-php {
  background: #000000;
}

/* =====================================================
   HAIRSTYLING DIPLOMA CANADA — HERO SECTION
   Editorial cinema concept — curtain reveal, vertical rail,
   word-mask H1, pill CTA, scroll cue, infinite marquee strip.
   ===================================================== */

.hsd-hero {
  position: relative;
  width: 100%;
  height: 90vh;
  height: 90svh;
  background-color: #0a0a0a;
  overflow: hidden;
  isolation: isolate;
  font-family: 'Inter', sans-serif;
  color: #ffffff;
}

/* ---- Background image with slow Ken Burns ---- */
.hsd-hero-bg {
  position: absolute;
  inset: -6%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transform-origin: 55% 45%;
  will-change: transform;
  animation: hsd-hero-kenburns 60s ease-in-out infinite alternate;
  z-index: 0;
}

@keyframes hsd-hero-kenburns {
  0%   { transform: scale(1.02) translate3d(0, 0, 0); }
  100% { transform: scale(1.12) translate3d(-1.5%, -1.5%, 0); }
}

/* ---- Cinematic gradient overlay ---- */
.hsd-hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0.55) 0%,
      rgba(0, 0, 0, 0.18) 35%,
      rgba(0, 0, 0, 0.45) 70%,
      rgba(0, 0, 0, 0.85) 100%
    ),
    radial-gradient(120% 80% at 75% 65%, rgba(0, 0, 0, 0) 40%, rgba(0, 0, 0, 0.55) 100%);
}

/* ---- Curtain reveal — 5 vertical bands slide up on load ---- */
.hsd-hero-curtain {
  position: absolute;
  inset: 0;
  z-index: 50;
  display: flex;
  pointer-events: none;
}

.hsd-hero-curtain span {
  flex: 1;
  background: #0a0a0a;
  transform: translateY(0);
  animation: hsd-hero-curtain-up 1.15s cubic-bezier(0.86, 0, 0.07, 1) forwards;
}

.hsd-hero-curtain span:nth-child(1) { animation-delay: 0.05s; }
.hsd-hero-curtain span:nth-child(2) { animation-delay: 0.15s; }
.hsd-hero-curtain span:nth-child(3) { animation-delay: 0.25s; }
.hsd-hero-curtain span:nth-child(4) { animation-delay: 0.35s; }
.hsd-hero-curtain span:nth-child(5) { animation-delay: 0.45s; }

@keyframes hsd-hero-curtain-up {
  to { transform: translateY(-101%); }
}

/* ---- Vertical rail (left edge) ---- */
.hsd-hero-rail {
  position: absolute;
  top: 50%;
  left: clamp(1.25rem, 3vw, 2.5rem);
  transform-origin: left center;
  transform: translateY(-50%) rotate(-90deg);
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  white-space: nowrap;
  opacity: 0;
  animation: hsd-hero-rail-in 0.9s cubic-bezier(0.22, 1, 0.36, 1) 1.3s forwards;
}

.hsd-hero-rail-line {
  display: inline-block;
  width: 28px;
  height: 1px;
  background: rgba(255, 255, 255, 0.45);
}

@keyframes hsd-hero-rail-in {
  from { opacity: 0; transform: translateY(-50%) rotate(-90deg) translateX(-20px); }
  to   { opacity: 1; transform: translateY(-50%) rotate(-90deg) translateX(0); }
}

/* ---- Title block (bottom-right) ---- */
.hsd-hero-title-wrap {
  position: absolute;
  right: clamp(2rem, 6vw, 6rem);
  bottom: clamp(5.5rem, 14vh, 9rem);
  left: auto;
  max-width: min(820px, 78%);
  z-index: 4;
  text-align: right;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1.1rem;
}

.hsd-hero-kicker {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
  padding: 0.45rem 0.95rem;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  opacity: 0;
  transform: translateY(14px);
  animation: hsd-hero-fade-up 0.8s cubic-bezier(0.22, 1, 0.36, 1) 1.25s forwards;
}

.hsd-hero-title {
  font-family: 'Senjalara Demo', 'Dancing Script', cursive;
  font-size: clamp(1.95rem, 3.8vw, 3.6rem);
  font-weight: 600;
  color: #ffffff;
  line-height: 1.18;
  letter-spacing: -0.005em;
  margin: 0;
  text-shadow: 0 2px 22px rgba(0, 0, 0, 0.45);
}

/* Word-mask reveal — each word rises out of an overflow-hidden slot */
.hsd-hero-word {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
  line-height: 1;
  padding-bottom: 0.1em; /* descender clearance */
}

.hsd-hero-word-inner {
  display: inline-block;
  line-height: 1.18;
  transform: translateY(112%);
  animation: hsd-hero-word-rise 1s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: calc(0.07s * var(--w, 0) + 1.35s);
}

@keyframes hsd-hero-word-rise {
  to { transform: translateY(0); }
}

/* Pill CTA */
.hsd-hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.85rem 1.5rem 0.85rem 1.6rem;
  background: var(--color-primary-gradient);
  color: #000;
  font-family: 'Inter', sans-serif;
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 999px;
  margin-top: 0.4rem;
  opacity: 0;
  transform: translateY(14px);
  animation: hsd-hero-fade-up 0.85s cubic-bezier(0.22, 1, 0.36, 1) 1.95s forwards;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 12px 30px rgba(231, 170, 81, 0.42);
}

.hsd-hero-cta:hover {
  color: #000;
  background: var(--color-primary-gradient);
  transform: translateY(-2px);
  box-shadow: 0 18px 38px rgba(231, 170, 81, 0.55);
}

.hsd-hero-cta-arrow {
  display: inline-flex;
  width: 18px;
  height: 18px;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.hsd-hero-cta:hover .hsd-hero-cta-arrow {
  transform: translateX(4px);
}

.hsd-hero-cta-arrow svg {
  width: 100%;
  height: 100%;
}

@keyframes hsd-hero-fade-up {
  to { opacity: 1; transform: translateY(0); }
}

/* ---- Marquee strip (bottom edge) — sits above the rising intro panel ---- */
.hsd-hero-marquee {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 12;
  overflow: hidden;
  background: rgba(10, 10, 10, 0.78);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  opacity: 0;
  animation: hsd-hero-fade-up 0.9s cubic-bezier(0.22, 1, 0.36, 1) 2.05s forwards;
}

.hsd-hero-marquee-track {
  display: inline-flex;
  align-items: center;
  gap: 1.75rem;
  white-space: nowrap;
  padding: 16px 0;
  animation: hsd-hero-marquee-slide 36s linear infinite;
  will-change: transform;
}

.hsd-hero-marquee-item {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: #ffffff;
}

.hsd-hero-marquee-dot {
  color: var(--color-primary, #EDC650);
  font-size: 0.7rem;
  opacity: 0.9;
}

@keyframes hsd-hero-marquee-slide {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ---- Intro panel (sits inside hero, anchored to the bottom) ----
   Slides up from below on scroll. Covers the lower portion of the hero;
   the paragraph fades in once the panel is in place. The top edge has
   an animated two-layer water-wave effect. */
.hsd-hero-intro-panel {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 48%;
  background: #ffffff;
  z-index: 10;
  display: flex;
  align-items: center;
  padding: clamp(1.5rem, 4vh, 3rem) clamp(2rem, 6vw, 6rem);
  transform: translateY(100%);
  transition: transform 1.4s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

/* Water wave on top edge — two layered SVG paths drifting at different
   speeds for depth. Each path is two full wave cycles wide; translating
   by -50% repeats the shape seamlessly. */
.hsd-hero-intro-wave {
  position: absolute;
  top: -52px;
  left: 0;
  right: 0;
  height: 56px;
  pointer-events: none;
  overflow: hidden;
}

.hsd-hero-intro-wave-svg {
  position: absolute;
  top: 0;
  left: 0;
  display: block;
  width: 200%;
  height: 100%;
}

.hsd-hero-intro-wave-back {
  animation: hsd-intro-wave 12s linear infinite;
}

.hsd-hero-intro-wave-front {
  animation: hsd-intro-wave 7s linear infinite;
}

@keyframes hsd-intro-wave {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.hsd-hero.intro-revealed .hsd-hero-intro-panel {
  transform: translateY(0);
}

.hsd-hero-intro-panel-inner {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
}

.hsd-hero-intro-text {
  font-family: 'Figtree', 'Inter', sans-serif;
  font-size: clamp(1rem, 1.4vw, 1.25rem);
  font-weight: 400;
  line-height: 1.6;
  color: #1a1a1a;
  margin: 0;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 1.1s cubic-bezier(0.22, 1, 0.36, 1) 0.55s,
              transform 1.1s cubic-bezier(0.22, 1, 0.36, 1) 0.55s;
}

.hsd-hero.intro-revealed .hsd-hero-intro-text {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .hsd-hero-intro-panel,
  .hsd-hero-intro-text {
    transition: none;
    transform: none;
    opacity: 1;
  }
  .hsd-hero-intro-wave-back,
  .hsd-hero-intro-wave-front {
    animation: none;
  }
}

@media (max-width: 900px) {
  .hsd-hero-intro-panel {
    height: 58%;
    padding: 1.5rem 1.5rem;
  }
  .hsd-hero-intro-text {
    font-size: clamp(0.95rem, 3.6vw, 1.1rem);
    line-height: 1.55;
  }
}

/* ---- Reduced motion ---- */
@media (prefers-reduced-motion: reduce) {
  .hsd-hero-bg { animation: none; transform: none; inset: 0; }
  .hsd-hero-curtain { display: none; }
  .hsd-hero-rail,
  .hsd-hero-kicker,
  .hsd-hero-cta,
  .hsd-hero-marquee {
    animation: none;
    opacity: 1;
    transform: none;
  }
  .hsd-hero-rail {
    transform: translateY(-50%) rotate(-90deg);
  }
  .hsd-hero-word-inner { animation: none; transform: none; }
  .hsd-hero-marquee-track { animation-duration: 60s; }
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  .hsd-hero-title-wrap {
    max-width: 78%;
  }
}

@media (max-width: 900px) {
  .hsd-hero-rail { display: none; }

  .hsd-hero-title-wrap {
    left: 1.5rem;
    right: 1.5rem;
    bottom: clamp(6rem, 16vh, 9rem);
    max-width: none;
    text-align: left;
    align-items: flex-start;
  }

  .hsd-hero-title {
    font-size: clamp(1.55rem, 7vw, 2.6rem);
  }

  .hsd-hero-kicker {
    font-size: 0.66rem;
    padding: 0.4rem 0.85rem;
  }

  .hsd-hero-cta {
    padding: 0.8rem 1.3rem;
    font-size: 0.78rem;
  }

  .hsd-hero-marquee-item {
    font-size: 0.7rem;
    letter-spacing: 0.28em;
  }

}

/* =====================================================
   HAIRSTYLING DIPLOMA — PROGRAM OVERVIEW (auto-scroll slider)
   ===================================================== */

.hsd-program-overview {
  position: relative;
  background: #000000;
  padding: clamp(80px, 12vh, 140px) 0 clamp(96px, 14vh, 160px);
  overflow: hidden;
}

.hsd-po-header {
  text-align: center;
  margin-bottom: clamp(40px, 6vh, 70px);
  padding: 0 8%;
}

.hsd-po-heading {
  font-family: 'Senjalara Demo', 'Dancing Script', cursive;
  font-size: clamp(2.4rem, 4.5vw, 4rem);
  font-weight: 600;
  color: #ffffff;
  margin: 0;
  padding-bottom: 0.18em;
  letter-spacing: -0.005em;
  line-height: 1.35;
}

/* Track wrap — masks edges so cards fade in/out gracefully */
.hsd-po-track-wrap {
  position: relative;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 6%, #000 94%, transparent 100%);
          mask-image: linear-gradient(to right, transparent 0%, #000 6%, #000 94%, transparent 100%);
}

.hsd-po-track {
  display: flex;
  gap: 20px;
  width: max-content;
  padding-left: 20px;
  animation: hsd-po-slide 22s linear infinite;
  will-change: transform;
}

/* Pause continuous slide when the user is hovering any card */
.hsd-po-track-wrap:hover .hsd-po-track {
  animation-play-state: paused;
}

@keyframes hsd-po-slide {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(calc(-50% - 10px), 0, 0); }
}

/* Image cards — clean (no border, no shadow). Centered/hover card
   blurs the image and reveals a label + value overlay. */
.hsd-po-card {
  flex-shrink: 0;
  position: relative;
  display: block;
  width: clamp(240px, 22vw, 320px);
  height: clamp(220px, 20vw, 280px);
  border-radius: 16px;
  overflow: hidden;
  background: #1a1a1a;
  isolation: isolate;
}

.hsd-po-card-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: filter 0.55s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Text is hidden by default — only the hovered card or the centered card
   shows its label and value. The gradient also fades in to keep text
   legible against busy imagery. */
.hsd-po-card-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  text-align: left;
  padding: 1.25rem 1.4rem 1.4rem;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0)   30%,
    rgba(0, 0, 0, 0.6) 75%,
    rgba(0, 0, 0, 0.88) 100%
  );
  opacity: 0;
  transition: opacity 0.45s ease;
  z-index: 2;
  pointer-events: none;
}

.hsd-po-card:hover .hsd-po-card-overlay,
.hsd-po-card.is-center .hsd-po-card-overlay {
  opacity: 1;
}

.hsd-po-card:hover .hsd-po-card-img,
.hsd-po-card.is-center .hsd-po-card-img {
  filter: blur(2px) brightness(0.78);
  transform: scale(1.04);
}

.hsd-po-card-label {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78);
  margin-bottom: 0.5rem;
  opacity: 0;
  transform: translateY(10px);
  transition: color 0.4s ease,
              opacity 0.45s ease 0.05s,
              transform 0.5s cubic-bezier(0.22, 1, 0.36, 1) 0.05s;
}

.hsd-po-card-label::before {
  content: '';
  display: inline-block;
  width: 22px;
  height: 1px;
  background: currentColor;
  transition: background 0.4s ease, width 0.4s ease;
}

.hsd-po-card:hover .hsd-po-card-label,
.hsd-po-card.is-center .hsd-po-card-label {
  color: var(--color-primary, #EDC650);
  opacity: 1;
  transform: translateY(0);
}

.hsd-po-card:hover .hsd-po-card-label::before,
.hsd-po-card.is-center .hsd-po-card-label::before {
  width: 36px;
}

.hsd-po-card-value {
  font-family: 'Figtree', 'Inter', sans-serif;
  font-size: clamp(1rem, 1.3vw, 1.18rem);
  font-weight: 600;
  color: #ffffff;
  line-height: 1.35;
  letter-spacing: -0.005em;
  margin: 0;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.5);
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s ease 0.15s,
              transform 0.55s cubic-bezier(0.22, 1, 0.36, 1) 0.15s;
}

.hsd-po-card:hover .hsd-po-card-value,
.hsd-po-card.is-center .hsd-po-card-value {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .hsd-po-track { animation: none; }
  .hsd-po-card-img { transition: none; }
}

@media (max-width: 768px) {
  .hsd-po-card {
    width: 220px;
    height: 200px;
  }
  .hsd-po-track {
    gap: 14px;
    padding-left: 14px;
    animation-duration: 36s;
  }
  @keyframes hsd-po-slide {
    from { transform: translate3d(0, 0, 0); }
    to   { transform: translate3d(calc(-50% - 7px), 0, 0); }
  }
}

/* =====================================================
   HAIRSTYLING DIPLOMA — INDUSTRY COLLABORATION
   ===================================================== */

.hsd-industry {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #0a0a0a;
  isolation: isolate;
}

/* Fixed background image — stays put while the user scrolls. */
.hsd-industry-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  z-index: 0;
}

/* Left-to-right dark fade so the text stays readable on the left edge,
   while the photo dominates the right side of the frame. */
.hsd-industry-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0.85) 0%,
    rgba(0, 0, 0, 0.6)  35%,
    rgba(0, 0, 0, 0.15) 70%,
    rgba(0, 0, 0, 0)    100%
  );
}

.hsd-industry-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: clamp(80px, 14vh, 160px) clamp(2rem, 8vw, 8rem);
}

.hsd-industry-content {
  max-width: 620px;
  color: #ffffff;
  /* Blur-to-clear reveal: starts blurred + faded, sharpens once in view. */
  filter: blur(18px);
  opacity: 0;
  transform: translateY(30px);
  transition: filter 1.6s cubic-bezier(0.22, 1, 0.36, 1),
              opacity 1.6s cubic-bezier(0.22, 1, 0.36, 1),
              transform 1.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.hsd-industry.is-in-view .hsd-industry-content {
  filter: blur(0);
  opacity: 1;
  transform: translateY(0);
}

.hsd-industry-heading {
  font-family: 'Senjalara Demo', 'Dancing Script', cursive;
  font-weight: 600;
  font-size: clamp(2.6rem, 5.6vw, 5rem);
  line-height: 1.05;
  letter-spacing: -0.005em;
  color: #ffffff;
  margin: 0 0 1.6rem;
}

.hsd-industry-heading-main,
.hsd-industry-heading-alt {
  display: block;
}

.hsd-industry-heading-alt {
  font-weight: 400;
  color: #ffffff;
  margin-top: 0.05em;
}

.hsd-industry-desc {
  font-family: 'Figtree', 'Inter', sans-serif;
  font-size: clamp(1rem, 1.2vw, 1.15rem);
  font-weight: 400;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.82);
  margin: 0;
  max-width: 540px;
}

@media (prefers-reduced-motion: reduce) {
  .hsd-industry-content {
    filter: none;
    opacity: 1;
    transform: none;
    transition: none;
  }
}

@media (max-width: 900px) {
  .hsd-industry {
    min-height: 80vh;
  }
  .hsd-industry-bg {
    /* Fixed backgrounds are unreliable on mobile — fall back to scroll. */
    background-attachment: scroll;
  }
  .hsd-industry-overlay {
    background: linear-gradient(
      180deg,
      rgba(0, 0, 0, 0.55) 0%,
      rgba(0, 0, 0, 0.7) 100%
    );
  }
  .hsd-industry-inner {
    padding: clamp(72px, 14vh, 120px) 1.5rem;
  }
  .hsd-industry-heading {
    font-size: clamp(2.2rem, 9vw, 3.5rem);
  }
  .hsd-industry-desc {
    font-size: 1rem;
  }
}

/* =====================================================
   HAIRSTYLING DIPLOMA — COURSE STRUCTURE (floating cards)
   ===================================================== */

.hsd-course-structure {
  position: relative;
  background: #000000;
  color: #ffffff;
  padding: clamp(60px, 8vh, 100px) 8%;
  overflow: hidden;
  min-height: 100vh;
  height: 100vh;
  isolation: isolate;
}

/* Full-bleed water-wave background layer (turbulence filter applied via JS) */
.hsd-cs-decor {
  position: absolute;
  inset: -10%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.hsd-cs-decor-blob {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(45% 38% at 22% 28%, rgba(231, 170, 81, 0.65) 0%, rgba(231, 170, 81, 0) 70%),
    radial-gradient(50% 42% at 78% 72%, rgba(255, 228, 153, 0.55) 0%, rgba(255, 228, 153, 0) 70%),
    radial-gradient(40% 35% at 50% 50%, rgba(240, 228, 194, 0.45) 0%, rgba(240, 228, 194, 0) 70%),
    radial-gradient(38% 32% at 12% 82%, rgba(172, 112, 49, 0.40) 0%, rgba(172, 112, 49, 0) 70%),
    radial-gradient(38% 32% at 88% 18%, rgba(255, 228, 153, 0.40) 0%, rgba(255, 228, 153, 0) 70%);
  will-change: transform, opacity;
  transform: translateZ(0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  animation: hsd-cs-bg-drift 22s ease-in-out infinite alternate;
  -webkit-animation: hsd-cs-bg-drift 22s ease-in-out infinite alternate;
}

@keyframes hsd-cs-bg-drift {
  0%   { transform: translate3d(-2%, -1%, 0) scale(1);    opacity: 0.95; }
  50%  { transform: translate3d( 2%,  1%, 0) scale(1.04); opacity: 1;    }
  100% { transform: translate3d(-1%,  2%, 0) scale(1.02); opacity: 0.92; }
}
@-webkit-keyframes hsd-cs-bg-drift {
  0%   { -webkit-transform: translate3d(-2%, -1%, 0) scale(1);    opacity: 0.95; }
  50%  { -webkit-transform: translate3d( 2%,  1%, 0) scale(1.04); opacity: 1;    }
  100% { -webkit-transform: translate3d(-1%,  2%, 0) scale(1.02); opacity: 0.92; }
}

/* Center block */
.hsd-cs-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  width: min(620px, 50vw);
  text-align: center;
}

.hsd-cs-heading {
  font-family: 'Senjalara Demo', 'Dancing Script', cursive;
  font-weight: 600;
  font-size: clamp(2.2rem, 4.6vw, 4rem);
  line-height: 1.05;
  color: #ffffff;
  margin: 0 0 0.85rem;
  letter-spacing: -0.005em;
}

.hsd-cs-subheading {
  font-family: 'Figtree', 'Inter', sans-serif;
  font-weight: 600;
  font-size: clamp(1rem, 1.45vw, 1.3rem);
  line-height: 1.4;
  color: #ffffff;
  margin: 0 0 0.9rem;
  letter-spacing: -0.005em;
}

.hsd-cs-intro {
  font-family: 'Figtree', 'Inter', sans-serif;
  font-size: clamp(0.92rem, 1vw, 1.05rem);
  font-weight: 400;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.72);
  margin: 0 auto;
  max-width: 540px;
}

/* Floating cards — positioned absolutely around the centre.
   Each card has a --pullX / --pullY that points back to the section
   centre. Initially the card is translated toward that point with
   scale(0.25) so all six cards visually stack at the centre. When
   .is-in-view fires, the translate clears and they "float out" to
   their natural scattered positions, then continue with a slow
   vertical bob. */
.hsd-cs-card {
  position: absolute;
  z-index: 3;
  width: clamp(220px, 20vw, 295px);
  opacity: 0;
  /* --fy is updated by the float animation once it kicks in */
  --fy: 0px;
  transform: translate(calc(var(--pullX, 0px)), calc(var(--pullY, 0px) + var(--fy))) scale(0.25);
  transition: opacity 1.8s cubic-bezier(0.22, 1, 0.36, 1),
              transform 2.6s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: calc(0.25s * var(--i, 0));
  will-change: transform, opacity;
}

.hsd-course-structure.is-in-view .hsd-cs-card {
  opacity: 1;
  transform: translate(0px, var(--fy)) scale(1);
  /* Slow continuous bob — starts after the entry has finished. */
  animation: hsd-cs-float 16s ease-in-out infinite alternate;
  animation-delay: calc(3.5s + 0.5s * var(--i, 0));
}

@keyframes hsd-cs-float {
  0%   { transform: translate(0px, 0px) scale(1); }
  100% { transform: translate(0px, -12px) scale(1); }
}

.hsd-cs-card-inner {
  position: relative;
  padding: 1rem 1.05rem 1.05rem;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.4),
              0 4px 12px rgba(0, 0, 0, 0.25);
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  overflow: hidden;
}

/* Glow sweep that animates across the card on hover. */
.hsd-cs-card-inner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    115deg,
    rgba(231, 170, 81, 0) 0%,
    rgba(231, 170, 81, 0.22) 45%,
    rgba(231, 170, 81, 0) 90%
  );
  transform: translateX(-110%);
  transition: transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
  z-index: 0;
}

.hsd-cs-card-inner > * { position: relative; z-index: 1; }

.hsd-cs-card:hover .hsd-cs-card-inner {
  transform: translateY(-8px) scale(1.04);
  box-shadow: 0 24px 56px rgba(231, 170, 81, 0.45),
              0 6px 18px rgba(0, 0, 0, 0.35);
}

.hsd-cs-card:hover .hsd-cs-card-inner::before {
  transform: translateX(110%);
}

.hsd-cs-card:hover .hsd-cs-card-icon img {
  transform: rotate(-6deg) scale(1.1);
}

.hsd-cs-card-icon {
  width: 44px;
  height: 44px;
  margin: 0 0 0.55rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(231, 170, 81, 0.35), rgba(255, 228, 153, 0.15));
}

.hsd-cs-card-icon img {
  max-width: 30px;
  max-height: 30px;
  display: block;
  object-fit: contain;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Three clean horizontal rows: top, middle, bottom. Cards are pulled
   in toward the centre so they sit just outside the heading column.
   Pull offsets keep the entry animation converging to the middle. */
.hsd-cs-card--1 { top: 5%;     left:  6%;   --pullX:  44vw; --pullY:  45vh; }
.hsd-cs-card--2 { top: 5%;     right: 6%;   --pullX: -44vw; --pullY:  45vh; }
.hsd-cs-card--3 { top: 40%;    left:  1.5%; --pullX:  48vw; --pullY:  10vh; }
.hsd-cs-card--4 { top: 40%;    right: 1.5%; --pullX: -48vw; --pullY:  10vh; }
.hsd-cs-card--5 { bottom: 5%;  left:  6%;   --pullX:  44vw; --pullY: -45vh; }
.hsd-cs-card--6 { bottom: 5%;  right: 6%;   --pullX: -44vw; --pullY: -45vh; }

/* Card content */
.hsd-cs-card-num { display: none; }

.hsd-cs-card-title {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: clamp(0.88rem, 1vw, 1rem);
  color: #1a1a1a;
  margin: 0 0 0.35rem;
  letter-spacing: -0.005em;
}

.hsd-cs-card-desc {
  font-family: 'Figtree', 'Inter', sans-serif;
  font-size: 0.76rem;
  font-weight: 400;
  line-height: 1.45;
  color: #4d4d4d;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (prefers-reduced-motion: reduce) {
  .hsd-cs-card {
    transition: none;
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 1024px) {
  .hsd-cs-card { width: clamp(195px, 22vw, 250px); }
  .hsd-cs-card--1 { top: 4%;    left:  3%; --pullX:  46vw; --pullY:  45vh; }
  .hsd-cs-card--2 { top: 4%;    right: 3%; --pullX: -46vw; --pullY:  45vh; }
  .hsd-cs-card--3 { top: 40%;   left:  1%; --pullX:  48vw; --pullY:  10vh; }
  .hsd-cs-card--4 { top: 40%;   right: 1%; --pullX: -48vw; --pullY:  10vh; }
  .hsd-cs-card--5 { bottom: 4%; left:  3%; --pullX:  46vw; --pullY: -45vh; }
  .hsd-cs-card--6 { bottom: 4%; right: 3%; --pullX: -46vw; --pullY: -45vh; }
}

@media (max-width: 768px) {
  .hsd-course-structure {
    min-height: 0;
    height: auto;
    padding: 80px 0;
    overflow: hidden;
  }
  .hsd-cs-center {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    width: auto;
    padding: 0 1.5rem 40px;
  }
  /* Default fallback: stack cards vertically. JS swaps to a two-row marquee. */
  .hsd-cs-card {
    position: relative;
    width: 100%;
    max-width: 480px;
    margin: 14px auto 0;
    top: auto !important;
    bottom: auto !important;
    left: auto !important;
    right: auto !important;
    transform: translateY(30px) scale(0.96);
    --pullX: 0;
    --pullY: 0;
  }
  .hsd-course-structure.is-in-view .hsd-cs-card {
    transform: translateY(0) scale(1);
    animation: none;
  }

  /* ----- Mobile two-row auto-scroll marquee ----- */
  .hsd-cs-rows {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 16px;
  }
  .hsd-cs-row {
    width: 100%;
    overflow: hidden;
    mask-image: linear-gradient(to right, transparent 0, #000 6%, #000 94%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 6%, #000 94%, transparent 100%);
  }
  .hsd-cs-row-track {
    display: flex;
    gap: 14px;
    width: max-content;
    will-change: transform;
  }
  .hsd-cs-row--ltr .hsd-cs-row-track {
    animation: hsd-cs-marquee-right 24s linear infinite;
  }
  .hsd-cs-row--rtl .hsd-cs-row-track {
    animation: hsd-cs-marquee-left 24s linear infinite;
  }
  .hsd-cs-row:hover .hsd-cs-row-track {
    animation-play-state: paused;
  }
  /* Override the stacked-card defaults when cards live inside a row. */
  .hsd-cs-row .hsd-cs-card {
    flex: 0 0 auto;
    width: 260px;
    max-width: 260px;
    margin: 0;
    transform: none !important;
    animation: none !important;
    top: auto !important; bottom: auto !important;
    left: auto !important; right: auto !important;
  }
}

@keyframes hsd-cs-marquee-right {
  from { transform: translate3d(-50%, 0, 0); }
  to   { transform: translate3d(0, 0, 0); }
}
@keyframes hsd-cs-marquee-left {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-50%, 0, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .hsd-cs-row--ltr .hsd-cs-row-track,
  .hsd-cs-row--rtl .hsd-cs-row-track {
    animation: none !important;
  }
}


/* =====================================================
   HAIRSTYLING DIPLOMA — FAQ
   ===================================================== */

.hsd-faq {
  position: relative;
  background: #0e0e0e;
  color: #ffffff;
  padding: clamp(80px, 12vh, 140px) clamp(20px, 6vw, 90px);
  overflow: hidden;
  isolation: isolate;
}

.hsd-faq::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 50% at 12% 18%, rgba(231, 170, 81, 0.18) 0%, rgba(231, 170, 81, 0) 70%),
    radial-gradient(50% 40% at 88% 82%, rgba(255, 228, 153, 0.14) 0%, rgba(255, 228, 153, 0) 70%);
  pointer-events: none;
  z-index: 0;
}

.hsd-faq-inner {
  position: relative;
  z-index: 1;
  max-width: 1180px;
  margin: 0 auto;
}

/* Giant decorative "fAQ" letters behind the content */
.hsd-faq-mark {
  position: absolute;
  top: -2vw;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: clamp(20px, 4vw, 60px);
  width: min(900px, 90%);
  pointer-events: none;
  z-index: 0;
  line-height: 0.9;
  user-select: none;
}

.hsd-faq-mark-letter {
  font-family: 'Bodoni Moda', 'Playfair Display', 'Cormorant Garamond', Georgia, serif;
  font-weight: 400;
  font-size: clamp(180px, 28vw, 420px);
  color: rgba(232, 226, 214, 0.32);
  text-shadow: 0 0 30px rgba(232, 226, 214, 0.10);
  letter-spacing: -0.04em;
  line-height: 1;
  /* Entrance state: letters start off-screen above, rotated, transparent. */
  opacity: 0;
  transform: translateY(-110%) rotate(-14deg) scale(0.6);
  transition: opacity 1.1s cubic-bezier(0.22, 1, 0.36, 1),
              transform 1.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.hsd-faq.is-in-view .hsd-faq-mark-letter--f,
.hsd-faq.is-in-view .hsd-faq-mark-letter--a,
.hsd-faq.is-in-view .hsd-faq-mark-letter--q {
  opacity: 1;
  transform: translateY(0) rotate(0deg) scale(1);
}
.hsd-faq.is-in-view .hsd-faq-mark-letter--f { transition-delay: 0.05s; }
.hsd-faq.is-in-view .hsd-faq-mark-letter--a { transition-delay: 0.25s; }
.hsd-faq.is-in-view .hsd-faq-mark-letter--q { transition-delay: 0.45s; }

/* After landing, the letters gently bob to feel alive. */
.hsd-faq.is-in-view .hsd-faq-mark-letter--f { animation: hsd-faq-float-f 9s ease-in-out 1.7s infinite alternate; }
.hsd-faq.is-in-view .hsd-faq-mark-letter--a { animation: hsd-faq-float-a 11s ease-in-out 1.9s infinite alternate; }
.hsd-faq.is-in-view .hsd-faq-mark-letter--q { animation: hsd-faq-float-q 10s ease-in-out 2.1s infinite alternate; }

@keyframes hsd-faq-float-f {
  0%   { transform: translateY(0)    scale(1); }
  100% { transform: translateY(-8px) scale(1.01); }
}
@keyframes hsd-faq-float-a {
  0%   { transform: translateY(0)    scale(1); }
  100% { transform: translateY(-8px) scale(1.01); }
}
@keyframes hsd-faq-float-q {
  0%   { transform: translateY(0)    scale(1); }
  100% { transform: translateY(-8px) scale(1.01); }
}

/* Header — script eyebrow + display heading */
.hsd-faq-head {
  position: relative;
  z-index: 2;
  text-align: right;
  margin: 0 0 clamp(60px, 8vh, 110px);
  padding-right: clamp(10px, 6vw, 80px);
  padding-top: clamp(40px, 6vw, 90px);
}

.hsd-faq-eyebrow {
  display: inline-block;
  font-family: 'Allura', 'Dancing Script', 'Great Vibes', cursive;
  font-size: clamp(2rem, 3.4vw, 3.4rem);
  font-weight: 400;
  color: rgba(232, 226, 214, 0.85);
  line-height: 1;
  margin: 0 0 0.4rem;
  letter-spacing: 0.01em;
  /* Entrance: handwritten left-to-right reveal via clip-path. */
  clip-path: inset(0 100% 0 0);
  opacity: 0;
  transition: clip-path 1.2s cubic-bezier(0.65, 0, 0.35, 1) 0.65s,
              opacity 0.4s ease 0.65s;
}

.hsd-faq.is-in-view .hsd-faq-eyebrow {
  clip-path: inset(0 0 0 0);
  opacity: 1;
}

.hsd-faq-heading {
  font-family: 'Cormorant Garamond', 'Playfair Display', Georgia, serif;
  font-weight: 300;
  font-size: clamp(2rem, 3.4vw, 3.2rem);
  color: rgba(232, 226, 214, 0.95);
  line-height: 1.1;
  margin: 0;
  letter-spacing: 0.005em;
  /* Entrance: slide in from the right + fade. */
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1) 1.4s,
              transform 0.9s cubic-bezier(0.22, 1, 0.36, 1) 1.4s;
}

.hsd-faq.is-in-view .hsd-faq-heading {
  opacity: 1;
  transform: translateX(0);
}

/* Q&A list — two-column flow with offset items */
.hsd-faq-list {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: clamp(40px, 6vw, 100px);
  row-gap: clamp(40px, 6vw, 70px);
  max-width: 980px;
  margin: 0 auto;
}

.hsd-faq-item {
  max-width: 460px;
  opacity: 0;
  filter: blur(6px);
  transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1),
              transform 1s cubic-bezier(0.22, 1, 0.36, 1),
              filter 0.9s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: calc(1.9s + 0.18s * var(--i, 0));
}

.hsd-faq.is-in-view .hsd-faq-item {
  opacity: 1;
  filter: blur(0);
  transform: translateX(0) translateY(0);
}

/* Even items (1st, 3rd, 5th) — right column, enter from the right */
.hsd-faq-item--right {
  grid-column: 2;
  justify-self: end;
  transform: translateX(80px) translateY(20px);
}

/* Odd items (2nd, 4th) — left column, enter from the left */
.hsd-faq-item--left {
  grid-column: 1;
  justify-self: start;
  transform: translateX(-80px) translateY(20px);
}

/* Subtle hover lift on each card */
.hsd-faq-item:hover .hsd-faq-q {
  color: #ffffff;
}
.hsd-faq-q,
.hsd-faq-a { transition: color 0.3s ease; }

.hsd-faq-q {
  font-family: 'Inter', 'Figtree', sans-serif;
  font-weight: 700;
  font-size: clamp(0.95rem, 1.05vw, 1.05rem);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #f4efe3;
  margin: 0 0 0.7rem;
  line-height: 1.25;
}

.hsd-faq-a {
  font-family: 'Figtree', 'Inter', sans-serif;
  font-weight: 400;
  font-size: clamp(0.88rem, 1vw, 0.98rem);
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.72);
  margin: 0;
}

@media (max-width: 900px) {
  .hsd-faq-mark { top: -1vw; gap: 8px; width: 96%; }
  .hsd-faq-mark-letter { font-size: clamp(140px, 36vw, 260px); }
  .hsd-faq-head { text-align: center; padding-right: 0; }
  .hsd-faq-list { grid-template-columns: 1fr; row-gap: 36px; max-width: 560px; }
  .hsd-faq-item,
  .hsd-faq-item--left,
  .hsd-faq-item--right { grid-column: 1; max-width: 100%; justify-self: stretch; }
}

@media (prefers-reduced-motion: reduce) {
  .hsd-faq-item { opacity: 1; transform: none; transition: none; }
}


/* =====================================================
   GLOBAL OVERRIDE — no border-radius on buttons or images
   ===================================================== */
button,
input[type="button"],
input[type="submit"],
input[type="reset"],
a.button,
.button,
.btn,
[class*="-btn"],
[class$="-btn"],
[class*="-button"],
[class$="-button"],
[class*="-cta"],
[class$="-cta"],
.wp-block-button__link,
img,
picture,
picture > img,
figure img,
.wp-block-image img,
.wp-post-image,
.attachment-post-thumbnail {
  border-radius: 0 !important;
}

/* =====================================================
   ABOUT NEW — HERO SECTION
   ===================================================== */

.abnew-hero {
  position: relative;
  width: 100%;
  min-height: 98vh;
  padding: 70px 64px;
  background: #0b0b0b;
  color: #fff;
  overflow: hidden;
  isolation: isolate;
  display: flex;
  flex-direction: column;
}

.abnew-hero-bg {
  position: absolute;
  inset: -4%;
  background-image: var(--abnew-bg);
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  transform-origin: 50% 50%;
  will-change: transform, opacity, filter;
  animation:
    abnew-bg-reveal 1.6s cubic-bezier(0.22, 1, 0.36, 1) both,
    abnew-bg-kenburns 60s ease-in-out infinite alternate;
  z-index: 0;
}

@keyframes abnew-bg-reveal {
  0%   { opacity: 0; filter: blur(24px) brightness(0.55); }
  60%  { opacity: 1; }
  100% { opacity: 1; filter: blur(0)    brightness(1); }
}

@keyframes abnew-bg-kenburns {
  0%   { transform: scale(1.02) translate3d(0, 0, 0); }
  100% { transform: scale(1.12) translate3d(-1.5%, -1.5%, 0); }
}

.abnew-hero-inner {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  flex: 1 1 auto;
  display: grid;
  grid-template-columns: 60% 1fr;
  grid-template-rows: auto auto auto;
  align-content: center;
  gap: 16px 32px;
  pointer-events: none;
}

.abnew-hero-inner > * {
  pointer-events: auto;
}

/* Heading — top-left, gold script */
.abnew-hero-heading {
  grid-column: 2;
  grid-row: 1;
  margin: 0;
  font-family: 'Senjalara Demo', 'Dancing Script', cursive;
  font-size: clamp(2.2rem, 3.4vw, 3.6rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: 0.01em;
  background: var(--color-primary-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  align-self: start;
  justify-self: start;
  z-index: 3;
}

.abnew-hero-top-text {
  grid-column: 2;
  grid-row: 2;
  align-self: start;
  justify-self: start;
  max-width: 100%;
  margin-top: 0;
  z-index: 3;
}

.abnew-hero-top-text p {
  margin: 0;
  font-family: 'Figtree', 'Inter', sans-serif;
  font-size: clamp(0.95rem, 1.05vw, 1.05rem);
  line-height: 1.65;
  color: rgba(255,255,255,0.92);
}

.abnew-hero-bottom-text {
  grid-column: 2;
  grid-row: 3;
  align-self: start;
  justify-self: start;
  max-width: 100%;
  z-index: 3;
}

.abnew-hero-bottom-text p {
  margin: 0;
  font-family: 'Figtree', 'Inter', sans-serif;
  font-size: clamp(0.95rem, 1.05vw, 1.05rem);
  line-height: 1.65;
  color: rgba(255,255,255,0.92);
}

/* Center collage — five clip-path wrappers all showing the SAME underlying
   image so the strips line up like a sliced portrait. */
.abnew-hero-strips {
  position: absolute;
  top: 0;
  bottom: 0;
  left: -64px;
  right: auto;
  width: 55%;
  max-width: 720px;
  z-index: 1;
}

/* Each strip reveals via clip-path:
   odd strips grow bottom → top, even strips grow top → bottom.
   Each keyframe ends on the same final clip-path used by the static rule below. */
.abnew-hero-strip--1 { animation: abnew-strip-up-1   2s cubic-bezier(0.22, 1, 0.36, 1) 0.30s both; }
.abnew-hero-strip--2 { animation: abnew-strip-down-2 2s cubic-bezier(0.22, 1, 0.36, 1) 0.60s both; }
.abnew-hero-strip--3 { animation: abnew-strip-up-3   2s cubic-bezier(0.22, 1, 0.36, 1) 0.90s both; }
.abnew-hero-strip--4 { animation: abnew-strip-down-4 2s cubic-bezier(0.22, 1, 0.36, 1) 1.20s both; }
.abnew-hero-strip--6 { animation: abnew-strip-up-6   2s cubic-bezier(0.22, 1, 0.36, 1) 1.50s both; }
.abnew-hero-strip--5 { animation: abnew-strip-down-5 2s cubic-bezier(0.22, 1, 0.36, 1) 1.80s both; }

@keyframes abnew-strip-up-1   { 0% { clip-path: inset(100% 88% 0 0);   } 100% { clip-path: inset(0 88% 0 0);   } }
@keyframes abnew-strip-down-2 { 0% { clip-path: inset(0 70% 100% 16%); } 100% { clip-path: inset(0 70% 0 16%); } }
@keyframes abnew-strip-up-3   { 0% { clip-path: inset(100% 58% 0 34%); } 100% { clip-path: inset(0 58% 0 34%); } }
@keyframes abnew-strip-down-4 { 0% { clip-path: inset(0 29% 100% 44%); } 100% { clip-path: inset(0 29% 0 44%); } }
@keyframes abnew-strip-up-6   { 0% { clip-path: inset(100% 18% 0 73%); } 100% { clip-path: inset(0 18% 0 73%); } }
@keyframes abnew-strip-down-5 { 0% { clip-path: inset(0 6%  100% 84%); } 100% { clip-path: inset(0 6%  0 84%); } }

@media (prefers-reduced-motion: reduce) {
  .abnew-hero-bg,
  .abnew-hero-strips,
  .abnew-hero-strip {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

.abnew-hero-strip {
  position: absolute;
  inset: 0;
  transition:
    transform 0.6s cubic-bezier(0.22, 1, 0.36, 1),
    filter   0.5s ease,
    opacity  0.5s ease;
  will-change: transform, filter;
}

.abnew-hero-strip img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center bottom;
  display: block;
  transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

/* clip-path: inset(top right bottom left).
   Unequal widths matching the reference: narrow / medium / narrow / WIDE-center / medium.
   Strip 4 spans the image's face region so the full face is visible. */
.abnew-hero-strip--1 { clip-path: inset(0 88% 0 0);    }  /* screen 0-12%  — full height */
.abnew-hero-strip--2 { clip-path: inset(0 70% 0 16%);  }  /* screen 16-30% — full height */
.abnew-hero-strip--3 { clip-path: inset(0 58% 0 34%);  }  /* screen 34-42% — full height */
.abnew-hero-strip--4 { clip-path: inset(0 29% 0 44%); }  /* screen 44-71% — left 75% of original strip 4 */
.abnew-hero-strip--6 { clip-path: inset(0 18% 0 73%); }  /* screen 73-82% — right 25% of original strip 4 */
.abnew-hero-strip--5 { clip-path: inset(0 6%  0 84%);  }  /* screen 84-94% — full height */

/* Spotlight hover — the hovered strip lifts and brightens; the others dim. */
.abnew-hero-strips:hover .abnew-hero-strip {
  opacity: 0.55;
  filter: brightness(0.78) saturate(0.9);
}

.abnew-hero-strips .abnew-hero-strip:hover {
  opacity: 1;
  filter: brightness(1.08) saturate(1.15);
  transform: translateY(-10px) scale(1.035);
  z-index: 5;
}

.abnew-hero-strips .abnew-hero-strip:hover img {
  transform: scale(1.06);
}

/* ----- Responsive ----- */
@media (max-width: 1024px) {
  .abnew-hero { padding: 60px 36px; min-height: 90vh; }
  .abnew-hero-inner { gap: 20px 32px; grid-template-columns: 55% 1fr; }
  .abnew-hero-strips { width: 50%; max-width: 560px; left: -36px; }
  .abnew-hero-heading { font-size: clamp(1.8rem, 4vw, 2.6rem); }
}

@media (max-width: 768px) {
  .abnew-hero {
    padding: 36px 20px 48px;
    min-height: auto;
    overflow: visible;
  }

  /* Strips move INTO normal flow at the top of the section. */
  .abnew-hero-strips {
    position: relative;
    top: auto;
    bottom: auto;
    left: auto;
    right: auto;
    width: 100%;
    max-width: 100%;
    height: clamp(320px, 50vh, 460px);
    margin: 0 0 28px;
    transform: none;
  }

  /* Inner grid becomes a single stacking column under the strips. */
  .abnew-hero-inner {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    gap: 18px;
    align-content: start;
    flex: 0 0 auto;
    pointer-events: auto;
  }

  .abnew-hero-heading,
  .abnew-hero-top-text,
  .abnew-hero-bottom-text {
    grid-column: 1;
    justify-self: start;
    align-self: start;
    max-width: 100%;
  }
  .abnew-hero-heading     { grid-row: 1; font-size: clamp(1.7rem, 6.5vw, 2.4rem); }
  .abnew-hero-top-text    { grid-row: 2; margin-top: 0; }
  .abnew-hero-bottom-text { grid-row: 3; }

  /* Background's negative inset can leak outside on mobile; clamp it. */
  .abnew-hero-bg { inset: 0; }
}

@media (max-width: 480px) {
  .abnew-hero { padding: 28px 16px 40px; }
  .abnew-hero-strips { height: clamp(280px, 46vh, 380px); margin-bottom: 22px; }
  .abnew-hero-heading { font-size: clamp(1.5rem, 7vw, 2rem); }
  .abnew-hero-top-text p,
  .abnew-hero-bottom-text p { font-size: 0.92rem; line-height: 1.55; }
}

/* =====================================================
   ABOUT NEW — WHY CHOOSE SECTION
   ===================================================== */

.abnew-why {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  background: #ffffff;
  color: #1a1a1a;
}

.abnew-why-content {
  padding: clamp(40px, 6vw, 90px) clamp(24px, 5vw, 80px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.abnew-why-heading {
  font-family: 'Playfair Display', 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  font-weight: 600;
  font-size: clamp(2rem, 3.2vw, 3.2rem);
  line-height: 1.15;
  color: #0a0a0a;
  margin: 0 0 clamp(28px, 4vh, 48px);
  letter-spacing: -0.005em;
}

.abnew-why-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: clamp(14px, 1.8vh, 22px);
}

.abnew-why-item {
  display: flex;
  align-items: center;
  gap: clamp(14px, 1.6vw, 22px);
}

.abnew-why-icon {
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.abnew-why-icon img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  display: block;
}

.abnew-why-item:hover .abnew-why-icon {
  transform: translateY(-3px) scale(1.08);
}

.abnew-why-text {
  font-family: 'Figtree', 'Inter', sans-serif;
  font-size: clamp(0.95rem, 1.05vw, 1.05rem);
  line-height: 1.55;
  color: #1f1f1f;
}

.abnew-why-image {
  position: relative;
  overflow: hidden;
  min-height: clamp(420px, 60vh, 720px);
}

.abnew-why-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.abnew-why-image:hover img {
  transform: scale(1.04);
}

/* ----- Responsive ----- */
@media (max-width: 900px) {
  .abnew-why {
    grid-template-columns: 1fr;
  }
  .abnew-why-image {
    min-height: clamp(280px, 45vh, 420px);
    order: -1;
  }
  .abnew-why-content {
    padding: clamp(32px, 6vw, 56px) clamp(20px, 5vw, 36px);
  }
}

@media (max-width: 480px) {
  .abnew-why-icon { width: 42px; height: 42px; }
  .abnew-why-icon img { width: 22px; height: 22px; }
}



/* ----- Gradient button black-text overrides (must come last) ----- */
.hero-explore-btn,
.hero-explore-btn:hover,
.hero-cta-btn,
.hero-cta-btn:hover,
.btn-primary,
.btn-primary:hover,
.submit-btn,
.submit-btn:hover,
.search-form button,
.search-form button:hover,
.pagination .current,
.cta-schedule-btn,
.cta-schedule-btn:hover,
.gallpg-btn-primary,
.gallpg-btn-primary:hover,
.gallmas-viewmore-btn:hover,
.arch-card-btn,
.arch-card-btn:hover,
.post-tag:hover {
  color: #000;
}

/* ----- Services section title — solid black on gold background ----- */
.services-fan-heading {
  font-family: 'Playfair Display', 'Cormorant Garamond', Georgia, serif !important;
  font-style: italic !important;
  background: none !important;
  -webkit-text-fill-color: #000 !important;
  color: #000 !important;
  text-transform: capitalize !important;
}

/* ----- Gold-gradient section headings — final override (must come last) ----- */
.testi-heading,
.team-title,
.team-heading,
.abpg-heading,
.abnew-hero-heading,
.abwhy-title,
.abnew-why-heading,
.contact-heading,
.srvpg-why-title,
.gallmas-title,
.hsd-hero-title,
.hsd-po-heading,
.hsd-industry-heading,
.hsd-industry-heading-main,
.hsd-industry-heading-alt,
.hsd-cs-heading,
.hsd-cs-subheading,
.hsd-faq-heading,
.ccs-title,
.ccs-card-title,
.page-title,
.post-title,
.post-card-title,
.comments-title,
.widget-title,
.footer-col-heading,
.archive-title,
.entry-title,
.single-post .post-title,
.hsd-hero-title-wrap,
.contact-brand,
.arch-card-title {
  font-family: 'Playfair Display', 'Cormorant Garamond', Georgia, serif !important;
  font-style: italic !important;
  background: var(--color-primary-gradient) !important;
  background-attachment: scroll !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  color: transparent !important;
  text-transform: capitalize !important;
}

.contact-box-heading {
  font-family: 'Playfair Display', 'Cormorant Garamond', Georgia, serif !important;
  font-style: italic !important;
  background: none !important;
  -webkit-text-fill-color: #000000 !important;
  color: #fff !important;
}

/* ----- HSD course-structure card title + description: solid black ----- */
.hsd-cs-card-title,
.hsd-cs-card-desc {
  font-family: 'Playfair Display', 'Cormorant Garamond', Georgia, serif !important;
  background: none !important;
  -webkit-text-fill-color: #000 !important;
  color: #000 !important;
}
.hsd-cs-card-desc {
  font-family: 'Inter', sans-serif !important;
  font-style: normal !important;
}

/* ----- HSD hero title — gradient must apply per-word, not parent ----- */
.hsd-hero-title,
.hsd-hero-title-wrap {
  background: none !important;
  color: inherit !important;
  -webkit-text-fill-color: currentColor !important;
}
.hsd-hero-word-inner {
  font-family: 'Playfair Display', 'Cormorant Garamond', Georgia, serif !important;
  font-style: italic !important;
  background: var(--color-primary-gradient) !important;
  background-attachment: scroll !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  color: transparent !important;
}

/* ----- Gallery page title: solid black, reduced size ----- */
.gallpg-title {
  font-family: 'Playfair Display', 'Cormorant Garamond', Georgia, serif !important;
  font-style: italic !important;
  font-size: clamp(1.625rem, 3.8vw, 3.775rem) !important;
  background: none !important;
  -webkit-text-fill-color: #000 !important;
  color: #000 !important;
  text-transform: capitalize !important;
}

/* ----- Services intro & card titles: solid black ----- */
.srvpg-intro-title,
.srvpg-card-title {
  font-family: 'Playfair Display', 'Cormorant Garamond', Georgia, serif !important;
  font-style: italic !important;
  background: none !important;
  -webkit-text-fill-color: #000 !important;
  color: #000 !important;
  text-transform: capitalize !important;
}

/* ----- All page/section titles: Playfair italic + linear cream→bronze sweep ----- */
.hero-left-title,
.srvpg-title {
  font-family: 'Playfair Display', 'Cormorant Garamond', Georgia, serif !important;
  font-style: italic !important;
  background: linear-gradient(135deg, #ac7031 0%, #e7aa51 35%, #ffe499 75%, #f0e4c2 100%) !important;
  background-attachment: scroll !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  color: transparent !important;
  text-transform: capitalize !important;
}
.hero-left-title {
  font-size: clamp(1.6rem, 3.3vw, 3.3rem) !important;
}

/* Why-Choose title sits on golden gradient bg — keep it solid dark for readability */
.srvpg-why-title {
  background: none !important;
  -webkit-background-clip: border-box !important;
  background-clip: border-box !important;
  -webkit-text-fill-color: #2a1810 !important;
  color: #2a1810 !important;
}

/* ============================================================
   GLOBAL BUTTON OVERRIDES (final — must come last)
   1. All button text is bold.
   2. Hover does NOT change background or text color.
   ============================================================ */
button,
input[type="button"],
input[type="submit"],
input[type="reset"],
a.button,
.button,
.btn,
[class*="-btn"],
[class$="-btn"],
[class*="-button"],
[class$="-button"],
.wp-block-button__link {
  font-weight: 500 !important;
}

/* Hover overrides — restore each button's base background + text color */
.hero-explore-btn:hover {
  background: var(--color-primary-gradient) !important;
  color: #ffffff !important;
}
.hero-cta-btn:hover {
  background: var(--color-primary-gradient) !important;
  color: #ffffff !important;
}
.btn-primary:hover {
  background: var(--color-primary-gradient) !important;
  border-color: var(--color-primary) !important;
  color: #fff !important;
  box-shadow: none !important;
}
.btn-outline:hover {
  background: transparent !important;
  border-color: rgba(255, 255, 255, 0.35) !important;
  color: #fff !important;
}
.btn-secondary:hover {
  background: var(--color-secondary) !important;
  border-color: var(--color-secondary) !important;
  color: #fff !important;
}
.submit-btn:hover {
  background: var(--color-primary-gradient) !important;
  color: inherit !important;
  box-shadow: none !important;
}
.search-form button:hover {
  background: var(--color-primary-gradient) !important;
  color: inherit !important;
}
.about-cta-btn:hover {
  background: var(--color-primary-gradient) !important;
  color: #000 !important;
}
/* services section card "Read More" — keep original hover color */
.card-btn:hover {
  background: #222 !important;
  color: #fff !important;
}
.cta-schedule-btn:hover {
  background: var(--color-primary-gradient) !important;
  color: inherit !important;
}
.abpg-scroll-btn:hover {
  background: var(--color-primary-gradient) !important;
  color: inherit !important;
}
.gallpg-btn-primary:hover {
  background: var(--color-primary-gradient) !important;
  color: inherit !important;
}
.gallpg-btn-arrow:hover {
  background: inherit !important;
  color: inherit !important;
}
.gallmas-viewmore-btn:hover {
  background: transparent !important;
  color: inherit !important;
}
.arch-card-btn:hover {
  background: transparent !important;
  color: inherit !important;
}
.ccs-card-btn:hover {
  background: var(--color-secondary) !important;
  color: #ffffff !important;
}
.hsd-hero-cta:hover {
  background: var(--color-primary-gradient) !important;
  color: #000 !important;
}

/* Restore gold-gradient-button black text on hover (overrides "color: inherit" above for these specific buttons) */
.hero-explore-btn:hover,
.hero-cta-btn:hover,
.btn-primary:hover,
.submit-btn:hover,
.search-form button:hover,
.cta-schedule-btn:hover,
.gallpg-btn-primary:hover,
.arch-card-btn:hover {
  color: #000 !important;
}
