/* MR MASTIC - PREMIUM REDESIGN */
/* Professional styling inspired by modern sealant contractor sites */

:root {
  --primary: #0F172A;
  --primary-light: #1A2947;
  --accent: #DC2626;
  --accent-light: #EF4444;
  --success: #059669;
  --text-primary: #1F2937;
  --text-secondary: #6B7280;
  --bg-light: #F9FAFB;
  --bg-white: #FFFFFF;
  --border: #E5E7EB;
  --shadow: 0 4px 6px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 25px rgba(0,0,0,0.15);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: var(--text-primary);
  line-height: 1.6;
  background: var(--bg-white);
}

/* TYPOGRAPHY */
h1 {
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  line-height: 1.3;
}

h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

h4 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

/* NAVIGATION */
.navbar {
  background: var(--primary);
  padding: 1.5rem 2rem;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow);
}

.navbar-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--bg-white);
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 2rem;
}

.nav-links a {
  color: var(--bg-white);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}

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

.cta-button {
  background: var(--accent) !important;
  color: white !important;
  padding: 0.75rem 1.5rem !important;
  border-radius: 0.5rem;
  font-weight: 600;
  transition: all 0.3s;
}

.cta-button:hover {
  background: var(--accent-light) !important;
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

/* CONTAINERS */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

main {
  min-height: calc(100vh - 200px);
}

/* HERO SECTION */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: white;
  padding: 7rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 50%, rgba(220, 38, 38, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(220, 38, 38, 0.05) 0%, transparent 50%);
  pointer-events: none;
}

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

/* CARDS */
.card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 2rem;
  transition: all 0.3s;
}

.card:hover {
  box-shadow: var(--shadow-lg);
  border-color: var(--accent);
  transform: translateY(-5px);
}

/* SERVICE CARDS */
.service-card {
  background: white;
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all 0.3s;
}

.service-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-8px);
}

.service-card-icon {
  font-size: 3rem;
  padding: 2rem;
  text-align: center;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: white;
}

.service-card-content {
  padding: 2rem;
}

.service-card-content h3 {
  color: var(--primary);
  margin-bottom: 1rem;
}

.service-card-content p {
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

.service-card-link {
  display: inline-block;
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s;
}

.service-card-link:hover {
  color: var(--accent-light);
  margin-left: 0.5rem;
}

/* SECTIONS */
section {
  padding: 5rem 2rem;
}

section h2 {
  text-align: center;
  margin-bottom: 3rem;
  color: var(--primary);
}

section > .container > p:first-of-type {
  text-align: center;
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: -2rem auto 3rem;
}

/* STATS SECTION */
.stats-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 3rem;
  text-align: center;
}

.stat-item h3 {
  font-size: 3rem;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.stat-item p {
  font-size: 1rem;
  color: var(--text-secondary);
  margin: 0;
}

/* TESTIMONIALS */
.testimonial {
  background: var(--bg-white);
  border-left: 4px solid var(--accent);
  padding: 2rem;
  margin-bottom: 2rem;
  border-radius: 0.5rem;
  box-shadow: var(--shadow);
}

.testimonial-text {
  font-style: italic;
  margin-bottom: 1rem;
  color: var(--text-primary);
  font-size: 1rem;
}

.testimonial-author {
  font-weight: 600;
  color: var(--primary);
}

.testimonial-date {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* PORTFOLIO/PROJECTS */
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.project-card {
  background: var(--bg-white);
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all 0.3s;
}

.project-card:hover {
  box-shadow: var(--shadow-lg);
  transform: scale(1.02);
}

.project-image {
  width: 100%;
  height: 250px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 3rem;
}

.project-content {
  padding: 1.5rem;
}

.project-content h3 {
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.project-content p {
  font-size: 0.9rem;
  margin: 0;
}

/* CREDENTIALS */
.credential-item {
  text-align: center;
  padding: 2rem;
  background: var(--bg-light);
  border-radius: 0.75rem;
  transition: all 0.3s;
}

.credential-item:hover {
  background: var(--bg-white);
  box-shadow: var(--shadow);
}

.credential-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

/* BUTTONS */
a, button {
  cursor: pointer;
}

a.button,
button {
  display: inline-block;
  padding: 1rem 2rem;
  background: var(--accent);
  color: white;
  border: none;
  border-radius: 0.5rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s;
  font-size: 1rem;
}

a.button:hover,
button:hover {
  background: var(--accent-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

a.button-outline {
  background: transparent;
  border: 2px solid white;
  color: white;
}

a.button-outline:hover {
  background: white;
  color: var(--primary);
}

/* FOOTER */
footer {
  background: var(--primary);
  color: #D1D5DB;
  padding: 4rem 2rem 2rem;
}

footer h4 {
  color: white;
  margin-bottom: 1.5rem;
}

footer a {
  color: #D1D5DB;
  text-decoration: none;
  transition: color 0.3s;
}

footer a:hover {
  color: var(--accent);
}

footer ul {
  list-style: none;
  padding: 0;
}

footer ul li {
  margin-bottom: 0.75rem;
}

footer p {
  color: #9CA3AF;
  margin: 0;
  font-size: 0.95rem;
}

.footer-bottom {
  border-top: 1px solid var(--primary-light);
  padding-top: 2rem;
  text-align: center;
  color: #9CA3AF;
  margin-top: 2rem;
}

/* BADGE */
.badge {
  display: inline-block;
  background: rgba(255,255,255,0.2);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 2rem;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

/* GRID */
.grid {
  display: grid;
  gap: 2rem;
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.grid-4 {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

/* RESPONSIVE */
@media (max-width: 768px) {
  h1 {
    font-size: 2.5rem;
  }

  h2 {
    font-size: 1.8rem;
  }

  .nav-links {
    gap: 1rem;
    font-size: 0.9rem;
  }

  section {
    padding: 3rem 1.5rem;
  }

  .hero {
    padding: 4rem 1.5rem;
  }

  .stats-container {
    gap: 2rem;
  }

  .stat-item h3 {
    font-size: 2rem;
  }

  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  .nav-links {
    flex-direction: column;
    gap: 0.5rem;
  }

  .navbar-content {
    flex-direction: column;
    gap: 1rem;
  }

  section {
    padding: 2rem 1rem;
  }

  .card {
    padding: 1.5rem;
  }
}
