/*
Theme Name: TELEXCELL SINGAPORE PTE. LTD.
Theme URI: https://example.com/telexcell
Author: TELEXCELL
Author URI: https://example.com
Description: A clean, corporate WordPress theme for IT, networking, security and trading companies. Inspired by modern Singapore corporate IT websites. Features custom post types for Services, Projects and Testimonials, editable homepage sections, responsive mobile-first design and accessible navigation.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: telexcell
Tags: corporate, business, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready, full-width-template, two-columns, right-sidebar
*/

/* ============================================
   TELEXCELL — Base Reset & Variables
   ============================================ */
:root {
  --tx-color-bg: #ffffff;
  --tx-color-surface: #f6f8fb;
  --tx-color-surface-2: #eef2f7;
  --tx-color-text: #14202e;
  --tx-color-muted: #5b6b7d;
  --tx-color-border: #e3e8ef;
  --tx-color-primary: #0a66c2;
  --tx-color-primary-dark: #074d92;
  --tx-color-accent: #00b1a9;
  --tx-color-dark: #0e1726;
  --tx-shadow-sm: 0 1px 2px rgba(20,32,46,.06);
  --tx-shadow-md: 0 8px 24px rgba(20,32,46,.08);
  --tx-shadow-lg: 0 20px 50px rgba(20,32,46,.12);
  --tx-radius: 10px;
  --tx-radius-lg: 18px;
  --tx-container: 1200px;
  --tx-font-sans: 'Inter', 'Poppins', system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  --tx-transition: all .25s ease;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--tx-font-sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--tx-color-text);
  background: var(--tx-color-bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--tx-color-primary); text-decoration: none; transition: var(--tx-transition); }
