/* Minimal, static-first base styles (mobile-first). */
/* Color tokens: injected via insaat_get_theme_palette_css_string() (inc/theme-palette.php). */

* {
  box-sizing: border-box;
}

html {
  background-color: var(--bg-main);
  overflow-x: clip;
  max-width: 100%;
}

body {
  background: var(--bg-main);
  color: var(--text-main);
  overflow-x: clip;
  max-width: 100%;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
  width: auto;
  height: auto;
  padding: 0.5rem 0.75rem;
  z-index: 1100;
  background: var(--color-text);
  color: var(--color-surface);
  border-radius: 0.5rem;
}

.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  word-wrap: normal;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  color: var(--header-text);
  background: transparent;
  box-shadow: var(--header-bar-shadow);
  border-bottom: 1px solid var(--border-color);
}

/**
 * Blurred glass sits here — NOT on .site-header itself — so `backdrop-filter` does not
 * create a containing block for `position:fixed` descendants like `.mobile-menu`.
 */
.site-header__media {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: var(--header-bg);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.site-header__inner.header-container {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.9rem 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.header-left {
  display: flex;
  align-items: center;
  min-width: 0;
}

.header-right {
  display: flex;
  align-items: center;
  margin-left: auto;
  flex-shrink: 0;
  min-width: 0;
  gap: clamp(0.35rem, 1.5vw, 0.75rem);
}

@media (min-width: 1024px) {
  .header-right {
    gap: 16px;
  }
}

.site-header__end {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  flex-shrink: 0;
}

.site-branding {
  flex: 0 1 auto;
  min-width: 0;
}

.site-branding__link {
  display: block;
  min-width: 0;
  text-decoration: none;
  color: inherit;
  text-transform: none;
  letter-spacing: 0.3px;
  font-weight: 600;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.site-branding__link:hover {
  transform: translateY(-1px);
  opacity: 0.9;
}

.site-branding__inner {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2.5vw, 16px);
  min-height: 2.75rem;
  min-width: 0;
}

.site-logo {
  flex-shrink: 0;
  box-sizing: border-box;
  width: clamp(44px, 4.5vw, 52px);
  height: clamp(44px, 4.5vw, 52px);
  padding: 4px;
  border-radius: 50%;
  border: 2px solid var(--site-logo-border);
  background: var(--site-logo-bg);
  box-shadow: var(--site-logo-shadow);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: transform 0.25s ease;
}

.site-branding__link:hover .site-logo {
  transform: scale(1.05);
}

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

/* Normal inline flow (not flex): mixed .brand-accent + text keeps spaces, e.g. "(Firma) İsmi". */
.site-title {
  min-width: 0;
  font-size: clamp(1.2rem, 2.2vw, 1.35rem);
  font-weight: 600;
  letter-spacing: 0.3px;
  line-height: 1.15;
  text-transform: none;
  color: var(--site-title-color);
  text-shadow: var(--site-title-shadow);
}

.brand-accent {
  color: var(--color-primary);
  font-weight: 600;
  transition: color 0.3s ease;
}

@media (max-width: 767px) {
  .site-logo {
    width: 38px;
    height: 38px;
    padding: 3px;
  }

  .site-title {
    font-size: 1rem;
    letter-spacing: 0.3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

.menu-toggle {
  position: relative;
  margin-left: 0;
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  border: 1px solid var(--border-color);
  background: var(--card-bg);
  padding: 0.45rem;
  border-radius: 0.6rem;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.menu-toggle__bar {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--header-text);
  border-radius: 1px;
  transition: transform 0.25s ease, opacity 0.25s ease;
  transform-origin: center;
}

.menu-toggle.is-active .menu-toggle__bar--top {
  transform: translateY(6px) rotate(45deg);
}

.menu-toggle.is-active .menu-toggle__bar--mid {
  opacity: 0;
}

.menu-toggle.is-active .menu-toggle__bar--bot {
  transform: translateY(-6px) rotate(-45deg);
}

@media (prefers-reduced-motion: reduce) {
  .menu-toggle__bar,
  .primary-nav,
  .primary-nav__scroll,
  .mobile-menu,
  .mobile-menu-inner,
  .mobile-menu-backdrop {
    transition: none !important;
  }
}

.mobile-menu-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9998;
  background: color-mix(in srgb, var(--color-text) 48%, transparent);
  opacity: 0;
  transition: opacity 0.25s ease, visibility 0.25s ease;
  visibility: hidden;
  pointer-events: none;
}

.mobile-menu-backdrop.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.primary-nav {
  display: none;
  width: 100%;
}

.primary-nav.is-open {
  display: flex;
}

.primary-nav__panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border-color);
  flex-shrink: 0;
  background: color-mix(in srgb, var(--header-bg) 88%, var(--card-bg));
}

.primary-nav__panel-title {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--header-text);
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mobile-menu-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  border: 1px solid var(--border-color);
  border-radius: 0.55rem;
  background: var(--card-bg);
  color: var(--header-text);
  cursor: pointer;
  transition: color 0.15s ease, background-color 0.15s ease;
}

.mobile-menu-close:hover {
  color: var(--primary-color);
  background: color-mix(in srgb, var(--primary-color) 10%, transparent);
}

.mobile-menu-close:focus-visible {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

.mobile-menu-close__icon {
  font-size: 1.65rem;
  line-height: 1;
  font-weight: 300;
}

.primary-nav__panel-footer {
  flex-shrink: 0;
  padding: 1rem 1rem calc(1rem + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--border-color);
  background: color-mix(in srgb, var(--card-bg) 90%, transparent);
}

.primary-nav__lang-label {
  margin: 0 0 0.45rem;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted-text-color);
}

.lang-switch--panel {
  width: 100%;
  justify-content: center;
  box-sizing: border-box;
}

.primary-nav__panel-footer .mobile-social {
  margin-top: 1rem;
}

.primary-nav__divider {
  height: 1px;
  margin: 0.35rem 0 0.75rem;
  background: color-mix(in srgb, var(--border-color) 85%, transparent);
}

.primary-nav__contact-label {
  margin: 0 0 0.5rem;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted-text-color);
}

.mobile-menu-contact {
  margin: 0;
}

.mobile-menu-contact__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.mobile-menu-contact__item {
  margin: 0;
}

.mobile-menu-contact__link {
  text-decoration: none;
  color: var(--header-text);
  font-weight: 600;
  transition: color 0.15s ease, background-color 0.15s ease;
  box-sizing: border-box;
}

.mobile-menu-contact__link:hover {
  color: var(--primary-color);
  background: color-mix(in srgb, var(--primary-color) 8%, transparent);
}

