/* ==========================================================================
   Kalyan Enterprises - site wide theme.

   Takes the home page palette and applies it to every other page (service
   pages, local pages, about, contact, gallery) and gives the service layout
   a modern card based UI.

   Loaded by header.php, so every page that has the header has the theme.
   It is written to sit ON TOP of the older css/style.css without needing
   that file to change.
   ========================================================================== */

:root {
  --ke-navy: #0b2c67;
  --ke-navy-dark: #082250;
  --ke-blue: #14449b;
  --ke-blue-light: #2a6fd6;
  --ke-sky: #7fb4ff;
  --ke-text: #23303d;
  --ke-muted: #6b7a8d;
  --ke-line: #e4e9f0;
  --ke-soft: #f4f7fb;
  --ke-radius: 12px;
  --ke-shadow: 0 8px 24px rgba(11, 44, 103, .08);
  --ke-shadow-lg: 0 16px 40px rgba(11, 44, 103, .14);
}

body {
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  color: var(--ke-text);
  background: #fff;
}

/* --------------------------------------------------------- page title band */
.page {
  background: linear-gradient(120deg, var(--ke-navy) 0%, var(--ke-blue) 100%) !important;
  padding: 34px 0 30px !important;
  margin: 0 !important;
  border: 0 !important;
  position: relative;
  overflow: hidden;
}
.page::after {
  content: "";
  position: absolute;
  right: -80px;
  top: -110px;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .05);
}
.page h1,
.page .page_tittle {
  color: #fff !important;
  font-size: 32px;
  font-weight: 700;
  line-height: 1.25;
  margin: 0;
  position: relative;
  z-index: 2;
}
.page .ke-crumbs { color: #b7cbec; position: relative; z-index: 2; }
.page .ke-crumbs a { color: #fff; text-decoration: none; }
.page .ke-crumbs a:hover { text-decoration: underline; }
.page .ke-crumbs span { color: var(--ke-sky); font-weight: 600; }

@media (max-width: 767px) {
  .page h1, .page .page_tittle { font-size: 23px; }
}

/* ------------------------------------------------------- service page layout */
.service-details-pages { padding: 0 0 46px; background: #fff; overflow-x: hidden; }

/* content + sidebar sit side by side only from 992px up - at 768-991 a third
   of the width is too narrow for the service list to be readable */
@media (max-width: 991px) {
  .service-details-pages > .container > .row > [class*="col-"] {
    flex: 0 0 100% !important;
    max-width: 100% !important;
  }
  .service-details-pages > .container > .row > .col-md-4 { margin-top: 26px; }
}
@media (min-width: 992px) {
  .service-details-pages > .container > .row { align-items: flex-start; }
}

/* the enquiry strip is a full width block, not a column */
.service-details-pages > .col-md-12 { padding-left: 0; padding-right: 0; flex: 0 0 100%; max-width: 100%; }

/* long words / URLs must never widen the page on a phone */
.text-img-block, .market-content-page { overflow-wrap: break-word; word-wrap: break-word; }

/* ------------------------------------------------------------ enquiry form */

#Enquire { margin: 0; }
#Enquire .cont2 {
  background: #fff;
  border: 1px solid var(--ke-line);
  border-radius: var(--ke-radius);
  box-shadow: var(--ke-shadow-lg);
  padding: 22px 24px 24px;
  margin: 26px 0 34px;
  position: relative;
  z-index: 5;
  float: none;
  width: 100%;
}
#Enquire .cont2 h3 {
  font-size: 19px;
  font-weight: 700;
  color: var(--ke-navy);
  margin: 0 0 16px;
  text-align: center;
}
#Enquire .cont2 h3::after {
  content: "";
  display: block;
  width: 54px;
  height: 3px;
  margin: 9px auto 0;
  border-radius: 3px;
  background: var(--ke-blue-light);
}
#Enquire input[type="text"],
#Enquire select {
  width: 100%;
  height: 46px;
  border: 1px solid #d8e2f0;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 14px;
  color: var(--ke-text);
  background: #fff;
  outline: none;
  margin-bottom: 10px;
}
#Enquire input[type="text"]:focus,
#Enquire select:focus {
  border-color: var(--ke-blue-light);
  box-shadow: 0 0 0 3px rgba(42, 111, 214, .14);
}
#Enquire input[type="submit"] {
  width: 100%;
  height: 46px;
  border: 0;
  border-radius: 8px;
  background: var(--ke-navy);
  color: #fff;
  font-weight: 700;
  font-size: 13.5px;
  text-transform: uppercase;
  letter-spacing: .05em;
  cursor: pointer;
  margin-bottom: 10px;
  transition: background .2s ease;
}
#Enquire input[type="submit"]:hover { background: var(--ke-blue); }

/* ------------------------------------------------------------ article card */
.market-content-page {
  background: #fff;
  border: 1px solid var(--ke-line);
  border-radius: var(--ke-radius);
  box-shadow: var(--ke-shadow);
  padding: 28px 30px 24px;
}
.market-content-page .block { padding: 0; border: 0; }

