/* ============================================
   Global Styles - Dog Refuge Website
   ============================================ */

/* ============================================
   CSS Reset & Base Styles
   ============================================ */

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-primary);
  font-size: var(--font-size-base);
  line-height: var(--line-height-normal);
  color: var(--color-text);
  background-color: var(--color-background-alt);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ============================================
   Typography
   ============================================ */

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

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

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

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

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

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

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

p {
  margin-bottom: var(--spacing-md);
  line-height: var(--line-height-relaxed);
}

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

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

/* ============================================
   Images
   ============================================ */

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

/* ============================================
   Lists
   ============================================ */

ul, ol {
  list-style: none;
}

li {
  list-style: none;
}


/* Rich text lists (scoped, so components aren't affected) */
:where(.entry-content, .page-content, .rich-text, .tip-summary, .wishlist-description) ul {
  list-style: disc;
  padding-left: 1.25rem;
  margin: 0 0 var(--spacing-lg);
}
:where(.entry-content, .page-content, .rich-text, .tip-summary, .wishlist-description) ol {
  list-style: decimal;
  padding-left: 1.5rem;
  margin: 0 0 var(--spacing-lg);
}
:where(.entry-content, .page-content, .rich-text, .tip-summary, .wishlist-description) li {
  list-style: inherit; /* override global li{list-style:none} */
  margin: 0 0 var(--spacing-sm);
}
:where(.entry-content, .page-content, .rich-text, .tip-summary, .wishlist-description) li::marker {
  color: var(--color-primary);
  font-weight: var(--font-weight-semibold);
}
/* Nested */
:where(.entry-content, .page-content, .rich-text, .tip-summary, .wishlist-description) ul ul { list-style: circle; margin-top: var(--spacing-sm); }
:where(.entry-content, .page-content, .rich-text, .tip-summary, .wishlist-description) ul ul ul { list-style: square; }
:where(.entry-content, .page-content, .rich-text, .tip-summary, .wishlist-description) ol ol { list-style: lower-alpha; margin-top: var(--spacing-sm); }
:where(.entry-content, .page-content, .rich-text, .tip-summary, .wishlist-description) ol ol ol { list-style: lower-roman; }

/* ============================================
   Buttons
   ============================================ */

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

.btn {
  display: inline-block;
  padding: var(--button-padding-y) var(--button-padding-x);
  font-size: var(--button-font-size);
  font-weight: var(--button-font-weight);
  text-align: center;
  border-radius: var(--button-radius);
  transition: all var(--transition-normal);
  cursor: pointer;
  border: none;
  text-decoration: none;
  line-height: 1;
}

.btn-primary {
  background-color: var(--color-secondary);
  color: var(--color-white);
  box-shadow: var(--shadow-md);
}

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

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

.btn-outline:hover {
  background-color: var(--color-primary);
  color: var(--color-white);
}

/* ============================================
   Container & Layout
   ============================================ */

.container {
  width: var(--container-full);
  max-width: var(--container-full);
  margin: 0 auto;
  padding: 0 var(--spacing-xl);
}

.container-wide {
  max-width: var(--container-2xl);
}

.container-narrow {
  max-width: var(--container-lg);
}

/* ============================================
   Section
   ============================================ */

.section {
  padding: var(--section-padding-y) 0;
}

.section-alt {
  background-color: var(--color-background-alt);
}

.section-title {
  text-align: center;
  margin-bottom: var(--spacing-3xl);
}

.section-subtitle {
  font-size: var(--font-size-lg);
  color: var(--color-text-light);
  text-align: center;
  max-width: 700px;
  margin: 0 auto var(--spacing-3xl);
  font-family: var(--font-primary);
  font-weight: var(--font-weight-normal);
  line-height: var(--line-height-relaxed);
}

/* ============================================
   Grid System
   ============================================ */

.grid {
  display: grid;
  gap: var(--grid-gap);
}

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

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

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

/* ============================================
   Flexbox Utilities
   ============================================ */

.flex {
  display: flex;
}

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.flex-column {
  flex-direction: column;
}

.flex-wrap {
  flex-wrap: wrap;
}

/* ============================================
   Text Utilities
   ============================================ */

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

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

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

.text-muted {
  color: var(--color-text-muted);
}

.text-light {
  color: var(--color-text-light);
}

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

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

/* ============================================
   Spacing Utilities
   ============================================ */

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

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

/* ============================================
   Cards
   ============================================ */

.card {
  background: var(--color-white);
  border-radius: var(--card-radius);
  padding: var(--card-padding);
  box-shadow: var(--card-shadow);
  transition: all var(--transition-normal);
}

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

/* ============================================
   Responsive Typography
   ============================================ */

@media (max-width: 768px) {
  html {
    font-size: 14px;
  }
  
  h1 {
    font-size: var(--font-size-4xl);
  }
  
  h2 {
    font-size: var(--font-size-3xl);
  }
  
  h3 {
    font-size: var(--font-size-2xl);
  }
  
  .section {
    padding: var(--section-padding-y-mobile) 0;
  }
  
  .container {
    padding: 0 var(--spacing-md);
  }
}

/* ============================================
   Responsive Grid
   ============================================ */

@media (max-width: 1024px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }
  
  .grid {
    gap: var(--grid-gap-sm);
  }
}

/* ============================================
   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;
}

/* Focus styles */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}


/* ============================================
   special section
   ============================================ */

section#shortcode-plugin_cta.shortcode-section {
    padding: 0;
}

section#shortcode-plugin_share_buttons.shortcode-section {
    padding: 0;
}

.breadcrumb-section {
    padding-top: calc(var(--header-height) + 20px);
}