.mobile-menu-contact__link:focus-visible {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

.mobile-menu-contact__link .social-icon--custom,
.mobile-menu-contact__link.contact-item .contact-icon .social-icon--custom {
  object-fit: contain;
}

.primary-nav__list {
  list-style: none;
  margin: 0.8rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

@media (max-width: 991px) {
  /**
   * Stacking order fix: `.mobile-menu` lives inside `.site-header` (z-index 1000).
   * `#mobile-menu-backdrop` is a sibling with z-index 9998, so it painted ABOVE
   * the entire header subtree and received all touches — menu scroll appeared
   * "broken" (events never reached `.mobile-menu-inner`). Raise the header while
   * the drawer is open so the panel stays above the backdrop (9998).
   */
  html.insaat-mobile-menu-open .site-header {
    z-index: 10000;
  }

  html.insaat-mobile-menu-open {
    overflow: hidden;
    overscroll-behavior: none;
    height: 100%;
  }

  body.menu-open {
    overscroll-behavior: none;
  }

  .mobile-menu-backdrop {
    display: block;
  }

  .mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    max-width: 100%;
    height: 100vh;
    height: 100dvh;
    max-height: 100dvh;
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 0;
    background: var(--header-bg);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    color: var(--header-text);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
    z-index: 9999;
    transform: translateX(100%);
    transition: transform 0.28s ease, visibility 0.28s ease;
    visibility: hidden;
    box-sizing: border-box;
    overflow: hidden;
  }

  .mobile-menu.is-open {
    transform: translateX(0);
    visibility: visible;
  }

  .mobile-menu-inner {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
  }

  .mobile-menu .primary-nav__panel-head {
    position: sticky;
    top: 0;
    z-index: 3;
    flex-shrink: 0;
  }

  .mobile-menu .primary-nav__scroll {
    flex: 0 0 auto;
    width: 100%;
    overflow: visible;
    min-height: 0;
  }

  .mobile-menu .primary-nav__list {
    flex: none;
    min-height: 0;
    overflow: visible;
    margin: 0;
    padding: 0.75rem 1rem 1rem;
    gap: 0.35rem;
    text-align: right;
  }

  .mobile-menu a {
    padding: 14px 0;
    font-size: 15px;
  }

  .mobile-menu .primary-nav__item,
  .mobile-menu .menu-item {
    width: 100%;
    text-align: right;
  }

  .mobile-menu .primary-nav__item a,
  .mobile-menu .menu-item a {
    display: block;
    text-align: right;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 0;
    width: 100%;
    box-sizing: border-box;
  }

  .mobile-menu .primary-nav__item a:hover {
    transform: none;
  }

  .mobile-menu .primary-nav__contact-label {
    text-align: right;
    width: 100%;
  }

  .mobile-menu .mobile-menu-contact__list {
    gap: 0.35rem;
  }

  .mobile-menu .mobile-menu-contact__link.contact-item {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
    text-align: right;
    min-height: 48px;
    margin: 0;
  }

  .mobile-menu .contact-item .contact-label {
    order: 1;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
    text-align: right;
  }

  .mobile-menu .contact-item .contact-icon {
    order: 2;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 0;
  }
}

.primary-nav__item a {
  text-decoration: none;
  color: var(--header-text);
  font-weight: 600;
  transition: color 0.2s ease, transform 0.2s ease;
  display: inline-block;
}

.primary-nav__item a:hover {
  color: var(--primary-color);
  transform: translateY(-1px);
}

.primary-nav__item a.active,
.primary-nav__item.current-menu-item a {
  color: var(--primary-color);
}

.primary-nav__item a.active::after,
.primary-nav__item.current-menu-item a::after {
  content: '';
  display: block;
  height: 2px;
  background: var(--primary-color);
  margin-top: 4px;
  border-radius: 2px;
  width: 100%;
}

.mobile-social {
  margin-top: 1rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--border-color);
}

.mobile-social__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mobile-social__item {
  margin: 0;
}

.mobile-social__link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--header-text);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.35rem 0;
  border-radius: 0.45rem;
  transition: color 0.15s ease;
}

.mobile-social__link:hover {
  color: var(--primary-color);
}

.mobile-social__link:focus-visible {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

.mobile-social__link .social-icon--custom {
  object-fit: contain;
}

.mobile-social__label {
  line-height: 1.3;
}

@media (min-width: 992px) {
  .mobile-social {
    display: none;
  }
}

.header-actions {
  display: none;
  align-items: center;
  gap: 0.6rem;
  margin-left: 0.25rem;
}

.lang-switch {
  display: inline-flex;
  gap: 0.25rem;
  align-items: center;
  border: 1px solid var(--border-color);
  border-radius: 999px;
  padding: 0.25rem;
}

.lang-switch__link {
  text-decoration: none;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: transparent;
  color: var(--muted-text-color);
  transition: background-color 0.2s ease, color 0.2s ease;
}

.lang-switch__link:hover {
  color: var(--header-text);
}

.lang-switch__link[aria-current="page"] {
  background: var(--primary-color);
  color: var(--lang-switch-active-fg);
}

@media (max-width: 991px) {
  .menu-toggle {
    min-width: 44px;
    min-height: 44px;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
  }

  /* Compact header lang switch (tablet / mobile); desktop unchanged at 992px+ */
  .site-header__end {
    gap: 0.25rem;
  }

  .site-header__end .lang-switch--header {
    gap: 2px;
    padding: 3px 4px;
    align-items: stretch;
    background: color-mix(in srgb, var(--header-text) 5%, transparent);
    border-width: 1px;
  }

  .site-header__end .lang-switch--header .lang-switch__link {
    min-width: 0;
    min-height: 30px;
    padding: 4px 9px;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: 0.02em;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
  }

  .header-social__link {
    min-width: 44px;
    min-height: 44px;
    width: auto;
    height: auto;
    box-sizing: border-box;
  }
}

@media (max-width: 768px) {
  .site-header__end .lang-switch.lang-switch--header,
  .site-header__end .lang-switcher {
    gap: 0 !important;
    padding: 4px 6px !important;
    font-size: 12px !important;
  }

  .site-header__end .lang-switch.lang-switch--header .lang-switch__link,
  .site-header__end .lang-switcher .lang-switch__link {
    min-width: 0 !important;
    min-height: 28px !important;
    padding: 4px 6px !important;
    font-size: 12px !important;
    line-height: 1.2 !important;
  }
}

.header-social {
  display: inline-flex;
  align-items: center;
}

.header-social__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
}

.header-social__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 0.55rem;
  color: var(--header-text);
  text-decoration: none;
  transition: color 0.15s ease, background-color 0.15s ease;
}

.header-social__link:hover {
  color: var(--primary-color);
  background: color-mix(in srgb, var(--primary-color) 14%, transparent);
}

.header-social__link:focus-visible {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

/* Contact channel icons: unified 20×20 slot (header, drawer, mobile bar, footer, cards) */
.insaat-contact-icon-slot,
.header-icon,
.mobile-menu-icon {
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  line-height: 0;
}

.insaat-contact-icon-slot svg,
.insaat-contact-icon-slot img,
.header-icon svg,
.header-icon img,
.mobile-menu-icon svg,
.mobile-menu-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.insaat-contact-icon-slot .social-icon {
  width: 100%;
  height: 100%;
}

.insaat-contact-icon-slot .social-icon--brand path {
  fill: currentColor;
}

.insaat-contact-icon-slot .insaat-contact-dashicon.dashicons {
  width: 20px;
  height: 20px;
  font-size: 20px;
  line-height: 20px;
  color: inherit;
}

.insaat-contact-item__icon .insaat-contact-icon-slot .insaat-contact-dashicon.dashicons {
  width: 24px;
  height: 24px;
  font-size: 24px;
  line-height: 24px;
}

.header-social__link .social-icon--custom {
  object-fit: contain;
}

.social-icon-custom-wrap {
  display: inline-flex;
  align-items: center;
  line-height: 0;
}

.social-icon-fallback-slot .social-icon {
  display: block;
}

.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  text-decoration: none;
  white-space: nowrap;
  color: var(--lang-switch-active-fg);
  padding: 0.62rem 1rem;
  font-weight: 700;
  border: none;
  /* Primary fill + motion live with .btn--primary (shared block below). */
}

.header-cta__icon {
  position: relative;
  z-index: 1;
  width: 18px;
  height: 18px;
  display: inline-block;
}

@media (min-width: 992px) {
  .menu-toggle {
    display: none;
  }

  .mobile-menu-backdrop {
    display: none !important;
  }

  html.insaat-mobile-menu-open,
  html.insaat-mobile-menu-open body {
    overflow: visible;
    overscroll-behavior: auto;
  }

  body.menu-open {
    overflow: visible;
    overscroll-behavior: auto;
  }

  .mobile-menu-inner {
    display: contents;
    overflow: visible;
    flex: none;
    min-height: 0;
    height: auto;
  }

  .primary-nav__scroll {
    display: contents;
    overflow: visible;
    min-height: 0;
    flex: none;
  }

  .primary-nav__panel-head,
  .primary-nav__panel-footer {
    display: none !important;
  }

  .primary-nav {
    display: block !important;
    position: static;
    width: auto;
    height: auto;
    max-height: none;
    margin-left: 0;
    padding: 0;
    transform: none;
    visibility: visible;
    overflow: visible;
    z-index: auto;
    box-shadow: none;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    flex-direction: row;
  }

  .primary-nav.is-open {
    transform: none;
  }

  .primary-nav__list {
    margin: 0;
    flex: none;
    min-height: 0;
    flex-direction: row;
    gap: 1.1rem;
    align-items: center;
    overflow: visible;
    padding: 0;
  }

  .header-actions {
    display: inline-flex;
  }

  .header-social__link.contact-icon {
    position: relative;
  }

  .header-social__link.contact-icon[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    top: calc(100% + 6px);
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-text);
    color: var(--color-surface);
    font-size: 12px;
    line-height: 1.3;
    padding: 4px 8px;
    border-radius: 6px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    white-space: nowrap;
    z-index: 30;
  }

  .header-social__link.contact-icon[data-tooltip]:hover::after,
  .header-social__link.contact-icon[data-tooltip]:focus-visible::after {
    opacity: 1;
  }
}

