/* ================= THEME VARIABLES ================= */
:root {
  --bg-main: #ffffff;
  --text-main: #433;
  --header-bg: rgba(110, 36, 36, 0.95);
  --link-color: #edc;
  --link-hover: #fdf099;
  --accent: #622;
  --accent-hover: #b44;
  --overlay: rgba(255,255,255,0.85);

  --bg-about: url('/images/bg1.jpg');
  --bg-product: url('/images/bg2.jpg');
  --bg-buy: url('/images/bg3.jpg');
  --bg-contact: url('/images/bg4.jpg');

  --header-height: 76px;
}

[data-theme="dark"] {
  --bg-main: #0f0f12;
  --text-main: #e6e1dc;
  --header-bg: rgba(20, 20, 25, 0.95);
  --link-color: #e6d3b1;
  --link-hover: #ffcc88;
  --accent: #a86a5a;
  --accent-hover: #c9826e;
  --overlay: rgba(15,15,18,0.82);

  --bg-about: url('/images/bg1-dark.jpg');
  --bg-product: url('/images/bg2-dark.jpg');
  --bg-buy: url('/images/bg3-dark.jpg');
  --bg-contact: url('/images/bg4-dark.jpg');
}

/* ================= RESET ================= */
* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-snap-type: y mandatory;
}

body {
  margin: 0;
  font-family: 'maya_script_italic';
  background: var(--bg-main);
  color: var(--text-main);
}

p {
  line-height: 1.6;
  text-align: center;
  /*
  text-align: justify;
  */
}

/* ================= HEADER ================= */
header {
  position: fixed;
  top: 0;
  width: 100%;
  background: var(--header-bg);
  backdrop-filter: blur(6px);
  z-index: 100;
}

.nav-wrapper {
  max-width: 1100px;
  margin: auto;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* NAVIGATION */
nav {
  display: flex;
  gap: 1rem;
}

nav a {
  color: var(--link-color);
  text-decoration: none;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 0.9rem;
}

nav a:hover,
nav a:focus {
  background: var(--accent-hover);
  color: var(--link-hover);
  outline: none;
}

/* ================= HAMBURGER MENU ================= */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
  background: none;
  border: none;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: var(--link-color);
  border-radius: 2px;
  transition: 0.3s;
}

/* Active state for hamburger */
.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ================= DARK MODE TOGGLE ================= */
.theme-toggle {
  font-size: 1.2rem;
  cursor: pointer;
  background: none;
  border: none;
  color: var(--link-color);
}

.theme-toggle:hover {
  color: var(--link-hover);
}

/* ================= SECTIONS ================= */
section {
  min-height: calc(100vh - var(--header-height));
  scroll-margin-top: var(--header-height);
  padding: 2rem;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  position: relative;

  scroll-snap-align: start;
  scroll-snap-stop: always;
  margin-top: var(--header-height);

}


section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--overlay);
}

#about   { background-image: var(--bg-about); }
#product { background-image: var(--bg-product); }
#buy     { background-image: var(--bg-buy); }
#contact { background-image: var(--bg-contact); }

/*
section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--overlay);
}
*/

.container {
  position: relative;
  max-width: 1024px;
  width: 100%;
  margin: auto;
  animation: fadeUp 0.8s ease both;
}

.home {

  display: flex;
  flex-direction: row;
  gap: 10%;
  align-items: center;

  /*
  justify-content: center;

  min-height: calc(100vh - var(--header-height));
  scroll-margin-top: var(--header-height);
  */
}

svg {
  max-width: 100%;
  height: auto;
  margin-bottom: 1.5rem;
}

#buy {
  justify-content: center;
  text-align: center;
}

.buy-button {
  display: inline-block;
  margin-top: 1.5rem;
  padding: 0.75rem 2rem;
  background: var(--accent);
  color: var(--link-color);
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
}

.buy-button:hover {
  background: var(--accent-hover);
}

form {
  max-width: 500px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

input, textarea, button {
  padding: 0.75rem;
  font-size: 1rem;
  border-radius: 8px;
  border: none;
  font-family: inherit;
}

input, textarea {
  background: rgba(255,255,255,0.9);
}

[data-theme="dark"] input,
[data-theme="dark"] textarea {
  background: rgba(40,40,45,0.9);
  color: #eee;
}

button {
  background: var(--accent);
  color: var(--link-color);
  cursor: pointer;
}

button:hover {
  background: var(--accent-hover);
}

footer {
  min-height: 100vh;
  background: #111;
  color: #edc;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;

  scroll-snap-align: start;
}

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

@media (prefers-reduced-motion: reduce) {
  .container { animation: none; }
}

/* ================= MOBILE ================= */
@media (max-width: 768px) {
	
	

  html {
	scroll-snap-type: none;
  }

  section {
	min-height: auto;
	padding-top: 2rem;
	margin-top: 0px;
  }

  .home{
	  margin-top:  var(--header-height);

  }

  p {
	text-align: left;
	font-size: 0.95rem;
  }

  nav {
	position: absolute;
	top: var(--header-height);
	right: 0;
	background: var(--header-bg);
	flex-direction: column;
	width: 200px;
	max-height: 0;
	overflow: hidden;
	transition: max-height 0.3s ease;
  }

  nav.open {
	max-height: 300px;
	padding: 1rem;
  }

  .hamburger {
	display: flex;
  }

  .home {
	flex-direction: column;
  }
}