@import url('https://fonts.googleapis.com/css2?family=Spectral:wght@300;400;600&family=Manrope:wght@400;500;600&display=swap');

:root {
  --color-sage: #A8C1A5;
  --color-cream: #F9F5EB;
  --color-rose: #D8A39D;
  --color-gray: #6E6E6E;
  --color-gold: #D4B483;
  --color-white: #FFFFFF;
  --color-light-sage: #C5D8C3;
  --color-dark-sage: #8DAA8A;
  
  --font-serif: 'Spectral', serif;
  --font-sans: 'Manrope', sans-serif;
  
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  
  --radius-sm: 0.375rem;
  --radius-md: 0.75rem;
  --radius-lg: 1.5rem;
  
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.16);
  
  --transition-fast: 0.2s ease;
  --transition-medium: 0.4s ease;
  --transition-slow: 0.6s ease;
}

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

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--color-gray);
  background-color: var(--color-cream);
  max-width: 100%;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body.menu-open {
  overflow: hidden;
  position: fixed;
  width: 100%;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.3;
  color: var(--color-dark-sage);
  margin-bottom: var(--space-sm);
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
}

h1 {
  font-size: 2rem;
}

h2 {
  font-size: 1.75rem;
}

h3 {
  font-size: 1.5rem;
}

h4 {
  font-size: 1.25rem;
}

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

a { 
  color: #5f2e29;
  text-decoration: none;
  transition: color var(--transition-fast);
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

a:hover {
  color: #cfcdcd;
}

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

button {
  cursor: pointer;
  border: none;
  font-family: var(--font-sans);
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.header-wrapper {
  position: relative;
  width: 100%;
  z-index: 1000;
}

.header {
  background: linear-gradient(135deg, var(--color-sage) 0%, var(--color-light-sage) 100%);
  padding: var(--space-sm) 0;
  box-shadow: var(--shadow-md);
  transform-origin: top;
  transition: transform var(--transition-medium), opacity var(--transition-medium);
}

.header.header-hidden {
  transform: translateY(-100%);
  opacity: 0;
}

.header-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--space-md);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--color-white);
  text-transform: capitalize;
  letter-spacing: 0.5px;
  transition: transform var(--transition-fast);
}

.logo:hover {
  color: var(--color-white);
  transform: scale(1.05);
}

.nav-menu {
  display: flex;
  gap: var(--space-md);
  list-style: none;
}

.nav-menu a {
  color: var(--color-white);
  font-weight: 500;
  font-size: 0.9rem;
  padding: var(--space-xs) var(--space-xs);
  border-radius: var(--radius-sm);
  transition: background-color var(--transition-fast), transform var(--transition-fast);
  position: relative;
}

.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background-color: var(--color-white);
  transition: width var(--transition-fast), left var(--transition-fast);
}

.nav-menu a:hover {
  color: var(--color-white);
  background-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}

.nav-menu a:hover::after {
  width: 80%;
  left: 10%;
}

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  padding: 10px;
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: background-color var(--transition-fast);
  min-width: 44px;
  min-height: 44px;
  justify-content: center;
  align-items: center;
  z-index: 1001;
  position: relative;
}

.burger:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.burger:active {
  background-color: rgba(255, 255, 255, 0.2);
}

.burger:focus {
  outline: 2px solid var(--color-white);
  outline-offset: 2px;
}

.burger:focus:not(:focus-visible) {
  outline: none;
}

.burger span {
  width: 25px;
  height: 3px;
  background-color: var(--color-white);
  transition: all var(--transition-medium);
  border-radius: 3px;
  display: block;
}

.burger.active span:nth-child(1) {
  transform: rotate(45deg) translate(4px, 3px);
}

.burger.active span:nth-child(2) {
  opacity: 0;
  transform: translateX(-20px);
}

.burger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(8px, -8px);
}

.nav-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 998;
  opacity: 0;
  transition: opacity var(--transition-medium);
}

.nav-overlay.active {
  display: block;
  opacity: 1;
}

.hero {
  position: relative;
  padding: var(--space-xl) var(--space-md);
  background: linear-gradient(180deg, var(--color-light-sage) 0%, var(--color-cream) 100%);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 60%;
  height: 150%;
  background: radial-gradient(circle, rgba(168, 193, 165, 0.15) 0%, transparent 70%);
  animation: float 20s ease-in-out infinite;
}

