/*
Theme Name: Zwolsche Dierenkliniek
Description: A custom child theme for Zwolsche Dierenkliniek based on the Divi theme
Author: Your Name
Template: Divi
Version: 1.0.0
Text Domain: zwolsche-dierenkliniek
*/

/* =Theme customization starts here
-------------------------------------------------------------- */

@import url('assets/css/header.css');
@import url('assets/css/footer.css');
@import url('assets/css/fonts.css');


/* Fonts */
h1, h2, h3, h4, h5, h6 {
	font-family: 'Gazpacho', sans-serif;
}

body, p, a, span, li, ul, ol, blockquote, input, textarea, select {
	font-family: 'DM Sans', sans-serif;
}




/* Ensure header logo maintains aspect ratio by default */
#main-header .zwolsche-logo {
	height: auto;
	width: auto;
	max-width: 100%;
	display: block;
	object-fit: contain;
}

/* ================================
   Responsive Typography
   - Scales down headings and body for tablet/mobile
   - Keeps readable line-heights
   ================================ */

/* Base (desktop-first) */
html { font-size: 100%; }
body { font-size: 16px; line-height: 1.6; }

h1 { font-size: 40px; line-height: 1.2; }
h2 { font-size: 32px; line-height: 1.25; }
h3 { font-size: 24px; line-height: 1.3; }
h4 { font-size: 20px; line-height: 1.35; }
h5 { font-size: 18px; line-height: 1.4; }
h6 { font-size: 16px; line-height: 1.45; }

/* Tablet (≤980px) */
@media (max-width: 980px) {
	body { font-size: 15px; }
	h1 { font-size: 34px; }
	h2 { font-size: 28px; }
	h3 { font-size: 22px; }
	h4 { font-size: 19px; }
	h5 { font-size: 17px; }
	h6 { font-size: 15px; }

	/* Footer headings slightly smaller to balance layout */
	.zwolsche-footer .zwolsche-footer-title { font-size: 18px; }
}

/* Mobile (≤767px) */
@media (max-width: 767px) {
	body { font-size: 14px; }
	h1 { font-size: 28px; }
	h2 { font-size: 24px; }
	h3 { font-size: 20px; }
	h4 { font-size: 18px; }
	h5 { font-size: 16px; }
	h6 { font-size: 14px; }

	/* Improve tap target sizes for links in footer */
	.zwolsche-footer a { line-height: 1.6; }
}

/* ================================
   Hamburger Menu Styles
   ================================ */

/* Hamburger Button */
.zwolsche-hamburger {
	display: none;
	background: none;
	border: none;
	cursor: pointer;
	padding: 8px;
	flex-direction: column;
	justify-content: space-around;
	width: 40px;
	height: 40px;
	position: relative;
	z-index: 1001;
}

.hamburger-line {
	width: 24px;
	height: 3px;
	background-color: #333;
	border-radius: 2px;
	transition: all 0.3s ease;
	transform-origin: center;
}

/* Hamburger Animation */
.zwolsche-hamburger[aria-expanded="true"] .hamburger-line:nth-child(1) {
	transform: rotate(45deg) translate(6px, 6px);
}

.zwolsche-hamburger[aria-expanded="true"] .hamburger-line:nth-child(2) {
	opacity: 0;
}

