/* ==========================================================================
   TAPTOCLIQ — main stylesheet
   Design tokens, base, buttons, header, mobile menu, footer, pages, blog.
   Homepage sections: home.css. Shop/product: shop.css.
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
	--navy: #000080; --navy-mid: #0a0aaa; --navy-deep: #00005a; --navy-subtle: #0b0b6e;
	--sky: #73b9ee; --sky-dim: #5aa4d8; --sky-pale: #e8f4fd; --sky-faint: #f2f8fe;
	--gold: #c9a84c; --gold-light: #e8c96a; --gold-dim: #a88535;
	--white: #ffffff; --off: #f7f8fc; --slate-50: #f8fafc;
	--gray-100: #f1f4f9; --gray-200: #e2e8f3; --gray-300: #cbd5e1;
	--gray-400: #94a3b8; --gray-500: #64748b; --gray-600: #475569; --gray-800: #1e293b; --ink: #0a0a18;
	--fd: "Sora", system-ui, sans-serif;
	--fb: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--r8: 8px; --r12: 12px; --r16: 16px; --r24: 24px; --r32: 32px;
	--sh-sm: 0 1px 4px rgba(0,0,128,.07); --sh-md: 0 4px 24px rgba(0,0,128,.11); --sh-lg: 0 16px 56px rgba(0,0,128,.16);
	--glow: 0 0 80px rgba(115,185,238,.22);
	--mw: 1180px; --nh: 70px; --admin-bar: 0px;
}
body.admin-bar { --admin-bar: 32px; }
@media screen and (max-width: 782px) { body.admin-bar { --admin-bar: 46px; } }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; font-family: var(--fb); color: var(--gray-800); background: var(--white); line-height: 1.6; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
img, svg, video { max-width: 100%; height: auto; }
a { color: var(--navy); }
button, input, select, textarea { font: inherit; }
[id] { scroll-margin-top: calc(var(--nh) + var(--admin-bar) + 12px); }

/* Theme components start from a clean slate; :where() keeps this at
   zero specificity so every component rule below wins. */
