/* ============================================================
   CruiseTravelTips — main stylesheet
   Mobile-first. System font stack only (no webfonts).
   ============================================================ */

:root {
	--navy: #0a2e4f;
	--navy-dark: #071f36;
	--teal: #0e9aa7;
	--teal-dark: #0b7d87;
	--sand: #f7f3ea;
	--coral: #ff6b5b;
	--coral-dark: #e55445;
	--ink: #1d2a36;
	--muted: #5d6f7e;
	--line: #e3ded2;
	--white: #ffffff;
	--radius: 12px;
	--wrap: 1140px;
	--article: 760px;
	--shadow: 0 2px 10px rgba(10, 46, 79, 0.08);
}

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

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

body {
	margin: 0;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	font-size: 1rem;
	line-height: 1.6;
	color: var(--ink);
	background: var(--white);
}

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

a {
	color: var(--teal-dark);
	text-decoration: none;
}
a:hover,
a:focus {
	color: var(--navy);
	text-decoration: underline;
}

h1, h2, h3, h4, h5, h6 {
	color: var(--navy);
	line-height: 1.25;
	margin: 1.5em 0 0.6em;
}

p, ul, ol {
	margin: 0 0 1.25em;
}

.wrap {
	max-width: var(--wrap);
	margin: 0 auto;
	padding: 0 20px;
}

/* ---------- Accessibility ---------- */
.skip-link {
	position: absolute;
	left: -9999px;
	top: 0;
	background: var(--navy);
	color: var(--white);
	padding: 10px 16px;
	z-index: 100;
	border-radius: 0 0 8px 0;
}
.skip-link:focus {
	left: 0;
	color: var(--white);
}

/* ---------- Top bar ---------- */
.topbar {
	background: var(--navy-dark);
	color: rgba(255, 255, 255, 0.85);
	font-size: 0.8rem;
}
.topbar-inner {
	padding-top: 6px;
	padding-bottom: 6px;
}
.topbar-tagline {
	display: block;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

/* ---------- Header ---------- */
.site-header {
	background: var(--navy);
	position: sticky;
	top: 0;
	z-index: 50;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}
.header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding-top: 12px;
	padding-bottom: 12px;
}
.site-branding .custom-logo {
	max-height: 56px;
	width: auto;
}
.site-wordmark {
	display: inline-block;
	line-height: 1.1;
	text-decoration: none;
}
.site-wordmark:hover {
	text-decoration: none;
}
.wordmark-main {
	display: block;
	font-size: 1.45rem;
	font-weight: 800;
	letter-spacing: -0.5px;
	color: var(--white);
}
.wordmark-accent {
	color: var(--teal);
}
.wordmark-sub {
	display: block;
	font-size: 0.7rem;
	font-weight: 500;
	letter-spacing: 1.5px;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.65);
	margin-top: 2px;
}

/* Hamburger */
.menu-toggle {
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 5px;
	background: none;
	border: 1px solid rgba(255, 255, 255, 0.35);
	border-radius: 8px;
	padding: 10px 12px;
	cursor: pointer;
}
.menu-toggle-bar {
	display: block;
	width: 22px;
	height: 2px;
	background: var(--white);
	border-radius: 2px;
	transition: transform 0.2s ease, opacity 0.2s ease;
}
.menu-toggle[aria-expanded="true"] .menu-toggle-bar:nth-child(1) {
	transform: translateY(7px) rotate(45deg);
}
.menu-toggle[aria-expanded="true"] .menu-toggle-bar:nth-child(2) {
	opacity: 0;
}
.menu-toggle[aria-expanded="true"] .menu-toggle-bar:nth-child(3) {
	transform: translateY(-7px) rotate(-45deg);
}

