/*
Theme Name: GlobalFormations
Theme URI: https://globalformations.co.uk
Author: Medianest Ltd
Author URI: https://medianestltd.com
Description: Lightweight block theme for GlobalFormations — USA & UK company formation for non-residents. No page builder; every section is a core block pattern you can edit in the Site Editor.
Version: 1.0.2
Requires at least: 6.6
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: globalformations
*/

/* ---------- Base ---------- */
body { -webkit-font-smoothing: antialiased; }
img { height: auto; }
:where(.wp-site-blocks) > * { margin-block-start: 0; }
main > .alignfull, main > section.alignfull { margin-block-start: 0 !important; }
/* Narrow text blocks stay aligned to the left edge of the 1200px content area */
.is-layout-constrained > .gf-lead,
.is-layout-constrained > .gf-note-box,
.gf-hero.is-layout-constrained > h1 { margin-left: max(0px, calc((100% - 1200px) / 2)) !important; margin-right: auto !important; }
.gf-hero.is-layout-constrained > h1 { max-width: 760px; }
.gf-section { padding-top: var(--wp--preset--spacing--60) !important; padding-bottom: 1.5rem !important; }
.gf-section--tight { padding-top: 3rem !important; }
.gf-eyebrow {
	font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase;
	color: var(--wp--preset--color--gold-text); margin-bottom: 0.25rem !important;
}
.gf-lead { font-size: var(--wp--preset--font-size--medium); color: var(--wp--preset--color--muted); max-width: 640px; }
.gf-note { font-size: 0.9rem; color: var(--wp--preset--color--muted); }
.gf-note-box {
	background: #fff; border: 1px solid var(--wp--preset--color--line); border-radius: 12px;
	padding: 1rem 1.25rem; font-size: 0.92rem; color: var(--wp--preset--color--muted); max-width: 900px;
}

