/**
 * Kulwatha Center — v1.2.1 visual fixes.
 * Ticker alignment, unified dark page titles, internal-page rhythm and footer logo.
 */

html,
body,
button,
input,
textarea,
select {
  font-family: "Tajawal", "Cairo", Tahoma, Arial, sans-serif;
}

h1,
h2,
h3,
h4,
h5,
h6,
.kwd-nav-list,
.kwd-top-menu,
.kwf-col h3,
.kw-btn,
.kw-text-link {
  font-family: "Cairo", "Tajawal", Tahoma, Arial, sans-serif;
}

/* Latest releases ticker. */
.kwd-updates {
  height: 42px;
  min-height: 42px;
  overflow: hidden;
  background: #f8f6f0;
}

.kwd-updates-inner {
  height: 42px;
  min-height: 42px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.kwd-updates-title {
  align-self: stretch;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  white-space: nowrap;
}

.kwd-ticker {
  height: 42px;
  min-width: 0;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.kwd-ticker-track,
.kwd-ticker-group {
  height: 42px;
  display: flex;
  align-items: center;
}

.kwd-ticker-track {
  width: max-content;
}

.kwd-ticker-group {
  flex: none;
}

.kwd-ticker-group a {
  height: 42px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding-top: 0;
  padding-bottom: 0;
  line-height: 1.2;
}

.kwd-ticker-group a small,
.kwd-ticker-group a span {
  display: inline-flex;
  align-items: center;
  line-height: 1.2;
}

.kwd-ticker-group a::after {
  top: 50%;
  transform: translateY(-50%);
}

/* One page-title treatment across all internal pages. */
.kw-page-hero,
.kw-page-hero--accent,
.kw-page-hero--dark {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 48px 0 52px;
  background: #202427 !important;
  color: #fff;
  border-bottom: 3px solid var(--kwd-gold);
}

.kw-page-hero::before,
.kw-single__header::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: 300px;
  height: 300px;
  left: -95px;
  top: -150px;
  border: 52px solid rgba(228, 185, 42, 0.065);
  border-radius: 50%;
  pointer-events: none;
}

.kw-page-hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(110deg, rgba(255,255,255,0.025), transparent 48%);
  pointer-events: none;
}

.kw-page-hero .kw-breadcrumbs,
.kw-page-hero .kw-breadcrumbs a {
  color: rgba(255,255,255,0.58);
}

.kw-page-hero .kw-breadcrumbs a:hover {
  color: var(--kwd-gold);
}

.kw-page-hero .kw-eyebrow {
  margin-bottom: 5px;
  color: var(--kwd-gold);
  font-size: 14px;
}

.kw-page-hero h1 {
  max-width: 920px;
  margin: 5px 0 10px;
  color: #fff;
  font-size: clamp(30px, 3.35vw, 48px);
  line-height: 1.28;
  letter-spacing: -0.025em;
}

.kw-page-hero p,
.kw-page-hero .kw-page-hero__desc {
  max-width: 790px;
  margin: 0;
  color: rgba(255,255,255,0.66) !important;
  font-size: 16px;
  line-height: 1.85;
}

/* Single content titles use the same dark visual language. */
.kw-single__header {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 48px 0 44px;
  background: #202427;
  color: #fff;
  border-bottom: 3px solid var(--kwd-gold);
}

.kw-single__header .kw-breadcrumbs,
.kw-single__header .kw-breadcrumbs a,
.kw-single__header .kw-meta {
  color: rgba(255,255,255,0.58);
}

.kw-single__header .kw-kicker {
  color: var(--kwd-gold);
}

.kw-single__header h1 {
  max-width: 920px;
  margin: 8px 0 12px;
  color: #fff;
  font-size: clamp(30px, 3.55vw, 50px);
  line-height: 1.3;
}

.kw-single__lead {
  color: rgba(255,255,255,0.68);
  font-size: 16px;
  line-height: 1.9;
}

.kw-single__media {
  margin-top: 28px;
}

/* Internal pages: tighter vertical rhythm and aligned cards. */
body.page:not(.home) .kw-section,
body.single .kw-section,
body.archive .kw-section,
body.search .kw-section {
  padding-top: 56px;
  padding-bottom: 56px;
}

