/*!
Theme Name: Fivas Marine
Theme URI: https://fivasmarine.com/
Author: Giorgos Patelis
Author URI: https://giorgospatelis.com/
Description: Custom WordPress theme for Fivas Marine - a Greek company specializing in boat hauling, launching, repair, and parking services. Features nautical design elements, Greek language support, and modern responsive layout.
Version: 1.0.0
Tested up to: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: fivas-marine
Tags: custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready, business, responsive, nautical, marine, greek

This theme, like WordPress, is licensed under the GPL.
Use it to make something cool, have fun, and share what you've learned.

Fivas Marine is based on Underscores https://underscores.me/, (C) 2012-2020 Automattic, Inc.
Underscores is distributed under the terms of the GNU GPL v2 or later.

Normalizing styles have been helped along thanks to the fine work of
Nicolas Gallagher and Jonathan Neal https://necolas.github.io/normalize.css/
*/

/*--------------------------------------------------------------
>>> TABLE OF CONTENTS:
----------------------------------------------------------------
# Generic
	- Normalize
	- Box sizing
# Base
	- Typography
	- Elements
	- Links
	- Forms
## Layouts
# Components
	- Navigation
	- Posts and pages
	- Comments
	- Widgets
	- Media
	- Captions
	- Galleries
# plugins
	- Jetpack infinite scroll
# Utilities
	- Accessibility
	- Alignments

--------------------------------------------------------------*/

/*--------------------------------------------------------------
# CSS Custom Properties (CSS Variables)
--------------------------------------------------------------*/

:root {
	/* Color Palette */
	--color-primary: #6b512c;    /* Deep bronze olive */
	--color-secondary: #1a1a1a;  /* Charcoal black */
	--color-background: #f5f5f0;  /* Soft beige */
	--color-accent: #fdfaf4;      /* Warm ivory */
	--color-optional: #8b8372;    /* Taupe gray */
	
	/* Typography */
	--font-primary: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', Oxygen, Ubuntu, Cantarell, sans-serif;
	--font-secondary: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Oxygen, Ubuntu, Cantarell, sans-serif;
	--font-fallback: -apple-system, BlinkMacSystemFont, 'Segoe UI', Oxygen, Ubuntu, Cantarell, sans-serif;
	
	/* Font Weights */
	--font-weight-light: 300;
	--font-weight-regular: 400;
	--font-weight-medium: 500;
	--font-weight-semibold: 600;
	--font-weight-bold: 700;
	
	/* Font Sizes */
	--font-size-xs: 0.75rem;    /* 12px */
	--font-size-sm: 0.875rem;   /* 14px */
	--font-size-base: 1rem;     /* 16px */
	--font-size-lg: 1.125rem;   /* 18px */
	--font-size-xl: 1.25rem;    /* 20px */
	--font-size-2xl: 1.5rem;    /* 24px */
	--font-size-3xl: 1.875rem;  /* 30px */
	--font-size-4xl: 2.25rem;   /* 36px */
	--font-size-5xl: 3rem;      /* 48px */
	
	/* Line Heights */
	--line-height-tight: 1.25;
	--line-height-normal: 1.5;
	--line-height-relaxed: 1.625;
	
	/* Spacing */
	--spacing-xs: 0.25rem;   /* 4px */
	--spacing-sm: 0.5rem;    /* 8px */
	--spacing-md: 1rem;      /* 16px */
	--spacing-lg: 1.5rem;    /* 24px */
	--spacing-xl: 2rem;      /* 32px */
	--spacing-2xl: 3rem;     /* 48px */
	--spacing-3xl: 4rem;     /* 64px */
	
	/* Borders */
	--border-radius-sm: 0.25rem;
	--border-radius-md: 0.5rem;
	--border-radius-lg: 1rem;
	
	/* Shadows */
	--shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
	--shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
	--shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
	
	/* Transitions */
	--transition-fast: 0.15s ease-in-out;
	--transition-normal: 0.3s ease-in-out;
	--transition-slow: 0.5s ease-in-out;
}

/*--------------------------------------------------------------
# Generic
--------------------------------------------------------------*/

/* Normalize
--------------------------------------------- */

/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */

/* Document
	 ========================================================================== */

/**
 * 1. Correct the line height in all browsers.
 * 2. Prevent adjustments of font size after orientation changes in iOS.
 */
html {
	line-height: 1.15;
	-webkit-text-size-adjust: 100%;
}

/* Sections
	 ========================================================================== */

/**
 * Remove the margin in all browsers.
 */
body {
	margin: 0;
}

/**
 * Render the `main` element consistently in IE.
 */
main {
	display: block;
}

/**
 * Correct the font size and margin on `h1` elements within `section` and
 * `article` contexts in Chrome, Firefox, and Safari.
 */
h1 {
	font-size: 2em;
	margin: 0.67em 0;
}

/* Grouping content
	 ========================================================================== */

/**
 * 1. Add the correct box sizing in Firefox.
 * 2. Show the overflow in Edge and IE.
 */
hr {
	box-sizing: content-box;
	height: 0;
	overflow: visible;
}

/**
 * 1. Correct the inheritance and scaling of font size in all browsers.
 * 2. Correct the odd `em` font sizing in all browsers.
 */
pre {
	font-family: monospace, monospace;
	font-size: 1em;
}

/* Text-level semantics
	 ========================================================================== */

/**
 * Remove the gray background on active links in IE 10.
 */
a {
	background-color: transparent;
}

/**
 * 1. Remove the bottom border in Chrome 57-
 * 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari.
 */
abbr[title] {
	border-bottom: none;
	text-decoration: underline;
	text-decoration: underline dotted;
}

/**
 * Add the correct font weight in Chrome, Edge, and Safari.
 */
b,
strong {
	font-weight: bolder;
}

/**
 * 1. Correct the inheritance and scaling of font size in all browsers.
 * 2. Correct the odd `em` font sizing in all browsers.
 */
code,
kbd,
samp {
	font-family: monospace, monospace;
	font-size: 1em;
}

/**
 * Add the correct font size in all browsers.
 */
small {
	font-size: 80%;
}

/**
 * Prevent `sub` and `sup` elements from affecting the line height in
 * all browsers.
 */
sub,
sup {
	font-size: 75%;
	line-height: 0;
	position: relative;
	vertical-align: baseline;
}

sub {
	bottom: -0.25em;
}

sup {
	top: -0.5em;
}

/* Embedded content
	 ========================================================================== */

/**
 * Remove the border on images inside links in IE 10.
 */
img {
	border-style: none;
}

/* Forms
	 ========================================================================== */

/**
 * 1. Change the font styles in all browsers.
 * 2. Remove the margin in Firefox and Safari.
 */
button,
input,
optgroup,
select,
textarea {
	font-family: inherit;
	font-size: 100%;
	line-height: 1.15;
	margin: 0;
}

/**
 * Show the overflow in IE.
 * 1. Show the overflow in Edge.
 */
button,
input {
	overflow: visible;
}

/**
 * Remove the inheritance of text transform in Edge, Firefox, and IE.
 * 1. Remove the inheritance of text transform in Firefox.
 */
button,
select {
	text-transform: none;
}

/**
 * Correct the inability to style clickable types in iOS and Safari.
 */
button,
[type="button"],
[type="reset"],
[type="submit"] {
	-webkit-appearance: button;
}

/**
 * Remove the inner border and padding in Firefox.
 */
button::-moz-focus-inner,
[type="button"]::-moz-focus-inner,
[type="reset"]::-moz-focus-inner,
[type="submit"]::-moz-focus-inner {
	border-style: none;
	padding: 0;
}

