/* TIC Group - white & light green theme */
:root {
  --green-light: #d4edda;
  --green: #90c695;
  --green-mid: #7ab882;
  --green-dark: #3d6b4f;
  --green-darker: #2d5a3d;
  --cyan: var(--green);
  --cyan-alt: var(--green-light);
  --navy: var(--green-dark);
  --navy-dark: var(--green-darker);
  --text: #2f4f3f;
  --white: #fff;
  --bg: #ffffff;
  --bg-alt: #f5fbf7;
  --font-display: 'Squada One', cursive;
  --font-body: 'Quicksand', sans-serif;
  --header-h: 96px;
  --logo-h: 58px;
  --site-gutter: clamp(16px, 2.5vw, 48px);
  --site-pad-x: var(--site-gutter);
  --site-pad-y: calc((var(--header-h) - var(--logo-h)) / 2);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}

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

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.2;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  background: var(--navy);
  color: var(--white);
  padding: 8px 16px;
  z-index: 10000;
}
.skip-link:focus { top: 16px; }

.width85 {
  width: 100%;
  max-width: none;
  margin: 0 auto;
  padding-left: var(--site-pad-x);
  padding-right: var(--site-pad-x);
}

.site-header .header-inner.width85 {
  padding-top: var(--site-pad-y);
  padding-bottom: var(--site-pad-y);
  min-height: var(--header-h);
  box-sizing: border-box;
}

.BoldBlueText { color: var(--cyan) !important; }

.pd-100 { padding: 100px 0; }
.pdR30 { padding-right: 30px; }
.pdL30 { padding-left: 30px; }

.imgW100 { width: 100% !important; }

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--white);
}

.header-bar {
  position: relative;
  padding-top: 5px;
}

.header-bar::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(128deg, var(--green), var(--green-mid));
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  line-height: 0;
  margin-right: 8px;
}

.site-header .logo img,
.site-header .site-logo {
  height: var(--logo-h);
  width: auto;
  max-width: min(300px, 48vw);
  min-width: 120px;
  object-fit: contain;
}

.footer-l .site-logo {
  height: 52px;
  width: auto;
  max-width: min(320px, 55vw);
  object-fit: contain;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.main-nav ul {
  display: flex;
  list-style: none;
  align-items: center;
}

.main-nav li a {
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: 0.5px;
  padding: 0 18px;
  line-height: var(--header-h);
  color: var(--text);
  transition: color 0.2s;
}

.main-nav li a:hover { color: var(--cyan); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  width: 26px;
  height: 3px;
  background: var(--navy);
  border-radius: 2px;
  transition: 0.3s;
}

/* Buttons - btn-31 style from original */
.btn-31,
.btn-31-white,
button.btn-31.hdrBtn {
  padding: 15px 20px;
  display: inline-block;
  color: var(--white);
  font-weight: 800;
  font-size: 18px;
  cursor: pointer;
  line-height: 1.5;
  border: 0;
  border-radius: 0;
  position: relative;
  text-transform: capitalize;
  background-color: var(--cyan);
  background-image: none;
  -webkit-appearance: button;
}

button.btn-31.hdrBtn {
  font-family: var(--font-display) !important;
  font-size: 25px;
  letter-spacing: 1px;
  padding: 10px 20px;
  font-weight: normal;
}

button.btn-31.hdrBtn a { color: var(--white); }

.btn-31:before,
.btn-31-white:before {
  --progress: 100%;
  background: var(--white);
  clip-path: polygon(100% 0, var(--progress) var(--progress), 0 100%, 100% 100%);
  content: "";
  inset: 0;
  position: absolute;
  transition: clip-path 0.2s ease;
  z-index: 0;
}

button.btn-31.hdrBtn:before,
.btn-31:before { background: var(--navy) !important; }

.btn-31 .text-container,
.btn-31-white .text-container {
  display: block;
  overflow: hidden;
  position: relative;
  z-index: 1;
}

.btn-31 .text,
.btn-31-white .text {
  display: block;
  mix-blend-mode: difference;
  position: relative;
}

.btn-31:hover:before,
.btn-31-white:hover:before { --progress: 0%; }

.btn-31-white:hover .text { color: var(--navy); }

button.btn-31.hdrBtn:hover a,
.btn-31:hover .text { color: var(--white) !important; }

.btn-31-white {
  margin-right: 10px;
  margin-bottom: 8px;
}

.section-btn { margin-top: 20px; }
.section-btn > a:nth-child(1) { margin-right: 15px; }

/* Hero Banner */
.hero-banner {
  padding-top: calc(var(--header-h) + 5px);
  background-image: url('../assets/images/HomeBannerBG.webp');
  background-size: cover;
  background-position: bottom;
}

.HomeBannerGrid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  align-items: center;
  padding: 0;
  grid-column-gap: clamp(24px, 4vw, 64px);
  min-height: 550px;
  height: calc(100vh - 98px);
  width: 100%;
}

