/*
Theme Name: GlobeLB
Template: twentytwentyfive
Description: Profile theme for globelb.com – mobile packet-core engineering. Child of Twenty Twenty-Five.
Version: 1.0.2
Requires at least: 6.7
Text Domain: globelb
*/

/* ---------- layout helpers ---------- */
html { scroll-behavior: smooth; }
:where(section[id], .glb-anchor) { scroll-margin-top: 5rem; }

.glb-header {
	position: sticky; top: 0; z-index: 50;
	background: color-mix(in srgb, var(--wp--preset--color--glb-ink) 92%, transparent);
	backdrop-filter: saturate(140%) blur(10px);
	border-bottom: 1px solid rgb(255 255 255 / .08);
}
.glb-header a { color: #fff; text-decoration: none; }
.glb-header .wp-block-site-title a { font-weight: 800; letter-spacing: -.01em; }
.glb-header .wp-block-site-title a::before {
	content: ""; display: inline-block; width: .7em; height: .7em; margin-right: .45em;
	border-radius: 50%; background: var(--wp--preset--color--glb-teal);
	box-shadow: 0 0 0 4px rgb(20 184 166 / .25);
	vertical-align: .05em;
}
.glb-nav a { opacity: .85; font-weight: 600; font-size: .95rem; }
.glb-nav a:hover, .glb-nav a:focus-visible { opacity: 1; color: var(--wp--preset--color--glb-teal); }
.glb-nav .glb-nav__cta a {
	opacity: 1; padding: .45rem 1rem; border-radius: 999px;
	background: var(--wp--preset--color--glb-teal); color: var(--wp--preset--color--glb-ink);
}
.glb-nav .glb-nav__cta a:hover { color: var(--wp--preset--color--glb-ink); filter: brightness(1.08); }

/* ---------- hero ---------- */
.glb-hero {
	position: relative; overflow: hidden;
	background:
		radial-gradient(60rem 30rem at 85% -10%, rgb(20 184 166 / .28), transparent 60%),
		radial-gradient(40rem 25rem at -10% 110%, rgb(56 189 248 / .18), transparent 60%),
		var(--wp--preset--color--glb-ink);
	color: #E6EEF5;
}
.glb-hero::after { /* subtle network grid */
	content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .18;
	background-image:
		radial-gradient(circle at 1px 1px, rgb(255 255 255 / .55) 1px, transparent 0);
	background-size: 28px 28px;
	mask-image: linear-gradient(to bottom, #000 30%, transparent 95%);
}
.glb-hero > * { position: relative; z-index: 1; }
.glb-hero h1 { color: #fff; letter-spacing: -.025em; line-height: 1.05; }
.glb-hero .glb-accent { color: var(--wp--preset--color--glb-teal); }
.glb-kicker {
	text-transform: uppercase; letter-spacing: .14em; font-size: .8rem !important; font-weight: 700;
	color: var(--wp--preset--color--glb-teal);
}
.glb-lede { font-size: clamp(1.05rem, 1.6vw, 1.25rem) !important; opacity: .85; max-width: 40rem; margin-left: 0 !important; }
.glb-chips { display: flex; flex-wrap: wrap; gap: .5rem; padding: 0; margin: 0; list-style: none; }
.glb-chips li {
	padding: .35rem .8rem; border-radius: 999px; font-size: .85rem; font-weight: 600;
	border: 1px solid rgb(255 255 255 / .18); background: rgb(255 255 255 / .05);
}

/* ---------- buttons ---------- */
.glb-btn .wp-block-button__link { border-radius: 999px; font-weight: 700; padding: .8rem 1.5rem; }
.glb-btn--ghost .wp-block-button__link {
	background: transparent; color: #fff; border: 1px solid rgb(255 255 255 / .35);
}
.glb-btn--ghost .wp-block-button__link:hover { border-color: var(--wp--preset--color--glb-teal); }

/* ---------- cards ---------- */
.glb-cards { gap: 1.25rem !important; }
.glb-card {
	height: 100%; padding: 1.75rem !important; border-radius: 1rem;
	background: #fff; border: 1px solid var(--wp--preset--color--glb-line);
	box-shadow: 0 1px 2px rgb(15 23 42 / .04);
	transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.glb-card:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgb(15 23 42 / .08); border-color: rgb(20 184 166 / .45); }
.glb-card h3 { margin-top: .6rem; }
.glb-card p { color: var(--wp--preset--color--glb-muted); }
.glb-icon {
	display: inline-grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: .75rem;
	background: rgb(20 184 166 / .12); color: var(--wp--preset--color--glb-teal-dark);
	font-weight: 800; font-size: .95rem !important; margin: 0 !important;
}

/* ---------- approach steps ---------- */
.glb-steps { counter-reset: glb-step; }
.glb-step { position: relative; padding-left: 3.5rem !important; }
.glb-step::before {
	counter-increment: glb-step; content: counter(glb-step, decimal-leading-zero);
	position: absolute; left: 0; top: .1rem; font-weight: 800; font-size: 1.4rem;
	color: var(--wp--preset--color--glb-teal);
}
.glb-step p { color: var(--wp--preset--color--glb-muted); }

/* ---------- contact ---------- */
.glb-contact { background: var(--wp--preset--color--glb-ink); color: #E6EEF5; }
.glb-contact h2 { color: #fff; }
.glb-contact .glb-lede { opacity: .8; }
.glb-points { list-style: none; padding: 0; }
.glb-points li { padding-left: 1.6rem; position: relative; margin: .5rem 0; opacity: .9; }
.glb-points li::before { content: "✓"; position: absolute; left: 0; color: var(--wp--preset--color--glb-teal); font-weight: 800; }

.glb-form {
	display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1rem;
	padding: clamp(1.25rem, 3vw, 2rem); border-radius: 1rem;
	background: #fff; color: var(--wp--preset--color--glb-text);
	box-shadow: 0 20px 50px rgb(0 0 0 / .25);
}
.glb-field { display: flex; flex-direction: column; gap: .35rem; min-width: 0; }
.glb-field input, .glb-field textarea { width: 100%; box-sizing: border-box; min-width: 0; }
.glb-field--full { grid-column: 1 / -1; }
.glb-field label { font-weight: 700; font-size: .9rem; }
.glb-field input, .glb-field textarea {
	font: inherit; padding: .75rem .9rem; border-radius: .6rem;
	border: 1px solid var(--wp--preset--color--glb-line); background: #F8FAFC; color: inherit;
}
.glb-field textarea { min-height: 9rem; resize: vertical; }
.glb-field input:focus, .glb-field textarea:focus {
	outline: none; border-color: var(--wp--preset--color--glb-teal); background: #fff;
	box-shadow: 0 0 0 4px rgb(20 184 166 / .18);
}
.glb-consent { grid-column: 1 / -1; font-size: .82rem; color: var(--wp--preset--color--glb-muted); margin: 0; }
.glb-consent a { color: var(--wp--preset--color--glb-teal-dark); }
.glb-submit {
	grid-column: 1 / -1; justify-self: start; cursor: pointer; border: 0;
	padding: .85rem 1.75rem; border-radius: 999px; font: inherit; font-weight: 800;
	background: var(--wp--preset--color--glb-teal); color: var(--wp--preset--color--glb-ink);
	transition: filter .15s ease, transform .15s ease;
}
.glb-submit:hover { filter: brightness(1.07); transform: translateY(-1px); }
.glb-notice { grid-column: 1 / -1; margin: 0; padding: .8rem 1rem; border-radius: .6rem; font-weight: 600; }
.glb-notice--ok { background: #E7F8F4; color: #0F766E; }
.glb-notice--err { background: #FDECEC; color: #B42318; }
.glb-hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }

/* ---------- footer ---------- */
.glb-footer { background: var(--wp--preset--color--glb-deep); color: #94A3B8; font-size: .9rem; }
.glb-footer a { color: #CBD5E1; }

@media (max-width: 1100px) and (min-width: 782px) {
	/* 4 cards → 2 × 2 on tablets / small laptops */
	.glb-cards { flex-wrap: wrap !important; }
	.glb-cards > .wp-block-column { flex: 0 0 calc(50% - .65rem) !important; }
}
@media (max-width: 1000px) {
	.glb-form { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 700px) {
	.glb-nav .glb-hide-sm { display: none; }
}
