/*
Theme Name: GeneratePress Healing Hands
Theme URI: https://healinghands.com.sg
Description: Child theme of GeneratePress for Healing Hands Chiropractic Cambodia. Follows brand design guidelines with custom colors, typography, and styles.
Author: Healing Hands Chiropractic
Author URI: https://healinghands.com.sg
Template: generatepress
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: generatepress-healing-hands
Tags: custom-colors, featured-images, theme-options
*/

/* ============================================
   BRAND GUIDELINES - CUSTOM STYLES
   Healing Hands Chiropractic Cambodia
   ============================================ */

/* Google Fonts - Heebo */
@import url('https://fonts.googleapis.com/css2?family=Heebo:wght@300;400;500;600;700&display=swap');

/* ============================================
   CUSTOM CSS VARIABLES
   ============================================ */
:root {
	/* Primary Colors - Teal */
	--hh-teal-primary: #66C7CF;
	--hh-teal-dark: #38787D;
	--hh-teal-darker: #2E6466;
	--hh-teal-light: #8DB6B9;

	/* Background Colors */
	--hh-bg-off-white: #F7F9FB;
	--hh-bg-light-gray: #F6F9FB;
	--hh-bg-white: #FFFFFF;

	/* Text Colors */
	--hh-text-dark-gray: #434343;
	--hh-text-body: #414141;
	--hh-text-muted: #E9E9E9;
	--hh-text-link: #38777C;

	/* Shadows */
	--hh-shadow-elevated: 0 4px 20px rgba(102, 199, 207, 0.15);
	--hh-shadow-floating: 0 8px 30px rgba(102, 199, 207, 0.2);
	--hh-shadow-subtle: 0 2px 10px rgba(0, 0, 0, 0.05);

	/* Border Radius */
	--hh-radius-button: 25px;
	--hh-radius-card: 12px;
	--hh-radius-image: 8px;
	--hh-radius-form: 8px;
}

/* ============================================
   GLOBAL STYLES
   ============================================ */
body {
	font-family: 'Heebo', sans-serif;
	color: var(--hh-text-body);
	background-color: var(--hh-bg-white);
	line-height: 1.7;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
	font-family: 'Heebo', sans-serif;
	color: var(--hh-text-dark-gray);
	font-weight: 600;
	line-height: 1.2;
}

h1, .h1 {
	font-size: 48px;
	font-weight: 600;
	line-height: 1.2;
}

h2, .h2 {
	font-size: 42px;
	font-weight: 600;
	line-height: 1.3;
}

h3, .h3 {
	font-size: 32px;
	font-weight: 600;
	line-height: 1.3;
}

h4, .h4 {
	font-size: 24px;
	font-weight: 500;
	line-height: 1.4;
}

h5, .h5 {
	font-size: 18px;
	font-weight: 500;
	line-height: 1.4;
}

/* Body Text */
body, .site-body {
	font-size: 15px;
	color: var(--hh-text-body);
}

small, .small {
	font-size: 13px;
	line-height: 1.6;
	color: var(--hh-text-body);
}

/* ============================================
   LINKS
   ============================================ */
a {
	color: var(--hh-text-link);
	transition: transform 0.2s ease, opacity 0.2s ease;
}

a:hover {
	color: var(--hh-teal-dark);
}

a:focus {
	outline: 2px solid var(--hh-teal-primary);
	outline-offset: 2px;
}

/* ============================================
   BUTTONS
   ============================================ */
/* Primary Button */
button,
input[type="button"],
input[type="submit"],
.btn,
.button,
.wp-block-button__link,
.generatepress-button,
.gp-button,
.elementor-button,
.ww-btn {
	background-color: var(--hh-teal-primary) !important;
	color: #FFFFFF !important;
	border: none !important;
	border-radius: var(--hh-radius-button) !important;
	padding: 12px 28px !important;
	font-size: 15px !important;
	font-weight: 500 !important;
	transition: transform 0.2s ease, opacity 0.2s ease, box-shadow 0.2s ease !important;
}

