/* =========================================================
   KARAMAN ARABIA – BLOCK THEME FOR CONTRACTING PAGE
   Only About + Core Services + Licenses + Flipbook
   ========================================================= */

/* ---------- ROOT THEME VARS (SAFE TO SHARE) ---------- */
:root {
  --gold: #ffcc67;
  --gold-soft: #ffe7b3;
  --gold-hover: #e6b85c;
  --dark1: #334553;
  --dark2: #1a1a1a;
  --glass: rgba(255,255,255,0.05);
  --radius-md: 16px;
  --radius-lg: 22px;
  --shadow-soft: 0 10px 25px rgba(0,0,0,0.25);
  --shadow-hover: 0 18px 40px rgba(0,0,0,0.35);
  --transition: .35s ease;
}

/* ---------- LOCAL HELPERS (non-global) ---------- */

.contracting-container,
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section-title {
  text-align: left;
  color: var(--gold);
  font-size: 2.8rem;
  font-weight: 900;
  margin-bottom: 40px;
  text-transform: uppercase;
}


/* ============================
   ABOUT SECTION (Aligned with Core Services)
   ============================ */
.about-section {
  padding: 60px 0;
  max-width: 1200px;
  margin: 0 auto;             /* SAME AS CORE SERVICES */
}

/* 2-column layout aligned with services width */
.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;   /* Reduced gap like Core Services */
  gap: 35px;
  align-items: center;
}

/* Text styling consistent with services */
.about-text p {
  color: var(--gold);
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 18px;
  text-align: left;
}

/* Good looking mission box */
.vision-mission-box {
  margin-top: 18px;
  padding: 20px;
  background: var(--glass);
  border-left: 4px solid var(--gold);
  border-radius: 14px;
}

/* Gold sub-heading */
.vision-mission-box h3 {
  color: var(--gold);
  font-size: 1.25rem;
  margin-bottom: 10px;
}

/* Image aligned with services card height */
.about-image .image-placeholder {
  height: 850px;                /* previously 650 — now matches design */
  border-radius: 20px;
  background: url('/image/aboutcons.jpg') center/cover no-repeat;
  box-shadow: var(--shadow-soft);
}



/* =========================================================
   CORE SERVICES
   ========================================================= */

/* =========================================================
   CORE SERVICES — 6 CARD LUXURY VERSION
   ========================================================= */

.services-section {
    padding: 50px 0;
    text-align: center;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    max-width: 1250px;
    margin: 0 auto;
    padding-top: 25px;
}

/* Card */
.service-card {
    background: linear-gradient(145deg, #42505c, #2c3944);
    padding: 45px 28px;
    border-radius: 22px;
    border: 1px solid rgba(255, 204, 103, 0.22);
    box-shadow: 0 0 20px rgba(0,0,0,0.25);

    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;

    min-height: 330px;
    transition: all .35s ease;
}

.service-card:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 204, 103, 0.55);
    box-shadow: 0 0 35px rgba(255,204,103,0.35);
}

/* Icon */
.icon-box {
    font-size: 3.4rem;
    color: #ffcc67;
    margin-bottom: 8px;
    animation: floatIcon 4.5s ease-in-out infinite;
    transition: .35s ease;
}

.service-card:hover .icon-box {
    transform: translateY(-10px) scale(1.12);
    filter: drop-shadow(0 0 25px rgba(255, 204, 103, 0.55));
}

/* Floating animation */
@keyframes floatIcon {
    0% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
    100% { transform: translateY(0); }
}

/* Title */
.service-card h3 {
    color: #ffcc67 !important;
    font-size: 1.45rem;
    font-weight: 700;
    margin: 0;
    text-align: center !important;
}

/* Text */
.service-card p {
    color: #ffcc67 !important;
    font-size: 0.97rem;
    line-height: 1.65;
    margin: 0;
    text-align: center !important;
}

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

@media (max-width: 600px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================================================
   LICENSES SECTION
   ========================================================= */

.licenses-section {
  padding: 40px 0;
}

.licenses-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 40px;
}