.text-img-block h1,
.text-img-block h2,
.text-img-block h3,
.text-img-block .services-right-title {
  color: var(--ke-navy);
  font-weight: 700;
  line-height: 1.3;
}
.text-img-block h1,
.text-img-block .services-right-title {
  font-size: 26px;
  margin: 0 0 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--ke-line);
}
.text-img-block h2 {
  font-size: 21px;
  margin: 30px 0 12px;
  padding-left: 14px;
  border-left: 4px solid var(--ke-blue-light);
}
.text-img-block p {
  font-size: 15px;
  line-height: 1.85;
  color: #3c4d61;
  margin: 0 0 15px;
}
.text-img-block a { color: var(--ke-blue); font-weight: 600; }
.text-img-block a:hover { color: var(--ke-navy); text-decoration: underline; }

.text-img-block img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 20px 0;
  border-radius: var(--ke-radius);
  box-shadow: var(--ke-shadow);
}

/* the old hand written bullet lists get the same treatment as the new ones */
ul.content-list-1,
ul.ke-local-points {
  list-style: none;
  padding: 0;
  margin: 0 0 8px;
}
ul.content-list-1 li,
ul.ke-local-points li {
  position: relative;
  padding: 9px 0 9px 30px;
  font-size: 14.5px;
  line-height: 1.7;
  color: #3c4d61;
  border-bottom: 1px solid #eef2f7;
}
ul.content-list-1 li:last-child,
ul.ke-local-points li:last-child { border-bottom: 0; }
ul.content-list-1 li::before,
ul.ke-local-points li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  top: 10px;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background: var(--ke-blue);
  color: #fff;
  font-size: 11px;
  line-height: 19px;
  text-align: center;
}

/* ---------------------------------------------------------- sidebar module */
#tab-list-block .market-list-group {
  background: #fff;
  border: 1px solid var(--ke-line);
  border-radius: var(--ke-radius);
  box-shadow: var(--ke-shadow);
  padding: 20px 18px;
  position: sticky;
  top: 16px;
}
#tab-list-block .market-list-group .ke-side-head {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--ke-navy);
  margin: 0 0 12px;
  padding-bottom: 11px;
  border-bottom: 1px solid var(--ke-line);
}
#tab-list-block .market-list-group ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
#tab-list-block .market-list-group li { margin: 0 0 5px; list-style: none; }
#tab-list-block .market-list-group li a {
  display: block;
  padding: 10px 14px 10px 30px;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 600;
  color: #3c4d61;
  background: var(--ke-soft);
  text-decoration: none;
  position: relative;
  transition: all .18s ease;
}
#tab-list-block .market-list-group li a::before {
  content: "\203A";
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-52%);
  font-size: 17px;
  color: var(--ke-blue-light);
  line-height: 1;
}
#tab-list-block .market-list-group li a:hover {
  background: var(--ke-blue);
  color: #fff;
  transform: translateX(3px);
}
#tab-list-block .market-list-group li a:hover::before { color: #fff; }
#tab-list-block .market-list-group li a.active {
  background: var(--ke-navy);
  color: #fff;
}
#tab-list-block .market-list-group li a.active::before { color: var(--ke-sky); }

