/*
Theme Name: Shaman's Hounds
Theme URI: https://www.shamanshounds.com
Description: Theme custom pour l'elevage canin Shaman's Hounds - Chien Loup Tchecoslovaque, Laika de Yakoutie, Schipperke. Basé sur OceanWP child.
Author: Shaman's Hounds
Author URI: https://www.shamanshounds.com
Template: oceanwp
Version: 2.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: shamanshounds
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 8.1
*/

/* ==========================================================================
   Variables CSS Globales - Design System
   ========================================================================== */

:root {
  /* Couleurs principales */
  --sh-primary: #1a2a3a;
  --sh-secondary: #2d5a3d;
  --sh-accent: #d4a556;
  --sh-accent-light: #e6c88a;

  /* Couleurs de fond */
  --sh-light: #f5f0e6;
  --sh-white: #fefefe;
  --sh-dark-bg: #0f1a24;

  /* Couleurs de texte */
  --sh-text: #4a5568;
  --sh-text-light: #718096;
  --sh-text-dark: #1a202c;

  /* Couleurs fonctionnelles */
  --sh-success: #48bb78;
  --sh-warning: #ed8936;
  --sh-error: #e53e3e;

  /* Typographie */
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-subheading: 'Montserrat', Arial, sans-serif;
  --font-body: 'Open Sans', Arial, sans-serif;

  /* Espacements */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;
  --space-4xl: 96px;

  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;

  /* Ombres */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.15);

  /* Border radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-full: 9999px;
}

/* ==========================================================================
   Reset et Base
   ========================================================================== */

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.7;
  color: var(--sh-text);
  background-color: var(--sh-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ==========================================================================
   Typographie
   ========================================================================== */

h1, h2, h3 {
  font-family: var(--font-heading);
  color: var(--sh-text-dark);
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: var(--space-lg);
}

h4, h5, h6 {
  font-family: var(--font-subheading);
  color: var(--sh-text-dark);
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: var(--space-md);
}

h1 { font-size: 48px; font-weight: 700; }
h2 { font-size: 36px; }
h3 { font-size: 28px; }
h4 { font-size: 22px; }
h5 { font-size: 18px; }
h6 { font-size: 16px; }

p { margin-bottom: var(--space-md); }

.lead {
  font-size: 22px;
  line-height: 1.6;
  color: var(--sh-text);
}

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

a:hover {
  color: var(--sh-secondary);
}

/* ==========================================================================
   Boutons
   ========================================================================== */

.btn,
.elementor-button,
button[type="submit"] {
  display: inline-block;
  padding: 14px 32px;
  font-family: var(--font-subheading);
  font-size: 15px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-normal);
  border: none;
}

.btn-primary,
.elementor-button-primary {
  background-color: var(--sh-accent);
  color: var(--sh-primary);
}

.btn-primary:hover,
.elementor-button-primary:hover {
  background-color: var(--sh-accent-light);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(212, 165, 86, 0.3);
  color: var(--sh-primary);
}

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

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

.btn-ghost {
  background-color: transparent;
  color: var(--sh-white);
  border: 2px solid var(--sh-white);
}

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

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

.sh-card {
  background: var(--sh-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  transition: all var(--transition-normal);
}

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

.sh-card-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.sh-card-content {
  padding: var(--space-lg);
}

.sh-card-title {
  font-family: var(--font-heading);
  font-size: 22px;
  color: var(--sh-primary);
  margin-bottom: var(--space-sm);
}

.sh-card-text {
  color: var(--sh-text);
  margin-bottom: var(--space-md);
}

/* ==========================================================================
   Formulaires
   ========================================================================== */

.form-field {
  margin-bottom: var(--space-lg);
}

.form-label,
label {
  display: block;
  font-family: var(--font-subheading);
  font-size: 14px;
  font-weight: 600;
  color: var(--sh-text-dark);
  margin-bottom: var(--space-sm);
}

.form-input,
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="url"],
input[type="password"],
input[type="number"],
textarea,
select {
  width: 100%;
  padding: 14px 16px;
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--sh-text-dark);
  background-color: var(--sh-white);
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-sm);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-input:focus,
input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--sh-accent);
  box-shadow: 0 0 0 3px rgba(212, 165, 86, 0.2);
}

