/* ovo-regular - latin */
@font-face {
	font-family: 'Ovo';
	font-style: normal;
	font-weight: 400;
	src:
		local(''),
		url('./fonts/ovo/ovo-v15-latin-regular.woff2') format('woff2'),
		url('./fonts/ovo-v15-latin-regular.woff') format('woff');
	font-display: swap;
}

@font-face {
	font-family: 'Ruluko';
	font-style: normal;
	font-weight: 400;
	src:
		local(''),
		url('./fonts/ruluko/ruluko-v19-latin-regular.woff2') format('woff2'),
		url('./fonts/ruluko/ruluko-v19-latin-regular.woff') format('woff');
	font-display: swap;
}

@font-face {
	font-family: 'Open Sans';
	font-style: normal;
	font-weight: 300;
	src:
		local(''),
		url('./fonts/open-sans/open-sans-v27-latin-300.woff2') format('woff2'),
		url('./fonts/open-sans/open-sans-v27-latin-300.woff') format('woff');
	font-display: swap;
}
/* open-sans-regular - latin */
@font-face {
	font-family: 'Open Sans';
	font-style: normal;
	font-weight: 400;
	src:
		local(''),
		url('./fonts/open-sans/open-sans-v27-latin-regular.woff2') format('woff2'),
		url('./fonts/open-sans/open-sans-v27-latin-regular.woff') format('woff');
	font-display: swap;
}
/* open-sans-600 - latin */
@font-face {
	font-family: 'Open Sans';
	font-style: normal;
	font-weight: 600;
	src:
		local(''),
		url('./fonts/open-sans/open-sans-v27-latin-600.woff2') format('woff2'),
		url('./fonts/open-sans/open-sans-v27-latin-600.woff') format('woff');
	font-display: swap;
}

