@import url('https://fonts.googleapis.com/css2?family=Instrument+Sans:wght@400;500;600;700&family=Garamond:ital,wght@0,400;0,600;0,700;1,400&display=swap');

:root {
  --primary: #F28C38;
  --primary-dark: #d97d31;
  --secondary: #487071;
  --secondary-light: #5a8c8e;
  --bg-primary: #FCFBF8;
  --bg-secondary: #EAE3D9;
  --bg-tertiary: #F5F3EF;
  --text-primary: #2c3e50;
  --text-secondary: #666666;
  --text-tertiary: #999999;
  --border-color: #E0D9D0;
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
  --card-bg: #FFFFFF;
  --card-border: #F0EEEB;
  --glass-bg: rgba(255, 255, 255, 0.7);
  --glass-border: rgba(255, 255, 255, 0.3);
  --input-bg: #FAFAF8;
  --input-border: #E8E5E0;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Instrument Sans', sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  transition: background-color 0.3s ease, color 0.3s ease;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6, .navbar-brand {
  font-family: 'Garamond', serif;
  color: var(--text-primary);
  font-weight: 700;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); line-height: 1.2; }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); line-height: 1.3; }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); line-height: 1.4; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.1rem; }
h6 { font-size: 1rem; }

/* Navbar Styling */
.navbar {
  background-color: var(--bg-primary) !important;
  border-bottom: 1px solid var(--border-color);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.navbar-light .navbar-nav .nav-link {
  color: var(--text-primary) !important;
  font-weight: 500;
  font-family: 'Instrument Sans', sans-serif;
  transition: var(--transition);
  position: relative;
}

.navbar-light .navbar-nav .nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary);
  transition: width 0.3s ease;
}

.navbar-light .navbar-nav .nav-link:hover::after,
.navbar-light .navbar-nav .nav-link.active::after {
  width: 100%;
}

.navbar-light .navbar-nav .nav-link:hover,
.navbar-light .navbar-nav .nav-link.active {
  color: var(--primary) !important;
}

.navbar-brand {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary) !important;
  transition: var(--transition);
}

.navbar-brand:hover {
  transform: scale(1.05);
}

/* Theme and Language Switchers */
.theme-language-controls {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

#theme-toggle,
#language-toggle {
  background: transparent;
  border: 1px solid var(--border-color);
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  font-size: 1.2rem;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

#theme-toggle:hover,
#language-toggle:hover {
  background-color: var(--bg-tertiary);
  border-color: var(--primary);
  transform: scale(1.1);
}

#language-toggle {
  font-weight: 600;
  color: var(--text-primary);
  min-width: 45px;
}

/* Buttons */
.btn {
  font-family: 'Instrument Sans', sans-serif;
  font-weight: 600;
  border-radius: var(--radius-md);
  transition: var(--transition);
  border: none;
  text-transform: none;
  font-size: 1rem;
}

.btn-primary-custom {
  background-color: var(--primary);
  color: #ffffff;
  box-shadow: var(--shadow-md);
}

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

.btn-outline-light {
  color: var(--primary);
  border-color: var(--primary);
  border-width: 2px;
}

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

/* Cards */
.card {
  border: 1px solid var(--card-border);
  background-color: var(--card-bg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  overflow: hidden;
}

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

.card-body {
  padding: 1.5rem;
}

.card-custom {
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  transition: var(--transition);
}

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

/* Bento Grid System */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.bento-item {
  background-color: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 300px;
  box-shadow: var(--shadow-md);
}

.bento-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}

.bento-item.span-2 {
  grid-column: span 2;
}

.bento-item.span-2-row {
  grid-row: span 2;
}

@media (max-width: 768px) {
  .bento-item.span-2,
  .bento-item.span-2-row {
    grid-column: span 1;
    grid-row: span 1;
  }
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 600"><defs><pattern id="grid" width="40" height="40" patternUnits="userSpaceOnUse"><path d="M 40 0 L 0 0 0 40" fill="none" stroke="%23F28C38" stroke-width="0.5" opacity="0.1"/></pattern></defs><rect width="1200" height="600" fill="url(%23grid)"/></svg>');
  opacity: 0.5;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 2rem;
}

/* Glass Morphism */
.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
}

.glass:hover {
  background: var(--glass-bg);
  border-color: var(--primary);
}

