/* ==========================================================================
   TechGroveX custom styles (added 2026-11)
   Extends main.css without changing it. The template's base text colour is
   light (#f8f8f8), so every block here sets explicit colours.
   ========================================================================== */

:root {
  --tgx-ink: #1b1a1a;
  --tgx-text: #3d3b37;
  --tgx-muted: #6b665e;
  --tgx-line: #ece6db;
  --tgx-soft: #fbf8f2;
  --tgx-amber: #e59d02;
  --tgx-amber-soft: #fdf1d8;
  --tgx-card: #191919;
}

/* ---------- Header: logo link + Services dropdown ---------- */
.header .site-logo {
  display: flex;
  align-items: center;
  margin-right: auto;
  line-height: 1;
}

.header .site-logo img {
  height: 80px;
  width: auto;
  display: block;
}

@media (max-width: 575px) {
  .header .site-logo img {
    height: 64px;
  }
}

@media (min-width: 1200px) {
  .navmenu .dropdown ul a {
    color: var(--nav-dropdown-color);
  }
}

/* ---------- Page-level H1 that keeps the section-title look ---------- */
.section-title h1 {
  font-size: 32px;
  font-weight: 700;
  position: relative;
  color: var(--tgx-ink);
}

.section-title h1:before,
.section-title h1:after {
  content: "";
  width: 50px;
  height: 2px;
  background: var(--accent-color);
  display: inline-block;
}

.section-title h1:before {
  margin: 0 15px 10px 0;
}

.section-title h1:after {
  margin: 0 0 10px 15px;
}

.about .content h1 {
  font-weight: 700;
  position: relative;
  display: inline-block;
  font-size: calc(1.325rem + .9vw);
}

@media (min-width: 1200px) {
  .about .content h1 {
    font-size: 2rem;
  }
}

.about .content h1:after {
  content: "";
  position: absolute;
  width: 50px;
  height: 3px;
  background-color: var(--accent-color);
  left: 0;
  bottom: -10px;
}

/* ---------- Service grid additions (existing card design kept) ---------- */
.services .services-grid .service-card .card-content .service-title .title-text {
  color: var(--heading-color);
}

.services .services-grid .service-card[id],
.tgx-overview[id],
#services-list,
#contact,
#faq {
  scroll-margin-top: 110px;
}

.services .services-grid .service-card .card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 1rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent-color);
}

.services .services-grid .service-card .card-link:hover {
  gap: 10px;
}

.services .services-grid .service-card .card-link i {
  transition: transform 0.3s ease;
}

/* ---------- Shared bits ---------- */
.tgx-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--tgx-amber-soft);
  color: #a86f00;
  padding: 8px 16px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.tgx-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 50px;
  font-weight: 600;
  font-family: var(--heading-font);
  transition: all 0.3s ease;
  border: 2px solid var(--tgx-amber);
}

.tgx-btn-primary {
  background: var(--tgx-amber);
  color: var(--tgx-ink);
}

.tgx-btn-primary:hover {
  background: #c98a00;
  border-color: #c98a00;
  color: var(--tgx-ink);
  transform: translateY(-2px);
}

.tgx-btn-outline {
  background: transparent;
  color: var(--tgx-ink);
  border-color: var(--tgx-ink);
}

.tgx-btn-outline:hover {
  background: var(--tgx-ink);
  color: #fff;
}

.tgx-dark .tgx-btn-outline {
  color: #fff;
  border-color: #fff;
}

.tgx-dark .tgx-btn-outline:hover {
  background: #fff;
  color: var(--tgx-ink);
}

.tgx-section {
  padding: 80px 0;
  color: var(--tgx-text);
  scroll-margin-top: 90px;
}

.tgx-section.tgx-soft {
  background: var(--tgx-soft);
}

.tgx-heading {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 48px;
}

.tgx-heading h2 {
  color: var(--tgx-ink);
  font-weight: 700;
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  margin: 14px 0 12px;
}

.tgx-heading p {
  color: var(--tgx-muted);
  font-size: 1.05rem;
  margin: 0;
}

/* ---------- Hero ---------- */
.tgx-hero {
  padding: 160px 0 80px;
  background:
    radial-gradient(circle at 85% 20%, rgba(246, 199, 90, 0.25), transparent 45%),
    radial-gradient(circle at 5% 90%, rgba(246, 199, 90, 0.18), transparent 40%),
    #fffdf8;
  color: var(--tgx-text);
}

.tgx-hero h1 {
  color: var(--tgx-ink);
  font-weight: 800;
  font-size: clamp(2.1rem, 4.6vw, 3.4rem);
  line-height: 1.12;
  margin: 18px 0 20px;
}

