@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@600;700;800&display=swap');

:root {
  --paper: #f4f1ea;
  --surface: #fffdf8;
  --ink: #17242b;
  --muted: #66716f;
  --line: #d9d5ca;
  --accent: #a94f32;
  --accent-dark: #813a26;
  --navy: #183945;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  min-height: 100vh !important;
  margin: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  color: var(--ink) !important;
  background: var(--paper) !important;
  font-family: 'DM Sans', sans-serif !important;
  line-height: 1.65;
}
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .45;
  background-image: linear-gradient(rgba(24,57,69,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(24,57,69,.035) 1px, transparent 1px);
  background-size: 32px 32px;
}
main { flex: 1 0 auto; width: 100%; }
h1, h2, h3, h4 { font-family: 'Manrope', sans-serif !important; letter-spacing: -.035em; line-height: 1.15 !important; }
a { text-underline-offset: 3px; }
img { background: #e5e0d5; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
  color: var(--ink);
  background: rgba(255,253,248,.94);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 8px 30px rgba(23,36,43,.06);
  backdrop-filter: blur(14px);
}
.site-nav-shell { max-width: 1280px; height: 78px; margin: auto; padding: 0 28px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.site-brand { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; font-family: 'Manrope', sans-serif; font-size: 1.35rem; font-weight: 800; letter-spacing: -.04em; white-space: nowrap; }
.site-brand-mark { width: 34px; height: 34px; display: grid; place-items: center; color: #fff; background: var(--navy); border-radius: 2px 12px 2px 2px; font-size: .78rem; letter-spacing: -.03em; }
.site-brand em { color: var(--accent); font-style: normal; }
.site-desktop-nav { display: flex; align-items: center; gap: 4px; }
.site-desktop-nav a { padding: 9px 10px; border-radius: 7px; color: #4c595b; font-size: .88rem; font-weight: 600; text-decoration: none; transition: color .2s, background .2s; }
.site-desktop-nav a:hover, .site-desktop-nav a[aria-current='page'] { color: var(--navy); background: #e8e4da; }
.site-desktop-nav a.site-contact { margin-left: 6px; padding-inline: 16px; color: white; background: var(--accent); }
.site-desktop-nav a.site-contact:hover, .site-desktop-nav a.site-contact[aria-current='page'] { color: white; background: var(--accent-dark); }
.site-menu-button { display: none; width: 43px; height: 43px; border: 1px solid var(--line); border-radius: 8px; color: var(--ink); background: transparent; cursor: pointer; }
.site-menu-button svg { width: 21px; margin: auto; }
.site-mobile-nav { display: none; padding: 8px 20px 20px; border-top: 1px solid var(--line); }
.site-mobile-nav.open { display: grid; }
.site-mobile-nav a { padding: 11px 10px; border-bottom: 1px solid #e5e1d7; color: var(--ink); font-weight: 600; text-decoration: none; }

body > main:not(:has(.hero-bg)):not(:has(.hero)) { padding-top: clamp(3rem, 6vw, 5rem) !important; padding-bottom: clamp(3.5rem, 7vw, 6rem) !important; }
main > .max-w-7xl, main.max-w-7xl { max-width: 1180px !important; }
.bg-white { background-color: var(--surface) !important; }
.bg-gray-50, .bg-gray-100, .bg-blue-50 { background-color: #ebe7dd !important; }
.text-gray-900, .text-gray-800 { color: var(--ink) !important; }
.text-gray-700, .text-gray-600, .text-gray-500 { color: var(--muted) !important; }
.text-blue-600, .text-blue-500, .text-primary-blue { color: var(--accent) !important; }
.bg-blue-600, .bg-primary-blue, .accent-color { background-color: var(--accent) !important; }
.border-blue-200, .border-blue-500, .border-primary-blue { border-color: var(--accent) !important; }
.rounded-xl, .rounded-2xl { border-radius: 12px !important; }
.shadow-lg, .shadow-xl, .shadow-2xl { box-shadow: 0 16px 45px rgba(23,36,43,.09) !important; }
.plan-card, .gallery-item, .contact-card, .download-card, .card { border: 1px solid var(--line) !important; box-shadow: 0 12px 35px rgba(23,36,43,.07) !important; transition: transform .25s ease, box-shadow .25s ease !important; }
.plan-card:hover, .gallery-item:hover, .contact-card:hover, .download-card:hover, .card:hover { transform: translateY(-5px) !important; box-shadow: 0 20px 45px rgba(23,36,43,.12) !important; }
.plan-card img, .gallery-item img { filter: saturate(.78) contrast(1.03); }
a[class*='bg-blue-'], a.bg-primary-blue, button[class*='bg-blue-'] { background: var(--accent) !important; border-radius: 7px !important; box-shadow: none !important; }
a[class*='bg-blue-']:hover, a.bg-primary-blue:hover, button[class*='bg-blue-']:hover { background: var(--accent-dark) !important; }
.hero-bg::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(16,35,43,.88), rgba(16,35,43,.35)); }
.hero-bg > * { position: relative; }
.hero-bg .bg-black { background: transparent !important; text-align: left; margin-right: auto; box-shadow: none; }

.site-footer { margin-top: auto; color: #dce1de; background: var(--ink); }
.site-footer-inner { max-width: 1180px; margin: auto; padding: 42px 28px 30px; }
.site-footer-top { display: flex; justify-content: space-between; gap: 30px; padding-bottom: 28px; border-bottom: 1px solid rgba(255,255,255,.14); }
.site-footer-brand { color: white; font-family: 'Manrope', sans-serif; font-size: 1.35rem; font-weight: 800; }
.site-footer p { margin: 6px 0 0; color: #aeb9b6; }
.site-footer-links { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; }
.site-footer-links a { color: #e7ebe8; font-size: .92rem; font-weight: 600; text-decoration: none; }
.site-footer-links a:hover { color: #d98a6e; }
.site-footer-bottom { padding-top: 22px; color: #96a3a0; font-size: .82rem; }

body[data-page='shop'] > main { display: grid; place-items: center; padding-inline: 20px !important; }
body[data-page='shop'] > main > div { border: 1px solid var(--line) !important; }

@media (max-width: 1020px) {
  .site-desktop-nav { display: none; }
  .site-menu-button { display: grid; place-items: center; }
}
@media (max-width: 640px) {
  .site-nav-shell { height: 68px; padding-inline: 18px; }
  .site-footer-top { flex-direction: column; }
  .site-footer-links { gap: 12px 18px; }
  body > main:not(:has(.hero-bg)):not(:has(.hero)) { padding-top: 2.5rem !important; }
  .hero-bg .bg-black { padding-inline: 0 !important; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; } }
