/* ── SHARED STYLESHEET (common.css) ── */

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

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

:root {
  --green: #00a651;
  --green-dim: #00c463;
  --green-glow: rgba(0,166,81,0.14);
  --dark: #faf7f0;
  --card: #ffffff;
  --card-border: #e8e2d6;
  --surface: #f3efe5;
  --text: #2a2e2b;
  --text-muted: #6f7570;
  --radius: 14px;
  --radius-sm: 8px;
  --on-green: #ffffff;
}

html { scroll-behavior: smooth; }

body {
  background: var(--dark);
  color: var(--text);
  font-family: 'Nunito', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  padding-top: 68px;
}

/* ── NAV & MOBILE MENU ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: 68px;
  background: rgba(250,247,240,0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--card-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.nav-logo svg { width: 24px; height: 24px; fill: var(--green); }

.nav-brand {
  font-family: 'Montserrat', sans-serif;
  font-weight: 900;
  font-size: 20px;
  color: var(--green);
  letter-spacing: 0.04em;
}

.nav-products-link {
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  font-size: 14px;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  display: none;
}

.nav-products-link:hover {
  color: var(--green);
}

.nav-menu-btn {
  background: none;
  border: 1.5px solid var(--card-border);
  border-radius: var(--radius-sm);
  width: 40px; height: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  padding: 10px;
}

.nav-menu-btn span {
  display: block;
  width: 18px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s;
}

.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(250,247,240,0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 1000;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
}

.nav-overlay.open { display: flex; }

.nav-overlay a {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 22px;
  color: var(--text);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: color 0.2s;
}

.nav-overlay a:hover { color: var(--green); }

.nav-overlay-close {
  position: absolute;
  top: 20px; right: 20px;
  background: none;
  border: 1.5px solid var(--card-border);
  border-radius: 50%;
  width: 40px; height: 40px;
  color: var(--text);
  font-size: 22px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  z-index: 1001;
}

/* ── BUTTONS ── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: var(--green);
  color: var(--on-green);
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 13px 28px;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 4px 20px rgba(0,166,81,0.22);
}

.btn-primary:hover, .btn-primary:active {
  background: var(--green-dim);
  transform: translateY(-1px);
}

.btn-primary svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
  flex-shrink: 0;
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(0, 166, 81, 0.04);
  border: 1.5px solid var(--green);
  color: var(--green);
  padding: 11px 24px;
  border-radius: var(--radius-sm);
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, transform 0.15s, box-shadow 0.2s;
  text-decoration: none;
}

.btn-outline:hover {
  background: var(--green);
  color: var(--on-green);
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(0, 166, 81, 0.15);
}

.btn-outline svg {
  width: 16px; height: 16px;
  fill: var(--green);
  transition: transform 0.3s, fill 0.2s;
  flex-shrink: 0;
}

.btn-outline:hover svg {
  fill: var(--on-green);
}

.btn-outline.open svg { transform: rotate(180deg); }

/* ── FOOTER ── */
footer {
  border-top: 1px solid var(--card-border);
  padding: 40px 20px 32px;
  text-align: center;
}

.footer-logo {
  font-family: 'Montserrat', sans-serif;
  font-weight: 900;
  font-size: 22px;
  color: var(--green);
  letter-spacing: 0.08em;
  margin-bottom: 20px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 24px;
  margin-bottom: 20px;
}

.footer-links a {
  text-decoration: none;
  transition: color 0.2s;
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
}

.footer-links a svg { width: 18px; height: 18px; fill: currentColor; flex-shrink: 0; }

.footer-tagline {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.footer-copy {
  font-size: 12px;
}

/* Light Theme Footer (Contrast compliant) */
footer.theme-light {
  background: var(--surface);
}

footer.theme-light .footer-links a {
  color: var(--text-muted);
}

footer.theme-light .footer-links a:hover {
  color: var(--green);
}

footer.theme-light .footer-tagline,
footer.theme-light .footer-copy {
  color: #5e635f; /* 4.6:1 contrast ratio against #f3efe5 */
}

/* Dark Theme Footer (Contrast compliant) */
footer.theme-dark {
  background: #070a13;
}

footer.theme-dark .footer-links a {
  color: #8e9aa8; /* Lighter slate grey for readable links */
}

footer.theme-dark .footer-links a:hover {
  color: var(--green);
}

footer.theme-dark .footer-tagline,
footer.theme-dark .footer-copy {
  color: #8e9aa8; /* 5.3:1 contrast ratio against #070a13 */
}

/* ── Floating Action Buttons (FABs) ── */
.fabs {
  position: fixed;
  bottom: 24px;
  right: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 90;
}

.fab {
  width: 52px; height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: none;
  transition: transform 0.2s, box-shadow 0.2s;
  text-decoration: none;
}

.fab:hover { transform: scale(1.08); }

.fab-directions {
  background: var(--card);
  border: 1.5px solid var(--card-border);
}

.fab-directions svg { width: 22px; height: 22px; fill: var(--text-muted); }

.fab-call {
  background: var(--green);
  box-shadow: 0 4px 18px rgba(0,166,81,0.30);
}

.fab-call svg { width: 22px; height: 22px; fill: var(--on-green); }

/* ── RESPONSIVE MEDIA QUERIES ── */
@media (min-width: 640px) {
  .nav-products-link {
    display: inline-block;
  }
}
