/* ========================================
   ROCKY TOP PAINTING & CONSTRUCTION LLC
   Main Stylesheet
   ======================================== */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@400;500;600;700&family=Montserrat:wght@400;500;600;700;800;900&family=Open+Sans:wght@400;500;600;700&display=swap');

/* ----------------------------------------
   DESIGN TOKENS
   ---------------------------------------- */
:root {
  /* Brand Colors */
  --lime: #6DBE2E;
  --lime-dark: #5aa322;
  --lime-light: #7fd43a;
  --charcoal: #1A1A1A;
  --charcoal-mid: #2a2a2a;
  --charcoal-light: #333333;
  --white: #FFFFFF;
  --off-white: #F5F5F5;
  --text-dark: #222222;
  --text-muted: #555555;
  --text-light: #888888;
  --border: #DDDDDD;

  /* Typography */
  --font-display: 'Oswald', 'Montserrat', sans-serif;
  --font-heading: 'Montserrat', sans-serif;
  --font-body: 'Open Sans', sans-serif;

  /* Type Scale */
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-sm: clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1rem + 0.75vw, 1.5rem);
  --text-xl: clamp(1.5rem, 1.2rem + 1.25vw, 2.25rem);
  --text-2xl: clamp(2rem, 1.2rem + 2.5vw, 3.5rem);
  --text-3xl: clamp(2.5rem, 1rem + 4vw, 5rem);
  --text-hero: clamp(2.8rem, 1rem + 5.5vw, 6rem);

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* Layout */
  --content-narrow: 640px;
  --content-default: 960px;
  --content-wide: 1200px;
  --header-height: 72px;

  /* Radius */
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 10px;
  --radius-xl: 16px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.12);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.12);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.18);

  /* Transitions */
  --transition: 200ms cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

body {
  min-height: 100dvh;
  line-height: 1.6;
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--text-dark);
  background-color: var(--white);
}

img, picture, video, canvas {
  display: block;
  max-width: 100%;
  height: auto;
}

ul[role='list'], ol[role='list'] { list-style: none; }

input, button, textarea, select { font: inherit; color: inherit; }

h1, h2, h3, h4, h5, h6 {
  text-wrap: balance;
  line-height: 1.15;
}

p, li, figcaption {
  text-wrap: pretty;
  max-width: 72ch;
}

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

button { cursor: pointer; background: none; border: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ----------------------------------------
   STICKY HEADER
   ---------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--charcoal);
  height: var(--header-height);
  display: flex;
  align-items: center;
  border-bottom: 2px solid rgba(109, 190, 46, 0.3);
  transition: box-shadow var(--transition), height var(--transition);
}

.site-header.scrolled {
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
  height: 64px;
}

.header-inner {
  width: 100%;
  max-width: var(--content-wide);
  margin: 0 auto;
  padding: 0 var(--space-6);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
}

/* Logo */
.site-logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
  flex-shrink: 0;
}

.site-logo svg {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.logo-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-sm);
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.logo-sub {
  font-family: var(--font-body);
  font-size: 0.65rem;
  color: var(--lime);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}

/* Nav */
.site-nav {
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

.nav-link {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-md);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: color var(--transition), background var(--transition);
}

.nav-link:hover,
.nav-link.active {
  color: var(--lime);
  background: rgba(109, 190, 46, 0.1);
}

.nav-phone {
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--lime);
  text-decoration: none;
  padding: var(--space-2) var(--space-4);
  border: 2px solid var(--lime);
  border-radius: var(--radius-md);
  transition: background var(--transition), color var(--transition);
  white-space: nowrap;
  margin-left: var(--space-2);
}

.nav-phone:hover {
  background: var(--lime);
  color: var(--charcoal);
}

/* Mobile menu toggle */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: var(--space-2);
  cursor: pointer;
  background: none;
  border: none;
}

.mobile-menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: transform var(--transition), opacity var(--transition);
}

