/* IN5INITY — site chrome, accents, homepage + mobile layout */

:root {
  --in5-gold: #c9a227;
  --in5-charcoal: #2c2c2c;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

/* Soften mobile hamburger toward charcoal/gold */
#mobile-menu-trigger {
  color: var(--in5-gold) !important;
}

#mobile-menu-trigger:hover {
  color: #fff !important;
}

.sf-menu > li.current > a {
  box-shadow: inset 0 -2px 0 var(--in5-gold);
}

/* Contact page conversion CTAs */
.contact-cta-title {
  color: #fff;
  margin: 0 0 8px;
  font-size: 22px;
}

.contact-cta-lead {
  color: #ccc;
  margin: 0 0 18px;
  font-size: 14px;
  line-height: 1.45;
}

.contact-cta {
  margin-bottom: 22px;
  justify-content: flex-start;
}

.contact-cta a.btn,
.cta-band a.btn-call-solid,
a.btn-call-solid {
  background: var(--in5-charcoal);
  color: #fff !important;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

a.btn-email {
  background: transparent;
  color: #fff !important;
  border: 1px solid rgba(255, 255, 255, 0.55);
}

.contact-form-note {
  color: #bbb;
  margin: 0 0 12px;
  font-size: 13px;
}

#full-contact-info .map iframe {
  max-width: 100%;
  height: auto;
  min-height: 280px;
  aspect-ratio: 4 / 3;
}

/* Wider contact panel so WhatsApp / Call / Email fit */
#contact-info-wrap {
  width: 320px;
}

#contact-info {
  width: 280px;
  box-sizing: border-box;
}

#contact-info:before,
#contact-info:after {
  border-left-width: 160px;
  border-right-width: 160px;
}

.contact-cta {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
}

.contact-cta a.btn {
  width: 100%;
  box-sizing: border-box;
  text-align: center;
  margin: 0;
  white-space: normal;
  line-height: 1.3;
  padding-top: 10px;
  padding-bottom: 10px;
}

@media (max-width: 767px) {
  #contact-info-wrap {
    width: auto;
    left: 0;
    margin-left: 0 !important;
    padding: 24px 16px 100px;
  }

  #contact-info {
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
  }

  #contact-info:before,
  #contact-info:after {
    display: none;
  }

  #full-contact-info {
    min-height: auto;
  }

  #full-contact-info .map {
    position: relative !important;
    height: 240px;
    margin-bottom: 16px;
  }

  #full-contact-info .map iframe {
    width: 100% !important;
    height: 240px !important;
    min-height: 240px;
  }
}

img {
  max-width: 100%;
  height: auto;
}

#main-slider .slides li {
  position: relative;
  overflow: hidden;
}

#main-slider .slides li::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.28) 50%, rgba(0, 0, 0, 0.18) 100%);
  pointer-events: none;
  z-index: 1;
}

#main-slider .slides li img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

#main-slider .slidetext {
  left: 50% !important;
  right: auto;
  bottom: 18% !important;
  width: min(640px, 90%) !important;
  margin-left: 0 !important;
  transform: translateX(-50%);
  text-align: center;
  z-index: 2;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.45);
  box-sizing: border-box;
  padding: 0 8px;
}

#main-slider .slidetext h1 {
  font-size: 36px;
  line-height: 1.2;
  margin: 0 0 12px;
  color: #fff;
}

#main-slider .slidetext p {
  color: #f2f2f2;
  font-size: 16px;
  margin: 0 0 22px;
}

#main-slider .slidetext .hero-cta,
.cta-band .hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

#main-slider .slidetext a.btn {
  margin: 0;
}

#main-slider .slidetext a.btn-whatsapp,
.cta-band a.btn-whatsapp {
  background: #25d366;
  color: #fff !important;
  border: none;
}

#main-slider .slidetext a.btn-whatsapp:hover,
.cta-band a.btn-whatsapp:hover {
  background: #1ebe57;
  color: #fff !important;
}

#main-slider .slidetext a.btn-call {
  background: transparent;
  color: #fff !important;
  border: 2px solid rgba(255, 255, 255, 0.9);
}