@media (min-width: 992px) and (prefers-reduced-motion: reduce) {
  .header-social__link.contact-icon[data-tooltip]::after {
    transition: none;
  }
}

/* --- Front page (mobile-first) --- */

.site-main:focus {
  outline: none;
}

.home-page {
  color: var(--text-main);
}

.home-hero {
  position: relative;
  min-height: 56vh;
  display: flex;
  align-items: flex-end;
  padding: 2.5rem 1rem 2.75rem;
  /* Underlay = final gradient stop (clean edge on diagonal fallbacks). */
  background-color: var(--home-hero-gradient-end);
  background-image: var(
    --home-hero-image,
    linear-gradient(
      145deg,
      var(--color-secondary) 0%,
      color-mix(in srgb, var(--color-secondary) 72%, var(--color-primary)) 50%,
      var(--home-hero-gradient-end) 100%
    )
  );
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  background-clip: padding-box;
  background-origin: padding-box;
  overflow: hidden;
}

@media (max-width: 1024px) {
  .home-hero {
    background-attachment: scroll;
  }
}

.home-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, var(--home-hero-overlay-top), var(--home-hero-overlay-bottom));
  pointer-events: none;
}

.home-hero__inner {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto;
  width: 100%;
  background: var(--home-hero-inner-bg);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  padding: 28px;
  border-radius: 14px;
}

.home-hero__title {
  margin: 0;
  font-size: 2.6rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--home-hero-title-color);
}

.home-hero__title strong {
  color: var(--color-primary);
}

.home-hero__lead {
  margin: 12px 0 1.35rem;
  font-size: 1.1rem;
  line-height: 1.65;
  color: var(--home-hero-lead-color);
  opacity: 0.9;
  max-width: 42rem;
}

.home-hero__lead strong {
  color: var(--home-hero-lead-strong-color);
}

.home-hero__lead--richtext p {
  margin: 0 0 0.85rem;
  font-size: 1.1rem;
  line-height: 1.65;
  color: var(--home-hero-lead-color);
  max-width: 42rem;
}

.home-hero__lead--richtext p:last-child {
  margin-bottom: 0;
}

.home-hero__lead--richtext strong {
  color: var(--home-hero-lead-strong-color);
}

.home-hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  margin-top: 20px;
  gap: 12px;
}

.home-hero__actions .btn {
  box-sizing: border-box;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-width: 180px;
  min-height: 48px;
  padding: 0 1.25rem;
  text-align: center;
  border-radius: clamp(12px, 1.1vw, 14px);
  font-weight: 600;
}

.home-hero__actions .home-hero__cta {
  font-size: 1.05rem;
  padding: 0 20px;
}

@media (max-width: 768px) {
  .home-hero__actions {
    flex-direction: column;
    align-items: center;
  }

  .home-hero__actions .btn {
    width: 100%;
    max-width: 300px;
  }
}

.home-hero__note {
  margin: 1rem 0 0;
  font-size: 0.8rem;
  color: var(--home-hero-note-color);
}

.home-hero__note code {
  font-size: 0.78em;
  background: color-mix(in srgb, var(--home-hero-title-color) 14%, transparent);
  padding: 0.12rem 0.35rem;
  border-radius: 0.25rem;
}

.home-micro-trust {
  padding: 0.85rem 1rem 1.1rem;
  background: var(--card-bg);
  color: var(--text-color);
  border-bottom: 1px solid var(--border-color);
}

.home-micro-trust__inner {
  max-width: 1200px;
  margin: 0 auto;
}

.home-micro-trust__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.5rem;
}

.home-micro-trust__item {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 0.75rem;
  background: var(--bg-color);
  border: 1px solid var(--border-color);
  border-radius: 0.65rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-color);
  text-align: center;
}

.home-micro-trust__label {
  line-height: 1.3;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: clamp(12px, 1.1vw, 14px);
  padding: 0.75rem 1.25rem;
  border: 1px solid transparent;
  cursor: pointer;
  position: relative;
  box-sizing: border-box;
  transform: translate3d(0, 0, 0);
  transition:
    transform 280ms ease,
    box-shadow 280ms ease,
    background-color 280ms ease,
    background-image 280ms ease,
    border-color 280ms ease,
    color 280ms ease;
  color: var(--color-text);
}

.btn:focus-visible {
  outline: none;
  box-shadow:
    0 0 0 2px var(--color-surface),
    0 0 0 5px color-mix(in srgb, var(--color-primary) 38%, transparent);
}

.header-cta:focus-visible {
  outline: none;
  box-shadow:
    0 0 0 2px var(--color-surface),
    0 0 0 5px color-mix(in srgb, var(--color-primary) 38%, transparent);
}

.btn--primary,
.header-cta,
.home-hero__cta {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background-color: var(--color-primary);
  background-image: var(--primary-gradient);
  border: 1px solid
    color-mix(in srgb, color-mix(in srgb, var(--primary-color) 66%, black) 92%, transparent);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.15),
    inset 0 -1px 2px rgba(0, 0, 0, 0.15),
    0 2px 3px color-mix(in srgb, var(--color-primary) 52%, transparent),
    0 18px 38px color-mix(in srgb, var(--color-primary) 18%, transparent);
}

.btn--primary,
.home-hero__cta {
  color: var(--color-on-primary);
}

@supports (color: color-mix(in srgb, red, blue)) {
  .btn--primary,
  .header-cta,
  .home-hero__cta {
    /* Same 3-stop angle; hairline hue/depth drift (no extra stops). */
    background-image: linear-gradient(
      145deg,
      color-mix(
        in srgb,
        color-mix(in srgb, var(--color-primary) 88%, white) 97%,
        var(--color-secondary)
      ),
      var(--color-primary) 60%,
      color-mix(
        in srgb,
        color-mix(in srgb, var(--color-primary) 92%, black) 98%,
        black
      )
    );
  }
}

.btn--primary::after,
.header-cta::after,
.home-hero__cta::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(145deg, rgba(255, 255, 255, 0.14) 0%, transparent 58%),
    radial-gradient(ellipse 125% 95% at 16% 12%, rgba(255, 255, 255, 0.032), transparent 54%),
    radial-gradient(ellipse 110% 100% at 82% 90%, rgba(0, 0, 0, 0.022), transparent 50%);
  background-repeat: no-repeat;
  opacity: 0.48;
}

.btn--primary::before,
.header-cta::before,
.home-hero__cta::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: 1;
  background: linear-gradient(
    145deg,
    transparent,
    rgba(255, 255, 255, 0.22),
    transparent
  );
  transform: translateX(-120%);
  transition: transform 900ms ease-out;
}

.btn--primary:hover::before,
.header-cta:hover::before,
.home-hero__cta:hover::before {
  transform: translateX(120%);
}

.btn--primary:hover,
.header-cta:hover,
.home-hero__cta:hover {
  transform: translate3d(0, -2px, 0);
  filter: brightness(1.05);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.15),
    inset 0 -1px 2px rgba(0, 0, 0, 0.15),
    0 2px 6px color-mix(in srgb, var(--color-primary) 48%, transparent),
    0 20px 44px color-mix(in srgb, var(--color-primary) 22%, transparent);
}