/**
 * Restore the focus styles unset by the previous rule.
 */
button:-moz-focusring,
[type="button"]:-moz-focusring,
[type="reset"]:-moz-focusring,
[type="submit"]:-moz-focusring {
	outline: 1px dotted ButtonText;
}

/**
 * Correct the padding in Firefox.
 */
fieldset {
	padding: 0.35em 0.75em 0.625em;
}

/**
 * 1. Correct the text wrapping in Edge and IE.
 * 2. Correct the color inheritance from `fieldset` elements in IE.
 * 3. Remove the padding so developers are not caught out when they zero out
 *		`fieldset` elements in all browsers.
 */
legend {
	box-sizing: border-box;
	color: inherit;
	display: table;
	max-width: 100%;
	padding: 0;
	white-space: normal;
}

/**
 * Add the correct vertical alignment in Chrome, Firefox, and Opera.
 */
progress {
	vertical-align: baseline;
}

/**
 * Remove the default vertical scrollbar in IE 10+.
 */
textarea {
	overflow: auto;
}

/**
 * 1. Add the correct box sizing in IE 10.
 * 2. Remove the padding in IE 10.
 */
[type="checkbox"],
[type="radio"] {
	box-sizing: border-box;
	padding: 0;
}

/**
 * Correct the cursor style of increment and decrement buttons in Chrome.
 */
[type="number"]::-webkit-inner-spin-button,
[type="number"]::-webkit-outer-spin-button {
	height: auto;
}

/**
 * 1. Correct the odd appearance in Chrome and Safari.
 * 2. Correct the outline style in Safari.
 */
[type="search"] {
	-webkit-appearance: textfield;
	outline-offset: -2px;
}

/**
 * Remove the inner padding in Chrome and Safari on macOS.
 */
[type="search"]::-webkit-search-decoration {
	-webkit-appearance: none;
}

/**
 * 1. Correct the inability to style clickable types in iOS and Safari.
 * 2. Change font properties to `inherit` in Safari.
 */
::-webkit-file-upload-button {
	-webkit-appearance: button;
	font: inherit;
}

/* Interactive
	 ========================================================================== */

/*
 * Add the correct display in Edge, IE 10+, and Firefox.
 */
details {
	display: block;
}

/*
 * Add the correct display in all browsers.
 */
summary {
	display: list-item;
}

/* Misc
	 ========================================================================== */

/**
 * Add the correct display in IE 10+.
 */
template {
	display: none;
}

/**
 * Add the correct display in IE 10.
 */
[hidden] {
	display: none;
}

/* Box sizing
--------------------------------------------- */

/* Inherit box-sizing to more easily change it's value on a component level.
@link http://css-tricks.com/inheriting-box-sizing-probably-slightly-better-best-practice/ */
*,
*::before,
*::after {
	box-sizing: inherit;
}

html {
	box-sizing: border-box;
}

/*--------------------------------------------------------------
# Base
--------------------------------------------------------------*/

/* Typography
--------------------------------------------- */
body,
button,
input,
select,
optgroup,
textarea {
	color: var(--color-secondary);
	font-family: var(--font-primary);
	font-size: var(--font-size-base);
	line-height: var(--line-height-normal);
	background-color: var(--color-background);
}

h1,
h2,
h3,
h4,
h5,
h6 {
	clear: both;
	color: var(--color-primary);
	font-family: var(--font-secondary);
	font-weight: var(--font-weight-bold);
	line-height: var(--line-height-tight);
	margin-bottom: var(--spacing-md);
}

h1 {
	font-size: var(--font-size-5xl);
	font-weight: var(--font-weight-bold);
}

h2 {
	font-size: var(--font-size-4xl);
	font-weight: var(--font-weight-semibold);
}

h3 {
	font-size: var(--font-size-3xl);
	font-weight: var(--font-weight-semibold);
}

h4 {
	font-size: var(--font-size-2xl);
	font-weight: var(--font-weight-medium);
}

h5 {
	font-size: var(--font-size-xl);
	font-weight: var(--font-weight-medium);
}

h6 {
	font-size: var(--font-size-lg);
	font-weight: var(--font-weight-medium);
}

p {
	margin-bottom: 1.5em;
}

dfn,
cite,
em,
i {
	font-style: italic;
}

blockquote {
	margin: 0 1.5em;
}

address {
	margin: 0 0 1.5em;
}

pre {
	background: #eee;
	font-family: "Courier 10 Pitch", courier, monospace;
	line-height: 1.6;
	margin-bottom: 1.6em;
	max-width: 100%;
	overflow: auto;
	padding: 1.6em;
}

code,
kbd,
tt,
var {
	font-family: monaco, consolas, "Andale Mono", "DejaVu Sans Mono", monospace;
}

abbr,
acronym {
	border-bottom: 1px dotted #666;
	cursor: help;
}

mark,
ins {
	background: #fff9c0;
	text-decoration: none;
}

big {
	font-size: 125%;
}

/* Elements
--------------------------------------------- */
body {
	background: var(--color-background);
}

hr {
	background-color: #ccc;
	border: 0;
	height: 1px;
	margin-bottom: 1.5em;
}

ul,
ol {
	margin: 0 0 1.5em 3em;
}

ul {
	list-style: disc;
}

ol {
	list-style: decimal;
}

li > ul,
li > ol {
	margin-bottom: 0;
	margin-left: 1.5em;
}

dt {
	font-weight: 700;
}

dd {
	margin: 0 1.5em 1.5em;
}

/* Make sure embeds and iframes fit their containers. */
embed,
iframe,
object {
	max-width: 100%;
}

img {
	height: auto;
	max-width: 100%;
}

figure {
	margin: 1em 0;
}

table {
	margin: 0 0 1.5em;
	width: 100%;
}

/* Links
--------------------------------------------- */
a {
	color: var(--color-primary);
	text-decoration: none;
	transition: var(--transition-fast);
}

a:visited {
	color: var(--color-primary);
}

a:hover,
a:focus,
a:active {
	color: var(--color-secondary);
	text-decoration: underline;
}

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

a:hover,
a:active {
	outline: 0;
}

/* Forms
--------------------------------------------- */
button,
input[type="button"],
input[type="reset"],
input[type="submit"] {
	border: 1px solid var(--color-primary);
	border-radius: var(--border-radius-md);
	background: var(--color-primary);
	color: var(--color-accent);
	font-family: var(--font-secondary);
	font-weight: var(--font-weight-medium);
	line-height: var(--line-height-tight);
	padding: var(--spacing-sm) var(--spacing-lg);
	cursor: pointer;
	transition: var(--transition-normal);
	box-shadow: var(--shadow-sm);
}

button:hover,
input[type="button"]:hover,
input[type="reset"]:hover,
input[type="submit"]:hover {
	background: var(--color-secondary);
	border-color: var(--color-secondary);
	box-shadow: var(--shadow-md);
	transform: translateY(-1px);
}

button:active,
button:focus,
input[type="button"]:active,
input[type="button"]:focus,
input[type="reset"]:active,
input[type="reset"]:focus,
input[type="submit"]:active,
input[type="submit"]:focus {
	background: var(--color-secondary);
	border-color: var(--color-secondary);
	outline: 2px solid var(--color-primary);
	outline-offset: 2px;
	transform: translateY(0);
}

