/*
 * Kasanje Construction Company — Tile Installation Homepage
 * Modern Elementor homepage styling
 * Scoped to .tile-home so it does not affect other pages.
 */

:root {
  --tile-green: #174a3a;
  --tile-green-dark: #0d2f25;
  --tile-green-deep: #08231b;
  --tile-green-soft: #eaf2ee;
  --tile-gold: #d7a13d;
  --tile-gold-dark: #b98122;
  --tile-cream: #f6f2e9;
  --tile-sand: #eee5d5;
  --tile-ink: #17231e;
  --tile-text: #43504a;
  --tile-muted: #6f7a74;
  --tile-line: #e1e7e3;
  --tile-white: #ffffff;
  --tile-radius-sm: 12px;
  --tile-radius: 20px;
  --tile-radius-lg: 30px;
  --tile-shadow-sm: 0 10px 30px rgba(13,47,37,.08);
  --tile-shadow: 0 22px 60px rgba(13,47,37,.13);
  --tile-shadow-hover: 0 28px 70px rgba(13,47,37,.18);
  --tile-transition: all .28s ease;
}

/* ---------- BASE ---------- */
.tile-home,
.tile-home * {
  box-sizing: border-box;
}

.tile-home {
  position: relative;
  color: var(--tile-ink);
  font-family: Inter, Arial, Helvetica, sans-serif;
}

.tile-home .elementor-container {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.tile-home h1,
.tile-home h2,
.tile-home h3,
.tile-home h4,
.tile-home h5,
.tile-home h6 {
  margin-top: 0;
  color: var(--tile-green-dark);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
  letter-spacing: -.028em;
}

.tile-home p {
  color: var(--tile-text);
  line-height: 1.78;
}

.tile-home a,
.tile-home .elementor-button {
  transition: var(--tile-transition);
}

.tile-home img {
  display: block;
  max-width: 100%;
}

.tile-home .elementor-widget-text-editor p:last-child {
  margin-bottom: 0;
}

.tile-kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 14px;
  color: var(--tile-gold-dark);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.tile-kicker::before {
  content: "";
  width: 30px;
  height: 2px;
  border-radius: 99px;
  background: currentColor;
}

.tile-lead {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
  color: var(--tile-muted) !important;
  font-size: 17px;
  line-height: 1.85 !important;
}

/* ---------- BUTTONS ---------- */
.tile-home .elementor-button {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 15px 25px;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: .01em;
  text-decoration: none;
}

.tile-btn .elementor-button {
  color: #17251f !important;
  background: linear-gradient(135deg, #e3b357, var(--tile-gold));
  box-shadow: 0 12px 28px rgba(215,161,61,.25);
}

.tile-btn .elementor-button:hover {
  color: #17251f !important;
  background: #edbf65;
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(215,161,61,.32);
}

.tile-btn-outline .elementor-button {
  color: var(--tile-white) !important;
  background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.5);
  box-shadow: none;
  backdrop-filter: blur(6px);
}

.tile-btn-outline .elementor-button:hover {
  color: var(--tile-green-deep) !important;
  background: var(--tile-white);
  border-color: var(--tile-white);
  transform: translateY(-2px);
}

/* ---------- HERO ---------- */
.tile-home.tile-hero {
  min-height: 780px;
  display: flex;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
  background:
    linear-gradient(90deg, rgba(5,31,23,.96) 0%, rgba(5,31,23,.88) 36%, rgba(5,31,23,.55) 62%, rgba(5,31,23,.16) 100%),
    url("https://images.unsplash.com/photo-1581858726788-75bc0f6a952d?auto=format&fit=crop&w=2000&q=86") center 56% / cover no-repeat;
}

.tile-home.tile-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 12% 20%, rgba(215,161,61,.19), transparent 24%),
    linear-gradient(180deg, rgba(0,0,0,.03), rgba(0,0,0,.18));
}

.tile-home.tile-hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 95px;
  z-index: -1;
  background: linear-gradient(to top, rgba(8,35,27,.42), transparent);
  pointer-events: none;
}

.tile-hero > .elementor-container {
  padding: 120px 22px 135px;
}

.tile-hero .elementor-column,
.tile-hero .elementor-column-wrap,
.tile-hero .elementor-widget-wrap {
  position: relative;
}

.tile-hero .elementor-widget-wrap {
  display: block !important;
}

.tile-hero .tile-kicker {
  color: #f0c66f;
}