.form-input::placeholder,
input::placeholder,
textarea::placeholder {
  color: #a0aec0;
}

textarea {
  min-height: 150px;
  resize: vertical;
}

/* ==========================================================================
   Header / Navigation
   ========================================================================== */

#site-header {
  transition: all var(--transition-normal);
}

#site-header.scrolled {
  box-shadow: var(--shadow-md);
}

.nav-link,
#site-navigation-wrap .dropdown-menu > li > a {
  font-family: var(--font-subheading);
  font-size: 15px;
  font-weight: 500;
  color: var(--sh-text-dark);
  position: relative;
  padding: 8px 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--sh-accent);
  transition: width var(--transition-normal);
}

.nav-link:hover::after,
.nav-link.active::after,
.current-menu-item > a::after {
  width: 100%;
}

.menu-item-cta > a {
  background-color: var(--sh-accent) !important;
  color: var(--sh-primary) !important;
  padding: 10px 24px !important;
  border-radius: var(--radius-sm) !important;
}

.menu-item-cta > a:hover {
  background-color: var(--sh-accent-light) !important;
}

/* ==========================================================================
   Header — Layout, Desktop Nav, Hamburger, Mobile Menu
   ========================================================================== */

/* ---- Sticky header ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: var(--sh-white);
  transition: background-color var(--transition-normal),
              box-shadow var(--transition-normal),
              backdrop-filter var(--transition-normal);
}

.site-header.scrolled {
  background-color: rgba(254, 254, 254, 0.96);
  box-shadow: 0 2px 24px rgba(0, 0, 0, 0.10);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* ---- Inner flex row ---- */
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  gap: 2rem;
}

/* ---- Branding / Logo ---- */
.site-branding {
  flex-shrink: 0;
}

.site-branding .custom-logo {
  display: block;
  max-height: 52px;
  width: auto;
}

.site-title-link {
  text-decoration: none;
}

.site-title {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 700;
  color: var(--sh-primary);
  letter-spacing: 0.5px;
  transition: color var(--transition-fast);
}

.site-title-link:hover .site-title {
  color: var(--sh-accent);
}

/* ---- Desktop navigation ---- */
.main-navigation {
  display: flex;
  align-items: center;
}

.primary-menu {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.primary-menu > li {
  position: relative;
}

.primary-menu > li > a {
  display: inline-block;
  font-family: var(--font-subheading);
  font-size: 13px;
  font-weight: 600;
  color: var(--sh-text-dark);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 6px 0;
  position: relative;
  transition: color var(--transition-normal);
}

/* Animated underline */
.primary-menu > li > a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--sh-accent);
  border-radius: 1px;
  transition: width var(--transition-normal);
}

.primary-menu > li > a:hover,
.primary-menu > .current-menu-item > a,
.primary-menu > .current-menu-ancestor > a {
  color: var(--sh-accent);
}

.primary-menu > li > a:hover::after,
.primary-menu > .current-menu-item > a::after,
.primary-menu > .current-menu-ancestor > a::after {
  width: 100%;
}

/* ---- Hamburger button ---- */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 20px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
  z-index: 1001;
}

.hamburger-line {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--sh-primary);
  border-radius: 2px;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
              opacity  0.25s ease,
              width    0.3s ease;
  transform-origin: center;
}

/* Lines → X when active */
.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

/* ---- Mobile menu panel ---- */
.mobile-nav {
  background-color: var(--sh-white);
  border-top: 1px solid rgba(0, 0, 0, 0.07);
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.45s cubic-bezier(0.4, 0, 0.2, 1),
              opacity    0.30s ease;
}

.mobile-nav.active {
  max-height: 80vh;
  opacity: 1;
  overflow-y: auto;
}

.mobile-menu-list {
  list-style: none;
  margin: 0;
  padding: 0.5rem 0 1rem;
}

.mobile-menu-list > li > a {
  display: block;
  padding: 14px 24px;
  font-family: var(--font-subheading);
  font-size: 15px;
  font-weight: 600;
  color: var(--sh-text-dark);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  transition: color var(--transition-fast), background-color var(--transition-fast),
              padding-left var(--transition-fast);
}

