/*
 * Tejas Constructions: site-wide refinements layered on top of main.css.
 * The visual design is unchanged; this file adds accessibility and small
 * polish fixes.
 */

/* ---------- Mobile menu: scroll if it is taller than the screen ---------- */
@media (max-width: 991px) {
  nav#mobile-menu {
    max-height: 80vh;
    overflow-y: auto;
  }
}

/* ---------- Accessibility ---------- */
.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 10000;
  padding: 12px 20px;
  background: var(--theme-color);
  color: var(--black-color);
  font-weight: 600;
  border-radius: 0 0 6px 6px;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 0;
  color: var(--black-color);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--theme-color);
  outline-offset: 3px;
}

.visually-hidden-label {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Form fields: clearer focus state that matches the brand colour */
.projects-form-area input:focus,
.projects-form-area textarea:focus,
.contact__from-input input:focus,
.contact__from-input textarea:focus,
.need-3-form input:focus,
.need-3-form textarea:focus {
  border-color: var(--theme-color) !important;
  box-shadow: 0 0 0 3px rgba(255, 143, 39, 0.18);
}

button[type="submit"][disabled] {
  opacity: 0.7;
  cursor: progress;
}

/* ---------- Typography polish ---------- */
.section-title,
.banner-title,
.breadcrumb__title {
  text-wrap: balance;
}

/* ---------- Footer: keep the three widgets evenly spread ---------- */
.footer-middle .row {
  justify-content: space-between;
}

/* ---------- Floating WhatsApp button ---------- */
.whatsapp-float {
  position: fixed;
  left: 24px;
  bottom: 30px;
  z-index: 100;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #25d366;
  color: #fff;
  font-size: 26px;
  box-shadow: 0 8px 24px rgba(31, 33, 45, 0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.whatsapp-float:hover,
.whatsapp-float:focus-visible {
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(31, 33, 45, 0.3);
}

@media (max-width: 575px) {
  .whatsapp-float {
    left: 16px;
    bottom: 20px;
    width: 48px;
    height: 48px;
    font-size: 24px;
  }
}

/* ---------- Respect reduced-motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .wow {
    visibility: visible !important;
  }
}

/* =====================================================================
   Tejas group refresh: hero slider, company cards, division pages,
   smoother motion. Same colours, fonts and layout language as main.css.
   ===================================================================== */

/* ---------- Header dropdown: open on keyboard focus as well as hover ---------- */
.main-menu ul li.has-dropdown:focus-within > .submenu {
  visibility: visible;
  opacity: 1;
}

.main-menu ul li .submenu {
  transform: translateY(8px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
}

.main-menu ul li:hover > .submenu,
.main-menu ul li.has-dropdown:focus-within > .submenu {
  transform: translateY(0);
}

/* ---------- Hero slider ---------- */
.hero-slides {
  display: grid;
}

.hero-slide {
  grid-area: 1 / 1;
  visibility: hidden;
  pointer-events: none;
}

.hero-slide.is-active {
  visibility: visible;
  pointer-events: auto;
}

.hero-slide > * {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1), transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.hero-slide.is-active > * {
  opacity: 1;
  transform: none;
}

.hero-slide.is-active > *:nth-child(2) { transition-delay: 0.08s; }
.hero-slide.is-active > *:nth-child(3) { transition-delay: 0.16s; }
.hero-slide.is-active > *:nth-child(4) { transition-delay: 0.24s; }

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  color: var(--theme-color);
  font-family: var(--primary-font);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero-eyebrow::before {
  content: "";
  width: 36px;
  height: 2px;
  background: var(--theme-color);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}

.hero-btn-outline {
  display: inline-flex;
  align-items: center;
  padding: 10px 30px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  color: #fff;
  font-family: var(--secondary-font);
  font-size: 16px;
  font-weight: 500;
  line-height: 29px;
  transition: border-color 0.3s ease, color 0.3s ease, background-color 0.3s ease;
}

.hero-btn-outline:hover,
.hero-btn-outline:focus-visible {
  border-color: var(--theme-color);
  color: var(--theme-color);
}

.hero-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 48px;
  max-width: 560px;
}

.hero-tab {
  appearance: none;
  background: none;
  border: 0;
  padding: 0;
  text-align: left;
  color: rgba(255, 255, 255, 0.55);
  cursor: pointer;
  font-family: var(--secondary-font);
  transition: color 0.3s ease;
}

.hero-tab:hover,
.hero-tab.is-active {
  color: #fff;
}

.hero-tab__num {
  display: block;
  font-family: var(--primary-font);
  font-size: 13px;
  font-weight: 600;
  color: var(--theme-color);
}

.hero-tab__label {
  display: block;
  margin: 2px 0 10px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.3;
}

.hero-tab__bar {
  display: block;
  height: 2px;
  background: rgba(255, 255, 255, 0.18);
  overflow: hidden;
}

.hero-tab__bar span {
  display: block;
  height: 100%;
  width: 0;
  background: var(--theme-color);
}

.hero-tab.is-active .hero-tab__bar span {
  animation: hero-progress var(--hero-interval, 7s) linear forwards;
}

.hero-slider.is-paused .hero-tab.is-active .hero-tab__bar span {
  animation-play-state: paused;
}

@keyframes hero-progress {
  from { width: 0; }
  to { width: 100%; }
}

.hero-images {
  position: relative;
}

.hero-image {
  opacity: 0;
  transform: scale(1.06);
  transition: opacity 0.9s ease, transform 6s ease-out;
}

.hero-image:not(:first-child) {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-image.is-active {
  opacity: 1;
  transform: scale(1);
}

.hero-fade {
  animation: hero-fade-in 1.2s ease both;
}

.hero-fade--late {
  animation-delay: 0.3s;
}

@keyframes hero-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@media (max-width: 1269px) {
  .hero-tabs { margin-top: 32px; gap: 12px; }
  .hero-tab__label { font-size: 13px; }
}

@media (max-width: 575px) {
  .hero-actions { gap: 12px; }
  .hero-btn-outline { padding: 10px 22px; }
  .hero-tab__label { font-size: 12px; }
}

/* ---------- Our companies cards ---------- */
.companies-section__intro {
  max-width: 720px;
  margin: 0 auto;
}

.company-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  background: #fff;
  box-shadow: 0 10px 40px rgba(31, 33, 45, 0.08);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.4s ease;
}

.company-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(31, 33, 45, 0.14);
}

.company-card__image {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.company-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.company-card:hover .company-card__image img {
  transform: scale(1.05);
}

.company-card__body {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 44px 32px 32px;
  border-bottom: 3px solid transparent;
  transition: border-color 0.4s ease;
}

.company-card:hover .company-card__body {
  border-bottom-color: var(--theme-color);
}

.company-card__icon {
  position: absolute;
  top: -30px;
  left: 32px;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--theme-color);
  color: var(--black-color);
  font-size: 26px;
}

.company-card__tag {
  color: var(--theme-color);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.company-card__title {
  margin: 8px 0 14px;
  font-size: 22px;
}

.company-card__title a:hover {
  color: var(--theme-color);
}

.company-card p {
  margin-bottom: 22px;
}

.company-card__link {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--black-color);
}

.company-card__link i {
  color: var(--theme-color);
  transition: transform 0.3s ease;
}

.company-card__link:hover i {
  transform: translateX(4px);
}

/* ---------- Division pages ---------- */
.division-icon {
  font-size: 36px;
  color: var(--theme-color);
}

.division-offer {
  padding: 40px;
  background: #f5f5f5;
  border-left: 3px solid var(--theme-color);
}

.division-offer__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 28px;
  padding: 0;
  margin: 0;
}

.division-offer__list li {
  list-style: none;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: var(--black-color);
  font-weight: 500;
}

.division-offer__list i {
  margin-top: 4px;
  color: var(--theme-color);
}

@media (max-width: 767px) {
  .division-offer { padding: 28px 22px; }
  .division-offer__list { grid-template-columns: 1fr; }
}

/* ---------- Enquiry "company" selector ---------- */
.tc-select {
  width: 100%;
  height: 60px;
  margin-bottom: 24px;
  padding: 0 44px 0 21px;
  border: 1px solid rgba(182, 182, 182, 0.5);
  border-radius: 0;
  background-color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23FF8F27' d='M6 8 0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 20px center;
  color: var(--gray-color);
  font-size: 16px;
  appearance: none;
  cursor: pointer;
}

.projects-form-area .tc-select {
  background-color: #27282F;
  border: none;
  color: #c9c9cf;
}

.contact__from-input .tc-select {
  height: 59px;
  border: none;
  font-size: 15px;
  padding-left: 23px;
}

.tc-select:focus {
  outline: none;
  border-color: var(--theme-color);
  box-shadow: 0 0 0 3px rgba(255, 143, 39, 0.18);
}

/* ---------- Smoother scroll-reveal motion (WOW + animate.css) ---------- */
.wow {
  animation-duration: 0.9s !important;
  animation-delay: 0.05s !important;
  animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1) !important;
}