/* Neumorphism */
.neumorph {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md),
              inset 0 1px 2px rgba(255, 255, 255, 0.5);
}

.neumorph:hover {
  box-shadow: var(--shadow-lg),
              inset 0 1px 2px rgba(255, 255, 255, 0.5);
}

/* Typography */
.lead {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--text-secondary);
  line-height: 1.8;
}

.text-accent {
  color: var(--primary);
  font-weight: 700;
}

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

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

/* Forms */
.form-control {
  background-color: var(--input-bg);
  border: 1px solid var(--input-border);
  color: var(--text-primary);
  border-radius: var(--radius-md);
  transition: var(--transition);
  font-family: 'Instrument Sans', sans-serif;
}

.form-control:focus {
  background-color: var(--card-bg);
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(242, 140, 56, 0.1);
  color: var(--text-primary);
}

.form-control::placeholder {
  color: var(--text-tertiary);
}

/* Testimonial Cards */
.testimonial-card {
  background: linear-gradient(135deg, var(--card-bg) 0%, var(--bg-tertiary) 100%);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  position: relative;
  overflow: hidden;
}

.testimonial-card::before {
  content: '"';
  position: absolute;
  font-size: 5rem;
  color: var(--primary);
  opacity: 0.1;
  top: -0.5rem;
  left: -1rem;
  z-index: 1;
}

.testimonial-card .content {
  position: relative;
  z-index: 2;
}

/* Service Cards */
.service-card {
  background-color: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}

.service-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--bg-tertiary);
  border-radius: 50%;
  transition: var(--transition);
}

.service-card:hover .service-icon {
  background-color: var(--primary);
  transform: scale(1.1) rotate(5deg);
}

.service-icon svg {
  width: 32px;
  height: 32px;
  color: var(--primary);
  transition: var(--transition);
}

.service-card:hover .service-icon svg {
  color: white;
}

/* Price Tag */
.price-tag {
  font-family: 'Garamond', serif;
  font-size: 1.8rem;
  color: var(--primary);
  font-weight: 700;
}

/* List Styling */
.list-unstyled li {
  display: flex;
  align-items: center;
  margin-bottom: 0.75rem;
}

.list-unstyled li svg {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-right: 0.75rem;
  color: var(--primary);
  transition: var(--transition);
}

.list-group-item {
  background-color: var(--card-bg);
  border-color: var(--border-color);
  color: var(--text-primary);
  transition: var(--transition);
}

.list-group-item:hover {
  background-color: var(--bg-tertiary);
  border-color: var(--primary);
}

/* Footer */
footer {
  background-color: var(--bg-secondary);
  color: var(--text-primary);
  border-top: 1px solid var(--border-color);
  transition: var(--transition);
}

footer h6 {
  color: var(--text-primary);
  font-weight: 700;
}

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

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

/* Cookie Banner */
#cookieConsentBanner {
  background: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-light) 100%);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--shadow-lg);
}

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

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

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

.animate-fade-in-up {
  animation: fadeInUp 0.6s ease-out forwards;
}

.animate-slide-in-left {
  animation: slideInLeft 0.6s ease-out forwards;
}

.animate-slide-in-right {
  animation: slideInRight 0.6s ease-out forwards;
}

/* Staggered animations */
.animate-stagger > * {
  animation: fadeInUp 0.6s ease-out forwards;
}

.animate-stagger > *:nth-child(1) { animation-delay: 0s; }
.animate-stagger > *:nth-child(2) { animation-delay: 0.1s; }
.animate-stagger > *:nth-child(3) { animation-delay: 0.2s; }
.animate-stagger > *:nth-child(4) { animation-delay: 0.3s; }
.animate-stagger > *:nth-child(5) { animation-delay: 0.4s; }
.animate-stagger > *:nth-child(n+6) { animation-delay: 0.5s; }

/* Responsive Typography */
@media (max-width: 768px) {
  h1 { font-size: 1.75rem; }
  h2 { font-size: 1.5rem; }
  h3 { font-size: 1.25rem; }

  .lead {
    font-size: 1rem;
  }
}

/* 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 */
button:focus,
a:focus,
input:focus {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Print styles */
@media print {
  body {
    background-color: white;
    color: black;
  }

  .navbar,
  footer,
  #cookieConsentBanner {
    display: none;
  }
}
