/*
Theme Name: GloPosNet
Theme URI: https://gloposnet.com/
Author: GloPosNet
Description: Lightweight custom theme for the GloPosNet website. No page builder required. After activating, go to Appearance > GloPosNet setup to create the pages.
Version: 1.0.6
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: gloposnet
*/

body { margin: 0; background: #FBF8F5; color: #1B1414; font-family: Inter, 'Segoe UI', Arial, sans-serif; font-size: 17px; line-height: 1.5; -webkit-text-size-adjust: 100%; }
img { max-width: 100%; height: auto; }
a { color: #8C0D15; }
a:hover { color: #1B1414; }
a.nav { color: #1B1414; }
a.nav:hover { color: #AC0E1C; }
a.foot { color: #FFFFFF; }
a.foot:hover { color: #FFC9C4; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible { outline: 3px solid #1B6FD1; outline-offset: 2px; }

.gpn-skip { position: absolute; left: -9999px; top: 0; background: #FFFFFF; color: #1B1414; padding: 12px 16px; z-index: 100; }
.gpn-skip:focus { left: 8px; top: 8px; }

.custom-logo-link { display: inline-flex; align-items: center; min-height: 44px; }
.custom-logo { max-height: 44px; width: auto; display: block; }

/* Header menu, when a WordPress menu is assigned */
.gpn-menu { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 26px; }
.gpn-menu a { font-family: Archivo, 'Arial Narrow', Arial, sans-serif; font-weight: 600; font-size: 16px; color: #1B1414; text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; border-bottom: 3px solid transparent; box-sizing: border-box; }
.gpn-menu a:hover { color: #AC0E1C; }
.gpn-menu .current-menu-item > a { border-bottom-color: #AC0E1C; }

/* Form messages */
.gpn-notice { margin: 0; padding: 14px 16px; border-radius: 6px; font-weight: 600; }
.gpn-notice-ok { background: #E3F3E6; color: #14532D; }
.gpn-notice-bad { background: #FDE7E7; color: #7A0C12; }

/* Ordinary pages and blog posts */
.gpn-prose { max-width: 760px; margin: 0 auto; padding: clamp(40px, 6vw, 80px) 24px; box-sizing: border-box; }
.gpn-prose-wide { max-width: 1200px; }
.gpn-prose h1, .gpn-prose h2, .gpn-prose h3, .gpn-prose h4 { font-family: Archivo, 'Arial Narrow', Arial, sans-serif; font-weight: 800; line-height: 1.12; letter-spacing: -0.01em; margin: 1.6em 0 0.5em; }
.gpn-prose h1 { font-size: clamp(34px, 5vw, 56px); margin-top: 0; }
.gpn-prose h2 { font-size: clamp(26px, 3.4vw, 36px); }
.gpn-prose h3 { font-size: 24px; }
.gpn-prose p, .gpn-prose li { font-size: 18px; line-height: 1.7; }
.gpn-prose blockquote { margin: 1.5em 0; padding-left: 20px; border-left: 3px solid #AC0E1C; }
.gpn-meta { font-family: 'IBM Plex Mono', 'Courier New', monospace; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: #5C5350; margin: 0 0 12px; }
.gpn-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 20px; margin-top: 32px; }
.gpn-card { background: #FFFFFF; border: 1px solid #E4DCD5; border-radius: 8px; padding: 28px; }
.gpn-card h2 { font-size: 22px; margin: 0 0 10px; }
.gpn-card h2 a { color: #1B1414; text-decoration: none; }
.gpn-card h2 a:hover { color: #AC0E1C; }
.gpn-card p { font-size: 16px; line-height: 1.6; margin: 0; color: #5C5350; }
.gpn-pagination { margin-top: 40px; }
.alignwide { max-width: 1200px; }
.wp-block-image img { border-radius: 8px; }

/* FAQ open/close marker */
details > summary { list-style: none; justify-content: space-between; gap: 16px; }
details > summary::-webkit-details-marker { display: none; }
details > summary::after { content: "+"; font-size: 26px; font-weight: 600; color: #AC0E1C; }
details[open] > summary::after { content: "\2212"; }


/* Header dropdowns for trade pages */
.gpn-menu li { position: relative; }
.gpn-menu .sub-menu { list-style: none; margin: 0; padding: 8px 0; position: absolute; left: -16px; top: 100%; min-width: 230px; background: #FFFFFF; border: 1px solid #E4DCD5; border-radius: 8px; box-shadow: 0 16px 32px rgba(27, 20, 20, 0.14); display: none; z-index: 60; }
.gpn-menu li:hover > .sub-menu, .gpn-menu li:focus-within > .sub-menu { display: block; }
.gpn-menu .sub-menu a { display: flex; padding: 0 16px; min-height: 42px; border-bottom: 0; font-size: 15px; white-space: nowrap; }
.gpn-menu .sub-menu a:hover { background: #FAF5F1; }
.gpn-menu .menu-item-has-children > a::after { content: ""; border: solid currentColor; border-width: 0 2px 2px 0; padding: 3px; margin-left: 8px; transform: rotate(45deg) translateY(-2px); }
@media (max-width: 900px) { .gpn-menu .sub-menu { display: none !important; } .gpn-menu .menu-item-has-children > a::after { display: none; } }

/* Mobile menu */
.gpn-burger { display: none; width: 44px; height: 44px; padding: 0; border: 1px solid #E4DCD5; border-radius: 6px; background: #FFFFFF; cursor: pointer; flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.gpn-burger span { display: block; width: 20px; height: 2px; background: #1B1414; border-radius: 2px; }
@media (max-width: 1220px) {
	.gpn-burger { display: inline-flex; order: 3; }
	header > div > div:last-child { order: 2; margin-left: auto; }
	header .gpn-menu .sub-menu { grid-template-columns: repeat(4, 1fr) !important; }
	header nav[aria-label="Main"] { display: none; flex: 1 1 100%; order: 5; }
	header.gpn-open nav[aria-label="Main"] { display: block; }
	header .gpn-menu { display: flex; flex-direction: column; align-items: stretch; gap: 0; margin: 0; padding: 0; }
	header .gpn-menu > li { border-top: 1px solid #E4DCD5; }
	header .gpn-menu > li > a { display: flex; width: 100%; min-height: 48px; box-sizing: border-box; }
	header .gpn-menu .sub-menu { display: grid !important; grid-template-columns: 1fr 1fr; gap: 0 16px; position: static !important; opacity: 1 !important; visibility: visible !important; transform: none !important; box-shadow: none !important; border: 0 !important; background: transparent !important; min-width: 0 !important; margin: 0; padding: 0 0 10px 12px; }
	header .gpn-menu .sub-menu a { display: flex; align-items: center; min-height: 40px; padding: 0; font-size: 15px; font-weight: 500; }
	header .gpn-menu .menu-item-has-children > a::after { display: none; }
}
@media (max-width: 760px) {
	header .gpn-menu .sub-menu { grid-template-columns: 1fr 1fr !important; }
}
@media (max-width: 600px) {
	.gpn-burger { order: 1; margin-left: auto; }
	header > div > div:last-child { order: 2; margin-left: 0; flex: 1 1 100%; }
}

/* Compact phone header and shorter phone pages */
.gpn-m-demo { display: none; }
@media (max-width: 600px) {
	header > div { padding-top: 10px !important; padding-bottom: 10px !important; gap: 10px 12px !important; }
	header a[aria-label="GloPosNet home"] img { height: 36px !important; }
	header > div > div:last-child { order: 2; margin-left: auto; flex: 0 0 auto; }
	header a[href^="tel:"] > span:last-child { display: none !important; }
	header > div > div:last-child > a:last-child { display: none !important; }
	.gpn-burger { order: 3; margin-left: 0; }
	header.gpn-open .gpn-m-demo { display: flex; order: 6; flex: 1 1 100%; align-items: center; justify-content: center; min-height: 50px; border-radius: 6px; background: #AC0E1C; color: #FFFFFF; font-family: Archivo, Arial, sans-serif; font-weight: 700; font-size: 17px; text-decoration: none; margin: 4px 0 6px; }
	.gpn-swipe { display: flex !important; overflow-x: auto; gap: 12px !important; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; padding-bottom: 12px; margin-right: -24px; padding-right: 24px; }
	.gpn-swipe > * { flex: 0 0 80%; scroll-snap-align: start; box-sizing: border-box; min-width: 0; }
	.gpn-two { grid-template-columns: 1fr 1fr !important; gap: 20px 16px !important; }
}