#main-slider .slidetext a.btn-call:hover {
  background: rgba(255, 255, 255, 0.15);
}

.trust-strip {
  text-align: center;
  padding: 14px 16px;
  margin: -40px 0 40px;
  background: #2c2c2c;
  color: #f0f0f0;
  font-size: 14px;
  letter-spacing: 0.02em;
  line-height: 1.5;
}

.trust-strip span {
  display: inline;
  white-space: nowrap;
}

.trust-strip span + span::before {
  content: "·";
  margin: 0 0.55em;
  opacity: 0.6;
}

.section-intro {
  max-width: 720px;
  margin: 0 auto 36px;
  text-align: center;
  padding: 0 8px;
}

.section-intro h1 {
  text-align: center;
}

.brand-mark-wrap {
  margin: 0 0 18px;
}

.brand-mark {
  width: min(220px, 55vw);
  height: auto;
  border-radius: 8px;
  display: inline-block;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.brand-lockup-wrap {
  margin: 0 0 16px;
}

.brand-lockup {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.14);
}

.brand-tagline {
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 12px;
  color: #666;
  margin: 0 0 14px;
}

.span8 > .brand-tagline {
  text-align: left;
  margin-top: -4px;
}

.pillars .pillar {
  margin-bottom: 28px;
}

.pillars .pillar p {
  text-align: center;
  max-width: 560px;
  margin: 0 auto 12px;
}

/* Featured work: full 3×2 (also fixed in layout.css; grid as belt-and-suspenders) */
.strip-portfolio.fixed {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 0 !important;
  width: 100% !important;
  margin-bottom: 48px;
  float: none !important;
  clear: both;
}

.strip-portfolio.fixed::before,
.strip-portfolio.fixed::after {
  content: none !important;
  display: none !important;
}

.strip-portfolio.fixed > .portfolio-item {
  float: none !important;
  width: auto !important;
  max-width: none !important;
  display: block !important;
  margin: 0 !important;
}

.strip-portfolio.fixed > .portfolio-item:last-child {
  display: block !important;
}

.strip-portfolio .portfolio-item-preview > a img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
}

/* What we do: two columns (avoid flex — .row ::before/::after break it) */
.pillars.row {
  clear: both;
}

.pillars .pillar.span6 {
  float: left;
  width: 50%;
  box-sizing: border-box;
  padding: 0 20px;
  margin-left: 0;
}

.featured-work-head {
  margin-top: 10px;
  margin-bottom: 8px;
}

.featured-work-lead {
  margin-bottom: 20px;
}

.why-head {
  margin: 0 0 16px;
}

.client-quotes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  max-width: 960px;
  margin: 28px auto 12px;
  padding: 0 12px;
}