.btn--primary:active,
.header-cta:active,
.home-hero__cta:active {
  transform: translate3d(0, 0, 0);
  filter: brightness(0.96);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    inset 0 -1px 2px rgba(0, 0, 0, 0.16),
    0 1px 2px color-mix(in srgb, var(--color-primary) 46%, transparent),
    0 8px 22px color-mix(in srgb, var(--color-primary) 16%, transparent);
}

.btn--ghost {
  background-color: transparent;
  background-image: none;
  color: var(--primary-color);
  border-color: color-mix(in srgb, currentColor 85%, transparent);
  box-shadow: none;
}

.btn--ghost:hover {
  background: color-mix(in srgb, currentColor 10%, transparent);
  border-color: color-mix(in srgb, currentColor 72%, transparent);
  filter: brightness(1.04);
}

.home-hero .btn--ghost,
.home-hero .btn--outline,
.inner-hero .btn--ghost,
.inner-hero .btn--outline {
  color: var(--home-hero-title-color);
  border-color: color-mix(in srgb, currentColor 85%, transparent);
  background: color-mix(in srgb, currentColor 8%, transparent);
}

.home-hero .btn--ghost:hover,
.home-hero .btn--outline:hover,
.inner-hero .btn--ghost:hover,
.inner-hero .btn--outline:hover {
  background: color-mix(in srgb, currentColor 10%, transparent);
  border-color: color-mix(in srgb, currentColor 70%, transparent);
}