@keyframes float {
  0%, 100% {
    transform: translate(0, 0) rotate(0deg);
  }
  33% {
    transform: translate(30px, -30px) rotate(5deg);
  }
  66% {
    transform: translate(-20px, 20px) rotate(-5deg);
  }
}

.hero-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-content h1 {
  font-size: 2.5rem;
  margin-bottom: var(--space-md);
  animation: slideInLeft 0.8s ease-out;
}

.hero-content p {
  font-size: 1.125rem;
  margin-bottom: var(--space-lg);
  animation: slideInLeft 1s ease-out;
}

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

.hero-image {
  animation: slideInRight 0.8s ease-out;
  position: relative;
}

.hero-image img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  transform: rotate(2deg);
  transition: transform var(--transition-slow);
}

.hero-image:hover img {
  transform: rotate(0deg) scale(1.02);
}

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

.btn {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  font-size: 0.9375rem;
  font-weight: 500;
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  border: 2px solid transparent;
  box-sizing: border-box;
}

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

.btn-primary:hover {
  background-color: var(--color-dark-sage);
  color: var(--color-white);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background-color: transparent;
  color: var(--color-rose);
  border-color: var(--color-rose);
}

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

.section {
  padding: var(--space-xl) var(--space-md);
}

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

.container {
  max-width: 1200px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-lg);
  animation: fadeInUp 0.8s ease-out;
}

.section-header h2 {
  font-size: 2rem;
  margin-bottom: var(--space-sm);
}

.section-header p {
  font-size: 1.0625rem;
  color: var(--color-gray);
  max-width: 700px;
  margin: 0 auto;
}

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

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-md);
  margin-top: var(--space-lg);
}

.card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-medium);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--color-rose) 0%, var(--color-gold) 100%);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-medium);
}

.card:hover::before {
  transform: scaleX(1);
}

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

.card-icon {
  font-size: 2.5rem;
  color: var(--color-rose);
  margin-bottom: var(--space-sm);
  display: inline-block;
  transition: transform var(--transition-medium);
}

.card:hover .card-icon {
  transform: scale(1.15) rotate(5deg);
}

.card h3 {
  font-size: 1.25rem;
  margin-bottom: var(--space-sm);
}

.card p {
  font-size: 0.9375rem;
  line-height: 1.6;
  margin-bottom: 0;
}

.feature-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: center;
}

.feature-image {
  position: relative;
}

.feature-image img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.feature-content h2 {
  margin-bottom: var(--space-md);
}

.feature-list {
  list-style: none;
  margin-top: var(--space-md);
}

.feature-list li {
  padding: var(--space-sm);
  margin-bottom: var(--space-sm);
  background-color: var(--color-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  transition: transform var(--transition-fast);
}

.feature-list li:hover {
  transform: translateX(8px);
}

.feature-list li i {
  color: var(--color-rose);
  font-size: 1.25rem;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-lg);
  margin-top: var(--space-lg);
}

.product-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-medium);
}

.product-card:hover {
  transform: translateY(-10px) rotate(1deg);
  box-shadow: var(--shadow-lg);
}

.product-image {
  position: relative;
  overflow: hidden;
  height: 250px;
  background-color: var(--color-light-sage);
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.product-card:hover .product-image img {
  transform: scale(1.1);
}

.product-info {
  padding: var(--space-md);
}

.product-info h3 {
  font-size: 1.375rem;
  margin-bottom: var(--space-xs);
}

.product-price {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--color-rose);
  margin-bottom: var(--space-sm);
}

.product-info p {
  font-size: 0.9375rem;
  margin-bottom: var(--space-md);
}

.contact-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: start;
}

