/**
 * Tidehaven — mobile-first coastal outdoor theme
 * No external font CDN — works offline after install.
 */

:root {
	--sea: #1a5f6e;
	--sea-deep: #0f3d47;
	--sand: #d4a574;
	--sand-hover: #c08f5c;
	--mist: #eef4f5;
	--ink: #1c2b2f;
	--ink-soft: #3d5258;
	--text: #243338;
	--muted: #6a7d84;
	--white: #ffffff;
	--line: #d5e2e5;
	--overlay: rgba(15, 61, 71, 0.58);
	--font-sans: "Trebuchet MS", "Segoe UI", "Avenir Next", sans-serif;
	--font-display: "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif;
	--radius: 6px;
	--radius-btn: 4px;
	--shadow: 0 6px 22px rgba(15, 61, 71, 0.08);
	--container: min(100% - 2rem, 1180px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
	margin: 0;
	font-family: var(--font-sans);
	font-size: 15px;
	line-height: 1.65;
	color: var(--text);
	background: var(--white);
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--sea); }

h1, h2, h3, h4, h5, h6 {
	font-family: var(--font-display);
	font-weight: 600;
	line-height: 1.25;
	margin: 0 0 0.5em;
	color: var(--ink);
}

.container { width: var(--container); margin-inline: auto; }

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	border: 0;
}

.announce-bar {
	background: var(--sea-deep);
	color: var(--white);
	text-align: center;
	padding: 0.55rem 1rem;
	font-size: 0.78rem;
	font-weight: 600;
	letter-spacing: 0.02em;
}

.announce-bar p { margin: 0; }

.btn {
	display: inline-block;
	padding: 0.85rem 1.6rem;
	font-family: var(--font-sans);
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	border-radius: var(--radius-btn);
	border: none;
	cursor: pointer;
	transition: background 0.2s, transform 0.2s;
}

.btn-primary {
	background: var(--sand);
	color: var(--ink);
}

.btn-primary:hover {
	background: var(--sand-hover);
	color: var(--ink);
}

.btn-light {
	background: var(--white);
	color: var(--sea-deep);
}

.btn-light:hover {
	background: var(--mist);
	color: var(--sea-deep);
}

.hero-section {
	position: relative;
	min-height: 88vh;
	background-size: cover;
	background-position: center;
	display: flex;
	flex-direction: column;
	color: var(--white);
}

.hero-overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(15, 61, 71, 0.25), rgba(15, 61, 71, 0.72));
}

.hero-inner {
	position: relative;
	z-index: 1;
	flex: 1;
	display: flex;
	flex-direction: column;
	padding: 0 1rem 2rem;
}

.hero-header {
	display: grid;
	grid-template-columns: 44px 1fr 44px;
	align-items: center;
	gap: 0.5rem;
	padding: 0.75rem 0;
}

.hero-header .site-title {
	margin: 0;
	font-size: 1.05rem;
	text-align: center;
	color: var(--white);
}

.hero-header .site-title a { color: var(--white); }
.hero-header .site-logo-mark { color: var(--sand); margin-right: 0.25rem; }

.header-cart {
	text-align: center;
	font-size: 1.1rem;
	line-height: 1;
	color: var(--white);
}

.hero-nav {
	display: none;
	background: rgba(255, 255, 255, 0.97);
	border-radius: var(--radius);
	margin-top: 0.5rem;
	padding: 0.5rem 0;
}

.hero-nav.is-open { display: block; }

.hero-menu {
	list-style: none;
	margin: 0;
	padding: 0;
}

.hero-menu a {
	display: block;
	padding: 0.75rem 1rem;
	color: var(--ink);
	font-size: 0.88rem;
	font-weight: 600;
	border-bottom: 1px solid var(--line);
}

.hero-content {
	flex: 1;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	padding-bottom: 2rem;
	max-width: 560px;
}

.hero-kicker {
	font-size: 0.72rem;
	text-transform: uppercase;
	letter-spacing: 0.14em;
	font-weight: 700;
	opacity: 0.92;
	margin: 0 0 0.5rem;
	color: var(--sand);
}

