/*
Theme Name: Homes Theme
Theme URI: https://github.com/vfy/homes-theme
Author: VFY
Author URI: https://villaforyou.net
Description: Custom theme for villa and holiday home bookings. Clean, modern design with search, filters, and booking flow. Works with the VFY Villa Booking plugin.
Requires at least: 6.0
Tested up to: 6.9
Requires PHP: 7.4
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: homes-theme
Tags: one-column, custom-colors, custom-menu, custom-logo, featured-images, full-width-template, sticky-post, theme-options, threaded-comments, translation-ready, block-styles, wide-blocks, accessibility-ready, blog, holiday, villas
*/

/* ==========================================================================
   Base styles (reset + typography)
   ========================================================================== */

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

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

body {
	margin: 0;
	font-family: var(--font-body, "Source Sans 3", system-ui, sans-serif);
	font-size: var(--text-base, 1rem);
	line-height: var(--leading-normal, 1.5);
	color: var(--color-text, #1a1a1a);
	background-color: var(--color-bg, #ffffff);
}

img,
picture,
video,
canvas,
svg {
	display: block;
	max-width: 100%;
	height: auto;
}

input,
button,
textarea,
select {
	font: inherit;
	color: inherit;
}

a {
	color: var(--color-primary, #059669);
	text-decoration: none;
}

a:hover {
	text-decoration: underline;
}

h1, h2, h3, h4, h5, h6 {
	font-family: var(--font-heading, "DM Sans", system-ui, sans-serif);
	font-weight: 600;
	line-height: 1.2;
	margin-top: 0;
}

p {
	margin-top: 0;
	margin-bottom: 1em;
}

p:last-child {
	margin-bottom: 0;
}

ul, ol {
	margin: 0 0 1em;
	padding-left: 1.5em;
}

/* Skip link for accessibility */
.skip-link {
	position: absolute;
	top: -100%;
	left: 0;
	z-index: 100000;
	padding: 0.75rem 1rem;
	background: var(--color-primary);
	color: #fff;
	text-decoration: none;
	font-weight: 600;
	transition: top 0.2s;
}

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

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

.screen-reader-text:focus {
	width: auto;
	height: auto;
	padding: inherit;
	margin: inherit;
	overflow: visible;
	clip: auto;
	white-space: normal;
}