.HbanHead {
  padding-left: 25px;
  border-left: 7px solid var(--green);
}

.HbanHead h1 {
  text-align: left;
  line-height: 1;
  font-size: clamp(2.5rem, 6.1vw, 5rem);
  color: var(--green-dark);
  font-family: var(--font-display);
}

.HbanCol1 > p {
  font-size: clamp(1rem, 1.7vw, 1.5rem);
  color: var(--green-dark);
  line-height: 1.4;
  padding-left: 38px;
  padding-top: 22px;
  font-weight: 800;
  max-width: min(520px, 42vw);
  margin-bottom: 25px;
}

.HbanCol1 .BannerArrow {
  padding-left: 35px;
  width: 50px;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(10px); }
}

/* Hero India map */
.hero-india-map {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  padding: 12px;
  background: var(--white);
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(61, 107, 79, 0.12);
}

.india-map-hero {
  width: 100%;
  height: auto;
  max-height: min(55vh, 520px);
  object-fit: contain;
}

/* Slideshow (legacy) */
.slideshow-container { position: relative; }

.mySlides {
  display: none;
}
.mySlides.active { display: block; }

.mySlides.fade {
  animation: fade 1s;
}

@keyframes fade {
  from { opacity: 0.4; }
  to { opacity: 1; }
}

.slideshow-dots {
  text-align: center;
  margin-top: 12px;
}

.dot {
  display: inline-block;
  width: 12px;
  height: 12px;
  margin: 0 4px;
  background: #bbb;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.3s;
}

.dot.active { background: #717171; }

/* Tabs Section */
.tabs-section {
  background: var(--green-light) url('../assets/images/TabBgPattern.webp');
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  background-blend-mode: soft-light;
}

.tabs-section h2 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  margin-bottom: 20px;
}

.colWt,
.colWt h1, .colWt h2, .colWt h3,
.colWt h4, .colWt h5, .colWt h6,
.colWt p, .colWt li {
  color: var(--green-dark) !important;
}

p.subHeadingCs {
  line-height: 1.2em;
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: 32px;
  margin-bottom: 16px;
}

.intro-desc { margin-bottom: 40px; }

/* Tab navigation */
.tabs-nav {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  text-align: center;
  margin-top: 40px;
}

.tab-btn {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 400;
  padding: 14px 12px;
  background: var(--white);
  color: var(--green-dark);
  border: 1px solid var(--green);
  border-bottom: 0;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.tab-btn.active,
.tab-btn:hover {
  background: var(--green);
  color: var(--white);
}

.tabs-panels { padding-top: 50px; }

.tab-panel { display: none; }
.tab-panel.active { display: block; }

.tab-panel-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 30px;
}

.tab-panel-content p { margin-bottom: 10px; }

.a_us-sec-cont {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-column-gap: 20px;
  margin: 25px 0 30px;
}

.a_us-sec-inner {
  padding: 30px 20px;
  transition: 0.3s;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(9px);
  display: grid;
  grid-template-columns: 60px 1fr;
  align-items: center;
  grid-column-gap: 40px;
  position: relative;
}

.a_us-sec-inner:after {
  content: "";
  position: absolute;
  width: 13px;
  height: 2px;
  background: var(--green);
  left: 95px;
}

.a_us-sec-inner img { width: 60px; }
.a_us-sec-inner p { font-weight: bold; margin: 0; }

.list-sp {
  list-style: none;
  margin: 20px 0;
}

.list-sp li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 12px;
}

.list-sp li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 10px;
  height: 10px;
  background: var(--cyan);
  border-radius: 50%;
}

/* Clients */
.clients-section {
  background: var(--bg-alt);
}

.clients-section h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--navy);
  margin-bottom: 20px;
}

.clients-section .subHeadingCs {
  color: var(--text) !important;
  font-size: clamp(1.2rem, 2.5vw, 1.8rem);
}

.clients-section p {
  color: var(--text) !important;
  margin-bottom: 10px;
}

.clients-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 30px;
}

.clients-content .btn-31 { margin-top: 20px; }

