/*
 * ecoTekk Sunshine Coast — front-end styles
 * Brand: coastal greens, sunlight, accessible contrast (WCAG AA).
 */

:root {
	--c-bg:        #ffffff;
	--c-text:      #1c2b25;
	--c-muted:     #5b6b63;
	--c-brand:     #1f7a4d;   /* eco green */
	--c-brand-dk:  #145236;
	--c-accent:    #f4a93b;   /* sunshine */
	--c-line:      #e4e9e6;
	--c-surface:   #f5f8f6;
	--c-navy:      #26457a;   /* production nav band (card 11V6N0 token map) */
	--c-lime:      #93c93e;   /* production action lime (card 11V6N0 token map) */
	--c-lime-dk:   #84b438;   /* lime, production hover mix (10% black) */
	--radius:      10px;
	--shadow:      0 2px 12px rgba(20, 50, 36, .08);
	--container:   1180px;
	--narrow:      760px;
	--font:        'Lato', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
	--font-headline: 'Francois One', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }
body {
	margin: 0;
	font-family: var(--font);
	font-size: 16px;
	line-height: 1.6;
	color: var(--c-text);
	background: var(--c-bg);
	-webkit-font-smoothing: antialiased;
}

/* Production typography (card 11V6N0): display face for headings, body face
   for everything else. Weight 400 — production ships no headline bold. */
h1, h2, h3, h4, h5, h6 {
	font-family: var(--font-headline);
	font-weight: 400;
}

img, video, svg { max-width: 100%; height: auto; }
a { color: var(--c-brand-dk); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 1.25rem; }
.narrow    { max-width: var(--narrow); }

/* ---- Header / nav ------------------------------------------------------- */
.site-header {
	position: sticky; top: 0; z-index: 50;
	background: rgba(255,255,255,.92);
	backdrop-filter: saturate(180%) blur(8px);
	border-bottom: 1px solid var(--c-line);
}
.site-header__inner { display: flex; align-items: center; gap: 1rem; min-height: 70px; }
.site-branding { margin-right: auto; }
.site-logo-text { font-weight: 700; font-size: 1.15rem; color: var(--c-brand-dk); letter-spacing: -.01em; }
.main-navigation ul { list-style: none; display: flex; gap: 1.1rem; margin: 0; padding: 0; flex-wrap: nowrap; }
.main-navigation a { color: var(--c-text); font-weight: 500; padding: .35rem 0; }
.main-navigation .current-menu-item > a { color: var(--c-brand-dk); }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: .5rem; }
.nav-toggle__bar { width: 26px; height: 3px; background: var(--c-text); border-radius: 2px; }

/* ---- Hero -------------------------------------------------------------- */
.hero { background-size: cover; background-position: center; color: #fff; }
.hero__overlay { background: linear-gradient(180deg, rgba(20,50,36,.35), rgba(20,50,36,.65)); }
.hero__inner { padding: clamp(3rem, 8vw, 6rem) 0; }
.hero__title { font-size: clamp(2rem, 5vw, 3.25rem); margin: 0; text-shadow: 0 2px 12px rgba(0,0,0,.4); }

/* ---- Entry / content --------------------------------------------------- */
.entry__header, .entry__content, .page-header { margin-block: 1.5rem 1rem; }
.entry__title, .page-title { line-height: 1.2; margin: 0 0 .5rem; }
.entry__thumbnail img { width: 100%; border-radius: var(--radius); }
.entry__meta { color: var(--c-muted); font-size: .9rem; }
.entry__content h2, .entry__content h3 { margin-top: 2rem; }
.entry__content img { border-radius: var(--radius); }
.entry__content a { text-decoration: underline; }

.entry__footer { margin-top: 2rem; padding-top: 1rem; border-top: 1px solid var(--c-line); color: var(--c-muted); font-size: .9rem; }
.entry__footer .tag-links { margin-left: 1rem; }

/* ---- Cards / grids ----------------------------------------------------- */
.post-list--grid { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.card { background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform .15s ease; }
.card:hover { transform: translateY(-3px); }
.card__link { display: block; color: inherit; }
.card__media img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; display: block; }
.card__body { padding: 1rem 1.1rem 1.3rem; }
.card__title { font-size: 1.15rem; margin: 0 0 .35rem; }
.card__excerpt { color: var(--c-muted); font-size: .95rem; }

/* ---- FareHarbor embeds ------------------------------------------------- */
.fareharbor-embed, .fh-embed { margin: 1.5rem 0; }
.fh-button, .button {
	display: inline-block; background: var(--c-brand); color: #fff;
	padding: .8rem 1.4rem; border-radius: 999px; font-weight: 600;
	border: 0; cursor: pointer; text-decoration: none;
}
.fh-button:hover, .button:hover { background: var(--c-brand-dk); color: #fff; text-decoration: none; }

/* ---- Footer ------------------------------------------------------------ */
.site-footer { background: var(--c-brand-dk); color: #eaf3ee; margin-top: 4rem; }
.site-footer__inner { display: flex; flex-wrap: wrap; gap: 2rem; padding-block: 2.5rem; }
.footer-widgets { flex: 2 1 320px; }
.footer-nav { flex: 1 1 180px; }
.footer-nav ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .4rem; }
.footer-nav a { color: #eaf3ee; }
.site-info { flex-basis: 100%; border-top: 1px solid rgba(255,255,255,.15); padding-top: 1.25rem; font-size: .85rem; opacity: .9; }
.site-info p { margin: .15rem 0; }

/* ---- Search ------------------------------------------------------------ */
.search-form { display: flex; gap: .5rem; margin: 1rem 0; }
.search-field { flex: 1; padding: .6rem .8rem; border: 1px solid var(--c-line); border-radius: var(--radius); font: inherit; }

/* ---- Pagination -------------------------------------------------------- */
.pagination { margin: 2rem 0; }
.pagination .page-numbers { display: inline-block; padding: .4rem .8rem; border: 1px solid var(--c-line); border-radius: 8px; margin: 0 .15rem; }
.pagination .current { background: var(--c-brand); color: #fff; border-color: var(--c-brand); }

/* ---- Skip link / a11y -------------------------------------------------- */
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); }
.skip-link { position: absolute; left: -9999px; top: 0; background: var(--c-accent); color: #000; padding: .8rem 1rem; z-index: 100; }
.skip-link:focus { left: 0; }

/* ---- Responsive nav ---------------------------------------------------- */
@media (max-width: 860px) {
	.nav-toggle { display: flex; }
	.main-navigation {
		position: absolute; top: 70px; left: 0; right: 0;
		background: var(--c-bg); border-bottom: 1px solid var(--c-line);
		display: none;
	}
	.main-navigation.toggled { display: block; }
	.main-navigation ul { flex-direction: column; padding: 1rem 1.25rem; gap: .75rem; }
}
