:root {
  --primary: #2C1810;
  --primary-light: #3D2418;
  --secondary: #D2691E;
  --secondary-dark: #B8521A;
  --tertiary: #8B4513;
  --accent: #FFF8F0;
  --cream: #F5EBE0;
  --text-dark: #1A1410;
  --text-light: #FFFFFF;
  --text-muted: #7B6B5F;
  --text-bronze: #CD7F32;
  --border-light: #E8DDD0;
  --border-warm: #D4C4B0;
  --error: #C85A54;
  --success: #6B8E23;
  --shadow-sm: 0 2px 4px rgba(44, 24, 16, 0.08);
  --shadow-md: 0 4px 16px rgba(44, 24, 16, 0.12);
  --shadow-lg: 0 12px 32px rgba(44, 24, 16, 0.16);
  --shadow-xl: 0 20px 48px rgba(44, 24, 16, 0.20);
  --shadow-warm: 0 8px 24px rgba(210, 105, 30, 0.15);
  --gradient-primary: linear-gradient(135deg, #2C1810 0%, #3D2418 100%);
  --gradient-warm: linear-gradient(135deg, #D2691E 0%, #CD7F32 100%);
  --gradient-bronze: linear-gradient(135deg, #CD7F32 0%, #B8860B 100%);
  --gradient-overlay: linear-gradient(to bottom, rgba(44, 24, 16, 0.4), rgba(44, 24, 16, 0.7));
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  user-select: none;
}

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

body {
  font-family: 'Lora', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text-dark);
  background-color: var(--accent);
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Oswald', Georgia, serif;
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 16px;
}

h1 {
  font-size: 2.5rem;
  font-weight: 700;
}

h2 {
  font-size: 2rem;
  color: var(--primary);
}

h3 {
  font-size: 1.5rem;
}

h4 {
  font-size: 1.25rem;
}

p {
  margin-bottom: 16px;
  line-height: 1.5;
}

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

a:hover, a:focus {
  opacity: 0.8;
}

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

textarea {
  resize: none;
}

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

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to bottom, rgba(44, 24, 16, 0.98), rgba(44, 24, 16, 0.95));
  backdrop-filter: blur(16px);
  z-index: 1000;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 16px rgba(44, 24, 16, 0.15);
  border-bottom: 1px solid rgba(210, 105, 30, 0.1);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.logo-text {
  font-family: 'Oswald', serif;
  font-size: 1.5rem;
  color: var(--text-light);
  font-weight: 700;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
}

.logo a:hover .logo-text {
  color: var(--secondary);
  text-shadow: 0 0 20px rgba(210, 105, 30, 0.4);
}

.menu-toggle {
  display: block;
  width: 32px;
  height: 32px;
  position: relative;
  z-index: 1001;
}

.hamburger {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--text-light);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: background-color 0.3s ease;
}

.hamburger::before,
.hamburger::after {
  content: '';
  position: absolute;
  width: 24px;
  height: 2px;
  background-color: var(--text-light);
  left: 0;
  transition: transform 0.3s ease;
}

.hamburger::before {
  top: -8px;
}

.hamburger::after {
  top: 8px;
}

.menu-toggle[aria-expanded="true"] .hamburger {
  background-color: transparent;
}

.menu-toggle[aria-expanded="true"] .hamburger::before {
  transform: translateY(8px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .hamburger::after {
  transform: translateY(-8px) rotate(-45deg);
}

nav {
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  background-color: var(--primary);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

nav.open {
  max-height: 400px;
}

nav ul {
  list-style: none;
  padding: 16px 24px;
}

nav li {
  margin-bottom: 16px;
}

nav a {
  color: var(--text-light);
  font-size: 1.125rem;
  display: block;
  padding: 8px 0;
  position: relative;
  transition: all 0.3s ease;
}

nav a::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-warm);
  transition: width 0.3s ease;
}

nav a:hover::before,
nav a.active::before {
  width: 100%;
}

nav a.active {
  color: var(--secondary);
}

/* Pages hero */
.page-hero {
  background: var(--gradient-primary);
  color: var(--text-light);
  padding: 120px 24px 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at top right, rgba(210, 105, 30, 0.15), transparent 50%);
  pointer-events: none;
}