.client-quote {
  margin: 0;
  padding: 20px 18px;
  background: #f7f5f0;
  border-top: 3px solid var(--in5-gold, #c9a227);
}

.client-quote blockquote {
  margin: 0 0 12px;
  font-size: 14px;
  line-height: 1.55;
  color: #333;
  font-style: italic;
}

.client-quote figcaption {
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #777;
}

.quotes-note {
  text-align: center;
  font-size: 12px;
  color: #999;
  margin: 0 0 8px;
}

.about-points {
  margin: 16px 0 22px;
}

.about-cta {
  justify-content: flex-start;
  margin-top: 8px;
}

.about-cta a.btn-call-solid {
  background: var(--in5-charcoal, #2c2c2c);
  color: #fff !important;
  border: 1px solid var(--in5-charcoal, #2c2c2c);
}

.about-cta a.btn:not(.btn-whatsapp):not(.btn-call-solid) {
  background: transparent;
  color: #333 !important;
  border: 1px solid #999;
}

.gallery-section-lead {
  text-align: center;
  color: #666;
  margin: -8px 0 20px;
  font-size: 14px;
}

.photos .gallery-item {
  position: relative;
}

.photos .gallery-caption {
  display: block;
  font-size: 12px;
  color: #555;
  text-align: center;
  margin: 6px 4px 14px;
  line-height: 1.35;
}

@media (max-width: 767px) {
  .client-quotes {
    grid-template-columns: 1fr;
  }
}

.service-card {
  margin-bottom: 36px;
  text-align: center;
}

.service-card .service-overview {
  margin-left: auto;
  margin-right: auto;
}

.service-card h2,
.service-card .headline {
  margin-top: 16px;
}

.service-card p {
  text-align: center !important;
  margin-top: 8px !important;
  padding: 0 8px;
}

.cta-band {
  background: #1f1f1f;
  color: #fff;
  text-align: center;
  padding: 40px 20px;
  margin: 40px 0 0;
}

.cta-band h2 {
  color: #fff;
  margin: 0 0 10px;
}

.cta-band p {
  color: #ddd;
  margin: 0 0 20px;
}

.cta-band a.btn-call,
.cta-band a.btn-contact {
  background: transparent;
  color: #fff !important;
  border: 2px solid rgba(255, 255, 255, 0.85);
}

.wa-float {
  position: fixed;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
  z-index: 9999;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25d366;
  color: #fff !important;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.28);
  text-decoration: none !important;
}

.wa-float:hover {
  background: #1ebe57;
  color: #fff !important;
}

.why-list {
  max-width: 640px;
  margin: 0 auto 24px;
  text-align: left;
  padding: 0 16px;
}

.why-list li {
  margin-bottom: 10px;
  list-style: disc;
  margin-left: 1.2em;
}

/* Tablet */
@media (max-width: 979px) {
  #main-slider .slides li {
    height: 520px !important;
  }

  #main-slider .slidetext h1 {
    font-size: 30px;
  }
}

/* Phones */
@media (max-width: 767px) {
  #header .row {
    position: relative;
  }

  #logo {
    max-width: calc(100% - 56px);
    margin-top: 12px !important;
    padding-bottom: 12px !important;
  }

  #logo img {
    max-height: 56px;
    width: auto;
  }

  #main-slider {
    margin-bottom: 0 !important;
  }

  #main-slider .bx-wrapper,
  #main-slider .bx-viewport {
    max-width: 100% !important;
  }

  #main-slider .slides li {
    height: min(72vh, 560px) !important;
    min-height: 460px !important;
  }

  #main-slider .slidetext {
    bottom: 64px !important;
    width: calc(100% - 24px) !important;
    max-width: none !important;
    left: 50% !important;
    margin-left: 0 !important;
    transform: translateX(-50%);
  }

  #main-slider .slidetext h1 {
    font-size: clamp(20px, 5.6vw, 26px);
    margin-bottom: 8px;
  }

  #main-slider .slidetext p {
    font-size: 14px;
    margin-bottom: 14px;
    line-height: 1.4;
  }

  #main-slider .slidetext .hero-cta,
  .cta-band .hero-cta {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }

  #main-slider .slidetext a.btn,
  .cta-band a.btn {
    width: 100%;
    box-sizing: border-box;
    text-align: center;
    display: block;
  }

  .trust-strip {
    margin: 0 0 28px;
    padding: 12px 14px;
    font-size: 12px;
  }

  .trust-strip span {
    white-space: normal;
  }

  .trust-strip span + span::before {
    margin: 0 0.35em;
  }

  .section-intro h1 {
    font-size: 22px !important;
    line-height: 1.35 !important;
  }

  .section-intro h4 {
    font-size: 14px;
    line-height: 1.55;
    padding: 0 4px;
  }

  .strip-portfolio.fixed {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .pillars .pillar.span6 {
    width: 100%;
    float: none;
    padding: 0 8px;
  }

  .strip-portfolio .portfolio-item-overlay {
    padding: 16px 12px 0 !important;
  }

  .strip-portfolio .portfolio-item-description h4 {
    font-size: 13px;
  }

  .cta-band {
    padding: 32px 16px 88px;
  }

  .wa-float {
    width: 52px;
    height: 52px;
    font-size: 26px;
  }

  /* Avoid horizontal scroll from absolute/fixed template bits */
  #wrap,
  #content,
  .row {
    max-width: 100%;
    overflow-x: hidden;
  }
}

@media (max-width: 479px) {
  #main-slider .slides li {
    height: min(78vh, 580px) !important;
    min-height: 480px !important;
  }

  .strip-portfolio.fixed {
    grid-template-columns: 1fr;
  }
}