/* a small "talk to us" card under the service list */
.ke-side-cta {
  margin-top: 16px;
  background: linear-gradient(140deg, var(--ke-navy) 0%, var(--ke-blue) 100%);
  border-radius: var(--ke-radius);
  color: #fff;
  padding: 22px 20px;
  text-align: center;
  box-shadow: var(--ke-shadow);
}
.ke-side-cta i { font-size:18px; color: var(--ke-sky); }
.ke-side-cta h3 { font-size: 17px; font-weight: 700; margin: 10px 0 4px; color: #fff; }
.ke-side-cta p { font-size: 12.5px; color: #c9d9f1; margin: 0 0 14px; line-height: 1.6; }
.ke-side-cta a.ke-side-call,
.ke-side-cta a.ke-side-wa {
  display: block;
  border-radius: 8px;
  padding: 11px 14px;
  font-size: 13.5px;
  font-weight: 700;
  text-decoration: none;
  margin-bottom: 8px;
}
.ke-side-cta a.ke-side-call { background: #fff; color: var(--ke-navy); }
.ke-side-cta a.ke-side-call:hover { background: var(--ke-sky); color: #08203f; }
.ke-side-cta a.ke-side-wa { background: #25d366; color: #fff; margin-bottom: 0; }
.ke-side-cta a.ke-side-wa:hover { background: #1eb257; }

/* ------------------------------------------------- "our services" card grid */
.ke-svc-grid-wrap { background: var(--ke-soft); padding: 48px 0 52px; }
.ke-svc-head { text-align: center; margin-bottom: 30px; }
.ke-svc-head h2 {
  font-size: 27px;
  font-weight: 700;
  color: var(--ke-navy);
  margin: 0 0 8px;
  text-transform: uppercase;
}
.ke-svc-head h2 span { color: var(--ke-blue-light); font-weight: 600; }
.ke-svc-head p { color: var(--ke-muted); font-size: 14px; margin: 0; }

.ke-svc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(215px, 1fr));
  gap: 18px;
}
.ke-svc-card {
  display: block;
  background: #fff;
  border: 1px solid var(--ke-line);
  border-radius: var(--ke-radius);
  overflow: hidden;
  text-decoration: none;
  box-shadow: var(--ke-shadow);
  transition: transform .22s ease, box-shadow .22s ease;
}
.ke-svc-card:hover { transform: translateY(-5px); box-shadow: var(--ke-shadow-lg); }
.ke-svc-thumb { position: relative; height: 132px; overflow: hidden; }
.ke-svc-thumb img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  margin: 0 !important; border-radius: 0 !important; box-shadow: none !important;
  transition: transform .35s ease;
}
.ke-svc-card:hover .ke-svc-thumb img { transform: scale(1.06); }
.ke-svc-thumb .ke-svc-icon {
  position: absolute; left: 50%; bottom: -18px; transform: translateX(-50%);
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--ke-navy); color: #fff; border: 3px solid #fff;
  display: flex; align-items: center; justify-content: center; font-size: 15px;
}
.ke-svc-body { padding: 28px 14px 18px; text-align: center; }
.ke-svc-body h3 {
  font-size: 14.5px; font-weight: 700; color: var(--ke-blue);
  margin: 0 0 8px; line-height: 1.35;
}
.ke-svc-body p { font-size: 12.5px; color: var(--ke-muted); margin: 0; line-height: 1.6; }

/* ---------------------------------------------- "... in other parts of" box */
.ke-local-areas {
  background: var(--ke-soft);
  border: 1px solid var(--ke-line);
  border-radius: var(--ke-radius);
  padding: 22px 24px;
  margin: 24px 0 0;
}
.ke-local-areas h2 {
  font-size: 17px; font-weight: 700; color: var(--ke-navy);
  margin: 0 0 14px; line-height: 1.35;
}
.ke-local-areas ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 8px;
}
.ke-local-areas li { margin: 0; list-style: none; }
.ke-local-areas a {
  display: inline-block; background: #fff;
  border: 1px solid #d8e2f0; border-radius: 20px;
  padding: 7px 15px; font-size: 12.5px; color: #3c4d61; text-decoration: none;
  transition: all .18s ease;
}
.ke-local-areas a:hover { background: var(--ke-blue); border-color: var(--ke-blue); color: #fff; }

/* ------------------------------------------------------------ call to action */
.call-to-action {
  background: linear-gradient(120deg, var(--ke-navy) 0%, var(--ke-blue) 100%) !important;
  padding: 34px 0 !important;
  border: 0 !important;
}
.call-to-action .call_left h2 {
  font-size: 21px !important;
  font-weight: 600 !important;
  color: #fff !important;
  line-height: 1.45;
  margin: 0;
}
.call-to-action .ct-cat-button,
.call-to-action .btn-primary {
  background: #fff !important;
  border: 0 !important;
  color: var(--ke-navy) !important;
  border-radius: 8px !important;
  padding: 12px 24px !important;
  font-weight: 700 !important;
  font-size: 13px !important;
  letter-spacing: .05em;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .16);
}
.call-to-action .ct-cat-button:hover,
.call-to-action .btn-primary:hover { background: var(--ke-sky) !important; color: #08203f !important; }

@media (max-width: 991px) {
  .market-content-page { padding: 22px 18px 18px; }
  #tab-list-block .market-list-group { position: static; }
  /* on a stacked layout the service list reads better as two columns */
  #tab-list-block .market-list-group ul {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 6px 10px;
  }
  #tab-list-block .market-list-group li { margin: 0; }
  .ke-side-cta { max-width: 460px; margin-left: auto; margin-right: auto; }
  .call-to-action .call_left h2 { font-size: 18px !important; text-align: center; }
  .call-to-action .row { text-align: center; }
  .call-to-action .col-md-3 { margin-top: 16px; }
}

@media (max-width: 767px) {
  .service-details-pages { padding-bottom: 34px; }
  .market-content-page { padding: 18px 14px 14px; border-radius: 10px; }
  .text-img-block h1, .text-img-block .services-right-title { font-size: 21px; }
  .text-img-block h2 { font-size: 18px; margin-top: 24px; }
  .text-img-block p { font-size: 14.5px; line-height: 1.8; }
  #Enquire .cont2 { padding: 18px 16px 16px; margin: -18px 0 26px; border-radius: 10px; }
  #Enquire .cont2 h3 { font-size: 17px; }
  .ke-local-areas { padding: 18px 16px; }
  .ke-svc-grid-wrap { padding: 36px 0 40px; }
  .ke-svc-head h2 { font-size: 21px; }
  .ke-svc-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
  .ke-svc-thumb { height: 104px; }
  .ke-svc-body { padding: 26px 10px 14px; }
  .ke-svc-body h3 { font-size: 13px; }
  .ke-svc-body p { display: none; }
}

@media (max-width: 400px) {
  .ke-svc-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
}
