/* Tswanadomains child theme (parent: Twenty-One) */
:root {
  --td-navy: #1a3c5e;
  --td-navy-2: #12293f;
  --td-blue: #3face1;
  --td-green: #4a8a6a;
  --td-gold: #d4a020;
  --td-ink: #1f2328;
  --td-muted: #5b6470;
  --td-line: #e3e7ec;
  --td-light: #f4f6f8;
}

/* ---------- Contact top bar (carried over from the original child theme) ---------- */
.td-topbar { position: relative; overflow: hidden; background: var(--td-navy); color: #fff; font-size: 14px; padding: 8px 0; }
.td-topbar::after { content: ""; position: absolute; top: 0; left: -30%; width: 30%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.15), transparent);
  animation: tdShine 4s ease-in-out infinite; pointer-events: none; }
@keyframes tdShine { to { left: 130%; } }
.td-topbar .container { display: flex; flex-wrap: wrap; gap: 6px 32px; justify-content: center; }
.td-topbar .container > * { opacity: 0; animation: tdIn .6s ease-out forwards; }
.td-topbar .container > *:nth-child(2) { animation-delay: .15s; }
.td-topbar .container > *:nth-child(3) { animation-delay: .3s; }
@keyframes tdIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.td-topbar a, .td-topbar span { color: #fff !important; text-decoration: none !important; }
.td-topbar a:hover { color: var(--td-blue) !important; }
.td-topbar i { color: var(--td-blue); margin-right: 7px; }

/* ---------- Homepage shell ---------- */
.td-home-page #main-body { padding: 0; background: #fff; }
.td-home-page #main-body > div > .row { margin: 0; }
.td-home-page #main-body .primary-content { padding: 0; }
.td-home-page .footer { margin-top: 0; }
.td-home-page h1, .td-home-page h2, .td-home-page h3, .td-home-page h4 { color: var(--td-ink); }

/* ---------- Hero ---------- */
.td-hero { position: relative; color: #fff; padding: 80px 0 64px;
  background:
    radial-gradient(1000px 400px at 85% 0%, rgba(63,172,225,.25), transparent 60%),
    radial-gradient(700px 300px at 0% 100%, rgba(74,138,106,.20), transparent 60%),
    linear-gradient(135deg, rgba(18,41,63,.62), rgba(26,60,94,.36)),
    url("../img/hero-bg.webp") center / cover no-repeat,
    var(--td-navy-2); }
.td-hero::before { content: ""; position: absolute; inset: 0; opacity: .03;
  background-image: linear-gradient(rgba(255,255,255,.6) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.6) 1px, transparent 1px);
  background-size: 40px 40px; pointer-events: none; }