.page-hero h1 {
  color: var(--text-light);
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.page-hero p {
  font-size: 1.125rem;
  color: rgba(250, 246, 240, 0.8);
}

footer {
  background-color: var(--primary);
  color: var(--text-light);
  padding: 48px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  margin-bottom: 32px;
}

.footer-col h3,
.footer-col h4 {
  color: var(--text-light);
  font-size: 1.125rem;
  margin-bottom: 16px;
}

.footer-col p,
.footer-col li {
  font-size: 0.875rem;
  line-height: 1.6;
  color: rgba(250, 246, 240, 0.8);
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 8px;
}

.footer-col a {
  color: rgba(250, 246, 240, 0.8);
}

.footer-col a:hover,
.footer-col a:focus {
  color: var(--secondary);
  opacity: 1;
  padding-left: 4px;
  transition: all 0.2s ease;
}

.social-links {
  display: flex;
  gap: 16px;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: rgba(250, 246, 240, 0.1);
  transition: background-color 0.3s ease;
}

.social-links a:hover,
.social-links a:focus {
  background: var(--gradient-warm);
  opacity: 1;
  transform: translateY(-3px);
  box-shadow: var(--shadow-warm);
}

.footer-bottom {
  text-align: center;
  padding-top: 24px;
  border-top: 1px solid rgba(250, 246, 240, 0.2);
}

.footer-bottom p {
  font-size: 0.875rem;
  color: rgba(250, 246, 240, 0.6);
  margin-bottom: 8px;
}

.footer-bottom a {
  color: rgba(250, 246, 240, 0.6);
}

/* Skeleton Loader Styles */

/* Skeleton Grid */
.skeleton-grid {
  column-count: 2;
  column-gap: 1rem;
  margin-bottom: 48px;
  min-height: 400px;
}

@media (min-width: 768px) {
  .skeleton-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }
}

@media (min-width: 1024px) {
  .skeleton-grid {
    column-count: 3;
    gap: 40px;
  }
}

/* Skeleton Item */
.skeleton-item {
  display: block;
  width: 100%;
  margin-bottom: 1rem;
  break-inside: avoid;
  border-radius: 12px;
  overflow: hidden;
  background: white;
  border: 2px solid var(--border-light);
}

.skeleton-image {
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
}

.skeleton-text {
  height: 20px;
  border-radius: 4px;
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
}

/* Shimmer Animation */
@keyframes shimmer {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

.shimmer {
  animation: shimmer 1.5s infinite linear;
}

/* Service Card Skeleton */
.skeleton-service-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  max-width: 1200px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .skeleton-service-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
  }
}

@media (min-width: 1024px) {
  .skeleton-service-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 48px;
  }
}

.skeleton-service-card {
  background-color: white;
  border: 2px solid var(--border-light);
  border-radius: 16px;
  overflow: hidden;
}

.skeleton-service-image {
  width: 100%;
  height: 250px;
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
}

@media (min-width: 768px) {
  .skeleton-service-image {
    height: 280px;
  }
}

@media (min-width: 1024px) {
  .skeleton-service-image {
    height: 300px;
  }
}

.skeleton-service-content {
  padding: 32px 24px;
}

@media (min-width: 768px) {
  .skeleton-service-content {
    padding: 40px 32px;
  }
}

.skeleton-button {
  width: 100%;
  height: 48px;
  border-radius: 50px;
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
}

/* Testimonial Skeleton */
.skeleton-testimonial {
  background: white;
  padding: 48px 32px;
  border-radius: 16px;
  border: 2px solid var(--border-light);
  min-height: 400px;
}

.skeleton-testimonial-header {
  text-align: center;
  margin-bottom: 24px;
}

.skeleton-testimonial-body {
  padding: 0 20px;
  margin-bottom: 32px;
}