/* Primary nav */
.main-nav {
	display: none;
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	background: var(--navy-dark);
	border-top: 1px solid rgba(255, 255, 255, 0.12);
}
.main-nav.open {
	display: block;
}
.main-nav ul {
	list-style: none;
	margin: 0;
	padding: 8px 20px 16px;
}
.main-nav li {
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.main-nav li:last-child {
	border-bottom: none;
}
.main-nav a {
	display: block;
	color: var(--white);
	font-weight: 600;
	font-size: 0.95rem;
	padding: 12px 4px;
}
.main-nav a:hover {
	color: var(--teal);
	text-decoration: none;
}

/* ---------- Hero ---------- */
.hero {
	background: var(--navy) linear-gradient(135deg, var(--navy) 0%, #10456f 60%, var(--teal-dark) 130%);
	color: var(--white);
	padding: 64px 0 72px;
	text-align: center;
}
.hero-kicker {
	display: inline-block;
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 2px;
	text-transform: uppercase;
	color: var(--teal);
	background: rgba(255, 255, 255, 0.1);
	border: 1px solid rgba(255, 255, 255, 0.2);
	padding: 6px 14px;
	border-radius: 999px;
	margin: 0 0 18px;
}
.hero-title {
	color: var(--white);
	font-size: 2rem;
	font-weight: 800;
	letter-spacing: -0.5px;
	margin: 0 0 16px;
	max-width: 720px;
	margin-left: auto;
	margin-right: auto;
}
.hero-sub {
	color: rgba(255, 255, 255, 0.82);
	font-size: 1.05rem;
	max-width: 620px;
	margin: 0 auto 28px;
}

/* ---------- Buttons ---------- */
.btn {
	display: inline-block;
	font-weight: 700;
	font-size: 1rem;
	padding: 14px 30px;
	border-radius: 999px;
	border: none;
	cursor: pointer;
	text-decoration: none;
	transition: background 0.2s ease, transform 0.15s ease;
}
.btn:hover {
	text-decoration: none;
	transform: translateY(-1px);
}
.btn-cta {
	background: var(--coral);
	color: var(--white);
}
.btn-cta:hover,
.btn-cta:focus {
	background: var(--coral-dark);
	color: var(--white);
}

/* ---------- Sections ---------- */
.latest-section {
	background: var(--sand);
	padding: 56px 0 64px;
}
.section-title {
	font-size: 1.6rem;
	font-weight: 800;
	margin: 0 0 28px;
	position: relative;
	padding-bottom: 12px;
}
.section-title::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: 0;
	width: 56px;
	height: 4px;
	border-radius: 4px;
	background: var(--teal);
}

/* ---------- Post cards ---------- */
.post-grid {
	display: grid;
	gap: 24px;
	grid-template-columns: 1fr;
}
.post-card {
	background: var(--white);
	border-radius: var(--radius);
	overflow: hidden;
	box-shadow: var(--shadow);
	display: flex;
	flex-direction: column;
	border: 1px solid var(--line);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.post-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 8px 24px rgba(10, 46, 79, 0.14);
}
.post-card-media {
	display: block;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background: var(--sand);
}
.post-card-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.post-card-placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 100%;
	font-size: 3rem;
	color: var(--teal);
}
.post-card-body {
	padding: 20px;
	display: flex;
	flex-direction: column;
	flex: 1;
}
.cat-badge {
	display: inline-block;
	align-self: flex-start;
	background: var(--teal);
	color: var(--white);
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.8px;
	text-transform: uppercase;
	padding: 5px 12px;
	border-radius: 999px;
	margin-bottom: 12px;
}
.cat-badge:hover {
	background: var(--teal-dark);
	color: var(--white);
	text-decoration: none;
}
.post-card-title {
	font-size: 1.15rem;
	margin: 0 0 10px;
}
.post-card-title a {
	color: var(--navy);
}
.post-card-title a:hover {
	color: var(--teal-dark);
	text-decoration: none;
}
.post-card-excerpt {
	color: var(--muted);
	font-size: 0.93rem;
	margin-bottom: 14px;
}
.post-card-excerpt p {
	margin: 0;
}
.post-card-meta {
	margin: auto 0 0;
	font-size: 0.82rem;
	color: var(--muted);
}
.meta-sep {
	margin: 0 6px;
}