input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
input[type="number"],
input[type="tel"],
input[type="range"],
input[type="date"],
input[type="month"],
input[type="week"],
input[type="time"],
input[type="datetime"],
input[type="datetime-local"],
input[type="color"],
textarea {
	color: var(--color-secondary);
	border: 1px solid var(--color-optional);
	border-radius: var(--border-radius-md);
	padding: var(--spacing-sm) var(--spacing-md);
	font-family: var(--font-primary);
	font-size: var(--font-size-base);
	line-height: var(--line-height-normal);
	background-color: var(--color-accent);
	transition: var(--transition-fast);
	box-shadow: var(--shadow-sm);
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="url"]:focus,
input[type="password"]:focus,
input[type="search"]:focus,
input[type="number"]:focus,
input[type="tel"]:focus,
input[type="range"]:focus,
input[type="date"]:focus,
input[type="month"]:focus,
input[type="week"]:focus,
input[type="time"]:focus,
input[type="datetime"]:focus,
input[type="datetime-local"]:focus,
input[type="color"]:focus,
textarea:focus {
	color: var(--color-secondary);
	border-color: var(--color-primary);
	outline: 2px solid var(--color-primary);
	outline-offset: 2px;
	box-shadow: var(--shadow-md);
}

select {
	border: 1px solid var(--color-optional);
	border-radius: var(--border-radius-md);
	padding: var(--spacing-sm) var(--spacing-md);
	font-family: var(--font-primary);
	background-color: var(--color-accent);
	color: var(--color-secondary);
	transition: var(--transition-fast);
}

select:focus {
	border-color: var(--color-primary);
	outline: 2px solid var(--color-primary);
	outline-offset: 2px;
}

textarea {
	width: 100%;
	min-height: 120px;
	resize: vertical;
}

/*--------------------------------------------------------------
# Layouts
--------------------------------------------------------------*/

/* Container and Grid Layout */
.container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 var(--spacing-lg);
}

.site-header {
	background-color: var(--color-accent);
	box-shadow: var(--shadow-sm);
	position: sticky;
	top: 0;
	z-index: 1000;
}

.header-content {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: var(--spacing-md) 0;
	min-height: 80px;
}

.site-branding {
	display: flex;
	align-items: center;
	gap: var(--spacing-md);
}

.custom-logo-wrapper,
.logo-fallback {
	flex-shrink: 0;
}

.custom-logo,
.site-logo {
	max-height: 60px;
	width: auto;
	height: auto;
	max-width: 200px;
}

.site-identity {
	display: flex;
	flex-direction: column;
}

.site-title {
	margin: 0;
	font-size: var(--font-size-xl);
	font-weight: var(--font-weight-bold);
	line-height: var(--line-height-tight);
}

.site-title a {
	color: var(--color-primary);
	text-decoration: none;
}

.site-title a:hover {
	color: var(--color-secondary);
}

.site-description {
	margin: 0;
	font-size: var(--font-size-sm);
	color: var(--color-optional);
	font-style: italic;
}

.site-content {
	min-height: calc(100vh - 200px);
}

.site-footer {
	background-color: var(--color-secondary);
	color: var(--color-accent);
	margin-top: var(--spacing-3xl);
}

/* Section Layouts */
.section {
	padding: var(--spacing-3xl) 0;
}

.section-hero {
	background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
	color: var(--color-accent);
	padding: var(--spacing-3xl) 0;
	position: relative;
	overflow: hidden;
}

.section-services {
	background-color: var(--color-background);
	padding: var(--spacing-3xl) 0;
}

.section-about {
	background-color: var(--color-accent);
	padding: var(--spacing-3xl) 0;
}

.section-contact {
	background-color: var(--color-background);
	padding: var(--spacing-3xl) 0;
}

/* Contact Section Layout */
.contact-content {
	display: flex;
	flex-direction: column;
	gap: var(--spacing-xl);
}

.contact-info,
.contact-form {
	flex: 1;
}

.contact-info {
	display: flex;
	flex-direction: column;
	gap: var(--spacing-lg);
}

.contact-item {
	background-color: white;
	padding: var(--spacing-lg);
	border-radius: 8px;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: black;
}

