/**
 * Globotix — supplemental styles.
 * Only what theme.json can't express. Kept small for Core Web Vitals.
 */

/* ---- Brand lockup (header + footer) ---- */
.gt-logo { display: inline-flex; align-items: center; gap: .55rem; text-decoration: none; }
.gt-logo .gt-mark { display: block; flex: none; }
.gt-brand .wp-block-site-title a { text-decoration: none; color: var(--wp--preset--color--contrast); }
.gt-wordmark--footer {
	font-family: var(--wp--preset--font-family--display);
	font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
	font-size: 1.15rem; color: var(--wp--preset--color--base);
}
.gt-logo--footer { color: var(--wp--preset--color--base); }

/* ---- Header layout (two rows: utilities + menu bar) ---- */
.gt-brand, .gt-header-utils { flex-shrink: 0; }
.gt-header-cta .wp-block-button__link { white-space: nowrap; }
.gt-header-nav .wp-block-navigation { width: 100%; }
.gt-search .wp-block-search__button {
	background: transparent; border: 0; color: var(--wp--preset--color--contrast);
	padding: .4rem; min-width: 0; transition: color .15s ease;
}
.gt-search .wp-block-search__button:hover,
.gt-search .wp-block-search__button:focus { color: var(--wp--preset--color--accent-2); background: transparent; }
.gt-search .wp-block-search__button svg { width: 22px; height: 22px; fill: currentColor; }
@media (max-width: 600px) { .gt-search { display: none; } }

/* ---- Navigation ---- */
.gt-nav a, .gt-foot-nav a, .gt-foot-list a { text-decoration: none; }
.gt-nav a { color: var(--wp--preset--color--contrast); transition: color .15s ease; }
.gt-nav a:hover { color: var(--wp--preset--color--accent-2); }

/* Dropdown submenus (mega-menu style) */
.gt-nav .wp-block-navigation__submenu-container {
	background: var(--wp--preset--color--base);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 10px;
	box-shadow: 0 2px 6px rgba(23,22,20,.06), 0 18px 40px rgba(23,22,20,.10);
	padding: .4rem;
	min-width: 234px;
}
.gt-nav .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
	text-transform: none;
	letter-spacing: 0;
	font-size: .92rem;
	font-weight: 500;
	padding: .55rem .8rem;
	border-radius: 6px;
}
.gt-nav .wp-block-navigation__submenu-container .wp-block-navigation-item__content:hover {
	background: var(--wp--preset--color--base-2);
	color: var(--wp--preset--color--accent-2);
}
.gt-foot-nav a, .gt-foot-list a { color: var(--wp--preset--color--base); opacity: .85; transition: opacity .15s ease; }
.gt-foot-nav a:hover, .gt-foot-list a:hover { opacity: 1; color: var(--wp--preset--color--accent-3); }

/* ---- Eyebrow label ---- */
.gt-eyebrow { font-family: var(--wp--preset--font-family--display); margin-bottom: .35rem; }

/* ---- Full-bleed section stacking: no gaps between coloured sections ---- */
/* Remove the block-gap WordPress inserts between header / main / footer,
   which otherwise shows the white body background as a strip. */
.wp-site-blocks > * { margin-block-start: 0 !important; margin-block-end: 0 !important; }
.gt-flush { margin-top: 0 !important; margin-bottom: 0 !important; }
.gt-flush > * { margin-block-start: 0 !important; margin-block-end: 0 !important; }

/* ---- Stats band: force 4 across (2 on mobile) ---- */
.gt-stats > .wp-block-group { grid-template-columns: repeat(4, 1fr) !important; gap: 1.5rem; }
@media (max-width: 640px) { .gt-stats > .wp-block-group { grid-template-columns: repeat(2, 1fr) !important; } }

/* ---- Stats band ---- */
.gt-stat-num { font-size: clamp(2.4rem, 5vw, 3.4rem); line-height: 1; margin: 0; letter-spacing: -0.01em; }
.gt-stat-label { font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--wp--preset--color--contrast-2); margin: 0.35rem 0 0; }
.gt-stats .gt-stat { padding-block: 0.5rem; }

/* ---- Cards (post grids) ---- */
.gt-card { height: 100%; }
.gt-card a { text-decoration: none; color: inherit; }
.gt-card .wp-block-post-title a { transition: color .15s ease; }
.gt-card:hover .wp-block-post-title a { color: var(--wp--preset--color--accent-2); }
.gt-card .wp-block-post-featured-image { overflow: hidden; }
.gt-card .wp-block-post-featured-image img { transition: transform .4s ease; width: 100%; }
.gt-card:hover .wp-block-post-featured-image img { transform: scale(1.04); }