/* ---------- Content area ---------- */
.content-area {
	padding: 40px 0 64px;
}
.page-header {
	margin-bottom: 32px;
}
.page-title {
	font-size: 2rem;
	margin: 0;
}
.archive-description {
	color: var(--muted);
	margin-top: 10px;
}

/* ---------- Single article ---------- */
.single-layout {
	display: block;
}
.single-article {
	max-width: var(--article);
	margin: 0 auto;
}
.single-header {
	margin-bottom: 24px;
}
.single-title {
	font-size: 2.1rem;
	letter-spacing: -0.5px;
	margin: 14px 0 12px;
}
.single-meta {
	color: var(--muted);
	font-size: 0.9rem;
	margin: 0;
}
.single-featured {
	margin: 0 0 32px;
	border-radius: var(--radius);
	overflow: hidden;
	box-shadow: var(--shadow);
}
.single-featured img {
	width: 100%;
}

.entry-content {
	font-size: 1.06rem;
	line-height: 1.75;
}
.entry-content > *:first-child {
	margin-top: 0;
}
.entry-content h2 {
	font-size: 1.55rem;
	border-left: 5px solid var(--teal);
	padding-left: 16px;
	margin-top: 2.2em;
}
.entry-content h3 {
	font-size: 1.25rem;
	margin-top: 1.8em;
}
.entry-content h4 {
	font-size: 1.1rem;
}
.entry-content a {
	font-weight: 600;
}
.entry-content figure {
	margin: 2em 0;
}
.entry-content figcaption,
figcaption {
	font-size: 0.85rem;
	color: var(--muted);
	text-align: center;
	margin-top: 8px;
}
.entry-content blockquote {
	border-left: 4px solid var(--coral);
	background: var(--sand);
	margin: 2em 0;
	padding: 20px 24px;
	border-radius: 0 var(--radius) var(--radius) 0;
	font-style: italic;
	color: var(--navy);
}
.entry-content blockquote p:last-child {
	margin-bottom: 0;
}
.entry-content ul,
.entry-content ol {
	padding-left: 24px;
}
.entry-content li {
	margin-bottom: 0.5em;
}

/* Tables */
.entry-content table {
	width: 100%;
	border-collapse: collapse;
	margin: 2em 0;
	font-size: 0.95rem;
	display: block;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}
.entry-content thead {
	background: var(--navy);
	color: var(--white);
}
.entry-content th,
.entry-content td {
	padding: 12px 16px;
	border: 1px solid var(--line);
	text-align: left;
	white-space: nowrap;
}
.entry-content tbody tr:nth-child(even) {
	background: var(--sand);
}

/* Table of contents */
ul.toc,
.entry-content ul.toc {
	list-style: none;
	background: var(--sand);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 20px 24px;
	margin: 2em 0;
}
ul.toc > li:first-child {
	font-weight: 800;
	color: var(--navy);
	margin-bottom: 8px;
}
ul.toc ul {
	margin: 8px 0 0;
	padding-left: 20px;
}

/* FAQ */
.faq,
.entry-content .faq {
	background: var(--white);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 20px 24px;
	margin: 1.25em 0;
	box-shadow: var(--shadow);
}
.faq h3,
.faq h4,
.entry-content .faq h3,
.entry-content .faq h4 {
	margin-top: 0;
	font-size: 1.08rem;
	color: var(--navy);
}
.faq p:last-child {
	margin-bottom: 0;
}

/* Page links */
.page-links {
	margin: 2em 0;
	font-weight: 700;
}
.page-links a,
.page-links > span:not(:first-child) {
	display: inline-block;
	padding: 6px 14px;
	border: 1px solid var(--line);
	border-radius: 8px;
	margin: 0 4px;
}

/* Tags */
.post-tags {
	font-size: 0.9rem;
	color: var(--muted);
	margin-top: 2em;
}
.post-tags span {
	font-weight: 700;
	color: var(--navy);
}

