@import url('https://fonts.googleapis.com/css2?family=Caveat:wght@400;600;700&family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
  --color-cream: #FEF3E2;
  --color-yellow: #FAB12F;
  --color-orange: #FA812F;
  --color-red: #DD0303;

  --font-handwritten: 'Caveat', cursive;
  --font-main: 'Outfit', sans-serif;

  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;

  --radius-sm: 0.25rem;
  --radius-md: 0.5rem;
  --radius-lg: 1rem;

  --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-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  font-size: 0.9rem;
  line-height: 1.5;
  color: #2a2a2a;
  background: var(--color-cream);
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-fast);
}

button {
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--space-sm) 0;
}

header {
  position: relative;
  background: var(--color-cream);
  padding: var(--space-sm) 0;
  border-bottom: 3px solid var(--color-red);
  transform: rotate(-0.5deg);
  margin-bottom: var(--space-md);
  box-shadow: var(--shadow-sm);
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  transform: rotate(0.5deg);
}

.logo {
  display: block;
}

.logo img {
  width: 4rem;
  position: relative;
  z-index: 20;
}

.logo img {
  display: inline-block;
  transform: rotate(-5deg);
  transition: transform var(--transition-normal);
}

.logo:hover img {
  transform: rotate(0);
}

/* Responsive Styles */
@media (max-width: 992px) {
  .logo img {
    width: 3rem;
    position: relative;
    z-index: 20;
  }
}

@media (max-width: 768px) {
  .logo img {
    width: 3rem;
    position: relative;
    z-index: 20;
  }
}

@media (max-width: 576px) {
  .logo img {
    width: 2rem;
    position: relative;
    z-index: 20;
  }
}

@media (max-width: 400px) {
  .logo img {
    width: 2rem;
    position: relative;
    z-index: 20;
  }
}

nav {
  display: flex;
  gap: var(--space-md);
  align-items: center;
}

nav a {
  font-size: 0.85rem;
  font-weight: 500;
  color: #2a2a2a;
  padding: var(--space-xs) var(--space-sm);
  border-bottom: 2px solid transparent;
  transition: var(--transition-fast);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

nav a:hover,
nav a.active {
  color: var(--color-red);
  border-bottom-color: var(--color-orange);
}

.burger {
  display: none;
  flex-direction: column;
  gap: 0.3rem;
  cursor: pointer;
  padding: var(--space-xs);
  z-index: 1001;
}

.burger span {
  display: block;
  width: 1.5rem;
  height: 0.15rem;
  background: var(--color-red);
  transition: var(--transition-normal);
  transform-origin: center;
}

.burger.active span:nth-child(1) {
  transform: rotate(45deg) translateY(0.5rem);
}

.burger.active span:nth-child(2) {
  opacity: 0;
}

.burger.active span:nth-child(3) {
  transform: rotate(-45deg) translateY(-0.5rem);
}

.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: var(--color-cream);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: var(--space-md);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal);
}

.mobile-menu.active {
  opacity: 1;
  pointer-events: all;
}

.mobile-menu a {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--color-red);
  padding: var(--space-sm);
}

.hero {
  position: relative;
  padding: var(--space-lg) 0;
  text-align: center;
  background: linear-gradient(135deg, var(--color-cream) 0%, rgba(250, 177, 47, 0.1) 100%);
  margin-bottom: var(--space-lg);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 300px;
  height: 300px;
  background: var(--color-yellow);
  opacity: 0.1;
  border-radius: 50%;
  transform: rotate(15deg);
}

.hero h1 {
  font-family: var(--font-handwritten);
  font-size: 2.5rem;
  color: var(--color-red);
  margin-bottom: var(--space-sm);
  text-shadow: 3px 3px 0 var(--color-yellow);
  transform: rotate(-1deg);
}

.hero p {
  font-size: 1rem;
  color: #555;
  max-width: 600px;
  margin: 0 auto var(--space-md);
  line-height: 1.7;
}

