/* =============================================================
   Donald James Company — Shared Stylesheet
   site.css
   ============================================================= */

/* ===== BASE ===== */
html,
body {
	width: 100%;
	margin: 0;
	background: #000;
}

body {
	display: block;
	overflow-y: auto;
	color: #f0f0f0;
	font-family: Arial, Helvetica, sans-serif;
}

a, img {
	border: none;
}

/* ===== HOME PAGE (index.html) ===== */
body.home {
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	height: 100vh;
}

/*
 * Phone portrait fix: 100vh on mobile browsers includes browser chrome
 * (address bar, etc.), making the flex centre appear too low visually.
 * 100dvh (dynamic viewport height) recalculates whenever chrome appears
 * or hides, giving the true visible height.  padding-top: 44px with
 * box-sizing: border-box shifts the flex space so the logo is centred
 * in the area below the 44px fixed hamburger nav bar.
 */
@media (max-width: 767px) and (orientation: portrait) {
	body.home {
		height: 100vh;          /* fallback for browsers without dvh support */
		height: 100dvh;         /* dynamic: tracks actual visible viewport live */
		padding-top: 44px;      /* offset the fixed nav bar height */
		box-sizing: border-box; /* padding counts inside height, not added to it */
	}
}

.logo-and-badge {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	max-width: 100vw;
	max-height: 100vh;
	padding: 24px;
	box-sizing: border-box;
}

.logo-container {
	display: flex;
	justify-content: center;
	width: 100%;
}

#logo {
	display: block;
	max-width: 100%;
	height: auto;
}

/* ===== CONTENT PAGE LAYOUT ===== */
main {
	padding: 60px 24px 80px;
	max-width: 960px;
	margin: 0 auto;
	box-sizing: border-box;
}

h1 {
	color: #ffffff;
	margin-top: 32px;
	margin-bottom: 12px;
}

h2 {
	color: #e0e0e0;
	margin-top: 0;
	margin-bottom: 8px;
}

h3 {
	color: #c8c8c8;
	font-size: 1rem;
	font-weight: 600;
	margin-top: 20px;
	margin-bottom: 6px;
}

p {
	color: #c0c0c0;
	line-height: 1.7;
	margin-top: 0;
}

.section-card {
	background: #111;
	border: 1px solid #2a2a2a;
	border-radius: 6px;
	padding: 20px 24px;
	margin-bottom: 20px;
}

/* ===== BUTTON LINKS ===== */
.btn-link {
	display: inline-block;
	margin-top: 10px;
	padding: 10px 20px;
	background: #1a73e8;
	color: #fff !important;
	text-decoration: none !important;
	border-radius: 4px;
	font-size: 0.95rem;
}

.btn-link:hover {
	background: #1558b0;
}

.btn-link:active {
	font-weight: normal;
}

/* Right-align buttons within cards */
.section-card .btn-link,
.app-card-body .btn-link {
	display: block;
	width: fit-content;
	margin-left: auto;
	margin-top: 14px;
}

.btn-silver {
	display: block;
	width: fit-content;
	margin-left: auto;
	margin-top: 14px;
	padding: 10px 20px;
	background: #b0b0b0;
	color: #111 !important;
	text-decoration: none !important;
	border-radius: 4px;
	font-size: 0.95rem;
}

.btn-silver:hover {
	background: #d0d0d0;
}

.btn-silver:active {
	font-weight: normal;
}

/* ===== GOOGLE PLAY BADGE ===== */
.gplay-badge {
	display: block;
	margin-top: 10px;
	max-width: 100%;
	height: auto;
}

/* ===== APP CARD (android.html) ===== */
.app-card {
	display: flex;
	flex-direction: column;
	background: #1a1a1a;
	border: 1px solid #333;
	border-radius: 6px;
	overflow: hidden;
	margin-top: 16px;
}

.app-card-img {
	display: block;
	width: 100%;
	max-width: 220px;
	height: auto;
	margin: 16px auto 0;
}

.app-card-body {
	padding: 16px;
}