.licenses-text p {
  color: var(--gold);
  opacity: 1.85;
  line-height: 1.7;
}

/* Shuffle image */
.licenses-image-shuffle {
  height: 430px;
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  box-shadow: var(--shadow-soft);
}

.shuffle-image {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: 1s ease;
  background-size: cover;
  background-position: center;
}

.shuffle-image.active {
  opacity: 1;
}

/* =========================================================
   FLIPBOOK SLIDER
   ========================================================= */
/* FORCE CENTER the COMPANY PROFILE CATALOGUE heading */
#company-profile-slider .section-title {
    display: block;
    width: 100%;
    text-align: center !important;
    margin: 0 auto 25px !important;
    padding: 0;
}


.kg-slider-section {
  padding: 40px 20px 20px;
  text-align: center;
}

.kg-slider {
  max-width: 1100px;
  margin: 0 auto;
}

/* Aspect ratio as per profile images */
.kg-slider-viewport {
  width: 100%;
  aspect-ratio: 1600 / 700;
  border-radius: 20px;
  overflow: hidden;
  background: #0e141a;
  position: relative;

  /* gold frame */
  border: 3px solid transparent;
  background:
    linear-gradient(#0e141a, #0e141a),
    linear-gradient(135deg, #ffcc67, #ffe9b0, #ffcc67);
  background-clip: padding-box, border-box;
  transition: border-color .35s ease, box-shadow .35s ease;

  perspective: 1800px;
}

.kg-slider-viewport:hover {
  border-color: #ffdc8a;
  box-shadow:
    0 0 22px rgba(255,204,103,0.55),
    0 0 45px rgba(255,204,103,0.35);
}

/* Slides */
.kg-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: rotateY(12deg) scale(0.96) translateX(40px);
  transform-origin: right center;
  transition:
    opacity .45s ease,
    transform .55s cubic-bezier(.22,.61,.36,1);
  filter: drop-shadow(0 10px 25px rgba(0,0,0,0.35));
}

.kg-slide.is-active {
  opacity: 1;
  transform: rotateY(0deg) scale(1) translateX(0);
  filter: drop-shadow(0 18px 35px rgba(0,0,0,0.48));
  z-index: 5;
}

.kg-slide.is-prev {
  opacity: 0;
  transform: rotateY(-12deg) scale(0.96) translateX(-40px);
  transform-origin: left center;
  z-index: 1;
}

.kg-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Arrows */
.kg-slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  font-size: 65px;
  color: var(--gold);
  cursor: pointer;
  z-index: 60;
  text-shadow:
    0 0 12px rgba(255,204,103,0.45),
    0 0 22px rgba(0,0,0,0.55);
  transition: .25s ease;
}

.kg-slider-btn:hover {
  transform: translateY(-50%) scale(1.22);
  color: #ffe4a3;
  text-shadow:
    0 0 18px rgba(255,204,103,0.9),
    0 0 45px rgba(255,204,103,0.5);
}

.kg-slider-prev { left: 25px; }
.kg-slider-next { right: 25px; }

/* Page indicator */
.kg-slider-page-indicator {
  margin-top: 12px;
  color: var(--gold);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 2px;
}

/* Responsive tweaks */
@media (max-width: 900px) {
  .about-grid,
  .licenses-grid {
    grid-template-columns: 1fr;
  }

  .about-image .image-placeholder {
    height: 360px;
  }
}

@media (max-width: 768px) {
  .kg-slider-btn { font-size: 40px; }
}

/* Center the slider container wrapper */
.kg-slider {
  width: 100%;       /* ensures it spans full width of container */
  max-width: 1100px; /* your desired width */
  margin-left: auto;
  margin-right: auto;
}

/* Ensure the section container centers content */
.kg-slider-section {
  text-align: center;
}

/* Center the heading, but constrain its container for symmetry */
.kg-slider-section .section-title {
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}

/* Prevent phone numbers from mirroring in RTL */
.phone-number {
    direction: ltr !important;
    unicode-bidi: plaintext !important;
    text-align: left !important;
    display: inline-block;
}




