/*
Theme Name: Frontera Serve
Theme URI: https://example.com/
Author: Frontera Serve
Description: Frontera Serve theme (v1.0.9). Process serving across Mexico. Mexican-flag design with a red top bar, green sticky header and full footer, plus a built-in generator (Appearance → Frontera Setup) that creates the home page, 32 state pages and 2,478 municipality pages as normal, editable WordPress pages.
Version: 1.0.9
Requires at least: 6.3
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: process-server-global
Tags: one-column, custom-menu, custom-logo, full-width-template, block-styles, wide-blocks
*/

/* ---------- Base ---------- */
html { scroll-behavior: smooth; }
body {
	margin: 0;
	background: #FFFFFF;
	color: #14201B;
	font-family: 'IBM Plex Sans', 'Helvetica Neue', Arial, sans-serif;
	font-size: 17px;
	line-height: 1.6;
	overflow-x: clip;
}
*, *::before, *::after { box-sizing: border-box; }
img, video, iframe { max-width: 100%; height: auto; }
a { color: #006847; }
a:hover { color: #CE1126; }
:focus-visible { outline: 2px solid #CE1126; outline-offset: 2px; }
h1, h2, h3, h4, h5, h6 { font-family: 'Space Grotesk', 'Helvetica Neue', Arial, sans-serif; line-height: 1.15; letter-spacing: -0.015em; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.skip-link:focus { position: fixed; top: 8px; left: 8px; z-index: 100; width: auto; height: auto; clip: auto; background: #fff; color: #00563B; padding: 12px 16px; border-radius: 6px; font-weight: 600; }
.fst-wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ---------- Top bar ---------- */
.fst-topbar { background: #CE1126; color: #fff; font-size: 14px; }
.fst-topbar .fst-wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; padding-top: 8px; padding-bottom: 8px; }
.fst-topbar a { color: #fff; font-weight: 600; text-decoration: none; }
.fst-topbar a:hover { text-decoration: underline; color: #fff; }

/* ---------- Header ---------- */
.fst-header { position: sticky; top: 0; z-index: 50; background: #00563B; color: #fff; }
.admin-bar .fst-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .fst-header { top: 0; } }
.fst-header .fst-wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 68px; }
.fst-brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-family: 'Space Grotesk', Arial, sans-serif; font-weight: 700; font-size: 21px; }
.fst-brand:hover { color: #fff; }
.fst-brand img { max-height: 44px; width: auto; }
.fst-header .custom-logo-link { display: flex; align-items: center; flex: none; padding: 6px 0; }
.fst-header .custom-logo { display: block; max-height: 56px; max-width: 240px; width: auto; height: auto; }
@media (max-width: 600px) { .fst-header .custom-logo { max-height: 44px; max-width: 170px; } }

/* Light header (Appearance > Customize > Header style) for dark or colored logos */
.fst-header-light .fst-header { background: #FFFFFF; color: #14201B; box-shadow: 0 1px 0 #DCE6E0; }
.fst-header-light .fst-brand, .fst-header-light .fst-brand:hover { color: #00563B; }
.fst-header-light .fst-nav a { color: #00563B; }
.fst-header-light .fst-nav a:hover { color: #CE1126; }
.fst-header-light .fst-nav a.fst-cta { color: #fff; }
.fst-header-light .fst-toggle { color: #00563B; border-color: #C3D1CA; }
@media (max-width: 900px) { .fst-header-light .fst-nav { background: #FFFFFF; border-top-color: #DCE6E0; } }
.fst-flag { display: flex; width: 30px; height: 20px; border-radius: 3px; overflow: hidden; border: 1px solid #fff; flex: none; }
.fst-flag span { flex: 1; }
.fst-nav { display: flex; align-items: center; gap: 24px; }
.fst-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 24px; }
.fst-nav a { color: #E8F3ED; text-decoration: none; font-size: 15px; }
.fst-nav a:hover { color: #fff; text-decoration: underline; text-underline-offset: 6px; }
.fst-cta { background: #CE1126; color: #fff !important; font-weight: 600; padding: 11px 18px; border-radius: 6px; text-decoration: none !important; white-space: nowrap; }
.fst-cta:hover { background: #B00E20; }
.fst-toggle { display: none; align-items: center; gap: 8px; background: transparent; color: #fff; border: 1px solid #4C9474; border-radius: 6px; padding: 10px 14px; font: inherit; font-size: 15px; cursor: pointer; min-height: 44px; }
.fst-toggle svg { width: 18px; height: 18px; }
.fst-stripe { display: flex; height: 5px; }
.fst-stripe span { flex: 1; }
@media (max-width: 900px) {
	.fst-toggle { display: inline-flex; }
	.fst-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #00563B; flex-direction: column; align-items: stretch; gap: 0; padding: 8px 24px 20px; border-top: 1px solid #1E6B4E; box-shadow: 0 16px 24px rgba(0,30,20,0.25); }
	.fst-nav.is-open { display: flex; }
	.fst-nav ul { flex-direction: column; gap: 0; }
	.fst-nav a { display: block; padding: 13px 0; font-size: 16px; }
	.fst-cta { text-align: center; margin-top: 8px; }
	.fst-header { position: sticky; }
	.fst-header .fst-wrap { position: static; }
}

/* ---------- Main ---------- */
.fst-main { display: block; }
.fst-full .fs-section { width: auto; max-width: none; margin-left: 0; margin-right: 0; }
.fst-full > .fs-page { margin: 0; }
.fst-content { padding: 64px 0 80px; }
.fst-content .fst-wrap { max-width: 820px; }
.fst-page-title { font-size: clamp(2rem, 5vw, 3rem); margin: 0 0 24px; }
.fst-entry > * + * { margin-top: 1.1em; }
.fst-entry .alignwide { max-width: 1100px; margin-left: auto; margin-right: auto; }
.fst-entry .alignfull { width: 100vw; margin-left: calc(50% - 50vw); }
.fst-meta { color: #5C6B65; font-size: 14px; margin: 0 0 8px; }
.fst-list { display: flex; flex-direction: column; gap: 32px; }
.fst-list article { border-bottom: 1px solid #DCE6E0; padding-bottom: 28px; }
.fst-list h2 { font-size: 1.6rem; margin: 0 0 8px; }
.fst-list h2 a { color: #14201B; text-decoration: none; }
.fst-list h2 a:hover { color: #CE1126; }
.fst-pagination { margin-top: 32px; display: flex; gap: 8px; flex-wrap: wrap; }
.fst-pagination .page-numbers { padding: 8px 14px; border: 1px solid #C3D1CA; border-radius: 6px; text-decoration: none; }
.fst-pagination .current { background: #00563B; color: #fff; border-color: #00563B; }
.fst-404 { text-align: left; }
.search-form { display: flex; gap: 8px; max-width: 520px; margin-top: 20px; }
.search-form input[type="search"] { flex: 1; font: inherit; padding: 12px 14px; border: 2px solid #C3D1CA; border-radius: 8px; }
.search-form button, .search-form input[type="submit"] { background: #CE1126; color: #fff; border: 0; border-radius: 8px; padding: 12px 18px; font: inherit; font-weight: 600; cursor: pointer; }

/* ---------- Footer ---------- */
.fst-footer { background: #00563B; color: #D9EBE2; font-size: 15px; }
.fst-footer .fst-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 32px; padding-top: 56px; padding-bottom: 32px; }
.fst-footer h2 { color: #fff; font-size: 1.05rem; margin: 0 0 12px; letter-spacing: 0; }
.fst-footer .fst-footer-brand { font-size: 1.3rem; }
.fst-footer p { margin: 0 0 8px; }
.fst-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.fst-footer a { color: #D9EBE2; text-decoration: none; }
.fst-footer a:hover { color: #fff; text-decoration: underline; }
.fst-legal { border-top: 1px solid #1E6B4E; padding-top: 20px; padding-bottom: 28px; font-size: 13px; color: #BFDCCD; display: flex; flex-direction: column; gap: 8px; }
.fst-legal p { margin: 0; }

/* ---------- Services dropdown ---------- */
.fst-nav li { position: relative; }
.fst-nav .menu-item-has-children > a::after { content: ""; display: inline-block; width: 6px; height: 6px; margin-left: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-3px) rotate(45deg); }
.fst-nav .sub-menu { display: none; position: absolute; top: 100%; left: -14px; z-index: 60; min-width: 270px; padding: 14px 0 0; flex-direction: column; gap: 0; }
.fst-nav .sub-menu::before { content: ""; position: absolute; inset: 14px 0 0; background: #fff; border-radius: 10px; box-shadow: 0 14px 34px rgba(0, 30, 20, 0.22); border: 1px solid #DCE6E0; }
.fst-nav .sub-menu li { position: relative; padding: 0 8px; }
.fst-nav .sub-menu li:first-child { padding-top: 8px; }
.fst-nav .sub-menu li:last-child { padding-bottom: 8px; }
.fst-nav .sub-menu a { display: block; padding: 10px 12px; border-radius: 6px; color: #14201B !important; font-size: 15px; text-decoration: none !important; }
.fst-nav .sub-menu a:hover, .fst-nav .sub-menu a:focus-visible { background: #F1F6F3; color: #CE1126 !important; }
.fst-nav li:hover > .sub-menu, .fst-nav li:focus-within > .sub-menu { display: flex; }
@media (max-width: 900px) {
	.fst-nav .sub-menu, .fst-nav li:hover > .sub-menu { display: flex; position: static; min-width: 0; padding: 0 0 6px 16px; }
	.fst-nav .sub-menu::before { display: none; }
	.fst-nav .sub-menu li, .fst-nav .sub-menu li:first-child, .fst-nav .sub-menu li:last-child { padding: 0; }
	.fst-nav .sub-menu a { color: #D9EBE2 !important; padding: 9px 0; font-size: 15px; }
	.fst-header-light .fst-nav .sub-menu a { color: #33413B !important; }
	.fst-nav .sub-menu a:hover { background: transparent; }
	.fst-nav .menu-item-has-children > a::after { display: none; }
}

/* ---------- Footer legal row ---------- */
.fst-legal-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }
.fst-legal-links { display: flex; flex-wrap: wrap; gap: 18px; }
.fst-legal-links a { color: #D9EBE2; text-decoration: none; }
.fst-legal-links a:hover { color: #fff; text-decoration: underline; }