.hero-title {
	font-size: clamp(1.7rem, 5.2vw, 2.8rem);
	margin-bottom: 0.75rem;
	color: var(--white);
}

.hero-subtitle {
	font-size: 0.95rem;
	opacity: 0.92;
	margin: 0 0 1.5rem;
	line-height: 1.6;
	color: var(--white);
}

.nav-toggle {
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 5px;
	width: 44px;
	height: 44px;
	padding: 0;
	border: none;
	background: transparent;
	cursor: pointer;
}

.nav-toggle span {
	display: block;
	width: 22px;
	height: 2px;
	background: var(--ink);
	transition: transform 0.2s, opacity 0.2s;
}

.nav-toggle--light span { background: var(--white); }
.nav-toggle.is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-active span:nth-child(2) { opacity: 0; }
.nav-toggle.is-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.site-header--inner {
	position: sticky;
	top: 0;
	z-index: 900;
	background: var(--white);
	border-bottom: 1px solid var(--line);
	box-shadow: var(--shadow);
}

.header-bar {
	display: grid;
	grid-template-columns: 44px 1fr auto;
	align-items: center;
	gap: 0.5rem;
	padding: 0.75rem 1rem;
}

.site-header--inner .site-title {
	margin: 0;
	font-size: 1rem;
	text-align: center;
}

.site-logo-mark { color: var(--sea); margin-right: 0.25rem; }

.header-cta {
	font-size: 0.72rem;
	font-weight: 700;
	text-transform: uppercase;
	padding: 0.5rem 0.95rem;
	background: var(--sea);
	color: var(--white);
	border-radius: var(--radius-btn);
	white-space: nowrap;
}

.header-cta:hover { background: var(--sea-deep); color: var(--white); }

.main-navigation {
	display: none;
	padding: 0 1rem 1rem;
	border-top: 1px solid var(--line);
}

.main-navigation.is-open { display: block; }

.primary-menu {
	list-style: none;
	margin: 0;
	padding: 0;
}

.primary-menu a {
	display: block;
	padding: 0.75rem 0;
	border-bottom: 1px solid var(--line);
	font-size: 0.85rem;
	font-weight: 600;
}

.promo-cards {
	padding: 2rem 0;
	background: var(--mist);
}

.promo-cards-grid {
	display: grid;
	gap: 1.25rem;
}

.promo-card {
	background: var(--white);
	border-radius: var(--radius);
	overflow: hidden;
	box-shadow: var(--shadow);
}

.promo-card-image img {
	width: 100%;
	height: 200px;
	object-fit: cover;
}

.promo-card-body { padding: 1.25rem; }

.promo-kicker {
	font-size: 0.7rem;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: var(--sea);
	font-weight: 700;
}

.promo-card-body h3 {
	font-size: 1.15rem;
	margin: 0.35rem 0 0.5rem;
}

.promo-card-body p {
	font-size: 0.88rem;
	color: var(--muted);
	margin: 0 0 0.75rem;
}

.promo-link {
	font-size: 0.82rem;
	font-weight: 700;
	color: var(--sea);
}

.section { padding: 3rem 0; }

.section-title {
	font-size: clamp(1.45rem, 4vw, 2rem);
	text-align: center;
	margin-bottom: 0.35rem;
}

.section-sub {
	text-align: center;
	color: var(--muted);
	font-size: 0.9rem;
	margin: 0 0 2rem;
}

.section-kicker {
	text-align: center;
	font-size: 0.72rem;
	text-transform: uppercase;
	letter-spacing: 0.12em;
	color: var(--sea);
	font-weight: 700;
	margin-bottom: 0.35rem;
}

.categories-scroll {
	display: flex;
	gap: 1rem;
	overflow-x: auto;
	padding-bottom: 0.5rem;
	-webkit-overflow-scrolling: touch;
	scroll-snap-type: x mandatory;
}

.category-card {
	flex: 0 0 120px;
	text-align: center;
	scroll-snap-align: start;
}

.category-image {
	width: 100px;
	height: 100px;
	border-radius: 50%;
	overflow: hidden;
	margin: 0 auto 0.65rem;
	border: 2px solid var(--line);
}