.contact-info {
  background: linear-gradient(135deg, var(--color-sage) 0%, var(--color-dark-sage) 100%);
  color: var(--color-white);
  padding: var(--space-lg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.contact-info h3 {
  color: var(--color-white);
  margin-bottom: var(--space-md);
}

.contact-item {
  display: flex;
  align-items: start;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
}

.contact-item i {
  font-size: 1.25rem;
  margin-top: 3px;
}

.contact-item p {
  margin: 0;
  line-height: 1.5;
}

.map-container {
  margin-top: var(--space-md);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.map-container iframe {
  width: 100%;
  height: 300px;
  border: none;
}

.form-wrapper {
  background: var(--color-white);
  padding: var(--space-lg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  max-width: 100%;
  width: 100%;
}

.form-group {
  margin-bottom: var(--space-md);
}

.form-group label {
  display: block;
  margin-bottom: var(--space-xs);
  font-weight: 500;
  color: var(--color-dark-sage);
}

.form-group input,
.form-group textarea {
  width: 100%;
  max-width: 100%;
  padding: 0.75rem;
  border: 2px solid var(--color-light-sage);
  border-radius: var(--radius-md);
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  background-color: var(--color-white);
  color: var(--color-gray);
  box-sizing: border-box;
  transition: all var(--transition-fast);
  line-height: 1.5;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-sage);
  box-shadow: 0 0 0 3px rgba(168, 193, 165, 0.15);
  background-color: var(--color-cream);
}

.form-group textarea {
  min-height: 150px;
  max-height: 400px;
  resize: vertical;
  line-height: 1.6;
}

.form-group input:hover:not(:focus),
.form-group textarea:hover:not(:focus) {
  border-color: var(--color-sage);
}

.form-group input:disabled,
.form-group textarea:disabled {
  background-color: #f0f0f0;
  cursor: not-allowed;
  opacity: 0.6;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--color-gray);
  opacity: 0.5;
}

.form-group input:invalid:not(:placeholder-shown),
.form-group textarea:invalid:not(:placeholder-shown) {
  border-color: var(--color-rose);
}

.form-group input:valid:not(:placeholder-shown):not([type="email"]):not([type="tel"]),
.form-group textarea:valid:not(:placeholder-shown) {
  border-color: var(--color-sage);
}

.form-group input[type="email"]:valid:not(:placeholder-shown),
.form-group input[type="tel"]:valid:not(:placeholder-shown) {
  border-color: var(--color-sage);
}

.checkbox-wrapper {
  display: flex;
  align-items: start;
  gap: var(--space-xs);
  margin-bottom: var(--space-md);
}

.checkbox-wrapper input[type="checkbox"] {
  margin-top: 4px;
  width: auto;
  min-width: 18px;
  min-height: 18px;
  cursor: pointer;
  accent-color: var(--color-sage);
}

.checkbox-wrapper label {
  font-size: 0.875rem;
  margin: 0;
  cursor: pointer;
  user-select: none;
}

.form-wrapper .btn {
  width: 100%;
  max-width: 100%;
  margin-top: var(--space-md);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  padding: 1rem 2rem;
  min-height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  gap: var(--space-xs);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all var(--transition-fast);
  position: relative;
  overflow: hidden;
}

.form-wrapper .btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.form-wrapper .btn:active:not(:disabled) {
  transform: translateY(0);
  box-shadow: var(--shadow-sm);
}

.form-wrapper .btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  pointer-events: none;
}

.form-wrapper .btn-primary {
  background: linear-gradient(135deg, var(--color-rose) 0%, #c48f8a 100%);
  border: none;
}

.form-wrapper .btn-primary:hover:not(:disabled) {
  background: linear-gradient(135deg, #c48f8a 0%, var(--color-rose) 100%);
}

.form-wrapper button[type="submit"] {
  width: 100%;
  max-width: 100%;
  margin-top: var(--space-md);
  box-sizing: border-box;
}

.form-wrapper .btn.loading {
  pointer-events: none;
  opacity: 0.7;
}

.form-wrapper .btn.loading::after {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  border: 2px solid var(--color-white);
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  margin-left: 10px;
}

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

.form-wrapper .btn i {
  font-size: 1.125rem;
  transition: transform var(--transition-fast);
}

.form-wrapper .btn:hover:not(:disabled) i {
  transform: translateX(4px);
}

.form-message {
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-md);
  font-size: 0.9375rem;
  font-weight: 500;
  display: none;
  animation: slideDown 0.3s ease;
}

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

.form-message.show {
  display: block;
}

.form-message.success {
  background-color: rgba(168, 193, 165, 0.2);
  border: 2px solid var(--color-sage);
  color: var(--color-dark-sage);
}

.form-message.error {
  background-color: rgba(216, 163, 157, 0.2);
  border: 2px solid var(--color-rose);
  color: #b8766f;
}

.form-message i {
  margin-right: var(--space-xs);
}

.form-required {
  color: var(--color-rose);
  font-weight: 600;
  margin-left: 2px;
}

.footer {
  background-color: var(--color-dark-sage);
  color: var(--color-white);
  padding: var(--space-md) var(--space-md);
  text-align: center;
  font-size: 0.875rem;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.footer-links {
  display: flex;
  gap: var(--space-md);
  list-style: none;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--color-white);
  font-size: 0.875rem;
}

.footer-links a:hover {
  color: var(--color-gold);
}

.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  z-index: 9999;
  justify-content: center;
  align-items: center;
  padding: var(--space-md);
  animation: fadeIn 0.3s ease;
}

.modal.active {
  display: flex;
}

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

.modal-content {
  background: var(--color-white);
  padding: var(--space-lg);
  border-radius: var(--radius-lg);
  max-width: 600px;
  width: 100%;
  box-shadow: var(--shadow-lg);
  animation: slideInUp 0.4s ease;
  max-height: 90vh;
  overflow-y: auto;
}

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

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
}

