/*
Theme Name: JAMD Tech Portal
Theme URI: https://jamdtech.com
Author: JAMD Technologies
Description: Product portal theme for jamdtech.com. Visual system matched to jamdtechnologies.com — DM Serif Display headings, Plus Jakarta Sans body, navy and teal palette.
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 8.1
License: GPL-2.0-or-later
Text Domain: jamdtech
*/

/* =========================================================================
   Design tokens — sampled from jamdtechnologies.com
   ========================================================================= */

:root {
	--navy:        #0B1D3A;
	--navy-deep:   #0A0F1A;
	--navy-95:     rgba(11, 29, 58, .95);
	--ink:         #1A1F2E;
	--teal:        #00D4AA;
	--teal-tint:   rgba(0, 212, 170, .15);
	--teal-dark:   #00B392;
	--muted:       #8A95A5;
	--light:       #CED4DC;
	--white:       #FFFFFF;
	--border:      #E6EAF0;
	--surface:     #F7F9FC;

	--serif: "DM Serif Display", Georgia, "Times New Roman", serif;
	--sans:  "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "system-ui", sans-serif;
	--mono:  ui-monospace, SFMono-Regular, "SF Mono", Menlo, monospace;

	--wrap: 1180px;
	--radius: 14px;
	--radius-sm: 8px;
	--shadow: 0 1px 2px rgba(11,29,58,.04), 0 8px 24px rgba(11,29,58,.06);
	--shadow-lg: 0 2px 4px rgba(11,29,58,.06), 0 20px 48px rgba(11,29,58,.10);
	--ease: cubic-bezier(.4, 0, .2, 1);
}

/* =========================================================================
   Reset / base
   ========================================================================= */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after {
		animation-duration: .01ms !important;
		transition-duration: .01ms !important;
	}
}

body {
	margin: 0;
	font-family: var(--sans);
	font-size: 17px;
	line-height: 1.65;
	color: var(--ink);
	background: var(--white);
	-webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
	font-family: var(--serif);
	font-weight: 700;
	line-height: 1.15;
	color: var(--navy);
	margin: 0 0 .5em;
	letter-spacing: -.01em;
}

h1 { font-size: clamp(2.25rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.8rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.7rem); }

p { margin: 0 0 1.15em; }

a { color: var(--teal-dark); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--teal); }

img { max-width: 100%; height: auto; display: block; }

/* Inline SVGs carry no intrinsic dimensions. Without an explicit size they
   fall back to 300x150 and blow out every flex container they sit in. */
svg { flex-shrink: 0; }

:focus-visible {
	outline: 3px solid var(--teal);
	outline-offset: 3px;
	border-radius: 3px;
}

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	overflow: hidden; clip: rect(1px,1px,1px,1px);
	white-space: nowrap;
}

.skip-link {
	position: absolute; left: -9999px; top: 0; z-index: 999;
	background: var(--teal); color: var(--navy);
	padding: 12px 20px; font-weight: 700; border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; }

/* =========================================================================
   Layout helpers
   ========================================================================= */

.wrap { width: min(100% - 48px, var(--wrap)); margin-inline: auto; }
@media (max-width: 640px) { .wrap { width: calc(100% - 32px); } }

.section { padding: clamp(56px, 8vw, 104px) 0; }
.section--surface { background: var(--surface); }
.section--dark { background: var(--navy); color: var(--light); }
.section--dark h2, .section--dark h3 { color: var(--white); }

.eyebrow {
	display: inline-flex; align-items: center; gap: 12px;
	font-family: var(--mono);
	font-size: .72rem; font-weight: 600;
	letter-spacing: .18em; text-transform: uppercase;
	color: var(--teal);
	margin-bottom: 18px;
}
.eyebrow::before {
	content: ""; width: 28px; height: 2px;
	background: var(--teal); display: block;
}