/* ---------- Header ---------- */
header.wp-block-template-part { position: sticky; top: 0; z-index: 50; }
.admin-bar header.wp-block-template-part { top: 32px; }
@media (max-width: 782px) { .admin-bar header.wp-block-template-part { top: 46px; } }
.gf-header { background: #fff; border-bottom: 1px solid var(--wp--preset--color--line); }
.gf-header-inner { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.gf-logo img { height: 54px; width: auto; display: block; }
.gf-header .wp-block-navigation a { color: #2C3D36; text-decoration: none; }
.gf-header .wp-block-navigation a:hover { color: var(--wp--preset--color--forest); }
.gf-header .wp-block-button__link { padding: 0.65rem 1.1rem; font-size: 0.9375rem; }
.gf-login a { font-weight: 600; text-decoration: none; }
.gf-logo { flex-shrink: 0; }
.gf-header .wp-block-button__link { white-space: nowrap; }
@media (max-width: 600px) { .gf-login { display: none; } .gf-logo img { height: 36px; } }

/* ---------- Buttons ---------- */
.wp-block-button__link { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; }
.gf-btn-gold .wp-block-button__link { background: var(--wp--preset--color--gold); color: var(--wp--preset--color--deep); }
.gf-btn-gold .wp-block-button__link:hover { background: var(--wp--preset--color--gold-light); color: var(--wp--preset--color--deep); }
.gf-btn-ghost .wp-block-button__link { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,.4); }
.gf-btn-ghost .wp-block-button__link:hover { background: rgba(255,255,255,.08); color: #fff; }
.is-style-outline .wp-block-button__link { border: 1.5px solid var(--wp--preset--color--forest); color: var(--wp--preset--color--forest); background: transparent; }
.is-style-outline .wp-block-button__link:hover { background: var(--wp--preset--color--mint); color: var(--wp--preset--color--forest); }
.gf-btn-dark .wp-block-button__link { background: var(--wp--preset--color--deep); color: #fff; }
.gf-btn-dark-outline .wp-block-button__link { background: transparent; color: var(--wp--preset--color--deep); border: 2px solid var(--wp--preset--color--deep); }
.gf-stack.wp-block-buttons { flex-direction: column; align-items: stretch; gap: 0.6rem; }
.gf-stack .wp-block-button, .gf-stack .wp-block-button__link { width: 100%; }

/* ---------- Dark sections ---------- */
.gf-dark { background: var(--wp--preset--color--forest); color: #fff; }
.gf-dark h1, .gf-dark h2, .gf-dark h3, .gf-dark h4 { color: #fff; }
.gf-dark a:not(.wp-block-button__link) { color: var(--wp--preset--color--gold-light); }
.gf-dark .gf-eyebrow { color: var(--wp--preset--color--gold-light); }
.gf-dark .gf-lead, .gf-dark .gf-muted { color: rgba(255,255,255,.82); }

/* ---------- Hero ---------- */
.gf-hero { padding-top: clamp(3.5rem, 8vw, 5.5rem) !important; padding-bottom: clamp(3rem, 6vw, 5rem) !important; }
.gf-hero h1 { color: #fff; max-width: 680px; }
.gf-hero-stat { display: flex; align-items: baseline; gap: 0.75rem; flex-wrap: wrap; margin-top: 1.75rem !important; color: rgba(255,255,255,.82); }
.gf-hero-stat strong { font-family: var(--wp--preset--font-family--heading); font-size: 2.5rem; line-height: 1; color: var(--wp--preset--color--gold-light); letter-spacing: -0.02em; }
.gf-timeline {
	background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); border-radius: 20px; padding: 1.75rem !important;
}
.gf-timeline-list { list-style: none; padding: 0; margin: 1.25rem 0 0; counter-reset: gfstep; display: grid; gap: 1.1rem; }
.gf-timeline-list li { counter-increment: gfstep; position: relative; padding-left: 3rem; color: rgba(255,255,255,.72); font-size: 0.92rem; }
.gf-timeline-list li strong { display: block; color: #fff; font-size: 1rem; font-weight: 600; }
.gf-timeline-list li::before {
	content: counter(gfstep); position: absolute; left: 0; top: 0; width: 2rem; height: 2rem; border-radius: 50%;
	background: var(--wp--preset--color--gold); color: var(--wp--preset--color--deep); font-weight: 700; font-size: 0.875rem;
	display: flex; align-items: center; justify-content: center;
}
.gf-timeline-list li:last-child::before { background: transparent; border: 1.5px dashed var(--wp--preset--color--gold); color: var(--wp--preset--color--gold-light); }

/* ---------- Trust strip & icons ---------- */
.gf-trust { border-top: 1px solid rgba(255,255,255,.1); padding-top: 1.25rem !important; padding-bottom: 1.25rem !important; }
.gf-trust p { margin: 0; display: flex; align-items: center; gap: 0.6rem; font-size: 0.9rem; color: rgba(255,255,255,.88); }
.gf-ico::before {
	content: ""; flex-shrink: 0; width: 1.25rem; height: 1.25rem; background: var(--gf-ico-color, var(--wp--preset--color--gold-light));
	-webkit-mask: var(--gf-ico) center / contain no-repeat; mask: var(--gf-ico) center / contain no-repeat;
}
.gf-ico-home { --gf-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 21V9l8-6 8 6v12'/%3E%3Cpath d='M9 21v-6h6v6'/%3E%3C/svg%3E"); }
.gf-ico-shield { --gf-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3l7 3v5c0 4.5-3 8.3-7 10-4-1.7-7-5.5-7-10V6z'/%3E%3Cpath d='M9 12l2 2 4-4'/%3E%3C/svg%3E"); }
.gf-ico-half { --gf-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 3v18'/%3E%3C/svg%3E"); }
.gf-ico-refund { --gf-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 12a9 9 0 1 0 3-6.7'/%3E%3Cpath d='M3 4v5h5'/%3E%3C/svg%3E"); }
.gf-ico-chat { --gf-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 11.5a8.4 8.4 0 0 1-12.4 7.4L3 20.5l1.6-5.4A8.4 8.4 0 1 1 21 11.5z'/%3E%3C/svg%3E"); }
.gf-ico-card { --gf-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Cpath d='M3 10h18M7 15h3'/%3E%3C/svg%3E"); }
.gf-ico-bag { --gf-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 7h16l-1.5 9.5a2 2 0 0 1-2 1.5h-9a2 2 0 0 1-2-1.5z'/%3E%3Cpath d='M9 7a3 3 0 0 1 6 0'/%3E%3C/svg%3E"); }
.gf-ico-person { --gf-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4 21c1.5-4 4.5-6 8-6s6.5 2 8 6'/%3E%3C/svg%3E"); }
.gf-feature.gf-ico::before {
	display: flex; width: 48px; height: 48px; border-radius: 12px; margin-bottom: 0.25rem;
	background: var(--wp--preset--color--forest); -webkit-mask-size: 24px; mask-size: 24px;
}

/* ---------- Cards ---------- */
.gf-card {
	background: #fff; border: 1px solid var(--wp--preset--color--line); border-radius: 18px;
	padding: 1.75rem !important; position: relative; height: 100%; box-sizing: border-box;
}
.gf-card > * { margin-block-start: 0 !important; }
.gf-card > * + * { margin-block-start: 0.75rem !important; }
.gf-card h3 { font-size: 1.25rem; }
.gf-card p { color: var(--wp--preset--color--muted); }
.gf-card--featured { border: 2px solid var(--wp--preset--color--forest); box-shadow: 0 18px 48px rgba(7,60,42,.12); }
.gf-card--dark { background: var(--wp--preset--color--deep); border-color: var(--wp--preset--color--deep); color: #fff; }
.gf-card--dark p, .gf-card--dark h3 { color: #fff; }
.gf-card--dark .gf-fee, .gf-card--dark .gf-strike { color: rgba(255,255,255,.7) !important; }
.gf-card--dark .gf-price { color: var(--wp--preset--color--gold-light) !important; }
.gf-card--dark .gf-checks { color: rgba(255,255,255,.88); border-top-color: rgba(255,255,255,.14); }
.gf-card--dark .gf-checks li::before { background: var(--wp--preset--color--gold-light); }
.gf-card--green { background: var(--wp--preset--color--forest); border-color: var(--wp--preset--color--forest); color: #fff; }
.gf-card--green h3, .gf-card--green p { color: #fff; }
.gf-card--green .gf-eyebrow { color: var(--wp--preset--color--gold-light); }
.gf-badge {
	position: absolute; top: -14px; left: 1.5rem; margin: 0 !important;
	background: var(--wp--preset--color--gold); color: var(--wp--preset--color--deep) !important;
	font-size: 0.75rem; font-weight: 700; letter-spacing: 0.05em; padding: 0.3rem 0.75rem; border-radius: 20px;
}
.gf-tier { font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #5C6B64 !important; }
.gf-tier-sub { font-size: 0.95rem; margin-top: 0.15rem !important; }
.gf-price {
	font-family: var(--wp--preset--font-family--heading); font-weight: 800; font-size: 2.875rem; line-height: 1;
	letter-spacing: -0.03em; color: var(--wp--preset--color--forest) !important; margin-top: 1rem !important;
}
.gf-price s { font-family: var(--wp--preset--font-family--body); font-size: 1.1rem; font-weight: 500; letter-spacing: 0; color: #56635D; margin-left: 0.5rem; }
.gf-card--dark .gf-price s { color: rgba(255,255,255,.6); }
.gf-fee { font-size: 0.875rem; margin-top: 0.4rem !important; }

/* Check lists */
.gf-checks { list-style: none; padding: 1.1rem 0 0 !important; margin: 0; border-top: 1px solid #ECE8DD; display: grid; gap: 0.6rem; color: #2C3D36; font-size: 0.95rem; }
.gf-checks li { position: relative; padding-left: 1.75rem; }
.gf-checks li::before {
	content: ""; position: absolute; left: 0; top: 0.2rem; width: 1.1rem; height: 1.1rem; background: #2E7D5B;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / contain no-repeat;
}
.gf-checks li strong { font-weight: 600; color: var(--wp--preset--color--ink); }

/* Chips & rows */
.gf-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.gf-chips p, .gf-chip { margin: 0 !important; background: var(--wp--preset--color--mint); color: var(--wp--preset--color--forest) !important; border-radius: 8px; padding: 0.35rem 0.75rem; font-size: 0.875rem; font-weight: 600; }
.gf-chips--paper p { background: var(--wp--preset--color--paper); border: 1px solid var(--wp--preset--color--line); color: var(--wp--preset--color--ink) !important; }
.gf-row { display: flex; justify-content: space-between; gap: 1rem; padding: 0.85rem 0 !important; border-top: 1px solid #ECE8DD; margin: 0 !important; color: var(--wp--preset--color--ink) !important; }
.gf-row strong { white-space: nowrap; color: var(--wp--preset--color--forest); }

/* Steps */
.gf-steps .gf-card p.gf-step-num { font-family: var(--wp--preset--font-family--heading); font-size: 2.1rem; font-weight: 800; color: var(--wp--preset--color--gold-text); line-height: 1; }

/* Reviews */
.gf-review blockquote, .gf-review .gf-quote { font-size: 1rem; line-height: 1.7; color: #2C3D36 !important; }
.gf-review-meta { display: flex; align-items: center; gap: 0.75rem; margin-top: auto !important; }
.gf-avatar {
	width: 44px; height: 44px; flex-shrink: 0; border-radius: 50%; margin: 0 !important;
	background: var(--wp--preset--color--forest); color: var(--wp--preset--color--gold-light) !important;
	font-weight: 700; display: flex; align-items: center; justify-content: center; font-size: 0.95rem;
}
.gf-review-meta p:last-child { margin: 0 !important; font-size: 0.85rem; line-height: 1.45; }
.gf-review-meta p:last-child strong { color: var(--wp--preset--color--ink); font-size: 0.95rem; }
.gf-review.gf-card { display: flex; flex-direction: column; }

/* FAQ */
.gf-faq { background: #fff; border: 1px solid var(--wp--preset--color--line); border-radius: 18px; padding: 0.25rem 1.5rem !important; }
.gf-faq .wp-block-details { border-bottom: 1px solid #ECE8DD; padding: 0.25rem 0; margin: 0 !important; }
.gf-faq .wp-block-details:last-child { border-bottom: 0; }
.gf-faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.05rem 0; font-weight: 600; font-size: 1.0625rem; min-height: 44px; }
.gf-faq summary::-webkit-details-marker { display: none; }
.gf-faq summary::after { content: "+"; font-size: 1.5rem; font-weight: 400; color: #2E7D5B; transition: transform .2s; }
.gf-faq details[open] summary::after { transform: rotate(45deg); }
.gf-faq details p { color: var(--wp--preset--color--muted); margin-top: 0 !important; padding-bottom: 1rem; }

/* CTA band */
.gf-cta-band { background: var(--wp--preset--color--gold); padding-top: 4.5rem !important; padding-bottom: 4.5rem !important; }
.gf-cta-band h2 { color: var(--wp--preset--color--deep); }
.gf-cta-band p { color: #2A2410; }

/* Footer */
.gf-footer { background: var(--wp--preset--color--deep); color: rgba(255,255,255,.75); font-size: 0.92rem; padding-top: 3.75rem !important; }
.gf-footer a { color: rgba(255,255,255,.82); text-decoration: none; }
.gf-footer a:hover { color: #fff; text-decoration: underline; }
.gf-footer a { overflow-wrap: anywhere; }
.gf-footer .gf-footer-logo img { height: 64px; width: auto; }
.gf-footer h4, .gf-footer .gf-footer-title { color: rgba(255,255,255,.72); font-family: var(--wp--preset--font-family--body); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.gf-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.5rem; }
.gf-footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-top: 1.25rem !important; padding-bottom: 1.25rem !important; font-size: 0.82rem; color: rgba(255,255,255,.6); margin-top: 2.5rem !important; }
.gf-footer .gf-gold-link a { color: var(--wp--preset--color--gold-light); text-decoration: underline; text-underline-offset: 3px; }

/* Guides (query loop) */
.gf-guides .wp-block-post { background: #fff; border: 1px solid var(--wp--preset--color--line); border-radius: 18px; overflow: hidden; }
.gf-guides .wp-block-post > *:not(.wp-block-post-featured-image) { padding-left: 1.4rem; padding-right: 1.4rem; }
.gf-guides .wp-block-post-featured-image { margin: 0; aspect-ratio: 16 / 9; background: var(--wp--preset--color--forest); }
.gf-guides .wp-block-post-featured-image img { width: 100%; height: 100%; object-fit: cover; }
.gf-guides .wp-block-post-title { font-size: 1.15rem; line-height: 1.35; margin-top: 1.1rem; }
.gf-guides .wp-block-post-title a { color: var(--wp--preset--color--ink); text-decoration: none; }
.gf-guides .wp-block-post-date { font-size: 0.82rem; color: var(--wp--preset--color--gold-text); padding-bottom: 1.4rem; }

/* About */
.gf-founder-photo img { border-radius: 18px; width: 100%; height: auto; }
.gf-signature { font-family: var(--wp--preset--font-family--heading); font-weight: 700; font-size: 1.15rem; color: var(--wp--preset--color--forest); }

/* Plain pages (privacy, refund …) */
.wp-block-post-content > h2 { font-size: 1.6rem; margin-top: 2.25rem; }
.wp-block-post-content > .wp-block-table table { border-collapse: collapse; width: 100%; background: #fff; }
.wp-block-post-content > .wp-block-table td, .wp-block-post-content > .wp-block-table th { border: 1px solid var(--wp--preset--color--line); padding: .6rem .75rem; text-align: left; vertical-align: top; }
.wp-block-post-content > .wp-block-table th { background: var(--wp--preset--color--mint); }

/* Articles */
.gf-article .wp-block-post-content { font-size: 1.0625rem; }
.gf-article .wp-block-post-content h2 { font-size: 1.75rem; margin-top: 2.5rem; }
.gf-article .wp-block-post-content h3 { font-size: 1.3rem; margin-top: 1.75rem; }
.gf-article .wp-block-post-content table { border-collapse: collapse; width: 100%; font-size: 0.95rem; }
.gf-article .wp-block-post-content th, .gf-article .wp-block-post-content td { border: 1px solid var(--wp--preset--color--line); padding: 0.6rem 0.75rem; text-align: left; }
.gf-article .wp-block-post-content th { background: var(--wp--preset--color--mint); }
.gf-meta { font-size: 0.9rem; color: var(--wp--preset--color--muted); }
.gf-author-box { background: #fff; border: 1px solid var(--wp--preset--color--line); border-radius: 18px; padding: 1.5rem !important; }
.gf-article-cta { background: var(--wp--preset--color--forest); color: #fff; border-radius: 18px; padding: 1.75rem !important; }
.gf-article-cta h3, .gf-article-cta p { color: #fff; }
:lang(bn) body, body:lang(bn) { font-family: 'Hind Siliguri', Inter, system-ui, sans-serif; }

/* WhatsApp float */
.gf-wa-float {
	position: fixed; right: 18px; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); z-index: 999;
	width: 58px; height: 58px; border-radius: 50%; background: #25D366; color: #fff;
	display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 22px rgba(37,211,102,.45);
}
.gf-wa-float:hover { transform: translateY(-2px); }
.gf-wa-float svg { width: 30px; height: 30px; }

/* Small screens */
@media (max-width: 600px) {
	.gf-price { font-size: 2.4rem; }
	.gf-hero-stat strong { font-size: 2rem; }
}
