/* styles.css - STILL Organic Bee Redesign (STILL.bz) */

/* 1. CSS Reset & Base Typography */
:root {
  /* Organic Palette */
  --color-forest-deep: #2d3a2e;
  --color-forest-moss: #4a5d4c;
  --color-soil-rich: #3d2b1f;
  --color-soil-oak: #8c7355;
  --color-stone-light: #f2f0eb;
  --color-stone-aged: #e0ddd5;
  --color-sage: #78866b;
  --color-lichen: #a4ac86;
  
  /* Bee-Inspired Accents (STILL.bz) */
  --color-pollen: #e6b800; /* Darker yellow for better contrast */
  --color-honey: #d4a017;
  --color-nectar: #fff9e6;

  /* Semantic Mapping */
  --font-primary: 'Inter', system-ui, -apple-system, sans-serif; /* Science */
  --font-heading: 'Merriweather', serif; /* Tradition */
  
  --color-bg: var(--color-stone-light);
  --color-text: var(--color-soil-rich);
  --color-primary: var(--color-forest-deep);
  --color-secondary: var(--color-forest-moss);
  --color-accent: var(--color-honey);
  --color-border: var(--color-stone-aged);
  
  --spacing-unit: 1.5rem;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-primary);
  font-size: 18px;
  line-height: 1.8;
  color: var(--color-text);
  background-color: var(--color-bg);
  /* Honeycomb + Noise background pattern */
  background-image: 
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='49' viewBox='0 0 28 49'%3E%3Cpath fill='%23e0ddd5' fill-opacity='0.25' d='M13.99 9.25l13 7.5v15l-13 7.5L1 31.75v-15l12.99-7.5zM3 17.9l10.99-6.35L25 17.9v12.7L13.99 37 3 30.6V17.9z'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  background-attachment: fixed;
  opacity: 0.98;
  -webkit-font-smoothing: antialiased;
}

/* Subtle texture overlay */
body::before {
  content: "";
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(242, 240, 235, 0.4);
  pointer-events: none;
  z-index: -1;
}

/* Flight Path / Dotted Line Separator */
.flight-path {
    height: 2px;
    background-image: linear-gradient(to right, var(--color-soil-oak) 33%, rgba(255,255,255,0) 0%);
    background-position: bottom;
    background-size: 8px 1px;
    background-repeat: repeat-x;
    margin: 4rem 0;
    position: relative;
    border: none;
}

.flight-path::after {
    content: '🐝';
    position: absolute;
    right: 0;
    top: -12px;
    font-size: 1.2rem;
    filter: grayscale(0.2);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: var(--spacing-unit);
  color: var(--color-primary);
  letter-spacing: -0.02em;
}

h1 { font-size: 3.5rem; margin-bottom: 2rem; }
h2 { font-size: 2.5rem; margin-top: 3rem; position: relative; display: inline-block; }
h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--color-pollen);
    border-radius: 2px;
}

h3 { font-size: 1.75rem; color: var(--color-secondary); }

p {
  margin-bottom: var(--spacing-unit);
  max-width: 70ch;
}

.text-science {
    font-family: var(--font-primary);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-soil-oak);
}

a {
  color: var(--color-secondary);
  text-decoration: underline decoration-thickness(2px) underline-offset(4px) decoration-color(var(--color-pollen));
  transition: all 0.3s ease;
}

a:hover {
  color: var(--color-primary);
  decoration-color: var(--color-honey);
}

ul, ol {
  margin-bottom: var(--spacing-unit);
  padding-left: 1.5rem;
}

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

/* 2. Layout Containers */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
}

section {
  padding: 6rem 0;
}

/* 3. Navigation */
header {
  background-color: rgba(242, 240, 235, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-stone-aged);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 1.5rem 0;
}

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

.nav-links a {
    text-decoration: none;
    font-weight: 500;
    color: var(--color-soil-rich);
    font-family: var(--font-primary);
    font-size: 0.95rem;
}

.nav-links a:hover {
    color: var(--color-forest-deep);
}

.btn-cta {
    background-color: var(--color-forest-deep);
    color: var(--color-stone-light) !important;
    padding: 0.75rem 1.5rem;
    border-radius: 30px 10px 30px 10px;
    font-weight: 600;
    text-decoration: none !important;
    transition: all 0.2s ease;
    display: inline-block;
}

.btn-cta:hover {
    background-color: var(--color-honey);
    transform: rotate(-1deg) scale(1.05);
}

.btn-outline {
    border: 2px solid var(--color-pollen);
    color: var(--color-soil-rich) !important;
    padding: 0.75rem 1.5rem;
    border-radius: 10px 30px 10px 30px;
    font-weight: 600;
    text-decoration: none !important;
    display: inline-block;
    transition: all 0.2s ease;
}

.btn-outline:hover {
    background-color: var(--color-nectar);
}

/* 4. Organic Cards with Hex influence */
.organic-card {
    background: white;
    padding: 2.5rem;
    border-radius: 60px 15px 50px 20px;
    border: 1px solid var(--color-stone-aged);
    box-shadow: 10px 10px 0px var(--color-stone-aged);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.organic-card::before {
    content: '';
    position: absolute;
    top: -20px;
    right: -20px;
    width: 80px;
    height: 80px;
    background: var(--color-nectar);
    clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
    opacity: 0.5;
    z-index: 0;
}

.organic-card > * {
    position: relative;
    z-index: 1;
}

.organic-card:hover {
    transform: translate(-5px, -5px);
    box-shadow: 15px 15px 0px var(--color-pollen);
}

/* 5. Footer */
footer {
  background-color: var(--color-forest-deep);
  padding: 5rem 0;
  color: var(--color-stone-aged);
  font-family: var(--font-primary);
  position: relative;
}

footer::before {
    content: '🐝';
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 2rem;
    background: var(--color-stone-light);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

footer a {
  color: var(--color-pollen);
}

/* 6. Dashboard / Map Integration Fixes */
.map-container {
    border-radius: 40px;
    overflow: hidden;
    border: 8px solid white;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

/* 7. Mobile Adjustments */
@media (max-width: 768px) {
    h1 { font-size: 2.5rem; }
    section { padding: 3rem 1rem; }
    .nav-links a { font-size: 0.85rem; }
    header nav { flex-wrap: wrap; justify-content: center; text-align: center; }
    header img { max-width: 80px; } /* Responsive logo */
    .organic-card { padding: 1.5rem; border-radius: 30px 10px; }
}
