/* ====================================================================
   Karamel Digital - Custom styles
   Sections:
     1. Global overrides (loader, logo, navbar, hero, buttons)
     2. Project detail page
     3. Inner pages (works, blog, about, services, contact, corporate)
     4. Admin helpers

   Brand palette (from brand guide):
     --kd-bg      #000000   main dark
     --kd-bg-2    #232323   Burnt (secondary dark)
     --kd-text    #E5DAD1   Warm Ash White (text/light)
     --kd-accent  #E0813B   Caramel (primary accent)
==================================================================== */

:root {
  --kd-bg: #000000;
  --kd-bg-2: #232323;
  --kd-text: #E5DAD1;
  --kd-accent: #E0813B;
  --kd-accent-rgb: 224, 129, 59;
  --kd-accent-dark: #232323;
}

/* ---- 1. GLOBAL OVERRIDES ---------------------------------------- */

/* Remove the Webflow page-load animation/splash */
.loading,
.splash-bg,
.canvas-outer,
.cursor-wrapper { display: none !important; }

html, body { background: #000000; color: #fff; }
body.body { opacity: 1 !important; }

/* Enlarge navbar logo */
.kd-logo, .navbar_text-wrapper img.kd-logo,
.navbar_text-wrapper > img { width: 140px !important; max-width: 140px !important; height: auto !important; }
@media (max-width: 767px) {
  .kd-logo, .navbar_text-wrapper > img { width: 110px !important; max-width: 110px !important; }
}

/* Active nav state */
.navbar_link.is-active { color: #E0813B !important; }

/* Hero full-bleed 100vh */
.header-100svh,
.section_header .header-100svh {
  min-height: 100vh !important;
  height: 100vh !important;
  position: relative;
  overflow: hidden;
}

shader-art {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  z-index: 0 !important;
  pointer-events: none;
  transition: opacity 0.55s ease;
}

/* Hero-only shader: as soon as the user scrolls past the hero, fade the
   metallic shader to 0 so the rest of the page sits on solid black. */
body.kd-past-hero shader-art {
  opacity: 0;
  visibility: hidden;
}

.section_header {
  position: relative;
  z-index: 1;
  min-height: 100vh;
}

/* Progressive blur overlays at top and bottom of hero */
.kd-hero-blur-top,
.kd-hero-blur-bottom {
  position: fixed;
  left: 0;
  width: 100vw;
  height: 160px;
  z-index: 2;
  pointer-events: none;
}
.kd-hero-blur-top {
  top: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.85), rgba(0,0,0,0.45) 45%, transparent 100%);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  mask-image: linear-gradient(to bottom, #000 0%, #000 45%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 45%, transparent 100%);
}
.kd-hero-blur-bottom {
  bottom: 0;
  height: 220px;
  background: linear-gradient(to top, rgba(0,0,0,0.9), rgba(0,0,0,0.4) 55%, transparent 100%);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  mask-image: linear-gradient(to top, #000 0%, #000 55%, transparent 100%);
  -webkit-mask-image: linear-gradient(to top, #000 0%, #000 55%, transparent 100%);
}

/* Hide the heavy Webflow progressive-blur stack so we can use our lighter one */
.progressive-blur_wrap { display: none !important; }

/* Content above the shader.  Every section below the hero gets an opaque
   black background so the shader never bleeds through. */
.main-wrapper, .navbar_component, .cms-wrapper-copy, .footer,
section { position: relative; z-index: 5; }

.cms-wrapper-copy,
.section_portfolio,
.section_libraries-faq,
.section_cta,
.section_logo,
#works,
#about-us,
#services,
.section-typo-zoom-in,
.footer,
.footer_component {
  background: #000 !important;
}

/* Keep the hero transparent so the shader shows through */
.section_header { background: transparent !important; }

/* The main-wrapper wraps the hero too, so we only paint it black for
   content that sits after the hero. */
.main-wrapper + .main-wrapper,
.main-wrapper:has(#about-us),
.main-wrapper:has(.section-typo-zoom-in) { background: #000 !important; }

/* Navbar: compact floating pill, centered at the top.  Previously the
   Webflow default stretched edge-to-edge; we constrain it to a friendly
   max-width so logo / menu / CTA sit tightly together. */
.navbar_component {
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 999px;
  width: min(100%, 78rem) !important;
  max-width: calc(100% - 2rem);
  margin: 0.9rem auto 0 !important;
  padding: 0.35rem 1.25rem !important;
  min-height: auto !important;
  left: 50%;
  transform: translateX(-50%);
  position: fixed !important;
  top: 0;
  z-index: 9999998;
}
.navbar_container {
  max-width: 100%;
  padding: 0 !important;
}
.navbar_menu {
  gap: 0.35rem;
}
@media (max-width: 991px) {
  .navbar_component {
    width: min(100%, 40rem) !important;
    padding: 0.3rem 0.9rem !important;
  }
}

/* Clean body classes: ensure the content is visible even when Webflow interactions fail */
.cms-wrapper-copy { opacity: 1 !important; }
[style*="filter:blur(12px)"][style*="opacity:0"],
[style*="filter: blur(12px)"][style*="opacity: 0"] {
  filter: none !important;
  opacity: 1 !important;
}
/* The post-typo-zoom video is driven by scroll fade (--kd-reveal) and
   must NOT be force-shown by the blanket blur-reset rule above. */
.section-typo-zoom-in [style*="filter:blur(12px)"][style*="opacity:0"],
.section-typo-zoom-in [style*="filter: blur(12px)"][style*="opacity: 0"] {
  filter: none !important;
  opacity: var(--kd-reveal, 0) !important;
}

/* Unified button colors + hover */
.button, .button.is-icon, .button.is-navbar-button, .btn-primary, .cta-small {
  transition: transform 0.22s ease, background 0.22s ease, color 0.22s ease, box-shadow 0.22s ease;
}
.button:hover, .button.is-icon:hover, .button.is-navbar-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 38px rgba(224,129,59,0.35);
}
.button .button_circle { background: #E0813B; }

/* ---- 2. HOMEPAGE: CTA / FOOTER tidy --------------------------- */
.section_cta { padding: 6rem 0 4rem; }
.footer_title { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.18em; color: #E0813B; margin-bottom: 1rem; }
.footer_column { display: flex; flex-direction: column; gap: 0.5rem; }
.footer_link-2 { color: rgba(255,255,255,0.75); text-decoration: none; transition: color 0.2s ease; }
.footer_link-2:hover { color: #E0813B; }

/* ---- 3. INNER PAGES SHELL ------------------------------------- */

.page-shell {
  padding: 9rem 0 6rem;
  position: relative;
  z-index: 5;
  min-height: 70vh;
}
.page-container {
  width: min(100%, 76rem);
  margin: 0 auto;
  padding: 0 1.5rem;
}
.page-hero {
  text-align: center;
  margin-bottom: 4rem;
}
.page-eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  color: #E0813B;
  margin-bottom: 1.25rem;
  padding: 0.4rem 0.9rem;
  border: 1px solid rgba(224,129,59,0.35);
  border-radius: 2rem;
  background: rgba(224,129,59,0.06);
}
.page-title {
  font-size: clamp(2.25rem, 5vw, 4.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin: 0 0 1rem;
}
.page-title em { color: #E0813B; font-style: italic; }
.page-subtitle {
  font-size: clamp(1rem, 1.3vw, 1.2rem);
  line-height: 1.6;
  opacity: 0.78;
  max-width: 46rem;
  margin: 0 auto;
}

/* ---- Works grid (used on / and /calismalar) ------------------ */
.works-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.75rem;
  margin-top: 2rem;
}
.works-card {
  position: relative;
  border-radius: 1.25rem;
  overflow: hidden;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  transition: transform 0.35s cubic-bezier(.2,.7,.2,1), border-color 0.25s ease;
  aspect-ratio: 4 / 5;
  display: block;
  text-decoration: none;
  color: inherit;
}
.works-card:hover { transform: translateY(-6px); border-color: rgba(224,129,59,0.5); }
.works-card__media { position: absolute; inset: 0; z-index: 0; }
.works-card__media video,
.works-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.works-card__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.15) 55%, transparent 100%);
  z-index: 1;
}
.works-card__body {
  position: absolute; inset: 0;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  z-index: 2;
  color: #fff;
}
.works-card__title {
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
  letter-spacing: -0.01em;
}
.works-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.works-card__tag {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.3rem 0.6rem;
  border-radius: 1rem;
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(6px);
}
.works-card__brand {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 3;
  padding: 0.4rem 0.65rem;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(8px);
  border-radius: 0.65rem;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.92;
}

/* Works search + filter */
.works-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  margin: 2rem auto 2.5rem;
  padding: 0.75rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  max-width: 48rem;
}
.works-search {
  flex: 1;
  background: transparent;
  border: 0;
  outline: 0;
  color: #fff;
  font: inherit;
  padding: 0.5rem 0.75rem;
  font-size: 1rem;
}
.works-search::placeholder { color: rgba(255,255,255,0.4); }
.works-filter {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 999px;
  padding: 0.45rem 0.9rem;
  cursor: pointer;
  font: inherit;
  font-size: 0.85rem;
}
.works-filter.is-active { background: #E0813B; border-color: #E0813B; }
.works-empty {
  text-align: center;
  opacity: 0.6;
  padding: 4rem 1rem;
  border: 1px dashed rgba(255,255,255,0.15);
  border-radius: 1rem;
  grid-column: 1 / -1;
}

/* ---- Project detail banner --------------------------------- */
.project-banner {
  position: relative;
  width: 100%;
  height: clamp(50vh, 75vh, 780px);
  overflow: hidden;
  margin-top: 72px;
}
.project-banner video,
.project-banner img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.project-banner__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,1) 0%, rgba(0,0,0,0.35) 50%, rgba(0,0,0,0.55) 100%);
  z-index: 1;
}
.project-banner__content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 3rem;
  max-width: 76rem;
  margin: 0 auto;
}
.project-banner__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  padding: 0.5rem 0.9rem;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 999px;
  text-decoration: none;
  color: #fff;
  font-size: 0.85rem;
  width: fit-content;
}
.project-banner__brand img {
  width: 28px; height: 28px;
  object-fit: contain;
  border-radius: 0.35rem;
  background: #fff;
  padding: 0.2rem;
}
.project-banner__title {
  font-size: clamp(2.4rem, 6vw, 5.5rem);
  font-weight: 700;
  margin: 0 0 0.5rem;
  letter-spacing: -0.02em;
  line-height: 1.02;
}
.project-banner__summary {
  max-width: 42rem;
  font-size: clamp(1rem, 1.3vw, 1.15rem);
  opacity: 0.85;
  line-height: 1.55;
}
.project-banner__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.75rem 0 1rem;
}
.project-banner__tag {
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.project-detail-container { padding-top: 3rem !important; }

/* Gallery videos */
.project-gallery { margin: 3.5rem 0; }
.project-gallery__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.25rem;
  margin-top: 1.5rem;
}
.project-gallery__item {
  border-radius: 1rem;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: #111;
}
.project-gallery__item video,
.project-gallery__item img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}