.zwolsche-hamburger[aria-expanded="true"] .hamburger-line:nth-child(3) {
	transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile Navigation */
.zwolsche-mobile-nav {
	display: none;
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	background: #fff;
	box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
	z-index: 1000;
	transform: translateY(-100%);
	opacity: 0;
	transition: all 0.3s ease;
}

.zwolsche-mobile-nav.active {
	transform: translateY(0);
	opacity: 1;
}

.zwolsche-mobile-nav-content {
	padding: 20px;
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.zwolsche-mobile-contact,
.zwolsche-mobile-action {
	text-align: center;
}

.zwolsche-mobile-phone {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	text-decoration: none;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	color: #204d6b; /* match desktop */
	font-family: 'DM Sans', sans-serif;
	font-weight: 700;
}

.zwolsche-mobile-phone:hover {
	background: transparent;
	color: #d4bf5f; /* match desktop hover */
}

.zwolsche-mobile-action .et_pb_button {
	width: 100%;
	text-align: center;
	padding: 12px 16px;
	font-size: 16px;
}

/* Desktop Navigation */
.zwolsche-desktop-nav {
	display: flex;
	align-items: center;
	gap: 12px;
}

/* ================================
   Responsive adjustments (overrides)
   - Targets custom header/footer markup
   - Breakpoints aligned with Divi:
     980px (tablet portrait and below), 767px (mobile)
   ================================ */

/* Tablet portrait and below */
@media (max-width: 980px) {
	/* Header */
	#main-header .zwolsche-nav-container {
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 16px;
		padding: 12px 16px;
		position: relative; /* anchor mobile nav */
	}

	#main-header .zwolsche-logo-section {
		flex: 0 0 auto;
	}

	#main-header .zwolsche-logo {
		height: auto;
		width: auto;
		max-height: 36px;
		max-width: 160px;
	}

	#main-header .zwolsche-nav-container-inner {
		display: flex;
		align-items: center;
		justify-content: flex-end;
		gap: 12px;
		flex: 1 1 auto;
	}

	/* Enable hamburger on tablet */
	.zwolsche-desktop-nav { display: none; }
	.zwolsche-hamburger { display: flex; }
	.zwolsche-mobile-nav { display: block; }

	#main-header .zwolsche-contact-section {
		order: 2; /* Move phone near button on smaller screens */
	}

	#main-header .zwolsche-phone {
		font-size: 14px;
		line-height: 1.2;
		white-space: nowrap;
	}

	#main-header .zwolsche-action-section {
		order: 3;
	}

	#main-header .zwolsche-action-section .et_pb_button {
		padding: 8px 14px;
		font-size: 14px;
		line-height: 1.2;
	}

	/* Footer */
	.zwolsche-footer .zwolsche-footer-container {
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: 24px 16px;
		padding: 24px 16px;
	}

	.zwolsche-footer .zwolsche-footer-title {
		font-size: 18px;
		margin-bottom: 8px;
	}

	.zwolsche-footer .zwolsche-footer-address,
	.zwolsche-footer .zwolsche-footer-hours-text,
	.zwolsche-footer .zwolsche-footer-opening-note {
		font-size: 14px;
		line-height: 1.5;
	}

	/* Keep decorative element smaller on tablet */
	.zwolsche-footer .zwolsche-decorative-svg {
		max-width: 220px;
		width: 100%;
		height: auto;
	}
}

/* Mobile */
@media (max-width: 767px) {
	/* Hide desktop nav, show hamburger */
	.zwolsche-desktop-nav {
		display: none;
	}
	
	.zwolsche-hamburger {
		display: flex;
	}

	.zwolsche-mobile-nav {
		display: block;
	}

	/* Header adjustments for mobile */
	#main-header .zwolsche-nav-container {
		position: relative;
		justify-content: space-between;
		align-items: center;
		padding: 12px 16px;
	}

	#main-header .zwolsche-logo {
		height: auto;
		width: auto;
		max-height: 32px;
		max-width: 150px;
	}

	#main-header .zwolsche-nav-container-inner {
		justify-content: flex-end;
	}

	/* Footer becomes single column */
	.zwolsche-footer .zwolsche-footer-container {
		grid-template-columns: 1fr;
		gap: 20px;
		padding: 20px 12px;
	}

	.zwolsche-footer .zwolsche-footer-contact,
	.zwolsche-footer .zwolsche-footer-hours,
	.zwolsche-footer .zwolsche-footer-social {
		text-align: center;
	}

	/* Make social link easier to tap */
	.zwolsche-footer .zwolsche-footer-social a {
		display: inline-block;
		font-size: 15px;
		padding: 8px 10px;
	}

	/* Hide decorative element on small screens if it crowds */
	.zwolsche-footer .zwolsche-footer-decorative {
		display: none;
	}
}