.tgx-hero h1 span {
  color: var(--tgx-amber);
}

.tgx-hero .lead {
  color: var(--tgx-text);
  font-size: 1.12rem;
  line-height: 1.7;
  margin-bottom: 30px;
}

.tgx-hero .hero-points {
  list-style: none;
  padding: 0;
  margin: 0 0 34px;
  display: grid;
  gap: 10px;
}

.tgx-hero .hero-points li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: var(--tgx-ink);
  font-weight: 500;
}

.tgx-hero .hero-points i {
  color: var(--tgx-amber);
  font-size: 1.15rem;
  line-height: 1.4;
}

.tgx-hero .hero-image img {
  border-radius: 24px;
  box-shadow: 0 30px 60px rgba(90, 74, 42, 0.16);
  width: 100%;
  height: auto;
}

/* ---------- Detailed service cards ---------- */
.tgx-service-card {
  background: #fff;
  border: 1px solid var(--tgx-line);
  border-radius: 20px;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  scroll-margin-top: 110px;
}

.tgx-service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 48px rgba(90, 74, 42, 0.14);
}

.tgx-service-card .card-img {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--tgx-soft);
}

.tgx-service-card .card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.tgx-service-card:hover .card-img img {
  transform: scale(1.04);
}

.tgx-service-card .card-body {
  padding: 28px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.tgx-service-card .num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--tgx-amber-soft);
  color: var(--tgx-amber);
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 16px;
  transition: all 0.3s ease;
}

.tgx-service-card:hover .num {
  background: var(--tgx-amber);
  color: #fff;
}

.tgx-service-card h3 {
  color: var(--tgx-ink);
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.tgx-service-card p {
  color: var(--tgx-text);
  font-size: 0.98rem;
  line-height: 1.65;
}

.tgx-service-card ul {
  list-style: none;
  padding: 0;
  margin: 6px 0 0;
  display: grid;
  gap: 8px;
}

.tgx-service-card li {
  display: flex;
  gap: 10px;
  color: var(--tgx-text);
  font-size: 0.93rem;
}

.tgx-service-card li i {
  color: var(--tgx-amber);
}

.tgx-service-card .benefit {
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px dashed var(--tgx-line);
  margin-bottom: 0;
  font-size: 0.92rem;
  color: var(--tgx-ink);
}

.tgx-service-card .benefit strong {
  color: #a86f00;
}

.tgx-service-card ul + .benefit {
  margin-top: 18px;
}

/* ---------- Benefits (dark band) ---------- */
.tgx-dark {
  background: var(--tgx-card);
  color: #e9e6e0;
  border-radius: 28px;
  padding: 64px 48px;
  position: relative;
  overflow: hidden;
}

.tgx-dark::after {
  content: "";
  position: absolute;
  width: 380px;
  height: 380px;
  right: -120px;
  top: -140px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(229, 157, 2, 0.28), transparent 70%);
  pointer-events: none;
}

.tgx-dark h2,
.tgx-dark h3 {
  color: #fff;
}

.tgx-dark .tgx-heading p {
  color: #bdb7ad;
}

.tgx-benefit {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  height: 100%;
}

.tgx-benefit .icon {
  flex: 0 0 56px;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(229, 157, 2, 0.14);
  color: var(--tgx-amber);
  font-size: 1.5rem;
}

.tgx-benefit h3 {
  font-size: 1.12rem;
  font-weight: 700;
  margin: 4px 0 8px;
}

.tgx-benefit p {
  color: #bdb7ad;
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.6;
}

@media (max-width: 767px) {
  .tgx-dark {
    padding: 44px 22px;
    border-radius: 20px;
  }
}

/* ---------- Process ---------- */
.tgx-process {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 22px;
  position: relative;
  counter-reset: step;
}

.tgx-process::before {
  content: "";
  position: absolute;
  top: 32px;
  left: 10%;
  right: 10%;
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--tgx-amber) 0 10px, transparent 10px 18px);
  opacity: 0.6;
}

.tgx-step {
  position: relative;
  text-align: center;
}

.tgx-step .step-num {
  width: 64px;
  height: 64px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--tgx-amber);
  color: var(--tgx-ink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  position: relative;
  z-index: 1;
  box-shadow: 0 10px 24px rgba(90, 74, 42, 0.12);
}

.tgx-step .step-num i {
  color: var(--tgx-amber);
}

.tgx-step .step-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #a86f00;
  text-transform: uppercase;
}

.tgx-step h3 {
  color: var(--tgx-ink);
  font-size: 1.1rem;
  font-weight: 700;
  margin: 6px 0 8px;
}