body.page:not(.home) .kw-section + .kw-section {
  border-top: 1px solid #eee9df;
}

body.page:not(.home) .kw-section--soft {
  background: #f8f6f0;
}

body.page:not(.home) .kw-prose {
  max-width: 920px;
  font-size: 16px;
  line-height: 2;
}

body.page:not(.home) .kw-prose h2 {
  margin-top: 34px;
  margin-bottom: 12px;
  font-size: clamp(24px, 2.2vw, 31px);
}

body.page:not(.home) .kw-prose h3 {
  margin-top: 28px;
  font-size: 22px;
}

body.page:not(.home) .kw-prose p:last-child {
  margin-bottom: 0;
}

.kw-two-col,
.kw-contact-grid {
  gap: 34px;
}

.kw-values {
  display: grid;
  gap: 14px;
}

.kw-values > div,
.kw-three-values article,
.kw-services-grid article {
  height: 100%;
  box-shadow: 0 8px 24px rgba(32,36,39,0.035);
}

.kw-three-values,
.kw-services-grid {
  align-items: stretch;
}

.kw-three-values article,
.kw-services-grid article {
  display: flex;
  flex-direction: column;
}

.kw-services-grid article {
  min-height: 230px;
  padding: 26px;
}

.kw-services-grid h2 {
  margin-top: 10px;
  margin-bottom: 10px;
}

.kw-services-grid p {
  line-height: 1.85;
}

.kw-services-grid .kw-text-link {
  margin-top: auto;
  padding-top: 18px;
}

.kw-contact-info,
.kw-contact-form-wrap {
  box-shadow: 0 12px 32px rgba(32,36,39,0.05);
}

/* Avoid the large empty strip before the footer. */
.kwf-footer {
  margin-top: 0 !important;
}

/* Footer logo: preserve original brand colors instead of inverting the image. */
.kwf-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  max-width: 100%;
  margin-bottom: 14px;
  padding: 12px 15px;
  background: #fff;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 14px;
  box-shadow: 0 10px 28px rgba(0,0,0,0.12);
}

.kwf-logo img {
  display: block;
  width: min(245px, 100%);
  height: auto;
  max-height: 76px;
  object-fit: contain;
  filter: none !important;
  opacity: 1 !important;
}

.kwf-about,
.kwf-grid {
  align-items: start;
}

@media (max-width: 900px) {
  .kw-page-hero,
  .kw-page-hero--accent,
  .kw-page-hero--dark,
  .kw-single__header {
    padding-top: 40px;
    padding-bottom: 43px;
  }

  body.page:not(.home) .kw-section,
  body.single .kw-section,
  body.archive .kw-section,
  body.search .kw-section {
    padding-top: 46px;
    padding-bottom: 46px;
  }

  .kwf-logo img {
    width: min(225px, 72vw);
  }
}

@media (max-width: 640px) {
  .kwd-updates,
  .kwd-updates-inner,
  .kwd-updates-title,
  .kwd-ticker,
  .kwd-ticker-track,
  .kwd-ticker-group,
  .kwd-ticker-group a {
    height: 40px;
    min-height: 40px;
  }

  .kwd-updates-title {
    padding-inline: 10px;
    font-size: 14px;
  }

  .kwd-ticker-group a {
    font-size: 14px;
  }

  .kwd-ticker-group a small {
    display: none;
  }

  .kw-page-hero,
  .kw-page-hero--accent,
  .kw-page-hero--dark,
  .kw-single__header {
    padding-top: 34px;
    padding-bottom: 37px;
  }

  .kw-page-hero h1,
  .kw-single__header h1 {
    font-size: 31px;
  }

  .kw-page-hero p {
    font-size: 14px;
  }

  body.page:not(.home) .kw-section,
  body.single .kw-section,
  body.archive .kw-section,
  body.search .kw-section {
    padding-top: 38px;
    padding-bottom: 38px;
  }

  .kw-services-grid article {
    min-height: 0;
  }

  .kwf-logo {
    padding: 10px 12px;
  }
}