.tile-hero h1 {
  max-width: 780px;
  margin: 0 0 22px;
  color: var(--tile-white);
  font-size: clamp(48px, 5.25vw, 76px);
  line-height: 1.02;
  text-wrap: balance;
}

.tile-hero p {
  max-width: 650px;
  margin-bottom: 28px;
  color: rgba(255,255,255,.84);
  font-size: 18px;
  line-height: 1.78;
}

.tile-hero .elementor-widget-button {
  display: inline-block;
  width: auto;
  margin: 8px 10px 0 0;
  vertical-align: top;
}

/* ---------- TRUST STRIP ---------- */
.tile-home.tile-trust {
  z-index: 5;
  margin-top: -58px;
  padding: 0 22px;
  background: transparent;
}

.tile-trust > .elementor-container {
  overflow: hidden;
  max-width: 1120px;
  padding: 0;
  background: var(--tile-white);
  border: 1px solid rgba(23,74,58,.08);
  border-radius: 22px;
  box-shadow: var(--tile-shadow);
}

.tile-trust .elementor-column {
  position: relative;
}

.tile-trust .elementor-column:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 26px;
  right: 0;
  bottom: 26px;
  width: 1px;
  background: var(--tile-line);
}

.tile-trust .elementor-widget-wrap,
.tile-trust .elementor-column-wrap {
  padding: 27px 22px !important;
}

.tile-trust h3 {
  margin: 0 0 6px;
  color: var(--tile-green-dark);
  font-family: Inter, Arial, sans-serif;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -.01em;
}

.tile-trust p {
  margin: 0;
  color: var(--tile-muted);
  font-size: 13px;
  line-height: 1.55;
}

/* ---------- SECTIONS ---------- */
.tile-home.tile-section {
  padding: 96px 22px;
}

.tile-home.tile-cream {
  background:
    radial-gradient(circle at 85% 10%, rgba(215,161,61,.08), transparent 23%),
    var(--tile-cream);
}

.tile-home.tile-title {
  padding-bottom: 34px;
  text-align: center;
}

.tile-title h2 {
  max-width: 850px;
  margin: 0 auto 18px;
  font-size: clamp(36px, 4vw, 52px);
  line-height: 1.08;
  text-wrap: balance;
}

.tile-section h2 {
  font-size: clamp(36px, 4vw, 50px);
  line-height: 1.08;
}

/* ---------- SERVICE CARDS ---------- */
.tile-card {
  padding: 10px;
}

.tile-card .elementor-column-wrap,
.tile-card > .elementor-widget-wrap,
.tile-card .elementor-widget-wrap {
  height: 100%;
}

.tile-card > .elementor-column-wrap,
.tile-card > .elementor-widget-wrap,
.tile-card .elementor-column-wrap > .elementor-widget-wrap {
  position: relative;
  overflow: hidden;
  padding: 34px !important;
  background: rgba(255,255,255,.96);
  border: 1px solid rgba(23,74,58,.10);
  border-radius: var(--tile-radius);
  box-shadow: var(--tile-shadow-sm);
  transition: var(--tile-transition);
}

.tile-card > .elementor-column-wrap::before,
.tile-card > .elementor-widget-wrap::before,
.tile-card .elementor-column-wrap > .elementor-widget-wrap::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--tile-gold), #efd08f);
  opacity: .95;
}

.tile-card:hover > .elementor-column-wrap,
.tile-card:hover > .elementor-widget-wrap,
.tile-card:hover .elementor-column-wrap > .elementor-widget-wrap {
  transform: translateY(-7px);
  border-color: rgba(23,74,58,.16);
  box-shadow: var(--tile-shadow-hover);
}

.tile-card .elementor-icon-wrapper {
  margin-bottom: 20px;
}

.tile-card .elementor-icon {
  display: inline-grid;
  place-items: center;
  width: 62px;
  height: 62px;
  color: var(--tile-gold-dark) !important;
  background: #fbf4e5;
  border: 1px solid #eed7aa;
  border-radius: 16px;
  font-size: 27px;
}

.tile-card h3 {
  margin-bottom: 12px;
  font-size: 24px;
  line-height: 1.18;
}

.tile-card p {
  margin-bottom: 0;
  color: var(--tile-muted);
  font-size: 15px;
  line-height: 1.75;
}

/* ---------- WHY CHOOSE US ---------- */
.tile-image {
  padding-right: 28px;
}

.tile-image .elementor-widget-image,
.tile-image .elementor-widget-container {
  height: 100%;
}

.tile-image img {
  width: 100%;
  min-height: 530px;
  height: 100%;
  object-fit: cover;
  border-radius: 24px;
  box-shadow: var(--tile-shadow);
}