button:hover,
input[type="button"]:hover,
input[type="submit"]:hover,
.btn:hover,
.button:hover,
.wp-block-button__link:hover,
.generatepress-button:hover,
.gp-button:hover,
.elementor-button:hover {
	background-color: var(--hh-teal-dark) !important;
	color: #FFFFFF !important;
	transform: translateY(-2px);
	box-shadow: var(--hh-shadow-elevated);
}

/* Secondary Button */
.btn-secondary,
.button-secondary,
.wp-block-button.is-style-outline .wp-block-button__link {
	background-color: transparent !important;
	border: 2px solid var(--hh-teal-primary) !important;
	color: var(--hh-teal-primary) !important;
	border-radius: var(--hh-radius-button) !important;
	padding: 12px 28px !important;
	font-size: 15px !important;
	font-weight: 500 !important;
}

.btn-secondary:hover,
.button-secondary:hover,
.wp-block-button.is-style-outline .wp-block-button__link:hover {
	background-color: var(--hh-teal-primary) !important;
	color: #FFFFFF !important;
}

/* ============================================
   FORM ELEMENTS
   ============================================ */
input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
input[type="tel"],
input[type="number"],
textarea,
select {
	border: 1px solid var(--hh-text-muted);
	border-radius: var(--hh-radius-form);
	padding: 12px 16px;
	font-size: 15px;
	color: var(--hh-text-body);
	background-color: var(--hh-bg-white);
	transition: transform 0.2s ease, opacity 0.2s ease, box-shadow 0.2s ease;
}

input:focus,
textarea:focus,
select:focus {
	border-color: var(--hh-teal-primary);
	box-shadow: 0 0 0 3px rgba(102, 199, 207, 0.2);
	outline: none;
}

/* ============================================
   CARDS
   ============================================ */
.card,
.wp-block-group,
.gb-container,
.entry,
.widget,
.post {
	background-color: var(--hh-bg-white);
	border-radius: var(--hh-radius-card);
	box-shadow: var(--hh-shadow-subtle);
	padding: 24px;
	transition: transform 0.2s ease, opacity 0.2s ease, box-shadow 0.2s ease;
}

.gb-element-hero001 .wp-block-group {
	box-shadow: none;
	background-color: transparent;
	border-radius: 0;
	padding: 0;
}

.card:hover,
.gb-container:hover {
	box-shadow: var(--hh-shadow-elevated);
	transform: translateY(-2px);
}

/* ============================================
   IMAGES
   ============================================ */
img,
.post-image,
.entry-content img,
.wp-block-image img {
	border-radius: var(--hh-radius-image);
}

.wp-block-image,
 featured-image {
	border-radius: var(--hh-radius-image);
	overflow: hidden;
}

/* ============================================
   HEADER & NAVIGATION
   ============================================ */
.site-header {
	background-color: var(--hh-bg-white);
	box-shadow: var(--hh-shadow-subtle);
}

.main-navigation a {
	color: var(--hh-text-dark-gray);
	font-weight: 500;
	transition: transform 0.2s ease, opacity 0.2s ease;
}

.main-navigation a:hover {
	color: var(--hh-teal-primary);
}

.main-navigation .current-menu-item > a {
	color: var(--hh-teal-primary);
}

/* Mobile Menu */
.menu-toggle {
	background-color: var(--hh-teal-primary);
	color: #FFFFFF;
	border-radius: var(--hh-radius-form);
	padding: 12px 20px;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
	background-color: var(--hh-teal-darker);
	color: #FFFFFF;
}

.site-footer a {
	color: var(--hh-teal-light);
}

.site-footer a:hover {
	color: var(--hh-teal-primary);
}

.footer-widget-1,
.footer-widget-2,
.footer-widget-3,
.footer-widget-4,
.footer-widgets {
	color: #FFFFFF;
}

.footer-widgets a {
	color: var(--hh-teal-light);
}

/* ============================================
   SECTION SPACING
   ============================================ */
.site-content {
	padding: 80px 0;
}

/* Remove padding for home page */
body.home .site-content,
body.front-page .site-content,
body.page-id-7 .site-content {
	padding: 0 !important;
}

/* Fix for site-grid wrapper used in front-page.php */
.site-grid {
	display: flex;
	flex-direction: column;
	width: 100%;
}