.app-card-title {
	color: #ffffff;
	font-size: 1.1rem;
	font-weight: bold;
	margin: 0 0 8px 0;
}

.app-card-release {
	color: #c8a000;
	font-size: 0.82rem;
	font-weight: 600;
	letter-spacing: 0.06em;
	margin: 0 0 10px 0;
	text-transform: uppercase;
}

.app-card-desc {
	color: #c0c0c0;
	line-height: 1.7;
	margin: 0;
	font-size: 0.95rem;
}

/* ===== APP HERO IMAGE (dedicated app page) ===== */
.app-hero-img {
	display: block;
	width: 100%;
	max-width: 300px;
	height: auto;
	margin: 0 auto 24px;
	border-radius: 12px;
}

/* Floated hero image — text wraps to the right */
.app-hero-float-card {
	overflow: hidden;
}

.app-hero-float-card .app-card-release {
	font-size: 1rem;
}

/* ===== ACCORDION INNER CARDS ===== */
.accordion-card {
	border: 1px solid #2a2a2a;
	border-radius: 6px;
	margin-top: 12px;
	overflow: hidden;
}

.accordion-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	background: #1a1a1a;
	border: none;
	cursor: pointer;
	padding: 16px 20px;
	text-align: left;
	gap: 12px;
}

.accordion-header:hover {
	background: #222;
}

.accordion-title {
	color: #e0e0e0;
	font-size: 1.15rem;
	font-weight: bold;
	margin: 0;
	flex: 1;
}

.accordion-arrow {
	color: #a0a0a0;
	font-size: 1rem;
	flex-shrink: 0;
	transition: transform 0.3s ease;
	display: inline-block;
}

.accordion-card.open .accordion-arrow {
	transform: rotate(180deg);
}

.accordion-body {
	max-height: 0;
	overflow: hidden;
	transition: max-height 0.35s ease;
	background: #141414;
}

.accordion-body-inner {
	padding: 16px 20px;
}

/* Schedule list inside accordion */
.accordion-schedule {
	list-style: none;
	margin: 0;
	padding: 0;
}

.accordion-schedule li {
	color: #c0c0c0;
	line-height: 1.7;
	padding: 10px 0;
	border-bottom: 1px solid #2a2a2a;
}

.accordion-schedule li:last-child {
	border-bottom: none;
	padding-bottom: 0;
}

.accordion-schedule-date {
	display: block;
	color: #c8a000;
	font-weight: 600;
	font-size: 0.88rem;
	letter-spacing: 0.04em;
	margin-bottom: 4px;
}

.app-hero-img-float {
	display: block;
	width: 256px;
	max-width: 100%;
	height: auto;
	border-radius: 12px;
	margin: 0 auto 20px;
}

@media (min-width: 600px) {
	.app-hero-img-float {
		float: left;
		width: 256px;
		max-width: 40%;
		margin: 0 24px 16px 0;
	}
}

@media (min-width: 600px) {
	.app-card {
		flex-direction: row;
		align-items: flex-start;
	}

	.app-card-img {
		margin: 16px;
		width: 180px;
		flex-shrink: 0;
	}

	.app-card-body {
		padding: 16px 16px 16px 0;
	}
}

/* ===== CONTACT METHODS (contact.html) ===== */
.contact-method {
	display: grid;
	grid-template-columns: 90px 1fr;
	align-items: center;
	gap: 12px;
	padding: 14px 0;
	border-bottom: 1px solid #222;
}

.contact-method:last-child {
	border-bottom: none;
}

.contact-method-label {
	color: #a0a0a0;
	font-weight: bold;
	font-family: Consolas, "Lucida Console", "Courier New", monospace;
}

.contact-method-value {
	color: #f0f0f0;
	font-family: Consolas, "Lucida Console", "Courier New", monospace;
}

.contact-method a:link,
.contact-method a:visited {
	color: #f0f0f0;
	text-decoration: none;
	font-family: Consolas, "Lucida Console", "Courier New", monospace;
}