.btn {
  display: inline-block;
  padding: 0.7rem 1.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: var(--color-red);
  color: white;
  border-radius: var(--radius-sm);
  transition: var(--transition-normal);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: var(--color-orange);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width var(--transition-normal), height var(--transition-normal);
}

.btn:hover::before {
  width: 300px;
  height: 300px;
}

.btn span {
  position: relative;
  z-index: 1;
}

.btn:hover {
  transform: translateY(-2px) rotate(-1deg);
  box-shadow: var(--shadow-md);
}

.section {
  padding: var(--space-lg) 0;
  position: relative;
}

.section-title {
  font-family: var(--font-handwritten);
  font-size: 2rem;
  color: var(--color-red);
  margin-bottom: var(--space-md);
  text-align: center;
  transform: rotate(-0.5deg);
  text-shadow: 2px 2px 0 var(--color-yellow);
}

.frame-wrapper {
  position: relative;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-md);
  margin-bottom: var(--space-md);
}

.frame {
  position: relative;
  background: white;
  padding: var(--space-md);
  border: 8px solid var(--color-yellow);
  box-shadow: var(--shadow-md);
  transform: rotate(var(--rotate, 0deg));
  transition: var(--transition-normal);
}

.frame:nth-child(odd) {
  --rotate: 1deg;
}

.frame:nth-child(even) {
  --rotate: -1deg;
}

.frame:hover {
  transform: rotate(0deg) scale(1.02);
  box-shadow: var(--shadow-lg);
  z-index: 10;
}

.frame h3 {
  font-family: var(--font-handwritten);
  font-size: 1.4rem;
  color: var(--color-orange);
  margin-bottom: var(--space-xs);
}

.frame p {
  font-size: 0.85rem;
  color: #555;
  line-height: 1.6;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-lg);
  margin-top: var(--space-md);
}

.product-card {
  background: white;
  border: 6px solid var(--color-yellow);
  padding: var(--space-md);
  text-align: center;
  transform: rotate(var(--rotate, 0deg));
  transition: var(--transition-normal);
  box-shadow: var(--shadow-sm);
}

.product-card:nth-child(1) {
  --rotate: -1deg;
}

.product-card:nth-child(2) {
  --rotate: 0.5deg;
}

.product-card:nth-child(3) {
  --rotate: -0.5deg;
}

.product-card:hover {
  transform: rotate(0deg) translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.product-card h3 {
  font-family: var(--font-handwritten);
  font-size: 1.5rem;
  color: var(--color-red);
  margin-bottom: var(--space-sm);
}

.product-card .price {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--color-orange);
  margin: var(--space-sm) 0;
}

.product-card p {
  font-size: 0.85rem;
  color: #666;
  margin-bottom: var(--space-md);
  line-height: 1.6;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-md);
  margin-top: var(--space-md);
}

.portfolio-item {
  position: relative;
  background: white;
  border: 8px solid var(--color-orange);
  padding: var(--space-sm);
  overflow: hidden;
  transform: rotate(var(--rotate, 0deg));
  transition: var(--transition-normal);
}

.portfolio-item:nth-child(3n+1) {
  --rotate: 1deg;
}

.portfolio-item:nth-child(3n+2) {
  --rotate: -0.5deg;
}

.portfolio-item:nth-child(3n) {
  --rotate: 0.5deg;
}

.portfolio-item:hover {
  transform: rotate(0deg) scale(1.05);
  z-index: 10;
}

.portfolio-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  margin-bottom: var(--space-sm);
}

.portfolio-item h4 {
  font-family: var(--font-handwritten);
  font-size: 1.2rem;
  color: var(--color-red);
  margin-bottom: var(--space-xs);
}

.contact-section {
  background: white;
  padding: var(--space-lg);
  border: 8px solid var(--color-yellow);
  box-shadow: var(--shadow-lg);
  transform: rotate(-0.5deg);
  margin: var(--space-lg) auto;
  max-width: 800px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-red);
  font-family: var(--font-handwritten);
  font-size: 1.1rem;
}