/* ---------- Author box ---------- */
.author-box {
	display: flex;
	gap: 18px;
	background: var(--sand);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 24px;
	margin: 40px 0;
	align-items: flex-start;
}
.author-avatar img {
	border-radius: 50%;
	max-width: 72px;
}
.author-name {
	font-weight: 800;
	color: var(--navy);
	margin: 0 0 6px;
	font-size: 1.05rem;
}
.author-bio {
	margin: 0;
	color: var(--muted);
	font-size: 0.93rem;
}

/* ---------- Post nav ---------- */
.post-nav {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin: 0 0 48px;
}
.post-nav-prev a,
.post-nav-next a {
	display: block;
	background: var(--white);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 16px 20px;
	font-weight: 600;
	color: var(--navy);
}
.post-nav-prev a:hover,
.post-nav-next a:hover {
	border-color: var(--teal);
	text-decoration: none;
}

/* ---------- Related posts ---------- */
.related-posts {
	margin: 0 0 48px;
}

/* ---------- Sidebar ---------- */
.blog-sidebar {
	margin-top: 48px;
}
.widget {
	background: var(--sand);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 22px;
	margin-bottom: 24px;
}
.widget-title {
	font-size: 1.05rem;
	margin: 0 0 14px;
}
.widget ul {
	list-style: none;
	margin: 0;
	padding: 0;
}
.widget li {
	margin-bottom: 10px;
}

/* ---------- Pagination ---------- */
.pagination,
.nav-links {
	margin-top: 40px;
	text-align: center;
}
.page-numbers {
	display: inline-block;
	padding: 10px 16px;
	margin: 0 4px;
	border: 1px solid var(--line);
	border-radius: 8px;
	font-weight: 600;
	color: var(--navy);
	background: var(--white);
}
a.page-numbers:hover {
	border-color: var(--teal);
	text-decoration: none;
}
.page-numbers.current {
	background: var(--navy);
	color: var(--white);
	border-color: var(--navy);
}

/* ---------- Comments ---------- */
.comments-area {
	max-width: var(--article);
	margin: 0 auto 48px;
	border-top: 2px solid var(--line);
	padding-top: 32px;
}
.comments-title {
	font-size: 1.4rem;
}
.comment-list {
	list-style: none;
	margin: 0 0 32px;
	padding: 0;
}
.comment-list .children {
	list-style: none;
	padding-left: 24px;
	margin-top: 20px;
}
.comment-body {
	background: var(--white);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 20px;
	margin-bottom: 20px;
}
.comment-meta {
	font-size: 0.85rem;
	color: var(--muted);
	margin-bottom: 10px;
}
.comment-author .avatar {
	border-radius: 50%;
	vertical-align: middle;
	margin-right: 8px;
}
.comment-reply-link {
	font-weight: 700;
	font-size: 0.88rem;
}

/* ---------- Forms ---------- */
input[type="text"],
input[type="email"],
input[type="url"],
input[type="search"],
textarea {
	width: 100%;
	max-width: 100%;
	padding: 12px 16px;
	border: 1px solid var(--line);
	border-radius: 8px;
	font-size: 1rem;
	font-family: inherit;
	background: var(--white);
}
input:focus,
textarea:focus {
	outline: 2px solid var(--teal);
	border-color: var(--teal);
}
button,
input[type="submit"] {
	background: var(--coral);
	color: var(--white);
	border: none;
	border-radius: 999px;
	padding: 12px 28px;
	font-size: 1rem;
	font-weight: 700;
	cursor: pointer;
	font-family: inherit;
}
button:hover,
input[type="submit"]:hover {
	background: var(--coral-dark);
}
.search-form {
	display: flex;
	gap: 10px;
	max-width: 480px;
	margin: 20px 0;
}
.search-form label {
	flex: 1;
}
.search-form .search-submit {
	white-space: nowrap;
}
.comment-form label {
	display: block;
	font-weight: 600;
	margin-bottom: 6px;
}
.comment-form p {
	margin-bottom: 16px;
}

