/* ==========================================================================
   Coasterra overrides — loaded after main.css.
   Keep site-specific changes here instead of editing the template's main.css.
   ========================================================================== */

/* 01 Typography: Philosopher everywhere ----------------------------------- */
:root {
  --ct-font: "Philosopher", sans-serif;
  --outfit-font: var(--ct-font);
  --dm-sans-font: var(--ct-font);
  --albert-sans-font: var(--ct-font);

  /* Coasterra logo palette: leaf green -> sea blue */
  --ct-leaf: #85BF18;
  --ct-leaf-2: #73C643;
  --ct-sea: #1FA3D1;
  --ct-deep: #1E3F7E;
  --ct-ink: #0F2A57;
}

html, body,
h1, h2, h3, h4, h5, h6,
p, a, span, li, label, input, textarea, select, button,
.e-primary-btn {
  font-family: var(--ct-font);
}

/* Font Awesome icons must keep their own font. */
.fa, .fas, .far, .fal, .fab, .fa-solid, .fa-regular, .fa-light, .fa-brands,
[class^="fa-"], [class*=" fa-"] {
  font-family: var(--icon-font);
}
.fab, .fa-brands {
  font-family: "Font Awesome 6 Brands";
}

/* Philosopher only ships 400/700: map the template's 500/600 to 700. */
h1, h2, h3, h4, h5, h6, .w-title, .e-primary-btn {
  font-weight: 700;
}

/* 02 Navbar: home now uses the same header as every other page --------------- */
.header-section {
  background: var(--white-color);
  box-shadow: 0 6px 24px -18px rgba(15, 42, 87, 0.45);
}
.header-section .logo-wrap img {
  max-height: 52px;
  width: auto;
}
/* Header now sits in the flow, so the hero no longer needs room under it. */
.header-section ~ main .hero-side {
  min-height: calc(100svh - 150px);
  padding-top: 90px;
  padding-bottom: 90px;
}
@media (max-width: 767px) {
  .header-section ~ main .hero-side {
    min-height: auto;
    padding-top: 70px;
    padding-bottom: 70px;
  }
}

/* 03 Why stay with us: lamp background with adjustable opacity ------------- */
.why-us-section.ct-lamp-bg {
  --ct-lamp-opacity: 0.5;
  background-image: none !important;
  isolation: isolate;
}
.why-us-section.ct-lamp-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: var(--ct-lamp-image);
  background-position: right bottom;
  background-repeat: no-repeat;
  background-size: contain;
  opacity: var(--ct-lamp-opacity);
  pointer-events: none;
}
@media (max-width: 1199px) {
  .why-us-section.ct-lamp-bg::before {
    background-size: 70% auto;
  }
}

/* 04 Project section (mobile spacing + readable titles) -------------------- */
.completed-project-top .common-title h2 {
  color: var(--white-color);
}
@media (max-width: 767px) {
  .completed-project-top .row > [class*="col-"] + [class*="col-"] {
    margin-top: 24px;
  }
  .completed-project-top .common-title h2 {
    font-size: 30px;
    line-height: 1.25;
  }
}

/* Darker glass so the title and text stay readable on bright photos. */
.project-card .thumb .content {
  background: linear-gradient(180deg, rgba(15, 42, 87, 0.55) 0%, rgba(0, 24, 25, 0.78) 100%);
  border-color: rgba(255, 255, 255, 0.18);
}
.project-card .thumb .content h5,
.project-card.active .thumb .content h5,
.project-card:hover .thumb .content h5 {
  color: var(--white-color);
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.35);
}
.project-card.active .thumb .content h5,
.project-card:hover .thumb .content h5 {
  color: #B7F27F;
}
.project-card .thumb .content p {
  color: rgba(255, 255, 255, 0.9);
}
@media (max-width: 767px) {
  .project-card .thumb .content {
    padding: 16px 16px 18px;
  }
  .project-card.active .thumb .content,
  .project-card:hover .thumb .content {
    padding-bottom: 92px;
  }
  .project-card .thumb .content p {
    font-size: 15px;
    line-height: 1.55;
  }
}

/* General mobile breathing room between stacked buttons and headings. */
@media (max-width: 767px) {
  .common-title + .e-primary-btn,
  .common-title ~ .e-primary-btn,
  .text-md-end > .e-primary-btn {
    margin-top: 8px;
  }
}

/* 05 Contact strip above the footer: label on top, value below ------------- */
.contact-info .info-label {
  font-size: 14px;
  line-height: 1.4;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 18px 0 4px;
  opacity: 0.85;
}
.contact-info h3 {
  margin-bottom: 0;
  word-break: break-word;
}
.contact-info.active .info-label {
  color: var(--ct-leaf-2);
}
.contact-info-layout {
  background: linear-gradient(100deg, var(--ct-leaf-2) 0%, var(--ct-leaf) 55%, #5FB7A0 100%);
}
@media (max-width: 767px) {
  .contact-info {
    padding: 20px;
  }
  .contact-info-layout {
    row-gap: 8px;
  }
}

/* 06 Footer: logo emblem + wave shape ------------------------------------- */
.footer-section {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding-bottom: 40px;
}
.footer-section > .container {
  position: relative;
  z-index: 2;
}
.ct-footer-wave {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 160px;
  z-index: 1;
  pointer-events: none;
}
.ct-footer-wave svg {
  display: block;
  width: 100%;
  height: 100%;
}
.ct-footer-emblem {
  position: absolute;
  right: -60px;
  top: 90px;
  width: 360px;
  opacity: 0.07;
  z-index: 1;
  pointer-events: none;
}
.ct-footer-emblem img {
  width: 100%;
  height: auto;
}
@media (max-width: 767px) {
  .ct-footer-wave {
    height: 110px;
  }
  .ct-footer-emblem {
    width: 220px;
    right: -50px;
    top: 120px;
  }
}

.footer-section .footer-logo img {
  height: 56px;
  width: auto;
}
.footer-section .about-widget .text p {
  font-size: 18px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.88);
  margin-top: 18px;
  padding-left: 14px;
  border-left: 3px solid var(--ct-leaf-2);
}
.footer-widget .w-title {
  position: relative;
  padding-bottom: 12px;
}
.footer-widget .w-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 42px;
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--ct-leaf-2), var(--ct-sea));
}

/* 07 Service cards: equal title/subtitle boxes so the cards line up --------- */
.what-we-do-section .project-card .thumb .content,
.project-card.style-service .thumb .content {
  display: flex;
  flex-direction: column;
}
.what-we-do-section .project-card .thumb .content h5,
.project-card.style-service .thumb .content h5 {
  line-height: 1.3;
  min-height: 2.6em;            /* always room for two lines */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.what-we-do-section .project-card .thumb .content > p,
.project-card.style-service .thumb .content > p {
  line-height: 1.5;
  min-height: 3em;              /* two lines of subtitle */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* 11 Home "Contact Us" card: centred instead of pushed to the right ----------- */
.contact-us .contact-form { margin-left: auto; margin-right: auto; }
.contact-us .contact-form .form-content-top { text-align: center; }
.contact-us .contact-form .form-content-top p { margin-left: auto; margin-right: auto; }
.contact-us .ct-upload-compact { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .35); }
.contact-us .ct-upload-compact:hover, .contact-us .ct-upload-compact.is-dragover { background: rgba(255, 255, 255, .14); border-color: var(--ct-leaf-2); }
.contact-us .ct-upload-compact .ct-upload-text { color: rgba(255, 255, 255, .85); }
.contact-us .ct-upload-compact .ct-upload-icon { color: var(--ct-leaf-2); }
