/**
 * Usustain brand palette — website (Antra template).
 * Loaded AFTER main.css to override the template's --tl-color-* variables.
 * The gold theme color (#CAA05C) is referenced via var(--tl-color-theme-primary)
 * in ~190 places, so this one override recolors the whole template.
 *
 * Primary : #E34B11 (brand orange) · #292725 (ink) · #F4F4F4 (paper)
 * Accent  : #DE1A58 (magenta) · #2BB3C0 (teal) · #65EEB7 (mint) — buttons & CTAs
 */

:root {
  /* Brand primary — replaces the template gold everywhere */
  --tl-color-theme-primary: #e34b11;

  /* Ink — headings & dark section backgrounds */
  --tl-color-heading-primary: #292725;
  --tl-color-bg-1: #292725;

  /* Warm neutrals (replace the template's cool grays) */
  --tl-color-text-body: #4d4a45;
  --tl-color-grey-1: #5c5852;
  --tl-color-grey-2: #9c9891;
  --tl-color-border-1: #e4e2df;

  /* Accent CTAs — use these when building buttons/highlight sections */
  --us-accent-magenta: #de1a58;
  --us-accent-teal: #2bb3c0;
  --us-accent-mint: #65eeb7;

  /*
   * main.css references --tl-color-bg-2 for the sticky (fixed) header but never
   * defines it — the sticky bar would render transparent with white nav links.
   * Map it to ink so the scrolled header stays dark and readable.
   */
  --tl-color-bg-2: #292725;
}

/* Paper — page background (main.css hardcodes #f6f6f6 on these) */
body,
.tl-bg-color,
.before-after-area .bg-color {
  background-color: #f4f4f4;
}