.form-group input,
.form-group textarea {
  padding: 0.7rem;
  font-size: 0.85rem;
  font-family: var(--font-main);
  border: 3px solid var(--color-yellow);
  border-radius: var(--radius-sm);
  background: var(--color-cream);
  transition: var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-orange);
  background: white;
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: var(--space-xs);
  font-size: 0.8rem;
}

.checkbox-group input[type="checkbox"] {
  margin-top: 0.2rem;
  cursor: pointer;
}

.contact-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-md);
  margin: var(--space-lg) 0;
}

.info-card {
  background: var(--color-cream);
  padding: var(--space-md);
  border-left: 4px solid var(--color-red);
  box-shadow: var(--shadow-sm);
  transform: rotate(var(--rotate, 0deg));
}

.info-card:nth-child(odd) {
  --rotate: 0.5deg;
}

.info-card:nth-child(even) {
  --rotate: -0.5deg;
}

.info-card i {
  font-size: 1.5rem;
  color: var(--color-orange);
  margin-bottom: var(--space-xs);
}

.info-card h4 {
  font-family: var(--font-handwritten);
  font-size: 1.2rem;
  color: var(--color-red);
  margin-bottom: var(--space-xs);
}

.info-card p {
  font-size: 0.85rem;
  color: #555;
}