.mobile-menu-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mobile-menu-toggle.open span:nth-child(2) { opacity: 0; }
.mobile-menu-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav */
.mobile-nav {
  display: none;
  position: absolute;
  top: var(--header-height);
  left: 0;
  right: 0;
  background: var(--charcoal);
  flex-direction: column;
  border-top: 2px solid var(--lime);
  padding: var(--space-4) 0;
  z-index: 99;
}

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

.mobile-nav .nav-link {
  padding: var(--space-3) var(--space-6);
  border-radius: 0;
  font-size: var(--text-base);
}

.mobile-nav .nav-phone {
  margin: var(--space-3) var(--space-6) 0;
  text-align: center;
  display: block;
}

/* ----------------------------------------
   BUTTONS
   ---------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-8);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: var(--text-sm);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: all var(--transition);
  cursor: pointer;
  border: 2px solid transparent;
  white-space: nowrap;
}

.btn-primary {
  background: var(--lime);
  color: var(--charcoal);
  border-color: var(--lime);
}

.btn-primary:hover {
  background: var(--lime-dark);
  border-color: var(--lime-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(109, 190, 46, 0.4);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}

.btn-outline:hover {
  background: var(--white);
  color: var(--charcoal);
  transform: translateY(-1px);
}

.btn-dark {
  background: var(--charcoal);
  color: var(--white);
  border-color: var(--charcoal);
}

.btn-dark:hover {
  background: var(--charcoal-mid);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-lg {
  padding: var(--space-4) var(--space-10);
  font-size: var(--text-base);
}

/* ----------------------------------------
   SECTION UTILITIES
   ---------------------------------------- */
.section {
  padding-block: clamp(var(--space-12), 7vw, var(--space-24));
}

.section-white { background: var(--white); }
.section-gray { background: var(--off-white); }
.section-dark { background: var(--charcoal); color: var(--white); }
.section-lime { background: var(--lime); color: var(--charcoal); }

.container {
  width: 100%;
  max-width: var(--content-wide);
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.container-narrow {
  width: 100%;
  max-width: var(--content-default);
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.section-eyebrow {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--lime);
  display: block;
  margin-bottom: var(--space-3);
}

.section-title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.1;
  margin-bottom: var(--space-4);
}

.section-title-white {
  color: var(--white);
}

.section-subtitle {
  font-size: var(--text-base);
  color: var(--text-muted);
  max-width: 60ch;
  line-height: 1.7;
  margin-bottom: var(--space-10);
}

.section-subtitle-white {
  color: rgba(255,255,255,0.75);
}

/* ----------------------------------------
   FOOTER
   ---------------------------------------- */
.site-footer {
  background: var(--charcoal);
  color: var(--white);
  padding-block: var(--space-16) var(--space-8);
  border-top: 3px solid var(--lime);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr;
  gap: var(--space-12);
  margin-bottom: var(--space-12);
}

.footer-col h4 {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--lime);
  margin-bottom: var(--space-5);
}

.footer-col p {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.65);
  line-height: 1.7;
  margin-bottom: var(--space-3);
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.footer-col ul li a {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  transition: color var(--transition);
}

.footer-col ul li a:hover { color: var(--lime); }

.footer-contact-item {
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
  margin-bottom: var(--space-3);
}

.footer-contact-item .icon {
  color: var(--lime);
  flex-shrink: 0;
  margin-top: 2px;
}

.footer-contact-item a {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  transition: color var(--transition);
}

.footer-contact-item a:hover { color: var(--lime); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: var(--space-6);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.footer-bottom p {
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.4);
  max-width: none;
}

/* BBB Badge */
.bbb-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-md);
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-xs);
  font-weight: 700;
  color: rgba(255,255,255,0.75);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: var(--space-3);
}

/* ----------------------------------------
   RESPONSIVE
   ---------------------------------------- */
@media (max-width: 900px) {
  .site-nav { display: none; }
  .mobile-menu-toggle { display: flex; }
  .nav-phone { display: none; }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .footer-grid .footer-col:first-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}
