:root {
  --primary: #313647;
  --secondary: #435663;
  --accent: #A3B087;
  --light: #FFF8D4;

  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;

  --font-primary: 'Playfair Display', serif;
  --font-secondary: 'Source Sans Pro', sans-serif;

  --transition: 0.3s ease;
  --radius-sm: 0.25rem;
  --radius-md: 0.5rem;

  --shadow-sm: 0 2px 8px rgba(49, 54, 71, 0.1);
  --shadow-md: 0 4px 16px rgba(49, 54, 71, 0.15);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-secondary);
  background: linear-gradient(135deg, var(--light) 0%, #f5eed8 100%);
  color: var(--primary);
  line-height: 1.6;
  font-size: 0.9rem;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    repeating-linear-gradient(90deg, transparent, transparent 2px, rgba(163, 176, 135, 0.03) 2px, rgba(163, 176, 135, 0.03) 4px),
    repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(163, 176, 135, 0.03) 2px, rgba(163, 176, 135, 0.03) 4px);
  pointer-events: none;
  z-index: 1;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-sm);
  position: relative;
  z-index: 2;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-primary);
  line-height: 1.2;
  margin-bottom: var(--space-sm);
  font-weight: 600;
}

h1 {
  font-size: 2rem;
  color: var(--primary);
}

h2 {
  font-size: 1.6rem;
  color: var(--secondary);
}

h3 {
  font-size: 1.3rem;
}

p {
  margin-bottom: var(--space-sm);
  font-size: 0.9rem;
}

a {
  color: var(--secondary);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--accent);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

header {
  position: relative;
  background: rgba(255, 248, 212, 0.95);
  backdrop-filter: blur(10px);
  padding: var(--space-sm) 0;
  box-shadow: var(--shadow-sm);
  z-index: 100;
}

header.scrolled {
  box-shadow: var(--shadow-md);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-sm);
}

.logo {
  display: flex;
  align-items: center;
}

.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 ul {
  display: flex;
  list-style: none;
  gap: var(--space-md);
  align-items: center;
}

nav a {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--secondary);
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-sm);
  transition: var(--transition);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

nav a:hover,
nav a.active {
  background: var(--accent);
  color: var(--light);
}

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 10px;
  z-index: 1001;
  position: relative;
}

.burger span {
  display: block;
  width: 26px;
  height: 3px;
  background: var(--primary);
  border-radius: 3px;
  transition: all 0.3s ease;
}

.burger.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
  background: var(--accent);
}

.burger.active span:nth-child(2) {
  opacity: 0;
  transform: translateX(-10px);
}

.burger.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
  background: var(--accent);
}


.hero {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-xl) var(--space-sm);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(163, 176, 135, 0.1) 0%, transparent 70%);
  animation: pulse 15s ease-in-out infinite;
}

@keyframes pulse {

  0%,
  100% {
    transform: scale(1) rotate(0deg);
  }

  50% {
    transform: scale(1.1) rotate(5deg);
  }
}

.hero-content {
  max-width: 700px;
  position: relative;
  z-index: 2;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: var(--space-md);
  color: var(--primary);
}

.hero p {
  font-size: 1rem;
  color: var(--secondary);
  margin-bottom: var(--space-lg);
}

.btn {
  display: inline-block;
  padding: 0.7rem 1.8rem;
  background: var(--accent);
  color: var(--light);
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: var(--shadow-sm);
}

.btn:hover {
  background: var(--secondary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--accent);
  color: var(--accent);
}

.btn-outline:hover {
  background: var(--accent);
  color: var(--light);
}

section {
  padding: var(--space-xl) var(--space-sm);
  position: relative;
}

.section-title {
  text-align: center;
  margin-bottom: var(--space-lg);
}

.section-title h2 {
  position: relative;
  display: inline-block;
  padding-bottom: var(--space-sm);
}

.section-title h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--accent);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-md);
  margin-top: var(--space-lg);
}

.card {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  padding: var(--space-md);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid rgba(163, 176, 135, 0.2);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.card i {
  font-size: 2rem;
  color: var(--accent);
  margin-bottom: var(--space-sm);
}

.card h3 {
  color: var(--primary);
  margin-bottom: var(--space-sm);
  font-size: 1.1rem;
}

.card p {
  color: var(--secondary);
  font-size: 0.85rem;
  line-height: 1.6;
}

.product-card {
  background: rgba(255, 255, 255, 0.9);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.product-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-5px);
}

.product-image {
  width: 100%;
  height: 250px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--secondary) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--light);
  font-size: 3rem;
}

.product-content {
  padding: var(--space-md);
}

.product-content h3 {
  font-size: 1.2rem;
  margin-bottom: var(--space-xs);
}

.product-price {
  font-size: 1.3rem;
  color: var(--accent);
  font-weight: 700;
  margin: var(--space-sm) 0;
}

.contact-section {
  background: rgba(255, 255, 255, 0.6);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  box-shadow: var(--shadow-md);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  margin-top: var(--space-lg);
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
}

.contact-item i {
  color: var(--accent);
  font-size: 1.3rem;
  margin-top: 0.2rem;
}

.contact-item-content h4 {
  font-size: 0.9rem;
  color: var(--primary);
  margin-bottom: 0.3rem;
}

.contact-item-content p,
.contact-item-content a {
  font-size: 0.85rem;
  color: var(--secondary);
}

form {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 0.4rem;
}