.modal-header h3 {
  margin: 0;
  color: var(--color-dark-sage);
  flex: 1;
  padding-right: var(--space-xs);
}

.modal-close {
  background: transparent;
  font-size: 2rem;
  font-weight: 300;
  line-height: 1;
  color: var(--color-gray);
  cursor: pointer;
  padding: 0;
  min-width: 44px;
  min-height: 44px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  position: relative;
}

.modal-close:hover {
  color: var(--color-rose);
  background-color: rgba(216, 163, 157, 0.1);
  border-color: var(--color-rose);
  transform: rotate(90deg);
}

.modal-close:active {
  background-color: rgba(216, 163, 157, 0.2);
  transform: rotate(90deg) scale(0.95);
}

.modal-close:focus {
  outline: 2px solid var(--color-rose);
  outline-offset: 2px;
}

.modal-close:focus:not(:focus-visible) {
  outline: none;
}

.modal-body {
  color: var(--color-gray);
  line-height: 1.6;
}

.modal-actions {
  margin-top: var(--space-md);
  display: flex;
  gap: var(--space-sm);
  justify-content: flex-end;
}

.error-page {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-lg);
}

.error-content h1 {
  font-size: 6rem;
  color: var(--color-rose);
  margin-bottom: var(--space-md);
}

.error-content h2 {
  font-size: 2rem;
  margin-bottom: var(--space-md);
}

.error-content p {
  font-size: 1.125rem;
  margin-bottom: var(--space-lg);
}

.thank-you-page {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-lg);
}

.thank-you-content {
  max-width: 600px;
}

.thank-you-icon {
  font-size: 4rem;
  color: var(--color-sage);
  margin-bottom: var(--space-md);
  animation: scaleIn 0.6s ease;
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.thank-you-content h1 {
  font-size: 2.5rem;
  margin-bottom: var(--space-md);
}

.policy-page {
  padding: var(--space-xl) var(--space-md);
}

.policy-container {
  max-width: 900px;
  margin: 0 auto;
  background: var(--color-white);
  padding: var(--space-lg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.policy-container h1 {
  margin-bottom: var(--space-lg);
  font-size: 2.25rem;
}

.policy-container h2 {
  margin-top: var(--space-lg);
  margin-bottom: var(--space-sm);
}

.policy-container h3 {
  margin-top: var(--space-md);
  margin-bottom: var(--space-xs);
}

.policy-container p {
  margin-bottom: var(--space-sm);
}

.policy-container ul {
  margin-left: var(--space-md);
  margin-bottom: var(--space-sm);
}

.policy-container li {
  margin-bottom: var(--space-xs);
}

.cta-buttons {
  text-align: center;
  margin-top: var(--space-lg);
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  flex-wrap: wrap;
  align-items: center;
}

.cta-buttons .btn {
  max-width: 180px;
}

/* Large tablets and small desktops */
@media (max-width: 1200px) {
  .header-container,
  .container {
    padding-left: var(--space-md);
    padding-right: var(--space-md);
  }
  
  .hero-container {
    gap: var(--space-lg);
  }
  
  .hero-content h1 {
    font-size: 2.25rem;
  }
  
  .cards-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-md);
  }
  
  .products-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

/* Tablets */
@media (max-width: 1024px) {
  .hero-container,
  .feature-section,
  .contact-section {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }
  
  .hero {
    padding: var(--space-lg) var(--space-md);
  }
  
  .hero-content h1 {
    font-size: 2rem;
  }
  
  .hero-content p {
    font-size: 1.0625rem;
  }
  
  .section {
    padding: var(--space-lg) var(--space-md);
  }
  
  .section-header h2 {
    font-size: 1.875rem;
  }
  
  .cards-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-md);
  }
  
  .feature-section {
    gap: var(--space-lg);
  }
  
  .feature-section .feature-image {
    order: -1;
  }
  
  .feature-image img {
    max-height: 400px;
    object-fit: cover;
  }
  
  .product-image {
    height: 220px;
  }
  
  .contact-info {
    padding: var(--space-md);
  }
  
  .form-wrapper {
    padding: var(--space-md);
  }
  
  .policy-container {
    padding: var(--space-md);
  }
}