@keyframes fadeInLeft {
  from { opacity: 0; transform: translate3d(-40px, 0, 0); }
  to { opacity: 1; transform: none; }
}

@keyframes fadeInRight {
  from { opacity: 0; transform: translate3d(40px, 0, 0); }
  to { opacity: 1; transform: none; }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translate3d(0, 32px, 0); }
  to { opacity: 1; transform: none; }
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translate3d(0, -32px, 0); }
  to { opacity: 1; transform: none; }
}

/* Gentle hover lift on cards */
.team-area-box,
.testimonials-box-area,
.project-box-area {
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.4s ease;
}

.team-area-box:hover,
.testimonials-box-area:hover {
  transform: translateY(-6px);
}

@media (prefers-reduced-motion: reduce) {
  .hero-slide > *,
  .hero-image {
    transition: none !important;
    transform: none !important;
  }

  .hero-tab__bar span {
    animation: none !important;
  }

  .hero-tab.is-active .hero-tab__bar span {
    width: 100%;
  }
}

/* Hero image fills the full hero height on desktop, whatever the slide length */
@media (min-width: 992px) {
  .hero-slider .hero-images {
    height: 100%;
    -webkit-mask-size: cover;
    mask-size: cover;
    -webkit-mask-position: left center;
    mask-position: left center;
  }

  .hero-slider .hero-images .hero-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
}