:root {
	/* Font families */
	--font-logo: 'Ovo', serif;
	--font-body: 'Open Sans', sans-serif;
	--font-heading: 'Ruluko', sans-serif;

	/* Font sizes - modular scale (1.125 ratio, base 16px) */
	--text-xs: 0.75rem; /* 12px */
	--text-sm: 0.875rem; /* 14px */
	--text-base: 1rem; /* 16px */
	--text-lg: 1.125rem; /* 18px */
	--text-xl: 1.25rem; /* 20px */
	--text-2xl: 1.5rem; /* 24px */
	--text-3xl: 2rem; /* 32px */
	--text-4xl: 2.5rem; /* 40px */
	--text-5xl: 4rem; /* 64px */
	--text-6xl: 7rem; /* 112px */

	/* Font weights */
	--font-light: 300;
	--font-normal: 400;
	--font-semibold: 600;

	/* Line heights */
	--leading-none: 1;
	--leading-tight: 1.25;
	--leading-normal: 1.5;
	--leading-relaxed: 1.625;

	/* Letter spacing */
	--tracking-tight: -0.025em;
	--tracking-normal: 0;
	--tracking-wide: 0.025em;

	/* Legacy font variables - maintain backward compatibility */
	--logo-font: var(--font-logo);
	--text-font: var(--font-body);
	--sections-font: var(--font-heading);

	/* Brand colors */
	--primary-color: #aa060a;
	--primary-color-dim: #7a0407ce;
	--secondary-color: #fdb93c;
	--highlight-color: #37574a;
	--highlight-color-dim: #2a423a;

	/* Neutral colors */
	--base-color: #383932;
	--bg-color: rgb(230, 230, 230);
	--surface-color: #fff;
	--surface-color-warm: #fdefd6;
	--surface-color-dark: #000;
	--text-color: #000;
	--text-color-light: #fff;

	/* Overlays & backdrops */
	--backdrop: rgba(0, 0, 0, 0.5);
	--backdrop-light: rgba(255, 255, 255, 0.85);
	--overlay-highlight: rgba(55, 87, 74, 0.5);

	/* Gradients */
	--gradient-start: var(--secondary-color);
	--gradient-end: var(--primary-color);
	--gradient: linear-gradient(90deg, var(--gradient-start) 0%, var(--gradient-end) 100%);

	/* Card gradients - variable based */
	--card-gradient-1: linear-gradient(
		180deg,
		rgba(251, 192, 93, 0.25) 0%,
		rgba(251, 192, 93, 0.25) 59.69%,
		rgba(226, 80, 76, 0.25) 100%
	);
	--card-gradient-2: linear-gradient(
		0deg,
		rgba(255, 255, 255, 0.35) 0%,
		rgba(255, 255, 255, 0) 70%
	);
	--weather-gradient: linear-gradient(135deg, var(--accent-teal-light), var(--accent-gold-light));
	--grid-gradient: linear-gradient(
		168.18deg,
		var(--accent-teal-light) 0.49%,
		var(--accent-gold-light) 63.68%,
		var(--accent-gold-light)
	);

	/* Accent colors */
	--accent-teal: #7fbcab; /* lighter variant of --highlight-color */
	--accent-gold: #fbc05d; /* lighter variant of --secondary-color */
	--accent-teal-light: rgba(127, 188, 171, 0.25);
	--accent-gold-light: rgba(251, 192, 93, 0.25);

	--padding-inline: 1rem;
	--footer-height: 0; /* updates when scrolled to bottom */

	/* Shadow system */
	--shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
	--shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.2);
	--text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
	--drop-shadow: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));

	--easing: cubic-bezier(0.22, 1.48, 0.71, 0.87);
	--weather-duration: 0.3s;

	--space-xs: 0.25rem;
	--space-sm: 0.5rem;
	--space-md: 1rem;
	--space-lg: 2rem;
	--space-lg-half: 1.5rem;
	--space-xl: 3rem;

	--radius: 15px;
	--radius-sm: 6px;

	--z-slider: 10;
	--z-card-badge: 20;
	--z-fab: 50;
	--z-lang-toggle: 50;
	--z-modal: 100;

	--cover-image: url('/images/cover.webp');
	--toggle-chevron: url('/icons/toggle.webp');
	--airbnb: url('/icons/airbnb.webp');
	--booking: url('/icons/booking.webp');

	/* Weather Widget Theme */
	--weather-bg: #0f1623;
	--weather-card-bg: rgba(15, 22, 35, 0.6);
	--weather-card-bg-hover: rgba(15, 22, 35, 0.9);
	--weather-icon-bg: rgba(165, 180, 252, 0.08);
	--weather-icon-bg-hover: rgba(165, 180, 252, 0.14);
	--weather-toggle-bg: rgba(255, 255, 255, 0.04);
	--weather-toggle-bg-hover: rgba(255, 255, 255, 0.08);
	--weather-badge-bg: rgba(165, 180, 252, 0.1);
	--weather-border: rgba(255, 255, 255, 0.06);
	--weather-border-hover: rgba(165, 180, 252, 0.15);
	--weather-divider: rgba(255, 255, 255, 0.06);
	--weather-text-primary: #f1f5f9;
	--weather-text-secondary: #94a3b8;
	--weather-text-muted: #64748b;
	--weather-text-label: #475569;
	--weather-text-light: #e2e8f0;
	--weather-accent: #a5b4fc;
	--weather-accent-hover: #cbd5e1;
	--weather-temp-lg: 56px;
	--weather-temp-md: 22px;
	--weather-temp-sm: 18px;
	--weather-spacing-xs: 6px;
	--weather-spacing-sm: 8px;
	--weather-spacing-md: 16px;
	--weather-spacing-lg: 20px;
	--weather-radius-lg: 20px;
	--weather-radius-md: 16px;
	--weather-radius-sm: 12px;
	--weather-radius-full: 9999px;
	--weather-icon-size-sm: 32px;
	--weather-icon-size-md: 48px;
	--weather-icon-size-lg: 64px;
	--weather-transform: translateY(-2px);

	/* Weather Widget Theme - Dark */
	[data-theme='dark'] {
		--weather-bg: #0f1623;
		--weather-card-bg: rgba(15, 22, 35, 0.6);
		--weather-card-bg-hover: rgba(15, 22, 35, 0.9);
		--weather-icon-bg: rgba(165, 180, 252, 0.08);
		--weather-icon-bg-hover: rgba(165, 180, 252, 0.14);
		--weather-toggle-bg: var(--weather-bg);
		--weather-toggle-bg-hover: rgba(15, 22, 35, 0.8);
		--weather-badge-bg: rgba(165, 180, 252, 0.1);
		--weather-border: var(--weather-accent);
		--weather-border-hover: rgba(165, 180, 252, 0.3);
		--weather-divider: rgba(255, 255, 255, 0.06);
		--weather-text-primary: #f1f5f9;
		--weather-text-secondary: #94a3b8;
		--weather-text-muted: #64748b;
		--weather-text-label: #475569;
		--weather-text-light: #e2e8f0;
		--weather-accent: #a5b4fc;
		--weather-accent-hover: #cbd5e1;
		--weather-temp-lg: 56px;
		--weather-temp-md: 22px;
		--weather-temp-sm: 18px;
		--weather-spacing-xs: 6px;
		--weather-spacing-sm: 8px;
		--weather-spacing-md: 16px;
		--weather-spacing-lg: 20px;
		--weather-radius-lg: 20px;
		--weather-radius-md: 16px;
		--weather-radius-sm: 12px;
		--weather-radius-full: 9999px;
		--weather-icon-size-sm: 32px;
		--weather-icon-size-md: 48px;
		--weather-icon-size-lg: 64px;
	}

	/* Weather Widget Theme - Light */
	[data-theme='light'] {
		--weather-bg: #f8fafc;
		--weather-card-bg: rgba(255, 255, 255, 0.7);
		--weather-card-bg-hover: rgba(255, 255, 255, 0.95);
		--weather-icon-bg: rgba(14, 165, 233, 0.1);
		--weather-icon-bg-hover: rgba(14, 165, 233, 0.2);
		--weather-toggle-bg: rgba(15, 23, 42, 0.12);
		--weather-toggle-bg-hover: rgba(15, 23, 42, 0.18);
		--weather-badge-bg: rgba(14, 165, 233, 0.15);
		--weather-border: rgba(15, 23, 42, 0.15);
		--weather-border-hover: rgba(14, 165, 233, 0.3);
		--weather-divider: rgba(15, 23, 42, 0.06);
		--weather-text-primary: #0f172a;
		--weather-text-secondary: #475569;
		--weather-text-muted: #64748b;
		--weather-text-label: #94a3b8;
		--weather-text-light: var(--surface-color-dark);
		--weather-accent: #0ea5e9;
		--weather-accent-hover: #0284c7;
		--weather-temp-lg: 56px;
		--weather-temp-md: 22px;
		--weather-temp-sm: 18px;
		--weather-spacing-xs: 6px;
		--weather-spacing-sm: 8px;
		--weather-spacing-md: 16px;
		--weather-spacing-lg: 20px;
		--weather-radius-lg: 20px;
		--weather-radius-md: 16px;
		--weather-radius-sm: 12px;
		--weather-radius-full: 9999px;
		--weather-icon-size-sm: 32px;
		--weather-icon-size-md: 48px;
		--weather-icon-size-lg: 64px;
	}
}