.map-container {
  margin-top: var(--space-lg);
  border: 8px solid var(--color-orange);
  transform: rotate(0.5deg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.map-container iframe {
  width: 100%;
  height: 350px;
  border: none;
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-md);
  margin-top: var(--space-md);
}

.testimonial {
  background: white;
  padding: var(--space-md);
  border: 6px solid var(--color-yellow);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transform: rotate(var(--rotate, 0deg));
  transition: var(--transition-normal);
}

.testimonial:nth-child(3n+1) {
  --rotate: -1deg;
}

.testimonial:nth-child(3n+2) {
  --rotate: 0.5deg;
}

.testimonial:nth-child(3n) {
  --rotate: -0.5deg;
}

.testimonial:hover {
  transform: rotate(0deg);
}

.testimonial-text {
  font-size: 0.85rem;
  font-style: italic;
  color: #555;
  margin-bottom: var(--space-sm);
  line-height: 1.6;
}

.testimonial-author {
  font-family: var(--font-handwritten);
  font-size: 1.1rem;
  color: var(--color-red);
  font-weight: 600;
}

.thankyou-container {
  text-align: center;
  padding: var(--space-xl) var(--space-md);
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.thankyou-container h1 {
  font-family: var(--font-handwritten);
  font-size: 3rem;
  color: var(--color-red);
  margin-bottom: var(--space-md);
  text-shadow: 3px 3px 0 var(--color-yellow);
  transform: rotate(-1deg);
}

.thankyou-container p {
  font-size: 1.1rem;
  color: #555;
  max-width: 600px;
  margin-bottom: var(--space-lg);
  line-height: 1.7;
}

.error-container {
  text-align: center;
  padding: var(--space-xl) var(--space-md);
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.error-container h1 {
  font-family: var(--font-handwritten);
  font-size: 4rem;
  color: var(--color-red);
  margin-bottom: var(--space-sm);
  text-shadow: 4px 4px 0 var(--color-yellow);
}

.error-container h2 {
  font-family: var(--font-handwritten);
  font-size: 2rem;
  color: var(--color-orange);
  margin-bottom: var(--space-md);
}

.error-container p {
  font-size: 1rem;
  color: #555;
  max-width: 500px;
  margin-bottom: var(--space-lg);
}

footer {
  background: white;
  border-top: 4px solid var(--color-red);
  padding: var(--space-md) 0 var(--space-sm);
  margin-top: var(--space-xl);
  transform: rotate(0.3deg);
}

.footer-content {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  align-items: center;
  text-align: center;
}

.footer-menu {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-sm);
}

.footer-menu a {
  font-size: 0.75rem;
  color: #666;
  padding: 0.3rem 0.6rem;
  border-bottom: 1px solid transparent;
  transition: var(--transition-fast);
}

.footer-menu a:hover {
  color: var(--color-red);
  border-bottom-color: var(--color-orange);
}

.copyright {
  font-size: 0.75rem;
  color: #999;
  margin-top: var(--space-xs);
}

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: white;
  border-top: 4px solid var(--color-red);
  padding: var(--space-md);
  box-shadow: var(--shadow-lg);
  z-index: 2000;
  display: none;
  animation: slideUp 0.4s ease;
}

.cookie-banner.show {
  display: block;
}

@keyframes slideUp {
  from {
    transform: translateY(100%);
  }

  to {
    transform: translateY(0);
  }
}

.cookie-content {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  max-width: 1200px;
  margin: 0 auto;
  align-items: center;
}

.cookie-content p {
  font-size: 0.85rem;
  color: #555;
  text-align: center;
}

.cookie-buttons {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
  justify-content: center;
}

.cookie-buttons button {
  padding: 0.6rem 1.2rem;
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: var(--transition-fast);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.cookie-accept {
  background: var(--color-red);
  color: white;
}

.cookie-accept:hover {
  background: var(--color-orange);
  transform: translateY(-2px);
}

.cookie-decline {
  background: var(--color-cream);
  color: var(--color-red);
  border: 2px solid var(--color-red);
}

.cookie-decline:hover {
  background: var(--color-red);
  color: white;
}

.legal-content {
  max-width: 900px;
  margin: 0 auto;
  padding: var(--space-lg) var(--space-md);
}

.legal-content h1 {
  font-family: var(--font-handwritten);
  font-size: 2.5rem;
  color: var(--color-red);
  margin-bottom: var(--space-lg);
  text-shadow: 2px 2px 0 var(--color-yellow);
}

.legal-content h2 {
  font-family: var(--font-handwritten);
  font-size: 1.8rem;
  color: var(--color-orange);
  margin-top: var(--space-lg);
  margin-bottom: var(--space-sm);
}

.legal-content h3 {
  font-size: 1.2rem;
  color: var(--color-red);
  margin-top: var(--space-md);
  margin-bottom: var(--space-xs);
}

.legal-content p {
  font-size: 0.9rem;
  color: #555;
  line-height: 1.7;
  margin-bottom: var(--space-sm);
}

.legal-content ul {
  margin-left: var(--space-md);
  margin-bottom: var(--space-sm);
}

.legal-content li {
  font-size: 0.9rem;
  color: #555;
  line-height: 1.7;
  margin-bottom: 0.5rem;
}

@media (max-width: 768px) {
  nav {
    display: none;
  }

  .burger {
    display: flex;
  }

  header {
    transform: rotate(-0.3deg);
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 0.9rem;
  }

  .section-title {
    font-size: 1.6rem;
  }

  .frame-wrapper {
    grid-template-columns: 1fr;
  }

  .product-grid,
  .portfolio-grid,
  .testimonial-grid {
    grid-template-columns: 1fr;
  }

  .contact-info {
    grid-template-columns: 1fr;
  }

  .cookie-content {
    text-align: center;
  }

  .thankyou-container h1 {
    font-size: 2.2rem;
  }

  .error-container h1 {
    font-size: 3rem;
  }
}

@media (max-width: 480px) {
  body {
    font-size: 0.85rem;
  }

  .container {
    width: 95%;
  }

  .hero h1 {
    font-size: 1.7rem;
  }

  .section-title {
    font-size: 1.4rem;
  }

  .btn {
    padding: 0.6rem 1.2rem;
    font-size: 0.8rem;
  }

  .frame,
  .product-card,
  .portfolio-item,
  .testimonial {
    transform: rotate(0deg) !important;
  }

  .contact-section {
    padding: var(--space-md);
    transform: rotate(0deg);
  }

  .map-container {
    transform: rotate(0deg);
  }

  .map-container iframe {
    height: 250px;
  }
}

@media (max-width: 320px) {
  .hero h1 {
    font-size: 1.5rem;
  }

  .section-title {
    font-size: 1.2rem;
  }

  .product-card h3,
  .frame h3 {
    font-size: 1.2rem;
  }
}