.btn--wa,
.btn--wa-dark,
.btn--wa-light,
.btn--wa-cta {
  position: relative;
  isolation: isolate;
  background-color: transparent;
  background-image: linear-gradient(145deg, #25d366, #1da851);
  color: #ffffff;
  border: 1px solid
    color-mix(in srgb, color-mix(in srgb, #25d366 66%, black) 92%, transparent);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.15),
    inset 0 -1px 2px rgba(0, 0, 0, 0.15),
    0 2px 3px color-mix(in srgb, #25d366 52%, transparent),
    0 18px 38px color-mix(in srgb, #25d366 18%, transparent);
  overflow: hidden;
}

.btn--wa::after,
.btn--wa-dark::after,
.btn--wa-light::after,
.btn--wa-cta::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(145deg, rgba(255, 255, 255, 0.095) 0%, transparent 58%),
    radial-gradient(ellipse 120% 92% at 18% 14%, rgba(255, 255, 255, 0.028), transparent 52%),
    radial-gradient(ellipse 108% 100% at 84% 88%, rgba(0, 0, 0, 0.02), transparent 48%);
  background-repeat: no-repeat;
  opacity: 0.38;
}

.btn--wa::before,
.btn--wa-dark::before,
.btn--wa-light::before,
.btn--wa-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: 1;
  background: linear-gradient(
    145deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transform: translateX(-120%);
  transition: transform 900ms ease-out;
}

.btn--wa:hover::before,
.btn--wa-dark:hover::before,
.btn--wa-light:hover::before,
.btn--wa-cta:hover::before {
  transform: translateX(120%);
}

.btn--wa:hover,
.btn--wa-dark:hover,
.btn--wa-light:hover,
.btn--wa-cta:hover {
  transform: translate3d(0, -2px, 0);
  filter: brightness(1.06);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.15),
    inset 0 -1px 2px rgba(0, 0, 0, 0.15),
    0 2px 6px color-mix(in srgb, #25d366 48%, transparent),
    0 20px 44px color-mix(in srgb, #25d366 22%, transparent);
}

.btn--wa:active,
.btn--wa-dark:active,
.btn--wa-light:active,
.btn--wa-cta:active {
  transform: translate3d(0, 0, 0);
  filter: brightness(0.96);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    inset 0 -1px 2px rgba(0, 0, 0, 0.16),
    0 1px 2px color-mix(in srgb, #25d366 46%, transparent),
    0 8px 22px color-mix(in srgb, #25d366 16%, transparent);
}

.btn--xl {
  font-size: 1.05rem;
  padding: 1rem 1.35rem;
  width: 100%;
  max-width: 22rem;
}

.btn--sm {
  font-size: 0.875rem;
  padding: 0.5rem 0.95rem;
  min-height: 2.25rem;
}

.btn--lg {
  font-size: 1rem;
  padding: 0.85rem 1.35rem;
  min-height: 2.75rem;
}

/* Hero CTAs: primary leads, WhatsApp secondary, ghost lightest. */
.home-hero .btn--primary,
.home-hero .header-cta,
.home-hero .home-hero__cta {
  filter: brightness(1.04);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.15),
    inset 0 -1px 2px rgba(0, 0, 0, 0.15),
    0 3px 5px color-mix(in srgb, var(--color-primary) 54%, transparent),
    0 20px 44px color-mix(in srgb, var(--color-primary) 21.5%, transparent);
}

.home-hero .btn--primary:hover,
.home-hero .header-cta:hover,
.home-hero .home-hero__cta:hover {
  filter: brightness(1.092);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.15),
    inset 0 -1px 2px rgba(0, 0, 0, 0.15),
    0 3px 8px color-mix(in srgb, var(--color-primary) 50%, transparent),
    0 24px 52px color-mix(in srgb, var(--color-primary) 25.5%, transparent);
}

.home-hero .btn--wa,
.home-hero .btn--wa-dark,
.home-hero .btn--wa-light,
.home-hero .btn--wa-cta {
  filter: brightness(0.97);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.15),
    inset 0 -1px 2px rgba(0, 0, 0, 0.15),
    0 2px 3px color-mix(in srgb, #25d366 52%, transparent),
    0 16px 36px color-mix(in srgb, #25d366 18%, transparent);
}

.home-hero .btn--wa:hover,
.home-hero .btn--wa-dark:hover,
.home-hero .btn--wa-light:hover,
.home-hero .btn--wa-cta:hover {
  filter: brightness(1.06);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.15),
    inset 0 -1px 2px rgba(0, 0, 0, 0.15),
    0 2px 6px color-mix(in srgb, #25d366 48%, transparent),
    0 19px 42px color-mix(in srgb, #25d366 22%, transparent);
}

.home-hero .btn--ghost,
.home-hero .btn--outline {
  opacity: 0.94;
  filter: none;
  box-shadow: none;
}

.home-hero .btn--ghost:hover,
.home-hero .btn--outline:hover {
  opacity: 1;
  filter: brightness(1.03);
}

@media (prefers-reduced-motion: reduce) {
  .btn--primary::before,
  .header-cta::before,
  .home-hero__cta::before,
  .btn--wa::before,
  .btn--wa-dark::before,
  .btn--wa-light::before,
  .btn--wa-cta::before {
    transition: none;
    transform: none;
  }

  .btn--primary:hover::before,
  .header-cta:hover::before,
  .home-hero__cta:hover::before,
  .btn--wa:hover::before,
  .btn--wa-dark:hover::before,
  .btn--wa-light:hover::before,
  .btn--wa-cta:hover::before {
    transform: none;
  }
}

.home-section {
  padding: 2.75rem 1rem;
  background: var(--bg-base);
  color: var(--text-color);
}

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

.home-section:nth-child(even):not(.home-cta) {
  background: var(--bg-soft);
}

/* Rare: full-width callout on primary (optional class on templates). */
.home-section--highlight {
  background: var(--primary-color);
  color: var(--color-on-primary);
}

.home-section--highlight .home-section__title,
.home-section--highlight .home-section__intro {
  color: inherit;
}

.home-section--highlight .home-section__intro {
  color: color-mix(in srgb, var(--color-on-primary) 88%, transparent);
}

.home-section__inner {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
}

.home-section__title {
  margin: 0 0 0.5rem;
  font-size: clamp(1.25rem, 3vw, 1.65rem);
  font-weight: 800;
}

.home-section__intro {
  margin: 0 0 1.5rem;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 40rem;
}

.home-services__grid {
  display: grid;
  gap: 1.25rem;
}

.service-card {
  background: var(--card-bg);
  color: var(--text-color);
  border: 1px solid var(--border-color);
  border-radius: 0.85rem;
  padding: 1.25rem 1.2rem;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.service-card__media {
  margin: -1.25rem -1.2rem 0;
  border-radius: 0.85rem 0.85rem 0 0;
  overflow: hidden;
}

.service-card__img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  min-height: 120px;
  background: color-mix(in srgb, var(--color-text) 10%, var(--color-surface));
}

.service-card__icon-wrap {
  line-height: 1;
  color: var(--primary-color);
}

.service-card__icon-wrap .dashicons {
  font-size: 2rem;
  width: 2rem;
  height: 2rem;
}

.service-card__icon-img {
  display: block;
  width: 2.5rem;
  height: 2.5rem;
  object-fit: contain;
}

.service-card__icon-text {
  font-size: 1.75rem;
  line-height: 1;
}

.service-card__title {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
  font-weight: 800;
}

.service-card__title-link {
  color: inherit;
  text-decoration: none;
}

.service-card__title-link:hover {
  color: var(--primary-color);
  text-decoration: underline;
}

.service-card__text {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.65;
  font-size: 0.98rem;
}

.home-projects__grid {
  display: grid;
  gap: 1.5rem;
}

/* Let Swiper measure width inside grid columns (avoids broken / stacked gallery on home). */
.home-projects__grid > .project-card {
  min-width: 0;
  width: 100%;
}

/* Projects page list: 1 col mobile, 2 cols desktop (minmax fixes Swiper width). */
.insaat-project-list--page {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  width: 100%;
}

@media (min-width: 768px) {
  .insaat-project-list--page {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.insaat-project-list--page > .insaat-project-item,
.insaat-project-list--page > .insaat-project-item .project-card {
  min-width: 0;
}

.project-card {
  background: var(--card-bg);
  color: var(--text-color);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: box-shadow 0.35s ease, transform 0.35s ease;
}

/* Match premium card hover across all project types. */
.project-card--type-before_after:hover,
.project-card--type-single:hover,
.project-card--type-gallery:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-medium);
}

.project-card__title {
  margin: 0 0 10px;
  padding: 1rem 1.1rem 0;
  font-size: 1rem;
  font-weight: 600;
}

/* Before/after: always side-by-side (50% / 50%), including mobile. */
.project-card__compare {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 0.65rem;
  padding: 0 1.1rem 1rem;
}

.project-card__compare .project-card__shot {
  flex: 1 1 50%;
  width: 50%;
  max-width: 50%;
  min-width: 0;
}

.project-card__compare--solo .project-card__shot {
  flex: 1 1 100%;
  width: 100%;
  max-width: 100%;
}

.project-card__compare--solo {
  flex-wrap: nowrap;
}

.project-card__grid {
  display: grid;
  gap: 8px;
}

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

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

.project-card__gallery-wrap {
  padding: 0 1.1rem 1rem;
}

.project-gallery {
  position: relative;
}

.project-card__single {
  padding: 0 1.1rem 1rem;
}

.project-card__shot {
  margin: 0;
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  background: color-mix(in srgb, var(--color-text) 10%, var(--color-surface));
}

/* Single / gallery: fixed aspect + cover (same visual mass as before/after shots). */
.project-card-image-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 12px;
  background: color-mix(in srgb, var(--color-text) 10%, var(--color-surface));
}

.project-card__single .project-card-image-wrapper {
  height: auto;
  aspect-ratio: 16 / 9;
  isolation: isolate;
}

.project-gallery .project-card-image-wrapper {
  isolation: isolate;
}

.project-card__single .project-card__media-link {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 0;
  overflow: hidden;
  background: transparent;
}

.project-card__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
  background: color-mix(in srgb, var(--color-text) 10%, var(--color-surface));
}

.project-card__shot--after .project-card__img {
  background: color-mix(in srgb, var(--color-primary) 18%, var(--color-surface));
}

.project-card__shot .project-card__img {
  border-radius: 0;
}

.project-card-image-wrapper img,
.project-card-image-wrapper picture,
.project-card-image-wrapper picture img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
}

.project-card__single .project-card-image-wrapper picture {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.project-card__img--single {
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: cover;
  border-radius: 0;
}

/* Gallery: Swiper (one image at a time). */
.project-card__gallery-swiper {
  position: relative;
  width: 100%;
  min-width: 0;
  border-radius: 12px;
  overflow: hidden;
  background: color-mix(in srgb, var(--color-text) 10%, var(--color-surface));
}

.project-card__gallery-swiper .swiper-slide {
  aspect-ratio: 16 / 9;
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  min-width: 0;
  box-sizing: border-box;
}

.project-card__gallery-swiper .swiper-slide .project-card-image-wrapper {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 12px;
  overflow: hidden;
}

.project-card__gallery-swiper .project-card-image-wrapper .project-card__img--gallery,
.project-card__gallery-swiper .project-card-image-wrapper picture {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 0;
}

.project-card__gallery-swiper .project-card-image-wrapper picture img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.project-card__gallery-swiper .swiper-button-prev,
.project-card__gallery-swiper .swiper-button-next {
  z-index: 12;
  pointer-events: auto;
}

/* Gallery nav: modern circular buttons (Swiper classes kept for JS). */
.project-card__gallery-swiper .slider-btn {
  position: absolute;
  top: 50%;
  width: 42px;
  height: 42px;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: color-mix(in srgb, var(--color-text) 55%, transparent);
  color: var(--home-hero-title-color);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.project-card__gallery-swiper .slider-btn::after {
  display: none !important;
}

.project-card__gallery-swiper .slider-btn .slider-btn__glyph {
  display: block;
  font-size: 1.1rem;
  line-height: 1;
  font-weight: 700;
  pointer-events: none;
}

.project-card__gallery-swiper .slider-btn:hover {
  background: color-mix(in srgb, var(--color-text) 72%, transparent);
  transform: translateY(-50%) scale(1.05);
}

.project-card__gallery-swiper .slider-btn:focus-visible {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

.project-card__gallery-swiper .slider-btn.left {
  left: 10px;
}

.project-card__gallery-swiper .slider-btn.right {
  right: 10px;
}

/* Swiper sets margin-top on nav; keep vertical centering. */
.project-card__gallery-swiper .slider-btn.swiper-button-prev,
.project-card__gallery-swiper .slider-btn.swiper-button-next {
  margin-top: 0;
  transform: translateY(-50%);
}

.project-card__gallery-swiper .slider-btn.swiper-button-disabled {
  opacity: 0.35;
  cursor: not-allowed;
  pointer-events: none;
}

/* Before/after: image zoom follows card hover (unchanged behavior). */
.project-card--type-before_after .project-card__shot .project-card__img {
  transition: transform 0.4s ease, filter 0.4s ease;
  transform-origin: center center;
}

.project-card--type-before_after:hover .project-card__shot .project-card__img {
  transform: scale(1.05);
  filter: brightness(1.08);
}

/* Single + gallery: same transform/brightness as before/after shots; card hover drives media motion too. */
.project-card--type-single .project-card-image-wrapper img,
.project-card--type-single .project-card-image-wrapper picture img,
.project-card--type-gallery .project-card-image-wrapper img,
.project-card--type-gallery .project-card-image-wrapper picture img {
  transition: transform 0.4s ease, filter 0.4s ease;
  transform-origin: center center;
}

.project-card--type-single:hover .project-card-image-wrapper img,
.project-card--type-single:hover .project-card-image-wrapper picture img,
.project-card--type-gallery:hover .project-card-image-wrapper img,
.project-card--type-gallery:hover .project-card-image-wrapper picture img {
  transform: scale(1.05);
  filter: brightness(1.08);
}

.project-card__caption {
  position: absolute;
  left: 0.6rem;
  bottom: 0.6rem;
  margin: 0;
  padding: 0.2rem 0.55rem;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: color-mix(in srgb, var(--color-text) 72%, transparent);
  color: var(--home-hero-title-color);
  border-radius: 0.35rem;
}

.project-card__body {
  padding: 1rem 1.1rem 1.15rem;
}

.project-card__location {
  margin: 0 0 0.45rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-muted);
}

.project-card__description {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--text-muted);
}

.project-card__title a {
  color: inherit;
  text-decoration: none;
}

.project-card__title a:hover {
  text-decoration: underline;
}

.project-card__media-link {
  display: block;
}

.project-card__detail {
  margin: 0.75rem 0 0;
}

.project-card__detail-link {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--primary-color);
  text-decoration: none;
}

.project-card__detail-link:hover {
  text-decoration: underline;
}

.inner-page--project-detail .inner-hero__breadcrumb {
  margin: 0 0 0.5rem;
  font-size: 0.88rem;
}

.inner-page--project-detail .inner-hero__breadcrumb a {
  color: inherit;
  text-decoration: none;
  opacity: 0.85;
}

.inner-page--project-detail .inner-hero__breadcrumb a:hover {
  text-decoration: underline;
}

.home-section__inner--narrow {
  max-width: 48rem;
  margin-left: auto;
  margin-right: auto;
}

.project-blocks {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.project-block--heading {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.25;
}

.project-block--text .project-block__text {
  margin: 0;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text-muted);
}

.project-block--media picture {
  display: block;
  max-width: 100%;
}

.project-block--image .project-block__img,
.project-block__gallery-item .project-block__img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  object-fit: cover;
}

.project-block--gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 10px;
}

.project-block--gallery .project-block__gallery-item {
  margin: 0;
}

.project-block--before-after {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

@media (min-width: 640px) {
  .project-block--before-after {
    grid-template-columns: 1fr 1fr;
  }
}

.project-block--before-after .project-block__shot {
  margin: 0;
}

.project-block--before-after .project-block__img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 10px;
  object-fit: cover;
}

.project-block__caption {
  margin: 0.35rem 0 0;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}

.project-block__video--embed iframe {
  max-width: 100%;
  border-radius: 10px;
}

.project-block__video-el {
  display: block;
  width: 100%;
  max-height: 70vh;
  border-radius: 10px;
  background: var(--color-text);
}

.project-block--list {
  margin: 0;
  padding-left: 1.25rem;
  line-height: 1.55;
  color: var(--text-muted);
}

.project-block--list .project-block__li {
  margin-bottom: 0.35rem;
}

.home-map__fallback {
  margin: 0;
  padding: 1rem;
  border-radius: 0.65rem;
  background: color-mix(in srgb, var(--color-text) 6%, var(--color-surface));
  color: var(--color-text-muted);
  font-size: 0.95rem;
  text-align: center;
}

.home-trust__inner {
  max-width: 48rem;
}

.home-trust__text {
  margin: 0 0 1.5rem;
  font-size: 1.02rem;
  line-height: 1.7;
  color: var(--color-text-muted);
}

.home-testimonials {
  display: grid;
  gap: 1rem;
}

.testimonial-card {
  background: color-mix(in srgb, var(--color-text) 5%, var(--color-surface));
  border: 1px solid var(--color-border);
  border-radius: 0.85rem;
  padding: 1.15rem 1.2rem;
}

.testimonial-card__rating {
  margin: 0 0 0.55rem;
}

.testimonial-card__rating-visual {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.45rem;
  max-width: 100%;
  color: var(--color-primary);
}

.testimonial-card__stars-svg {
  display: inline-flex;
  align-items: center;
  gap: clamp(0.08em, 0.6vw, 0.14em);
  line-height: 0;
}

.testimonial-card__star {
  flex: 0 0 auto;
  width: clamp(0.95em, 3.2vw, 1.15em);
  height: clamp(0.95em, 3.2vw, 1.15em);
}

.testimonial-card__star--empty {
  opacity: 0.32;
  color: color-mix(in srgb, var(--color-primary) 42%, var(--color-text-muted));
}

.testimonial-card__star--half {
  color: var(--color-primary);
}

.testimonial-card__rating-value {
  font-size: clamp(0.82rem, 2.2vw, 0.92rem);
  font-weight: 700;
  color: color-mix(in srgb, var(--color-text-muted) 22%, var(--color-primary));
  letter-spacing: 0.02em;
  line-height: 1.2;
}

.testimonial-card__quote {
  margin: 0;
}

.testimonial-card__quote p {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.65;
  color: var(--color-text-muted);
}

.testimonial-card__cite {
  margin: 0.65rem 0 0;
  font-size: 0.82rem;
  font-weight: 700;
  color: color-mix(in srgb, var(--color-text-muted) 82%, var(--color-surface));
}

.testimonial-card__date {
  margin: 0.35rem 0 0;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--color-text-muted);
  letter-spacing: 0.01em;
}

/* CTA strip layout — visual surface is ONLY `.cta-surface` (defined at end of file). */
.home-cta-band__inner {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.home-cta-band__title {
  margin: 0 0 0.5rem;
  font-size: clamp(1.15rem, 3vw, 1.45rem);
  font-weight: 800;
}

.home-cta-band__text {
  margin: 0 0 1.1rem;
  line-height: 1.6;
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
}

.home-cta-band__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  align-items: center;
}

.btn--light {
  background: var(--color-surface);
  color: var(--color-text);
  border-color: transparent;
}

.btn--light:hover {
  transform: translateY(-1px);
}

/* Map embed: explicit frame height so iframe height:100% resolves (no gray band); stays in flow (no 100vw breakout). */
.insaat-map-full {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin: 0.9rem 0;
  box-sizing: border-box;
  flex: none;
}

.map-container.home-map__frame,
.map-container {
  width: 100%;
  max-width: 100%;
  height: 450px;
  position: relative;
  flex: none;
  border-radius: 0.85rem;
  overflow: hidden;
  border: 1px solid var(--color-border);
  background: color-mix(in srgb, var(--color-text) 8%, var(--color-surface));
  pointer-events: auto;
}

.map-container iframe,
.map-container .home-map__iframe {
  width: 100%;
  height: 100%;
  min-height: 100%;
  border: 0;
  display: block;
  pointer-events: auto;
}

.map-container__open-maps {
  position: absolute;
  bottom: 10px;
  right: 10px;
  z-index: 2;
  pointer-events: auto;
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.2;
  padding: 0.4rem 0.7rem;
  border-radius: 0.45rem;
  text-decoration: none;
  color: var(--color-text);
  background: color-mix(in srgb, var(--color-surface) 92%, var(--color-text));
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-soft);
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.map-container__open-maps:hover {
  background: var(--color-surface);
  border-color: color-mix(in srgb, var(--color-border) 65%, var(--color-text));
  color: var(--primary-color);
}

.map-container__open-maps:focus-visible {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

.home-map__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: center;
  align-items: center;
  margin-top: 1rem;
}

/* CTA groups (inner pages, homepage sections, strips): mobile matches `.home-hero__actions`. */
@media (max-width: 768px) {
  .cta-surface .home-cta-band__actions,
  .cta-surface .home-cta__actions,
  .inner-hero__actions,
  .home-map__actions,
  .blog-detail-managed-cta__actions,
  .blog-detail-quote-cta__actions,
  .blog-detail-cta__actions,
  .home-about-preview__actions {
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .cta-surface .home-cta-band__actions > .btn,
  .cta-surface .home-cta__actions > .btn,
  .inner-hero__actions > .btn,
  .home-map__actions > .btn,
  .blog-detail-managed-cta__actions > .btn,
  .blog-detail-quote-cta__actions > .btn,
  .blog-detail-cta__actions > .btn,
  .home-about-preview__actions > .btn {
    box-sizing: border-box;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 300px;
    min-height: 48px;
  }

  .map-container {
    height: 300px;
  }
}

.btn--outline-dark {
  background-color: transparent;
  background-image: none;
  color: var(--color-text);
  border: 1px solid var(--color-border);
  box-shadow: none;
}

.btn--outline-dark:hover {
  border-color: color-mix(in srgb, var(--color-border) 45%, var(--color-text));
  transform: translateY(-1px);
}

.home-cta__inner {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.home-cta__title {
  margin: 0;
  font-size: clamp(1.2rem, 3vw, 1.55rem);
  font-weight: 800;
}

.home-cta__text {
  margin: 0;
  max-width: 32rem;
  line-height: 1.6;
}

.home-cta__phone {
  margin-top: 0.25rem;
}

.home-cta__phone:hover {
  transform: translate3d(0, -2px, 0);
}

.home-cta__actions {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
}

.site-footer {
  margin-top: 2.5rem;
  padding: 2rem 1rem calc(5rem + env(safe-area-inset-bottom, 0px));
  background: var(--bg-color);
  border-top: 1px solid var(--border-color);
}

.site-footer__inner {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--text-muted);
}

.site-footer__brand {
  margin: 0 0 0.35rem;
  font-weight: 700;
  font-size: 1rem;
  color: var(--secondary-color);
}

/* Same as .site-title: avoid flex on mixed spans + text or spaces after ")" can disappear. */
.site-footer__brand-name {
  max-width: 100%;
}

.site-footer__line {
  margin: 0.25rem 0 0;
}

.site-footer__line--address {
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
}

.site-footer__tel {
  color: var(--primary-color);
  font-weight: 600;
  text-decoration: none;
}

.site-footer__tel:hover {
  text-decoration: underline;
}

.site-footer__copy {
  margin: 1rem 0 0;
  font-size: 0.82rem;
  color: var(--text-muted);
  opacity: 0.92;
}

.footer-social {
  margin: 1.25rem 0 0;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
}

.footer-social__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 0.75rem;
}

.footer-social__link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  text-decoration: none;
  color: var(--secondary-color);
  font-weight: 600;
  font-size: 0.88rem;
  padding: 0.35rem 0.5rem;
  border-radius: 0.5rem;
  transition: color 0.15s ease, background-color 0.15s ease;
}