/* Mobile devices */
@media (max-width: 768px) {
  body {
    font-size: 0.875rem;
  }
  
  .header {
    padding: var(--space-xs) 0;
  }
  
  .header-container {
    padding: 0 var(--space-sm);
  }
  
  .logo {
    font-size: 1.375rem;
  }
  
  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 320px;
    height: 100vh;
    background: linear-gradient(180deg, var(--color-sage) 0%, var(--color-dark-sage) 100%);
    flex-direction: column;
    padding: var(--space-xl) var(--space-lg);
    padding-top: 80px;
    box-shadow: var(--shadow-lg);
    transition: right var(--transition-medium);
    gap: var(--space-sm);
    z-index: 999;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  
  .nav-menu.active {
    right: 0;
  }
  
  .nav-menu a {
    font-size: 1.0625rem;
    padding: var(--space-sm) var(--space-md);
    width: 100%;
    text-align: left;
    border-radius: var(--radius-md);
    display: block;
    position: relative;
  }
  
  .nav-menu a::after {
    display: none;
  }
  
  .nav-menu a:hover,
  .nav-menu a:active {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateX(8px);
  }
  
  .burger {
    display: flex;
  }
  
  .hero {
    padding: var(--space-lg) var(--space-sm);
  }
  
  .hero-content h1 {
    font-size: 1.75rem;
    margin-bottom: var(--space-sm);
  }
  
  .hero-content p {
    font-size: 1rem;
    margin-bottom: var(--space-md);
  }
  
  .hero-image img {
    transform: rotate(0deg);
  }
  
  .section {
    padding: var(--space-lg) var(--space-sm);
  }
  
  h1 {
    font-size: 1.75rem;
  }
  
  h2 {
    font-size: 1.5rem;
  }
  
  h3 {
    font-size: 1.25rem;
  }
  
  h4 {
    font-size: 1.125rem;
  }
  
  .section-header {
    margin-bottom: var(--space-md);
  }
  
  .section-header h2 {
    font-size: 1.625rem;
  }
  
  .section-header p {
    font-size: 1rem;
  }
  
  .cards-grid,
  .products-grid {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }
  
  .card {
    padding: var(--space-md);
  }
  
  .card-icon {
    font-size: 2.25rem;
  }
  
  .feature-section {
    gap: var(--space-md);
  }
  
  .feature-image img {
    max-height: 300px;
    width: 100%;
    object-fit: cover;
  }
  
  .feature-list li {
    padding: var(--space-xs) var(--space-sm);
    font-size: 0.875rem;
  }
  
  .product-image {
    height: 200px;
  }
  
  .product-info {
    padding: var(--space-sm);
  }
  
  .product-info h3 {
    font-size: 1.25rem;
  }
  
  .product-price {
    font-size: 1.375rem;
  }
  
  .btn {
    padding: 0.625rem 1.5rem;
    font-size: 0.875rem;
  }
  
  .cta-buttons {
    flex-direction: column;
    gap: var(--space-sm);
  }
  
  .cta-buttons .btn {
    width: 100%;
    min-width: 0;
  }
  
  .btn-secondary {
    margin-top: 0;
  }
  
  .contact-info {
    padding: var(--space-md);
  }
  
  .contact-item {
    flex-direction: column;
    align-items: start;
    gap: var(--space-xs);
  }
  
  .map-container iframe {
    height: 250px;
  }
  
  .form-wrapper {
    padding: var(--space-md);
  }
  
  .form-group input,
  .form-group textarea {
    font-size: 1rem;
  }
  
  .form-wrapper .btn {
    padding: 0.875rem 1.5rem;
    font-size: 0.9375rem;
    min-height: 48px;
    letter-spacing: 0.3px;
  }
  
  .footer {
    padding: var(--space-md) var(--space-sm);
  }
  
  .footer-content {
    flex-direction: column;
    text-align: center;
    gap: var(--space-md);
  }
  
  .footer-links {
    justify-content: center;
    gap: var(--space-sm);
  }
  
  .modal {
    padding: var(--space-sm);
  }
  
  .modal-content {
    padding: var(--space-md);
    max-height: 85vh;
  }
  
  .modal-header h3 {
    font-size: 1.25rem;
    padding-right: var(--space-sm);
  }
  
  .modal-close {
    min-width: 40px;
    min-height: 40px;
    width: 40px;
    height: 40px;
    font-size: 1.75rem;
  }
  
  .modal-actions {
    flex-direction: column;
  }
  
  .modal-actions .btn {
    width: 100%;
  }
  
  .error-content h1 {
    font-size: 4.5rem;
  }
  
  .error-content h2 {
    font-size: 1.5rem;
  }
  
  .thank-you-icon {
    font-size: 3.5rem;
  }
  
  .thank-you-content h1 {
    font-size: 2rem;
  }
  
  .policy-page {
    padding: var(--space-lg) var(--space-sm);
  }
  
  .policy-container {
    padding: var(--space-md);
  }
  
  .policy-container h1 {
    font-size: 1.875rem;
  }
  
  .policy-container h2 {
    font-size: 1.5rem;
  }
  
  .policy-container h3 {
    font-size: 1.25rem;
  }
}