/* Footer */
.site-footer {
  background: var(--green-light);
  color: var(--green-dark);
}

.site-footer .footer-primary.width85 {
  padding-top: var(--site-pad-y);
  padding-bottom: var(--site-pad-y);
  box-sizing: border-box;
}

.footerCont {
  display: grid;
  grid-template-columns: minmax(260px, 1.2fr) minmax(0, 2fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
}

.footer-l {
  max-width: 380px;
}

.footer-l img,
.footer-l .footer-logo {
  max-width: min(220px, 100%);
  height: auto;
  margin-bottom: 18px;
  background: transparent;
}

.footer-l p {
  font-size: 15px;
  line-height: 1.75;
  margin: 0;
  font-weight: 500;
}

.footer-r {
  justify-self: stretch;
}

.footer-r ul {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(16px, 2.5vw, 40px);
  list-style: none;
  margin: 0;
  padding: 0;
  justify-items: end;
  text-align: right;
}

.footer-r li { margin: 0; }

.footer-r a {
  font-family: var(--font-body);
  font-size: clamp(14px, 1.25vw, 17px);
  font-weight: 600;
  letter-spacing: 0;
  color: var(--green-dark);
  text-transform: none;
  line-height: 1.4;
  transition: color 0.2s;
  white-space: nowrap;
}

.footer-r a:hover { color: var(--green-mid); }

.site-footer .footer-below.width85 {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  padding-top: var(--site-pad-y);
  padding-bottom: var(--site-pad-y);
  border-top: 1px solid rgba(61, 107, 79, 0.12);
  font-size: 14px;
  box-sizing: border-box;
}

.footer-below .copyright { margin: 0; }

.footer-below .footer-credit {
  display: none;
  margin: 0;
  font-size: 13px;
}

.footer-below .footer-privacy {
  margin-left: auto;
}

.MMwFooter {
  color: var(--green-dark);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.MMwFooter img { width: auto; height: 20px; }

.footer-privacy { color: var(--green-dark); opacity: 0.85; }
.footer-privacy:hover { color: var(--green-mid); }

/* Video Modal */
.video-modal {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

.video-modal.active {
  opacity: 1;
  visibility: visible;
}

.video-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  cursor: pointer;
}

.video-modal-content {
  position: relative;
  background: var(--white);
  border-radius: 7px;
  max-width: 800px;
  width: 100%;
  z-index: 1;
  overflow: hidden;
}

.video-modal-close {
  position: absolute;
  top: 8px;
  right: 12px;
  background: none;
  border: none;
  font-size: 32px;
  cursor: pointer;
  z-index: 2;
  color: #000;
  line-height: 1;
}

.video-modal-body {
  padding: 20px;
}

.video-modal-body iframe {
  width: 100%;
  aspect-ratio: 16/9;
  height: auto;
  min-height: 410px;
  border: none;
}

/* Scroll to top */
.scroll-top {
  position: fixed;
  bottom: 60px;
  right: 30px;
  width: 44px;
  height: 44px;
  background: var(--cyan);
  color: var(--white);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s;
  z-index: 999;
}

.scroll-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-top:hover { background: var(--navy); }

.scroll-top svg { transform: rotate(180deg); }

/* Inner pages (from ticgroup.com.au) */
.inner-page .inner-main {
  padding-top: calc(var(--header-h) + 5px);
}

.inner-page .entry-content {
  width: 100%;
  overflow-x: hidden;
}

.inner-page .wpb-content-wrapper {
  width: 100%;
}

.inner-page .width85 {
  width: 100%;
  max-width: none;
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--site-gutter);
  padding-right: var(--site-gutter);
}

.inner-page .stretchMe {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

.inner-page .vc_row-full-width {
  display: none;
}

.inner-page .main-nav a.active {
  color: var(--cyan);
}

/* Contact page form (Gravity Forms layout) */
.page-contact-us .FormColR .gform_fields,
.contact-page-form .gform_fields {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
}

.page-contact-us .gform_fields input,
.page-contact-us .gform_fields select,
.page-contact-us .gform_fields textarea,
.contact-page-form input,
.contact-page-form select,
.contact-page-form textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid #e2e2e2;
  font-family: var(--font-body);
  font-size: 15px;
  border-radius: 2px;
}

.page-contact-us .gform_fields textarea,
.contact-page-form textarea {
  grid-column: 1 / -1;
  min-height: 180px;
}

.page-contact-us .gform_fields select,
.contact-page-form select {
  grid-column: span 2;
}

.page-contact-us .gform_button,
.contact-page-form .gform_button {
  grid-column: 1 / -1;
  margin-top: 8px;
}

.page-contact-us .MapDivCont iframe,
.inner-page .wpb_map_wraper iframe {
  width: 100%;
  min-height: 550px;
  border: 0;
}

@media (max-width: 921px) {
  .page-contact-us .gform_fields,
  .contact-page-form .gform_fields {
    grid-template-columns: 1fr;
  }
  .page-contact-us .gform_fields select,
  .contact-page-form select {
    grid-column: 1;
  }
}

/* Contact page */
.page-banner {
  padding: calc(var(--header-h) + 60px) 0 60px;
  background: linear-gradient(128deg, var(--green-light), var(--green));
  color: var(--green-dark);
  text-align: center;
}

.page-banner h1 {
  font-size: 3rem;
  color: var(--white);
}

.contact-section { padding: 80px 0; background: var(--white); }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}