/* Hero buttons: same size side by side, slightly larger for readability */
.hero-actions .primary-btn-1,
.hero-actions .hero-btn-outline {
  font-size: 14px;
  line-height: 29px;
  padding: 8px 24px;
}

.hero-tabs {
  align-items: end;
}

@media (max-width: 575px) {
  .hero-actions .primary-btn-1,
  .hero-actions .hero-btn-outline {
    padding: 8px 18px;
  }
}

/* Keep cards above the decorative vertical bars */
.companies-section .row,
.company-card {
  position: relative;
  z-index: 2;
}

.contact__from-input .tc-select {
  margin-bottom: 0;
}

/* ---------- Official company logos and taglines ---------- */
.company-card__icon--logo {
  background: #fff;
  box-shadow: 0 6px 20px rgba(31, 33, 45, 0.15);
  padding: 8px;
}

.company-card__icon--logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.division-brand {
  padding: 32px;
  background: #fff;
  border: 1px solid #ececec;
  border-top: 3px solid var(--theme-color);
}

.division-brand__logo {
  display: block;
  width: 100%;
  max-width: 300px;
  height: auto;
}

.division-brand__line {
  margin: 16px 0 18px;
  color: var(--black-color);
  font-weight: 600;
  font-size: 15px;
}

.division-brand__contact {
  padding: 18px 0 0;
  margin: 0;
  border-top: 1px solid #ececec;
}

.division-brand__contact li {
  list-style: none;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 10px;
  font-size: 15px;
  line-height: 1.5;
}

.division-brand__contact i {
  margin-top: 4px;
  width: 16px;
  color: var(--theme-color);
}

.division-brand__contact a:hover {
  color: var(--theme-color);
}

.division-tagline {
  display: inline-block;
  color: var(--theme-color);
  font-family: var(--primary-font);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.footer-tagline {
  margin: -14px 0 18px;
  color: var(--theme-color);
  font-family: var(--primary-font);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

/* Four group companies: four hero tabs */
.hero-tabs {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  max-width: 640px;
}

@media (max-width: 575px) {
  .hero-tabs { gap: 8px; }
  .hero-tab__label { font-size: 11px; }
}

/* Company page brand block for a logo without wordmark */
.division-brand__head {
  display: flex;
  align-items: center;
  gap: 16px;
}

.division-brand__mark {
  width: 72px;
  height: auto;
  flex-shrink: 0;
}

.division-brand__name {
  color: var(--black-color);
  font-family: var(--primary-font);
  font-weight: 700;
  font-size: 17px;
  line-height: 1.3;
  text-transform: uppercase;
}

@media (min-width: 1200px) {
  .company-card__tag { font-size: 12px; letter-spacing: 0.08em; }
  .company-card__body { padding: 44px 26px 28px; }
  .company-card__icon { left: 26px; }
}

/* Desktop: 2 x 2 company tabs so they stay clear of the bulldozer graphic */
@media (min-width: 992px) {
  .hero-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 28px;
    max-width: 440px;
    margin-top: 40px;
  }
}

@media (min-width: 992px) and (max-width: 1269px) {
  .hero-tabs {
    max-width: 300px;
    gap: 14px 20px;
  }
}

/* ---------- Service pages: "How We Work" steps ---------- */
.service-process__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px 28px;
  padding: 0;
  margin: 0;
  counter-reset: none;
}