.footer-social__link:hover {
  color: var(--primary-color);
  background: color-mix(in srgb, var(--primary-color) 10%, transparent);
}

.footer-social__icon {
  display: inline-flex;
  line-height: 0;
  color: inherit;
}

.footer-social__icon .social-icon--custom {
  object-fit: contain;
}

.contact-social {
  margin: 1.75rem 0 0;
  padding: 1.25rem 1rem;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
  background: var(--bg-base);
  border: 1px solid var(--border-color);
  color: var(--text-color);
  border-radius: 0.75rem;
}

.contact-social__title {
  margin: 0 0 1rem;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-color);
  text-align: center;
}

.contact-links-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
  box-sizing: border-box;
}

.contact-link-card {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.contact-link-card.insaat-contact-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  padding: 0.85rem 0.95rem;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  background: var(--card-bg);
  color: var(--text-main);
  text-decoration: none;
  box-sizing: border-box;
  transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-link-card.insaat-contact-item:hover {
  background: color-mix(in srgb, var(--card-bg) 88%, var(--primary-color) 12%);
  border-color: color-mix(in srgb, var(--border-color) 70%, var(--primary-color) 30%);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--primary-color) 25%, transparent);
}

.contact-link-card.insaat-contact-item:focus-visible {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

.insaat-contact-item__icon {
  flex: 0 0 2.5rem;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--color-text) 6%, var(--color-surface));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
  color: inherit;
}