/* Small mobile devices */
@media (max-width: 480px) {
  :root {
    --space-xs: 0.375rem;
    --space-sm: 0.75rem;
    --space-md: 1rem;
    --space-lg: 1.75rem;
    --space-xl: 2.5rem;
  }
  
  html {
    font-size: 14px;
  }
  
  body {
    font-size: 0.875rem;
  }
  
  .logo {
    font-size: 1.25rem;
  }
  
  .nav-menu {
    max-width: 300px;
    padding: var(--space-md) var(--space-md);
    padding-top: 70px;
  }
  
  .hero {
    padding: var(--space-lg) var(--space-sm);
  }
  
  .hero-content h1 {
    font-size: 1.5rem;
    line-height: 1.2;
  }
  
  .hero-content p {
    font-size: 0.9375rem;
    line-height: 1.5;
  }
  
  .section {
    padding: var(--space-lg) var(--space-sm);
  }
  
  h1 {
    font-size: 1.5rem;
  }
  
  h2 {
    font-size: 1.375rem;
  }
  
  h3 {
    font-size: 1.125rem;
  }
  
  .section-header h2 {
    font-size: 1.5rem;
  }
  
  .section-header p {
    font-size: 0.9375rem;
  }
  
  .card {
    padding: var(--space-sm);
  }
  
  .card-icon {
    font-size: 2rem;
  }
  
  .card h3 {
    font-size: 1.125rem;
  }
  
  .card p {
    font-size: 0.875rem;
  }
  
  .feature-list li {
    padding: var(--space-xs) var(--space-sm);
    font-size: 0.8125rem;
  }
  
  .feature-list li i {
    font-size: 1.125rem;
  }
  
  .product-image {
    height: 180px;
  }
  
  .product-info {
    padding: var(--space-sm);
  }
  
  .product-info h3 {
    font-size: 1.125rem;
  }
  
  .product-price {
    font-size: 1.25rem;
  }
  
  .product-info p {
    font-size: 0.8125rem;
  }
  
  .btn {
    padding: 0.5rem 1.25rem;
    font-size: 0.8125rem;
  }
  
  .contact-info,
  .form-wrapper {
    padding: var(--space-sm);
  }
  
  .map-container iframe {
    height: 220px;
  }
  
  .form-group label {
    font-size: 0.875rem;
  }
  
  .form-group input,
  .form-group textarea {
    padding: 0.625rem;
    font-size: 0.9375rem;
  }
  
  .form-group textarea {
    min-height: 120px;
  }
  
  .checkbox-wrapper label {
    font-size: 0.8125rem;
  }
  
  .form-wrapper .btn {
    padding: 0.75rem 1.25rem;
    font-size: 0.875rem;
    min-height: 46px;
    letter-spacing: 0.2px;
  }
  
  .form-message {
    padding: var(--space-xs) var(--space-sm);
    font-size: 0.875rem;
  }
  
  .modal-content {
    padding: var(--space-sm);
  }
  
  .modal-header h3 {
    font-size: 1.125rem;
    padding-right: var(--space-sm);
  }
  
  .modal-close {
    min-width: 36px;
    min-height: 36px;
    width: 36px;
    height: 36px;
    font-size: 1.5rem;
  }
  
  .modal-body {
    font-size: 0.875rem;
  }
  
  .error-content h1 {
    font-size: 3.5rem;
  }
  
  .error-content h2 {
    font-size: 1.375rem;
  }
  
  .error-content p {
    font-size: 1rem;
  }
  
  .thank-you-icon {
    font-size: 3rem;
  }
  
  .thank-you-content h1 {
    font-size: 1.75rem;
  }
  
  .policy-container {
    padding: var(--space-sm);
  }
  
  .policy-container h1 {
    font-size: 1.625rem;
    margin-bottom: var(--space-md);
  }
  
  .policy-container h2 {
    font-size: 1.375rem;
  }
  
  .policy-container h3 {
    font-size: 1.125rem;
  }
  
  .policy-container p,
  .policy-container li {
    font-size: 0.875rem;
  }
}