:where(#nav, #footer, .tq-home, .tq-shop, .tq-page-hero, .post-card, .tq-404) :where(h1, h2, h3, h4, p, ul, ol, li, figure, blockquote) { margin: 0; padding: 0; }
:where(#nav, #footer, .tq-home, .tq-shop) :where(ul, ol) { list-style: none; }
:where(#nav, #footer, .tq-home, .tq-shop) a { color: inherit; text-decoration: none; }

.wrap { width: 100%; max-width: var(--mw); margin: 0 auto; padding: 0 24px; }
.wrap-narrow { max-width: 820px; }

.screen-reader-text { border: 0; clip: rect(1px,1px,1px,1px); clip-path: inset(50%); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute !important; width: 1px; word-wrap: normal !important; }
.skip-link:focus { clip: auto; clip-path: none; height: auto; width: auto; left: 12px; top: 12px; z-index: 100000; background: var(--white); color: var(--navy); padding: 10px 16px; border-radius: var(--r8); box-shadow: var(--sh-md); }
:focus-visible { outline: 2px solid var(--sky); outline-offset: 2px; }

/* ---------- Type scale ---------- */
.t-eyebrow { font-family: var(--fb); font-size: .72rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--sky); }
.t-h2 { font-family: var(--fd); font-size: clamp(1.8rem, 3.5vw, 2.6rem); font-weight: 800; line-height: 1.15; letter-spacing: -.025em; }
.t-h3 { font-family: var(--fd); font-size: clamp(1.2rem, 2vw, 1.5rem); font-weight: 700; line-height: 1.25; letter-spacing: -.018em; }
.t-body-lg { font-size: 1.075rem; line-height: 1.75; color: var(--gray-600); }
.t-body { font-size: .9375rem; line-height: 1.65; color: var(--gray-600); }
.c-white { color: var(--white); } .c-navy { color: var(--navy); } .c-sky { color: var(--sky); } .c-gold { color: var(--gold); }
.mt2 { margin-top: .5rem; } .mt4 { margin-top: 1rem; } .mt6 { margin-top: 1.5rem; } .mt8 { margin-top: 2rem; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 28px; border-radius: var(--r12); font-family: var(--fb); font-size: .9375rem; font-weight: 600; line-height: 1.2; cursor: pointer; border: 2px solid transparent; transition: transform .22s ease, box-shadow .22s ease, background .22s ease, color .22s ease, border-color .22s ease; text-decoration: none; white-space: nowrap; }
.btn-navy { background: var(--navy); color: var(--white); border-color: var(--navy); }
.btn-navy:hover { background: var(--navy-mid); border-color: var(--navy-mid); color: var(--white); transform: translateY(-2px); box-shadow: 0 8px 28px rgba(0,0,128,.38); }
.btn-gold { background: linear-gradient(135deg, var(--gold), var(--gold-light)); color: var(--navy-deep); font-weight: 700; }
.btn-gold:hover { background: linear-gradient(135deg, var(--gold-light), var(--gold)); color: var(--navy-deep); transform: translateY(-2px); box-shadow: 0 8px 28px rgba(201,168,76,.42); }
.btn-outline-white { background: transparent; color: var(--white); border-color: rgba(255,255,255,.38); }
.btn-outline-white:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.7); color: var(--white); }
.btn-outline-navy { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-outline-navy:hover { background: var(--navy); color: var(--white); }
.btn-lg { padding: 17px 36px; font-size: 1rem; border-radius: 14px; }
.btn-sm { padding: 9px 18px; font-size: .875rem; border-radius: var(--r8); }
.btn-full { width: 100%; }

/* ---------- Header ---------- */
#nav { position: fixed; top: var(--admin-bar); left: 0; right: 0; height: var(--nh); z-index: 1000; background: rgba(255,255,255,.93); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); border-bottom: 1px solid rgba(0,0,128,.07); transition: box-shadow .3s; }
#nav.sd { box-shadow: 0 4px 28px rgba(0,0,128,.1); }
.site-content { padding-top: var(--nh); }
.nav-wrap { height: var(--nh); display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.nav-logo, .foot-logo { font-family: var(--fd); font-weight: 800; letter-spacing: -.03em; flex-shrink: 0; }
.nav-logo { font-size: 1.35rem; color: var(--navy); }
.nav-logo em, .foot-logo em { color: var(--sky); font-style: normal; }
.nav-logo.has-image img, .foot-logo.has-image img { display: block; max-height: 40px; width: auto; }

#nav .nav-links .nav-menu { display: flex; align-items: center; gap: 2px; }
#nav .nav-links .nav-menu > li { position: relative; }
#nav .nav-links .nav-menu a { display: block; font-size: .875rem; font-weight: 500; color: var(--gray-600); padding: 8px 14px; border-radius: var(--r8); transition: color .15s, background .15s; white-space: nowrap; }
#nav .nav-links .nav-menu a:hover, #nav .nav-links .nav-menu .current-menu-item > a { color: var(--navy); background: var(--sky-pale); }
#nav .nav-links .menu-item-has-children > a::after { content: ""; display: inline-block; width: 6px; height: 6px; margin-left: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-3px) rotate(45deg); opacity: .6; }
#nav .nav-links .sub-menu { display: none; position: absolute; top: 100%; left: 0; min-width: 190px; background: var(--white); border: 1.5px solid var(--gray-200); border-radius: var(--r12); box-shadow: var(--sh-md); padding: 8px; z-index: 1001; }
#nav .nav-links li:hover > .sub-menu, #nav .nav-links li:focus-within > .sub-menu, #nav .nav-links li.open > .sub-menu { display: block; }
#nav .nav-links .sub-menu a { padding: 9px 12px; }

.nav-right { display: flex; align-items: center; gap: 10px; }
.nav-login { font-size: .875rem; font-weight: 600; color: var(--navy); padding: 8px 14px; border-radius: var(--r8); transition: background .15s; white-space: nowrap; }
.nav-login:hover { background: var(--sky-pale); }

.nav-ham { display: none; flex-direction: column; justify-content: center; gap: 5px; width: 42px; height: 42px; padding: 10px; cursor: pointer; background: none; border: none; border-radius: var(--r8); }
.nav-ham > span[aria-hidden] { display: block; width: 22px; height: 2px; background: var(--navy); border-radius: 2px; transition: transform .25s, opacity .25s; }
.nav-ham[aria-expanded="true"] > span[aria-hidden]:nth-of-type(2) { transform: translateY(7px) rotate(45deg); }
.nav-ham[aria-expanded="true"] > span[aria-hidden]:nth-of-type(3) { opacity: 0; }
.nav-ham[aria-expanded="true"] > span[aria-hidden]:nth-of-type(4) { transform: translateY(-7px) rotate(-45deg); }

.nav-drawer { display: none; position: fixed; top: calc(var(--nh) + var(--admin-bar)); left: 0; right: 0; max-height: calc(100vh - var(--nh) - var(--admin-bar)); overflow-y: auto; background: var(--white); border-bottom: 1px solid var(--gray-200); padding: 12px 24px 28px; box-shadow: var(--sh-lg); z-index: 999; }
.nav-drawer.open { display: block; }
.drawer-menu a, .drawer-account a { display: block; font-size: 1rem; font-weight: 500; color: var(--gray-800); padding: 13px 0; border-bottom: 1px solid var(--gray-100); }
.drawer-menu .sub-menu { padding-left: 16px; }
.drawer-menu .sub-menu a { font-size: .95rem; color: var(--gray-600); }
.drawer-account a { color: var(--gray-500); }
.nav-drawer .btn { margin-top: 18px; }

@media (max-width: 1280px) {
	#nav .nav-links .nav-menu a { padding: 8px 10px; }
	.nav-logout { display: none; }
}
/* Below this width the full menu no longer fits: switch to the drawer. */
@media (max-width: 1100px) {
	#nav .nav-links, .nav-right .nav-login, .nav-right .nav-cta { display: none; }
	.nav-ham { display: flex; }
}

/* ---------- Footer ---------- */
#footer { background: var(--ink); padding: 60px 0 28px; color: rgba(255,255,255,.5); }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 44px; margin-bottom: 44px; }
.foot-logo { display: inline-block; font-size: 1.3rem; color: var(--white); margin-bottom: 12px; }
.foot-tag { font-size: .84rem; color: rgba(255,255,255,.45); line-height: 1.6; max-width: 240px; }
.foot-socs { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 18px; }
.fsoc { width: 34px; height: 34px; background: rgba(255,255,255,.07); border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: .75rem; font-weight: 700; color: rgba(255,255,255,.55); transition: background .15s, color .15s; }
.fsoc:hover { background: var(--navy); color: var(--white); }
.fcol h4 { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: rgba(255,255,255,.35); margin-bottom: 14px; }
.foot-menu { display: flex; flex-direction: column; gap: 9px; }
.foot-menu a { font-size: .84rem; color: rgba(255,255,255,.55); transition: color .15s; }
.foot-menu a:hover { color: var(--sky); }
.foot-bot { border-top: 1px solid rgba(255,255,255,.07); padding-top: 24px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.foot-copy { font-size: .78rem; color: rgba(255,255,255,.35); }
.foot-legal { display: flex; flex-wrap: wrap; gap: 18px; }
.foot-legal a { font-size: .78rem; color: rgba(255,255,255,.35); transition: color .15s; }
.foot-legal a:hover { color: rgba(255,255,255,.65); }
@media (max-width: 980px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .foot-grid { grid-template-columns: 1fr; gap: 32px; } .foot-bot { flex-direction: column; align-items: flex-start; } }

/* Simple footer (after checkout) */
#footer.tclq-footer-simple { background: var(--navy); padding: 40px 0; text-align: center; }
.tclq-footer-simple-inner { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.tclq-footer-simple .foot-logo { margin: 0; }
.tclq-footer-simple-text { color: rgba(255,255,255,.75); font-size: .9rem; }
.tclq-footer-simple-text a { color: var(--gold); font-weight: 600; }
.tclq-footer-simple .foot-copy { color: rgba(255,255,255,.45); margin-top: 6px; }

/* ---------- Page title band (pages, blog, posts) ---------- */
.tq-page-hero { background: linear-gradient(140deg, var(--navy-deep) 0%, var(--navy) 60%, #0010b0 100%); color: var(--white); padding: 64px 0 56px; position: relative; overflow: hidden; }
.tq-page-hero::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(115,185,238,.055) 1px, transparent 1px), linear-gradient(90deg, rgba(115,185,238,.055) 1px, transparent 1px); background-size: 56px 56px; pointer-events: none; }
.tq-page-hero .wrap { position: relative; }
.tq-page-title { font-family: var(--fd); font-size: clamp(1.9rem, 4vw, 2.8rem); font-weight: 800; line-height: 1.12; letter-spacing: -.025em; color: var(--white); }
.tq-page-intro { margin-top: 12px; color: rgba(255,255,255,.7); max-width: 560px; }
.tq-hero-cat { display: inline-block; margin-bottom: 14px; background: rgba(115,185,238,.16); border: 1px solid rgba(115,185,238,.3); color: var(--sky); padding: 4px 12px; border-radius: 50px; font-size: .75rem; font-weight: 700; text-decoration: none; }
.tq-post-meta { margin-top: 14px; font-size: .875rem; color: rgba(255,255,255,.65); }
.tq-hero-search { margin-top: 20px; max-width: 480px; }

/* ---------- Page / post content ---------- */
.tq-page .wrap-narrow, .tq-single .wrap-narrow { padding-top: 48px; padding-bottom: 88px; }
.tq-page-hero .wrap-narrow { padding-top: 0; padding-bottom: 0; }
.entry-content { font-size: 1.0625rem; line-height: 1.8; color: var(--gray-600); }
.entry-content > * + * { margin-top: 1.25em; }
.entry-content h2, .entry-content h3, .entry-content h4 { font-family: var(--fd); color: var(--navy); line-height: 1.25; letter-spacing: -.015em; margin-top: 2em; }
.entry-content h2 { font-size: 1.6rem; padding-bottom: .35em; border-bottom: 2px solid var(--gray-200); }
.entry-content h3 { font-size: 1.25rem; }
.entry-content h4 { font-size: 1.05rem; }
.entry-content a { color: var(--navy); text-decoration: underline; text-decoration-color: var(--sky); text-underline-offset: 3px; }
.entry-content a:hover { color: var(--navy-mid); }
.entry-content ul, .entry-content ol { padding-left: 1.4em; }
.entry-content li + li { margin-top: .4em; }
.entry-content blockquote { margin-left: 0; margin-right: 0; padding: 18px 24px; border-left: 4px solid var(--sky); background: var(--sky-faint); border-radius: 0 var(--r12) var(--r12) 0; color: var(--gray-800); font-style: italic; }
.entry-content img { border-radius: var(--r12); }
.entry-content table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.entry-content th, .entry-content td { padding: 10px 12px; border-bottom: 1px solid var(--gray-200); text-align: left; }
.entry-content th { color: var(--navy); }
.entry-content hr { border: 0; border-top: 1px solid var(--gray-200); margin: 2.5em 0; }
.entry-content .wp-block-button__link { background: var(--navy); color: var(--white); border-radius: var(--r12); padding: 12px 24px; font-weight: 600; text-decoration: none; }
.entry-content .wp-block-button__link:hover { background: var(--navy-mid); color: var(--white); }
.entry-content .alignwide { width: min(1180px, calc(100vw - 48px)); max-width: none; margin-left: 50%; transform: translateX(-50%); }
.entry-content .alignfull { width: 100vw; max-width: none; margin-left: 50%; transform: translateX(-50%); }
.entry-content .aligncenter { margin-left: auto; margin-right: auto; }
.page-links { margin-top: 2em; font-weight: 600; }
.tq-featured { margin: 0 0 32px; }
.tq-featured img { width: 100%; border-radius: var(--r16); display: block; }
.tq-tags { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 8px; }
.tq-tags a { background: var(--gray-100); color: var(--gray-600); padding: 5px 12px; border-radius: 50px; font-size: .8rem; text-decoration: none; }
.tq-tags a:hover { background: var(--sky-pale); color: var(--navy); }
.post-navigation { margin-top: 40px; }
.post-navigation .nav-links { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.post-navigation a { display: block; padding: 18px 20px; border: 1.5px solid var(--gray-200); border-radius: var(--r12); text-decoration: none; height: 100%; }
.post-navigation a:hover { border-color: var(--sky); }
.post-navigation .nav-next { text-align: right; }
.post-navigation .nav-sub { display: block; font-size: .78rem; color: var(--gray-400); }
.post-navigation .nav-title { display: block; margin-top: 4px; font-weight: 700; color: var(--navy); }

/* Full-width pages (Elementor, Cart, Checkout, My Account) */
.tclq-page-main { min-height: 50vh; }

/* Cart / Checkout: the plugin's re-skin adds room for a fixed header;
   the theme already offsets content below the header, so use a normal gap. */
body.woocommerce-cart .tclq-page-main,
body.woocommerce-checkout .tclq-page-main { padding-top: 56px; }
@media (max-width: 640px) {
	body.woocommerce-cart .tclq-page-main,
	body.woocommerce-checkout .tclq-page-main { padding-top: 28px; }
}
/* Brand fonts inside the WooCommerce blocks. */
.tq-site .wp-block-woocommerce-cart,
.tq-site .wp-block-woocommerce-checkout,
.tq-site .woocommerce-order { font-family: var(--fb); }
.tq-site .wp-block-woocommerce-cart :is(h1, h2, h3),
.tq-site .wp-block-woocommerce-checkout :is(h1, h2, h3),
.tq-site .woocommerce-order :is(h1, h2, h3),
.tq-site .wc-block-cart__empty-cart__title { font-family: var(--fd); }

/* ---------- Blog cards ---------- */
.tq-blog-body { padding-top: 48px; padding-bottom: 88px; }
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.post-card { background: var(--white); border: 1.5px solid var(--gray-200); border-radius: var(--r16); overflow: hidden; display: flex; flex-direction: column; transition: transform .25s, box-shadow .25s, border-color .25s; }
.post-card:hover { transform: translateY(-4px); box-shadow: var(--sh-md); border-color: var(--sky); }
.post-card-img { display: block; aspect-ratio: 16 / 10; background: linear-gradient(135deg, var(--navy), var(--navy-mid)); overflow: hidden; }
.post-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.post-card-fallback { display: flex; height: 100%; align-items: center; justify-content: center; font-family: var(--fd); font-weight: 800; color: rgba(255,255,255,.6); }
.post-card-body { padding: 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.post-card-meta { display: flex; align-items: center; gap: 10px; font-size: .78rem; color: var(--gray-400); }
.post-card-cat { background: var(--sky-pale); color: var(--navy); padding: 3px 10px; border-radius: 50px; font-weight: 700; text-decoration: none; }
.post-card-title { font-family: var(--fd); font-size: 1.1rem; line-height: 1.3; }
.post-card-title a { color: var(--navy); text-decoration: none; }
.post-card-excerpt { font-size: .9rem; color: var(--gray-600); flex: 1; }
.post-card-more { font-size: .875rem; font-weight: 700; color: var(--navy); text-decoration: none; }
.post-card-more:hover { color: var(--sky-dim); }
.pagination { margin-top: 48px; }
.pagination .nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.pagination .page-numbers { display: inline-flex; min-width: 40px; height: 40px; padding: 0 12px; align-items: center; justify-content: center; border-radius: var(--r8); border: 1.5px solid var(--gray-200); color: var(--navy); text-decoration: none; font-weight: 600; font-size: .9rem; }
.pagination .page-numbers.current, .pagination a.page-numbers:hover { background: var(--navy); border-color: var(--navy); color: var(--white); }
.tq-empty { text-align: center; padding: 40px 0; }
.tq-empty h2 { font-family: var(--fd); color: var(--navy); }
.tq-empty p { margin: 10px 0 24px; color: var(--gray-600); }
@media (max-width: 980px) { .post-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .post-grid { grid-template-columns: 1fr; } .post-navigation .nav-links { grid-template-columns: 1fr; } }

/* ---------- 404 ---------- */
.tq-404 { padding: 96px 0 120px; text-align: center; }
.tq-404 .wrap-narrow { max-width: 640px; }
.tq-404-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

/* ---------- Forms ---------- */
.search-form { display: flex; gap: 8px; }
.search-form label { flex: 1; }
.search-field, .comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea {
	width: 100%; padding: 12px 14px; border: 1.5px solid var(--gray-200); border-radius: var(--r12); background: var(--white); color: var(--gray-800); font-size: .95rem;
}
.search-field:focus, .comment-form input:focus, .comment-form textarea:focus { border-color: var(--sky); outline: none; box-shadow: 0 0 0 3px var(--sky-pale); }
.search-submit, .comment-form .submit { padding: 12px 20px; border: 0; border-radius: var(--r12); background: var(--navy); color: var(--white); font-weight: 600; cursor: pointer; }
.search-submit:hover, .comment-form .submit:hover { background: var(--navy-mid); }
.tq-page-hero .search-field { border-color: transparent; }

/* ---------- Comments ---------- */
.tq-comments { margin-top: 56px; padding-top: 32px; border-top: 1px solid var(--gray-200); }
.tq-comments-title, .comment-reply-title { font-family: var(--fd); color: var(--navy); font-size: 1.3rem; }
.comment-list { list-style: none; padding: 0; margin: 20px 0; }
.comment-list .comment { padding: 16px 0; border-bottom: 1px solid var(--gray-100); }
.comment-list .children { list-style: none; padding-left: 24px; }
.comment-author img { border-radius: 50%; vertical-align: middle; margin-right: 8px; }
.comment-form p { margin: 0 0 14px; }

/* ---------- Scroll fade-in (homepage) ---------- */
.js .fu { opacity: 0; transform: translateY(28px); transition: opacity .6s ease, transform .6s ease; }
.js .fu.v { opacity: 1; transform: none; }
.fd1 { transition-delay: .1s; } .fd2 { transition-delay: .2s; } .fd3 { transition-delay: .3s; } .fd4 { transition-delay: .4s; }
@media (prefers-reduced-motion: reduce) { .js .fu { opacity: 1; transform: none; transition: none; } }