.contact-method a:hover {
	color: #fefe00;
	text-decoration: underline;
}

.contact-method a:active {
	color: #fefefe;
	font-weight: bold;
}

/* ===== INLINE CONTENT LINKS ===== */
main a:link,
main a:visited {
	color: #6ab0f5;
	text-decoration: none;
}

main a:hover {
	color: #fefe00;
	text-decoration: underline;
}

main a:active {
	color: #fefefe;
	font-weight: normal;
	text-decoration: none;
}

/* ===== FOOTER ===== */
footer {
	margin: 0;
	padding: 0;
}

/* ===== CONTACT BAR ===== */
.contact-container {
	position: fixed;
	bottom: 10px;
	left: 50%;
	transform: translateX(-50%);
	width: 100%;
	background: rgba(0, 0, 0, 0.7);
	padding: 2px;
	border-radius: 5px;
	box-sizing: border-box;
	text-align: center;
	display: flex;
	justify-content: center;
}

.contact-container > * {
	width: 100%;
	display: flex;
	justify-content: space-evenly;
	align-items: center;
}

.contact-text {
	color: #f0f0f0;
	font-family: Consolas, "Lucida Console", "Courier New", monospace;
	font-size: 1em;
	margin: 0 10px;
}

.contact-text a:link,
.contact-text a:visited {
	color: #f0f0f0;
	text-decoration: none;
}

.contact-text a:active {
	color: #fefefe;
	font-weight: bold;
	text-decoration: none;
}

.contact-text a:hover {
	color: #fefe00;
	text-decoration: underline;
}

.contact-label {
	font-weight: bold;
	color: #a0a0a0;
	text-decoration: none;
}

/* ===== NAVIGATION ===== */
#site-nav {
	position: fixed;
	top: 0;
	left: 0;
	z-index: 1000;
	margin: 0;
	padding: 0;
}

/* Shared nav link states */
#nav-menu li a:link,
#nav-menu li a:visited {
	color: #f0f0f0;
	font-weight: normal;
	text-decoration: none;
	background: none;
}

#nav-menu li a:active {
	color: #fefefe;
	font-weight: bold;
	text-decoration: none;
	background: none;
}

#nav-menu li a:hover {
	color: #fefe00;
	font-weight: normal;
	text-decoration: underline;
	background: #333;
}

/* Mobile: hamburger (default / < 768px) */
#hamburger-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	background: #000;
	color: #fff;
	border: none;
	cursor: pointer;
	width: 44px;
	height: 44px;
	padding: 0;
	margin: 0;
	font-size: 22px;
	line-height: 1;
}

#hamburger-btn:hover,
#hamburger-btn:focus {
	background: #222;
	outline: 2px solid #fff;
	outline-offset: -2px;
}

#nav-menu {
	display: none;
	list-style: none;
	margin: 0;
	padding: 0;
	position: absolute;
	top: 100%;
	left: 0;
	background: #000;
	min-width: 220px;
	box-shadow: 2px 4px 8px rgba(0, 0, 0, 0.6);
	font-family: Arial, Helvetica, sans-serif;
	font-size: 1rem;
}

#nav-menu.open {
	display: block;
}

#nav-menu li {
	margin: 0;
	padding: 0;
}

#nav-menu li a {
	display: block;
	padding: 12px 20px;
	white-space: nowrap;
}

/* Submenu (mobile default) */
#nav-menu li.has-submenu {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
}

#nav-menu li.has-submenu > a {
	flex: 1;
}

.submenu-toggle {
	background: none;
	border: none;
	color: #f0f0f0;
	cursor: pointer;
	font-size: 11px;
	padding: 12px 14px;
	line-height: 1;
}

.submenu-toggle:hover,
.submenu-toggle:focus {
	color: #fefe00;
	background: #333;
}

.submenu {
	display: none;
	list-style: none;
	margin: 0;
	padding: 0;
	background: #111;
	width: 100%;
	flex-basis: 100%;
}

