/* 
 * Main CSS Entry Point
 * This file imports all other CSS files in the correct order
 */

@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css');

/* ==========================================================================
   Main Stylesheet - Kyles
   ========================================================================== */

/* Base Styles
   ========================================================================== */
@import url('base/reset.css');
@import url('base/typography.css');
@import url('base/variables.css');

/* Layout
   ========================================================================== */
@import url('layout/header.css');
@import url('layout/footer.css');
@import url('layout/grid.css');

/* Components
   ========================================================================== */
@import url('components/buttons.css');
@import url('components/cards.css');
@import url('components/forms.css');
@import url('components/welcome-popup.css');

/* Pages
   ========================================================================== */
@import url('pages/home.css');
@import url('pages/about.css');
@import url('pages/puppies.css');
@import url('pages/gallery.css');
@import url('pages/process.css');
@import url('pages/contact.css');
@import url('pages/care.css');
@import url('pages/apply.css');
@import url('pages/adults.css');
@import url('pages/waitlist.css');

/* Utilities & Animations
   ========================================================================== */
@import url('utilities/animations.css');
@import url('utilities/utilities.css');

/* Theme
   ========================================================================== */
@import url('theme.css');

/* Global Styles
   ========================================================================== */
:root {
  --font-body: 'Open Sans', sans-serif;
  --font-heading: 'Montserrat', sans-serif;
  --font-accent: 'Playfair Display', serif;
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  line-height: 1.6;
  background-color: var(--color-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-navy);
  margin-top: 0;
  margin-bottom: var(--space-4);
}

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

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

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

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

h5 {
  font-size: var(--text-lg);
}

h6 {
  font-size: var(--text-base);
}

p {
  margin-top: 0;
  margin-bottom: var(--space-4);
}

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

a:hover {
  color: var(--color-primary-dark);
  text-decoration: none;
}

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

/* Container */
.container {
  width: 100%;
  max-width: var(--max-w-7xl);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

/* Sections */
section {
  padding: var(--space-20) 0;
  position: relative;
}

/* Anchor scroll offset to prevent header overlap */
:target,
h1[id],
h2[id],
h3[id],
h4[id],
h5[id],
h6[id],
section[id] {
  scroll-margin-top: var(--anchor-offset);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 600;
  text-align: center;
  white-space: nowrap;
  vertical-align: middle;
  user-select: none;
  padding: 0.75rem 1.5rem;
  font-size: var(--text-base);
  line-height: 1.5;
  border-radius: var(--rounded-lg);
  transition: all 0.3s ease;
  cursor: pointer;
  border: 2px solid transparent;
}

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

.btn-primary:hover,
.btn--primary:hover {
  background-color: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn--secondary {
  background-color: #6b7280;
  color: white;
  border-color: #6b7280;
}

.btn--secondary:hover {
  background-color: #4b5563;
  border-color: #4b5563;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

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

.btn-outline:hover,
.btn--outline:hover {
  background-color: var(--color-primary);
  color: white;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn--ghost {
  background-color: #f5f5f5;
  color: #4a5568;
  border: 2px solid #6b7280;
}

.btn--ghost:hover {
  background-color: #6b7280;
  color: white;
  border-color: #6b7280;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(107, 114, 128, 0.3);
}

.btn-lg,
.btn--lg {
  padding: 1rem 2rem;
  font-size: var(--text-lg);
}

/* Utility Classes */
.text-center {
  text-align: center;
}

.text-left {
  text-align: left;
}

.text-right {
  text-align: right;
}

.mt-0 {
  margin-top: 0;
}

.mb-0 {
  margin-bottom: 0;
}

.ml-0 {
  margin-left: 0;
}

.mr-0 {
  margin-right: 0;
}

.pt-0 {
  padding-top: 0;
}

.pb-0 {
  padding-bottom: 0;
}

.pl-0 {
  padding-left: 0;
}

.pr-0 {
  padding-right: 0;
}

/* Responsive Images */
.img-fluid {
  max-width: 100%;
  height: auto;
}

.img-rounded {
  border-radius: var(--rounded-lg);
}

/* Responsive Helpers */
.hidden {
  display: none !important;
}

@media (min-width: 640px) {
  .sm\:block {
    display: block !important;
  }

  .sm\:hidden {
    display: none !important;
  }
}

@media (min-width: 768px) {
  .md\:block {
    display: block !important;
  }

  .md\:hidden {
    display: none !important;
  }
}

@media (min-width: 1024px) {
  .lg\:block {
    display: block !important;
  }

  .lg\:hidden {
    display: none !important;
  }
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.fade-in {
  animation: fadeIn 0.5s ease-in-out;
}

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

/* Print Styles */
@media print {

  *,
  *::before,
  *::after {
    background: transparent !important;
    color: #000 !important;
    box-shadow: none !important;
    text-shadow: none !important;
  }

  a,
  a:visited {
    text-decoration: underline;
  }

  a[href]::after {
    content: " (" attr(href) ")";
  }

  abbr[title]::after {
    content: " (" attr(title) ")";
  }

  pre,
  blockquote {
    border: 1px solid #999;
    page-break-inside: avoid;
  }

  thead {
    display: table-header-group;
  }

  tr,
  img {
    page-break-inside: avoid;
  }

  img {
    max-width: 100% !important;
  }

  p,
  h2,
  h3 {
    orphans: 3;
    widows: 3;
  }

  h2,
  h3 {
    page-break-after: avoid;
  }
}