.contact-form label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  font-size: 14px;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #e2e2e2;
  border-radius: 2px;
  font-family: var(--font-body);
  font-size: 15px;
  margin-bottom: 16px;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--cyan);
}

.contact-form textarea { min-height: 140px; resize: vertical; }

.contact-card {
  background: #f5f5f5;
  padding: 24px;
  margin-bottom: 20px;
}

.contact-card h4 {
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--cyan);
  margin-bottom: 12px;
}

.contact-card p { font-size: 14px; color: #666; margin-bottom: 4px; }

.contact-info h3 {
  font-size: 28px;
  color: var(--navy);
  margin-bottom: 24px;
}

/* Service stub pages */
.page-content {
  padding: 80px 0 100px;
  min-height: 40vh;
}
.page-content h1 { color: var(--navy); font-size: 2.5rem; margin-bottom: 20px; }
.page-content p { margin-bottom: 16px; max-width: 800px; }

/* Responsive */
@media (max-width: 1400px) {
  .HomeBannerGrid {
    grid-template-columns: 1fr 1.2fr;
    height: initial;
  }
  .HbanCol1 > p { max-width: 100%; }
  .a_us-sec-cont { grid-template-columns: 1fr; grid-row-gap: 25px; }
}

@media (max-width: 921px) {
  :root { --logo-h: 48px; }

  .site-header .logo img {
    max-width: min(240px, 72vw);
    min-width: 0;
  }

  .nav-toggle { display: flex; }

  .main-nav {
    position: fixed;
    top: calc(var(--header-h) + 5px);
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 24px;
    gap: 16px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.1);
    transform: translateY(-120%);
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
  }

  .main-nav.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .main-nav ul { flex-direction: column; width: 100%; }
  .main-nav li a { line-height: 1.4; padding: 10px 0; display: block; }

  .HomeBannerGrid {
    grid-template-columns: 1fr;
    grid-row-gap: 30px;
    padding: 70px 20px;
    height: auto;
    min-height: auto;
  }

  .HbanCol1 { text-align: center; margin: 0 auto; }
  .HbanHead { border-left: none; padding-left: 0; }
  .HbanHead h1 { text-align: center; }
  .HbanCol1 > p { padding-left: 0; max-width: 100%; }
  .HbanCol1 .BannerArrow { padding-left: 0; margin: 0 auto; }

  .tabs-nav { grid-template-columns: 1fr 1fr; }
  .tab-btn { font-size: 18px; padding: 10px 8px; }

  .tab-panel-grid,
  .clients-grid,
  .contact-grid,
  .footerCont {
    grid-template-columns: 1fr;
    gap: 28px;
    align-items: start;
    text-align: center;
  }

  .footer-l {
    max-width: none;
    margin: 0 auto;
  }

  .footer-l img { margin-left: auto; margin-right: auto; }

  .footer-r ul {
    grid-template-columns: 1fr 1fr;
    justify-items: center;
    text-align: center;
    gap: 12px 20px;
  }

  .footer-r a { white-space: normal; }

  .pdR30, .pdL30 { padding: 0; }

  .Reverse-Columns .clients-image { order: -1; }

  .footer-below {
    flex-direction: column;
    text-align: center;
  }

  .footer-below .footer-privacy { margin-left: 0; }
}

@media (max-width: 544px) {
  .footer-r ul { grid-template-columns: 1fr; }
  .tabs-nav { grid-template-columns: 1fr; }
  .tab-btn { font-size: 16px; }
}

@media (min-width: 1200px) {
  .footer-r ul {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    row-gap: 10px;
  }
}