/* ---- Pillar cards ---- */
.gt-pillar { height: 100%; background: var(--wp--preset--color--base); transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease; }
.gt-pillar:hover { border-color: var(--wp--preset--color--accent) !important; box-shadow: var(--wp--preset--shadow--soft); transform: translateY(-2px); }
.gt-pillar h3 a { text-decoration: none; color: var(--wp--preset--color--contrast); }
.gt-pillar a { text-decoration: none; }
.gt-pillar h3 a:hover { color: var(--wp--preset--color--accent-2); }

/* ---- Hero ---- */
.gt-hero-img img { display: block; box-shadow: var(--wp--preset--shadow--lift); }

/* ---- Article byline ---- */
.gt-byline .wp-block-post-author-name a { text-decoration: none; color: var(--wp--preset--color--contrast); }
.gt-reading-time p { margin: 0; }

/* ---- Author box ---- */
.gt-authorbox .wp-block-post-author { align-items: center; }
.gt-authorbox .wp-block-post-author__avatar img { border-radius: 50%; }
.gt-authorbox .wp-block-post-author__name { font-weight: 600; }

/* ---- Breadcrumbs (Rank Math) ---- */
.gt-breadcrumbs, .gt-breadcrumbs .rank-math-breadcrumb p { font-size: .85rem; color: var(--wp--preset--color--contrast-2); }
.gt-breadcrumbs a { color: var(--wp--preset--color--contrast-2); text-decoration: none; }
.gt-breadcrumbs a:hover { color: var(--wp--preset--color--accent-2); }

/* ---- FAQ ---- */
.gt-faq details summary { cursor: pointer; font-weight: 600; font-family: var(--wp--preset--font-family--display); list-style: none; position: relative; padding-right: 1.6rem; }
.gt-faq details summary::-webkit-details-marker { display: none; }
.gt-faq details summary::after { content: "+"; position: absolute; right: .2rem; top: -.1rem; font-size: 1.4rem; line-height: 1; color: var(--wp--preset--color--accent); }
.gt-faq details[open] summary::after { content: "\2013"; }
.gt-faq details > *:not(summary) { margin-top: .6rem; color: var(--wp--preset--color--contrast-2); }

/* ---- Review card fallback image ---- */
.gt-review .wp-block-image img { background: var(--wp--preset--color--base-2); width: 100%; display: block; }

/* ---- Enquiry / lead-gen form ---- */
.gt-form .gt-field { display: flex; flex-direction: column; gap: .35rem; margin: 0 0 1rem; }
.gt-form label { font-size: .82rem; font-weight: 600; letter-spacing: .01em; }
.gt-form input, .gt-form select, .gt-form textarea {
	width: 100%; padding: .7rem .85rem; font: inherit; color: inherit;
	background: var(--wp--preset--color--base);
	border: 1px solid var(--wp--preset--color--border); border-radius: 8px;
}
.gt-form input:focus, .gt-form select:focus, .gt-form textarea:focus {
	outline: none; border-color: var(--wp--preset--color--accent);
	box-shadow: 0 0 0 3px rgba(168,125,64,.15);
}
.gt-form .gt-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.gt-submit {
	font-family: var(--wp--preset--font-family--display); font-weight: 600; letter-spacing: .02em;
	background: var(--wp--preset--color--contrast); color: var(--wp--preset--color--base);
	border: 0; border-radius: 6px; padding: .9em 1.7em; cursor: pointer; transition: background .15s ease;
}
.gt-submit:hover { background: var(--wp--preset--color--accent-2); }
.gt-form-notice { padding: .8rem 1rem; border-radius: 8px; margin-bottom: 1.2rem; font-size: .95rem; }
.gt-form-notice--ok { background: #e8f3e9; color: #1f5723; }
.gt-form-notice--err { background: #fbeae8; color: #8f231b; }

/* ---- Comparison table ---- */
.gt-compare table { width: 100%; }
.gt-compare th { font-family: var(--wp--preset--font-family--display); text-align: left; }

/* ---- Mobile ---- */
@media (max-width: 781px) {
	.gt-header .alignwide { gap: .5rem; }
	.gt-wordmark { font-size: 1.15rem !important; }
	.gt-hero h1 { font-size: clamp(2.2rem, 9vw, 2.8rem) !important; }
}