.tile-checks {
  margin: 25px 0 28px;
}

.tile-checks ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 22px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.tile-checks li {
  position: relative;
  min-height: 46px;
  padding: 12px 0 12px 35px;
  color: var(--tile-text);
  border-bottom: 1px solid var(--tile-line);
  font-size: 14px;
  line-height: 1.5;
}

.tile-checks li::before {
  content: "✓";
  position: absolute;
  top: 10px;
  left: 0;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  color: var(--tile-white);
  background: var(--tile-green);
  border-radius: 50%;
  box-shadow: 0 6px 14px rgba(23,74,58,.18);
  font-size: 12px;
  font-weight: 900;
}

/* ---------- GALLERY ---------- */
.tile-gallery {
  padding: 10px;
}

.tile-gallery .elementor-widget-image,
.tile-gallery .elementor-widget-container {
  overflow: hidden;
  border-radius: 18px;
}

.tile-gallery img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  border-radius: 18px;
  box-shadow: var(--tile-shadow-sm);
  transition: transform .6s cubic-bezier(.2,.7,.2,1), filter .35s ease;
}

.tile-gallery:hover img {
  transform: scale(1.045);
  filter: saturate(1.05) contrast(1.02);
}

/* ---------- PROCESS ---------- */
.tile-step {
  padding: 10px;
}

.tile-step .elementor-column-wrap,
.tile-step > .elementor-widget-wrap,
.tile-step .elementor-column-wrap > .elementor-widget-wrap {
  height: 100%;
  position: relative;
  padding: 30px 28px 30px 30px !important;
  background: var(--tile-white);
  border: 1px solid var(--tile-line);
  border-radius: 16px;
  box-shadow: 0 8px 25px rgba(13,47,37,.05);
}

.tile-step .elementor-column-wrap::before,
.tile-step > .elementor-widget-wrap::before,
.tile-step .elementor-column-wrap > .elementor-widget-wrap::before {
  content: "";
  position: absolute;
  top: 24px;
  left: 0;
  width: 3px;
  height: 64px;
  background: var(--tile-gold);
  border-radius: 0 4px 4px 0;
}

.tile-number {
  margin-bottom: 12px;
  color: rgba(215,161,61,.48);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 45px;
  font-weight: 800;
  line-height: 1;
}

.tile-step h3 {
  margin: 0 0 10px;
  color: var(--tile-green);
  font-size: 22px;
}

.tile-step p {
  margin: 0;
  color: var(--tile-muted);
  font-size: 14px;
  line-height: 1.7;
}

/* ---------- SERVICE AREA ---------- */
.tile-home.tile-area {
  overflow: hidden;
  color: var(--tile-white);
  background:
    radial-gradient(circle at 90% 0%, rgba(215,161,61,.18), transparent 28%),
    radial-gradient(circle at 5% 100%, rgba(255,255,255,.06), transparent 25%),
    linear-gradient(135deg, var(--tile-green-deep), var(--tile-green));
}

.tile-area::after {
  content: "";
  position: absolute;
  top: -70px;
  right: -70px;
  width: 250px;
  height: 250px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 50%;
  box-shadow: 0 0 0 34px rgba(255,255,255,.02), 0 0 0 68px rgba(255,255,255,.015);
  pointer-events: none;
}

.tile-area h2,
.tile-area h3,
.tile-area h4 {
  color: var(--tile-white);
}

.tile-area p {
  color: rgba(255,255,255,.76);
}

.tile-area .tile-kicker {
  color: #f0c66f;
}

.tile-contact-card {
  padding-left: 34px;
}

.tile-contact-card .elementor-column-wrap,
.tile-contact-card > .elementor-widget-wrap,
.tile-contact-card .elementor-column-wrap > .elementor-widget-wrap {
  overflow: hidden;
  padding: 34px !important;
  color: var(--tile-ink);
  background: rgba(255,255,255,.97);
  border: 1px solid rgba(255,255,255,.3);
  border-radius: var(--tile-radius);
  box-shadow: var(--tile-shadow);
}

.tile-contact-card h3,
.tile-contact-card h2 {
  color: var(--tile-green-dark) !important;
}

.tile-contact-card p {
  color: var(--tile-text) !important;
}

.tile-contact-card a:not(.elementor-button) {
  color: var(--tile-green);
  font-weight: 800;
  text-decoration: none;
}

.tile-pills span {
  display: inline-block;
  margin: 5px 4px;
  padding: 8px 14px;
  color: var(--tile-white);
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 999px;
  font-size: 13px;
}

