/*
  Purezone Janitorial Inc - Shared Styles
  Color scheme: white background, soft gray sections, blue/green accents
*/

:root {
  --color-bg: #ffffff;
  --color-surface: #f5f7fa; /* soft gray */
  --color-text: #1f2937; /* slate-800 */
  --color-muted: #6b7280; /* gray-500 */
  --color-primary: #1d9bf0; /* blue */
  --color-primary-dark: #177ec4;
  --color-accent: #10b981; /* green */
  --shadow-md: 0 8px 24px rgba(0,0,0,0.08);
  --radius-lg: 14px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Helvetica Neue", Arial, "Apple Color Emoji", "Segoe UI Emoji";
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
}

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

a { color: var(--color-primary); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Layout */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 24px);
}

/* Header (sticky) */
header.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.85);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid rgba(0,0,0,0.06);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: clamp(12px, 2.5vw, 18px) 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: clamp(8px, 2vw, 12px);
  font-weight: 700;
  color: var(--color-text);
  letter-spacing: 0.3px;
}

.brand .logo {
  width: clamp(40px, 8vw, 56px);
  height: clamp(40px, 8vw, 56px);
  border-radius: 8px;
  background: center/cover no-repeat url('./logo.jpeg');
  box-shadow: var(--shadow-md);
}

.nav-links {
  display: flex;
  gap: 20px;
}

.nav-links a {
  color: var(--color-text);
  font-weight: 600;
  padding: clamp(6px, 1.5vw, 10px) clamp(8px, 2vw, 12px);
  border-radius: 8px;
}

.nav-links a:hover,
.nav-links a.active {
  background: var(--color-surface);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  padding: 8px;
  border-radius: 8px;
}

.nav-toggle svg { display: block; }

/* Hero with parallax */
.hero {
  position: relative;
  min-height: 72vh;
  display: grid;
  place-items: center;
  text-align: center;
  color: #0b1b2b;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255,255,255,0.72), rgba(255,255,255,0.86)),
    url('https://images.unsplash.com/photo-1581578731548-c64695cc6952?q=80&w=2070&auto=format&fit=crop');
  background-size: cover;
  background-position: center;
  background-attachment: fixed; /* parallax */
  z-index: -1;
}

.hero .content {
  padding: clamp(40px, 8vw, 80px) clamp(16px, 4vw, 24px);
}

.hero h1 {
  margin: 0 0 clamp(8px, 2vw, 16px) 0;
  font-size: clamp(28px, 4vw, 48px);
}

.hero p {
  margin: 0 auto clamp(20px, 4vw, 32px) auto;
  max-width: 760px;
  color: var(--color-muted);
}

.btn-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

.btn {
  display: inline-block;
  padding: 12px 18px;
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: 0.3px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.btn-primary { background: var(--color-primary); color: #ffffff; box-shadow: var(--shadow-md); }
.btn-primary:hover { transform: translateY(-1px); background: var(--color-primary-dark); text-decoration: none; }

.btn-outline { border: 2px solid var(--color-primary); color: var(--color-primary); }
.btn-outline:hover { background: var(--color-primary); color: #fff; text-decoration: none; }

/* Sections */
section.section {
  padding: clamp(40px, 6vw, 80px) 0;
}

section.alt { background: var(--color-surface); }

.section h2 {
  margin: 0 0 12px 0;
  font-size: clamp(22px, 3.2vw, 34px);
}

.section p.lead { color: var(--color-muted); margin-top: 0; }

.cards {
  margin-top: clamp(20px, 4vw, 32px);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(12px, 2.5vw, 20px);
}

.card {
  background: #fff;
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: var(--radius-lg);
  padding: clamp(16px, 3vw, 24px);
  box-shadow: var(--shadow-md);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(0,0,0,0.10); }

.card h3 { margin-top: 8px; margin-bottom: 6px; }
.card p { margin: 0; color: var(--color-muted); }

/* Map Container */
.map-container {
  margin-top: clamp(20px, 4vw, 32px);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.map-container iframe {
  width: 100%;
  height: clamp(300px, 50vw, 500px);
  border: none;
  border-radius: var(--radius-lg);
}

/* Footer */
footer.site-footer {
  margin-top: 40px;
  background: #0b1b2b; /* deep blue */
  color: #cfe9ff;
}

.footer-top { padding: clamp(24px, 5vw, 48px) 0; }

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: clamp(16px, 4vw, 32px);
}

.footer h4 { margin-top: 0; color: #e6f2ff; }
.footer a { color: #a8dbff; }
.footer a:hover { color: #ffffff; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding: clamp(12px, 2.5vw, 18px) 0;
  font-size: clamp(12px, 2vw, 16px);
  color: #b7d7f7;
}

/* Utilities */
.muted { color: var(--color-muted); }
.accent { color: var(--color-accent); }

/* Animations */
.reveal { opacity: 0; transform: translateY(10px); transition: opacity 600ms ease, transform 600ms ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* Responsive */
@media (max-width: 1200px) {
  .container {
    padding: 0 clamp(20px, 5vw, 32px);
  }
}

@media (max-width: 960px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-links { gap: clamp(12px, 3vw, 20px); }
  .btn-row { gap: clamp(8px, 2vw, 16px); }
}

@media (max-width: 640px) {
  .nav-links { 
    display: none; 
    position: absolute; 
    right: clamp(16px, 4vw, 24px); 
    top: 62px; 
    flex-direction: column; 
    background: #fff; 
    padding: clamp(12px, 3vw, 16px); 
    border-radius: 12px; 
    border: 1px solid rgba(0,0,0,0.06); 
    box-shadow: var(--shadow-md); 
    min-width: 200px;
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: inline-flex; }
  .cards { grid-template-columns: 1fr; }
  .hero h1 { font-size: clamp(24px, 6vw, 36px); }
  .hero p { font-size: clamp(14px, 3vw, 18px); }
  .section h2 { font-size: clamp(20px, 5vw, 28px); }
  .btn {
    padding: clamp(10px, 2.5vw, 14px) clamp(16px, 4vw, 20px);
    font-size: clamp(14px, 3vw, 16px);
  }
}


