/* UpTop Roofing Services - Custom Styles */
/* Color Palette:
   Primary Navy: #0A2540
   Primary Red: #DC2626
   Light Gray: #F3F4F6
   Dark Gray: #1F2937
   White: #FFFFFF
*/

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
  line-height: 1.6;
  color: #1f2937;
  background-color: #ffffff;
}

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

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

/* Container */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}

.container-md {
  max-width: 1024px;
  margin: 0 auto;
  padding: 0 1rem;
}

.container-sm {
  max-width: 768px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Header/Navigation */
.header {
  background-color: #ffffff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  max-width: 1280px;
  margin: 0 auto;
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: #DC2626;
  text-transform: uppercase;
  letter-spacing: 1px;
}

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

.nav-links a {
  color: #4b5563;
  font-weight: 500;
  transition: color 0.3s;
}

.nav-links a:hover {
  color: #DC2626;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: #0A2540;
}

.mobile-menu {
  display: none;
  background-color: #ffffff;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.mobile-menu.active {
  display: block;
}

.mobile-menu ul {
  list-style: none;
  padding: 1rem;
}

.mobile-menu li {
  padding: 0.75rem 0;
  border-bottom: 1px solid #e5e7eb;
}

.mobile-menu a {
  color: #4b5563;
  font-weight: 500;
}

/* Hero Section - New Design */
.hero {
  background: linear-gradient(135deg, #0A2540 0%, #1e3a5f 100%);
  color: #ffffff;
  padding: 6rem 0;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><rect width="100" height="100" fill="none"/><path d="M0 0L100 100M100 0L0 100" stroke="rgba(255,255,255,0.03)" stroke-width="1"/></svg>');
  opacity: 0.5;
}

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

.hero h1 {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: -1px;
}

.hero p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  opacity: 0.95;
  max-width: 700px;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.875rem 2rem;
  border-radius: 0.375rem;
  font-weight: 600;
  text-align: center;
  transition: all 0.3s;
  cursor: pointer;
  border: none;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn-primary {
  background-color: #DC2626;
  color: #ffffff;
}

.btn-primary:hover {
  background-color: #B91C1C;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}

.btn-secondary {
  background-color: #0A2540;
  color: #ffffff;
}

.btn-secondary:hover {
  background-color: #1e3a5f;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(10, 37, 64, 0.3);
}

.btn-outline {
  background-color: transparent;
  border: 2px solid #DC2626;
  color: #DC2626;
}

.btn-outline:hover {
  background-color: #DC2626;
  color: #ffffff;
}

.btn-lg {
  padding: 1.125rem 2.5rem;
  font-size: 1.125rem;
}

.btn-sm {
  padding: 0.625rem 1.25rem;
  font-size: 0.875rem;
}

/* Section Styles */
.section {
  padding: 5rem 0;
}

.section-navy {
  background-color: #0A2540;
  color: #ffffff;
}

.section-gray {
  background-color: #F3F4F6;
}

.section-red {
  background-color: #DC2626;
  color: #ffffff;
}

.section-title {
  font-size: 2.5rem;
  font-weight: bold;
  text-align: center;
  margin-bottom: 3rem;
  text-transform: uppercase;
  letter-spacing: -0.5px;
}

.section-navy .section-title,
.section-red .section-title {
  color: #ffffff;
}

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

.grid-cols-1 {
  grid-template-columns: 1fr;
}

.grid-cols-2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid-cols-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-cols-4 {
  grid-template-columns: repeat(4, 1fr);
}

/* Card Styles */
.card {
  background-color: #ffffff;
  border-radius: 0.5rem;
  overflow: hidden;
  transition: all 0.3s;
  border: 1px solid #e5e7eb;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.card-content {
  padding: 2rem;
}

.card-navy {
  background-color: #0A2540;
  color: #ffffff;
  border: none;
}

.card-red {
  background-color: #DC2626;
  color: #ffffff;
  border: none;
}

/* Pricing Cards */
.pricing-card {
  background-color: #ffffff;
  border: 2px solid #e5e7eb;
  border-radius: 0.75rem;
  padding: 2.5rem;
  text-align: center;
  transition: all 0.3s;
}

.pricing-card:hover {
  border-color: #DC2626;
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(220, 38, 38, 0.15);
}

.pricing-card.featured {
  border-color: #DC2626;
  border-width: 3px;
  transform: scale(1.05);
  box-shadow: 0 8px 25px rgba(220, 38, 38, 0.2);
}

.pricing-title {
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 1rem;
  color: #0A2540;
  text-transform: uppercase;
}

.pricing-price {
  font-size: 3rem;
  font-weight: bold;
  color: #DC2626;
  margin-bottom: 0.5rem;
}

.pricing-period {
  font-size: 1rem;
  color: #6b7280;
  margin-bottom: 2rem;
}

.pricing-features {
  list-style: none;
  margin-bottom: 2rem;
  text-align: left;
}

.pricing-features li {
  padding: 0.75rem 0;
  border-bottom: 1px solid #e5e7eb;
  display: flex;
  align-items: flex-start;
}

.pricing-features li:last-child {
  border-bottom: none;
}

.pricing-features li::before {
  content: '✓';
  color: #DC2626;
  font-weight: bold;
  margin-right: 0.75rem;
  font-size: 1.25rem;
}

/* Stats Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 3rem;
  text-align: center;
}

.stat-number {
  font-size: 3.5rem;
  font-weight: bold;
  color: #DC2626;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 1.125rem;
  color: #6b7280;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.section-navy .stat-number {
  color: #ffffff;
}

.section-navy .stat-label {
  color: #dbeafe;
}

/* Process Steps */
.process-step {
  text-align: center;
  padding: 2rem;
  background-color: #ffffff;
  border-radius: 0.5rem;
  transition: all 0.3s;
  position: relative;
}

.process-step:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.process-number {
  width: 4rem;
  height: 4rem;
  background-color: #DC2626;
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: bold;
  margin: 0 auto 1.5rem;
}

.process-step h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: #0A2540;
  text-transform: uppercase;
}

.process-step p {
  color: #6b7280;
  line-height: 1.7;
}

/* Testimonial Card */
.testimonial-card {
  background-color: #ffffff;
  padding: 2.5rem;
  border-radius: 0.75rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  position: relative;
  border-left: 4px solid #DC2626;
}

.testimonial-text {
  font-size: 1.125rem;
  font-style: italic;
  margin-bottom: 1.5rem;
  color: #4b5563;
  line-height: 1.8;
}

.testimonial-author {
  font-weight: bold;
  color: #0A2540;
  font-size: 1.125rem;
}

.testimonial-rating {
  color: #FFA500;
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

/* Checkmark List */
.list-check {
  list-style: none;
  padding: 0;
}

.list-check li {
  padding: 0.875rem 0;
  padding-left: 2rem;
  position: relative;
  font-size: 1.125rem;
  color: #4b5563;
  line-height: 1.7;
}

.list-check li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #DC2626;
  font-weight: bold;
  font-size: 1.25rem;
}

/* Footer */
.footer {
  background-color: #0A2540;
  color: #ffffff;
  padding: 4rem 0 2rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer h3 {
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer ul {
  list-style: none;
}

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

.footer a {
  color: #dbeafe;
  transition: color 0.3s;
}

.footer a:hover {
  color: #DC2626;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
  text-align: center;
  color: #dbeafe;
}

/* Forms */
.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: #1f2937;
  font-size: 0.95rem;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.875rem;
  border: 2px solid #d1d5db;
  border-radius: 0.375rem;
  font-size: 1rem;
  transition: all 0.3s;
  font-family: inherit;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: #DC2626;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

.form-textarea {
  min-height: 150px;
  resize: vertical;
}

/* Consent Box */
.consent-box {
  background-color: #F3F4F6;
  padding: 1.25rem;
  border-radius: 0.5rem;
  margin-bottom: 1.5rem;
  border: 2px solid #e5e7eb;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.consent-box input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  cursor: pointer;
  flex-shrink: 0;
  accent-color: #DC2626;
}

.consent-box label {
  font-size: 0.95rem;
  color: #4b5563;
  line-height: 1.6;
  cursor: pointer;
}

.consent-box a {
  color: #DC2626;
  text-decoration: underline;
  font-weight: 600;
}

.consent-box a:hover {
  color: #B91C1C;
}

/* Success/Error Messages */
.success-message {
  display: none;
  background-color: #10b981;
  color: #ffffff;
  padding: 1rem;
  border-radius: 0.375rem;
  margin-top: 1rem;
  text-align: center;
  font-weight: 600;
}

.success-message.show {
  display: block;
}

.error-message {
  display: none;
  background-color: #ef4444;
  color: #ffffff;
  padding: 1rem;
  border-radius: 0.375rem;
  margin-top: 1rem;
  text-align: center;
  font-weight: 600;
}

.error-message.show {
  display: block;
}

/* Modal/Popup Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(10, 37, 64, 0.85);
  backdrop-filter: blur(4px);
  animation: fadeIn 0.3s ease;
}

.modal.show {
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-content {
  background-color: #ffffff;
  border-radius: 0.75rem;
  max-width: 600px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: slideUp 0.3s ease;
}

.modal-header {
  padding: 2rem 2rem 1rem;
  border-bottom: 2px solid #f3f4f6;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #0A2540;
  color: #ffffff;
  border-radius: 0.75rem 0.75rem 0 0;
}

.modal-header h2 {
  font-size: 1.75rem;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.modal-close {
  background: none;
  border: none;
  font-size: 2.5rem;
  cursor: pointer;
  color: #ffffff;
  line-height: 1;
  padding: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.3s;
}

.modal-close:hover {
  background-color: rgba(255, 255, 255, 0.1);
  transform: rotate(90deg);
}

.modal-body {
  padding: 2rem;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    transform: translateY(50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* FAQ Accordion */
.accordion-item {
  background-color: #ffffff;
  border: 2px solid #e5e7eb;
  border-radius: 0.5rem;
  margin-bottom: 1rem;
  overflow: hidden;
  transition: all 0.3s;
}

.accordion-item:hover {
  border-color: #DC2626;
}

.accordion-header {
  padding: 1.5rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  font-size: 1.125rem;
  color: #0A2540;
  transition: all 0.3s;
  user-select: none;
}

.accordion-header:hover {
  background-color: #f9fafb;
}

.accordion-icon {
  font-size: 1.5rem;
  color: #DC2626;
  transition: transform 0.3s;
  font-weight: bold;
}

.accordion-icon.active {
  transform: rotate(45deg);
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.accordion-content.active {
  max-height: 500px;
}

.accordion-content-inner {
  padding: 0 1.5rem 1.5rem;
  color: #4b5563;
  line-height: 1.7;
  font-size: 1.05rem;
}

/* Utility Classes */
.text-center {
  text-align: center;
}

.text-left {
  text-align: left;
}

.text-right {
  text-align: right;
}

.text-gray {
  color: #6b7280;
}

.text-white {
  color: #ffffff;
}

.mb-2 {
  margin-bottom: 0.5rem;
}

.mb-4 {
  margin-bottom: 1rem;
}

.mb-6 {
  margin-bottom: 1.5rem;
}

.mb-8 {
  margin-bottom: 2rem;
}

.mt-2 {
  margin-top: 0.5rem;
}

.mt-4 {
  margin-top: 1rem;
}

.mt-6 {
  margin-top: 1.5rem;
}

.mt-8 {
  margin-top: 2rem;
}

.flex {
  display: flex;
}

.flex-center {
  justify-content: center;
  align-items: center;
}

.gap-4 {
  gap: 1rem;
}

.img-rounded {
  border-radius: 0.5rem;
}

.img-shadow {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

/* Feature Icons */
.feature-icon {
  width: 4rem;
  height: 4rem;
  background-color: #DC2626;
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 2rem;
}

.section-navy .feature-icon {
  background-color: #ffffff;
  color: #DC2626;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .grid-cols-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }

  .footer-content {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .mobile-menu-btn {
    display: block;
  }

  .hero h1 {
    font-size: 2.25rem;
  }

  .hero p {
    font-size: 1.125rem;
  }

  .section-title {
    font-size: 2rem;
  }

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

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .btn {
    width: 100%;
  }

  .modal-content {
    width: 95%;
  }

  .pricing-card.featured {
    transform: scale(1);
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.875rem;
  }

  .section {
    padding: 3rem 0;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .stat-number {
    font-size: 2.5rem;
  }

  .pricing-price {
    font-size: 2.25rem;
  }
}