.contact-item:hover {
	transform: translateY(-2px);
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.contact-item h3 {
	color: var(--color-primary);
	margin-bottom: var(--spacing-sm);
	font-size: var(--font-size-lg);
	font-weight: var(--font-weight-semibold);
}

.contact-item p {
	margin: 0;
	color: var(--color-secondary);
}

.contact-item a {
	color: var(--color-primary);
	text-decoration: none;
	transition: color 0.3s ease;
}

.contact-item a:hover {
	color: var(--color-secondary);
	text-decoration: underline;
}

.contact-form {
	background-color: white;
	padding: var(--spacing-xl);
	border-radius: 8px;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.contact-form h3 {
	color: var(--color-primary);
	margin-bottom: var(--spacing-lg);
	font-size: var(--font-size-xl);
	font-weight: var(--font-weight-semibold);
}

.contact-map {
	width: 100%;
	margin-top: var(--spacing-lg);
}

.map-container {
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.map-container iframe {
	display: block;
	width: 100%;
	border: none;
}

/* Desktop Layout: Contact info and form side-by-side */
@media (min-width: 768px) {
	.contact-content {
		display: flex;
		flex-direction: column;
		gap: var(--spacing-xl);
	}
	
	.contact-top-row {
		display: flex;
		gap: var(--spacing-xl);
	}
	
	.contact-info,
	.contact-form {
		flex: 1;
		min-width: 0; /* Prevent flex items from overflowing */
	}
	
	.contact-map {
		width: 100%;
		margin-top: 0;
	}
}

/* Wave Dividers */
.wave-divider {
	width: 100%;
	height: 40px;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120' preserveAspectRatio='none'%3E%3Cpath d='M0,0V46.29c47.79,22.2,103.59,32.17,158,28,70.36-5.37,136.33-33.31,206.8-37.5C438.64,32.43,512.34,53.67,583,72.05c69.27,18,138.3,24.88,209.4,13.08,36.15-6,69.85-17.84,104.45-29.34C989.49,25,1113-14.29,1200,52.47V0Z' fill='%236b512c' fill-opacity='0.3'/%3E%3C/svg%3E") no-repeat center/cover;
	transform: rotate(180deg);
}

.wave-divider-bottom {
	width: 100%;
	height: 40px;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120' preserveAspectRatio='none'%3E%3Cpath d='M0,0V46.29c47.79,22.2,103.59,32.17,158,28,70.36-5.37,136.33-33.31,206.8-37.5C438.64,32.43,512.34,53.67,583,72.05c69.27,18,138.3,24.88,209.4,13.08,36.15-6,69.85-17.84,104.45-29.34C989.49,25,1113-14.29,1200,52.47V0Z' fill='%236b512c' fill-opacity='0.3'/%3E%3C/svg%3E") no-repeat center/cover;
}

/* Wave divider SVG styling */
.wave-divider svg {
	width: 100%;
	height: 100%;
	display: block;
}

.wave-divider .shape-fill {
	fill: var(--color-primary);
}

.wave-divider-flip {
	transform: rotate(180deg) scaleX(-1);
}

/* Grid System */
.grid {
	display: grid;
	gap: var(--spacing-lg);
}

.grid-2 {
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-3 {
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.grid-4 {
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

/*--------------------------------------------------------------
# Components
--------------------------------------------------------------*/

/* Navigation
--------------------------------------------- */
.main-navigation {
	display: block;
	width: 100%;
	position: relative;
}

.main-navigation ul {
	display: none;
	list-style: none;
	margin: 0;
	padding-left: 0;
	background-color: var(--color-accent);
	border-radius: var(--border-radius-lg);
	box-shadow: var(--shadow-md);
}

.main-navigation ul ul {
	box-shadow: var(--shadow-lg);
	float: left;
	position: absolute;
	top: 100%;
	left: -999em;
	z-index: 99999;
	background-color: var(--color-accent);
	border-radius: var(--border-radius-md);
	min-width: 200px;
}

.main-navigation ul ul ul {
	left: -999em;
	top: 0;
}

.main-navigation ul ul li:hover > ul,
.main-navigation ul ul li.focus > ul {
	display: block;
	left: auto;
}

.main-navigation ul ul a {
	width: 200px;
	padding: var(--spacing-sm) var(--spacing-md);
	border-bottom: 1px solid var(--color-background);
}

.main-navigation ul ul a:last-child {
	border-bottom: none;
}

.main-navigation ul li:hover > ul,
.main-navigation ul li.focus > ul {
	left: auto;
}

.main-navigation li {
	position: relative;
}

.main-navigation a {
	display: block;
	text-decoration: none;
	color: var(--color-primary);
	font-family: var(--font-secondary);
	font-weight: var(--font-weight-medium);
	padding: var(--spacing-md) var(--spacing-lg);
	transition: var(--transition-fast);
	border-radius: var(--border-radius-md);
}

.main-navigation a:hover,
.main-navigation a:focus {
	background-color: var(--color-primary);
	color: var(--color-accent);
	transform: translateY(-1px);
}

.main-navigation .current_page_item > a,
.main-navigation .current-menu-item > a {
	background-color: var(--color-primary);
	color: var(--color-accent);
}

/* Mobile Menu Toggle */
.menu-toggle {
	display: block;
	background: transparent;
	color: var(--color-primary);
	border: 2px solid var(--color-primary);
	padding: var(--spacing-sm);
	border-radius: var(--border-radius-md);
	cursor: pointer;
	transition: var(--transition-fast);
	position: relative;
	z-index: 1001;
}

.menu-toggle:hover,
.menu-toggle:focus {
	background: var(--color-primary);
	color: var(--color-accent);
	transform: translateY(-1px);
}

.hamburger {
	display: flex;
	flex-direction: column;
	gap: 3px;
	margin-right: var(--spacing-xs);
}

.hamburger-line {
	width: 20px;
	height: 2px;
	background: currentColor;
	transition: var(--transition-fast);
	transform-origin: center;
}

.main-navigation.toggled .hamburger-line:nth-child(1) {
	transform: rotate(45deg) translate(5px, 5px);
}

.main-navigation.toggled .hamburger-line:nth-child(2) {
	opacity: 0;
}

.main-navigation.toggled .hamburger-line:nth-child(3) {
	transform: rotate(-45deg) translate(7px, -6px);
}

.menu-text {
	font-size: var(--font-size-sm);
	font-weight: var(--font-weight-medium);
}

.main-navigation.toggled ul {
	display: block;
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	margin-top: var(--spacing-sm);
}

/* Desktop Navigation */
@media screen and (min-width: 37.5em) {
	.menu-toggle {
		display: none;
	}

	.main-navigation ul {
		display: flex;
		position: static;
		box-shadow: none;
		background: transparent;
		border-radius: 0;
	}

	.main-navigation li {
		margin: 0 var(--spacing-xs);
	}

	.main-navigation a {
		padding: var(--spacing-sm) var(--spacing-md);
	}
}

/* Card Components */
.card {
	background: var(--color-accent);
	border-radius: var(--border-radius-lg);
	padding: var(--spacing-xl);
	box-shadow: var(--shadow-md);
	transition: var(--transition-normal);
	border: 1px solid var(--color-background);
}

.card:hover {
	transform: translateY(-4px);
	box-shadow: var(--shadow-lg);
}

.card-header {
	margin-bottom: var(--spacing-lg);
}

.card-title {
	color: var(--color-primary);
	font-size: var(--font-size-xl);
	font-weight: var(--font-weight-semibold);
	margin-bottom: var(--spacing-sm);
}

.card-content {
	color: var(--color-secondary);
	line-height: var(--line-height-relaxed);
}

.card-footer {
	margin-top: var(--spacing-lg);
	padding-top: var(--spacing-md);
	border-top: 1px solid var(--color-background);
}

/* Services Grid Layout */
.services-grid {
	display: grid;
	gap: var(--spacing-lg);
	grid-template-columns: 1fr; /* Mobile: 1 column */
}

/* Service Cards */
.service-card {
	text-align: center;
	background: var(--color-accent);
	border-radius: var(--border-radius-lg);
	padding: var(--spacing-xl);
	box-shadow: var(--shadow-md);
	transition: var(--transition-normal);
	border: 1px solid var(--color-background);
}

.service-card:hover {
	transform: translateY(-4px);
	box-shadow: var(--shadow-lg);
	border-color: var(--color-primary);
}

.service-icon {
	font-size: var(--font-size-5xl);
	color: var(--color-primary);
	margin-bottom: var(--spacing-md);
	display: block;
}

.service-title {
	color: var(--color-primary);
	font-size: var(--font-size-xl);
	font-weight: var(--font-weight-semibold);
	margin-bottom: var(--spacing-sm);
}

.service-description {
	color: var(--color-secondary);
	line-height: var(--line-height-relaxed);
}

/* Button Components */
.btn {
	display: inline-block;
	padding: var(--spacing-sm) var(--spacing-lg);
	border-radius: var(--border-radius-md);
	text-decoration: none;
	font-family: var(--font-secondary);
	font-weight: var(--font-weight-medium);
	font-size: var(--font-size-base);
	line-height: var(--line-height-tight);
	cursor: pointer;
	transition: var(--transition-normal);
	border: 1px solid transparent;
	text-align: center;
}

.btn-primary {
	background: var(--color-primary);
	color: var(--color-accent);
	border-color: var(--color-primary);
}

.btn-primary:hover,
.btn-primary:focus {
	background: var(--color-secondary);
	border-color: var(--color-secondary);
	color: var(--color-accent);
	transform: translateY(-1px);
	box-shadow: var(--shadow-md);
}

.btn-secondary {
	background: transparent;
	color: var(--color-primary);
	border-color: var(--color-primary);
}

.btn-secondary:hover,
.btn-secondary:focus {
	background: var(--color-primary);
	color: var(--color-accent);
	transform: translateY(-1px);
	box-shadow: var(--shadow-md);
}

.btn-large {
	padding: var(--spacing-md) var(--spacing-xl);
	font-size: var(--font-size-lg);
}

/* Hero Section */
.hero-section {
	position: relative;
	overflow: hidden;
}

.hero-container {
	position: relative;
}

/* Slider Components */
.slider-container {
	position: relative;
	overflow: hidden;
}

.slider-wrapper {
	position: relative;
	width: 100%;
	min-height: 500px;
}

.slide {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	display: none;
	align-items: center;
	justify-content: center;
}

.slide[data-active="true"],
.slide.active {
	display: flex;
}

.slide-background {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 1;
}

.slide-image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}

.slide-overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.4);
	z-index: 2;
}

.slide-content {
	position: relative;
	z-index: 3;
	text-align: center;
	color: var(--color-accent);
	width: 100%;
	padding: var(--spacing-lg);
}

.slide-text {
	max-width: 600px;
	margin: 0 auto;
}

.slide-title {
	font-size: var(--font-size-5xl);
	font-weight: var(--font-weight-bold);
	margin-bottom: var(--spacing-md);
	text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
	color: var(--color-accent);
}

.slide-description {
	font-size: var(--font-size-lg);
	line-height: var(--line-height-relaxed);
	margin-bottom: var(--spacing-xl);
	text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
}

/* Slider Navigation */
.slider-nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 4;
	width: 100%;
	display: flex;
	justify-content: space-between;
	padding: 0 var(--spacing-lg);
	pointer-events: none;
}

.slider-btn {
	background: rgba(255, 255, 255, 0.2);
	border: 2px solid rgba(255, 255, 255, 0.5);
	color: var(--color-accent);
	width: 50px;
	height: 50px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: var(--transition-fast);
	pointer-events: all;
	backdrop-filter: blur(10px);
}

.slider-btn:hover,
.slider-btn:focus {
	background: rgba(255, 255, 255, 0.3);
	border-color: var(--color-accent);
	transform: scale(1.1);
}

/* Slider Dots */
.slider-dots {
	position: absolute;
	bottom: var(--spacing-lg);
	left: 50%;
	transform: translateX(-50%);
	display: flex;
	gap: var(--spacing-sm);
	z-index: 4;
}

.slider-dot {
	width: 12px;
	height: 12px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.5);
	border: 2px solid transparent;
	cursor: pointer;
	transition: var(--transition-fast);
}

.slider-dot:hover,
.slider-dot.active {
	background: var(--color-accent);
	border-color: var(--color-accent);
	transform: scale(1.2);
}

/* Hero Fallback */
.hero-fallback {
	position: relative;
	min-height: 500px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
}

.hero-background {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 1;
}

.hero-logo {
	width: 100%;
	height: 100%;
	object-fit: contain;
	opacity: 0.1;
}

.hero-overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.3);
	z-index: 2;
}

