/*
Theme Name: SS Utilities
Theme URI: https://ssutilities.co.za
Author: SS Utilities
Description: Custom lightweight theme for SS Utilities — turnkey energy, water and fibre for residential and commercial estates.
Version: 1.3.0
Requires at least: 6.0
Requires PHP: 7.4
License: Proprietary
Text Domain: ssutilities
*/

/* Base styles live in assets/css/site.css; v1.2 additions (partners + fibre packages) below. */

/* Partner logos (built in HTML/SVG) */
.ne-logo { display: inline-flex; flex-direction: column; align-items: center; font-family: "Montserrat", var(--f-body); font-size: var(--ne, 12px); line-height: 1; vertical-align: middle; }
.ne-pill { display: inline-flex; border: .14em solid #43B02A; border-radius: 999px; overflow: hidden; font-weight: 600; letter-spacing: .01em; white-space: nowrap; }
.ne-pill span { padding: .32em .55em .3em; }
.ne-pill span:first-child { background: #43B02A; color: #fff; padding-left: .85em; }
.ne-pill span:last-child { background: #fff; color: #43B02A; padding-right: .85em; }
.ne-pay { margin-top: .45em; font-size: .42em; font-weight: 600; letter-spacing: .05em; color: #43B02A; white-space: nowrap; }
.uc-logo { display: inline-flex; align-items: center; gap: calc(var(--uc, 28px) * .16); vertical-align: middle; }
.uc-logo svg { height: var(--uc, 28px); width: auto; flex: none; }
.uc-type { display: grid; font-family: "Montserrat", var(--f-body); font-weight: 800; font-size: calc(var(--uc, 28px) * .42); line-height: .9; letter-spacing: .01em; }
.uc-type span:first-child { color: #EF8F21; }
.uc-type span:last-child { color: #13212D; }

/* Powered-by credits */
.hero-powered { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; margin-top: 26px; font-size: .8rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; --ne: 11px; --uc: 28px; }
.hero-powered .pb { display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; }
.hero-powered .sep { width: 1px; height: 22px; background: var(--line); margin: 0 6px; }
.card { display: flex; flex-direction: column; }
.card > p { margin-bottom: 0; }
.card .ticks { margin-bottom: 22px; }
.powered { display: flex; align-items: center; gap: 10px; margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); --ne: 10px; --uc: 24px; }
.footer-partners { font-size: .88rem; }
.footer-partners a { color: #fff !important; font-weight: 600; }

/* Partners */
.partners { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.partner { background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 34px 32px; box-shadow: var(--shadow); position: relative; overflow: hidden; }
.partner::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; }
.partner-energy::before { background: #43B02A; }
.partner-fibre::before { background: linear-gradient(180deg, #EF8F21, #0087AA); }
.partner-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; min-height: 52px; --ne: 17px; --uc: 46px; }
.partner-tag { display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 6px 11px; border-radius: 999px; }
.partner-energy .partner-tag { background: #EDF7E9; color: #2E7D1E; }
.partner-fibre .partner-tag { background: #E6F4F8; color: #006C88; }
.partner p { color: var(--muted); }

/* Fibre plans */
.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 30px 24px 26px; box-shadow: var(--shadow); transition: transform .2s ease, box-shadow .2s ease; }
.plan:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.plan .ticks { margin: 18px 0 24px; flex: 1; }
.plan .btn { width: 100%; }
.plan-speed { display: flex; align-items: baseline; gap: 6px; color: var(--navy); }
.plan-speed strong { font-family: var(--f-head); font-size: 3rem; font-weight: 700; line-height: 1; letter-spacing: -.03em; }
.plan-speed span { font-family: var(--f-head); font-size: 1.15rem; font-weight: 600; color: var(--teal-d); }
.plan-sub { font-size: .85rem; color: var(--muted); margin-top: 6px; }
.plan-price { margin-top: 20px; padding: 14px 16px; border-radius: 14px; background: var(--tint); display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.plan-price strong { font-family: var(--f-head); font-size: 1.6rem; font-weight: 700; color: var(--navy); }
.plan-price span { font-size: .85rem; color: var(--muted); font-weight: 500; }
.plan-included { background: linear-gradient(170deg, #EAFBF7, #fff 60%); border-color: #CFEFE7; }
.plan-included .plan-price { background: rgba(15, 163, 163, .1); }
.plan-included .plan-price strong { color: var(--teal-d); }
.plan-popular { border: 2px solid var(--teal); box-shadow: 0 2px 6px rgba(11, 30, 51, .06), 0 20px 50px rgba(15, 163, 163, .18); }
.plan-badge { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: linear-gradient(135deg, var(--amber), var(--amber-d)); color: #1d1300; font-size: .74rem; font-weight: 700; letter-spacing: .04em; padding: 5px 13px; border-radius: 999px; white-space: nowrap; }
.plans-note { text-align: center; color: var(--muted); font-size: .88rem; max-width: 46em; margin: 30px auto 0; }

@media (max-width: 1080px) {
	.main-nav { gap: 16px; }
	.main-nav a { font-size: .88rem; }
	.header-inner { gap: 20px; }
}
@media (max-width: 960px) {
	.partners { grid-template-columns: 1fr; }
	.plans { grid-template-columns: repeat(2, 1fr); gap: 26px 20px; }
}
@media (max-width: 640px) {
	.plans { grid-template-columns: 1fr; max-width: 420px; margin-inline: auto; }
	.partner { padding: 28px 22px; }
	.hero-powered .sep { display: none; }
	.hero-powered { gap: 8px 10px; }
}

/* ---------- Mobile optimisation (v1.3) ---------- */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
a, button, label.choice { -webkit-tap-highlight-color: rgba(15, 163, 163, .15); }

@media (max-width: 640px) {
	.section { padding: 60px 0; }
	.section-head { margin-bottom: 32px; }
	.section-head p { font-size: 1rem; }
	.hero { padding: 36px 0 52px; }
	.eyebrow { margin-bottom: 16px; }
	.lead { font-size: 1.05rem; margin-bottom: 24px; }
	.btn { min-height: 44px; }
	.header-cta .btn { min-height: 40px; }

	/* Hero dashboard: lighter on phones */
	.status-card { padding: 18px; }
	.status-chart { display: none; }
	.float-chip { animation: none; }
	.hero-visual { padding-bottom: 26px; }

	/* Service cards */
	.cards-3 { gap: 16px; }
	.card { padding: 26px 22px; }
	.card-ico { width: 48px; height: 48px; margin-bottom: 16px; }

	/* Fibre packages: swipeable row */
	.plans { display: flex; max-width: none; overflow-x: auto; scroll-snap-type: x mandatory; gap: 14px; margin: 0 -16px; padding: 18px 16px 12px; scroll-padding: 0 16px; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
	.plans::-webkit-scrollbar { display: none; }
	.plan { flex: 0 0 80%; scroll-snap-align: center; padding: 24px 20px 22px; }
	.plan:hover { transform: none; }
	.plan-speed strong { font-size: 2.6rem; }
	#fibre .section-head::after { content: "Swipe to compare packages \2192"; display: block; margin-top: 14px; font-size: .85rem; font-weight: 600; color: var(--teal-d); }
	.plans-note { margin-top: 18px; font-size: .82rem; }

	/* Partners */
	.partner-top { --ne: 15px; --uc: 40px; margin-bottom: 18px; }

	/* Phone mock-up: smaller */
	.features { gap: 18px; margin-top: 26px; }
	.phone { width: 240px; padding: 10px; border-radius: 38px; }
	.phone-wrap::before { width: 300px; height: 300px; }
	.app { min-height: 0; padding: 46px 14px 16px; border-radius: 30px; }
	.app-balance strong { font-size: 1.8rem; }

	/* Steps: compact list */
	.steps { gap: 14px; }
	.steps li { display: grid; grid-template-columns: 52px 1fr; column-gap: 16px; text-align: left; padding: 18px; background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); }
	.step-n { grid-row: span 2; width: 52px; height: 52px; margin: 0; font-size: 1.3rem; }
	.steps h3 { margin: 4px 0; font-size: 1.15rem; }
	.steps p { margin: 0; max-width: none; font-size: .95rem; }

	/* Bigger tap targets */
	.link-arrow { min-height: 44px; margin-top: 14px; }
	.cta-inner h2 { font-size: 1.7rem; }

	/* Footer: two columns, tappable links */
	.site-footer { padding: 52px 0 24px; }
	.footer-grid { grid-template-columns: 1fr 1fr; gap: 26px 20px; padding-bottom: 30px; }
	.footer-brand, .footer-grid > div:last-child { grid-column: 1 / -1; }
	.site-footer ul { gap: 0; }
	.site-footer ul a { display: inline-flex; align-items: center; min-height: 40px; }
	.contact-list li { min-height: 44px; }
	.footer-base a { display: inline-flex; align-items: center; min-height: 40px; }

	/* Register form */
	.choice-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
	.choice { min-width: 0; }
	.choice span { width: 100%; justify-content: center; min-height: 48px; padding: 10px 12px; text-align: center; }
	.form-foot .btn { width: 100%; }
}
@media (max-width: 380px) {
	.header-inner { gap: 8px; }
	.header-cta .btn { padding: .6em .8em; font-size: .84rem; }
	.brand img { height: 30px; }
	h1 { font-size: 2.3rem; }
}