.site-grid .site-main {
	flex: 1;
	width: 100%;
}

/* Ensure proper alignment for front page */
.home .site-content,
.front-page .site-content {
	display: flex;
	flex-direction: column;
	align-items: stretch;
}

.home .site-content .grid-container,
.front-page .site-content .grid-container {
	width: 100%;
	max-width: 1200px;
	margin-left: auto;
	margin-right: auto;
	padding-left: 20px;
	padding-right: 20px;
}

.hero-section {
	padding: 100px 0;
}

section,
.wp-block-group,
.separate-containers .page-header,
.separate-containers .site-main > * {
	padding: 80px 0;
}

/* ============================================
   RESPONSIVE BREAKPOINTS
   ============================================ */
@media (max-width: 1024px) {
	h1, .h1 { font-size: 42px; }
	h2, .h2 { font-size: 36px; }
	h3, .h3 { font-size: 28px; }
}

@media (max-width: 768px) {
	h1, .h1 { font-size: 36px; }
	h2, .h2 { font-size: 30px; }
	h3, .h3 { font-size: 24px; }

	.site-content {
		padding: 60px 20px;
	}

	.hero-section {
		padding: 80px 0;
	}

	section,
	.wp-block-group {
		padding: 60px 0;
	}

	/* Mobile: ensure proper alignment */
	.site-grid,
	.site-content {
		width: 100%;
		margin-left: 0;
		margin-right: 0;
	}

	.grid-container {
		padding-left: 0;
		padding-right: 0;
		max-width: 100%;
	}
}

/* ============================================
   ACCESSIBILITY
   ============================================ */
/* Focus Visible - Always show focus state */
*:focus-visible {
	outline: 2px solid var(--hh-teal-primary);
	outline-offset: 2px;
}

/* Skip Links */
.skip-link {
	position: absolute;
	top: -40px;
	left: 0;
	background: var(--hh-teal-primary);
	color: #FFFFFF;
	padding: 8px;
	z-index: 100;
	transition: transform 0.2s ease;
}

.skip-link:focus {
	top: 0;
}

/* Screen Reader Text */
.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border-width: 0;
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.bg-off-white {
	background-color: var(--hh-bg-off-white);
}

.bg-light-gray {
	background-color: var(--hh-bg-light-gray);
}

.bg-teal {
	background-color: var(--hh-teal-primary);
	color: #FFFFFF;
}

.bg-teal-dark {
	background-color: var(--hh-teal-dark);
	color: #FFFFFF;
}

.text-teal {
	color: var(--hh-teal-primary);
}

.text-teal-dark {
	color: var(--hh-teal-dark);
}

.section-padding {
	padding: 80px 0;
}

.section-padding-compact {
	padding: 60px 0;
}

.section-padding-hero {
	padding: 100px 0;
}

/* ============================================
   CTA APPOINTMENT FORM SECTION
   .cc-cta-form-section — hooked via GP Element to generate_before_footer
   ============================================ */
.cc-cta-form-section .frm_primary_label,
.cc-cta-form-section .frm_form_field label,
.cc-cta-form-section .frm_rootline_title {
	color: #ffffff !important;
	font-weight: 500;
}

.cc-cta-form-section input[type="text"],
.cc-cta-form-section input[type="email"],
.cc-cta-form-section input[type="tel"],
.cc-cta-form-section input[type="number"] {
	background-color: #ffffff !important;
	border: 1px solid rgba(255, 255, 255, 0.4) !important;
	border-radius: 8px !important;
	padding: 14px 16px !important;
	color: #414141 !important;
	width: 100%;
	box-sizing: border-box;
}

/* Rootline step indicators — reset the <ul> container */
.cc-cta-form-section .frm_rootline {
	background: transparent !important;
	border: none !important;
	border-radius: 0 !important;
	width: auto !important;
	height: auto !important;
	display: flex !important;
	padding: 0 !important;
	list-style: none !important;
}

/* Step circles are <input> elements inside .frm_rootline_node;
   override the global input[type="button"] rule that bleeds in */