/* Hardcoded leftovers in main.css that bypass the variables */
.page-header {
  background-color: #292725; /* was #191919 */
}
.hero-section-6 .hero-text span {
  background: linear-gradient(180deg, #e34b11 14.9%, rgba(153, 153, 153, 0) 65.95%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: rgba(0, 0, 0, 0);
}

/*
 * Uploaded logo (from settings) can be any dimensions — the template only caps
 * width, so a tall/hi-res upload blows up the header. Constrain by height too.
 */
.header-logo img {
  max-width: 170px;
  max-height: 60px;
  width: auto;
  height: auto;
  object-fit: contain;
}
.side-menu-logo img {
  max-width: 150px;
  max-height: 60px;
  width: auto;
  height: auto;
  object-fit: contain;
}
.side-menu-head a img {
  max-width: 120px;
  max-height: 50px;
  width: auto;
  height: auto;
  object-fit: contain;
}

/*
 * Navbar inset — the Bootstrap container only gives 12px gutters, so the nav
 * content sits almost flush with the viewport edges. Give it real side room
 * (logical properties, so RTL gets the same spacing).
 */
.header .primary-header > .container {
  padding-inline: 32px;
}
@media only screen and (max-width: 576px) {
  .header .primary-header > .container {
    padding-inline: 20px;
  }
}

/*
 * Locale switcher — pill matching the template's glassy header icon buttons.
 * Placed in the utility cluster (search, burger) at the trailing edge so the
 * "Get in Touch" CTA keeps visual priority. .dark variant = mobile drawer
 * (light background).
 */
.header-lang-switch {
  display: inline-flex;
  align-items: center;
  column-gap: 8px;
  height: 46px;
  padding-inline: 18px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 30px;
  font-family: var(--tl-ff-heading);
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  color: var(--tl-color-common-white);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease-in-out;
}
.header-lang-switch:hover {
  color: var(--tl-color-common-white);
  background-color: var(--tl-color-theme-primary);
  border-color: var(--tl-color-theme-primary);
}
.header-lang-switch.dark {
  height: 40px;
  padding-inline: 14px;
  color: var(--tl-color-heading-primary);
  border-color: var(--tl-color-border-1);
}
.header-lang-switch.dark:hover {
  color: var(--tl-color-common-white);
  background-color: var(--tl-color-theme-primary);
  border-color: var(--tl-color-theme-primary);
}
.side-menu-head-actions {
  display: flex;
  align-items: center;
  column-gap: 12px;
}
/* Keep the close control in the head flex row — template uses position:fixed
   which overlaps the locale switcher we added beside it. */
.mobile-side-menu .side-menu-head .mobile-side-menu-close {
  position: static !important;
  top: auto !important;
  right: auto !important;
  flex-shrink: 0;
}

/* Keep the contact heading visible in the mobile drawer (template hides it ≤992). */
.mobile-side-menu .side-menu-header h3 {
  display: block;
  margin: 0 0 16px;
  font-size: 18px;
  font-weight: 600;
  color: var(--tl-color-heading-primary);
}

/* Multi-line address: pin sits at the top of the block, not floating mid-height. */
.mobile-side-menu .side-menu-list li {
  align-items: flex-start;
  column-gap: 12px;
}
.mobile-side-menu .side-menu-list li i {
  flex-shrink: 0;
  margin-top: 2px;
}
.mobile-side-menu .side-menu-list li p {
  margin: 0;
  line-height: 1.45;
}
/* Header pill is desktop-only — on mobile the drawer carries the switcher */
@media only screen and (max-width: 992px) {
  .header-right-wrap .header-lang-switch {
    display: none;
  }
}

/*
 * Mobile nav toggle — the Antra meanmenu-reveal is hidden by CSS, so we
 * expose a dedicated hamburger that opens .mobile-side-menu. Desktop keeps
 * the 4-square info sidebar trigger; mobile uses the drawer for navigation.
 */
.mobile-side-menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  background: rgba(216, 218, 223, 0.13);
  color: var(--tl-color-common-white);
  backdrop-filter: blur(10px);
  cursor: pointer;
  transition: all 0.3s ease-in-out;
}
.mobile-side-menu-toggle:hover {
  background-color: var(--tl-color-theme-primary);
  border-color: var(--tl-color-theme-primary);
  color: var(--tl-color-common-white);
}
.mobile-side-menu-toggle i {
  font-size: 18px;
  line-height: 1;
}
@media only screen and (max-width: 992px) {
  .header-right-wrap .sidebar-icon {
    display: none;
  }
  .mobile-side-menu-toggle {
    display: inline-flex;
  }
  .header.sticky-active .primary-header.fixed .mobile-side-menu-toggle,
  .header .primary-header.fixed .mobile-side-menu-toggle {
    color: var(--tl-color-heading-primary);
    border-color: var(--tl-color-heading-primary);
    background: transparent;
  }
  .header.sticky-active .primary-header.fixed .mobile-side-menu-toggle:hover,
  .header .primary-header.fixed .mobile-side-menu-toggle:hover {
    color: var(--tl-color-common-white);
    border-color: var(--tl-color-theme-primary);
    background-color: var(--tl-color-theme-primary);
  }
}

/* Rich service content rendered from the dashboard editor (Antra service-details look).
   Semantic HTML (h1/h2/ul) coming out of Quill is styled here to match the template's
   .details-title / .service-details-list-wrap rules; the .service-details-items block
   carries its own classes and is styled by main.css already. */