/* ---------- Footer ---------- */
.site-footer {
	background: var(--navy);
	color: rgba(255, 255, 255, 0.82);
}
.footer-grid {
	display: grid;
	gap: 32px;
	grid-template-columns: 1fr;
	padding-top: 48px;
	padding-bottom: 40px;
}
.footer-wordmark {
	font-size: 1.4rem;
	font-weight: 800;
	color: var(--white);
	margin: 0 0 12px;
}
.footer-wordmark span {
	color: var(--teal);
}
.footer-logo img {
	max-height: 56px;
	width: auto;
	margin-bottom: 12px;
}
.footer-blurb {
	font-size: 0.92rem;
	margin: 0;
	max-width: 340px;
}
.footer-heading {
	color: var(--white);
	font-size: 1.05rem;
	margin: 0 0 16px;
}
.footer-menu,
.footer-cats {
	list-style: none;
	margin: 0;
	padding: 0;
}
.footer-menu li,
.footer-cats li {
	margin-bottom: 10px;
}
.footer-menu a,
.footer-cats a {
	color: rgba(255, 255, 255, 0.82);
	font-size: 0.93rem;
}
.footer-menu a:hover,
.footer-cats a:hover {
	color: var(--teal);
	text-decoration: none;
}
.footer-bottom {
	background: var(--navy-dark);
	text-align: center;
	font-size: 0.85rem;
	padding: 16px 0;
}
.footer-bottom p {
	margin: 0;
}

/* ---------- 404 ---------- */
.not-found {
	text-align: center;
}
.not-found-emoji {
	font-size: 4rem;
	margin: 0 0 8px;
}
.not-found .search-form {
	margin-left: auto;
	margin-right: auto;
}
.not-found .post-grid {
	text-align: left;
	margin-top: 24px;
}
.back-home {
	margin-top: 32px;
}

/* ---------- Static pages ---------- */
.page-narrow {
	max-width: var(--article);
	margin: 0 auto;
}
.page-featured {
	margin: 0 0 32px;
	border-radius: var(--radius);
	overflow: hidden;
}

/* ============================================================
   Breakpoint: 720px
   ============================================================ */
@media (min-width: 720px) {
	.hero {
		padding: 88px 0 96px;
	}
	.hero-title {
		font-size: 2.7rem;
	}
	.post-grid {
		grid-template-columns: repeat(2, 1fr);
	}
	.post-grid-3 {
		grid-template-columns: repeat(2, 1fr);
	}
	.post-nav {
		flex-direction: row;
	}
	.post-nav-prev,
	.post-nav-next {
		flex: 1;
	}
	.post-nav-next {
		text-align: right;
	}
	.footer-grid {
		grid-template-columns: 1.4fr 1fr 1fr;
	}
	.single-title {
		font-size: 2.5rem;
	}
}

/* ============================================================
   Breakpoint: 1024px
   ============================================================ */
@media (min-width: 1024px) {
	.menu-toggle {
		display: none;
	}
	.main-nav {
		display: block;
		position: static;
		background: none;
		border-top: none;
	}
	.main-nav ul {
		display: flex;
		gap: 4px;
		padding: 0;
	}
	.main-nav li {
		border-bottom: none;
	}
	.main-nav a {
		padding: 10px 14px;
		border-radius: 8px;
	}
	.main-nav a:hover {
		background: rgba(255, 255, 255, 0.08);
	}
	.post-grid {
		grid-template-columns: repeat(3, 1fr);
	}
	.post-grid-3 {
		grid-template-columns: repeat(3, 1fr);
	}
	.single-layout {
		display: grid;
		grid-template-columns: minmax(0, 1fr) 300px;
		gap: 48px;
		align-items: start;
	}
	.single-article {
		margin: 0;
		max-width: none;
	}
	.blog-sidebar {
		margin-top: 0;
		position: sticky;
		top: 100px;
	}
	.hero-title {
		font-size: 3.1rem;
	}
}