/* Brand block on project detail */
.project-brand-card {
  padding: 2rem;
  border-radius: 1.25rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  margin: 3rem 0;
}
.project-brand-card__head {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}
.project-brand-card__logo {
  width: 84px; height: 84px;
  object-fit: contain;
  border-radius: 0.85rem;
  background: #fff;
  padding: 0.6rem;
  flex-shrink: 0;
}
.project-brand-card__name { font-size: 1.5rem; font-weight: 600; margin: 0.25rem 0 0.5rem; letter-spacing: -0.01em; }
.project-brand-card__bio { opacity: 0.72; font-size: 0.95rem; line-height: 1.55; margin: 0 0 0.75rem; }
.project-brand-card__link {
  display: inline-block;
  color: #E0813B;
  font-size: 0.9rem;
  text-decoration: none;
}
.project-brand-card__link:hover { text-decoration: underline; }

.project-brand-card__others { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,0.08); }
.project-brand-card__others h3 { font-size: 1rem; margin: 0 0 1rem; opacity: 0.85; }
.project-brand-card__others-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}
.project-brand-card__other {
  display: block;
  padding: 0.9rem 1rem;
  border-radius: 0.75rem;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  text-decoration: none;
  color: #fff;
  font-size: 0.95rem;
  transition: border-color 0.2s, background 0.2s, transform 0.2s;
}
.project-brand-card__other:hover {
  border-color: rgba(224,129,59,0.45);
  background: rgba(224,129,59,0.06);
  transform: translateY(-2px);
}
.project-brand-card__all {
  color: #E0813B;
  font-size: 0.9rem;
  text-decoration: none;
}
.project-brand-card__all:hover { text-decoration: underline; }