.breadcrumb-section .breadcrumb  .breadcrumb-separator{
    padding: 0 3px;
}

/* ============================================
   Tip Single Overrides
   ============================================ */

.tip-single .tip-image {
  height: auto;
}

.tip-single .tip-image img {
  width: 100%;
  height: auto;
  object-fit: contain;
  transform: none;
}

.tip-single .tip-item:hover .tip-image img {
  transform: none;
}


/* ============================================
   dividers
   ============================================ */


@media (max-width: 1500px) {

#shortcode-theme_shape_divider_shape_1763487171 { height: 80px !important; margin-top: -10px !important;}
#lubinik-shape-divider-shape_1763487171 { height: 80px !important; margin-top: 0px !important; }
#shortcode-theme_shape_divider_shape_1763487171 svg { height: 80px; width: 100%; overflow-x: hidden; }

#shortcode-theme_shape_divider_shape_1762774618 { height: 80px !important; margin-top: -15px !important;}
#lubinik-shape-divider-shape_1762774618 { height: 80px !important; margin-top: 0px !important; }
#shortcode-theme_shape_divider_shape_1762774618 svg { height: 80px; width: 100%; overflow-x: hidden; }

#shortcode-theme_shape_divider_shape_1763486898 { height: 80px !important; margin-bottom: -82px !important;}
#lubinik-shape-divider-shape_1763486898 { height: 80px !important; margin-bottom: 0px !important; }
#shortcode-theme_shape_divider_shape_1763486898 svg { height: 80px; width: 100%; overflow-x: hidden; }

#shortcode-theme_shape_divider_shape_1763467487 { height: 150px !important; margin-bottom: 0px !important;}
#lubinik-shape-divider-shape_1763467487 { height: 150px !important; margin-bottom: -20px !important; }
#shortcode-theme_shape_divider_shape_1763467487 svg { height: 150px; width: 100%; overflow-x: hidden; }

}


@media (max-width: 1080px) {

#shortcode-theme_shape_divider_shape_1763487171 { height: 80px !important; margin-top: -10px !important;}
#lubinik-shape-divider-shape_1763487171 { height: 80px !important; margin-top: 0px !important; }
#shortcode-theme_shape_divider_shape_1763487171 svg { height: 80px; width: 100%; overflow-x: hidden; }

#shortcode-theme_shape_divider_shape_1762774618 { height: 80px !important; margin-top: -10px !important;}
#lubinik-shape-divider-shape_1762774618 { height: 80px !important; margin-top: 0px !important; }
#shortcode-theme_shape_divider_shape_1762774618 svg { height: 80px; width: 100%; overflow-x: hidden; }

#shortcode-theme_shape_divider_shape_1763486898 { height: 80px !important; margin-bottom: -82px !important;}
#lubinik-shape-divider-shape_1763486898 { height: 80px !important; margin-bottom: 0px !important; }
#shortcode-theme_shape_divider_shape_1763486898 svg { height: 80px; width: 100%; overflow-x: hidden; }

#shortcode-theme_shape_divider_shape_1763467487 { height: 150px !important; margin-bottom: 0px !important;}
#lubinik-shape-divider-shape_1763467487 { height: 150px !important; margin-bottom: -70px !important; }
#shortcode-theme_shape_divider_shape_1763467487 svg { height: 150px; width: 100%; overflow-x: hidden; }

}


@media (max-width: 480px) {

#shortcode-theme_shape_divider_shape_1763487171 { height: 80px !important; margin-top: -10px !important;}
#lubinik-shape-divider-shape_1763487171 { height: 80px !important; margin-top: 0px !important; }
#shortcode-theme_shape_divider_shape_1763487171 svg { height: 80px; width: 100%; overflow-x: hidden; }


#shortcode-theme_shape_divider_shape_1762774618 { height: 80px !important; margin-top: -10px !important;}
#lubinik-shape-divider-shape_1762774618 { height: 80px !important; margin-top: 0px !important; }
#shortcode-theme_shape_divider_shape_1762774618 svg { height: 80px; width: 100%; overflow-x: hidden; }

#shortcode-theme_shape_divider_shape_1763486898 { height: 80px !important; margin-bottom: -58px !important;}
#lubinik-shape-divider-shape_1763486898 { height: 80px !important; margin-bottom: 0px !important; }
#shortcode-theme_shape_divider_shape_1763486898 svg { height: 80px; width: 100%; overflow-x: hidden; }

#shortcode-theme_shape_divider_shape_1763467487 { height: 150px !important; margin-bottom: 0px !important;}
#lubinik-shape-divider-shape_1763467487 { height: 150px !important; margin-bottom: -115px !important; }
#shortcode-theme_shape_divider_shape_1763467487 svg { height: 150px; width: 100%; overflow-x: hidden; }

}

/* ============================================
   404
   ============================================ */

.error-404 {
	text-align: center;
	padding: 4rem 0;
	background-color: var(--color-background);
	color: var(--color-white);
}

.error-404 p {
	color: var(--color-primary);
}

.error-404 a {
	color: var(--color-white);
  background-color : var(--color-primary);
  padding : var(--spacing-sm) var(--spacing-md);
  border-radius: var(--card-radius);
}




#shortcode-lubinik_theme_breadcrumbs .shortcode-container {
	width: var(--container-full);
	max-width: var(--container-full);
	margin: 0 auto;
	padding: var(--spacing-md) var(--spacing-4xl) ;

}

@media (max-width: 480px) {

#shortcode-lubinik_theme_breadcrumbs .shortcode-container {
	width: 100%;
	max-width: 100%;
	margin: 0 auto;
	padding: var(--spacing-2xl) var(--spacing-xl) ;

}

}
