/* TMSA home page styles (Homepage Gateway template, page-home.php).
   Moved out of page-home.php on 2026-11-16. This file is where ALL home page styling lives from now on.
   Every selector is prefixed with .tmsa-home so it keeps the same precedence it had as an inline block
   (the stylesheet now loads in the head, before functions.php and Additional CSS rules).
   Loaded on the home page only (see functions.php, tmsa-home enqueue). Version = file modification time. */

.tmsa-home *{box-sizing:border-box}

/* HERO */
/* Hero top padding = header height (--tm-header-h) + the shared 40px (--tm-pad), so the heading sits 40px below the fixed header.
   The variables are defined in css/tmsa-layout.css. */
.tmsa-home .tm-hero{background:#fff;padding:calc(var(--tm-header-h) + var(--tm-pad)) var(--tm-edge) var(--tm-pad);text-align:left;color:#0f172a}
.tmsa-home .tm-hero-inner{max-width:none;margin:0;padding:0}
.tmsa-home .tm-hero h1{font-size:clamp(26px,4.5vw,50px);font-weight:800;line-height:1.2;margin-bottom:16px;color:#0f172a;text-align:left}
.tmsa-home .tm-hero h1 em{color:#0047AB;font-style:normal}
.tmsa-home .tm-hero .sub{font-size:17px;color:#374151;margin:0 0 16px;text-align:left}
.tmsa-home .tm-hero .sub-body{font-size:15px;color:#374151;margin:0 0 16px;line-height:1.75;text-align:left}
.tmsa-home .tm-hero .sub-close{font-size:16px;color:#0f172a;font-weight:700;margin:0 0 8px;text-align:left}
.tmsa-home .tm-hero .tm-hero-tag{font-size:15px;font-weight:700;letter-spacing:.08em;color:#0047AB;margin:0 0 16px;text-align:left}

/* SERVICES BUBBLES */
.tmsa-home .tmsa-services{background:#fff;padding:var(--tm-pad) var(--tm-edge);text-align:left}
.tmsa-home .tmsa-services__intro{font-size:15px;color:#374151;margin-bottom:16px;text-align:justify}
.tmsa-home .tmsa-services__bubbles{display:flex;flex-wrap:wrap;justify-content:flex-start;gap:10px;margin:0 0 20px}
.tmsa-home .tmsa-services__bubbles span{display:inline-block;padding:7px 18px;border-radius:999px;border:1px solid #d1d5db;font-size:13px;color:#374151;background:#f5f5f5;transition:background .2s,border-color .2s;cursor:default}
.tmsa-home .tmsa-services__bubbles span:hover{background:rgba(249,115,22,.12);border-color:#0047AB;color:#0047AB}
.tmsa-home .tmsa-services__close{font-size:13px;color:#64748b;margin:0}

/* DOMAIN SEARCH */
.tmsa-home .tm-domain-hero{background:#f8fafc;padding:var(--tm-pad) var(--tm-edge);border-top:1px solid #e2e8f0}
.tmsa-home .tm-domain-hero-inner{max-width:none!important;margin:0!important}
.tmsa-home .tm-domain-hero-inner h2{color:#0f172a;font-size:22px;font-weight:700;text-align:left;margin-bottom:18px}
.tmsa-home .tm-dsearch-wrap{display:flex;border-radius:10px;overflow:hidden;box-shadow:0 4px 24px rgba(0,0,0,.4)}
.tmsa-home .tm-dsearch-wrap input[type=text]{flex:1;padding:16px 20px;font-size:16px;border:none;outline:none;background:#fff;color:#0f172a}
.tmsa-home .tm-dsearch-wrap button{background:#0047AB;color:#fff;border:none;padding:0 28px;font-size:16px;font-weight:700;cursor:pointer;white-space:nowrap}
.tmsa-home .tm-dsearch-wrap button:hover{background:#003d99}
.tmsa-home .tm-tld-pills{display:flex;flex-wrap:wrap;gap:8px;justify-content:flex-start;margin-top:16px}
.tmsa-home .tm-tld-pill{background:#fff;color:#374151;border:1px solid #d1d5db;padding:5px 14px;border-radius:20px;font-size:13px;font-weight:600;cursor:pointer;transition:background .15s,color .15s}
.tmsa-home .tm-tld-pill:hover,.tmsa-home .tm-tld-pill.active{background:#0047AB;color:#fff;border-color:#0047AB}
.tmsa-home .tm-whmcs-search{margin-top:24px}
.tmsa-home .tm-whmcs-search .whmpress_domain_search_form{display:none!important}

/* PRICING INLINE */
.tmsa-home .tm-pricing-inline{background:#f8fafc;padding:var(--tm-pad) var(--tm-edge)}
.tmsa-home .tm-pricing-inline h2{text-align:left;font-size:30px;font-weight:800;color:#0f172a;margin-bottom:8px}
.tmsa-home .tm-pricing-inline .sub{text-align:justify;color:#64748b;margin-bottom:36px;font-size:15px}
.tmsa-home .tm-billing-toggle{display:flex;align-items:center;justify-content:flex-start;gap:12px;max-width:none;margin:0 0 36px;font-size:14px;font-weight:600;color:#374151}
.tmsa-home .tm-billing-toggle input{width:40px;height:22px;cursor:pointer;accent-color:#0047AB}
.tmsa-home .tm-plans{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:20px;margin:0}
.tmsa-home .tm-plan{background:#fff;border-radius:14px;padding:28px 22px;border:2px solid #e2e8f0;position:relative;transition:transform .2s,border-color .2s}
.tmsa-home .tm-plan:hover{transform:translateY(-4px);border-color:#0047AB}
.tmsa-home .tm-plan.popular{border-color:#0047AB}
.tmsa-home .tm-badge{position:absolute;top:-13px;left:22px;transform:none;text-decoration:none;background:#0047AB;color:#fff;padding:3px 18px;border-radius:20px;font-size:11px;font-weight:700;white-space:nowrap}
.tmsa-home .tm-plan-name{font-size:18px;font-weight:800;color:#0f172a;margin-bottom:4px}
.tmsa-home .tm-plan-price{font-size:34px;font-weight:800;color:#0047AB;line-height:1}
.tmsa-home .tm-plan-price span{font-size:14px;color:#64748b;font-weight:600}
.tmsa-home .tm-plan-desc{font-size:13px;color:#64748b;margin:8px 0 16px}
.tmsa-home .tm-plan-features{list-style:none;padding:0;margin:0 0 20px;border-top:1px solid #f1f5f9;padding-top:14px}
.tmsa-home .tm-plan-features li{padding:5px 0;font-size:13px;color:#374151;display:flex;align-items:center;gap:7px}
.tmsa-home .tm-plan-features li .yes{color:#22c55e;font-weight:700}
.tmsa-home .tm-plan-features li .no{color:#cbd5e1}
.tmsa-home .tm-plan-cta{display:block;background:#0f172a;color:#fff;text-align:left;padding:12px;border-radius:8px;font-weight:700;text-decoration:none;font-size:14px;transition:background .2s}
.tmsa-home .tm-plan.popular .tm-plan-cta{background:#0047AB}
.tmsa-home .tm-plan-cta:hover{background:#0047AB;color:#fff}
.tmsa-home .tm-plan.popular .tm-plan-cta:hover{background:#003d99}

/* PILLARS */
.tmsa-home .tm-pillars{padding:var(--tm-pad) var(--tm-edge);background:#fff}
.tmsa-home .tm-pillars h2{text-align:left;font-size:30px;font-weight:800;color:#0f172a;margin-bottom:44px}
.tmsa-home .tm-pillar-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(260px,100%),1fr));gap:24px;margin:0}
.tmsa-home .tm-pillar{background:#f8fafc;border-radius:16px;padding:32px 24px;text-align:left;border:2px solid #e2e8f0;transition:transform .2s,border-color .2s}
.tmsa-home .tm-pillar:hover{transform:translateY(-4px);border-color:#0047AB}
.tmsa-home .tm-pillar .icon{font-size:42px;margin-bottom:14px}
.tmsa-home .tm-pillar h3{font-size:19px;font-weight:700;color:#0f172a;margin-bottom:6px}
.tmsa-home .tm-pillar .tm-pillar-sub{font-size:13px;color:#0047AB;font-weight:700;margin-bottom:10px}
.tmsa-home .tm-pillar p{color:#64748b;font-size:13px;line-height:1.6;margin-bottom:18px}
.tmsa-home .tm-pillar a{color:#0047AB;font-weight:700;text-decoration:none;font-size:13px}
/* Pillar cards share one structure (title, subheading, text, link). Rows line up across cards (subgrid) and the link sits at the bottom. */
.tmsa-home .tm-pillar{display:flex;flex-direction:column}
.tmsa-home .tm-pillar a{margin-top:auto}
@supports(grid-template-rows:subgrid){.tmsa-home .tm-pillar{display:grid;grid-row:span 4;grid-template-rows:subgrid;row-gap:0}.tmsa-home .tm-pillar a{margin-top:0;align-self:end}}
/* Narrow cards: justified text with automatic hyphenation (lang="en-GB" is set on each card) so there are no wide word gaps. */
.tmsa-home .tm-pillar p,.tmsa-home .tm-testi p,.tmsa-home .tm-ca-feat p{text-align:justify;hyphens:auto;-webkit-hyphens:auto}

/* TRUST BAR */
.tmsa-home .tm-trust{padding:var(--tm-pad) var(--tm-edge);background:#1e293b}
.tmsa-home .tm-trust-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:0;margin:0;text-align:left;align-items:start}
.tmsa-home .tm-trust-item{display:flex;flex-direction:column;gap:4px}
/* Stats band: two equal halves across the full container width, each stat on the left edge of its half (no gap, so the halves are exact).
   Figures white on navy (#1e293b): contrast 14.6:1; labels #cbd5e1: 9.8:1. Both pass WCAG AA. */
.tmsa-home .tm-trust-item .number{font-size:34px;font-weight:800;color:#fff;line-height:1.1}
.tmsa-home .tm-trust-item .label{font-size:12px;color:#cbd5e1;font-weight:600;text-transform:uppercase;letter-spacing:.5px}

/* TESTIMONIALS */
.tmsa-home .tm-testi-section{padding:var(--tm-pad) var(--tm-edge);background:#f8fafc}
.tmsa-home .tm-testi-section h2{text-align:left;font-size:30px;font-weight:800;color:#0f172a;margin-bottom:36px}
.tmsa-home .tm-testi-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(260px,100%),1fr));gap:20px;margin:0}
.tmsa-home .tm-testi{background:#fff;padding:24px;border-radius:12px;border-left:4px solid #0047AB}
.tmsa-home .tm-testi .stars{color:#0047AB;margin-bottom:10px}
.tmsa-home .tm-testi p{color:#374151;font-size:14px;line-height:1.7;margin-bottom:10px}
.tmsa-home .tm-testi .author{font-weight:700;font-size:12px;color:#64748b}

/* CLIENT AREA BLOCK */
.tmsa-home .tm-client-area{background:#0047AB;padding:var(--tm-pad) var(--tm-edge)}
.tmsa-home .tm-client-area-inner{margin:0;display:grid;grid-template-columns:1fr 1fr;gap:60px;align-items:center}
.tmsa-home .tm-client-area-text h2{font-size:clamp(22px,3vw,36px);font-weight:800;color:#fff;margin-bottom:16px;line-height:1.2}
.tmsa-home .tm-client-area-text p{font-size:15px;color:rgba(255,255,255,.85);line-height:1.75;margin-bottom:28px}
.tmsa-home .tm-client-area-text a.tm-ca-btn{display:inline-flex;align-items:center;gap:8px;background:#fff;color:#0047AB;font-weight:700;font-size:15px;padding:13px 28px;border-radius:8px;text-decoration:none;transition:background .2s,color .2s}
.tmsa-home .tm-client-area-text a.tm-ca-btn:hover{background:#0f172a;color:#fff}
.tmsa-home .tm-client-area-features{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.tmsa-home .tm-ca-feat{background:rgba(255,255,255,.12);border-radius:10px;padding:18px 16px;display:flex;gap:12px;align-items:flex-start}
.tmsa-home .tm-ca-feat .ico{font-size:22px;flex-shrink:0}
.tmsa-home .tm-ca-feat h3{font-size:13px;font-weight:700;color:#fff;margin-bottom:4px}
.tmsa-home .tm-ca-feat p{font-size:12px;color:rgba(255,255,255,.75);line-height:1.5;margin:0}
@media(max-width:768px){.tmsa-home .tm-client-area-inner{grid-template-columns:1fr}.tmsa-home .tm-client-area-features{grid-template-columns:1fr 1fr}}
@media(max-width:480px){.tmsa-home .tm-client-area-features{grid-template-columns:1fr}}

/* CLIENT LOGOS MARQUEE */
.tmsa-home .tm-clients{background:#f8fafc;padding:48px 0;border-top:1px solid #e2e8f0;border-bottom:1px solid #e2e8f0;overflow:hidden}
.tmsa-home .tm-clients h2{text-align:left;font-size:18px;font-weight:700;color:#64748b;margin-bottom:28px;letter-spacing:.08em;text-transform:uppercase}
.tmsa-home .tm-marquee-wrap{overflow:hidden;position:relative}
.tmsa-home .tm-marquee-wrap::before,.tmsa-home .tm-marquee-wrap::after{content:'';position:absolute;top:0;bottom:0;width:80px;z-index:2;pointer-events:none}
.tmsa-home .tm-marquee-wrap::before{left:0;background:linear-gradient(to right,#f8fafc,transparent)}
.tmsa-home .tm-marquee-wrap::after{right:0;background:linear-gradient(to left,#f8fafc,transparent)}
.tmsa-home .tm-marquee{display:flex;align-items:center;gap:60px;width:max-content;animation:tmScroll 30s linear infinite}
.tmsa-home .tm-marquee:hover{animation-play-state:paused}
.tmsa-home .tm-marquee img{height:100px;width:auto;max-width:200px;object-fit:contain;filter:none;opacity:1;transition:transform .3s}
.tmsa-home .tm-marquee img:hover{transform:scale(1.08)}
@keyframes tmScroll{0%{transform:translateX(0)}100%{transform:translateX(-50%)}}

/* BUTTONS (shared). The home page "Ready to get started?" band was removed on 2026-11-16: the footer call to action now covers it. */
.tmsa-home .tm-btn-orange{background:#0047AB;color:#fff;padding:14px 32px;border-radius:8px;font-weight:700;text-decoration:none;font-size:16px;display:inline-block}
.tmsa-home .tm-btn-orange:hover{background:#003d99;color:#fff}

/* Offer hero: left-aligned, justified body */
.tmsa-home .tm-hero--offer .tm-hero-inner{text-align:left}
.tmsa-home .tm-hero--offer .tm-hero-headline{text-wrap:balance;font-size:clamp(26px,4.5vw,50px);font-weight:800;line-height:1.2;margin:0 0 16px;color:#0f172a;text-align:left}
.tmsa-home .tm-hero--offer .sub{max-width:none;margin:0 0 20px;text-align:justify;hyphens:auto;-webkit-hyphens:auto}
.tmsa-home .tm-hero-btns{display:flex;gap:12px;flex-wrap:wrap;justify-content:flex-start}
.tmsa-home .tmsa-services__title{text-align:left;font-size:26px;font-weight:800;color:#0f172a;margin:0 0 10px}
.tmsa-home .tmsa-services{text-align:left;padding:var(--tm-pad) var(--tm-edge)}
.tmsa-home .tmsa-services__intro,.tmsa-home .tmsa-services__close{text-align:justify;max-width:none}
.tmsa-home .tmsa-services__bubbles{justify-content:flex-start;max-width:none}
#hosting-plans{scroll-margin-top:180px}
@media(max-width:600px){#hosting-plans{scroll-margin-top:70px}.tmsa-home .tm-hero-btns{flex-direction:column;align-items:flex-start}.tmsa-home .tm-hero-btns a{width:100%;max-width:300px;text-align:left}}

.tmsa-home .tm-badge--offer:hover{background:#003d99;color:#fff}
/* Logo strip rules moved to css/tmsa-layout.css (shared by every page). */
.tmsa-home section:not(.tm-hero) p{text-align:justify}

/* DELIBERATE EXCEPTION (Sheetal, 2026-11-16): the home page HERO ONLY is centred: heading, paragraph (centred, 760px at most, not justified) and both buttons.
   Every other section stays left-aligned with justified body text. Do not copy this pattern to other sections. */
.tmsa-home .tm-hero--offer .tm-hero-inner,.tmsa-home .tm-hero--offer .tm-hero-headline{text-align:center}
.tmsa-home .tm-hero--offer .sub{max-width:760px;margin:0 auto 20px;text-align:center;hyphens:manual;-webkit-hyphens:manual}
.tmsa-home .tm-hero-btns{justify-content:center}
@media(max-width:600px){.tmsa-home .tm-hero-btns{align-items:center}.tmsa-home .tm-hero-btns a{text-align:center}}
