/* ===== CSS Variables ===== */
:root {
  --color-bg: #FDF6EE;
  --color-primary: #C0614A;
  --color-primary-dark: #A0503B;
  --color-text: #3B2A1A;
  --color-accent: #A8C5B5;
  --color-white: #FFFFFF;
  --color-overlay: rgba(30, 15, 5, 0.45);

  --font-heading: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Lato', Arial, sans-serif;

  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 4rem;
  --spacing-xl: 6rem;

  --max-width: 1100px;
  --border-radius: 6px;
}

/* ===== Reset ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

/* ===== Typography ===== */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-text);
}

h1 { font-size: clamp(2.6rem, 6vw, 4.5rem); }
h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); }
h3 { font-size: clamp(1.3rem, 3vw, 1.8rem); }

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

/* ===== Utility ===== */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

.section {
  padding: var(--spacing-xl) 0;
}

.section-title {
  text-align: center;
  margin-bottom: var(--spacing-md);
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: var(--color-primary);
  margin: var(--spacing-xs) auto 0;
}

.btn {
  display: inline-block;
  background: var(--color-primary);
  color: var(--color-white);
  padding: 0.85rem 2rem;
  border-radius: var(--border-radius);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  cursor: pointer;
  border: none;
  transition: background 0.2s ease;
}

.btn:hover {
  background: var(--color-primary-dark);
}

/* ===== Navigation ===== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(253, 246, 238, 0.97);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(192, 97, 74, 0.15);
  padding: 0.8rem 0;
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--color-primary);
  letter-spacing: 0.02em;
}

.nav__logo-img {
  height: 160px;
  width: auto;
  mix-blend-mode: multiply;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
}

.nav__links a {
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  color: var(--color-text);
  transition: color 0.2s;
}

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

.nav__cta {
  padding: 0.5rem 1.2rem;
  font-size: 0.9rem !important;
}

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text);
  transition: all 0.3s ease;
}

/* Hamburger open state */
.nav__toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle.open span:nth-child(2) { opacity: 0; }
.nav__toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav */
@media (max-width: 768px) {
  .nav__toggle { display: flex; }

  .nav__links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-bg);
    flex-direction: column;
    padding: var(--spacing-md);
    border-bottom: 1px solid rgba(192, 97, 74, 0.15);
    gap: var(--spacing-sm);
  }

  .nav__links.open { display: flex; }
}

/* ===== Hero ===== */
@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes glowPulse {
  0%, 100% { opacity: 0.55; transform: translate(-50%, -50%) scale(1); }
  50%       { opacity: 0.75; transform: translate(-50%, -50%) scale(1.08); }
}

@keyframes ornamentExpand {
  from { width: 0; opacity: 0; }
  to   { width: 80px; opacity: 1; }
}

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(170deg, #FEF6EC 0%, #F5E2C4 55%, #EDD0A8 100%);
  overflow: hidden;
  padding-top: 80px;
}

/* Grain texture */
.hero__grain {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-size: 180px 180px;
}

/* Subtle warm glow behind logo */
.hero__glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(192, 97, 74, 0.18) 0%, rgba(237, 190, 140, 0.12) 45%, transparent 70%);
  z-index: 0;
  animation: glowPulse 5s ease-in-out infinite;
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 1100px;
  padding: var(--spacing-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-md);
}

/* Logo image */
.hero__logo-img {
  width: min(90vw, 1100px);
  mix-blend-mode: multiply;
  animation: heroFadeUp 1s ease both;
  animation-delay: 0.2s;
  opacity: 0;
}

/* Decorative ornament */
.hero__ornament {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  animation: heroFadeUp 0.8s ease both;
  animation-delay: 0.6s;
  opacity: 0;
}

.hero__ornament-line {
  display: block;
  height: 1px;
  background: rgba(192, 97, 74, 0.7);
  animation: ornamentExpand 0.8s ease both;
  animation-delay: 0.8s;
  width: 0;
}

.hero__ornament-dot {
  color: var(--color-primary);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
}

.hero__subtitle {
  color: rgba(59, 42, 26, 0.8);
  font-family: var(--font-heading);
  font-size: clamp(0.95rem, 2vw, 1.15rem);
  font-weight: 400;
  font-style: italic;
  letter-spacing: 0.03em;
  line-height: 1.6;
  margin-bottom: 0;
  animation: heroFadeUp 0.8s ease both;
  animation-delay: 0.9s;
  opacity: 0;
}