.category-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.category-card h4 {
	font-size: 0.85rem;
	margin-bottom: 0.15rem;
	font-family: var(--font-sans);
	font-weight: 700;
}

.category-count {
	font-size: 0.72rem;
	color: var(--muted);
}

.dual-banners { padding: 0 0 2rem; }

.dual-banners-grid {
	display: grid;
	gap: 1rem;
}

.dual-banner {
	position: relative;
	min-height: 220px;
	border-radius: var(--radius);
	background-size: cover;
	background-position: center;
	overflow: hidden;
	display: block;
}

.dual-banner-overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgba(15, 61, 71, 0.72), rgba(15, 61, 71, 0.2));
}

.dual-banner-text {
	position: relative;
	z-index: 1;
	color: var(--white);
	padding: 1.5rem;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	min-height: 220px;
}

.dual-banner-text span:first-child {
	font-size: 0.72rem;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	opacity: 0.85;
}

.dual-banner-text h3 {
	font-size: 1.25rem;
	margin: 0.35rem 0;
	color: var(--white);
}

.banner-link {
	font-size: 0.82rem;
	font-weight: 700;
}

.products-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 1rem;
}

.product-card {
	background: var(--white);
	border-radius: var(--radius);
	overflow: hidden;
	box-shadow: var(--shadow);
}

.product-image { position: relative; }

.product-image img {
	width: 100%;
	aspect-ratio: 4 / 5;
	object-fit: cover;
}

.product-badge {
	position: absolute;
	top: 0.65rem;
	left: 0.65rem;
	background: var(--sea);
	color: var(--white);
	font-size: 0.65rem;
	font-weight: 700;
	text-transform: uppercase;
	padding: 0.25rem 0.55rem;
	border-radius: 3px;
}

.product-body { padding: 0.85rem; }

.product-body h4 {
	font-size: 0.85rem;
	font-family: var(--font-sans);
	font-weight: 700;
	margin-bottom: 0.35rem;
	line-height: 1.35;
}

.product-price {
	font-size: 0.88rem;
	font-weight: 700;
	color: var(--sea);
}

.trust-section { background: var(--mist); }

.trust-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 1.25rem;
}

.trust-item { text-align: center; }

.trust-icon {
	font-size: 1.6rem;
	display: block;
	margin-bottom: 0.5rem;
}

.trust-item h4 {
	font-size: 0.85rem;
	font-family: var(--font-sans);
	font-weight: 700;
	margin-bottom: 0.25rem;
}

.trust-item p {
	font-size: 0.75rem;
	color: var(--muted);
	margin: 0;
}

.cta-banner {
	position: relative;
	background-size: cover;
	background-position: center;
	padding: 3.5rem 1rem;
	text-align: center;
	color: var(--white);
}

.cta-overlay {
	position: absolute;
	inset: 0;
	background: rgba(15, 61, 71, 0.78);
}

.cta-inner { position: relative; z-index: 1; }

.cta-inner h2 {
	font-size: clamp(1.35rem, 4vw, 2rem);
	margin-bottom: 0.5rem;
	color: var(--white);
}

.cta-inner p {
	opacity: 0.92;
	margin: 0 0 1.25rem;
	font-size: 0.92rem;
	color: var(--white);
}

.brands-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 1rem;
}

.brand-card {
	text-align: center;
	background: var(--mist);
	border-radius: var(--radius);
	overflow: hidden;
	padding-bottom: 0.85rem;
}

.brand-card img {
	width: 100%;
	height: 100px;
	object-fit: cover;
	margin-bottom: 0.65rem;
}

.brand-card h4 {
	font-size: 0.85rem;
	font-family: var(--font-sans);
	font-weight: 700;
	margin: 0;
}

.about-grid {
	display: grid;
	gap: 1.5rem;
}

.about-copy p {
	color: var(--muted);
	font-size: 0.92rem;
}

.about-image img {
	border-radius: var(--radius);
	width: 100%;
}

.contact-section { background: var(--mist); }

.contact-grid {
	display: grid;
	gap: 2rem;
}