.tgx-step p {
  color: var(--tgx-muted);
  font-size: 0.93rem;
  line-height: 1.6;
  margin: 0;
}

@media (max-width: 991px) {
  .tgx-process {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .tgx-process::before {
    top: 32px;
    bottom: 32px;
    left: 31px;
    right: auto;
    width: 2px;
    height: auto;
    background: repeating-linear-gradient(180deg, var(--tgx-amber) 0 10px, transparent 10px 18px);
  }

  .tgx-step {
    display: grid;
    grid-template-columns: 64px 1fr;
    column-gap: 20px;
    text-align: left;
    padding-bottom: 28px;
  }

  .tgx-step .step-num {
    margin: 0;
    grid-row: span 3;
  }
}

/* ---------- Industries ---------- */
.tgx-industry {
  background: #fff;
  border: 1px solid var(--tgx-line);
  border-radius: 18px;
  padding: 24px 20px;
  height: 100%;
  transition: all 0.3s ease;
}

.tgx-industry:hover {
  border-color: var(--tgx-amber);
  transform: translateY(-4px);
}

.tgx-industry i {
  font-size: 1.7rem;
  color: var(--tgx-amber);
}

.tgx-industry h3 {
  color: var(--tgx-ink);
  font-size: 1.05rem;
  font-weight: 700;
  margin: 12px 0 6px;
}

.tgx-industry p {
  color: var(--tgx-muted);
  font-size: 0.9rem;
  line-height: 1.55;
  margin: 0;
}

/* ---------- Category overview blocks on services.html ---------- */
.tgx-overview .overview-img img {
  border-radius: 24px;
  box-shadow: 0 30px 60px rgba(90, 74, 42, 0.14);
  width: 100%;
  height: auto;
}

.tgx-overview h2 {
  color: var(--tgx-ink);
  font-weight: 700;
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  margin: 16px 0 14px;
}

.tgx-overview .intro {
  color: var(--tgx-text);
  font-size: 1.05rem;
  line-height: 1.7;
}

.tgx-mini {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--tgx-line);
  height: 100%;
  transition: border-color 0.3s ease;
}

.tgx-mini:hover {
  border-color: var(--tgx-amber);
}

.tgx-mini i {
  font-size: 1.35rem;
  color: var(--tgx-amber);
  line-height: 1.2;
}

.tgx-mini h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--tgx-ink);
  margin: 0 0 4px;
}

.tgx-mini p {
  font-size: 0.88rem;
  color: var(--tgx-muted);
  margin: 0;
  line-height: 1.5;
}

/* ---------- Home: featured services band ---------- */
.tgx-feature-band {
  margin-top: 48px;
}

.tgx-feature-tile {
  display: flex;
  gap: 24px;
  align-items: center;
  background: #fff;
  border: 1px solid var(--tgx-line);
  border-radius: 22px;
  padding: 22px;
  height: 100%;
  transition: all 0.3s ease;
  color: var(--tgx-text);
}

.tgx-feature-tile:hover {
  border-color: var(--tgx-amber);
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(90, 74, 42, 0.12);
  color: var(--tgx-text);
}

.tgx-feature-tile img {
  width: 42%;
  max-width: 220px;
  height: auto;
  border-radius: 16px;
  flex-shrink: 0;
}

.tgx-feature-tile h3 {
  color: var(--tgx-ink);
  font-size: 1.25rem;
  font-weight: 700;
  margin: 10px 0 8px;
}

.tgx-feature-tile p {
  font-size: 0.95rem;
  margin-bottom: 10px;
}

.tgx-feature-tile .more {
  color: #a86f00;
  font-weight: 600;
  font-size: 0.92rem;
}

@media (max-width: 575px) {
  .tgx-feature-tile {
    flex-direction: column;
    align-items: flex-start;
  }

  .tgx-feature-tile img {
    width: 100%;
    max-width: none;
  }
}

/* ---------- FAQ on the new pages ---------- */
.tgx-faq .faq-list .faq-item h3 {
  color: #fff;
}

/* ---------- Footer services column ---------- */
.footer .footer-cta p {
  font-size: 0.95rem;
}

.footer .footer-cta .tgx-btn {
  padding: 10px 22px;
  font-size: 0.95rem;
}

/* ---------- Contact form ----------
   main.css only styles forms with class "php-email-form", but adding that
   class would let validate.js hijack the Web3Forms submission. These rules
   apply the same template styling to forms marked .tgx-form instead. */
.contact .contact-form-wrapper .tgx-form .form-label {
  font-weight: 600;
  color: var(--heading-color);
  margin-bottom: 8px;
  font-size: 14px;
}

