/*
Theme Name: Health Creation
Theme URI: https://www.healthcreation.net.au/
Author: Health Creation
Description: A classic WordPress theme replicating the structure and layout of the Health Creation (Dr Henry Sztulman) Weebly site. Header with logo and phone, horizontal drop-down navigation, banner hero, editable page content, and a two-column footer. All colours and fonts are exposed as CSS custom properties and Customizer options.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: healthcreation
Tags: one-column, custom-menu, custom-logo, featured-images, translation-ready, block-patterns
*/

/* ==========================================================================
   1. Design tokens
   --------------------------------------------------------------------------
   These defaults are overridden at runtime by the Customizer (see
   inc/customizer.php). To hard-code the real site values, edit them here and
   they become the new Customizer defaults too.
   ========================================================================== */

:root {
	--hc-primary:        #4a8b6f;   /* links, buttons, nav hover */
	--hc-primary-dark:   #35664f;   /* hover/active state */
	--hc-accent:         #8cb63c;   /* secondary highlight */
	--hc-heading:        #2f4f3f;   /* headings */
	--hc-text:           #444444;   /* body copy */
	--hc-muted:          #6b7770;   /* captions, meta */
	--hc-rule:           #dfe5e0;   /* hairlines and table borders */
	--hc-band:           #f4f7f2;   /* tinted section background */
	--hc-header-bg:      #ffffff;
	--hc-nav-bg:         #4a8b6f;
	--hc-nav-text:       #ffffff;
	--hc-footer-bg:      #2f4f3f;
	--hc-footer-text:    #e7eee9;

	--hc-font-body: "Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
	--hc-font-head: "Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;

	--hc-size-base: 16px;
	--hc-leading: 1.7;

	--hc-wrap: 1100px;        /* content container width */
	--hc-gutter: 24px;
	--hc-radius: 3px;
	--hc-shadow: 0 1px 3px rgba(0, 0, 0, .08);
}

/* ==========================================================================
   2. Reset / base
   ========================================================================== */

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

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

body {
	margin: 0;
	background: #ffffff;
	color: var(--hc-text);
	font-family: var(--hc-font-body);
	font-size: var(--hc-size-base);
	line-height: var(--hc-leading);
}

img, iframe, video, embed, object { max-width: 100%; }
img { height: auto; border: 0; vertical-align: middle; }

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

:focus-visible {
	outline: 2px solid var(--hc-accent);
	outline-offset: 2px;
}

h1, h2, h3, h4, h5, h6 {
	font-family: var(--hc-font-head);
	color: var(--hc-heading);
	line-height: 1.25;
	margin: 0 0 .6em;
	font-weight: 700;
}

h1 { font-size: 2.1rem; }
h2 { font-size: 1.65rem; }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.1rem; }
h5, h6 { font-size: 1rem; }

p { margin: 0 0 1.2em; }
ul, ol { margin: 0 0 1.2em; padding-left: 1.4em; }
li { margin-bottom: .35em; }

hr {
	border: 0;
	border-top: 1px solid var(--hc-rule);
	margin: 2.2em 0;
}

blockquote {
	margin: 0 0 1.2em;
	padding: .2em 0 .2em 1.2em;
	border-left: 3px solid var(--hc-accent);
	color: var(--hc-muted);
	font-style: italic;
}

table {
	width: 100%;
	border-collapse: collapse;
	margin: 0 0 1.4em;
}
th, td {
	padding: .65em .8em;
	border: 1px solid var(--hc-rule);
	text-align: left;
	vertical-align: top;
}
th { background: var(--hc-band); color: var(--hc-heading); }

/* Screen-reader text (WP standard) */
.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px; width: 1px;
	margin: -1px; padding: 0;
	overflow: hidden;
	position: absolute !important;
	word-wrap: normal !important;
}
.screen-reader-text:focus {
	background: #fff;
	clip: auto;
	clip-path: none;
	color: var(--hc-primary-dark);
	display: block;
	font-size: 1rem;
	height: auto; width: auto;
	left: 6px; top: 6px;
	padding: 14px 20px;
	text-decoration: none;
	z-index: 100000;
	box-shadow: var(--hc-shadow);
}