.contact-form input,
.contact-form textarea {
	width: 100%;
	padding: 0.85rem 1rem;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	font-family: var(--font-sans);
	font-size: 0.9rem;
	margin-bottom: 0.75rem;
	background: var(--white);
}

.contact-form textarea {
	resize: vertical;
	min-height: 120px;
}

.form-feedback { font-size: 0.85rem; margin-top: 0.5rem; }
.form-feedback.is-success { color: var(--sea); }
.form-feedback.is-error { color: #b33a3a; }

.contact-details {
	list-style: none;
	padding: 0;
	margin: 0 0 1rem;
}

.contact-details li {
	padding: 0.35rem 0;
	font-size: 0.9rem;
}

.contact-hours {
	font-size: 0.85rem;
	color: var(--muted);
}

.blog-carousel {
	position: relative;
	padding: 0 2.5rem;
}

.carousel-track-wrap { overflow: hidden; }

.carousel-track {
	display: flex;
	gap: 1rem;
	transition: transform 0.35s ease;
}

.blog-card {
	flex: 0 0 calc(100% - 0.5rem);
	background: var(--white);
	border-radius: var(--radius);
	overflow: hidden;
	box-shadow: var(--shadow);
}

.blog-card-image img {
	width: 100%;
	height: 180px;
	object-fit: cover;
}

.blog-card-body { padding: 1rem; }

.blog-card-body h4,
.blog-card-body h2 {
	font-size: 0.95rem;
	margin-bottom: 0.35rem;
}

.blog-cat {
	font-size: 0.7rem;
	text-transform: uppercase;
	color: var(--sea);
	font-weight: 700;
}

.blog-meta {
	font-size: 0.75rem;
	color: var(--muted);
	margin-bottom: 0.5rem;
}

.read-more {
	font-size: 0.82rem;
	font-weight: 700;
	color: var(--sea);
}

.carousel-btn {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 36px;
	height: 36px;
	border: 1px solid var(--line);
	border-radius: 50%;
	background: var(--white);
	font-size: 1.25rem;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 2;
}

.carousel-prev { left: 0; }
.carousel-next { right: 0; }

.demo-note {
	text-align: center;
	font-size: 0.8rem;
	color: var(--muted);
	margin-top: 1rem;
}

.site-footer {
	background: var(--ink);
	color: rgba(255, 255, 255, 0.85);
}

.footer-top { padding: 2.5rem 0 1.5rem; }

.footer-grid {
	display: grid;
	gap: 2rem;
}

.footer-brand .site-title a { color: var(--white); }
.footer-brand .site-logo-mark { color: var(--sand); }

.footer-tagline {
	font-size: 0.85rem;
	opacity: 0.75;
	margin: 0.5rem 0 0;
}

.footer-heading {
	font-size: 0.82rem;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--white);
	margin-bottom: 0.75rem;
	font-family: var(--font-sans);
}

.footer-menu,
.footer-contact-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.footer-menu a,
.footer-contact-list a,
.footer-contact-list li {
	font-size: 0.85rem;
	padding: 0.25rem 0;
	display: block;
	opacity: 0.8;
}

.footer-menu a:hover,
.footer-contact-list a:hover {
	opacity: 1;
	color: var(--sand);
}

.social-links {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
}

.social-links a {
	font-size: 0.78rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	opacity: 0.8;
}

.social-links a:hover {
	opacity: 1;
	color: var(--sand);
}

.footer-friend-links {
	border-top: 1px solid rgba(255, 255, 255, 0.12);
	padding: 1.25rem 0;
}

.friend-links-label {
	font-size: 0.78rem;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: rgba(255, 255, 255, 0.6);
	margin-bottom: 0.65rem;
	font-family: var(--font-sans);
	font-weight: 700;
}

.friend-links-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 1.25rem;
}

.friend-links-list a {
	font-size: 0.82rem;
	opacity: 0.75;
}

.friend-links-list a:hover {
	opacity: 1;
	color: var(--sand);
}

.footer-bottom {
	border-top: 1px solid rgba(255, 255, 255, 0.12);
	padding: 1rem 0;
	text-align: center;
}

.footer-bottom p {
	margin: 0;
	font-size: 0.78rem;
	opacity: 0.6;
}