@media (max-width: 640px) {
  .project-brand-card { padding: 1.25rem; }
  .project-brand-card__head { flex-direction: column; }
}

/* ---- Blog --------------------------------------------------- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1.75rem;
  margin-top: 2rem;
}
.blog-card {
  border-radius: 1.25rem;
  overflow: hidden;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  transition: transform 0.3s, border-color 0.3s;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
}
.blog-card:hover { transform: translateY(-4px); border-color: rgba(224,129,59,0.45); }
.blog-card__cover {
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, rgba(224,129,59,0.28), rgba(35,35,35,0.2));
  overflow: hidden;
}
.blog-card__cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.blog-card__body { padding: 1.5rem; display: flex; flex-direction: column; flex: 1; }
.blog-card__tag { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.14em; color: #E0813B; margin-bottom: 0.5rem; }
.blog-card__title { font-size: 1.2rem; font-weight: 600; margin: 0 0 0.5rem; line-height: 1.25; }
.blog-card__excerpt { opacity: 0.7; font-size: 0.95rem; line-height: 1.55; margin: 0; flex: 1; }
.blog-card__meta { font-size: 0.8rem; opacity: 0.55; margin-top: 1rem; display: flex; gap: 0.75rem; }

.blog-article {
  max-width: 48rem;
  margin: 0 auto;
  font-size: 1.05rem;
  line-height: 1.75;
}
.blog-article h2, .blog-article h3 { margin: 2.5rem 0 1rem; letter-spacing: -0.01em; }
.blog-article p { margin: 0 0 1.25rem; opacity: 0.9; }
.blog-article img { max-width: 100%; height: auto; border-radius: 0.75rem; margin: 1.5rem 0; }
.blog-article ul, .blog-article ol { margin: 0 0 1.25rem 1.25rem; opacity: 0.9; }
.blog-article li { margin: 0.35rem 0; }
.blog-article blockquote {
  border-left: 3px solid #E0813B;
  padding-left: 1.25rem;
  margin: 1.5rem 0;
  opacity: 0.85;
  font-style: italic;
}
.blog-cover {
  width: 100%;
  aspect-ratio: 16/8;
  object-fit: cover;
  border-radius: 1.25rem;
  margin-bottom: 2rem;
}

/* ---- About, Services, Corporate ----------------------------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
  margin-top: 2rem;
}
.feature-card {
  padding: 1.75rem;
  border-radius: 1.25rem;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  transition: transform 0.25s, border-color 0.25s;
}
.feature-card:hover { transform: translateY(-3px); border-color: rgba(224,129,59,0.5); }
.feature-card__icon {
  width: 44px;
  height: 44px;
  border-radius: 0.75rem;
  background: linear-gradient(135deg, #E0813B, #232323);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.1rem;
  margin-bottom: 1rem;
  font-weight: 700;
}
.feature-card__title { font-size: 1.1rem; font-weight: 600; margin: 0 0 0.5rem; }
.feature-card__body { font-size: 0.95rem; line-height: 1.55; opacity: 0.72; margin: 0; }

.process-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
  counter-reset: step;
}
.process-step {
  padding: 1.5rem;
  border-radius: 1rem;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.02);
  counter-increment: step;
  position: relative;
}
.process-step::before {
  content: counter(step, decimal-leading-zero);
  color: #E0813B;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  display: block;
  margin-bottom: 0.5rem;
}
.process-step__title { font-size: 1.05rem; font-weight: 600; margin: 0 0 0.5rem; }
.process-step__body { opacity: 0.72; font-size: 0.92rem; line-height: 1.55; margin: 0; }

/* Corporate / About trust stats */
.stat-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
  margin: 2rem 0;
}
.stat-row__item { text-align: center; padding: 1.25rem; border-radius: 1rem; background: rgba(224,129,59,0.05); border: 1px solid rgba(224,129,59,0.2); }
.stat-row__value { font-size: 2rem; font-weight: 700; color: #E0813B; letter-spacing: -0.02em; }
.stat-row__label { font-size: 0.85rem; opacity: 0.7; margin-top: 0.25rem; }

/* Brand marquee on about / corporate */
.brand-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  margin: 2.5rem 0;
  padding: 2rem 0;
  border-top: 1px solid rgba(255,255,255,0.06);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.brand-strip img {
  height: 38px;
  width: auto;
  opacity: 0.65;
  filter: grayscale(1) brightness(1.4);
  transition: opacity 0.25s, filter 0.25s;
}
.brand-strip img:hover { opacity: 1; filter: none; }

/* ---- Contact form ----------------------------------------- */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}
@media (max-width: 860px) { .contact-layout { grid-template-columns: 1fr; gap: 2rem; } }