/* ==========================================================================
   3. Layout primitives
   ========================================================================== */

.hc-wrap {
	width: 100%;
	max-width: var(--hc-wrap);
	margin: 0 auto;
	padding: 0 var(--hc-gutter);
}

.hc-site { display: flex; flex-direction: column; min-height: 100vh; }
.hc-main { flex: 1 0 auto; }

.hc-section { padding: 42px 0; }
.hc-section--tint { background: var(--hc-band); }
.hc-section--tight { padding: 26px 0; }

/* Generic two-column split used by the "focus areas" block and the footer. */
.hc-cols {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0 40px;
}
.hc-cols--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* ==========================================================================
   4. Header
   ========================================================================== */

.hc-header {
	background: var(--hc-header-bg);
	border-bottom: 1px solid var(--hc-rule);
}

.hc-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	padding-top: 18px;
	padding-bottom: 18px;
}

.hc-branding { display: flex; align-items: center; gap: 14px; min-width: 0; }
.hc-branding img { max-height: 92px; width: auto; }

.hc-site-title {
	font-size: 1.35rem;
	line-height: 1.2;
	margin: 0;
	color: var(--hc-heading);
}
.hc-site-title a { color: inherit; text-decoration: none; }
.hc-site-desc { margin: 4px 0 0; font-size: .85rem; color: var(--hc-muted); }

.hc-header__contact {
	text-align: right;
	font-size: 1.05rem;
	line-height: 1.4;
	color: var(--hc-heading);
	white-space: nowrap;
}
.hc-header__contact .hc-phone {
	display: block;
	font-size: 1.3rem;
	font-weight: 700;
	color: var(--hc-primary);
}
.hc-header__contact .hc-phone:hover { color: var(--hc-primary-dark); }

/* ==========================================================================
   5. Navigation
   ========================================================================== */

.hc-nav { background: var(--hc-nav-bg); }
.hc-nav__inner { display: flex; align-items: center; justify-content: center; }

.hc-menu {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	list-style: none;
	margin: 0;
	padding: 0;
}
.hc-menu li { position: relative; margin: 0; }

.hc-menu a {
	display: block;
	padding: 14px 18px;
	color: var(--hc-nav-text);
	font-size: .95rem;
	font-weight: 600;
	text-decoration: none;
	transition: background-color .15s ease;
}
.hc-menu a:hover,
.hc-menu a:focus,
.hc-menu .current-menu-item > a,
.hc-menu .current-menu-ancestor > a,
.hc-menu .current_page_item > a,
.hc-menu .current_page_ancestor > a {
	background: rgba(0, 0, 0, .18);
	color: var(--hc-nav-text);
	text-decoration: none;
}

/* Drop-downs (the "Articles" branch on the live site) */
.hc-menu .sub-menu {
	position: absolute;
	top: 100%;
	left: 0;
	z-index: 400;
	display: block;
	min-width: 250px;
	margin: 0;
	padding: 6px 0;
	list-style: none;
	background: #ffffff;
	border: 1px solid var(--hc-rule);
	box-shadow: 0 6px 18px rgba(0, 0, 0, .12);
	opacity: 0;
	visibility: hidden;
	transform: translateY(-6px);
	transition: opacity .15s ease, transform .15s ease, visibility .15s;
}
.hc-menu li:hover > .sub-menu,
.hc-menu li:focus-within > .sub-menu,
.hc-menu li.is-open > .sub-menu {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}
.hc-menu .sub-menu a {
	padding: 9px 18px;
	color: var(--hc-text);
	font-weight: 400;
	white-space: normal;
}
.hc-menu .sub-menu a:hover,
.hc-menu .sub-menu a:focus,
.hc-menu .sub-menu .current-menu-item > a {
	background: var(--hc-band);
	color: var(--hc-primary-dark);
}
.hc-menu .sub-menu .sub-menu { top: -7px; left: 100%; }