.cc-cta-form-section .frm_rootline input,
.cc-cta-form-section .frm_rootline_node input {
	background: transparent !important;
	border: 2px solid rgba(255, 255, 255, 0.5) !important;
	color: rgba(255, 255, 255, 0.7) !important;
	border-radius: 50% !important;
	width: 36px !important;
	height: 36px !important;
	min-height: 36px !important;
	padding: 0 !important;
	font-size: 14px !important;
	font-weight: 600 !important;
	transform: none !important;
	box-shadow: none !important;
}

/* Active / current step — .frm_current_page is on the <li>, not the input */
.cc-cta-form-section .frm_rootline .frm_current_page input,
.cc-cta-form-section .frm_rootline .frm_current_page input[type="button"] {
	border-color: #ffffff !important;
	color: #ffffff !important;
	background: rgba(255, 255, 255, 0.15) !important;
}

/* Connector line between steps — override Formidable's --progress-border-color */
.cc-cta-form-section .frm_rootline.frm_show_lines > .frm_rootline_single::after {
	background: rgba(255, 255, 255, 0.4) !important;
}

/* Suppress global hover transform on step circles */
.cc-cta-form-section .frm_rootline input:hover {
	width: 36px !important;
	height: 36px !important;
	transform: none !important;
	box-shadow: none !important;
	opacity: 0.85 !important;
}

/* Gap above the Next/Submit button */
.cc-cta-form-section .frm_submit {
	margin-top: 16px !important;
}

/* Next / Submit button — outlined white style */
.cc-cta-form-section .frm_button_submit,
.cc-cta-form-section button[type="submit"],
.cc-cta-form-section input[type="submit"] {
	background: transparent !important;
	border: 2px solid #ffffff !important;
	color: #ffffff !important;
	border-radius: 50px !important;
	padding: 12px 48px !important;
	font-size: 16px !important;
	font-weight: 500 !important;
	width: 100%;
	cursor: pointer;
	transform: none !important;
	box-shadow: none !important;
	transition: background 0.2s ease !important;
}

.cc-cta-form-section .frm_button_submit:hover,
.cc-cta-form-section button[type="submit"]:hover,
.cc-cta-form-section input[type="submit"]:hover {
	background: rgba(255, 255, 255, 0.15) !important;
	color: #ffffff !important;
	transform: none !important;
	box-shadow: none !important;
}

/* Hide Formidable's own form title (our GB heading replaces it) */
.cc-cta-form-section .frm_form_title {
	display: none;
}

/* Image in CTA section: fit height, align bottom */
.gb-element-ctaf03 .wp-block-image {
	margin: 0;
	width: 100%;
}

.gb-element-ctaf03 .wp-block-image img {
	width: 100%;
	height: auto;
	max-height: 420px;
	object-fit: cover;
	object-position: center top;
	border-radius: 0;
}

/* ============================================
   FOOTER NAV MENUS (Polylang classic-menu blocks)
   .gb-menu-foot-ql  — Quick Links
   .gb-menu-foot-sv  — Services
   ============================================ */
.gb-menu-foot-ql,
.gb-menu-foot-sv {
	list-style: none !important;
	margin: 0 !important;
	padding: 0 !important;
}

.gb-menu-item-foot-ql-item,
.gb-menu-item-foot-sv-item {
	list-style: none !important;
	margin: 0 !important;
	padding: 0 !important;
}

.gb-menu-item-foot-ql-item .gb-menu-link,
.gb-menu-item-foot-sv-item .gb-menu-link {
	color: rgba(255, 255, 255, 0.85) !important;
	font-size: 15px;
	line-height: 1.6;
	text-decoration: none;
	display: inline-block;
	transition: color 0.2s ease, opacity 0.2s ease;
}

.gb-menu-item-foot-ql-item .gb-menu-link:hover,
.gb-menu-item-foot-sv-item .gb-menu-link:hover {
	color: #ffffff !important;
	opacity: 1;
}

/* ============================================
   WP BLOCKS OVERRIDES
   ============================================ */
/* Separator/HR */
.wp-block-separator {
	border-color: var(--hh-text-muted);
}

/* Group/Container */
.wp-block-group {
	background-color: transparent;
}