.section-head { max-width: 720px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head p { color: var(--muted); font-size: 1.075rem; margin: 0; }
.section--dark .section-head p { color: var(--light); }

/* =========================================================================
   Buttons
   ========================================================================= */

.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 9px;
	font-family: var(--sans);
	font-size: .95rem; font-weight: 600;
	padding: 13px 26px;
	border-radius: var(--radius-sm);
	border: 1px solid transparent;
	cursor: pointer;
	transition: transform .18s var(--ease), background .2s var(--ease),
	            border-color .2s var(--ease), color .2s var(--ease), box-shadow .2s var(--ease);
	text-align: center;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn svg { width: 17px; height: 17px; }
.btn--sm svg { width: 15px; height: 15px; }

.btn--primary { background: var(--teal); color: var(--navy); }
.btn--primary:hover { background: #16E0B9; color: var(--navy); box-shadow: 0 8px 20px rgba(0,212,170,.28); }

.btn--ghost { background: transparent; color: var(--white); border-color: rgba(255,255,255,.28); }
.btn--ghost:hover { border-color: var(--teal); color: var(--teal); }

.btn--outline { background: transparent; color: var(--navy); border-color: var(--border); }
.btn--outline:hover { border-color: var(--teal); color: var(--teal-dark); }

.btn--sm { padding: 9px 18px; font-size: .875rem; }
.btn--block { display: flex; width: 100%; }

/* =========================================================================
   Site header
   ========================================================================= */

.site-header {
	position: sticky; top: 0; z-index: 100;
	background: var(--navy-95);
	backdrop-filter: saturate(140%) blur(12px);
	-webkit-backdrop-filter: saturate(140%) blur(12px);
	border-bottom: 1px solid rgba(255,255,255,.07);
}

.site-header__inner {
	display: flex; align-items: center; gap: 28px;
	min-height: 66px;
}

.brand { display: flex; align-items: center; gap: 11px; flex-shrink: 0; }
.brand__mark {
	width: 34px; height: 34px; border-radius: var(--radius-sm);
	background: var(--teal); color: var(--navy);
	display: grid; place-items: center;
	font-family: var(--sans); font-weight: 800; font-size: .82rem;
	letter-spacing: .02em;
}
.brand__mark img { width: 100%; height: 100%; object-fit: contain; border-radius: inherit; }
.brand__text { font-family: var(--serif); font-size: 1.22rem; color: var(--white); line-height: 1; }
.brand__text span { color: var(--teal); }

.site-nav { margin-left: auto; }
.site-nav ul {
	display: flex; align-items: center; gap: 26px;
	list-style: none; margin: 0; padding: 0;
}
.site-nav a {
	color: var(--light); font-size: .93rem; font-weight: 500;
	padding: 6px 0; position: relative;
}
.site-nav a:hover { color: var(--white); }
.site-nav .current-menu-item > a,
.site-nav .current_page_item > a { color: var(--white); }
.site-nav .current-menu-item > a::after,
.site-nav .current_page_item > a::after {
	content: ""; position: absolute; left: 0; right: 0; bottom: 0;
	height: 2px; background: var(--teal);
}

.nav-toggle {
	display: none; margin-left: auto;
	background: none; border: 0; cursor: pointer; padding: 8px;
	color: var(--white);
}
.nav-toggle svg { width: 24px; height: 24px; }

@media (max-width: 900px) {
	.nav-toggle { display: block; }
	.site-nav {
		position: absolute; top: 100%; left: 0; right: 0;
		background: var(--navy); border-bottom: 1px solid rgba(255,255,255,.08);
		display: none; padding: 14px 24px 22px;
	}
	.site-nav.is-open { display: block; }
	.site-nav ul { flex-direction: column; align-items: stretch; gap: 2px; }
	.site-nav a { display: block; padding: 11px 0; }
	.site-header__cta { display: none; }
}

/* =========================================================================
   Hero
   ========================================================================= */

.hero {
	position: relative; overflow: hidden;
	background: var(--navy);
	color: var(--light);
	padding: clamp(72px, 11vw, 136px) 0 clamp(64px, 9vw, 112px);
}

/* Faint engineering-grid backdrop, same idea as the parent site */
.hero::before {
	content: ""; position: absolute; inset: 0;
	background-image:
		linear-gradient(rgba(255,255,255,.028) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255,255,255,.028) 1px, transparent 1px);
	background-size: 64px 64px;
	mask-image: radial-gradient(ellipse 90% 70% at 70% 40%, #000 20%, transparent 78%);
	-webkit-mask-image: radial-gradient(ellipse 90% 70% at 70% 40%, #000 20%, transparent 78%);
	pointer-events: none;
}
.hero::after {
	content: ""; position: absolute;
	width: 620px; height: 620px; right: -140px; top: -220px;
	background: radial-gradient(circle, rgba(0,212,170,.16), transparent 62%);
	pointer-events: none;
}

.hero__inner { position: relative; z-index: 1; max-width: 760px; }
.hero h1 { color: var(--white); margin-bottom: .35em; }
.hero h1 em { font-style: normal; color: var(--teal); }
.hero__lead {
	font-size: clamp(1.02rem, 1.5vw, 1.2rem);
	color: var(--light); max-width: 560px; margin-bottom: 34px;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }

.hero__stats {
	position: relative; z-index: 1;
	display: flex; flex-wrap: wrap; gap: 44px;
	margin-top: clamp(48px, 7vw, 76px);
	padding-top: 34px;
	border-top: 1px solid rgba(255,255,255,.09);
}
.hero__stat strong {
	display: block; font-family: var(--serif);
	font-size: 2rem; color: var(--white); line-height: 1;
}
.hero__stat span {
	font-size: .82rem; color: var(--muted);
	letter-spacing: .04em; text-transform: uppercase;
}

/* =========================================================================
   Service band (paid products)
   ========================================================================= */

.service-grid {
	display: grid; gap: 22px;
	grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.service-card {
	position: relative;
	display: flex; flex-direction: column;
	padding: 34px 32px;
	background: var(--white);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	transition: transform .22s var(--ease), box-shadow .22s var(--ease), border-color .22s var(--ease);
	overflow: hidden;
}
.service-card::before {
	content: ""; position: absolute; inset: 0 0 auto 0; height: 3px;
	background: var(--accent, var(--teal));
}
.service-card:hover {
	transform: translateY(-4px);
	box-shadow: var(--shadow-lg);
	border-color: color-mix(in srgb, var(--accent, var(--teal)) 40%, var(--border));
}

.service-card__top { display: flex; align-items: center; gap: 15px; margin-bottom: 16px; }
.service-card__icon {
	width: 50px; height: 50px; flex-shrink: 0;
	border-radius: 12px;
	background: color-mix(in srgb, var(--accent, var(--teal)) 15%, transparent);
	display: grid; place-items: center;
	font-family: var(--serif); font-size: 1.32rem;
	color: var(--accent, var(--teal-dark));
	overflow: hidden;
}
.service-card__icon img { width: 100%; height: 100%; object-fit: cover; }
.service-card h3 { margin: 0; font-size: 1.42rem; }
.service-card__price {
	font-family: var(--mono); font-size: .78rem; font-weight: 600;
	color: var(--muted); letter-spacing: .04em;
}
.service-card__body { color: var(--muted); flex-grow: 1; margin-bottom: 22px; }
.service-card__body p:last-child { margin-bottom: 0; }
.service-card__actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* =========================================================================
   App grid
   ========================================================================= */

.app-grid {
	display: grid; gap: 20px;
	grid-template-columns: repeat(auto-fill, minmax(272px, 1fr));
}

.app-card {
	display: flex; flex-direction: column;
	padding: 26px 24px;
	background: var(--white);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	transition: transform .22s var(--ease), box-shadow .22s var(--ease), border-color .22s var(--ease);
}
.app-card:hover {
	transform: translateY(-3px);
	box-shadow: var(--shadow);
	border-color: color-mix(in srgb, var(--accent, var(--teal)) 40%, var(--border));
}
.app-card--soon { background: var(--surface); border-style: dashed; }
.app-card--soon:hover { transform: none; box-shadow: none; }

.app-card__icon {
	width: 54px; height: 54px; border-radius: 13px;
	background: color-mix(in srgb, var(--accent, var(--teal)) 15%, transparent);
	display: grid; place-items: center; margin-bottom: 16px;
	font-family: var(--serif); font-size: 1.4rem;
	color: var(--accent, var(--teal-dark));
	overflow: hidden;
}
.app-card__icon img { width: 100%; height: 100%; object-fit: cover; }

.app-card h3 { font-size: 1.16rem; margin: 0 0 5px; }
.app-card h3 a { color: var(--navy); }
.app-card h3 a:hover { color: var(--teal-dark); }
.app-card__tagline { color: var(--muted); font-size: .93rem; flex-grow: 1; margin: 0 0 18px; }

.app-card__meta {
	display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
	margin-bottom: 16px;
}

.pill {
	display: inline-block;
	font-family: var(--mono); font-size: .66rem; font-weight: 600;
	letter-spacing: .09em; text-transform: uppercase;
	padding: 4px 9px; border-radius: 100px;
	background: var(--surface); color: var(--muted);
	border: 1px solid var(--border);
}
.pill--price { background: var(--teal-tint); color: var(--teal-dark); border-color: transparent; }
.pill--soon  { background: transparent; color: var(--muted); border-style: dashed; }

.store-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }

.store-badge {
	display: inline-flex; align-items: center; gap: 7px;
	padding: 8px 13px;
	border: 1px solid var(--border); border-radius: var(--radius-sm);
	font-size: .82rem; font-weight: 600; color: var(--navy);
	background: var(--white);
	transition: border-color .2s var(--ease), color .2s var(--ease), background .2s var(--ease);
}
.store-badge:hover { border-color: var(--teal); color: var(--teal-dark); background: var(--teal-tint); }
.store-badge svg { width: 15px; height: 15px; flex-shrink: 0; }

.soon-note {
	font-family: var(--mono); font-size: .7rem; font-weight: 600;
	letter-spacing: .12em; text-transform: uppercase;
	color: var(--muted); margin-top: auto; padding-top: 4px;
}

/* =========================================================================
   Contact form
   ========================================================================= */

.contact-layout {
	display: grid; gap: clamp(32px, 5vw, 64px);
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
	align-items: start;
}
@media (max-width: 860px) { .contact-layout { grid-template-columns: 1fr; } }

.contact-aside p { color: var(--light); }
.contact-aside .contact-point {
	display: flex; gap: 13px; align-items: flex-start;
	padding: 15px 0; border-top: 1px solid rgba(255,255,255,.09);
}
.contact-aside .contact-point:first-of-type { border-top: 0; }
.contact-point svg { width: 21px; height: 21px; color: var(--teal); margin-top: 3px; }
.contact-point strong { color: var(--white); display: block; font-size: .95rem; }
.contact-point span { color: var(--muted); font-size: .88rem; }

.contact-form {
	background: var(--white);
	padding: clamp(26px, 4vw, 38px);
	border-radius: var(--radius);
	box-shadow: var(--shadow-lg);
}

.field { margin-bottom: 18px; }
.field label {
	display: block; font-size: .84rem; font-weight: 600;
	color: var(--navy); margin-bottom: 6px;
}
.field .req { color: #D6455D; }

.field input[type="text"],
.field input[type="email"],
.field select,
.field textarea {
	width: 100%; padding: 12px 14px;
	font-family: var(--sans); font-size: .95rem; color: var(--ink);
	background: var(--white);
	border: 1px solid var(--border); border-radius: var(--radius-sm);
	transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.field textarea { min-height: 148px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
	outline: none; border-color: var(--teal);
	box-shadow: 0 0 0 3px var(--teal-tint);
}
.field-row { display: grid; gap: 18px; grid-template-columns: 1fr 1fr; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }

/* Honeypot — hidden from humans, present for bots. */
.jamd-hp {
	position: absolute !important; left: -9999px !important;
	width: 1px; height: 1px; overflow: hidden;
}

.form-note { font-size: .8rem; color: var(--muted); margin: 14px 0 0; }

.alert {
	padding: 13px 16px; border-radius: var(--radius-sm);
	margin-bottom: 22px; font-size: .92rem;
	border: 1px solid transparent;
}
.alert--ok    { background: var(--teal-tint); color: #04705C; border-color: rgba(0,212,170,.35); }
.alert--error { background: #FDECEF; color: #8E1F31; border-color: #F5C6CE; }

/* =========================================================================
   Single app page
   ========================================================================= */

.app-hero { background: var(--navy); color: var(--light); padding: clamp(52px, 7vw, 88px) 0; }
.app-hero__inner { display: flex; gap: 28px; align-items: center; flex-wrap: wrap; }
.app-hero__icon {
	width: 92px; height: 92px; border-radius: 20px; flex-shrink: 0;
	background: color-mix(in srgb, var(--accent, var(--teal)) 18%, transparent);
	display: grid; place-items: center; overflow: hidden;
	font-family: var(--serif); font-size: 2.2rem; color: var(--teal);
}
.app-hero__icon img { width: 100%; height: 100%; object-fit: cover; }
.app-hero h1 { color: var(--white); margin: 0 0 8px; font-size: clamp(2rem, 4vw, 3rem); }
.app-hero__tagline { color: var(--light); font-size: 1.08rem; margin: 0 0 18px; }
.app-hero .store-links .store-badge {
	background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.2); color: var(--white);
}
.app-hero .store-links .store-badge:hover { border-color: var(--teal); color: var(--teal); background: rgba(0,212,170,.1); }

/* =========================================================================
   Prose (pages: privacy, terms)
   ========================================================================= */

.page-hero { background: var(--navy); color: var(--light); padding: clamp(48px, 6vw, 78px) 0; }
.page-hero h1 { color: var(--white); margin: 0; }
.page-hero p { color: var(--muted); margin: 10px 0 0; font-size: .95rem; }

.prose { max-width: 760px; margin-inline: auto; }
.prose h2 { margin-top: 2em; font-size: 1.65rem; }
.prose h3 { margin-top: 1.6em; font-size: 1.22rem; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.15em; }
.prose li { margin-bottom: .45em; }
.prose table { width: 100%; border-collapse: collapse; margin: 0 0 1.5em; font-size: .93rem; }
.prose th, .prose td { text-align: left; padding: 11px 13px; border-bottom: 1px solid var(--border); }
.prose th { font-weight: 700; color: var(--navy); background: var(--surface); }
.prose blockquote {
	margin: 0 0 1.3em; padding: 4px 0 4px 20px;
	border-left: 3px solid var(--teal); color: var(--muted);
}
.prose code {
	font-family: var(--mono); font-size: .88em;
	background: var(--surface); padding: 2px 6px; border-radius: 4px;
}

/* =========================================================================
   CTA strip
   ========================================================================= */

.cta-strip { background: var(--navy-deep); color: var(--light); padding: clamp(48px, 6vw, 76px) 0; }
.cta-strip__inner {
	display: flex; align-items: center; justify-content: space-between;
	gap: 28px; flex-wrap: wrap;
}
.cta-strip h2 { color: var(--white); margin: 0 0 6px; }
.cta-strip p { margin: 0; color: var(--muted); }

/* =========================================================================
   Footer
   ========================================================================= */

.site-footer { background: var(--navy-deep); color: var(--muted); padding: clamp(48px, 6vw, 72px) 0 32px; }
.site-footer a { color: var(--light); }
.site-footer a:hover { color: var(--teal); }

.footer-grid {
	display: grid; gap: 36px;
	grid-template-columns: 1.6fr repeat(3, 1fr);
	margin-bottom: 44px;
}
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

.footer-brand p { font-size: .92rem; max-width: 320px; margin: 16px 0 0; }
.footer-col h4 {
	font-family: var(--sans); font-size: .76rem; font-weight: 700;
	letter-spacing: .14em; text-transform: uppercase;
	color: var(--white); margin: 0 0 14px;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 9px; font-size: .92rem; }

.footer-bottom {
	display: flex; justify-content: space-between; align-items: center;
	gap: 18px; flex-wrap: wrap;
	padding-top: 26px; border-top: 1px solid rgba(255,255,255,.08);
	font-size: .84rem;
}
.footer-bottom nav { display: flex; gap: 20px; flex-wrap: wrap; }

/* =========================================================================
   Print
   ========================================================================= */

@media print {
	.site-header, .site-footer, .cta-strip, .hero::before, .hero::after { display: none !important; }
	body { color: #000; font-size: 12pt; }
	.prose { max-width: none; }
	a::after { content: " (" attr(href) ")"; font-size: .85em; color: #555; }
}