.service-process__step {
  list-style: none;
  display: flex;
  gap: 18px;
  align-items: flex-start;
  padding: 24px;
  background: #fff;
  border: 1px solid #ececec;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.service-process__step:hover {
  border-color: var(--theme-color);
  box-shadow: 0 10px 30px rgba(31, 33, 45, 0.08);
}

.service-process__num {
  flex-shrink: 0;
  font-family: var(--primary-font);
  font-size: 28px;
  font-weight: 700;
  line-height: 1;
  color: var(--theme-color);
}

.service-process__step h5 {
  margin-bottom: 6px;
  font-size: 18px;
}

.service-process__step p {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
}

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

/* ---------- Digital solutions ---------- */
.solutions-toc {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.solutions-toc a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border: 1px solid #e3e3e3;
  background: #fff;
  color: var(--black-color);
  font-weight: 500;
  transition: border-color 0.3s ease, color 0.3s ease;
}

.solutions-toc a i { color: var(--theme-color); }

.solutions-toc a:hover {
  border-color: var(--theme-color);
  color: var(--theme-color);
}

.solution-block + .solution-block {
  margin-top: 90px;
  padding-top: 90px;
  border-top: 1px solid #ececec;
}

.solution-block {
  scroll-margin-top: 110px;
}

.solution-shot {
  display: block;
  overflow: hidden;
  border-radius: 10px;
  background: #1F212D;
  box-shadow: 0 24px 60px rgba(31, 33, 45, 0.18);
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.5s ease;
}

.solution-shot:hover {
  transform: translateY(-6px);
  box-shadow: 0 30px 70px rgba(31, 33, 45, 0.24);
}

.solution-shot__bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: #1F212D;
}

.solution-shot__bar i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
}

.solution-shot__bar i:first-child { background: var(--theme-color); }

.solution-shot__bar em {
  margin-left: 10px;
  color: rgba(255, 255, 255, 0.6);
  font-style: normal;
  font-size: 12px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.solution-shot img {
  display: block;
  width: 100%;
  height: auto;
}

.solution-title {
  margin: 10px 0 16px;
  font-size: 34px;
}

.solution-lead {
  color: var(--black-color);
  font-size: 17px;
  line-height: 1.7;
  margin-bottom: 14px;
}

.solution-features {
  margin: 24px 0 22px !important;
}

.solution-features li {
  font-size: 15px;
}

.solution-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.solution-chip {
  padding: 6px 12px;
  background: rgba(255, 143, 39, 0.1);
  color: #b85b00;
  font-size: 13px;
  font-weight: 600;
}

.solution-content .division-tagline i {
  margin-right: 6px;
}

.solutions-note {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 22px 26px;
  background: #f5f5f5;
  border-left: 3px solid var(--theme-color);
}

.solutions-note i {
  margin-top: 4px;
  color: var(--theme-color);
  font-size: 20px;
}

.solutions-note p { margin: 0; }

.solutions-note a {
  color: var(--theme-color);
  font-weight: 600;
}

.solution-card .company-card__image {
  aspect-ratio: 16 / 10;
  background: #1F212D;
}

.solution-card .company-card__image img {
  object-position: top left;
}

@media (max-width: 991px) {
  .solution-block + .solution-block { margin-top: 60px; padding-top: 60px; }
  .solution-title { font-size: 28px; }
}

/* Nine menu items: tighter spacing on mid-size screens so the menu stays on one line */
@media (min-width: 1200px) and (max-width: 1439px) {
  .main-menu ul li { margin-inline-end: 26px; }
}

@media (min-width: 1200px) and (max-width: 1319px) {
  .main-menu ul li { margin-inline-end: 20px; }
}

@media (min-width: 992px) and (max-width: 1199px) {
  .main-menu ul li { margin-inline-end: 14px; }
  .main-menu > nav > ul > li > a,
  #mobile-menu > ul > li > a { font-size: 13px; }
  .main-menu ul li.has-dropdown > a::after { margin-inline-start: 2px; font-size: 16px; }
}

@media (min-width: 1440px) and (max-width: 1699px) {
  .main-menu ul li { margin-inline-end: 18px; }
}

@media (min-width: 1700px) and (max-width: 1800px) {
  .main-menu ul li { margin-inline-end: 30px; }
}

@media (min-width: 1801px) {
  .main-menu ul li { margin-inline-end: 42px; }
}