.skeleton-testimonial-footer {
  padding-top: 24px;
  border-top: 2px solid var(--border-light);
  text-align: center;
}

/* Loading State Message */
.loading-message {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-muted);
  font-size: 1.125rem;
}

.loading-message::after {
  content: '';
  display: inline-block;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--secondary);
  margin-left: 8px;
  animation: loadingDot 1.4s infinite both;
}

@keyframes loadingDot {
  0%, 80%, 100% {
    opacity: 0;
    transform: scale(0);
  }
  40% {
    opacity: 1;
    transform: scale(1);
  }
}

/* Fade In Up Animation for Gallery Items */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Newsletter Section Styles */

.newsletter-section {
  background: linear-gradient(135deg, #2C1810 0%, #3D2418 100%);
  padding: 64px 0;
  position: relative;
  overflow: hidden;
}

.newsletter-section::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(210, 105, 30, 0.1), transparent 70%);
  pointer-events: none;
}

.newsletter-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 1;
}

.newsletter-header h2 {
  color: var(--text-light);
  font-size: 2.5rem;
  margin-bottom: 16px;
  position: relative;
  display: inline-block;
}

.newsletter-header h2::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: var(--gradient-warm);
  border-radius: 2px;
}

.newsletter-header p {
  color: rgba(250, 246, 240, 0.9);
  font-size: 1.125rem;
  line-height: 1.7;
  margin-bottom: 40px;
}

.newsletter-form {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  padding: 40px 32px;
  border-radius: 16px;
  border: 2px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

.newsletter-form:hover {
  border-color: rgba(210, 105, 30, 0.3);
  box-shadow: 0 12px 40px rgba(210, 105, 30, 0.15);
}

.newsletter-inputs {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-bottom: 24px;
}

@media (min-width: 768px) {
  .newsletter-inputs {
    grid-template-columns: 2fr 1.5fr;
    gap: 16px;
  }
}

.newsletter-form .form-group {
  margin-bottom: 0;
}

.newsletter-form input {
  width: 100%;
  padding: 16px 20px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.95);
  border-radius: 8px;
  font-size: 1rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  color: var(--text-dark);
}

.newsletter-form input::placeholder {
  color: var(--text-muted);
}

.newsletter-form input:focus {
  outline: none;
  border-color: var(--secondary);
  background: white;
  box-shadow: 0 0 0 4px rgba(210, 105, 30, 0.15);
  transform: translateY(-2px);
}

.newsletter-form .form-group.error input {
  border-color: var(--error);
}

.newsletter-form .error-message {
  color: #FFB4AB;
  font-size: 0.875rem;
  margin-top: 4px;
  text-align: left;
}

.newsletter-submit {
  width: 100%;
  margin-top: 0;
  padding: 16px 40px;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.newsletter-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none !important;
}

.newsletter-form .form-status {
  padding: 16px;
  margin-top: 16px;
  border-radius: 8px;
  font-weight: 500;
  display: none;
  animation: slideDown 0.3s ease;
}

.newsletter-form .cta-button {
  margin-top: 0;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.newsletter-form .form-status.success {
  background-color: rgba(102, 187, 106, 0.15);
  color: #B9F6CA;
  border: 1px solid rgba(102, 187, 106, 0.3);
}

.newsletter-form .form-status.error {
  background-color: rgba(239, 83, 80, 0.15);
  color: #FFB4AB;
  border: 1px solid rgba(239, 83, 80, 0.3);
}

.newsletter-privacy {
  color: rgba(250, 246, 240, 0.7);
  font-size: 0.875rem;
  margin-top: 24px;
  line-height: 1.6;
}

/* Screen reader only */
.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;
}

/* Responsive */
@media (max-width: 767px) {
  .newsletter-section {
    padding: 48px 0;
  }
  
  .newsletter-header h2 {
    font-size: 2rem;
  }
  
  .newsletter-form {
    padding: 32px 24px;
  }
  
  .newsletter-submit {
    padding: 14px 32px;
    font-size: 0.95rem;
  }
}