a:hover { color: var(--tx-color-primary-dark); }
h1,h2,h3,h4,h5,h6 { font-family: var(--tx-font-sans); font-weight: 700; color: var(--tx-color-dark); margin: 0 0 .6em; line-height: 1.25; }
h1 { font-size: clamp(2rem, 4vw, 3.25rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; }

.tx-container { max-width: var(--tx-container); margin: 0 auto; padding: 0 24px; }
.tx-section { padding: 90px 0; }
.tx-section--alt { background: var(--tx-color-surface); }
.tx-section__head { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.tx-section__eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: .8rem;
  color: var(--tx-color-primary);
  font-weight: 600;
  margin-bottom: 12px;
}
.tx-section__title { margin-bottom: 14px; }
.tx-section__sub { color: var(--tx-color-muted); font-size: 1.05rem; margin: 0; }

/* Buttons */
.tx-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: .95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--tx-transition);
  line-height: 1;
}
.tx-btn--primary { background: var(--tx-color-primary); color: #fff; }
.tx-btn--primary:hover { background: var(--tx-color-primary-dark); color: #fff; transform: translateY(-2px); box-shadow: var(--tx-shadow-md); }
.tx-btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.tx-btn--ghost:hover { background: #fff; color: var(--tx-color-primary); }
.tx-btn--outline { background: transparent; color: var(--tx-color-primary); border-color: var(--tx-color-primary); }
.tx-btn--outline:hover { background: var(--tx-color-primary); color: #fff; }

/* ============================================
   Header / Navigation
   ============================================ */
.tx-site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--tx-color-border);
}
.tx-header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 16px 0; }
.tx-logo { display: flex; align-items: center; gap: 10px; font-weight: 800; color: var(--tx-color-dark); font-size: 1.15rem; letter-spacing: -.01em; }
.tx-logo__mark {
  width: 38px; height: 38px; border-radius: 10px;
  background: linear-gradient(135deg, var(--tx-color-primary), var(--tx-color-accent));
  color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 1rem;
  box-shadow: var(--tx-shadow-sm);
}
.tx-logo:hover { color: var(--tx-color-primary); }

.tx-nav ul { list-style: none; display: flex; gap: 6px; margin: 0; padding: 0; }
.tx-nav a {
  display: block;
  padding: 10px 14px;
  color: var(--tx-color-text);
  font-weight: 500;
  font-size: .95rem;
  border-radius: 8px;
}
.tx-nav a:hover, .tx-nav .current-menu-item > a { color: var(--tx-color-primary); background: var(--tx-color-surface); }

.tx-header-cta { display: flex; align-items: center; gap: 12px; }
.tx-menu-toggle {
  display: none;
  width: 44px; height: 44px;
  border: 1px solid var(--tx-color-border);
  background: #fff;
  border-radius: 10px;
  cursor: pointer;
  align-items: center; justify-content: center;
}
.tx-menu-toggle span { display: block; width: 20px; height: 2px; background: var(--tx-color-dark); position: relative; }
.tx-menu-toggle span::before, .tx-menu-toggle span::after { content: ''; position: absolute; left: 0; width: 20px; height: 2px; background: var(--tx-color-dark); }
.tx-menu-toggle span::before { top: -6px; }
.tx-menu-toggle span::after { top: 6px; }

/* ============================================
   Hero
   ============================================ */
.tx-hero {
  position: relative;
  background:
    radial-gradient(1200px 500px at 80% -10%, rgba(0,177,169,.18), transparent 60%),
    radial-gradient(900px 500px at -10% 110%, rgba(10,102,194,.18), transparent 60%),
    linear-gradient(180deg, #0e1726 0%, #14233a 100%);
  color: #fff;
  padding: 120px 0 130px;
  overflow: hidden;
}
.tx-hero__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 60px; align-items: center; }
.tx-hero h1 { color: #fff; letter-spacing: -.02em; }
.tx-hero h1 span { background: linear-gradient(120deg, #6ad7ff, #00b1a9); -webkit-background-clip: text; background-clip: text; color: transparent; }
.tx-hero__sub { font-size: 1.15rem; color: rgba(255,255,255,.78); max-width: 540px; margin-bottom: 32px; }
.tx-hero__ctas { display: flex; gap: 14px; flex-wrap: wrap; }
.tx-hero__art {
  position: relative;
  aspect-ratio: 4/3;
  border-radius: var(--tx-radius-lg);
  background:
    linear-gradient(135deg, rgba(10,102,194,.35), rgba(0,177,169,.25)),
    repeating-linear-gradient(45deg, rgba(255,255,255,.04) 0 2px, transparent 2px 14px);
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: var(--tx-shadow-lg);
  overflow: hidden;
}
.tx-hero__art::before, .tx-hero__art::after {
  content:''; position: absolute; border-radius: 14px;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12);
}
.tx-hero__art::before { inset: 18% 12% 30% 14%; backdrop-filter: blur(6px); }
.tx-hero__art::after { inset: 50% 35% 12% 30%; }

/* Trust strip */
.tx-trust { background: #fff; border-bottom: 1px solid var(--tx-color-border); }
.tx-trust__row { display: flex; align-items: center; gap: 40px; padding: 22px 0; flex-wrap: wrap; justify-content: space-between; }
.tx-trust__label { color: var(--tx-color-muted); font-size: .85rem; text-transform: uppercase; letter-spacing: .12em; }
.tx-trust__brands { display: flex; gap: 28px; flex-wrap: wrap; }
.tx-trust__brands span { color: #8593a4; font-weight: 700; letter-spacing: .04em; }

/* ============================================
   Services Grid
   ============================================ */
.tx-services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.tx-service-card {
  background: #fff;
  border: 1px solid var(--tx-color-border);
  border-radius: var(--tx-radius-lg);
  padding: 32px;
  transition: var(--tx-transition);
  position: relative;
}
.tx-service-card:hover { transform: translateY(-6px); box-shadow: var(--tx-shadow-md); border-color: transparent; }
.tx-service-card__icon {
  width: 56px; height: 56px; border-radius: 14px;
  background: linear-gradient(135deg, var(--tx-color-primary), var(--tx-color-accent));
  color: #fff; display: grid; place-items: center; margin-bottom: 20px;
  font-size: 1.5rem;
}
.tx-service-card h3 { font-size: 1.2rem; margin-bottom: 10px; }
.tx-service-card p { color: var(--tx-color-muted); font-size: .96rem; margin: 0; }
.tx-service-card__link { display: inline-block; margin-top: 16px; font-weight: 600; font-size: .9rem; }

/* ============================================
   About
   ============================================ */
.tx-about { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.tx-about__media {
  aspect-ratio: 5/4;
  border-radius: var(--tx-radius-lg);
  background:
    linear-gradient(135deg, rgba(10,102,194,.18), rgba(0,177,169,.12)),
    linear-gradient(180deg, #c9d6e6, #eef2f7);
  position: relative;
  box-shadow: var(--tx-shadow-md);
  overflow: hidden;
}
.tx-about__media::after {
  content: ''; position: absolute; right: -20px; bottom: -20px;
  width: 160px; height: 160px; border-radius: 24px;
  background: linear-gradient(135deg, var(--tx-color-primary), var(--tx-color-accent));
  opacity: .9;
}
.tx-about__list { list-style: none; padding: 0; margin: 24px 0 28px; }
.tx-about__list li { padding: 8px 0 8px 30px; position: relative; color: var(--tx-color-text); }
.tx-about__list li::before {
  content: '✓'; position: absolute; left: 0; top: 8px;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--tx-color-primary); color: #fff;
  display: grid; place-items: center; font-size: .75rem; font-weight: 700;
}

/* ============================================
   Stats
   ============================================ */
.tx-stats {
  background: linear-gradient(135deg, var(--tx-color-dark), #14233a);
  color: #fff;
  padding: 70px 0;
}
.tx-stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.tx-stat__num { font-size: 3rem; font-weight: 800; background: linear-gradient(120deg, #6ad7ff, #00b1a9); -webkit-background-clip: text; background-clip: text; color: transparent; line-height: 1; }
.tx-stat__label { color: rgba(255,255,255,.75); margin-top: 8px; font-size: .95rem; }

/* ============================================
   Products / Offerings
   ============================================ */
.tx-products { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.tx-product-card {
  background: #fff;
  border-radius: var(--tx-radius-lg);
  overflow: hidden;
  border: 1px solid var(--tx-color-border);
  transition: var(--tx-transition);
}
.tx-product-card:hover { transform: translateY(-4px); box-shadow: var(--tx-shadow-md); }
.tx-product-card__img {
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, #dde6f1, #f3f6fa);
  position: relative;
}
.tx-product-card__img::after {
  content: ''; position: absolute; inset: 25%;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--tx-color-primary), var(--tx-color-accent));
  opacity: .85;
}
.tx-product-card__body { padding: 22px; }
.tx-product-card h4 { font-size: 1.05rem; margin: 0 0 6px; }
.tx-product-card p { color: var(--tx-color-muted); font-size: .9rem; margin: 0; }

/* ============================================
   Testimonials
   ============================================ */
.tx-testimonials {
  position: relative;
  max-width: 880px;
  margin: 0 auto;
}
.tx-testimonial {
  display: none;
  background: #fff;
  border-radius: var(--tx-radius-lg);
  padding: 48px;
  text-align: center;
  box-shadow: var(--tx-shadow-md);
  border: 1px solid var(--tx-color-border);
}
.tx-testimonial.is-active { display: block; animation: tx-fade .5s ease; }
.tx-testimonial__quote { font-size: 1.2rem; color: var(--tx-color-text); font-style: italic; margin-bottom: 24px; }
.tx-testimonial__author { font-weight: 700; color: var(--tx-color-dark); }
.tx-testimonial__role { color: var(--tx-color-muted); font-size: .9rem; }
.tx-testimonial__nav { display: flex; justify-content: center; gap: 10px; margin-top: 26px; }
.tx-testimonial__dot { width: 10px; height: 10px; border-radius: 50%; background: var(--tx-color-border); border: 0; cursor: pointer; padding: 0; transition: var(--tx-transition); }
.tx-testimonial__dot.is-active { background: var(--tx-color-primary); transform: scale(1.3); }

/* ============================================
   Contact
   ============================================ */
.tx-contact { display: grid; grid-template-columns: 1fr 1.1fr; gap: 50px; align-items: start; }
.tx-contact__info { background: var(--tx-color-dark); color: #fff; border-radius: var(--tx-radius-lg); padding: 40px; }
.tx-contact__info h3 { color: #fff; }
.tx-contact__info p { color: rgba(255,255,255,.78); }
.tx-contact__list { list-style: none; padding: 0; margin: 24px 0 0; }
.tx-contact__list li { display: flex; gap: 14px; padding: 12px 0; border-top: 1px solid rgba(255,255,255,.08); }
.tx-contact__list li:first-child { border-top: 0; }
.tx-contact__icon { width: 36px; height: 36px; border-radius: 10px; background: rgba(255,255,255,.08); display: grid; place-items: center; flex-shrink: 0; }
.tx-form { background: #fff; border: 1px solid var(--tx-color-border); border-radius: var(--tx-radius-lg); padding: 40px; box-shadow: var(--tx-shadow-sm); }
.tx-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.tx-form label { display: block; font-weight: 600; font-size: .85rem; margin: 12px 0 6px; color: var(--tx-color-text); }
.tx-form input, .tx-form textarea, .tx-form select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--tx-color-border);
  border-radius: 10px;
  font-family: inherit;
  font-size: .95rem;
  background: #fff;
  transition: var(--tx-transition);
}
.tx-form input:focus, .tx-form textarea:focus { outline: none; border-color: var(--tx-color-primary); box-shadow: 0 0 0 4px rgba(10,102,194,.12); }
.tx-form textarea { min-height: 130px; resize: vertical; }
.tx-form button { margin-top: 20px; width: 100%; justify-content: center; }

/* ============================================
   Footer
   ============================================ */
.tx-footer { background: #0a1320; color: rgba(255,255,255,.72); padding: 70px 0 0; }
.tx-footer a { color: rgba(255,255,255,.72); }
.tx-footer a:hover { color: #fff; }
.tx-footer__cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; }
.tx-footer h4 { color: #fff; font-size: 1rem; margin-bottom: 18px; }
.tx-footer ul { list-style: none; padding: 0; margin: 0; }
.tx-footer li { padding: 6px 0; }
.tx-footer__bottom {
  margin-top: 50px;
  padding: 22px 0;
  border-top: 1px solid rgba(255,255,255,.08);
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
  font-size: .88rem;
}

/* ============================================
   Generic content / archives
   ============================================ */
.tx-page { padding: 80px 0; }
.tx-page__head { text-align: center; margin-bottom: 50px; }
.tx-post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.tx-post-card { background: #fff; border: 1px solid var(--tx-color-border); border-radius: var(--tx-radius-lg); overflow: hidden; transition: var(--tx-transition); }
.tx-post-card:hover { transform: translateY(-4px); box-shadow: var(--tx-shadow-md); }
.tx-post-card__thumb { aspect-ratio: 16/10; background: linear-gradient(135deg, #dde6f1, #f3f6fa); }
.tx-post-card__thumb img { width: 100%; height: 100%; object-fit: cover; }
.tx-post-card__body { padding: 22px; }
.tx-post-card__meta { color: var(--tx-color-muted); font-size: .82rem; margin-bottom: 8px; }
.tx-post-card h3 { font-size: 1.15rem; margin-bottom: 8px; }
.tx-post-card p { color: var(--tx-color-muted); font-size: .94rem; margin: 0; }

.tx-single { max-width: 780px; margin: 0 auto; padding: 80px 0; }
.tx-single h1 { margin-bottom: 12px; }
.tx-single__meta { color: var(--tx-color-muted); margin-bottom: 30px; font-size: .9rem; }
.tx-single__thumb { border-radius: var(--tx-radius-lg); overflow: hidden; margin-bottom: 30px; }

.tx-404 { text-align: center; padding: 140px 0; }
.tx-404 h1 { font-size: 6rem; margin-bottom: 0; background: linear-gradient(120deg, var(--tx-color-primary), var(--tx-color-accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ============================================
   Animations
   ============================================ */
@keyframes tx-fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.tx-fade-in { opacity: 0; transform: translateY(20px); transition: opacity .8s ease, transform .8s ease; }
.tx-fade-in.is-visible { opacity: 1; transform: none; }

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 992px) {
  .tx-hero__grid, .tx-about, .tx-contact { grid-template-columns: 1fr; }
  .tx-services { grid-template-columns: repeat(2, 1fr); }
  .tx-products { grid-template-columns: repeat(2, 1fr); }
  .tx-stats__grid { grid-template-columns: repeat(2, 1fr); }
  .tx-footer__cols { grid-template-columns: repeat(2, 1fr); }
  .tx-post-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .tx-section { padding: 60px 0; }
  .tx-hero { padding: 80px 0 90px; }
  .tx-menu-toggle { display: inline-flex; }
  .tx-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--tx-color-border);
    padding: 12px 24px; display: none; box-shadow: var(--tx-shadow-md);
  }
  .tx-nav.is-open { display: block; }
  .tx-nav ul { flex-direction: column; gap: 0; }
  .tx-nav a { padding: 14px 8px; border-bottom: 1px solid var(--tx-color-border); border-radius: 0; }
  .tx-nav li:last-child a { border-bottom: 0; }
  .tx-header-cta .tx-btn { display: none; }
  .tx-services, .tx-products, .tx-post-grid, .tx-footer__cols { grid-template-columns: 1fr; }
  .tx-form__row { grid-template-columns: 1fr; }
  .tx-testimonial { padding: 32px 22px; }
  .tx-stat__num { font-size: 2.2rem; }
}