.hero__btn {
  animation: heroFadeUp 0.8s ease both;
  animation-delay: 1.2s;
  opacity: 0;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.85rem;
  padding: 0.9rem 2.2rem;
}

/* ===== About ===== */
.about__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-lg);
  align-items: center;
}

.about__image img {
  border-radius: var(--border-radius);
  width: 100%;
  height: 420px;
  object-fit: cover;
  box-shadow: 0 8px 32px rgba(59, 42, 26, 0.15);
}

.about__text .section-title::after {
  margin-left: 0;
}

@media (max-width: 768px) {
  .about__inner {
    grid-template-columns: 1fr;
  }
  .about__image img {
    height: 280px;
  }
}

/* ===== Products ===== */
.products {
  background: var(--color-white);
}

.products__intro {
  text-align: center;
  max-width: 600px;
  margin: 0 auto var(--spacing-lg);
  color: #6B5040;
}

.products__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--spacing-md);
}

.product-card {
  background: var(--color-bg);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(59, 42, 26, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(59, 42, 26, 0.14);
}

.product-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.product-card__body {
  padding: var(--spacing-md);
}

.product-card__body h3 {
  margin-bottom: var(--spacing-sm);
  color: var(--color-primary);
}

.price-table {
  width: 100%;
  border-collapse: collapse;
  margin: var(--spacing-sm) 0;
  font-size: 0.95rem;
}

.price-table td {
  padding: 0.35rem 0;
  border-bottom: 1px solid rgba(192, 97, 74, 0.1);
}

.price-table td:last-child {
  text-align: right;
  font-weight: 700;
  color: var(--color-primary);
  white-space: nowrap;
}

.product-card__note {
  font-size: 0.85rem;
  color: #8B6A58;
  margin-top: var(--spacing-xs);
  margin-bottom: 0;
}

/* ===== Gallery ===== */
.gallery__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

.gallery__grid img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-radius: var(--border-radius);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.gallery__grid img:hover {
  transform: scale(1.03);
  opacity: 0.92;
}

@media (max-width: 768px) {
  .gallery__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .gallery__grid {
    grid-template-columns: 1fr;
  }
}

/* ===== Contact ===== */
.contact {
  background: var(--color-white);
}

.contact__intro {
  text-align: center;
  max-width: 520px;
  margin: 0 auto var(--spacing-lg);
  color: #6B5040;
}

.contact__inner {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: var(--spacing-lg);
  align-items: start;
}

.form-group {
  display: flex;
  flex-direction: column;
  margin-bottom: var(--spacing-sm);
}

.form-group label {
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 0.4rem;
  color: var(--color-text);
}

.form-group input,
.form-group textarea {
  border: 1.5px solid rgba(192, 97, 74, 0.25);
  border-radius: var(--border-radius);
  padding: 0.7rem 1rem;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-text);
  background: var(--color-bg);
  transition: border-color 0.2s;
  resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-primary);
}

.form-group input.invalid,
.form-group textarea.invalid {
  border-color: #C0392B;
}

.form-error {
  color: #C0392B;
  font-size: 0.82rem;
  margin-top: 0.25rem;
  min-height: 1rem;
}

.form-success {
  color: #2D8653;
  font-weight: 700;
  margin-top: var(--spacing-sm);
}

.contact__info h3 {
  margin-bottom: var(--spacing-md);
}

.contact__list {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}

.contact__list li {
  display: flex;
  align-items: flex-start;
  gap: var(--spacing-sm);
  font-size: 1rem;
}

.contact__icon {
  font-size: 1.2rem;
  flex-shrink: 0;
}

.contact__list a {
  color: var(--color-primary);
  font-weight: 700;
}

.contact__list a:hover {
  text-decoration: underline;
}

@media (max-width: 768px) {
  .contact__inner {
    grid-template-columns: 1fr;
  }
}

/* ===== Footer ===== */
.footer {
  background: var(--color-text);
  color: rgba(253, 246, 238, 0.75);
  padding: var(--spacing-md) 0;
  text-align: center;
}

.footer__inner {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.footer__logo {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  color: var(--color-bg);
  font-weight: 700;
  margin-bottom: 0;
}

.footer__address,
.footer__copy {
  font-size: 0.85rem;
  margin-bottom: 0;
}

.footer__social {
  font-size: 0.9rem;
  margin-bottom: 0;
}

.footer__social a {
  color: var(--color-accent);
  font-weight: 700;
  transition: color 0.2s;
}

.footer__social a:hover {
  color: var(--color-bg);
}