.hero-content {
	position: relative;
	z-index: 3;
	text-align: center;
	color: var(--color-accent);
	padding: var(--spacing-lg);
}

.hero-text {
	max-width: 600px;
	margin: 0 auto;
}

.hero-title {
	font-size: var(--font-size-5xl);
	font-weight: var(--font-weight-bold);
	margin-bottom: var(--spacing-md);
	text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.hero-description {
	font-size: var(--font-size-lg);
	line-height: var(--line-height-relaxed);
	margin-bottom: var(--spacing-xl);
	text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
}

/* Scroll Indicator */
.scroll-indicator {
	position: absolute;
	bottom: var(--spacing-lg);
	left: 50%;
	transform: translateX(-50%);
	z-index: 4;
}

.scroll-down {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	background: rgba(255, 255, 255, 0.2);
	border: 2px solid rgba(255, 255, 255, 0.5);
	border-radius: 50%;
	color: var(--color-accent);
	text-decoration: none;
	transition: var(--transition-fast);
	backdrop-filter: blur(10px);
	animation: bounce 2s infinite;
}

.scroll-down:hover,
.scroll-down:focus {
	background: rgba(255, 255, 255, 0.3);
	border-color: var(--color-accent);
	transform: scale(1.1);
}

@keyframes bounce {
	0%, 20%, 50%, 80%, 100% {
		transform: translateY(0);
	}
	40% {
		transform: translateY(-10px);
	}
	60% {
		transform: translateY(-5px);
	}
}

.site-main .comment-navigation,
.site-main
.posts-navigation,
.site-main
.post-navigation {
	margin: 0 0 1.5em;
}

.comment-navigation .nav-links,
.posts-navigation .nav-links,
.post-navigation .nav-links {
	display: flex;
}

.comment-navigation .nav-previous,
.posts-navigation .nav-previous,
.post-navigation .nav-previous {
	flex: 1 0 50%;
}

.comment-navigation .nav-next,
.posts-navigation .nav-next,
.post-navigation .nav-next {
	text-align: end;
	flex: 1 0 50%;
}

/* Posts and pages
--------------------------------------------- */
.sticky {
	display: block;
}

.post,
.page {
	margin: 0 0 1.5em;
}

.updated:not(.published) {
	display: none;
}

.page-content,
.entry-content,
.entry-summary {
	margin: 1.5em 0 0;
}

.page-links {
	clear: both;
	margin: 0 0 1.5em;
}

/* Comments
--------------------------------------------- */
.comment-content a {
	word-wrap: break-word;
}

.bypostauthor {
	display: block;
}

/* Widgets
--------------------------------------------- */
.widget {
	margin: 0 0 1.5em;
}

.widget select {
	max-width: 100%;
}

/* Media
--------------------------------------------- */
.page-content .wp-smiley,
.entry-content .wp-smiley,
.comment-content .wp-smiley {
	border: none;
	margin-bottom: 0;
	margin-top: 0;
	padding: 0;
}

/* Make sure logo link wraps around logo image. */
.custom-logo-link {
	display: inline-block;
}

/* Captions
--------------------------------------------- */
.wp-caption {
	margin-bottom: 1.5em;
	max-width: 100%;
}

.wp-caption img[class*="wp-image-"] {
	display: block;
	margin-left: auto;
	margin-right: auto;
}

.wp-caption .wp-caption-text {
	margin: 0.8075em 0;
}

.wp-caption-text {
	text-align: center;
}

/* Galleries
--------------------------------------------- */
.gallery {
	margin-bottom: 1.5em;
	display: grid;
	grid-gap: 1.5em;
}

.gallery-item {
	display: inline-block;
	text-align: center;
	width: 100%;
}

.gallery-columns-2 {
	grid-template-columns: repeat(2, 1fr);
}

.gallery-columns-3 {
	grid-template-columns: repeat(3, 1fr);
}

.gallery-columns-4 {
	grid-template-columns: repeat(4, 1fr);
}

.gallery-columns-5 {
	grid-template-columns: repeat(5, 1fr);
}

.gallery-columns-6 {
	grid-template-columns: repeat(6, 1fr);
}

.gallery-columns-7 {
	grid-template-columns: repeat(7, 1fr);
}

.gallery-columns-8 {
	grid-template-columns: repeat(8, 1fr);
}

.gallery-columns-9 {
	grid-template-columns: repeat(9, 1fr);
}

.gallery-caption {
	display: block;
}

/*--------------------------------------------------------------
# Plugins
--------------------------------------------------------------*/

/* Jetpack infinite scroll
--------------------------------------------- */

/* Hide the Posts Navigation and the Footer when Infinite Scroll is in use. */
.infinite-scroll .posts-navigation,
.infinite-scroll.neverending .site-footer {
	display: none;
}

/* Re-display the Theme Footer when Infinite Scroll has reached its end. */
.infinity-end.neverending .site-footer {
	display: block;
}

/*--------------------------------------------------------------
# Responsive Design & Media Queries
--------------------------------------------------------------*/

/* Mobile First Approach - Base styles are mobile */

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) {
	.container {
		padding: 0 var(--spacing-xl);
	}
	
	.slider-title {
		font-size: var(--font-size-5xl);
	}
	
	.slider-description {
		font-size: var(--font-size-xl);
	}
	
	.service-card {
		padding: var(--spacing-xl);
	}
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) {
	.container {
		padding: 0 var(--spacing-2xl);
	}
	
	.grid-2 {
		grid-template-columns: repeat(2, 1fr);
	}
	
	.grid-3 {
		grid-template-columns: repeat(2, 1fr);
	}
	
	.grid-4 {
		grid-template-columns: repeat(2, 1fr);
	}
	
	.services-grid {
		grid-template-columns: repeat(2, 1fr); /* Desktop: 2 columns */
	}
	
	.section {
		padding: var(--spacing-3xl) 0;
	}
	
	.section-hero {
		padding: 80px 0;
	}
	
	.slider-slide {
		min-height: 600px;
	}
	
	.slider-title {
		font-size: calc(var(--font-size-5xl) + 0.5rem);
	}
	
	.service-card {
		padding: var(--spacing-2xl);
	}
	
	.card {
		padding: var(--spacing-2xl);
	}
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
	.container {
		padding: 0 var(--spacing-3xl);
	}
	
	.grid-3 {
		grid-template-columns: repeat(3, 1fr);
	}
	
	.grid-4 {
		grid-template-columns: repeat(3, 1fr);
	}
	
	.section {
		padding: 100px 0;
	}
	
	.section-hero {
		padding: 120px 0;
	}
	
	.slider-slide {
		min-height: 700px;
	}
	
	.slider-title {
		font-size: calc(var(--font-size-5xl) + 1rem);
	}
	
	.main-navigation li {
		margin: 0 var(--spacing-sm);
	}
	
	.main-navigation a {
		padding: var(--spacing-md) var(--spacing-lg);
	}
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
	.container {
		max-width: 1200px;
		padding: 0 var(--spacing-lg);
	}
	
	.grid-4 {
		grid-template-columns: repeat(4, 1fr);
	}
	
	.section {
		padding: 120px 0;
	}
	
	.section-hero {
		padding: 140px 0;
	}
	
	.slider-slide {
		min-height: 800px;
	}
	
	.slider-title {
		font-size: calc(var(--font-size-5xl) + 1.5rem);
	}
	
	.slider-description {
		font-size: var(--font-size-2xl);
	}
}