.form-group input,
.form-group textarea {
  padding: 0.7rem;
  border: 1px solid rgba(67, 86, 99, 0.3);
  border-radius: var(--radius-sm);
  font-family: var(--font-secondary);
  font-size: 0.85rem;
  transition: var(--transition);
  background: rgba(255, 255, 255, 0.8);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(163, 176, 135, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: var(--space-xs);
  margin: var(--space-sm) 0;
}

.checkbox-group input[type="checkbox"] {
  margin-top: 0.3rem;
  cursor: pointer;
}

.checkbox-group label {
  font-size: 0.8rem;
  cursor: pointer;
  color: var(--secondary);
}

.map-container {
  margin-top: var(--space-lg);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.map-container iframe {
  width: 100%;
  height: 350px;
  border: none;
}

footer {
  background: rgba(49, 54, 71, 0.95);
  color: var(--light);
  padding: var(--space-lg) var(--space-sm);
  margin-top: var(--space-xl);
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-lg);
}

.footer-section h4 {
  color: var(--accent);
  margin-bottom: var(--space-sm);
  font-size: 0.95rem;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: var(--space-xs);
}

.footer-section a {
  color: var(--light);
  font-size: 0.8rem;
  opacity: 0.8;
  transition: var(--transition);
}

.footer-section a:hover {
  opacity: 1;
  color: var(--accent);
}

.footer-bottom {
  text-align: center;
  margin-top: var(--space-lg);
  padding-top: var(--space-md);
  border-top: 1px solid rgba(163, 176, 135, 0.3);
  font-size: 0.8rem;
  opacity: 0.7;
}

.privacy-popup {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(49, 54, 71, 0.98);
  color: var(--light);
  padding: var(--space-md);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
  z-index: 1000;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.privacy-popup.show {
  transform: translateY(0);
}

.privacy-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.privacy-content p {
  flex: 1;
  font-size: 0.8rem;
  margin: 0;
}

.privacy-buttons {
  display: flex;
  gap: var(--space-sm);
}

.error-container {
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-lg);
}

.error-container h1 {
  font-size: 5rem;
  color: var(--accent);
  margin-bottom: var(--space-sm);
}

.error-container h2 {
  margin-bottom: var(--space-md);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-md);
}

.portfolio-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  height: 300px;
  background: linear-gradient(135deg, var(--secondary) 0%, var(--accent) 100%);
  cursor: pointer;
  transition: var(--transition);
}

.portfolio-item:hover {
  transform: scale(1.03);
  box-shadow: var(--shadow-md);
}

.portfolio-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(49, 54, 71, 0.9);
  color: var(--light);
  padding: var(--space-md);
  transform: translateY(100%);
  transition: var(--transition);
}

.portfolio-item:hover .portfolio-overlay {
  transform: translateY(0);
}

.portfolio-overlay h3 {
  color: var(--accent);
  margin-bottom: var(--space-xs);
  font-size: 1.1rem;
}

.portfolio-overlay p {
  font-size: 0.8rem;
  margin: 0;
}

.testimonial {
  background: rgba(255, 255, 255, 0.9);
  padding: var(--space-md);
  border-radius: var(--radius-md);
  border-left: 4px solid var(--accent);
  box-shadow: var(--shadow-sm);
  margin-bottom: var(--space-md);
}

.testimonial-text {
  font-style: italic;
  color: var(--secondary);
  margin-bottom: var(--space-sm);
  font-size: 0.9rem;
}

.testimonial-author {
  font-weight: 600;
  color: var(--primary);
  font-size: 0.85rem;
}

.thankyou-container {
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-xl);
}

.thankyou-container i {
  font-size: 4rem;
  color: var(--accent);
  margin-bottom: var(--space-md);
}

.thankyou-container h1 {
  margin-bottom: var(--space-md);
}

@media (max-width: 768px) {
  html {
    font-size: 15px;
  }

  nav ul {
    position: fixed;
    top: 0;
    right: 0;
    width: 280px;
    height: 100vh;
    height: 100dvh;
    background: linear-gradient(180deg, var(--primary) 0%, #1e222d 100%);
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    padding: 80px 0 40px;
    gap: 0;
    z-index: 999;
    transform: translateX(100%);
    transition: transform 0.35s ease;
    box-shadow: -5px 0 25px rgba(0, 0, 0, 0.3);
    overflow-y: auto;
  }

  nav ul.active {
    transform: translateX(0);
  }

  nav ul::before {
    content: 'Menu';
    position: absolute;
    top: 25px;
    left: 24px;
    font-family: var(--font-primary);
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--accent);
    letter-spacing: 1px;
  }

  nav li {
    width: 100%;
    border-bottom: 1px solid rgba(163, 176, 135, 0.1);
  }

  nav li:last-child {
    border-bottom: none;
  }

  nav a {
    display: block;
    color: var(--light);
    padding: 18px 24px;
    font-size: 1rem;
    text-transform: none;
    letter-spacing: 0;
    border-radius: 0;
    transition: all 0.25s ease;
  }

  nav a:hover,
  nav a.active {
    background: rgba(163, 176, 135, 0.2);
    color: var(--accent);
    padding-left: 32px;
  }

  .burger {
    display: flex;
  }

  .hero h1 {
    font-size: 1.8rem;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .grid {
    grid-template-columns: 1fr;
  }

  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .privacy-content {
    flex-direction: column;
    text-align: center;
  }

  .privacy-buttons {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  html {
    font-size: 14px;
  }

  h1 {
    font-size: 1.6rem;
  }

  h2 {
    font-size: 1.3rem;
  }

  .hero {
    min-height: 60vh;
    padding: var(--space-lg) var(--space-sm);
  }

  .btn {
    padding: 0.6rem 1.4rem;
    font-size: 0.8rem;
  }
}