.insaat-contact-item__icon .insaat-contact-icon-slot {
  width: 1.25rem;
  height: 1.25rem;
}

.insaat-contact-item__icon .social-icon--custom {
  object-fit: contain;
}

.insaat-contact-item__content {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  flex: 1 1 auto;
}

.insaat-contact-item__label {
  font-size: 1rem;
  font-weight: 650;
  line-height: 1.2;
}

.insaat-contact-item__sub {
  font-size: 0.82rem;
  opacity: 0.72;
  line-height: 1.2;
}

.insaat-contact-item__chevron {
  flex: 0 0 auto;
  font-size: 1.35rem;
  line-height: 1;
  opacity: 0.45;
  transition: opacity 0.2s ease;
}

.contact-link-card.insaat-contact-item:hover .insaat-contact-item__chevron,
.contact-link-card.insaat-contact-item:focus-visible .insaat-contact-item__chevron {
  opacity: 0.9;
}

.whatsapp-float {
  position: fixed;
  right: max(1rem, env(safe-area-inset-right, 0px));
  bottom: max(1rem, env(safe-area-inset-bottom, 0px));
  z-index: 10050;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.65rem 0.9rem;
  border-radius: 999px;
  background: var(--color-whatsapp);
  color: var(--color-on-whatsapp);
  font-weight: 800;
  font-size: 0.9rem;
  text-decoration: none;
  box-shadow: var(--shadow-medium);
  transform: translate3d(0, 0, 0);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.whatsapp-float:hover {
  transform: translate3d(0, -2px, 0);
  color: var(--color-on-whatsapp);
}

.whatsapp-float:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--color-whatsapp) 55%, var(--color-surface));
  outline-offset: 3px;
}

.whatsapp-float__icon {
  display: flex;
  line-height: 0;
}

.whatsapp-float__label {
  display: none;
}

