/* Modern Memory Game Styles */
:root {
  /* updated to match project branding changes */
  --primary-green: #c8643e; /* tangerine (was #4C6744) */
  --gold-accent: #faeaa1; /* beige (was #C6A451) */
  --bg-light: #F6F7F3;
  --text-dark: #2F3A2E;
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
  --radius-lg: 24px;
  --radius-md: 12px;
}

/* Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--primary-green);
  min-height: 100vh;
  color: var(--text-dark);
  position: relative;
  overflow-x: hidden;
}

/* Animated Background */
.animated-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: hidden;
  background: url('/images/bg-gallery.png') center center / cover no-repeat;
}

/* Particle Canvas */
#particleCanvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* Navbar */
.navbar {
  padding: 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  animation: slideDown 0.5s ease-out;
  position: relative;
  z-index: 10;
}

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

.logo {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 80px;
  padding: 4px 8px;
  background: transparent;
  border-radius: 8px;
  text-decoration: none;
  transition: transform 0.2s ease;
}

.logo:hover {
  transform: none;
  box-shadow: none;
}

.logo img {
  height: 72px;
  width: auto;
  object-fit: contain;
  display: block;
}

.home-button {
  width: 48px;
  height: 48px;
  background: white;
  border-radius: 50%;
  border: none;
  color: var(--primary-green);
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.home-button:hover {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

/* Main Container */
.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 6px 20px 16px 20px;
  position: relative;
  z-index: 10;
}

/* Game Header */
.game-header {
  background: white;
  border-radius: var(--radius-lg);
  padding: 22px 18px;
  text-align: center;
  margin: 4px auto 12px auto;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  max-width: 600px;
  animation: fadeInUp 0.42s ease-out;
  position: relative;
  overflow: hidden;
}

.game-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-green), var(--gold-accent), var(--primary-green));
  background-size: 200% 100%;
  animation: shimmer 3s infinite;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.game-header h1 {
  font-family: 'Butler', serif;
  font-size: 28px;
  font-weight: 600;
  color: var(--text-dark);
  margin: 12px 0;
  letter-spacing: 1px;
  text-transform: uppercase;
  background: linear-gradient(135deg, var(--primary-green), var(--gold-accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.game-header p {
  color: #666;
  font-size: 14px;
  margin-bottom: 20px;
  max-width: 320px;
  margin-left: auto;
  margin-right: auto;
}

/* Stats Bar */
.stats-bar {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  justify-content: space-around;
  margin: 0 auto;
  max-width: 450px;
  font-size: 14px;
  border: 2px solid rgba(200, 100, 62, 0.1);
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 15px;
  min-width: 110px;
  justify-content: center;
  position: relative;
}

.stat-item::after {
  content: '';
  position: absolute;
  right: 0;
  height: 60%;
  width: 1px;
  background: rgba(0, 0, 0, 0.1);
}

.stat-item:last-child::after {
  display: none;
}

.stat-item i {
  font-size: 18px;
  color: var(--primary-green);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

.stat-item span {
  font-weight: 600;
  min-width: 60px;
  text-align: left;
  color: var(--text-dark);
}

#rating {
  display: flex;
  gap: 3px;
  align-items: center;
  justify-content: flex-start;
  min-width: 80px;
}

#rating i {
  color: #ffd700;
  filter: drop-shadow(0 2px 4px rgba(255, 215, 0, 0.3));
}

/* Game Grid */
.game-board {
  background: white;
  border-radius: var(--radius-lg);
  padding: 22px 18px;
  margin: 4px auto 18px auto;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  max-width: 600px;
  animation: fadeInUp 0.48s ease-out 0.12s both;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 32px;
  perspective: 1000px;
}

.memory-card {
  aspect-ratio: 1;
  background: white;
  border-radius: var(--radius-md);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  perspective: 1000px;
  width: 100%;
  max-width: 120px;
  margin: 0 auto;
}

.memory-card:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 8px 20px rgba(200, 100, 62, 0.3);
}

.memory-card.flipped .card-inner {
  transform: rotateY(180deg);
}

.memory-card.matched {
  animation: matchPulse 0.6s ease;
}

@keyframes matchPulse {
  0%, 100% { transform: scale(1); }
  25% { transform: scale(1.1); }
  50% { transform: scale(0.95); }
  75% { transform: scale(1.05); }
}

.card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.6s;
  transform-style: preserve-3d;
}

.card-front,
.card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
}