.contact .contact-form-wrapper .tgx-form .form-control {
  height: 50px;
  padding: 12px 18px;
  border-radius: 12px;
  border: 2px solid color-mix(in srgb, var(--default-color), transparent 85%);
  background-color: var(--surface-color);
  color: var(--default-color);
  font-size: 16px;
  transition: all 0.3s ease;
}

.contact .contact-form-wrapper .tgx-form .form-control:focus {
  border-color: var(--accent-color);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent-color), transparent 85%);
  background-color: var(--surface-color);
  outline: none;
}

.contact .contact-form-wrapper .tgx-form .form-control::placeholder {
  color: color-mix(in srgb, var(--default-color), transparent 60%);
}

.contact .contact-form-wrapper .tgx-form select.form-control {
  padding-right: 44px;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23e59d02' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 18px center;
  background-size: 14px 10px;
  appearance: none;
  cursor: pointer;
}

.contact .contact-form-wrapper .tgx-form select.form-control option {
  background: var(--surface-color);
  color: var(--default-color);
}

.contact .contact-form-wrapper .tgx-form .message-textarea {
  height: 120px;
  resize: vertical;
  font-family: inherit;
}

.contact .contact-form-wrapper .tgx-form .submit-btn {
  width: 100%;
  background: linear-gradient(135deg, var(--accent-color), color-mix(in srgb, var(--accent-color), #000 20%));
  color: var(--contrast-color);
  border: none;
  padding: 18px 30px;
  border-radius: 15px;
  font-weight: 600;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.contact .contact-form-wrapper .tgx-form .submit-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px color-mix(in srgb, var(--accent-color), transparent 70%);
}

.contact .contact-form-wrapper .tgx-form .submit-btn i {
  font-size: 18px;
  transition: transform 0.3s ease;
}

.contact .contact-form-wrapper .tgx-form .submit-btn:hover i {
  transform: translateX(5px);
}

.tgx-hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ---------- Icon-tile card header (service pages without photos) ----------
   Same background, dots and glow as the illustrations, so every service
   page shares one visual style. */
.tgx-service-card .card-img.icon-tile {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at 78% 22%, rgba(246, 199, 90, 0.45), transparent 42%),
    radial-gradient(circle at 18% 82%, rgba(246, 199, 90, 0.3), transparent 38%),
    radial-gradient(#d9d1c3 1.2px, transparent 1.4px) 0 0 / 22px 22px,
    linear-gradient(135deg, #fffaf0, #f1ece3);
}

.tgx-service-card .icon-tile .tile-icon {
  position: relative;
  z-index: 1;
  width: 128px;
  height: 128px;
  border-radius: 50%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 18px 36px rgba(90, 74, 42, 0.16);
  transition: transform 0.5s ease;
}

.tgx-service-card .icon-tile .tile-icon::after {
  content: "";
  position: absolute;
  inset: -16px;
  border-radius: 50%;
  border: 2px dashed rgba(229, 157, 2, 0.35);
}

.tgx-service-card .icon-tile .tile-icon i {
  font-size: 3.4rem;
  color: var(--tgx-amber);
  line-height: 1;
}

.tgx-service-card:hover .icon-tile .tile-icon {
  transform: scale(1.06);
}

.tgx-service-card .icon-tile .tile-line {
  position: absolute;
  height: 10px;
  border-radius: 5px;
  background: #ece3d2;
}

.tgx-service-card .icon-tile .tile-line.l1 {
  width: 28%;
  left: 8%;
  top: 14%;
}

.tgx-service-card .icon-tile .tile-line.l2 {
  width: 20%;
  right: 8%;
  bottom: 14%;
  background: #f3d9a0;
}

/* ---------- Pages whose first section must clear the fixed header ---------- */
.tgx-page-top {
  padding-top: 150px;
}

@media (max-width: 575px) {
  .tgx-page-top {
    padding-top: 125px;
  }
}

/* ---------- Contact form result message ---------- */
.contact .contact-form-wrapper .tgx-form .tgx-form-status {
  margin-top: 16px;
  padding: 14px 18px;
  border-radius: 12px;
  font-size: 15px;
  line-height: 1.5;
}

.contact .contact-form-wrapper .tgx-form .tgx-form-status.is-success {
  background: rgba(46, 158, 106, 0.16);
  border: 1px solid rgba(46, 158, 106, 0.6);
  color: #d6f5e6;
}

.contact .contact-form-wrapper .tgx-form .tgx-form-status.is-error {
  background: rgba(217, 83, 79, 0.16);
  border: 1px solid rgba(217, 83, 79, 0.6);
  color: #ffd9d7;
}

.contact .contact-form-wrapper .tgx-form .submit-btn:disabled {
  opacity: 0.7;
  cursor: wait;
  transform: none;
}