.td-hero .container { position: relative; }
.td-hero-inner { max-width: 820px; margin: 0 auto; text-align: center; }
.td-eyebrow { display: inline-block; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; font-weight: 600;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2); border-radius: 999px; padding: 6px 14px; margin-bottom: 20px; }
.td-eyebrow i { color: var(--td-blue); margin-right: 6px; }
.td-hero h1 { text-shadow: 0 2px 18px rgba(0,0,0,.35); color: #fff !important; font-weight: 800; font-size: clamp(30px, 5vw, 52px); line-height: 1.1; margin: 0 0 16px; }
.td-hero h1 span { color: var(--td-blue); display: block; }
.td-hero-lead { font-size: 18px; color: rgba(255,255,255,.85); max-width: 640px; margin: 0 auto 30px; }

.td-search-box { position: relative; display: flex; align-items: center; background: #fff; border-radius: 14px; padding: 6px;
  box-shadow: 0 20px 50px rgba(0,0,0,.25); }
.td-search-icon { color: #9aa3ad; margin: 0 6px 0 14px; }
.td-search-box .form-control { border: 0; box-shadow: none; height: 52px; font-size: 17px; flex: 1; min-width: 0; }
.td-search-btns { gap: 6px; }
.td-tlds { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px 18px; margin-top: 18px; font-size: 14px; color: rgba(255,255,255,.8); }
.td-tld strong { color: #fff; margin-right: 4px; }
.td-tld-link { color: var(--td-blue); font-weight: 600; }
.td-tld-link:hover { color: #fff; text-decoration: none; }
.td-trust { list-style: none; padding: 0; margin: 34px 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 26px; font-size: 14px; color: rgba(255,255,255,.85); }
.td-trust i { color: var(--td-gold); margin-right: 6px; }
.td-hero-ctas { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

/* ---------- Buttons ---------- */
.td-btn { border-radius: 10px; font-weight: 600; padding: 12px 22px; border: 2px solid transparent; transition: all .15s ease; }
.td-search-box .td-btn { height: 52px; padding: 0 24px; }
.td-btn-primary { background: var(--td-blue); color: #fff; }
.td-btn-primary:hover, .td-btn-primary:focus { background: #2a8fc7; color: #fff; }
.td-btn-ghost { background: transparent; border-color: rgba(255,255,255,.5); color: #fff; }
.td-search-box .td-btn-ghost { border-color: var(--td-line); color: var(--td-navy); }
.td-btn-ghost:hover { background: rgba(255,255,255,.12); color: #fff; }
.td-search-box .td-btn-ghost:hover { background: var(--td-light); color: var(--td-navy); }
.td-btn-outline { background: #fff; border-color: var(--td-navy); color: var(--td-navy); }
.td-btn-outline:hover { background: var(--td-navy); color: #fff; }
.td-btn-light { background: #fff; color: var(--td-navy); }
.td-btn-light:hover { background: var(--td-light); color: var(--td-navy); }
.td-btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.td-hero .d-sm-none .td-btn-ghost { border-color: rgba(255,255,255,.5); color: #fff; }

/* ---------- Quick actions ---------- */
.td-quick { background: #fff; border-bottom: 1px solid var(--td-line); }
.td-quick ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); }
.td-quick a { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 18px 10px; color: var(--td-navy); font-weight: 600; border-right: 1px solid var(--td-line); }
.td-quick li:last-child a { border-right: 0; }
.td-quick a:hover { background: var(--td-light); text-decoration: none; color: var(--td-blue); }
.td-quick i { color: var(--td-blue); font-size: 18px; }

/* ---------- Sections ---------- */
.td-section { padding: 80px 0; }
.td-alt { background: var(--td-light); }
.td-dark { background: var(--td-navy); color: rgba(255,255,255,.85); }
.td-dark h2, .td-dark h3, .td-dark h4 { color: #fff !important; }
.td-head { max-width: 720px; margin: 0 auto 44px; text-align: center; }
.td-head p { color: var(--td-muted); font-size: 17px; margin: 0; }
.td-dark .td-head p { color: rgba(255,255,255,.75); }
.td-kicker { font-size: 13px !important; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--td-blue) !important; margin-bottom: 8px !important; }
.td-section h2 { font-weight: 800; font-size: clamp(26px, 3.4vw, 38px); line-height: 1.2; margin: 0 0 12px; }
.td-lead { font-size: 17px; color: var(--td-muted); }
.td-dark .td-lead { color: rgba(255,255,255,.8); }
.td-subhead { font-size: 22px; font-weight: 700; margin: 56px 0 20px; }
.td-center { text-align: center; margin-top: 36px; }
.td-small { font-size: 14px; color: var(--td-muted); }
.td-section h4 { font-size: 17px; font-weight: 700; margin: 0 0 6px; }
.td-section p { line-height: 1.6; }

.td-grid { display: grid; gap: 20px; }
.td-grid-2 { grid-template-columns: repeat(2, 1fr); }
.td-grid-3 { grid-template-columns: repeat(3, 1fr); }
.td-grid-4 { grid-template-columns: repeat(4, 1fr); }
.td-grid-5 { grid-template-columns: repeat(5, 1fr); }
.td-split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }

/* ---------- Service tiles ---------- */
.td-svc { display: block; background: var(--td-light); border-radius: 14px; padding: 26px 20px; color: var(--td-ink); transition: transform .15s ease, box-shadow .15s ease; }
.td-svc:hover { text-decoration: none; color: var(--td-ink); transform: translateY(-4px); box-shadow: 0 14px 30px rgba(26,60,94,.12); background: #fff; }
.td-svc h3 { font-size: 16px; font-weight: 700; margin: 18px 0 6px; }
.td-svc p { font-size: 14px; color: var(--td-muted); margin: 0; }
.td-hex { display: inline-flex; align-items: center; justify-content: center; width: 56px; height: 62px; color: #fff; font-size: 22px;
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); }
.td-c-ink { background: var(--td-ink); }
.td-c-green { background: var(--td-green); }
.td-c-blue { background: var(--td-blue); }
.td-c-gold { background: var(--td-gold); }

/* ---------- Features & cards ---------- */
.td-feature-list { display: grid; gap: 14px; }
.td-feature { display: flex; gap: 16px; align-items: flex-start; background: #fff; border: 1px solid var(--td-line); border-radius: 14px; padding: 20px; }
.td-feature > i { flex: none; width: 44px; height: 44px; border-radius: 10px; background: rgba(63,172,225,.12); color: var(--td-blue);
  display: inline-flex; align-items: center; justify-content: center; font-size: 18px; }
.td-feature p { margin: 0; color: var(--td-muted); font-size: 15px; }
.td-card { background: #fff; border: 1px solid var(--td-line); border-radius: 14px; padding: 26px; }
.td-dark .td-card { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.12); }
.td-card ul { list-style: none; padding: 0; margin: 14px 0 0; }
.td-card li { position: relative; padding-left: 20px; margin-bottom: 6px; font-size: 15px; }
.td-card li::before { content: ""; position: absolute; left: 2px; top: 8px; width: 8px; height: 8px; background: var(--td-gold); transform: rotate(45deg); }
.td-ic { font-size: 26px; color: var(--td-blue); margin-bottom: 14px; display: block; }
.td-sub { color: var(--td-blue); font-weight: 600; font-size: 14px; margin: 0; }
.td-product { display: flex; flex-direction: column; }
.td-product p { color: var(--td-muted); flex: 1; }
.td-product .btn { margin-top: auto; }

/* ---------- Steps ---------- */
.td-steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; counter-reset: none; }
.td-steps li { position: relative; background: var(--td-light); border-radius: 14px; padding: 24px 20px; border-top: 4px solid var(--td-blue); }
.td-alt .td-steps li { background: #fff; }
.td-steps li:nth-child(2) { border-top-color: var(--td-green); }
.td-steps li:nth-child(3) { border-top-color: var(--td-gold); }
.td-steps li:nth-child(4) { border-top-color: var(--td-navy); }
.td-steps span { display: block; font-size: 28px; font-weight: 800; color: var(--td-line); line-height: 1; margin-bottom: 10px; }
.td-steps p { font-size: 14px; color: var(--td-muted); margin: 0; }
.td-note { margin: 28px auto 0; max-width: 820px; text-align: center; background: rgba(212,160,32,.1); border: 1px solid rgba(212,160,32,.35); border-radius: 12px; padding: 14px 18px; color: var(--td-ink); }
.td-note i { color: var(--td-gold); margin-right: 8px; }

/* ---------- Portfolio ---------- */
.td-portfolio a { display: flex; align-items: center; gap: 10px; background: var(--td-light); border-radius: 12px; padding: 18px 20px; font-weight: 600; color: var(--td-navy); border: 1px solid transparent; }
.td-portfolio a:hover { background: #fff; border-color: var(--td-blue); text-decoration: none; color: var(--td-blue); }
.td-portfolio i { font-size: 13px; color: var(--td-blue); }

/* ---------- IT support mini tiles ---------- */
.td-mini { padding: 22px; border-radius: 14px; border: 1px solid var(--td-line); }
.td-mini i { font-size: 22px; color: var(--td-green); margin-bottom: 12px; display: block; }
.td-mini p { margin: 0; color: var(--td-muted); font-size: 14px; }

/* ---------- Who we serve ---------- */
.td-serve { text-align: center; padding: 26px 18px; border-radius: 14px; background: var(--td-light); }
.td-serve i { font-size: 28px; color: var(--td-navy); margin-bottom: 14px; display: block; }
.td-serve p { font-size: 14px; color: var(--td-muted); margin: 0; }

/* ---------- Why us ---------- */
.td-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 28px; }
.td-stats div { border-left: 3px solid var(--td-gold); padding: 6px 0 6px 16px; }
.td-stats strong { display: block; font-size: 36px; font-weight: 800; color: #fff; line-height: 1.1; }
.td-stats span { font-size: 14px; color: rgba(255,255,255,.75); }
.td-why { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: 14px; padding: 20px; }
.td-why i { color: var(--td-blue); margin-right: 6px; }
.td-why p { margin: 0; font-size: 14px; }

/* ---------- About / values / team ---------- */
.td-values > div { background: #fff; border-radius: 12px; padding: 18px; border: 1px solid var(--td-line); }
.td-values i { color: var(--td-gold); font-size: 20px; margin-bottom: 8px; display: block; }
.td-values p { margin: 0; font-size: 14px; color: var(--td-muted); }
.td-team { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin: 26px 0 12px; }
.td-team > div { background: #fff; border: 1px solid var(--td-line); border-radius: 14px; padding: 18px 12px; text-align: center; }
.td-avatar { display: inline-flex; width: 52px; height: 52px; border-radius: 50%; background: var(--td-navy); color: #fff; font-weight: 700; align-items: center; justify-content: center; margin-bottom: 10px; }
.td-team strong { display: block; font-size: 14px; color: var(--td-ink); }
.td-team small { color: var(--td-muted); font-size: 12px; }

/* ---------- Partners ---------- */
.td-partners-wrap { padding: 64px 0; }
.td-partners { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.td-partners li { text-align: center; border: 1px solid var(--td-line); border-radius: 12px; padding: 18px 10px; }
.td-partners strong { display: block; font-size: 17px; color: var(--td-navy); }
.td-partners span { font-size: 12px; color: var(--td-muted); }

/* ---------- Group & news ---------- */
.td-group small, .td-news small { text-transform: uppercase; letter-spacing: .12em; font-weight: 700; font-size: 11px; color: var(--td-green); }
.td-group h4, .td-news h4 { margin-top: 6px; }
.td-group p { margin: 0; color: var(--td-muted); font-size: 15px; }
.td-news { display: block; color: var(--td-ink); transition: box-shadow .15s ease; }
.td-news:hover { text-decoration: none; color: var(--td-ink); box-shadow: 0 14px 30px rgba(26,60,94,.12); }
.td-news p { color: var(--td-muted); }
.td-more { color: var(--td-blue); font-weight: 600; font-size: 14px; }

/* ---------- Contact ---------- */
.td-contact { background: linear-gradient(135deg, rgba(42,143,199,.76), rgba(26,60,94,.70)), url("../img/bg-contact.webp") center / cover no-repeat, var(--td-blue); color: #fff; }
.td-contact h2 { color: #fff !important; font-size: clamp(30px, 4vw, 46px); }
.td-contact .td-lead { color: rgba(255,255,255,.9); }
.td-contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.td-contact-list li { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 12px; background: rgba(255,255,255,.12); border-radius: 12px; padding: 14px 18px; }
.td-contact-list i { width: 20px; text-align: center; }
.td-contact-list span { font-size: 12px; text-transform: uppercase; letter-spacing: .1em; opacity: .8; min-width: 54px; }
.td-contact-list a { color: #fff; font-weight: 600; }

/* ---------- Responsive ---------- */
@media (max-width: 1199px) {
  .td-grid-5 { grid-template-columns: repeat(3, 1fr); }
  .td-steps { grid-template-columns: repeat(3, 1fr); }
  .td-partners { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 991px) {
  .td-split { grid-template-columns: 1fr; gap: 36px; }
  .td-grid-3, .td-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .td-quick ul { grid-template-columns: repeat(3, 1fr); }
  .td-quick li:nth-child(3) a { border-right: 0; }
  .td-quick li:nth-child(n+4) a { border-top: 1px solid var(--td-line); }
}
@media (max-width: 767px) {
  .td-section { padding: 56px 0; }
  .td-hero { padding: 56px 0 44px; }
  .td-grid-5, .td-steps { grid-template-columns: repeat(2, 1fr); }
  .td-partners { grid-template-columns: repeat(2, 1fr); }
  .td-team { grid-template-columns: 1fr; }
  .td-quick ul { grid-template-columns: repeat(2, 1fr); }
  .td-quick a { border-right: 0; border-top: 1px solid var(--td-line); justify-content: flex-start; padding: 14px 16px; }
}
@media (max-width: 575px) {
  .td-grid-2, .td-grid-3, .td-grid-4, .td-grid-5, .td-steps, .td-stats { grid-template-columns: 1fr; }
  .td-search-box .form-control { height: 46px; font-size: 16px; }
}

/* ---------- Services: contact for pricing ---------- */
.td-quote-price .price { font-size: 22px !important; color: var(--td-navy); }
.td-quote-btn { background: var(--td-blue) !important; border-color: var(--td-blue) !important; }
.td-quote-note { max-width: 1110px; margin: 10px auto 30px; padding: 14px 18px; background: var(--td-light); border-left: 4px solid var(--td-gold); border-radius: 8px; }
.td-quote-note i { color: var(--td-gold); margin-right: 8px; }
.dropdown-menu .dropdown-divider { margin: 6px 0; }

/* ---------- Photos from the company profile ---------- */
#systems { background: linear-gradient(180deg, rgba(26,60,94,.90), rgba(18,41,63,.86)), url("../img/bg-systems.webp") center / cover no-repeat, var(--td-navy); }
#why-us { background: linear-gradient(135deg, rgba(18,41,63,.80), rgba(26,60,94,.70)), url("../img/bg-why.webp") center / cover no-repeat, var(--td-navy); }
.td-photo { display: block; width: 100%; object-fit: cover; border-radius: 16px; box-shadow: 0 18px 40px rgba(26,60,94,.18); }
.td-photo-it { height: 240px; margin: -12px 0 32px; }
.td-photo-about { height: 230px; margin-bottom: 24px; }
@media (max-width: 767px) { .td-photo-it, .td-photo-about { height: 180px; } }

/* ---------- Team photos ---------- */
img.td-avatar { display: block; width: 88px; height: 88px; margin: 0 auto 12px; border-radius: 50%; object-fit: cover; background: var(--td-light); border: 3px solid #fff; box-shadow: 0 0 0 2px var(--td-blue), 0 8px 20px rgba(26,60,94,.18); }

/* ---------- WhatsApp button (header) ---------- */
.td-whatsapp { display: inline-flex; align-items: center; gap: 10px; background: #25d366; color: #fff !important; border-radius: 999px; padding: 6px 18px 6px 8px; text-decoration: none !important; box-shadow: 0 6px 16px rgba(37,211,102,.30); transition: transform .15s ease, box-shadow .15s ease; }
.td-whatsapp:hover { transform: translateY(-1px); box-shadow: 0 10px 22px rgba(37,211,102,.38); color: #fff !important; }
.td-whatsapp i { width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,.18); display: inline-flex; align-items: center; justify-content: center; font-size: 22px; }
.td-wa-text { display: flex; flex-direction: column; line-height: 1.15; }
.td-wa-text small { font-size: 11px; opacity: .9; }
.td-wa-text strong { font-size: 15px; letter-spacing: .02em; }
@media (max-width: 575px) { .td-whatsapp { padding: 6px; } .td-wa-text { display: none; } }

/* ---------- Centred grids (Our Group) ---------- */
.td-center-grid { display: flex; flex-wrap: wrap; justify-content: center; }
.td-center-grid > * { flex: 0 1 calc((100% - 40px) / 3); }
@media (max-width: 991px) { .td-center-grid > * { flex-basis: calc((100% - 20px) / 2); } }
@media (max-width: 575px) { .td-center-grid > * { flex-basis: 100%; } }


/* ---------- Brand characters ---------- */
.td-char { position: absolute; display: none; pointer-events: none; z-index: 1; width: auto; filter: drop-shadow(0 10px 16px rgba(0,0,0,.22)); }
.td-char-wrap { position: relative; }
.td-char-hero-r { right: 4px; bottom: -64px; height: 210px; }
.td-char-hero-l { left: 10px; bottom: -64px; height: 205px; }
.td-char-head-l { left: 40px; top: -40px; height: 105px; }
.td-char-head-r { right: 60px; top: -40px; height: 105px; }
.td-hero-bubble { display: none; position: absolute; right: 0; bottom: 162px; width: 150px; z-index: 2; background: var(--td-gold); color: #1f2328; border-radius: 14px; padding: 10px 12px; font-size: 13px; line-height: 1.35; text-align: center; box-shadow: 0 8px 20px rgba(0,0,0,.25); }
.td-hero-bubble strong { display: block; font-size: 17px; font-weight: 800; }
.td-hero-bubble::after { content: ""; position: absolute; left: 50%; bottom: -9px; margin-left: -9px; border-left: 9px solid transparent; border-right: 9px solid transparent; border-top: 10px solid var(--td-gold); }
@media (min-width: 1200px) { .td-char, .td-hero-bubble { display: block; } }
/* ---------- Round 2 tweaks ---------- */
.td-divider { border: 0; border-top: 2px solid rgba(26,60,94,.14); margin: 52px 0 36px; }
.td-stat-big { display: inline-flex; align-items: center; gap: 14px; background: var(--td-navy); color: #fff; border-radius: 14px; padding: 12px 22px; margin: 2px 0 22px; box-shadow: 0 8px 22px rgba(18,41,63,.18); }
.td-stat-big strong { font-size: 42px; font-weight: 800; line-height: 1; color: var(--td-gold); }
.td-stat-big span { font-size: 15px; font-weight: 600; line-height: 1.3; color: #fff; }
.td-trust .td-trust-hl { background: var(--td-gold); color: #1f2328; border-radius: 999px; padding: 5px 18px; font-weight: 600; font-size: 17px; }
.td-trust .td-trust-hl i { color: #1f2328; }
.td-trust .td-trust-hl strong { font-weight: 800; }
.td-bg-design { background: linear-gradient(rgba(255,255,255,.90), rgba(255,255,255,.90)), url("../img/bg-design.webp") center / cover no-repeat, #fff; }
.td-bg-cloud { background: linear-gradient(rgba(244,246,248,.72), rgba(244,246,248,.80)), url("../img/bg-contact.webp") center / cover no-repeat, #f4f6f8; }
.td-grid.td-grid-5 { grid-template-columns: repeat(5, 1fr); }
@media (max-width: 991px) { .td-grid.td-grid-5 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 575px) { .td-grid.td-grid-5 { grid-template-columns: 1fr; } }
.td-partners { display: flex; flex-wrap: wrap; justify-content: center; }
.td-partners li { flex: 0 0 calc(25% - 11px); }
@media (max-width: 767px) { .td-partners li { flex-basis: calc(50% - 7px); } }