.card-front {
  background: linear-gradient(135deg, var(--primary-green) 0%, rgba(200, 100, 62, 0.8) 100%);
  border: 3px solid var(--gold-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.card-front .card-logo {
  font-size: 3rem;
  color: var(--gold-accent);
  font-family: 'Butler', serif;
  font-weight: bold;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

.card-back {
  background-color: white;
  transform: rotateY(180deg);
  padding: 20px;
}

.card-back {
  background-color: white;
  transform: rotateY(180deg);
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-back img {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
  pointer-events: none;
  display: block;
  margin: auto;
}

.memory-card.matched {
  pointer-events: none;
  animation: matchSuccess 0.8s ease forwards;
}

@keyframes matchSuccess {
  0% { transform: scale(1); }
  50% { transform: scale(1.15) rotate(5deg); }
  100% { transform: scale(1); }
}

.memory-card.matched .card-inner {
  transform: rotateY(180deg);
  box-shadow: 0 0 20px rgba(250, 234, 161, 0.6);
  border: 2px solid var(--gold-accent);
  border-radius: var(--radius-md);
}

/* Buttons */
.button-group {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-bottom: 20px;
}

.btn {
  padding: 14px 32px;
  border-radius: 9999px;
  border: none;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 15px;
  letter-spacing: 0.5px;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
  width: 300px;
  height: 300px;
}

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

.btn-outline:hover {
  background: var(--primary-green);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(200, 100, 62, 0.3);
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold-accent) 0%, #f0d976 100%);
  color: var(--text-dark);
  box-shadow: 0 4px 12px rgba(250, 234, 161, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(250, 234, 161, 0.6);
}

/* Leaderboard */
.leaderboard {
  background: white;
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  max-width: 600px;
  margin: 0 auto;
  animation: fadeInUp 0.6s ease-out 0.4s both;
  display: none;
  position: relative;
  z-index: 20;
}

.leaderboard.visible {
  display: block;
}

.leaderboard-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 32px;
  padding-bottom: 20px;
  border-bottom: 2px solid var(--bg-light);
}

.leaderboard-header i {
  font-size: 32px;
  animation: rotate 4s linear infinite;
}

@keyframes rotate {
  from { transform: rotateY(0deg); }
  to { transform: rotateY(360deg); }
}

.leaderboard-header h2 {
  font-family: 'Butler', serif;
  color: var(--text-dark);
  font-size: 24px;
  letter-spacing: 1px;
  background: linear-gradient(135deg, var(--primary-green), var(--gold-accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.leaderboard-entry {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  background: var(--bg-light);
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.leaderboard-entry:hover {
  transform: translateX(5px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border-color: var(--gold-accent);
}

.leaderboard-entry.rank-1 {
  background: linear-gradient(135deg, #FFD700 0%, #FFF8DC 100%);
  border: 2px solid #FFD700;
  box-shadow: 0 6px 20px rgba(255, 215, 0, 0.3);
  position: relative;
  overflow: hidden;
}

.leaderboard-entry.rank-1::before {
  content: '👑';
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 28px;
  opacity: 0.3;
}

.leaderboard-entry.rank-2 {
  background: linear-gradient(135deg, #C0C0C0 0%, #F0F0F0 100%);
  border: 2px solid #C0C0C0;
  box-shadow: 0 4px 16px rgba(192, 192, 192, 0.3);
}

.leaderboard-entry.rank-3 {
  background: linear-gradient(135deg, #CD7F32 0%, #FFE4C4 100%);
  border: 2px solid #CD7F32;
  box-shadow: 0 4px 16px rgba(205, 127, 50, 0.3);
}

.leaderboard-entry .rank {
  font-weight: 700;
  font-size: 20px;
  min-width: 50px;
  text-align: center;
  color: var(--text-dark);
}

.leaderboard-entry.rank-1 .rank {
  color: #DAA520;
  font-size: 24px;
}

.leaderboard-entry.rank-2 .rank {
  color: #808080;
  font-size: 22px;
}

.leaderboard-entry.rank-3 .rank {
  color: #B87333;
  font-size: 22px;
}

.leaderboard-entry .time {
  font-weight: 600;
  font-size: 18px;
  color: var(--primary-green);
  min-width: 80px;
  text-align: center;
}

.leaderboard-entry .moves {
  font-size: 14px;
  color: #666;
  min-width: 90px;
  text-align: center;
}

.leaderboard-entry .stars {
  font-size: 16px;
  min-width: 80px;
  text-align: right;
  filter: drop-shadow(0 2px 4px rgba(255, 215, 0, 0.3));
}

/* Responsive Design */
@media (max-width: 768px) {
  .cards-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
  }
  
  .button-group {
    flex-direction: column;
  }
  
  .btn {
    width: 100%;
  }
  
  .stats-bar {
    flex-direction: row;
    justify-content: center;
    gap: 12px;
    text-align: center;
  }
  
  .stat-item {
    justify-content: center;
  }
  
  .stat-item::after {
    display: none;
  }
  
  .leaderboard-entry {
    flex-wrap: wrap;
    gap: 8px;
  }
  
  .game-header h1 {
    font-size: 22px;
  }
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
  animation: fadeIn 0.3s ease;
  overflow-y: auto;
}

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

.modal.show {
  display: flex !important;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-content {
  background: white;
  border-radius: 24px;
  max-width: 700px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  animation: slideUp 0.4s ease;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.modal-close {
  position: absolute;
  right: 20px;
  top: 20px;
  width: 40px;
  height: 40px;
  border: none;
  background: rgba(0, 0, 0, 0.1);
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10;
}

.modal-close:hover {
  background: rgba(0, 0, 0, 0.2);
  transform: rotate(90deg);
}

.modal-close i {
  color: #333;
  font-size: 18px;
}

.modal-header {
  background: linear-gradient(135deg, #c25a38 0%, #d4704f 50%, #e68a66 100%);
  padding: 50px 30px 30px;
  text-align: center;
  border-radius: 24px 24px 0 0;
  color: white;
  position: relative;
  overflow: hidden;
}

.modal-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 200%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  animation: shine 3s infinite;
}

@keyframes shine {
  0% { left: -100%; }
  100% { left: 100%; }
}

.modal-header::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 50% 0%, rgba(255, 215, 0, 0.2), transparent 70%);
  pointer-events: none;
}

/* Celebration particles */
.modal-header .particle {
  position: absolute;
  width: 8px;
  height: 8px;
  background: #FFD700;
  border-radius: 50%;
  pointer-events: none;
  animation: particle-fall 3s infinite;
  opacity: 0;
}

@keyframes particle-fall {
  0% {
    opacity: 1;
    transform: translateY(0) rotate(0deg);
  }
  100% {
    opacity: 0;
    transform: translateY(400px) rotate(360deg);
  }
}

.modal-header .particle:nth-child(1) { left: 10%; animation-delay: 0s; background: #FFD700; }
.modal-header .particle:nth-child(2) { left: 20%; animation-delay: 0.5s; background: #FF6B6B; }
.modal-header .particle:nth-child(3) { left: 30%; animation-delay: 1s; background: #4ECDC4; }
.modal-header .particle:nth-child(4) { left: 40%; animation-delay: 1.5s; background: #95E1D3; }
.modal-header .particle:nth-child(5) { left: 50%; animation-delay: 2s; background: #FFD700; }
.modal-header .particle:nth-child(6) { left: 60%; animation-delay: 0.3s; background: #FF6B6B; }
.modal-header .particle:nth-child(7) { left: 70%; animation-delay: 0.8s; background: #4ECDC4; }
.modal-header .particle:nth-child(8) { left: 80%; animation-delay: 1.3s; background: #95E1D3; }
.modal-header .particle:nth-child(9) { left: 90%; animation-delay: 1.8s; background: #FFD700; }

.trophy-icon {
  font-size: 80px;
  color: #FFD700;
  animation: trophyBounce 1.5s ease infinite;
  filter: drop-shadow(0 8px 16px rgba(255, 215, 0, 0.5));
  position: relative;
  z-index: 1;
  display: inline-block;
}

@keyframes trophyBounce {
  0%, 100% { 
    transform: translateY(0) scale(1);
  }
  25% { 
    transform: translateY(-15px) scale(1.1);
  }
  50% { 
    transform: translateY(-8px) scale(1.05);
  }
  75% { 
    transform: translateY(-12px) scale(1.08);
  }
}

.modal-header h2 {
  font-family: 'Butler', serif;
  font-size: 42px;
  margin: 20px 0 8px;
  font-weight: 700;
  background: linear-gradient(135deg, #FFD700, #FFA500, #FFD700);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  position: relative;
  z-index: 1;
  animation: textGlow 2s ease-in-out infinite;
}

@keyframes textGlow {
  0%, 100% { 
    filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.5));
  }
  50% { 
    filter: drop-shadow(0 0 20px rgba(255, 215, 0, 0.8));
  }
}

.modal-subtitle {
  font-size: 18px;
  opacity: 0.95;
  margin-bottom: 24px;
  position: relative;
  z-index: 1;
  font-weight: 300;
  letter-spacing: 0.5px;
}

.final-stats {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  padding: 24px 20px;
  margin-top: 24px;
  display: flex;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
  border: 2px solid rgba(255, 215, 0, 0.3);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  position: relative;
  z-index: 1;
}

.final-stats .stat {
  text-align: center;
  padding: 8px 16px;
  position: relative;
}

.final-stats .stat::after {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  height: 50%;
  width: 1px;
  background: rgba(255, 255, 255, 0.3);
}

.final-stats .stat:last-child::after {
  display: none;
}

.final-stats .stat-label {
  font-size: 11px;
  opacity: 0.85;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 8px;
  font-weight: 600;
  color: #FFD700;
}

.final-stats .stat-value {
  font-size: 32px;
  font-weight: 800;
  margin-top: 4px;
  color: white;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  font-family: 'Inter', sans-serif;
}

.modal-body {
  padding: 40px 30px 30px;
  background: linear-gradient(to bottom, #f8f9fa 0%, #ffffff 100%);
}

.form-intro {
  text-align: center;
  color: #333;
  margin-bottom: 32px;
  font-size: 16px;
  line-height: 1.8;
  font-weight: 500;
  padding: 0 20px;
}

/* Lead Form Styles */
.lead-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.form-section {
  background: #f8f9fa;
  border-radius: 16px;
  padding: 24px;
  border: 1px solid #e9ecef;
}

.section-title {
  font-family: 'Butler', serif;
  font-size: 18px;
  color: var(--text-dark);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--gold-accent);
}

.form-grid {
  display: grid;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  font-size: 14px;
  font-weight: 600;
  color: #5C5C5C;
  margin-bottom: 8px;
}

.required {
  color: #dc3545;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #e9ecef;
  border-radius: 12px;
  font-size: 14px;
  font-family: 'Inter', sans-serif;
  transition: all 0.3s ease;
  background: white;
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--gold-accent);
  box-shadow: 0 0 0 3px rgba(250, 234, 161, 0.2);
}

.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

.checkbox-group {
  margin-top: 8px;
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  font-size: 13px;
  color: #5C5C5C;
  line-height: 1.5;
}

.checkbox-label input[type="checkbox"] {
  margin-top: 2px;
  width: 18px;
  height: 18px;
  cursor: pointer;
  flex-shrink: 0;
}

.form-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-top: 8px;
  padding-top: 24px;
  border-top: 1px solid #e9ecef;
}

.form-actions .btn {
  min-width: 150px;
}

@media (max-width: 640px) {
  .modal-content {
    margin: 10px;
    max-height: 95vh;
  }
  
  .modal-header {
    padding: 40px 20px 30px;
  }
  
  .modal-header h2 {
    font-size: 32px;
  }
  
  .trophy-icon {
    font-size: 64px;
  }
  
  .modal-body {
    padding: 30px 20px 20px;
  }
  
  .form-section {
    padding: 16px;
  }
  
  .form-actions {
    flex-direction: column;
  }
  
  .form-actions .btn {
    width: 100%;
  }
  
  .final-stats {
    gap: 20px;
    padding: 20px 16px;
  }
  
  .final-stats .stat::after {
    display: none;
  }
  
  .final-stats .stat-value {
    font-size: 28px;
  }
}

/* Footer Styles */
.footer {
  background-color: var(--primary-green);
  position: relative;
  z-index: 5;
  margin-top: 80px;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 16px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 48px;
  margin-bottom: 32px;
}

.footer-column {
  display: flex;
  flex-direction: column;
  align-items: center;
}

@media (min-width: 768px) {
  .footer-column {
    align-items: flex-start;
  }
}

.footer-logo {
  width: 160px;
  height: auto;
  margin-bottom: 16px;
}

.footer-title {
  font-family: 'Butler', serif;
  font-size: 14px;
  letter-spacing: 0.1em;
  font-weight: bold;
  color: white;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.footer-address {
  color: #D0D0D0;
  font-size: 14px;
  line-height: 1.6;
  font-style: normal;
  text-align: center;
}

@media (min-width: 768px) {
  .footer-address {
    text-align: left;
  }
}

.footer-contact {
  color: #D0D0D0;
  font-size: 14px;
  line-height: 1.6;
  text-align: center;
}

@media (min-width: 768px) {
  .footer-contact {
    text-align: left;
  }
}

.footer-contact p {
  margin-bottom: 8px;
}

.footer-link {
  color: #D0D0D0;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-link:hover {
  color: #BDAE80;
}

.footer-social {
  display: flex;
  gap: 12px;
}

.social-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: var(--gold-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all 0.3s ease;
}

.social-icon:hover {
  background-color: rgba(250, 234, 161, 0.9);
  transform: translateY(-2px);
}

.social-icon i {
  color: var(--primary-green);
  font-size: 20px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 32px;
  padding-top: 24px;
}

.footer-bottom-text {
  text-align: center;
  font-size: 13px;
  color: #BDBDBD;
}

.footer-bottom-text p {
  margin-bottom: 8px;
}

@media (max-width: 768px) {
  .footer-container {
    padding: 32px 16px;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}