/* ---------- TESTIMONIALS ---------- */
.tile-testimonial {
  padding: 10px;
}

.tile-testimonial .elementor-column-wrap,
.tile-testimonial > .elementor-widget-wrap,
.tile-testimonial .elementor-column-wrap > .elementor-widget-wrap {
  height: 100%;
  position: relative;
  padding: 34px !important;
  background: var(--tile-white);
  border: 1px solid rgba(23,74,58,.08);
  border-radius: var(--tile-radius);
  box-shadow: var(--tile-shadow-sm);
}

.tile-testimonial .elementor-column-wrap::before,
.tile-testimonial > .elementor-widget-wrap::before,
.tile-testimonial .elementor-column-wrap > .elementor-widget-wrap::before {
  content: "“";
  position: absolute;
  top: 8px;
  right: 22px;
  color: rgba(215,161,61,.24);
  font-family: Georgia, serif;
  font-size: 88px;
  line-height: 1;
}

.tile-quote {
  position: relative;
  z-index: 1;
  margin-bottom: 22px !important;
  color: #46534d !important;
  font-size: 16px;
  line-height: 1.85 !important;
}

.tile-testimonial h3 {
  margin: 0;
  color: var(--tile-green);
  font-family: Inter, Arial, sans-serif;
  font-size: 14px;
  font-weight: 800;
}

/* ---------- FAQ ---------- */
.tile-faq {
  padding-left: 36px;
}

.tile-faq .elementor-accordion {
  border-top: 1px solid var(--tile-line);
}

.tile-faq .elementor-accordion-item {
  border: 0 !important;
  border-bottom: 1px solid var(--tile-line) !important;
}

.tile-faq .elementor-tab-title {
  position: relative;
  padding: 21px 42px 21px 0 !important;
  color: var(--tile-green-dark) !important;
  border: 0 !important;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.4;
}

.tile-faq .elementor-tab-title:hover,
.tile-faq .elementor-tab-title.elementor-active {
  color: var(--tile-gold-dark) !important;
}

.tile-faq .elementor-accordion-icon {
  color: var(--tile-gold-dark) !important;
}

.tile-faq .elementor-tab-content {
  padding: 0 0 23px !important;
  color: var(--tile-muted);
  border: 0 !important;
  font-size: 14px;
  line-height: 1.75;
}

/* ---------- FINAL CTA ---------- */
.tile-home.tile-cta {
  overflow: hidden;
  padding: 88px 22px;
  color: var(--tile-white);
  background:
    radial-gradient(circle at 15% 0%, rgba(215,161,61,.22), transparent 30%),
    linear-gradient(120deg, var(--tile-green-deep), var(--tile-green));
}

.tile-cta::before {
  content: "";
  position: absolute;
  right: -90px;
  bottom: -120px;
  width: 320px;
  height: 320px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 50%;
  box-shadow: 0 0 0 45px rgba(255,255,255,.02), 0 0 0 90px rgba(255,255,255,.015);
}

.tile-cta h2 {
  max-width: 680px;
  margin-bottom: 18px;
  color: var(--tile-white);
  font-size: clamp(38px, 4.2vw, 54px);
  line-height: 1.07;
}

.tile-cta p {
  max-width: 650px;
  color: rgba(255,255,255,.78);
  font-size: 16px;
  line-height: 1.78;
}

.tile-cta .tile-kicker {
  color: #f0c66f;
}

.tile-cta .tile-contact-card {
  position: relative;
  z-index: 1;
}

/* ---------- TABLET ---------- */
@media (max-width: 1024px) {
  .tile-home.tile-hero {
    min-height: 700px;
    background-position: 60% center;
  }

  .tile-hero > .elementor-container {
    padding-top: 100px;
    padding-bottom: 120px;
  }

  .tile-hero h1 {
    max-width: 680px;
    font-size: clamp(46px, 6.5vw, 62px);
  }

  .tile-home.tile-section {
    padding: 78px 24px;
  }

  .tile-home.tile-title {
    padding-bottom: 28px;
  }

  .tile-trust .elementor-widget-wrap,
  .tile-trust .elementor-column-wrap {
    padding: 23px 16px !important;
  }

  .tile-image {
    padding-right: 18px;
  }

  .tile-image img {
    min-height: 470px;
  }

  .tile-gallery img {
    height: 260px;
  }

  .tile-card > .elementor-column-wrap,
  .tile-card > .elementor-widget-wrap,
  .tile-card .elementor-column-wrap > .elementor-widget-wrap {
    padding: 28px !important;
  }
}