/* Dropdown arrow + mobile toggle button */
.hc-submenu-toggle {
	position: absolute;
	top: 0;
	right: 0;
	display: none;
	width: 48px;
	height: 48px;
	padding: 0;
	background: transparent;
	border: 0;
	color: var(--hc-nav-text);
	cursor: pointer;
}
.hc-menu .menu-item-has-children > a::after {
	content: "";
	display: inline-block;
	width: 0; height: 0;
	margin-left: 7px;
	vertical-align: middle;
	border-left: 4px solid transparent;
	border-right: 4px solid transparent;
	border-top: 5px solid currentColor;
}
.hc-menu .sub-menu .menu-item-has-children > a::after {
	border-top: 4px solid transparent;
	border-bottom: 4px solid transparent;
	border-left: 5px solid currentColor;
	border-right: 0;
	float: right;
	margin-top: .55em;
}

.hc-nav-toggle {
	display: none;
	width: 100%;
	padding: 13px var(--hc-gutter);
	background: transparent;
	border: 0;
	color: var(--hc-nav-text);
	font: inherit;
	font-weight: 600;
	text-align: left;
	cursor: pointer;
}
.hc-nav-toggle__bars {
	display: inline-block;
	width: 18px;
	margin-right: 10px;
	border-top: 2px solid currentColor;
	border-bottom: 6px double currentColor;
	height: 12px;
	vertical-align: -2px;
}

/* ==========================================================================
   6. Hero / banner
   ========================================================================== */