.has-submenu.submenu-open > .submenu {
	display: block;
}

/* 3rd level sub-submenu (mobile) */
.submenu .submenu {
	background: #1a1a1a;
	padding-left: 16px;
}

/* Desktop/Tablet: horizontal nav bar (>= 768px) */
@media (min-width: 768px) {
	#site-nav {
		width: 100%;
		background: rgba(0, 0, 0, 0.7); /* semi-transparent — matches mobile .site-logo-top */
		display: flex;
		flex-direction: row;
		align-items: center;
		height: 44px;
	}

	#hamburger-btn {
		display: none;
	}

	#nav-menu {
		display: flex !important;
		flex-direction: row;
		position: static;
		background: transparent;
		min-width: 0;
		box-shadow: none;
	}

	#nav-menu li a {
		padding: 0 10px;
		line-height: 44px;
		font-size: 0.9rem;
		white-space: nowrap;
	}

	.submenu-toggle {
		display: none;
	}

	#nav-menu li.has-submenu {
		position: relative;
		flex-wrap: nowrap;
	}

	.has-submenu > .submenu {
		position: absolute;
		top: 100%;
		left: 0;
		min-width: 200px;
		background: #000;
		box-shadow: 2px 4px 8px rgba(0, 0, 0, 0.6);
		z-index: 1001;
		width: auto;
		flex-basis: auto;
		display: none;
	}

	.has-submenu:hover > .submenu,
	.has-submenu.submenu-open > .submenu {
		display: block;
	}

	.submenu li a {
		padding: 0 16px !important;
		line-height: 44px;
	}

	/* 3rd level sub-submenu — flyout to the right */
	.submenu .has-submenu > .submenu {
		top: 0;
		left: 100%;
		z-index: 1002;
		background: #111;
	}
}

/* ===== SITE LOGO TOP (content pages) ===== */
/*
 * Full-width fixed strip at the very top of the page.
 * Semi-transparent background (rgba 0,0,0,0.7) matches the bottom contact bar.
 * padding: 5px 10px gives visible breathing room; with max-height 34px the
 * strip measures 44px total — flush with the nav bar height.
 *
 * pointer-events: none on the wrapper lets all nav clicks pass through the
 * background; only the logo <a> tag re-enables pointer events for the link.
 *
 * Hamburger mode (< 768px): logo centred horizontally in the full-width strip.
 * Horizontal-nav mode (>= 768px): logo right-aligned; left:0/right:0 are
 *   retained from the base rule so the background still spans the full window.
 *
 * vw / fixed units recalculate instantly on every resize and orientation
 * change — no JS needed.
 */

/* Base (all viewport widths) */
.site-logo-top {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 999;
	display: flex;
	justify-content: center;
	align-items: center;
	padding: 5px 10px;              /* breathing room; 5px × 2 + 34px image = 44px strip */
	background: rgba(0, 0, 0, 0.7); /* matches bottom contact bar opacity */
	pointer-events: none;           /* pass clicks through to nav in uncovered areas */
}

.site-logo-top a {
	pointer-events: auto;
	display: flex;
	align-items: center;
}

.site-logo-top img {
	display: block;
	width: auto;
	height: auto;
	max-height: 34px; /* 5px padding top + 34px + 5px padding bottom = 44px total */
	max-width: 55vw;  /* keeps logo clear of the 44px hamburger button */
}

/* Desktop / tablet: horizontal nav — logo right-aligned, background removed */
@media (min-width: 768px) {
	.site-logo-top {
		/* left: 0 / right: 0 kept from base — wrapper still spans full width   */
		/* but background is transparent: the nav bar's own #000 is the backdrop */
		background: transparent;
		justify-content: flex-end;
		padding-right: 10px; /* matches nav link horizontal padding (0 10px) */
		z-index: 1001;       /* renders image above #site-nav (z-index: 1000)  */
	}

	.site-logo-top img {
		max-width: 35vw;  /* ~35% of viewport ≈ 30-40% of home-page hero scale */
		max-height: 34px;
	}
}