.mobile-menu-list > li:last-child > a {
  border-bottom: none;
}

.mobile-menu-list > li > a:hover,
.mobile-menu-list > .current-menu-item > a {
  color: var(--sh-accent);
  background-color: var(--sh-light);
  padding-left: 32px;
}

/* Dim backdrop when mobile menu is open */
body.mobile-menu-open::before {
  content: '';
  position: fixed;
  inset: 0;
  background: rgba(26, 42, 58, 0.35);
  z-index: 999;
  animation: overlayFadeIn 0.3s ease forwards;
}

@keyframes overlayFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ---- Responsive: show hamburger, hide desktop nav ---- */
@media (max-width: 768px) {
  .main-navigation {
    display: none;
  }

  .mobile-menu-toggle {
    display: flex;
  }
}

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

.sh-section {
  padding: var(--space-4xl) 0;
}

.sh-section-sm {
  padding: var(--space-2xl) 0;
}

.sh-section-lg {
  padding: 120px 0;
}

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

.sh-section-dark {
  background-color: var(--sh-primary);
  color: var(--sh-white);
}

.sh-section-dark h1,
.sh-section-dark h2,
.sh-section-dark h3 {
  color: var(--sh-white);
}

.sh-section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto var(--space-2xl);
}

.sh-section-header .sh-divider {
  margin-left: auto;
  margin-right: auto;
}

/* ==========================================================================
   Container & Grid
   ========================================================================== */

.sh-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

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

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

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

.hero-section {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(26, 42, 58, 0.8) 0%,
    rgba(45, 90, 61, 0.6) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: var(--sh-white);
  max-width: 800px;
  padding: var(--space-xl);
}

.hero-title {
  font-size: 56px;
  margin-bottom: var(--space-md);
  color: var(--sh-white);
}

.hero-subtitle {
  font-family: var(--font-subheading);
  font-size: 20px;
  opacity: 0.9;
  margin-bottom: var(--space-sm);
  letter-spacing: 2px;
  text-transform: uppercase;
}

.hero-text {
  font-size: 20px;
  opacity: 0.9;
  margin-bottom: var(--space-xl);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-buttons {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  flex-wrap: wrap;
}

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

.race-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-normal);
}

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

.race-card-image {
  width: 100%;
  height: 300px;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.race-card:hover .race-card-image {
  transform: scale(1.05);
}

.race-card-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--space-xl);
  background: linear-gradient(180deg, transparent 0%, rgba(26, 42, 58, 0.9) 100%);
  color: var(--sh-white);
}

.race-card-title {
  font-family: var(--font-heading);
  font-size: 24px;
  margin-bottom: var(--space-xs);
  color: var(--sh-white);
}

.race-card-subtitle {
  font-size: 14px;
  opacity: 0.9;
}

.race-card-body {
  padding: var(--space-lg);
}

.race-card-traits {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
  margin-top: var(--space-md);
}

.race-card-trait {
  display: inline-block;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 500;
  background-color: var(--sh-light);
  border-radius: var(--radius-full);
  color: var(--sh-text);
}

/* ==========================================================================
   Testimonials
   ========================================================================== */

.testimonial-card {
  background: var(--sh-white);
  padding: var(--space-xl);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  text-align: center;
}

.testimonial-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  margin: 0 auto var(--space-md);
  object-fit: cover;
  border: 3px solid var(--sh-accent);
}

.testimonial-content {
  font-style: italic;
  margin-bottom: var(--space-md);
  position: relative;
}

.testimonial-content::before {
  content: '\201C';
  font-size: 60px;
  font-family: Georgia, serif;
  color: var(--sh-accent);
  opacity: 0.3;
  position: absolute;
  top: -20px;
  left: -10px;
}

.testimonial-author {
  font-weight: 600;
  color: var(--sh-primary);
}

.testimonial-location {
  font-size: 14px;
  color: var(--sh-text-light);
}

.rating-stars {
  color: var(--sh-accent);
  font-size: 18px;
  margin-bottom: var(--space-sm);
}

/* ==========================================================================
   Value Proposition Blocks
   ========================================================================== */

.value-block {
  text-align: center;
  padding: var(--space-xl);
}

.value-block-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto var(--space-md);
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--sh-light);
  border-radius: 50%;
  color: var(--sh-accent);
}