/* ---------- MOBILE ---------- */
@media (max-width: 767px) {
  .tile-home.tile-hero {
    min-height: 680px;
    align-items: flex-end;
    background:
      linear-gradient(180deg, rgba(5,31,23,.42) 0%, rgba(5,31,23,.72) 38%, rgba(5,31,23,.96) 100%),
      url("https://images.unsplash.com/photo-1581858726788-75bc0f6a952d?auto=format&fit=crop&w=1100&q=82") 62% center / cover no-repeat;
  }

  .tile-hero > .elementor-container {
    padding: 160px 18px 82px;
  }

  .tile-hero h1 {
    max-width: 100%;
    margin-bottom: 18px;
    font-size: 41px;
    line-height: 1.04;
  }

  .tile-hero p {
    margin-bottom: 22px;
    font-size: 15.5px;
    line-height: 1.72;
  }

  .tile-hero .elementor-widget-button {
    display: block;
    width: 100%;
    margin: 10px 0 0;
  }

  .tile-hero .elementor-widget-button .elementor-button {
    width: 100%;
  }

  .tile-home.tile-trust {
    margin-top: -28px;
    padding: 0 14px;
  }

  .tile-trust > .elementor-container {
    border-radius: 18px;
  }

  .tile-trust .elementor-column:not(:last-child)::after {
    top: auto;
    right: 18px;
    bottom: 0;
    left: 18px;
    width: auto;
    height: 1px;
  }

  .tile-trust .elementor-widget-wrap,
  .tile-trust .elementor-column-wrap {
    padding: 17px 20px !important;
  }

  .tile-trust h3 {
    margin-bottom: 3px;
    font-size: 15px;
  }

  .tile-home.tile-section {
    padding: 62px 18px;
  }

  .tile-home.tile-title {
    padding-bottom: 24px;
  }

  .tile-title h2,
  .tile-section h2 {
    font-size: 34px;
  }

  .tile-lead {
    font-size: 15px;
    line-height: 1.75 !important;
  }

  .tile-kicker {
    font-size: 11px;
    letter-spacing: .13em;
  }

  .tile-card,
  .tile-step,
  .tile-gallery,
  .tile-testimonial {
    padding: 7px 0;
  }

  .tile-card > .elementor-column-wrap,
  .tile-card > .elementor-widget-wrap,
  .tile-card .elementor-column-wrap > .elementor-widget-wrap,
  .tile-step .elementor-column-wrap,
  .tile-step > .elementor-widget-wrap,
  .tile-step .elementor-column-wrap > .elementor-widget-wrap,
  .tile-testimonial .elementor-column-wrap,
  .tile-testimonial > .elementor-widget-wrap,
  .tile-testimonial .elementor-column-wrap > .elementor-widget-wrap {
    padding: 25px !important;
  }

  .tile-card .elementor-icon {
    width: 56px;
    height: 56px;
    font-size: 24px;
  }

  .tile-image {
    padding: 0 0 30px;
  }

  .tile-image img {
    min-height: 340px;
    max-height: 420px;
    border-radius: 18px;
  }

  .tile-checks ul {
    grid-template-columns: 1fr;
  }

  .tile-gallery img {
    height: 250px;
  }

  .tile-contact-card {
    padding: 25px 0 0;
  }

  .tile-contact-card .elementor-column-wrap,
  .tile-contact-card > .elementor-widget-wrap,
  .tile-contact-card .elementor-column-wrap > .elementor-widget-wrap {
    padding: 26px !important;
  }

  .tile-faq {
    padding: 30px 0 0;
  }

  .tile-home.tile-cta {
    padding: 68px 18px;
    text-align: left;
  }

  .tile-cta h2 {
    font-size: 36px;
  }

  .tile-cta .elementor-widget-button,
  .tile-cta .elementor-widget-button .elementor-button {
    width: 100%;
  }
}

/* ---------- SMALL PHONES ---------- */
@media (max-width: 420px) {
  .tile-hero h1 {
    font-size: 36px;
  }

  .tile-title h2,
  .tile-section h2,
  .tile-cta h2 {
    font-size: 31px;
  }

  .tile-home.tile-section {
    padding-left: 15px;
    padding-right: 15px;
  }
}

/* ---------- ACCESSIBILITY / REDUCED MOTION ---------- */
@media (prefers-reduced-motion: reduce) {
  .tile-home *,
  .tile-home *::before,
  .tile-home *::after {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}