/* Mobile-specific adjustments */
@media (max-width: 575px) {
	:root {
		--font-size-5xl: 2rem;
		--font-size-4xl: 1.75rem;
		--font-size-3xl: 1.5rem;
		--font-size-2xl: 1.25rem;
		--font-size-xl: 1.125rem;
		--spacing-3xl: 2rem;
		--spacing-2xl: 1.5rem;
		--spacing-xl: 1rem;
	}
	
	.container {
		padding: 0 var(--spacing-md);
	}
	
	.header-content {
		padding: var(--spacing-sm) 0;
		min-height: 60px;
	}
	
	.site-branding {
		gap: var(--spacing-sm);
	}
	
	.custom-logo,
	.site-logo {
		max-height: 40px;
		max-width: 140px;
	}
	
	.site-title {
		font-size: var(--font-size-lg);
	}
	
	.site-description {
		display: none;
	}
	
	.section {
		padding: var(--spacing-2xl) 0;
	}
	
	.section-hero {
		padding: 60px 0;
	}
	
	.slider-slide {
		min-height: 400px;
	}
	
	.slider-content {
		padding: var(--spacing-md);
	}
	
	.slider-title,
	.slide-title {
		font-size: var(--font-size-3xl);
	}
	
	.slider-description,
	.slide-description {
		font-size: var(--font-size-base);
	}
	
	.service-card {
		padding: var(--spacing-lg);
	}
	
	.card {
		padding: var(--spacing-lg);
	}
	
	.btn {
		width: 100%;
		margin-bottom: var(--spacing-sm);
	}
	
	.wave-divider,
	.wave-divider-bottom {
		height: 30px;
	}
	
	.main-navigation a {
		padding: var(--spacing-md);
		border-bottom: 1px solid var(--color-background);
	}
	
	.main-navigation li:last-child a {
		border-bottom: none;
	}
	
	.menu-toggle {
		padding: var(--spacing-sm);
	}
	
	.menu-text {
		display: none;
	}
}

/* Print styles */
@media print {
	* {
		background: transparent !important;
		color: black !important;
		box-shadow: none !important;
		text-shadow: none !important;
	}
	
	.site-header,
	.site-footer,
	.slider-controls,
	.menu-toggle,
	.btn {
		display: none !important;
	}
	
	.container {
		width: 100% !important;
		max-width: none !important;
		padding: 0 !important;
	}
	
	.section {
		page-break-inside: avoid;
		padding: 1rem 0 !important;
	}
	
	h1, h2, h3 {
		page-break-after: avoid;
	}
	
	a[href]:after {
		content: " (" attr(href) ")";
	}
	
	.slider-slide {
		min-height: auto !important;
	}
}

/* Accessibility enhancements */
@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}
	
	.slider-slide {
		transition: none !important;
	}
	
	.card:hover,
	.service-card:hover,
	.btn:hover {
		transform: none !important;
	}
}

/* High contrast mode support */
@media (prefers-contrast: high) {
	:root {
		--color-primary: #000000;
		--color-secondary: #000000;
		--color-background: #ffffff;
		--color-accent: #ffffff;
		--color-optional: #666666;
		--shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
		--shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
		--shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
	}
	
	.btn,
	.card,
	.service-card {
		border: 2px solid var(--color-secondary);
	}
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
	:root {
		--color-primary: #8b7355;
		--color-secondary: #ffffff;
		--color-background: #1a1a1a;
		--color-accent: #2d2d2d;
		--color-optional: #666666;
	}
	
	.wave-divider,
	.wave-divider-bottom {
		background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120' preserveAspectRatio='none'%3E%3Cpath d='M0,0V46.29c47.79,22.2,103.59,32.17,158,28,70.36-5.37,136.33-33.31,206.8-37.5C438.64,32.43,512.34,53.67,583,72.05c69.27,18,138.3,24.88,209.4,13.08,36.15-6,69.85-17.84,104.45-29.34C989.49,25,1113-14.29,1200,52.47V0Z' fill='%238b8372' fill-opacity='0.4'/%3E%3C/svg%3E") no-repeat center/cover;
	}
}

/*--------------------------------------------------------------
# Animations & Keyframes
--------------------------------------------------------------*/