.value-block-title {
  font-family: var(--font-subheading);
  font-size: 18px;
  font-weight: 600;
  margin-bottom: var(--space-sm);
  color: var(--sh-text-dark);
}

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

.cta-section {
  background-color: var(--sh-primary);
  color: var(--sh-white);
  text-align: center;
  padding: var(--space-3xl) 0;
}

.cta-section h2 {
  color: var(--sh-white);
}

.cta-section p {
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto var(--space-xl);
}

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

.blog-card {
  background: var(--sh-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
}

.blog-card:hover {
  box-shadow: var(--shadow-md);
}

.blog-card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.blog-card-content {
  padding: var(--space-lg);
}

.blog-card-meta {
  font-size: 13px;
  color: var(--sh-text-light);
  margin-bottom: var(--space-sm);
}

.blog-card-title {
  font-size: 20px;
  margin-bottom: var(--space-sm);
}

.blog-card-title a {
  color: var(--sh-text-dark);
}

.blog-card-title a:hover {
  color: var(--sh-accent);
}

.blog-card-excerpt {
  color: var(--sh-text);
  margin-bottom: var(--space-md);
}

.blog-card-link {
  font-weight: 600;
  color: var(--sh-accent);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.blog-card-link:hover {
  color: var(--sh-secondary);
}

/* ==========================================================================
   Badges
   ========================================================================== */

.sh-badge {
  display: inline-block;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: var(--radius-full);
}

.sh-badge-primary { background-color: var(--sh-primary); color: var(--sh-white); }
.sh-badge-accent  { background-color: var(--sh-accent); color: var(--sh-primary); }
.sh-badge-success { background-color: var(--sh-success); color: var(--sh-white); }
.sh-badge-warning { background-color: var(--sh-warning); color: var(--sh-white); }

.status-disponible { background-color: var(--sh-success); color: white; }
.status-reserve    { background-color: var(--sh-warning); color: white; }
.status-adopte     { background-color: var(--sh-text-light); color: white; }

/* ==========================================================================
   Content Elements
   ========================================================================== */

blockquote,
.wp-block-quote {
  border-left: 4px solid var(--sh-accent);
  padding: var(--space-lg);
  margin: var(--space-xl) 0;
  background-color: var(--sh-light);
  font-style: italic;
  font-size: 1.1em;
}

blockquote p:last-child { margin-bottom: 0; }

blockquote cite {
  display: block;
  margin-top: var(--space-md);
  font-style: normal;
  font-size: 0.9em;
  color: var(--sh-text-light);
}

.sh-list {
  list-style: none;
  padding-left: 0;
}

.sh-list li {
  position: relative;
  padding-left: 28px;
  margin-bottom: var(--space-sm);
}

.sh-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 8px;
  height: 8px;
  background-color: var(--sh-accent);
  border-radius: 50%;
}

.sh-divider {
  height: 3px;
  width: 60px;
  background-color: var(--sh-accent);
  margin: var(--space-lg) 0;
}

.sh-divider.centered {
  margin-left: auto;
  margin-right: auto;
}

/* ==========================================================================
   Breadcrumbs
   ========================================================================== */

.breadcrumbs {
  font-size: 14px;
  margin-bottom: var(--space-lg);
}

.breadcrumbs a { color: var(--sh-text-light); }
.breadcrumbs a:hover { color: var(--sh-accent); }
.breadcrumbs span.current { color: var(--sh-text); }
.breadcrumbs .separator { margin: 0 8px; color: var(--sh-text-light); }

/* ==========================================================================
   Gallery Filters
   ========================================================================== */

.gallery-filter {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
  margin-bottom: var(--space-xl);
}

.gallery-filter button {
  padding: 10px 20px;
  background: transparent;
  border: 2px solid var(--sh-primary);
  border-radius: var(--radius-sm);
  font-family: var(--font-subheading);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.gallery-filter button:hover,
.gallery-filter button.active {
  background-color: var(--sh-primary);
  color: var(--sh-white);
}

/* ==========================================================================
   Footer
   ========================================================================== */

#footer,
.site-footer {
  background-color: var(--sh-dark-bg);
  color: var(--sh-white);
}

.site-footer a { color: rgba(255, 255, 255, 0.8); }
.site-footer a:hover { color: var(--sh-accent); }

.site-footer h4,
.site-footer .widget-title {
  color: var(--sh-white);
  font-family: var(--font-subheading);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-2xl);
  padding: var(--space-3xl) 0;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: var(--space-lg) 0;
  text-align: center;
  font-size: 14px;
  opacity: 0.7;
}

/* ==========================================================================
   Animations
   ========================================================================== */

.animate-on-scroll {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

.animate-fadeInUp {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-fadeInUp.visible {
  opacity: 1;
  transform: translateY(0);
}

.animate-fadeIn {
  opacity: 0;
  transition: opacity 0.6s ease-out;
}

.animate-fadeIn.visible {
  opacity: 1;
}

.animate-scaleIn {
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.animate-scaleIn.visible {
  opacity: 1;
  transform: scale(1);
}

/* ==========================================================================
   Back to Top
   ========================================================================== */

.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background-color: var(--sh-primary);
  color: var(--sh-white);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all var(--transition-normal);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
}

.back-to-top:hover {
  background-color: var(--sh-accent);
  transform: translateY(-3px);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* ==========================================================================
   Accessibility
   ========================================================================== */

:focus-visible {
  outline: 2px solid var(--sh-accent);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--sh-primary);
  color: var(--sh-white);
  padding: 8px;
  z-index: 10000;
  transition: top var(--transition-fast);
}

.skip-link:focus {
  top: 0;
}

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

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

.text-center { text-align: center; }
.text-left   { text-align: left; }
.text-right  { text-align: right; }
.text-accent    { color: var(--sh-accent); }
.text-primary   { color: var(--sh-primary); }
.text-secondary { color: var(--sh-secondary); }
.bg-light { background-color: var(--sh-light); }
.bg-dark  { background-color: var(--sh-primary); }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: var(--space-sm); }
.mb-2 { margin-bottom: var(--space-md); }
.mb-3 { margin-bottom: var(--space-lg); }
.mb-4 { margin-bottom: var(--space-xl); }
.mb-5 { margin-bottom: var(--space-2xl); }

/* ==========================================================================
   Preloader
   ========================================================================== */

.preloader {
  position: fixed;
  inset: 0;
  background-color: var(--sh-white);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.preloader-spinner {
  width: 50px;
  height: 50px;
  border: 3px solid var(--sh-light);
  border-top-color: var(--sh-accent);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ==========================================================================
   Elementor Overrides
   ========================================================================== */

.elementor-section.elementor-section-boxed > .elementor-container {
  max-width: 1200px;
}

.elementor-widget-heading .elementor-heading-title {
  font-family: var(--font-heading);
}

.elementor-button-wrapper .elementor-button {
  font-family: var(--font-subheading);
}

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

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

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

@media (max-width: 768px) {
  h1 { font-size: 32px; }
  h2 { font-size: 26px; }
  h3 { font-size: 22px; }

  body { font-size: 16px; }
  .lead { font-size: 18px; }

  .sh-section { padding: var(--space-2xl) 0; }
  .sh-section-lg { padding: var(--space-3xl) 0; }

  .sh-grid-2,
  .sh-grid-3,
  .sh-grid-4 { grid-template-columns: 1fr; }

  .sh-container { padding: 0 var(--space-md); }

  .btn,
  .elementor-button {
    width: 100%;
    text-align: center;
  }

  .hero-section {
    min-height: 500px;
    background-attachment: scroll;
  }

  .hero-title { font-size: 36px; }
  .hero-subtitle { font-size: 16px; }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .back-to-top {
    bottom: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
  }

  .gallery-filter {
    justify-content: center;
  }

  .gallery-filter button {
    flex: 1 1 auto;
    min-width: 120px;
  }
}

@media (max-width: 425px) {
  h1 { font-size: 28px; }
  h2 { font-size: 24px; }
}

/* ==========================================================================
   Print
   ========================================================================== */

@media print {
  header, footer, nav, .no-print {
    display: none !important;
  }

  body {
    font-size: 12pt;
    color: #000;
    background: #fff;
  }

  a {
    color: #000;
    text-decoration: underline;
  }
}