/* Extra small devices */
@media (max-width: 360px) {
  html {
    font-size: 13px;
  }
  
  .header-container {
    padding: 0 var(--space-xs);
  }
  
  .logo {
    font-size: 1.125rem;
  }
  
  .burger span {
    width: 22px;
    height: 2.5px;
  }
  
  .burger.active span:nth-child(1) {
            transform: rotate(45deg) translate(4px, 4px);
  }
  
  .burger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
  }
  
  .nav-menu {
    max-width: 280px;
    padding-top: 70px;
  }
  
  .hero-content h1 {
    font-size: 1.375rem;
  }
  
  .section-header h2 {
    font-size: 1.375rem;
  }
  
  .card-icon {
    font-size: 1.75rem;
  }
  
  .product-image {
    height: 160px;
  }
  
  .error-content h1 {
    font-size: 3rem;
  }
  
  .thank-you-icon {
    font-size: 2.5rem;
  }
}

/* Very small devices */
@media (max-width: 320px) {
  html {
    font-size: 12px;
  }
  
  .header-container {
    padding: 0 0.5rem;
  }
  
  .logo {
    font-size: 1rem;
  }
  
  .nav-menu {
    max-width: 260px;
    padding: var(--space-sm) var(--space-sm);
    padding-top: 70px;
  }
  
  .hero {
    padding: var(--space-md) 0.5rem;
  }
  
  .section {
    padding: var(--space-md) 0.5rem;
  }
  
  .error-content h1 {
    font-size: 2.5rem;
  }
}

/* Landscape orientation for mobile devices */
@media (max-height: 600px) and (orientation: landscape) {
  .hero {
    padding: var(--space-md) var(--space-sm);
  }
  
  .hero-content h1 {
    font-size: 1.5rem;
    margin-bottom: var(--space-xs);
  }
  
  .hero-content p {
    font-size: 0.875rem;
    margin-bottom: var(--space-sm);
  }
  
  .section {
    padding: var(--space-md) var(--space-sm);
  }
  
  .nav-menu {
    height: 100vh;
    padding: var(--space-md);
    padding-top: 60px;
  }
  
  .modal-content {
    max-height: 80vh;
  }
}

/* Print styles */
@media print {
  .header,
  .burger,
  .nav-menu,
  .footer,
  .modal,
  .btn {
    display: none !important;
  }
  
  body {
    background: white;
    color: black;
  }
  
  .section {
    page-break-inside: avoid;
  }
  
  a {
    text-decoration: underline;
    color: black;
  }
}

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