.page-wrap { padding: 2rem 0 3rem; }

.entry-title {
	font-size: clamp(1.5rem, 4vw, 2.25rem);
	margin-bottom: 0.5rem;
}

.entry-meta {
	font-size: 0.82rem;
	color: var(--muted);
	margin-bottom: 1.25rem;
}

.entry-featured {
	margin-bottom: 1.5rem;
	border-radius: var(--radius);
	overflow: hidden;
}

.entry-content {
	font-size: 0.95rem;
	line-height: 1.75;
}

.entry-content p { margin-bottom: 1rem; }

.posts-grid {
	display: grid;
	gap: 1.5rem;
}

.error-404 {
	text-align: center;
	padding: 4rem 0;
}

.error-404 .search-form {
	margin-top: 1.5rem;
	max-width: 400px;
	margin-inline: auto;
}

.search-form {
	display: flex;
	gap: 0.5rem;
}

.search-field {
	flex: 1;
	padding: 0.75rem 1rem;
	border: 1px solid var(--line);
	border-radius: var(--radius);
}

.pagination,
.nav-links {
	display: flex;
	justify-content: center;
	gap: 0.5rem;
	margin-top: 2rem;
	flex-wrap: wrap;
}

.page-numbers {
	padding: 0.5rem 0.85rem;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	font-size: 0.85rem;
}

.page-numbers.current {
	background: var(--sea);
	color: var(--white);
	border-color: var(--sea);
}

.comments-area {
	margin-top: 2rem;
	padding-top: 2rem;
	border-top: 1px solid var(--line);
}

.comment-list {
	list-style: none;
	padding: 0;
	margin: 0 0 1.5rem;
}

.comment-list .comment {
	padding: 1rem 0;
	border-bottom: 1px solid var(--line);
}

@media (min-width: 640px) {
	.promo-cards-grid { grid-template-columns: repeat(3, 1fr); }
	.promo-card-image img { height: 160px; }
	.products-grid { grid-template-columns: repeat(3, 1fr); }
	.blog-card { flex: 0 0 calc(50% - 0.5rem); }
	.trust-grid { grid-template-columns: repeat(4, 1fr); }
	.brands-grid { grid-template-columns: repeat(4, 1fr); }
	.dual-banners-grid { grid-template-columns: repeat(2, 1fr); }
	.posts-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 768px) {
	.nav-toggle { display: none; }

	.hero-header {
		grid-template-columns: 1fr auto 1fr;
		padding: 1rem 0;
	}

	.hero-nav {
		display: block !important;
		background: transparent;
		margin: 0;
		padding: 0;
		grid-column: 2;
	}

	.hero-menu {
		display: flex;
		justify-content: center;
		gap: 1.5rem;
	}

	.hero-menu a {
		border: none;
		padding: 0;
		color: var(--white);
		font-size: 0.82rem;
	}

	.hero-menu a:hover { color: var(--sand); }

	.hero-header .site-branding {
		grid-column: 1;
		text-align: left;
	}

	.hero-header .site-title { text-align: left; }
	.header-cart { grid-column: 3; text-align: right; }

	.header-bar {
		grid-template-columns: 1fr auto;
		padding: 1rem;
	}

	.header-bar .site-branding { text-align: left; }

	.main-navigation {
		display: block !important;
		border: none;
		padding: 0 1rem 0.75rem;
	}

	.primary-menu {
		display: flex;
		justify-content: center;
		gap: 2rem;
	}

	.primary-menu a {
		border: none;
		padding: 0;
	}

	.about-grid {
		grid-template-columns: 1fr 1fr;
		align-items: center;
	}

	.contact-grid {
		grid-template-columns: 1.2fr 1fr;
		align-items: start;
	}

	.footer-grid {
		grid-template-columns: 1.5fr 1fr 1fr 1fr;
	}
}

@media (min-width: 1024px) {
	.products-grid { grid-template-columns: repeat(4, 1fr); }
	.blog-card { flex: 0 0 calc(33.333% - 0.67rem); }
	.hero-content { max-width: 640px; }
	.posts-grid { grid-template-columns: repeat(3, 1fr); }
}