.has-background {
	background-color: var(--hh-bg-off-white);
}

/* Columns */
.wp-block-columns {
	gap: 24px;
}

@media (max-width: 768px) {
	.wp-block-columns {
		gap: 16px;
	}
}

/* Quote */
.wp-block-quote {
	border-left-color: var(--hh-teal-primary);
}

.wp-block-quote cite {
	color: var(--hh-text-muted);
}

/* Table */
.wp-block-table table {
	border-collapse: collapse;
}

.wp-block-table th,
.wp-block-table td {
	padding: 12px 16px;
	border-color: var(--hh-text-muted);
}

.wp-block-table thead th {
	background-color: var(--hh-bg-light-gray);
	color: var(--hh-text-dark-gray);
	font-weight: 600;
}

/* Code */
.wp-block-code code {
	background-color: var(--hh-bg-light-gray);
	padding: 12px 16px;
	border-radius: var(--hh-radius-form);
}

/* ============================================
   FULL WIDTH FIX FOR PAGE 169
   ============================================ */
/* Reset site-content to block layout (overrides GeneratePress flex) */
.site-content {
	display: flex;
	flex-direction: column;
}

/* Proper alignment for site-content */
.site-content .grid-container {
	width: 100%;
	max-width: 1200px;
	margin-left: auto;
	margin-right: auto;
}

/* Remove ALL padding for home page site-content */
body.page-id-7 .site-content,
body.home .site-content,
body.front-page .site-content {
	padding: 0 !important;
}

/* Remove ALL padding/margin from article on home page */
body.page-id-7 .inside-article,
body.home .inside-article,
body.front-page .inside-article {
	padding: 0 !important;
	margin: 0 !important;
}

/* Remove article element spacing on home page */
body.home article,
body.front-page article,
body.page-id-7 article {
	margin: 0 !important;
	padding: 0 !important;
}

/* Hero section wrapper - remove all spacing */
body.home .hero-section-wrapper,
body.front-page .hero-section-wrapper,
body.page-id-7 .hero-section-wrapper {
	margin: 0 !important;
	padding: 0 !important;
}

/* Ensure first child in hero wrapper has no top margin */
body.home .hero-section-wrapper > *:first-child,
body.front-page .hero-section-wrapper > *:first-child,
body.page-id-7 .hero-section-wrapper > *:first-child {
	margin-top: 0 !important;
	padding-top: 0 !important;
}

/* Remove any GeneratePress container spacing on home page */
body.home .grid-container,
body.front-page .grid-container,
body.page-id-7 .grid-container {
	padding-top: 0 !important;
	padding-bottom: 0 !important;
	margin-top: 0 !important;
	margin-bottom: 0 !important;
}

/* Remove top spacing for blank canvas template (used by home page) */
body.page-template-page-blank .site-main,
body.page-id-7 .site-main,
body.home .site-main,
body.front-page .site-main {
	margin: 0 !important;
	padding: 0 !important;
}

/* Remove header bottom margin */
.site-header {
	margin-bottom: 0 !important;
	padding-bottom: 0 !important;
}

/* Remove any margin/padding from first block on page */
body.page-id-7 .site-main > *:first-child,
body.home .site-main > *:first-child,
body.front-page .site-main > *:first-child {
	margin-top: 0 !important;
	padding-top: 0 !important;
}

/* Remove grid container constraints for page 169 */
body.page-id-169 .site-content .grid-container {
	max-width: 100% !important;
	padding-left: 0 !important;
	padding-right: 0 !important;
	margin-left: 0 !important;
	margin-right: 0 !important;
}

/* Make GenerateBlocks full-width sections break out of container */
body.page-id-169 .gb-element.alignfull {
	margin-left: calc(50% - 50vw) !important;
	margin-right: calc(50% - 50vw) !important;
	max-width: 100vw !important;
}

/* Keep inner content containers centered and constrained */
body.page-id-169 .gb-element.alignfull > .gb-element {
	margin-left: auto !important;
	margin-right: auto !important;
	max-width: 1200px !important;
}

/* Remove article padding */
body.page-id-169 .inside-article {
	padding: 0 !important;
}