.service-details-content > h1,
.service-details-content > h2,
.service-details-content > h3,
.service-details-content > h4 {
  font-family: var(--tl-ff-heading);
  font-weight: 400;
  line-height: 1.25;
  margin: 40px 0 15px;
}
.service-details-content > h1,
.service-details-content > h2 {
  font-size: 40px;
}
.service-details-content > h3 {
  font-size: 28px;
  margin: 30px 0 12px;
}
.service-details-content > h4 {
  font-size: 22px;
  margin: 24px 0 10px;
}
.service-details-content > h1 {
  margin-top: 0;
}
.service-details-content > h2:first-child,
.service-details-content > h3:first-child,
.service-details-content > h4:first-child {
  margin-top: 0;
}
.service-details-content > ul {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 15px 40px;
  max-width: 785px;
  margin: 30px 0;
  padding: 0;
}
.service-details-content > ul > li {
  font-family: var(--tl-ff-heading);
  color: var(--tl-color-heading-primary);
  display: flex;
  align-items: center;
  column-gap: 10px;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.3;
}
.service-details-content > ul > li::before {
  content: "\f058";
  font-family: "Font Awesome 6 Pro", "Font Awesome 6 Free";
  font-weight: 900;
  color: var(--tl-color-theme-primary);
}
@media only screen and (max-width: 992px) {
  .service-details-content > h1,
  .service-details-content > h2 {
    font-size: 30px;
  }
  .service-details-content > h3 {
    font-size: 24px;
  }
  .service-details-content > h4 {
    font-size: 20px;
  }
}
@media only screen and (max-width: 767px) {
  .service-details-content > ul {
    grid-template-columns: 1fr;
  }
}

/* Feature-item titles/descriptions inside Quill embeds use inline tags
   (span.title / span.description) so Quill does not promote nested h3/p to blots.
   Keep h3/p selectors for older saved HTML. */
.service-details-item .content .title {
  display: block;
}
.service-details-item .content .description {
  display: block;
  margin: 0;
}

/* Rich portfolio content from the dashboard Quill editor (Antra portfolio-details).
   Headings map to .details-title-2 look; checklist/items blots use the template
   classes already styled in main.css. Inline span.title/description replace
   <strong> so Quill MutationObserver does not promote nested blocks. */
.project-details-content > h1,
.project-details-content > h2,
.project-details-content > h3,
.project-details-content > h4 {
  font-family: var(--tl-ff-heading);
  font-weight: 400;
  line-height: 1.25;
  margin: 40px 0 15px;
}
.project-details-content > h1,
.project-details-content > h2 {
  font-size: 50px;
  margin-bottom: 30px;
  line-height: 1;
}
.project-details-content > h3 {
  font-size: 40px;
  margin: 30px 0 20px;
}
.project-details-content > h4 {
  font-size: 28px;
  margin: 24px 0 12px;
}
.project-details-content > h1:first-child,
.project-details-content > h2:first-child,
.project-details-content > h3:first-child,
.project-details-content > h4:first-child {
  margin-top: 0;
}
.project-details-wrap .project-details-list ul li .title {
  color: var(--tl-color-heading-primary);
  font-weight: 700;
  margin-right: 4px;
}
.project-details-wrap .project-details-list ul li .description {
  color: inherit;
}
.project-details-wrap .project-details-items .project-details-item .title {
  display: block;
}
.project-details-wrap .project-details-items .project-details-item .label {
  display: block;
}
@media only screen and (max-width: 992px) {
  .project-details-content > h1,
  .project-details-content > h2 {
    font-size: 30px;
  }
  .project-details-content > h3 {
    font-size: 24px;
  }
}

/*
 * Request/contact form feedback (Livewire-driven forms). The request form sits
 * on a dark background image, so both states use light tones for contrast.
 * Inputs carry margin-bottom:30px from main.css — the error line tucks into it.
 */
.request-form-wrap .form-feedback {
  margin: 0 0 20px;
  padding: 14px 20px;
  border-radius: 24px;
  font-family: var(--tl-ff-body);
  font-size: 15px;
  line-height: 1.5;
  color: var(--tl-color-common-white);
}
.request-form-wrap .form-feedback.is-success {
  background: rgba(101, 238, 183, 0.16);
  border: 1px solid rgba(101, 238, 183, 0.45);
}
.request-form-wrap .form-feedback.is-error {
  background: rgba(222, 26, 88, 0.18);
  border: 1px solid rgba(222, 26, 88, 0.5);
}
.request-form-wrap .form-item .field-error {
  display: block;
  margin: -22px 8px 16px;
  font-size: 13px;
  font-family: var(--tl-ff-body);
  color: #ff9db4;
}
.request-form-wrap .form-item textarea.form-control + .field-error {
  margin-top: 0;
}

