/* Main CSS file - imports all component styles */
@import url('utilities/variables.css');
@import url('utilities/typography.css');
@import url('utilities/animations.css');
@import url('components/hero.css');
@import url('components/navigation.css');
@import url('components/gallery.css');
@import url('components/about.css');
@import url('components/lightbox.css');
@import url('components/calendar.css');
@import url('components/forms.css');
@import url('components/contact.css');
@import url('components/footer.css');

/* Enhanced CSS Reset and Base Styles */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px; /* Base font size for rem calculations */
  -webkit-text-size-adjust: 100%; /* Prevent font scaling in landscape */
  -ms-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 400;
  color: var(--color-text);
  background-color: var(--color-background);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* Media elements */
img,
picture,
video,
canvas,
svg {
  max-width: 100%;
  height: auto;
  display: block;
}

img {
  border-style: none; /* Remove border on images inside links in IE 10 */
}

/* Form elements */
input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
}

button {
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
  padding: 0;
}

button:focus,
input:focus,
textarea:focus,
select:focus {
  outline: 2px solid var(--color-highlight);
  outline-offset: 2px;
}

/* Links */
a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition-base);
}

a:hover {
  color: var(--color-highlight);
}

a:focus {
  outline: 2px solid var(--color-highlight);
  outline-offset: 2px;
}

/* Lists */
ul,
ol {
  list-style: none;
}

/* Tables */
table {
  border-collapse: collapse;
  border-spacing: 0;
}

/* Remove default styling from form elements */
fieldset {
  border: none;
}

legend {
  padding: 0;
}

/* Ensure consistent line heights */
p,
h1,
h2,
h3,
h4,
h5,
h6 {
  overflow-wrap: break-word;
}

/* Improve readability for long content */
#root,
#__next {
  isolation: isolate;
}

/* Utility classes */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.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;
}