/* Fade in animation */
@keyframes fadeIn {
	from {
		opacity: 0;
		transform: translateY(20px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* Slide in from left */
@keyframes slideInLeft {
	from {
		opacity: 0;
		transform: translateX(-30px);
	}
	to {
		opacity: 1;
		transform: translateX(0);
	}
}

/* Slide in from right */
@keyframes slideInRight {
	from {
		opacity: 0;
		transform: translateX(30px);
	}
	to {
		opacity: 1;
		transform: translateX(0);
	}
}

/* Floating animation for elements */
@keyframes float {
	0%, 100% {
		transform: translateY(0);
	}
	50% {
		transform: translateY(-10px);
	}
}

/* Pulse animation */
@keyframes pulse {
	0% {
		box-shadow: 0 0 0 0 rgba(107, 81, 44, 0.4);
	}
	70% {
		box-shadow: 0 0 0 10px rgba(107, 81, 44, 0);
	}
	100% {
		box-shadow: 0 0 0 0 rgba(107, 81, 44, 0);
	}
}

/* Wave animation */
@keyframes wave {
	0% {
		transform: rotate(0deg);
	}
	10% {
		transform: rotate(14deg);
	}
	20% {
		transform: rotate(-8deg);
	}
	30% {
		transform: rotate(14deg);
	}
	40% {
		transform: rotate(-4deg);
	}
	50% {
		transform: rotate(10deg);
	}
	60% {
		transform: rotate(0deg);
	}
	100% {
		transform: rotate(0deg);
	}
}

/* Smooth scroll behavior */
html {
	scroll-behavior: smooth;
}

/* Scroll reveal classes */
.fade-in {
	opacity: 0;
	transform: translateY(20px);
	transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.visible {
	opacity: 1;
	transform: translateY(0);
}

.slide-in-left {
	opacity: 0;
	transform: translateX(-30px);
	transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.slide-in-left.visible {
	opacity: 1;
	transform: translateX(0);
}

.slide-in-right {
	opacity: 0;
	transform: translateX(30px);
	transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.slide-in-right.visible {
	opacity: 1;
	transform: translateX(0);
}

/* Stagger animation delays */
.fade-in:nth-child(1) { transition-delay: 0.1s; }
.fade-in:nth-child(2) { transition-delay: 0.2s; }
.fade-in:nth-child(3) { transition-delay: 0.3s; }
.fade-in:nth-child(4) { transition-delay: 0.4s; }
.fade-in:nth-child(5) { transition-delay: 0.5s; }
.fade-in:nth-child(6) { transition-delay: 0.6s; }

/* Floating elements */
.float-animation {
	animation: float 6s ease-in-out infinite;
}

/* Pulse animation for CTA buttons */
.btn-pulse {
	animation: pulse 2s infinite;
}

/* Wave animation for icons */
.wave-animation {
	animation: wave 2s ease-in-out;
}

/* Hover effects enhancement */
.hover-lift {
	transition: var(--transition-normal);
}

.hover-lift:hover {
	transform: translateY(-5px);
	box-shadow: var(--shadow-lg);
}

/* Smooth transitions for all interactive elements */
a, button, input, select, textarea, .card, .service-card, .btn {
	transition: var(--transition-normal);
}

/* Loading spinner */
.spinner {
	border: 4px solid var(--color-background);
	border-top: 4px solid var(--color-primary);
	border-radius: 50%;
	width: 40px;
	height: 40px;
	animation: spin 1s linear infinite;
	margin: 0 auto;
}

@keyframes spin {
	0% { transform: rotate(0deg); }
	100% { transform: rotate(360deg); }
}

/* Parallax effect for hero section */
.parallax {
	background-attachment: fixed;
	background-position: center;
	background-repeat: no-repeat;
	background-size: cover;
}

/* Smooth appearance for elements */
.appear {
	opacity: 0;
	transform: scale(0.95);
	transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.appear.visible {
	opacity: 1;
	transform: scale(1);
}

/* Text highlight animation */
.text-highlight {
	background: linear-gradient(120deg, var(--color-primary) 0%, var(--color-primary) 100%);
	background-repeat: no-repeat;
	background-size: 100% 0.2em;
	background-position: 0 88%;
	transition: background-size 0.8s ease-in-out;
}

.text-highlight.visible {
	background-size: 100% 0.8em;
}

/* Typewriter effect */
.typewriter {
	overflow: hidden;
	border-right: 0.15em solid var(--color-primary);
	white-space: nowrap;
	margin: 0 auto;
	letter-spacing: 0.15em;
	animation: typing 3.5s steps(40, end), blink-caret 0.75s step-end infinite;
}

@keyframes typing {
	from { width: 0; }
	to { width: 100%; }
}

@keyframes blink-caret {
	from, to { border-color: transparent; }
	50% { border-color: var(--color-primary); }
}

/* Image lazy loading fade-in */
.lazy-image {
	opacity: 0;
	transition: opacity 0.6s ease-in-out;
}

.lazy-image.loaded {
	opacity: 1;
}

/* Smooth focus transitions */
*:focus {
	outline: 2px solid var(--color-primary);
	outline-offset: 2px;
	transition: outline-color 0.15s ease-in-out;
}

/* Enhanced button animations */
.btn {
	position: relative;
	overflow: hidden;
}

.btn::before {
	content: '';
	position: absolute;
	top: 0;
	left: -100%;
	width: 100%;
	height: 100%;
	background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
	transition: left 0.5s ease;
}

.btn:hover::before {
	left: 100%;
}

/*--------------------------------------------------------------
# Utilities
--------------------------------------------------------------*/

/* Accessibility
--------------------------------------------- */

/* Text meant only for screen readers. */
.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute !important;
	width: 1px;
	word-wrap: normal !important;
}

.screen-reader-text:focus {
	background-color: #f1f1f1;
	border-radius: 3px;
	box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
	clip: auto !important;
	clip-path: none;
	color: #21759b;
	display: block;
	font-size: 0.875rem;
	font-weight: 700;
	height: auto;
	left: 5px;
	line-height: normal;
	padding: 15px 23px 14px;
	text-decoration: none;
	top: 5px;
	width: auto;
	z-index: 100000;
}

/* Do not show the outline on the skip link target. */
#primary[tabindex="-1"]:focus {
	outline: 0;
}

/* Alignments
--------------------------------------------- */
.alignleft {

	/*rtl:ignore*/
	float: left;

	/*rtl:ignore*/
	margin-right: 1.5em;
	margin-bottom: 1.5em;
}

.alignright {

	/*rtl:ignore*/
	float: right;

	/*rtl:ignore*/
	margin-left: 1.5em;
	margin-bottom: 1.5em;
}

.aligncenter {
	clear: both;
	display: block;
	margin-left: auto;
	margin-right: auto;
	margin-bottom: 1.5em;
}

/* Critical CSS & Performance Utilities */
.sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.text-justify { text-align: justify; }

.font-weight-light { font-weight: var(--font-weight-light); }
.font-weight-normal { font-weight: var(--font-weight-regular); }
.font-weight-medium { font-weight: var(--font-weight-medium); }
.font-weight-semibold { font-weight: var(--font-weight-semibold); }
.font-weight-bold { font-weight: var(--font-weight-bold); }

.text-primary { color: var(--color-primary); }
.text-secondary { color: var(--color-secondary); }
.text-accent { color: var(--color-accent); }
.text-optional { color: var(--color-optional); }

.bg-primary { background-color: var(--color-primary); }
.bg-secondary { background-color: var(--color-secondary); }
.bg-background { background-color: var(--color-background); }
.bg-accent { background-color: var(--color-accent); }
.bg-optional { background-color: var(--color-optional); }

.margin-0 { margin: 0; }
.margin-xs { margin: var(--spacing-xs); }
.margin-sm { margin: var(--spacing-sm); }
.margin-md { margin: var(--spacing-md); }
.margin-lg { margin: var(--spacing-lg); }
.margin-xl { margin: var(--spacing-xl); }
.margin-2xl { margin: var(--spacing-2xl); }
.margin-3xl { margin: var(--spacing-3xl); }

.padding-0 { padding: 0; }
.padding-xs { padding: var(--spacing-xs); }
.padding-sm { padding: var(--spacing-sm); }
.padding-md { padding: var(--spacing-md); }
.padding-lg { padding: var(--spacing-lg); }
.padding-xl { padding: var(--spacing-xl); }
.padding-2xl { padding: var(--spacing-2xl); }
.padding-3xl { padding: var(--spacing-3xl); }

.margin-bottom-0 { margin-bottom: 0; }
.margin-bottom-xs { margin-bottom: var(--spacing-xs); }
.margin-bottom-sm { margin-bottom: var(--spacing-sm); }
.margin-bottom-md { margin-bottom: var(--spacing-md); }
.margin-bottom-lg { margin-bottom: var(--spacing-lg); }
.margin-bottom-xl { margin-bottom: var(--spacing-xl); }
.margin-bottom-2xl { margin-bottom: var(--spacing-2xl); }
.margin-bottom-3xl { margin-bottom: var(--spacing-3xl); }

.margin-top-0 { margin-top: 0; }
.margin-top-xs { margin-top: var(--spacing-xs); }
.margin-top-sm { margin-top: var(--spacing-sm); }
.margin-top-md { margin-top: var(--spacing-md); }
.margin-top-lg { margin-top: var(--spacing-lg); }
.margin-top-xl { margin-top: var(--spacing-xl); }
.margin-top-2xl { margin-top: var(--spacing-2xl); }
.margin-top-3xl { margin-top: var(--spacing-3xl); }

.display-none { display: none; }
.display-block { display: block; }
.display-inline { display: inline; }
.display-inline-block { display: inline-block; }
.display-flex { display: flex; }
.display-grid { display: grid; }

.flex-direction-row { flex-direction: row; }
.flex-direction-column { flex-direction: column; }
.justify-content-start { justify-content: flex-start; }
.justify-content-center { justify-content: center; }
.justify-content-end { justify-content: flex-end; }
.justify-content-between { justify-content: space-between; }
.justify-content-around { justify-content: space-around; }
.align-items-start { align-items: flex-start; }
.align-items-center { align-items: center; }
.align-items-end { align-items: flex-end; }
.align-items-stretch { align-items: stretch; }

.border-radius-sm { border-radius: var(--border-radius-sm); }
.border-radius-md { border-radius: var(--border-radius-md); }
.border-radius-lg { border-radius: var(--border-radius-lg); }
.border-radius-full { border-radius: 50%; }

.shadow-sm { box-shadow: var(--shadow-sm); }
.shadow-md { box-shadow: var(--shadow-md); }
.shadow-lg { box-shadow: var(--shadow-lg); }
.shadow-none { box-shadow: none; }

.overflow-hidden { overflow: hidden; }
.overflow-auto { overflow: auto; }
.overflow-scroll { overflow: scroll; }

.position-relative { position: relative; }
.position-absolute { position: absolute; }
.position-fixed { position: fixed; }
.position-sticky { position: sticky; }

.z-index-1 { z-index: 1; }
.z-index-10 { z-index: 10; }
.z-index-100 { z-index: 100; }
.z-index-1000 { z-index: 1000; }

.width-full { width: 100%; }
.width-auto { width: auto; }
.height-full { height: 100%; }
.height-auto { height: auto; }

.max-width-none { max-width: none; }
.max-width-xs { max-width: 20rem; }
.max-width-sm { max-width: 24rem; }
.max-width-md { max-width: 28rem; }
.max-width-lg { max-width: 32rem; }
.max-width-xl { max-width: 36rem; }
.max-width-2xl { max-width: 42rem; }
.max-width-3xl { max-width: 48rem; }
.max-width-4xl { max-width: 56rem; }
.max-width-5xl { max-width: 64rem; }
.max-width-6xl { max-width: 72rem; }
.max-width-7xl { max-width: 80rem; }

.opacity-0 { opacity: 0; }
.opacity-25 { opacity: 0.25; }
.opacity-50 { opacity: 0.5; }
.opacity-75 { opacity: 0.75; }
.opacity-100 { opacity: 1; }

/* Responsive utilities */
@media (max-width: 575px) {
	.mobile-hidden { display: none; }
	.mobile-visible { display: block; }
	.text-center-mobile { text-align: center; }
}

@media (min-width: 576px) {
	.mobile-only { display: none; }
}

@media (min-width: 768px) {
	.tablet-hidden { display: none; }
	.tablet-visible { display: block; }
}

@media (min-width: 992px) {
	.desktop-hidden { display: none; }
	.desktop-visible { display: block; }
}

/* Performance optimizations */
.gpu-accelerated {
	transform: translateZ(0);
	backface-visibility: hidden;
	perspective: 1000px;
}

.will-change-transform {
	will-change: transform;
}

.will-change-opacity {
	will-change: opacity;
}

.will-change-scroll {
	will-change: scroll-position;
}

/* Image optimization */
.responsive-image {
	max-width: 100%;
	height: auto;
}

.aspect-ratio-16-9 {
	aspect-ratio: 16/9;
}

.aspect-ratio-4-3 {
	aspect-ratio: 4/3;
}

.aspect-ratio-1-1 {
	aspect-ratio: 1/1;
}

.object-cover {
	object-fit: cover;
}

.object-contain {
	object-fit: contain;
}

/* Critical font loading */
.font-display-swap {
	font-display: swap;
}

/* Skip link styling */
.skip-link {
	position: absolute;
	top: -40px;
	left: 6px;
	background: var(--color-primary);
	color: var(--color-accent);
	padding: 8px;
	text-decoration: none;
	border-radius: var(--border-radius-sm);
	z-index: 100000;
	transition: top 0.3s ease-in-out;
}

.skip-link:focus {
	top: 6px;
}

/* Focus management */
.focus-visible {
	outline: 2px solid var(--color-primary);
	outline-offset: 2px;
}

/* Print optimizations */
@media print {
	.no-print {
		display: none !important;
	}
	
	.print-only {
		display: block !important;
	}
}

/* Compatibility layer */
.clearfix::after {
	content: "";
	display: table;
	clear: both;
}

/* WordPress specific utilities */
.wp-block-image {
	margin-bottom: var(--spacing-lg);
}

.wp-block-image img {
	max-width: 100%;
	height: auto;
}

.wp-block-quote {
	border-left: 4px solid var(--color-primary);
	padding-left: var(--spacing-lg);
	margin: var(--spacing-lg) 0;
	font-style: italic;
	color: var(--color-optional);
}

.wp-block-separator {
	border: none;
	border-top: 1px solid var(--color-optional);
	margin: var(--spacing-xl) 0;
}

/* Custom scrollbar */
::-webkit-scrollbar {
	width: 8px;
}

::-webkit-scrollbar-track {
	background: var(--color-background);
}

::-webkit-scrollbar-thumb {
	background: var(--color-primary);
	border-radius: var(--border-radius-sm);
}

::-webkit-scrollbar-thumb:hover {
	background: var(--color-secondary);
}

/* Selection styling */
::selection {
	background: var(--color-primary);
	color: var(--color-accent);
}

::-moz-selection {
	background: var(--color-primary);
	color: var(--color-accent);
}

/* Form validation styling */
.field-error {
	border-color: #dc3545 !important;
	background-color: #fdf2f2;
}

.field-error-message {
	color: #dc3545;
	font-size: var(--font-size-sm);
	margin-top: var(--spacing-xs);
	display: block;
	font-weight: var(--font-weight-medium);
}

.form-success-message {
	background-color: #d4edda;
	border: 1px solid #c3e6cb;
	color: #155724;
	padding: var(--spacing-md);
	border-radius: var(--border-radius-md);
	margin-bottom: var(--spacing-lg);
}

.form-error-message {
	background-color: #f8d7da;
	border: 1px solid #f5c6cb;
	color: #721c24;
	padding: var(--spacing-md);
	border-radius: var(--border-radius-md);
	margin-bottom: var(--spacing-lg);
}

/* Loading state for forms */
.form-loading {
	opacity: 0.7;
	pointer-events: none;
}

.form-loading .btn {
	position: relative;
}

.form-loading .btn::after {
	content: '';
	position: absolute;
	width: 16px;
	height: 16px;
	top: 50%;
	left: 50%;
	margin-left: -8px;
	margin-top: -8px;
	border: 2px solid transparent;
	border-top: 2px solid currentColor;
	border-radius: 50%;
	animation: spin 1s linear infinite;
}

/* Keyboard navigation improvements */
.keyboard-navigation *:focus {
	outline: 2px solid var(--color-primary) !important;
	outline-offset: 2px !important;
}

/* Site header scrolled state */
.site-header.scrolled {
	background-color: rgba(253, 250, 244, 0.95);
	backdrop-filter: blur(10px);
	box-shadow: var(--shadow-md);
}