@media (min-width: 640px) {
  .home-micro-trust__list {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.65rem;
  }

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

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

@media (min-width: 768px) {
  .home-hero {
    min-height: 62vh;
    align-items: center;
    padding: 4rem 1.5rem;
  }

  .home-hero__title {
    font-size: 3.2rem;
  }

  .home-section {
    padding: 3.25rem 1.5rem;
  }

  .btn--xl {
    width: auto;
  }

  .whatsapp-float__label {
    display: inline;
  }

  .home-testimonials {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
  }
}

@media (min-width: 769px) {
  .home-cta__actions {
    flex-direction: row;
    justify-content: center;
  }
}

/* --- Inner pages --- */

.inner-page {
  color: var(--text-color);
}

.inner-hero {
  background-color: var(--home-hero-gradient-end);
  background-image: linear-gradient(
    145deg,
    var(--color-secondary) 0%,
    color-mix(in srgb, var(--color-secondary) 68%, var(--color-primary)) 55%,
    var(--home-hero-gradient-end) 100%
  );
  background-clip: padding-box;
  background-origin: padding-box;
  overflow: hidden;
  color: var(--home-hero-title-color);
  padding: 2.25rem 1rem 2.75rem;
}

.inner-hero--compact {
  padding: 1.85rem 1rem 2.25rem;
}

.inner-hero__inner {
  max-width: 900px;
  margin: 0 auto;
}

.inner-hero__title {
  font-size: clamp(1.65rem, 4.2vw, 2.35rem);
  font-weight: 800;
  margin: 0 0 0.75rem;
  line-height: 1.2;
}

.inner-hero__lead {
  margin: 0 0 1.25rem;
  opacity: 0.93;
  line-height: 1.55;
  max-width: 40rem;
}

.inner-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.inner-prose {
  max-width: 720px;
  line-height: 1.65;
  color: var(--color-text);
  overflow-wrap: anywhere;
  word-break: break-word;
}

.inner-prose--richtext p {
  margin: 0 0 0.85rem;
}

.inner-prose--richtext p:last-child {
  margin-bottom: 0;
}

.inner-prose--tight {
  margin-top: 0.25rem;
}

.home-section__intro--richtext p {
  margin: 0 0 0.65rem;
}

.home-section__intro--richtext p:last-child {
  margin-bottom: 0;
}

.home-trust__text--richtext p {
  margin: 0 0 0.75rem;
}

.home-trust__text--richtext p:last-child {
  margin-bottom: 0;
}

.contact-panels {
  display: grid;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.contact-panel {
  background: color-mix(in srgb, var(--color-text) 5%, var(--color-surface));
  border: 1px solid var(--color-border);
  border-radius: 0.75rem;
  padding: 1rem 1.15rem;
}

.contact-panel__title {
  font-size: 1rem;
  font-weight: 800;
  margin: 0 0 0.4rem;
  color: var(--color-text);
}

.contact-panel__text {
  margin: 0;
  color: var(--color-text-muted);
  line-height: 1.55;
}

@media (min-width: 768px) {
  .contact-panels {
    grid-template-columns: 1fr 1fr;
  }
}

.inner-highlights .home-section__title {
  margin-bottom: 1.25rem;
}

/* --- Design system: shared surfaces & primary actions (extends --bg-main / --bg-card tokens) --- */

.card,
.contact-card,
.service-card,
.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  transition:
    transform 0.32s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.32s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}

@supports (color: color-mix(in srgb, red, blue)) {
  .card,
  .contact-card,
  .service-card,
  .project-card {
    border-color: color-mix(in srgb, var(--color-primary) 9%, var(--border-color));
  }
}

.card:hover {
  transform: translate3d(0, -5px, 0);
}

.home-section__title {
  color: var(--text-main);
  color: color-mix(in srgb, var(--color-text) 84%, var(--color-primary));
}

.inner-hero .inner-hero__title,
.inner-hero .inner-hero__lead {
  color: var(--home-hero-title-color);
}

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

/* =============================================================================
   CTA surface — single enforced conversion band (every CTA strip uses `.cta-surface`)
   ============================================================================= */
.cta-surface {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: clamp(12px, 2.4vw, 16px);
  padding: clamp(2rem, 4vw, 2.75rem) clamp(1.25rem, 3vw, 1rem);
  color: var(--text-inverse);
  border: 1px solid color-mix(in srgb, var(--text-inverse) 14%, transparent);
  transform: translate3d(0, 0, 0);
  transition: transform 220ms ease;
  /* Underlay must equal the final gradient stop (no edge tone mismatch). */
  background-color: var(--color-secondary-dark);
  /* 3 stops only: tight highlight band (~22%), base near mid, deep end. */
  background-image: linear-gradient(
    154deg,
    var(--color-secondary-light) 0%,
    var(--color-secondary) 24%,
    var(--color-secondary-dark) 100%
  );
  background-clip: padding-box;
  background-origin: padding-box;
}

.cta-surface:hover {
  filter: brightness(1.04);
  transform: translate3d(0, -1px, 0);
}

.cta-surface::before {
  content: "";
  position: absolute;
  /* Inset slightly so sheen never paints the anti-aliased radius / border seam. */
  inset: 1px;
  pointer-events: none;
  border-radius: inherit;
  z-index: 0;
  background-clip: padding-box;
  background-origin: padding-box;
  /* Sheens fade out before the physical right edge (ellipse + short linear). */
  background:
    linear-gradient(154deg, rgba(255, 255, 255, 0.055) 0%, transparent 28%),
    radial-gradient(
      ellipse 72% 88% at 14% 20%,
      rgba(255, 255, 255, 0.12),
      transparent 46%
    );
}

@media (prefers-reduced-motion: reduce) {
  .cta-surface {
    transition: none;
  }

  .cta-surface:hover {
    transform: none;
    filter: none;
  }
}

.cta-surface > * {
  position: relative;
  z-index: 1;
}

@supports (color: color-mix(in srgb, red, blue)) {
  .cta-surface {
    /* Richer highlight (≈48% light token — less chalky); slight primary pull for warmer gold/amber. */
    background-color: var(--color-secondary-dark);
    background-image: linear-gradient(
      154deg,
      color-mix(
          in srgb,
          color-mix(in srgb, var(--color-secondary-light) 48%, var(--color-secondary)) 93%,
          var(--color-primary) 7%
        )
        0%,
      var(--color-secondary) 24%,
      var(--color-secondary-dark) 100%
    );
    background-clip: padding-box;
    background-origin: padding-box;
  }
}

.cta-surface .home-cta-band__title,
.cta-surface .home-cta__title,
.cta-surface .blog-detail-managed-cta__title,
.cta-surface .blog-detail-quote-cta__title {
  color: inherit;
}

.cta-surface .home-cta-band__text,
.cta-surface .home-cta__text,
.cta-surface .blog-detail-managed-cta__text,
.cta-surface .blog-detail-quote-cta__lead {
  color: color-mix(in srgb, var(--text-inverse) 88%, transparent);
}

/* CTA strip primary: same system as global .btn--primary, slightly calmer on a busy band. */
.cta-surface .btn.btn--primary {
  background-color: var(--color-primary);
  background-image: var(--primary-gradient);
  color: var(--color-on-primary);
  border: 1px solid
    color-mix(in srgb, color-mix(in srgb, var(--primary-color) 66%, black) 92%, transparent);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.15),
    inset 0 -1px 2px rgba(0, 0, 0, 0.15),
    0 2px 3px color-mix(in srgb, var(--primary-color) 46%, transparent),
    0 16px 35px color-mix(in srgb, var(--primary-color) 17%, transparent);
  filter: brightness(0.985);
}

@supports (color: color-mix(in srgb, red, blue)) {
  .cta-surface .btn.btn--primary {
    background-image: linear-gradient(
      145deg,
      color-mix(
        in srgb,
        color-mix(in srgb, var(--color-primary) 88%, white) 97%,
        var(--color-secondary)
      ),
      var(--color-primary) 60%,
      color-mix(
        in srgb,
        color-mix(in srgb, var(--color-primary) 92%, black) 98%,
        black
      )
    );
  }
}

.cta-surface .btn.btn--primary:hover,
.cta-surface .btn.btn--primary:focus-visible {
  filter: brightness(1.035) saturate(1.02);
  transform: translate3d(0, -1px, 0);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.15),
    inset 0 -1px 2px rgba(0, 0, 0, 0.15),
    0 2px 6px color-mix(in srgb, var(--primary-color) 44%, transparent),
    0 19px 40px color-mix(in srgb, var(--primary-color) 21%, transparent),
    0 0 0 2px color-mix(in srgb, var(--text-inverse) 22%, transparent),
    0 0 0 5px color-mix(in srgb, var(--color-on-primary) 48%, transparent);
}

/* Secondary / WhatsApp: inverse outline only (no green fills on this surface). */
.cta-surface .btn.btn--ghost,
.cta-surface .btn.btn--outline,
.cta-surface .btn.btn--outline-dark,
.cta-surface .btn.btn--light,
.cta-surface .btn.btn--wa,
.cta-surface .btn.btn--wa-dark,
.cta-surface .btn.btn--wa-light,
.cta-surface .btn.btn--wa-cta {
  background-color: transparent;
  background-image: none;
  color: var(--text-inverse);
  border: 1px solid var(--text-inverse);
  box-shadow: none;
}

.cta-surface .btn.btn--ghost:hover,
.cta-surface .btn.btn--outline:hover,
.cta-surface .btn.btn--outline-dark:hover,
.cta-surface .btn.btn--light:hover,
.cta-surface .btn.btn--wa:hover,
.cta-surface .btn.btn--wa-dark:hover,
.cta-surface .btn.btn--wa-light:hover,
.cta-surface .btn.btn--wa-cta:hover {
  filter: brightness(1.08);
  border-color: color-mix(in srgb, var(--text-inverse) 82%, transparent);
}

.cta-surface .btn.btn--ghost:focus-visible,
.cta-surface .btn.btn--outline:focus-visible,
.cta-surface .btn.btn--outline-dark:focus-visible,
.cta-surface .btn.btn--light:focus-visible,
.cta-surface .btn.btn--wa:focus-visible,
.cta-surface .btn.btn--wa-dark:focus-visible,
.cta-surface .btn.btn--wa-light:focus-visible,
.cta-surface .btn.btn--wa-cta:focus-visible {
  filter: brightness(1.08);
  border-color: color-mix(in srgb, var(--text-inverse) 82%, transparent);
  outline: none;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--text-inverse) 32%, transparent);
}

/* Theme settings (admin): image URL + media library helpers */
.insaat-image-field {
  margin-bottom: 10px;
}

.insaat-image-field .insaat-image-url {
  display: block;
  max-width: 100%;
  margin-bottom: 6px;
}

.insaat-image-field .button {
  margin-right: 6px;
  margin-top: 2px;
}

.insaat-image-preview img {
  border-radius: 6px;
  border: 1px solid var(--color-border);
}