html {
	scroll-behavior: smooth;
}

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

body {
	background-color: var(--bg-color);
	font-family: var(--font-body);
	font-size: var(--text-base);
	line-height: var(--leading-normal);
}

/* Typography - Headings */
h1 {
	font-size: var(--text-2xl);
	font-weight: var(--font-normal);
	line-height: var(--leading-tight);
	text-shadow: var(--text-shadow);
}

h2 {
	font-size: var(--text-xl);
	font-weight: var(--font-normal);
	line-height: var(--leading-tight);
	text-shadow: var(--text-shadow);
	font-feature-settings:
		'pnum' on,
		'lnum' on;
}

h3 {
	font-size: var(--text-lg);
	font-weight: var(--font-normal);
	line-height: var(--leading-tight);
}

h4 {
	font-size: var(--text-base);
	font-weight: var(--font-light);
	line-height: var(--leading-normal);
	font-feature-settings:
		'pnum' on,
		'lnum' on;
}

h5 {
	font-size: var(--text-base);
	font-weight: var(--font-light);
	line-height: var(--leading-normal);
	font-feature-settings:
		'pnum' on,
		'lnum' on;
}

h6 {
	font-size: var(--text-sm);
	font-weight: var(--font-semibold);
	line-height: var(--leading-normal);
}

/* Body text */
p {
	line-height: var(--leading-relaxed);
}

/* Small text */
small {
	font-size: var(--text-xs);
}

#svelte {
	max-width: 1920px;
	margin-inline: auto;
	background-color: var(--surface-color);
	box-shadow: var(--shadow-lg);
}

section {
	padding-inline: var(--padding-inline);
}

a {
	text-decoration: none;
}

/* Utility classes */
.text-bold {
	font-weight: var(--font-semibold);
	text-shadow: var(--text-shadow);
}

span.bold {
	font-weight: 600;
	text-shadow: var(--text-shadow);
}

/* Text Utility Classes */
.text-xs {
	font-size: var(--text-xs);
}
.text-sm {
	font-size: var(--text-sm);
}
.text-base {
	font-size: var(--text-base);
}
.text-lg {
	font-size: var(--text-lg);
}
.text-xl {
	font-size: var(--text-xl);
}
.text-2xl {
	font-size: var(--text-2xl);
}
.text-3xl {
	font-size: var(--text-3xl);
}
.text-4xl {
	font-size: var(--text-4xl);
}
.text-5xl {
	font-size: var(--text-5xl);
}
.text-6xl {
	font-size: var(--text-6xl);
}

.text-primary {
	color: var(--primary-color);
}
.text-secondary {
	color: var(--secondary-color);
}
.text-base {
	color: var(--base-color);
}
.text-muted {
	color: var(--text-color);
	opacity: 0.7;
}
.text-white {
	color: var(--text-color-light);
}
.text-accent {
	color: var(--highlight-color);
}

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

.leading-none {
	line-height: var(--leading-none);
}
.leading-tight {
	line-height: var(--leading-tight);
}
.leading-normal {
	line-height: var(--leading-normal);
}
.leading-relaxed {
	line-height: var(--leading-relaxed);
}

.tracking-tight {
	letter-spacing: var(--tracking-tight);
}
.tracking-normal {
	letter-spacing: var(--tracking-normal);
}
.tracking-wide {
	letter-spacing: var(--tracking-wide);
}

/* Hover text effects */
.hover-lift {
	transition:
		transform 0.2s ease,
		color 0.2s ease;
}

.hover-lift:hover {
	transform: scale(1.02);
}

/* Swiper */
.swiper-wrapper {
	align-items: center;
	padding-block: 1rem;
}

@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;
	}
}

@media screen and (min-width: 1024px) {
	body {
		font-size: 20px;
	}

	/* Responsive typography scale */
	h1 {
		font-size: var(--text-3xl);
	}

	h2 {
		font-size: var(--text-2xl);
	}

	h3 {
		font-size: var(--text-xl);
	}

	.limited-width {
		margin-inline: auto;
		max-width: 1366px;
	}

	.full-width {
		max-width: unset;
		width: 100%;
	}
}