.contact-info-list { display: flex; flex-direction: column; gap: 1rem; margin-top: 2rem; }
.contact-info-item { padding: 1rem 1.25rem; border-radius: 0.75rem; background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.06); }
.contact-info-item strong { display: block; color: #E0813B; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.16em; margin-bottom: 0.25rem; }
.contact-info-item a { color: #fff; text-decoration: none; font-size: 1.05rem; }
.contact-info-item a:hover { text-decoration: underline; }

.contact-form {
  padding: 2rem;
  border-radius: 1.25rem;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.contact-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 640px) { .contact-form__row { grid-template-columns: 1fr; } }

.contact-field label { display: block; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.14em; opacity: 0.65; margin-bottom: 0.4rem; }
.contact-field input,
.contact-field textarea,
.contact-field select {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border-radius: 0.6rem;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(0,0,0,0.3);
  color: #fff;
  font: inherit;
  font-size: 0.95rem;
  transition: border-color 0.2s;
}
.contact-field input:focus,
.contact-field textarea:focus,
.contact-field select:focus {
  outline: none;
  border-color: #E0813B;
}
.contact-field textarea { min-height: 120px; resize: vertical; }
.contact-consent { font-size: 0.82rem; opacity: 0.65; }
.contact-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.5rem;
  background: #E0813B;
  color: #fff;
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}
.contact-submit:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(224,129,59,0.35); }
.form-alert-success, .form-alert-error {
  padding: 1rem 1.25rem;
  border-radius: 0.75rem;
  font-size: 0.95rem;
}
.form-alert-success { background: rgba(16,185,129,0.12); border: 1px solid rgba(16,185,129,0.4); color: #a7f3d0; }
.form-alert-error { background: rgba(239,68,68,0.12); border: 1px solid rgba(239,68,68,0.4); color: #fca5a5; }

/* ---- 4. Project detail existing overrides ----------------- */
.case-study_detail { max-width: 72rem; margin: 2rem auto 4rem; padding: 0 1.5rem; color: #fff; }
.case-study_detail-header { margin-bottom: 3rem; text-align: center; }
.case-study_detail-title { font-size: clamp(2.5rem, 6vw, 5rem); font-weight: 700; line-height: 1.05; margin: 0 0 1rem; letter-spacing: -0.02em; }
.case-study_detail-summary { font-size: clamp(1rem, 1.4vw, 1.15rem); line-height: 1.6; opacity: 0.8; max-width: 48rem; margin: 1.5rem auto 0; }
.detail-tags { justify-content: center; display: flex; gap: 0.5rem; flex-wrap: wrap; margin: 1.25rem 0; }
.case-study_image-detalied { border-radius: 1.25rem; overflow: hidden; margin: 2rem 0 3rem; background: #111; }
.case-study_image-detalied video, .case-study_image-detalied img { width: 100%; display: block; }
.case-study_section { margin: 3rem 0; padding: 2rem; border: 1px solid rgba(255,255,255,0.08); border-radius: 1.25rem; background: rgba(255,255,255,0.02); backdrop-filter: blur(10px); }
.case-study_section-title { font-size: 1.5rem; font-weight: 600; margin: 0 0 1rem; color: #E0813B; letter-spacing: -0.01em; }
.case-study_section-body { font-size: 1.05rem; line-height: 1.7; opacity: 0.92; }
.case-study_section-body p { margin: 0 0 1rem; }
.case-study_timeline { display: grid; gap: 1rem; margin-top: 1rem; }
.case-study_timeline-item { display: grid; grid-template-columns: 8rem 1fr; gap: 1.5rem; padding: 1rem 0; border-top: 1px solid rgba(255,255,255,0.08); }
.case-study_timeline-item:first-child { border-top: none; }
.case-study_timeline-week { font-weight: 600; color: #E0813B; }
.case-study_timeline-title { font-weight: 500; margin-bottom: 0.25rem; }
.case-study_timeline-desc { opacity: 0.7; font-size: 0.95rem; }
.case-study_metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1rem; margin-top: 1.5rem; }
.case-study_metric-card { padding: 1.5rem; border-radius: 1rem; background: linear-gradient(135deg, rgba(224,129,59,0.15), rgba(224,129,59,0.02)); border: 1px solid rgba(224,129,59,0.25); }
.case-study_metric-value { font-size: 2rem; font-weight: 700; color: #E0813B; letter-spacing: -0.02em; }
.case-study_metric-label { font-size: 0.9rem; opacity: 0.75; margin-top: 0.25rem; }
.case-study_back-wrapper { display: flex; justify-content: center; margin: 4rem 0; }

@media (max-width: 640px) {
  .case-study_timeline-item { grid-template-columns: 1fr; gap: 0.25rem; }
  .case-study_section { padding: 1.5rem; }
  .project-banner__content { padding: 1.5rem; }
  .page-shell { padding: 6rem 0 4rem; }
}

/* ====================================================================
   5. SITE-WIDE BUTTON MICRO-ANIMATION
   Applies the homepage `.button.is-icon` caramel circle + inner-shadow
   behaviour to every primary / secondary / filter / submit button.
==================================================================== */

/* Homepage webflow buttons: ensure circle + inner-shadow appear correctly */
.button,
.button.is-icon,
.button.is-navbar-button {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.button .button_circle,
.button.is-icon .button_circle,
.button.is-navbar-button .button_circle {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 50%;
  background: var(--kd-accent, #E0813B);
  transform: translateY(-50%) scale(1);
  transition: transform 0.55s cubic-bezier(0.65, 0, 0.35, 1);
  z-index: -1;
}
.button:hover .button_circle,
.button.is-icon:hover .button_circle,
.button.is-navbar-button:hover .button_circle {
  transform: translateY(-50%) scale(22);
}
.button .button-inner-shadow,
.button.is-icon .button-inner-shadow,
.button.is-navbar-button .button-inner-shadow {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.18), inset 0 -12px 24px rgba(0,0,0,0.35);
  mix-blend-mode: normal;
}
.button .button_text-small,
.button.is-icon .button_text-small,
.button.is-navbar-button .button_text-small {
  position: relative;
  z-index: 2;
  transition: color 0.35s ease;
}
.button:hover .button_text-small,
.button.is-icon:hover .button_text-small,
.button.is-navbar-button:hover .button_text-small {
  color: #0a0a0a;
}

/* Universal pseudo-element button animation for non-Webflow buttons */
.btn-primary,
.btn-secondary,
.btn-danger,
.contact-submit,
.works-filter,
.kd-btn {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.25s ease, color 0.35s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.btn-primary::before,
.btn-secondary::before,
.btn-danger::before,
.contact-submit::before,
.works-filter::before,
.kd-btn::before {
  content: "";
  position: absolute;
  left: 0.75rem;
  top: 50%;
  width: 1.2rem;
  height: 1.2rem;
  border-radius: 50%;
  background: var(--kd-accent, #E0813B);
  transform: translateY(-50%) scale(1);
  transition: transform 0.55s cubic-bezier(0.65, 0, 0.35, 1);
  z-index: -1;
}
.btn-primary:hover::before,
.btn-secondary:hover::before,
.btn-danger:hover::before,
.contact-submit:hover::before,
.works-filter:hover::before,
.kd-btn:hover::before {
  transform: translateY(-50%) scale(30);
}
.btn-primary::after,
.btn-secondary::after,
.btn-danger::after,
.contact-submit::after,
.works-filter::after,
.kd-btn::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.16), inset 0 -10px 22px rgba(0,0,0,0.28);
}

/* Colour overrides for the is-active filter buttons */
.works-filter.is-active::before { transform: translateY(-50%) scale(30); }
.works-filter.is-active { color: #0a0a0a; }

/* On hover, primary keeps white text on solid fill; secondary gets dark text on caramel fill */
.btn-primary:hover,
.contact-submit:hover,
.kd-btn:hover {
  transform: translateY(-2px);
  color: #fff;
}
.btn-secondary:hover,
.btn-danger:hover,
.works-filter:hover {
  transform: translateY(-2px);
  color: #0a0a0a;
  border-color: transparent;
}

/* Disabled state: no animation */
.btn-primary:disabled,
.btn-secondary:disabled,
.btn-danger:disabled,
.contact-submit:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
.btn-primary:disabled::before,
.btn-secondary:disabled::before,
.btn-danger:disabled::before,
.contact-submit:disabled::before { display: none; }

/* ====================================================================
   6. LEGAL PAGES
==================================================================== */
.legal-article h2 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #fff;
  margin: 2rem 0 0.75rem;
  letter-spacing: -0.01em;
}
.legal-article h2:first-child { margin-top: 0; }
.legal-article p { margin: 0 0 1rem; }
.legal-article ul {
  margin: 0 0 1rem;
  padding-left: 1.2rem;
}
.legal-article ul li { margin: 0.25rem 0; }
.legal-article a { color: #E0813B; text-decoration: underline; text-underline-offset: 3px; }
.legal-article strong { color: #fff; }
.legal-article em { color: rgba(255,255,255,0.7); font-style: normal; }

/* ====================================================================
   7. PACKAGES / PRICING
==================================================================== */
.packages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
  margin-top: 2rem;
}
.package-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 2rem;
  border-radius: 1.25rem;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.package-card:hover { transform: translateY(-4px); border-color: rgba(224,129,59,0.45); }
.package-card.is-highlighted {
  background: linear-gradient(165deg, rgba(224,129,59,0.18), rgba(35,35,35,0.4));
  border-color: rgba(224,129,59,0.5);
  box-shadow: 0 14px 44px rgba(224,129,59,0.18);
}
.package-badge {
  position: absolute;
  top: -0.7rem;
  right: 1rem;
  background: #E0813B;
  color: #0a0a0a;
  padding: 0.25rem 0.75rem;
  border-radius: 1rem;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
}
.package-card__name { font-size: 1.4rem; font-weight: 600; margin: 0 0 0.4rem; }
.package-card__tagline { opacity: 0.72; margin: 0 0 1.5rem; font-size: 0.95rem; }
.package-card__price {
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff;
  margin: 0.25rem 0;
}
.package-card__price-period { opacity: 0.65; font-size: 0.82rem; margin-left: 0.35rem; }
.package-card__divider { border: none; border-top: 1px solid rgba(255,255,255,0.08); margin: 1.5rem 0; }
.package-card__features { list-style: none; padding: 0; margin: 0 0 1.5rem; flex: 1; display: flex; flex-direction: column; gap: 0.45rem; }
.package-card__features li {
  position: relative;
  padding-left: 1.4rem;
  font-size: 0.95rem;
  opacity: 0.88;
  line-height: 1.45;
}
.package-card__features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #E0813B;
  font-weight: 700;
}
.package-card__cta {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 0.85rem 1.25rem;
  border-radius: 999px;
  background: #E0813B;
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  border: none;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  width: 100%;
}
.package-card.is-highlighted .package-card__cta { background: #fff; color: #0a0a0a; }

.payment-pending {
  max-width: 36rem;
  margin: 0 auto;
  padding: 3rem 2.5rem;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 1.25rem;
  text-align: center;
}
.payment-pending .reference {
  display: inline-block;
  font-family: ui-monospace, monospace;
  font-size: 1.1rem;
  padding: 0.4rem 0.9rem;
  background: rgba(224,129,59,0.08);
  border: 1px solid rgba(224,129,59,0.3);
  border-radius: 0.5rem;
  color: #E0813B;
  margin: 1rem 0;
}
.payment-pending .spinner {
  width: 2rem;
  height: 2rem;
  border: 2px solid rgba(224,129,59,0.15);
  border-top-color: #E0813B;
  border-radius: 50%;
  animation: kd-spin 0.9s linear infinite;
  margin: 0 auto 1rem;
}
@keyframes kd-spin { to { transform: rotate(360deg); } }

/* =====================================================
   SECTION 8 - PROJECT SHOWCASE (grid + slider blocks)
   ===================================================== */
.kd-showcase {
  display: flex;
  flex-direction: column;
  gap: 2.25rem;
  margin: 2.5rem 0;
}
.kd-showcase-block {
  width: 100%;
}
.kd-showcase-grid {
  display: grid;
  gap: 0.85rem;
}
.kd-showcase-cell {
  position: relative;
  overflow: hidden;
  border-radius: 0.85rem;
  background: rgba(255,255,255,0.04);
  aspect-ratio: 16 / 10;
}
.kd-showcase-cell img,
.kd-showcase-cell video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}
.kd-showcase-cell:hover img,
.kd-showcase-cell:hover video {
  transform: scale(1.03);
}
.kd-showcase-slider {
  position: relative;
  overflow: hidden;
  border-radius: 0.85rem;
}
.kd-showcase-slider-track {
  display: flex;
  width: 100%;
  transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}
.kd-showcase-slide {
  flex: 0 0 100%;
  aspect-ratio: 16 / 9;
  background: rgba(0,0,0,0.35);
  overflow: hidden;
}
.kd-showcase-slide img,
.kd-showcase-slide video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.kd-showcase-dots {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.4rem;
  z-index: 3;
}
.kd-showcase-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.45);
  cursor: pointer;
  padding: 0;
  transition: transform 0.2s ease, background 0.2s ease;
}
.kd-showcase-dot.is-active {
  background: #E0813B;
  transform: scale(1.25);
}
.kd-showcase-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.25);
  background: rgba(0,0,0,0.4);
  color: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 1.1rem;
  z-index: 3;
  backdrop-filter: blur(6px);
  transition: background 0.2s ease, border-color 0.2s ease;
}
.kd-showcase-arrow:hover {
  background: rgba(224,129,59,0.9);
  border-color: transparent;
}
.kd-showcase-arrow--prev { left: 1rem; }
.kd-showcase-arrow--next { right: 1rem; }
@media (max-width: 640px) {
  .kd-showcase-arrow { display: none; }
}

/* ---- 9. TYPO-ZOOM POST VIDEO SCROLL FADE --------------------------
   Webflow interaction recreated in CSS: the .hero-wrapper-mobile video
   below the HAYAL ET typo-zoom starts at opacity 0 and reaches opacity 1
   after the section is 25% scrolled into view.  We drive this with
   a CSS custom property --kd-reveal (0 -> 1) set by JS on each scroll. */
.section-typo-zoom-in .div-block-7 {
  opacity: var(--kd-reveal, 0) !important;
  filter: none !important;
  transition: opacity 0.12s linear;
  will-change: opacity;
}
.section-typo-zoom-in .hero-wrapper-mobile {
  opacity: var(--kd-reveal, 0) !important;
  filter: none !important;
  transition: opacity 0.12s linear;
  will-change: opacity;
}

/* ---- 10. INNER PAGES: LIGHT THEME ------------------------------
   The homepage stays dark with the shader hero.  Every other page
   (services, about, corporate, contact, sss, blog, legal, etc.) uses
   the .page-shell layout and should render on a clean white background
   with dark text, matching the karameldigital.com live preview. */
body:has(.page-shell),
body:has(.legal-article) {
  background: #ffffff !important;
  color: #121212 !important;
}

body:has(.page-shell) .page-shell,
body:has(.page-shell) main,
body:has(.legal-article) main {
  background: #ffffff;
  color: #121212;
}

/* Inner-page hero: the eyebrow/title/subtitle styling for light bg */
body:has(.page-shell) .page-title,
body:has(.legal-article) .page-title { color: #121212; }
body:has(.page-shell) .page-title em,
body:has(.legal-article) .page-title em { color: #E0813B; }
body:has(.page-shell) .page-subtitle,
body:has(.legal-article) .page-subtitle { color: rgba(18,18,18,0.7); }
body:has(.page-shell) .page-eyebrow,
body:has(.legal-article) .page-eyebrow {
  color: #E0813B;
  background: rgba(224,129,59,0.08);
  border-color: rgba(224,129,59,0.35);
}

/* Generic text color correction for inner-page content blocks */
body:has(.page-shell) h1,
body:has(.page-shell) h2,
body:has(.page-shell) h3,
body:has(.page-shell) h4,
body:has(.page-shell) h5,
body:has(.page-shell) h6,
body:has(.legal-article) h1,
body:has(.legal-article) h2,
body:has(.legal-article) h3,
body:has(.legal-article) h4,
body:has(.legal-article) h5,
body:has(.legal-article) h6 { color: #121212; }

body:has(.page-shell) p,
body:has(.page-shell) li,
body:has(.page-shell) span,
body:has(.page-shell) label,
body:has(.legal-article) p,
body:has(.legal-article) li,
body:has(.legal-article) span,
body:has(.legal-article) label { color: inherit; }

body:has(.page-shell) a:not(.btn):not(.button):not(.navbar_link):not(.footer_link):not(.kd-footer-link) {
  color: #E0813B;
}

/* Surface helpers: cards / panels on inner pages switch to light */
body:has(.page-shell) .feature-card,
body:has(.page-shell) .service-card,
body:has(.page-shell) .pricing-card,
body:has(.page-shell) .blog-card,
body:has(.page-shell) .faq-card,
body:has(.page-shell) .contact-card,
body:has(.page-shell) .brand-card,
body:has(.page-shell) .corporate-card,
body:has(.page-shell) .works-card,
body:has(.legal-article) {
  background: #f7f5f1 !important;
  border-color: rgba(18,18,18,0.08) !important;
  color: #121212 !important;
}

/* Forms on inner pages */
body:has(.page-shell) input[type="text"],
body:has(.page-shell) input[type="email"],
body:has(.page-shell) input[type="tel"],
body:has(.page-shell) input[type="number"],
body:has(.page-shell) input[type="search"],
body:has(.page-shell) input[type="url"],
body:has(.page-shell) textarea,
body:has(.page-shell) select {
  background: #ffffff !important;
  color: #121212 !important;
  border: 1px solid rgba(18,18,18,0.14) !important;
}
body:has(.page-shell) input::placeholder,
body:has(.page-shell) textarea::placeholder {
  color: rgba(18,18,18,0.45) !important;
}

/* Works grid / cards on inner pages keep dark media but light meta */
body:has(.page-shell) .works-card {
  background: #f7f5f1 !important;
  border-color: rgba(18,18,18,0.08) !important;
}
body:has(.page-shell) .works-card__body { color: #fff; } /* overlay still white on the image */

body:has(.page-shell) .works-toolbar {
  background: rgba(18,18,18,0.04);
  border-color: rgba(18,18,18,0.08);
}
body:has(.page-shell) .works-search { color: #121212; }
body:has(.page-shell) .works-search::placeholder { color: rgba(18,18,18,0.4); }
body:has(.page-shell) .works-filter {
  color: #121212;
  border-color: rgba(18,18,18,0.15);
}

/* Footer on inner pages: keep dark so the layout reads */
body:has(.page-shell) .footer,
body:has(.page-shell) .kd-footer,
body:has(.legal-article) .footer,
body:has(.legal-article) .kd-footer { background: #0f0f0f !important; color: #E5DAD1 !important; }
body:has(.page-shell) .footer *,
body:has(.page-shell) .kd-footer *,
body:has(.legal-article) .footer *,
body:has(.legal-article) .kd-footer * {
  color: inherit;
}

/* Navbar on inner (light) pages: light translucent pill */
body:has(.page-shell) .navbar_component,
body:has(.legal-article) .navbar_component {
  background: rgba(255,255,255,0.72) !important;
  border: 1px solid rgba(18,18,18,0.08) !important;
}
body:has(.page-shell) .navbar_link,
body:has(.legal-article) .navbar_link { color: #121212; }
body:has(.page-shell) .navbar_link.is-active,
body:has(.legal-article) .navbar_link.is-active { color: #E0813B !important; }
