/* === CSS Variables === */
:root {
  --color-sand: #f2e8db;
  --color-sand-light: #faf6f0;
  --color-moss: #1e3a2c;
  --color-moss-light: #2b4f3b;
  --color-ember: #c4653a;
  --color-ember-dark: #a34e2a;
  --color-stone: #8b7e6e;
  --color-slate: #3a3632;
  --color-cream: #fdfaf6;
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Source Serif 4', 'Times New Roman', serif;
  --max-width: 1200px;
  --radius: 4px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--color-slate);
  background: var(--color-cream);
}

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

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

/* === Typography === */
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.2;
}

.section-head {
  text-align: center;
  margin-bottom: 4rem;
}

.section-head h2 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  color: var(--color-moss);
  margin-bottom: 0.75rem;
}

.section-head p {
  font-size: 1.125rem;
  color: var(--color-stone);
  max-width: 540px;
  margin: 0 auto;
}

/* === Buttons === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 0.875rem 2rem;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background-color 0.2s, transform 0.15s;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: var(--color-ember);
  color: #fff;
}

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

/* === Hero === */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(30, 58, 44, 0.55) 0%, rgba(30, 58, 44, 0.35) 100%),
    url('https://images.unsplash.com/photo-1506905925346-21bda4d32df4?w=1800&q=80') center / cover no-repeat;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 40%, transparent 40%, rgba(20, 20, 18, 0.45) 100%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 680px;
  padding: 2rem;
  animation: fadeUp 1.2s ease-out;
}

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

.hero-brand {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 700;
  letter-spacing: 0.01em;
  margin-bottom: 0.5rem;
}

.hero-tagline {
  font-family: var(--font-display);
  font-size: clamp(1.125rem, 2.5vw, 1.5rem);
  font-style: italic;
  opacity: 0.92;
  margin-bottom: 1rem;
}

.hero-sub {
  font-size: 1.0625rem;
  opacity: 0.82;
  margin-bottom: 2rem;
  line-height: 1.6;
}

.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  animation: bounce 2s infinite;
  opacity: 0.7;
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* === Products === */
.products {
  padding: 6rem 1.5rem;
  background: var(--color-sand-light);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 2rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

.product-card {
  background: #fff;
  border-radius: 2px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06), 0 6px 24px rgba(0,0,0,0.04);
  transition: box-shadow 0.3s, transform 0.3s;
}

.product-card:hover {
  box-shadow: 0 2px 8px rgba(0,0,0,0.08), 0 12px 36px rgba(0,0,0,0.06);
  transform: translateY(-3px);
}

.product-image {
  position: relative;
  height: 240px;
  background-size: cover;
  background-position: center;
}

.product-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--color-moss);
  color: #fff;
  padding: 0.3rem 0.75rem;
  border-radius: 2px;
}

.product-body {
  padding: 1.5rem;
}

.product-body h3 {
  font-size: 1.375rem;
  color: var(--color-moss);
  margin-bottom: 0.125rem;
}

.product-sub {
  font-size: 0.875rem;
  color: var(--color-ember);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.product-desc {
  font-size: 0.9375rem;
  color: var(--color-stone);
  margin-bottom: 1rem;
  line-height: 1.6;
}

.product-specs {
  list-style: none;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  padding-top: 0.75rem;
  border-top: 1px solid #e8e0d8;
}

.product-specs li {
  font-size: 0.8125rem;
  color: var(--color-stone);
}

.product-specs li::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-ember);
  margin-right: 0.5rem;
  vertical-align: middle;
}

/* === About === */
.about {
  padding: 6rem 1.5rem;
  background:
    linear-gradient(180deg, rgba(30, 58, 44, 0.92), rgba(30, 58, 44, 0.88)),
    url('https://images.unsplash.com/photo-1464822759023-fed622ff2c3b?w=1800&q=80') center / cover no-repeat;
  color: #e8ddd0;
}

.about-inner {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
}

.about-inner h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.25rem);
  color: #fff;
  margin-bottom: 1.5rem;
}

.about-inner p {
  font-size: 1.0625rem;
  line-height: 1.8;
  opacity: 0.9;
  margin-bottom: 1rem;
}

/* === Contact === */
.contact {
  padding: 6rem 1.5rem;
  background: var(--color-sand);
}

.contact-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 4rem;
  align-items: start;
}

.contact-text h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.25rem);
  color: var(--color-moss);
  margin-bottom: 1rem;
}

.contact-text > p {
  color: var(--color-stone);
  margin-bottom: 2rem;
  line-height: 1.7;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  color: var(--color-moss);
  font-size: 0.9375rem;
}

/* === Form === */
.contact-form {
  background: #fff;
  padding: 2.5rem;
  border-radius: 2px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06), 0 8px 28px rgba(0,0,0,0.05);
}

.hp-field {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  overflow: hidden;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.form-group label {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-moss);
}

.required {
  color: var(--color-ember);
}

.form-group input,
.form-group select,
.form-group textarea {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  padding: 0.75rem;
  border: 1px solid #d4cbc0;
  border-radius: var(--radius);
  background: #fdfaf7;
  color: var(--color-slate);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
  width: 100%;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--color-ember);
  box-shadow: 0 0 0 3px rgba(196, 101, 58, 0.12);
}

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

.form-error {
  display: none;
  font-size: 0.8125rem;
  color: #c44;
}

.form-group.error .form-error {
  display: block;
}

.form-group.error input,
.form-group.error textarea {
  border-color: #c44;
}

.btn-submit {
  position: relative;
  width: 100%;
  margin-top: 1rem;
  padding: 1rem;
}

.btn-submit.loading .btn-label {
  visibility: hidden;
}

.btn-submit.loading .btn-spinner {
  display: block;
}

.btn-spinner {
  display: none;
  position: absolute;
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

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

.form-success,
.form-error-banner {
  display: none;
  align-items: flex-start;
  gap: 0.625rem;
  padding: 1rem;
  border-radius: var(--radius);
  margin-top: 1.25rem;
  font-size: 0.9375rem;
  line-height: 1.5;
}

.form-success {
  background: #ecf5ec;
  color: #2a5a2a;
  border: 1px solid #c4e0c4;
}

.form-error-banner {
  background: #fdf0f0;
  color: #8b2020;
  border: 1px solid #f0c8c8;
}

.form-success svg,
.form-error-banner svg {
  flex-shrink: 0;
  margin-top: 1px;
}

/* === Footer === */
.footer {
  padding: 3rem 1.5rem;
  background: var(--color-moss);
  color: #c4b8a8;
  text-align: center;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: #fff;
  margin-bottom: 0.25rem;
}

.footer-loc {
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
}

.footer-copy {
  font-size: 0.8125rem;
  opacity: 0.65;
}

/* === Responsive === */
@media (max-width: 768px) {
  .product-grid {
    grid-template-columns: 1fr;
  }

  .contact-inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .products,
  .about,
  .contact {
    padding: 4rem 1.25rem;
  }

  .hero-brand {
    font-size: clamp(2rem, 8vw, 3rem);
  }
}

/* === Scroll animations === */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* === Floating WhatsApp Button === */
.whatsapp-float {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 56px;
  height: 56px;
  background: #25D366;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
  z-index: 1000;
  transition: transform 0.2s, box-shadow 0.2s;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.55);
}

.whatsapp-float:active {
  transform: scale(0.95);
}

.contact-item a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.contact-item a:hover {
  color: var(--color-ember);
}