.hc-hero {
	position: relative;
	background: var(--hc-band) center / cover no-repeat;
	color: var(--hc-heading);
	text-align: center;
}
.hc-hero--image { color: #ffffff; }
.hc-hero--image::before {
	content: "";
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, .38);
}
.hc-hero__inner {
	position: relative;
	padding: 62px var(--hc-gutter) 58px;
	max-width: var(--hc-wrap);
	margin: 0 auto;
}
.hc-hero--image .hc-hero__inner h1,
.hc-hero--image .hc-hero__inner h2,
.hc-hero--image .hc-hero__inner p { color: #ffffff; }
.hc-hero__inner h1 { font-size: 2.4rem; margin-bottom: .35em; }
.hc-hero__inner p { font-size: 1.1rem; margin-bottom: .6em; }
.hc-hero__inner em { font-style: italic; }
.hc-hero__highlight { font-weight: 700; letter-spacing: .02em; }

/* Buttons — used by the "Read More..." / "Read Health Articles..." links */
.hc-button,
.wp-block-button__link,
input[type="submit"],
button.hc-button {
	display: inline-block;
	padding: 11px 26px;
	background: var(--hc-primary);
	border: 0;
	border-radius: var(--hc-radius);
	color: #ffffff;
	font-family: inherit;
	font-size: .95rem;
	font-weight: 600;
	line-height: 1.4;
	text-decoration: none;
	cursor: pointer;
	transition: background-color .15s ease;
}
.hc-button:hover, .hc-button:focus,
.wp-block-button__link:hover,
input[type="submit"]:hover,
button.hc-button:hover {
	background: var(--hc-primary-dark);
	color: #ffffff;
	text-decoration: none;
}
.hc-button--ghost {
	background: transparent;
	border: 2px solid currentColor;
	color: inherit;
}
.hc-button--ghost:hover { background: rgba(255, 255, 255, .15); color: inherit; }

/* ==========================================================================
   7. Content
   ========================================================================== */

.hc-content { padding: 40px 0 56px; }
.hc-entry { max-width: 100%; }
.hc-entry__title { margin-bottom: .5em; }

.hc-entry-content > *:last-child { margin-bottom: 0; }

.hc-entry-content img { height: auto; }
.hc-entry-content .alignleft  { float: left;  margin: .3em 1.6em 1em 0; }
.hc-entry-content .alignright { float: right; margin: .3em 0 1em 1.6em; }
.hc-entry-content .aligncenter { display: block; margin-left: auto; margin-right: auto; }
.hc-entry-content figure { margin: 0 0 1.4em; }
.hc-entry-content figcaption,
.wp-caption-text {
	margin-top: .5em;
	color: var(--hc-muted);
	font-size: .85rem;
	line-height: 1.5;
}

.hc-entry-meta {
	margin: -.4em 0 1.4em;
	color: var(--hc-muted);
	font-size: .85rem;
}

/* With-sidebar layout (optional) */
.hc-layout-sidebar {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 300px;
	gap: 44px;
}
.hc-sidebar .widget { margin-bottom: 30px; }
.hc-sidebar .widget-title {
	font-size: 1.05rem;
	padding-bottom: .4em;
	border-bottom: 2px solid var(--hc-accent);
}
.hc-sidebar ul { list-style: none; padding: 0; }
.hc-sidebar li { border-bottom: 1px solid var(--hc-rule); padding: .45em 0; }

/* ==========================================================================
   8. Home-page blocks (match the Weebly home layout)
   ========================================================================== */

/* Two-column bold list of conditions treated */
.hc-focus { text-align: center; }
.hc-focus__title { margin-bottom: 1.1em; }
.hc-focus__list {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 6px 40px;
	list-style: none;
	margin: 0 auto;
	padding: 0;
	max-width: 900px;
	text-align: left;
}
.hc-focus__list li {
	font-weight: 700;
	color: var(--hc-heading);
	padding: .35em 0;
	border-bottom: 1px solid var(--hc-rule);
}

/* Portrait + caption */
.hc-portrait { text-align: center; margin: 0 0 1.4em; }
.hc-portrait img { border: 1px solid var(--hc-rule); padding: 5px; background: #fff; }
.hc-portrait figcaption { font-weight: 600; color: var(--hc-heading); }

/* Callout strip with links to recipes / articles */
.hc-callout {
	background: var(--hc-band);
	border-top: 1px solid var(--hc-rule);
	border-bottom: 1px solid var(--hc-rule);
	padding: 28px var(--hc-gutter);
	text-align: center;
}
.hc-callout p { font-size: 1.05rem; margin-bottom: 1em; }

/* Accreditation / logo badges row */
.hc-badges {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 34px;
	padding: 30px 0;
}
.hc-badges img { max-height: 130px; width: auto; }

/* Simple article index list (Articles page) */
.hc-article-list { list-style: none; padding: 0; margin: 0 0 1.6em; }
.hc-article-list li {
	padding: .7em 0;
	border-bottom: 1px solid var(--hc-rule);
}
.hc-article-list a { font-weight: 600; }
.hc-article-list .hc-article-byline {
	display: block;
	color: var(--hc-muted);
	font-size: .85rem;
	font-weight: 400;
}

/* ==========================================================================
   9. Contact page
   ========================================================================== */

.hc-contact { display: grid; grid-template-columns: minmax(0, 360px) minmax(0, 1fr); gap: 40px; align-items: start; }
.hc-contact__details p { margin-bottom: .8em; }
.hc-contact__map {
	position: relative;
	width: 100%;
	min-height: 300px;
	border: 1px solid var(--hc-rule);
	overflow: hidden;
}
.hc-contact__map iframe { display: block; width: 100%; height: 380px; border: 0; }

/* Lightweight built-in enquiry form (optional — see README) */
.hc-form { max-width: 560px; }
.hc-form p { margin-bottom: 1em; }
.hc-form label { display: block; font-weight: 600; margin-bottom: .3em; color: var(--hc-heading); }
.hc-form input[type="text"],
.hc-form input[type="email"],
.hc-form input[type="tel"],
.hc-form textarea,
.hc-search-form input[type="search"] {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid var(--hc-rule);
	border-radius: var(--hc-radius);
	font: inherit;
	color: var(--hc-text);
	background: #fff;
}
.hc-form textarea { min-height: 160px; resize: vertical; }
.hc-form__hp { position: absolute; left: -9999px; }
.hc-form__notice {
	padding: 12px 16px;
	border-left: 4px solid var(--hc-accent);
	background: var(--hc-band);
	margin-bottom: 1.4em;
}
.hc-form__notice--error { border-left-color: #b4432f; }

/* ==========================================================================
   10. Footer
   ========================================================================== */

.hc-footer {
	background: var(--hc-footer-bg);
	color: var(--hc-footer-text);
	padding: 34px 0;
	font-size: .92rem;
	line-height: 1.65;
}
.hc-footer a { color: #ffffff; text-decoration: underline; }
.hc-footer a:hover { color: var(--hc-accent); }
.hc-footer__cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 40px; }
.hc-footer__col p { margin-bottom: .5em; }
.hc-footer__col--right { text-align: right; }
.hc-footer h2, .hc-footer h3, .hc-footer .widget-title { color: #ffffff; font-size: 1rem; }

/* ==========================================================================
   11. Pagination, search, 404
   ========================================================================== */

.hc-pagination { margin-top: 2em; }
.hc-pagination .page-numbers {
	display: inline-block;
	padding: 7px 13px;
	margin: 0 3px 6px 0;
	border: 1px solid var(--hc-rule);
	border-radius: var(--hc-radius);
	color: var(--hc-primary);
	text-decoration: none;
}
.hc-pagination .page-numbers.current,
.hc-pagination .page-numbers:hover {
	background: var(--hc-primary);
	border-color: var(--hc-primary);
	color: #ffffff;
}

.hc-search-form { display: flex; gap: 8px; max-width: 420px; }
.hc-search-form input[type="search"] { flex: 1 1 auto; }

.hc-404 { text-align: center; padding: 70px 0; }

/* ==========================================================================
   12. Responsive
   ========================================================================== */

@media (max-width: 900px) {
	.hc-layout-sidebar { grid-template-columns: minmax(0, 1fr); }
	.hc-contact { grid-template-columns: minmax(0, 1fr); }
	.hc-cols, .hc-cols--3, .hc-focus__list { grid-template-columns: minmax(0, 1fr); }
	.hc-footer__cols { grid-template-columns: minmax(0, 1fr); }
	.hc-footer__col--right { text-align: left; }
}

@media (max-width: 782px) {
	.hc-header__inner { flex-direction: column; text-align: center; gap: 12px; }
	.hc-header__contact { text-align: center; }

	.hc-nav__inner { display: block; padding: 0; }
	.hc-nav-toggle { display: block; }

	.hc-menu {
		display: none;
		flex-direction: column;
		align-items: stretch;
		border-top: 1px solid rgba(255, 255, 255, .2);
	}
	.hc-menu.is-visible { display: flex; }
	.hc-menu li { border-bottom: 1px solid rgba(255, 255, 255, .12); }
	.hc-menu a { padding: 13px var(--hc-gutter); }

	.hc-submenu-toggle { display: block; }
	.hc-menu .menu-item-has-children > a { padding-right: 56px; }
	.hc-menu .menu-item-has-children > a::after { display: none; }

	.hc-menu .sub-menu {
		position: static;
		display: none;
		min-width: 0;
		border: 0;
		box-shadow: none;
		background: rgba(0, 0, 0, .14);
		opacity: 1;
		visibility: visible;
		transform: none;
		transition: none;
		padding: 0;
	}
	.hc-menu li.is-open > .sub-menu { display: block; }
	.hc-menu li:hover > .sub-menu,
	.hc-menu li:focus-within > .sub-menu { display: none; }
	.hc-menu li.is-open:hover > .sub-menu { display: block; }
	.hc-menu .sub-menu a { color: var(--hc-nav-text); padding-left: 36px; }
	.hc-menu .sub-menu a:hover, .hc-menu .sub-menu a:focus { background: rgba(0, 0, 0, .2); color: #fff; }

	.hc-hero__inner { padding: 44px var(--hc-gutter); }
	.hc-hero__inner h1 { font-size: 1.8rem; }
	h1 { font-size: 1.7rem; }
	h2 { font-size: 1.4rem; }

	.hc-entry-content .alignleft,
	.hc-entry-content .alignright { float: none; margin: 0 0 1.2em; }
}

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

/* ==========================================================================
   13. Print
   ========================================================================== */

@media print {
	.hc-nav, .hc-nav-toggle, .hc-hero, .hc-badges, .hc-footer { display: none !important; }
	body { color: #000; font-size: 12pt; }
	a[href^="http"]::after { content: " (" attr(href) ")"; font-size: .85em; }
}
