/* ==========================================================================
   Magnna — design tokens
   ========================================================================== */
:root {
  --cream: #F6F1E6;
  --cream-soft: #EFE7D6;
  --card: #FBF8F1;
  --ink: #2B2620;
  --ink-soft: #58513F;
  --olive: #6E6B47;
  --olive-dark: #52502F;
  --gold: #B98F45;
  --gold-soft: #D8B876;
  --border: #E3D9C3;
  --whatsapp: #25D366;

  --font-heading: 'Poppins', 'Segoe UI', sans-serif;
  --font-body: 'Inter', 'Segoe UI', sans-serif;

  --radius: 18px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px rgba(43, 38, 32, 0.08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 600;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}
p { margin: 0 0 1em; color: var(--ink-soft); }
.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}
.section { padding: 88px 0; }
.section-alt { background: var(--cream-soft); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 56px; }
.eyebrow {
  display: inline-block;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 12px;
}
.section-head h2 { font-size: 34px; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--olive); color: #fff; }
.btn-primary:hover { background: var(--olive-dark); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: #fff; }
.btn-whatsapp { background: var(--whatsapp); color: #fff; padding: 10px 18px; }
.icon-wa { width: 18px; height: 18px; fill: currentColor; }

/* ---------------- Header ---------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(246, 241, 230, 0.92);
  border-bottom: 1px solid var(--border);
}
/* backdrop-filter creates a new containing block, which would break the
   position:fixed mobile nav overlay nested inside this header — so it's
   only applied above the breakpoint where .main-nav switches to fixed. */
@media (min-width: 721px) {
  .site-header { backdrop-filter: blur(10px); }
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 78px;
}
.brand-logo { height: 34px; width: auto; object-fit: contain; }
.main-nav { display: flex; align-items: center; gap: 30px; }
.main-nav a { font-size: 15px; font-weight: 500; color: var(--ink); position: relative; }
.main-nav a.active, .main-nav a:hover { color: var(--olive); }
.nav-extras { display: flex; align-items: center; gap: 16px; margin-left: 12px; }
.lang-switch {
  font-size: 13px; font-weight: 700; border: 1px solid var(--border);
  border-radius: 999px; padding: 6px 12px;
}
.lang-switch:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; }
.nav-toggle span { width: 24px; height: 2px; background: var(--ink); }

/* ---------------- Hero ---------------- */
.hero {
  position: relative;
  min-height: 86vh;
  display: flex; align-items: center;
  background: linear-gradient(180deg, rgba(43,38,32,.35), rgba(43,38,32,.55)), url('/assets/img/photos/web_photo_2.jpeg') center/cover no-repeat;
  color: #fff;
}
.hero-content { max-width: 640px; }
.hero .eyebrow { color: var(--gold-soft); }
.hero h1 { font-size: 52px; color: #fff; line-height: 1.1; }
.hero p { color: rgba(255,255,255,0.86); font-size: 18px; }
.hero-actions { display: flex; gap: 14px; margin-top: 28px; flex-wrap: wrap; }
.hero .btn-outline { border-color: rgba(255,255,255,0.6); color: #fff; }
.hero .btn-outline:hover { background: #fff; color: var(--ink); }

/* ---------------- Services ---------------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.service-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex; flex-direction: column;
}
.service-card .service-img { height: 220px; overflow: hidden; }
.service-card .service-img img { width: 100%; height: 100%; object-fit: cover; }
.service-body { padding: 28px; flex: 1; display: flex; flex-direction: column; }
.service-body h3 { font-size: 20px; }
.service-options {
  margin-top: auto; padding-top: 14px; border-top: 1px dashed var(--border);
  font-size: 13px; font-weight: 600; color: var(--olive);
  text-transform: uppercase; letter-spacing: 0.04em;
}

/* ---------------- About teaser / split ---------------- */
.split {
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center;
}
.split img { border-radius: var(--radius); box-shadow: var(--shadow); }
.split .eyebrow { }
.stat-row { display: flex; gap: 36px; margin-top: 28px; }
.stat-row div strong { display: block; font-family: var(--font-heading); font-size: 28px; color: var(--olive); }
.stat-row div span { font-size: 13px; color: var(--ink-soft); }

/* ---------------- Products ---------------- */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 28px;
}
.product-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex; flex-direction: column;
}
.product-img { aspect-ratio: 1/1; overflow: hidden; background: var(--cream-soft); }
.product-img img { width: 100%; height: 100%; object-fit: cover; }
.product-body { padding: 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.product-body h3 { font-size: 17px; margin: 0; }
.product-price { font-family: var(--font-heading); color: var(--gold); font-weight: 600; font-size: 16px; }
.product-body .btn { margin-top: auto; justify-content: center; }

/* ---------------- Contact ---------------- */
.contact-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 50px; }
.contact-info-card {
  background: var(--ink); color: #fff; border-radius: var(--radius);
  padding: 40px; height: 100%;
}
.contact-info-card h3 { color: #fff; }
.contact-info-card p { color: rgba(255,255,255,0.75); }
.contact-info-item { display: flex; gap: 12px; margin-bottom: 18px; align-items: flex-start; }
.contact-info-item svg { width: 20px; height: 20px; fill: var(--gold-soft); flex-shrink: 0; margin-top: 2px; }

.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.form-group input, .form-group textarea {
  width: 100%; padding: 13px 16px; border-radius: var(--radius-sm);
  border: 1px solid var(--border); background: var(--card);
  font-family: var(--font-body); font-size: 15px; color: var(--ink);
}
.form-group textarea { min-height: 130px; resize: vertical; }
.form-group input:focus, .form-group textarea:focus { outline: 2px solid var(--olive); }
.alert { padding: 14px 18px; border-radius: var(--radius-sm); margin-bottom: 20px; font-size: 14px; }
.alert-success { background: #e5f3ea; color: #245c3a; border: 1px solid #bfe3cc; }
.alert-error { background: #fbeceb; color: #8a2e28; border: 1px solid #f2c6c3; }

/* ---------------- Footer ---------------- */
.site-footer { background: var(--ink); color: rgba(255,255,255,0.8); padding-top: 64px; }
.footer-inner { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 40px; }
.footer-logo { height: 30px; margin-bottom: 14px; filter: brightness(0) invert(1); }
.site-footer h4 { color: #fff; font-size: 15px; margin-bottom: 16px; }
.site-footer p { color: rgba(255,255,255,0.65); font-size: 14px; }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col a { color: rgba(255,255,255,0.75); font-size: 14px; }
.footer-col a:hover { color: var(--gold-soft); }
.social-icons { display: flex; gap: 12px; }
.social-icons a {
  width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center;
}
.social-icons svg { width: 18px; height: 18px; fill: #fff; }
.social-icons a:hover { background: var(--gold); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 20px 0; font-size: 13px; color: rgba(255,255,255,0.5);
}
.footer-bottom-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer-bottom-right { display: flex; align-items: center; gap: 16px; }
.credit { color: rgba(255,255,255,0.4); font-size: 12px; }
.admin-link { color: rgba(255,255,255,0.4); font-size: 12px; }
.admin-link:hover { color: var(--gold-soft); }

/* ---------------- WhatsApp float ---------------- */
.whatsapp-float {
  position: fixed; right: 24px; bottom: 24px; z-index: 200;
  width: 58px; height: 58px; border-radius: 50%;
  background: var(--whatsapp); display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 24px rgba(37,211,102,0.45);
  animation: wa-pulse 2.4s infinite;
}
.whatsapp-float svg { width: 30px; height: 30px; fill: #fff; }
@keyframes wa-pulse {
  0% { box-shadow: 0 0 0 0 rgba(37,211,102,0.5); }
  70% { box-shadow: 0 0 0 14px rgba(37,211,102,0); }
  100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); }
}

/* ---------------- Page header (about/products/contact) ---------------- */
.page-hero {
  padding: 70px 0 50px;
  text-align: center;
  background: var(--cream-soft);
  border-bottom: 1px solid var(--border);
}
.page-hero h1 { font-size: 40px; }

/* ---------------- Responsive ---------------- */
@media (max-width: 960px) {
  .services-grid { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .nav-toggle { display: flex; }
  .main-nav {
    position: fixed; top: 78px; left: 0; right: 0; bottom: 0;
    background: var(--cream); flex-direction: column; align-items: flex-start;
    padding: 30px 24px; gap: 22px; transform: translateX(100%);
    transition: transform .25s ease; overflow-y: auto;
  }
  .main-nav.open { transform: translateX(0); }
  .nav-extras { flex-direction: column; align-items: flex-start; margin-left: 0; margin-top: 10px; }
  .hero h1 { font-size: 36px; }
  .section { padding: 56px 0; }
  .footer-inner { grid-template-columns: 1fr; }
}
