/* RGC Performance Website with Apple Design Aesthetic */

/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

:root {
  /* Professional Red Color Palette */
  --primary-color: #c11e2b;
  /* Rich red primary color */
  --primary-light: #e5383b;
  /* Lighter red for hover states */
  --primary-dark: #a71824;
  /* Darker red for active states */
  --accent-color: #f8b400;
  /* Gold accent for highlights */
  --text-color: #333333;
  /* Dark gray for body text */
  --text-secondary: #666666;
  /* Medium gray for secondary text */
  --text-light: #f9f9f9;
  /* Light gray for text on dark backgrounds */
  --background-light: #f5f5f5;
  /* Light gray for main background */
  --background-dark: #1a1a1a;
  /* Near black for footer/header */
  --background-card: #ffffff;
  /* White for cards and content boxes */
  --border-color: #e0e0e0;
  /* Light gray for borders */
  --success-color: #28a745;
  /* Green for success states */
  --error-color: #dc3545;
  /* Red for error states */
  --button-hover: #b11826;
  /* Hover color for buttons */
  --transition-speed: 0.3s;
  /* Standard transition speed */
}

/* Enable smooth scrolling for the entire page */
html {
  scroll-behavior: smooth;
}

body {
  font-family: "SF Pro Text", "SF Pro Icons", "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: var(--text-color);
  background-color: var(--background-light);
  line-height: 1.47059;
  font-style: normal;
  font-weight: 400;
  letter-spacing: -0.022em;
  position: relative;
  /* For the back-to-top button positioning */
}

/* Container for consistent layout */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
}

/* Page content layout */
.page-content {
  padding: 100px 0;
  background-color: var(--background-light);
}

.page-content .container {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

a {
  text-decoration: none;
  color: var(--primary-color);
  transition: all var(--transition-speed) ease;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "SF Pro Display", "SF Pro Icons", "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: var(--primary-color);
}

h1 {
  font-size: 56px;
  line-height: 1.07143;
  font-weight: 600;
  letter-spacing: -0.005em;
}

h2 {
  font-size: 38px;
  margin-bottom: 30px;
  margin-top: 40px;
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: -0.003em;
}

h3 {
  font-size: 28px;
  margin-bottom: 20px;
  margin-top: 30px;
  line-height: 1.10722;
  font-weight: 600;
  letter-spacing: .004em;
}

p {
  font-size: 17px;
  line-height: 1.8;
  margin-bottom: 25px;
  font-weight: 400;
  letter-spacing: -0.022em;
}

/* Header */
header {
  background-color: var(--background-dark);
  backdrop-filter: saturate(180%) blur(20px);
  position: sticky;
  top: 0;
  z-index: 9999;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 60px;
  /* Increased from 44px */
  padding: 0 22px;
}

nav ul {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 35px;
  /* Increased from 30px */
}

nav ul li {
  display: inline-block;
}

nav ul li a {
  color: var(--text-light);
  opacity: 0.9;
  font-size: 14px;
  /* Increased from 12px */
  font-weight: 400;
  transition: all var(--transition-speed) ease;
  padding: 8px 0;
  /* Added padding */
}

nav ul li a:hover {
  opacity: 1;
  color: var(--primary-color);
  /* Changed to red */
}

.logo {
  display: flex;
  align-items: center;
  margin-right: 25px;
}

.logo img {
  width: 36px;
  /* Increased from 30px */
  height: 36px;
  /* Increased from 30px */
  border-radius: 50%;
}

.contact-button {
  background-color: var(--primary-color);
  padding: 8px 16px;
  /* Increased from 5px 10px */
  border-radius: 6px;
  /* Increased from 4px */
  color: var(--text-light) !important;
  opacity: 1 !important;
  font-weight: 600 !important;
  letter-spacing: 0.5px;
}

.contact-button:hover {
  background-color: var(--primary-light);
  color: var(--text-light) !important;
  transform: scale(1.05);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Hero Section */
.hero {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  height: 580px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: white;
  position: relative;
  overflow: hidden;
  background-color: #000;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.4));
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 980px;
  padding: 0 20px;
}

.hero h1 {
  margin-bottom: 10px;
  color: var(--text-light);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero h2 {
  font-size: 28px;
  font-weight: 400;
  margin-bottom: 20px;
  color: var(--text-light);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-links {
  margin-top: 25px;
}

/* Buttons with Enhanced Hover Effects */
.primary-button {
  display: inline-block;
  background-color: var(--primary-color);
  color: white;
  padding: 14px 28px;
  border-radius: 6px;
  font-size: 17px;
  font-weight: 500;
  text-align: center;
  transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  letter-spacing: 0.5px;
}

.primary-button:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.1);
  transform: translateX(-100%);
  transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.primary-button:hover {
  background-color: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(193, 30, 43, 0.3);
}

.primary-button:hover:before {
  transform: translateX(100%);
}

.secondary-button {
  display: inline-block;
  background-color: transparent;
  color: var(--primary-color);
  padding: 13px 26px;
  border-radius: 6px;
  font-size: 17px;
  font-weight: 500;
  text-align: center;
  transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
  border: 1px solid var(--primary-color);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  letter-spacing: 0.5px;
}

.secondary-button:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(193, 30, 43, 0.05);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
  z-index: -1;
}

.secondary-button:hover {
  color: white;
  border-color: var(--primary-light);
  background-color: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(193, 30, 43, 0.2);
}

.secondary-button:hover:before {
  transform: scaleX(1);
  transform-origin: left;
}

.text-button {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 16px;
  /* Increased from 12px */
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
  padding: 5px;
  position: relative;
}

.text-button:after {
  content: '';
  position: absolute;
  width: 0;
  height: 1px;
  bottom: 0;
  left: 50%;
  background-color: var(--primary-color);
  transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.text-button:hover {
  color: var(--primary-color);
}

.text-button:hover:after {
  width: 100%;
  left: 0;
}

.button-container {
  margin-top: 30px;
}

/* Content Sections with Fade-In Animation */
.content-section {
  display: flex;
  align-items: center;
  padding: 100px 20px;
  max-width: 1200px;
  margin: 0 auto;
  gap: 60px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.content-section.visible {
  opacity: 1;
  transform: translateY(0);
}

.reverse-section {
  flex-direction: row-reverse;
}

.section-container {
  flex: 1;
  max-width: 550px;
}

.section-container h2 {
  color: var(--primary-color);
  margin-bottom: 25px;
}

.section-container p {
  margin-bottom: 20px;
  line-height: 1.6;
  color: var(--text-color);
}

.image-container {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.section-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
  transition: transform 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.section-image:hover {
  transform: scale(1.03);
}

/* Calculator Section */
.calculator-section {
  background-color: var(--background-light);
  color: var(--text-color);
  padding: 100px 20px;
  text-align: center;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
  position: relative;
  border-top: 1px solid #e0e0e0;
  border-bottom: 1px solid #e0e0e0;
}

.calculator-section.visible {
  opacity: 1;
  transform: translateY(0);
}

.calculator-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
  max-width: 1200px;
  margin: 40px auto 0;
}

.calculator-form {
  flex: 1;
  min-width: 300px;
  max-width: 550px;
  background-color: var(--background-card);
  padding: 40px;
  border-radius: 8px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.calculator-results {
  flex: 1;
  min-width: 300px;
  max-width: 550px;
  background-color: var(--background-card);
  padding: 40px;
  border-radius: 8px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
  text-align: left;
  display: flex;
  flex-direction: column;
  border-left: 3px solid var(--primary-color);
}

.calculator-results h3 {
  margin-bottom: 30px;
  color: var(--primary-color);
  text-align: center;
}

.result-item {
  display: flex;
  justify-content: space-between;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 1px solid #f0f0f0;
}

.result-item.total {
  margin-top: 10px;
  padding-top: 15px;
  border-top: 1px solid #e0e0e0;
  font-weight: 600;
  font-size: 18px;
}

.result-item.grand-total {
  margin-top: 5px;
  padding-top: 15px;
  font-weight: 700;
  font-size: 20px;
  color: var(--primary-color);
  border-bottom: none;
}

.calculator-results .disclaimer {
  margin-top: 20px;
  margin-bottom: 30px;
  font-size: 14px;
  color: var(--text-secondary);
  font-style: italic;
}

.calculator-results .secondary-button {
  align-self: center;
  margin-top: 10px;
}

#calculate-button {
  margin-top: 15px;
  width: 100%;
}

/* Estimate Details Section */
.estimate-details {
  margin-top: 25px;
  padding: 15px;
  background-color: rgba(240, 244, 248, 0.5);
  border-radius: 6px;
  font-size: 14px;
  color: var(--text-secondary);
}

.estimate-details p {
  margin-bottom: 8px;
  font-size: 14px;
}

.estimate-details p:first-child {
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--primary-color);
}

/* Services Section - Changed to light background */
.services-section {
  background-color: var(--background-light);
  color: var(--text-color);
  padding: 100px 20px;
  text-align: center;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
  position: relative;
  border-top: 1px solid #e0e0e0;
  border-bottom: 1px solid #e0e0e0;
}

.services-section.visible {
  opacity: 1;
  transform: translateY(0);
}

.section-heading {
  max-width: 550px;
  flex: 1;
  
}

.section-heading h2 {
  color: var(--primary-color);
  margin-bottom: 25px;
}

.section-heading p {
  color: var(--text-color);
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 20px;
}

.service-cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.service-card {
  background-color: var(--background-card);
  border-radius: 8px;
  padding: 40px 30px;
  text-align: left;
  max-width: 350px;
  transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
  border: none;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
}

.service-card:hover {
  transform: translateY(-8px);
  background-color: var(--background-card);
  box-shadow: 0 15px 35px rgba(193, 30, 43, 0.15);
  border-left: 3px solid var(--primary-color);
}

.service-card h3 {
  color: var(--primary-color);
  font-size: 24px;
  margin-bottom: 16px;
}

.service-card p {
  margin-bottom: 24px;
  color: var(--text-color);
  opacity: 0.9;
}

/* Pricing Section Styles - Apple-inspired Design */
.pricing-section {
  background-color: var(--background-light);
  padding: 100px 0;
  text-align: center;
}

.pricing-section h2 {
  margin-bottom: 20px;
  color: var(--primary-color);
}

.section-intro {
  max-width: 800px;
  margin: 0 auto 50px;
  font-size: 18px;
  color: var(--text-secondary);
}

.pricing-packages {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  margin: 0 auto;
  max-width: 1200px;
}

.package {
  background-color: var(--background-card);
  border-radius: 12px;
  overflow: hidden;
  width: 350px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  border: 1px solid var(--border-color);
  position: relative;
}

.package:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  border-color: var(--primary-light);
}

.package.featured {
  transform: scale(1.05);
  box-shadow: 0 15px 40px rgba(193, 30, 43, 0.2);
  border: 2px solid var(--primary-color);
  z-index: 2;
}

.package.featured:hover {
  transform: scale(1.05) translateY(-10px);
}

.package-tag {
  position: absolute;
  top: 15px;
  right: 15px;
  background-color: white;
  color: var(--primary-color);
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 20px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.package-header {
  padding: 30px 20px;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
  color: white;
  text-align: center;
}

.package-header h3 {
  color: white;
  margin-bottom: 10px;
  font-size: 24px;
}

.price {
  font-size: 42px;
  font-weight: 700;
  margin-bottom: 10px;
}

.package-content {
  padding: 30px 25px;
  text-align: left;
}

.package-features {
  list-style: none;
  margin-bottom: 25px;
}

.package-features li {
  padding: 12px 0;
  border-bottom: 1px solid var(--border-color);
  position: relative;
  padding-left: 30px;
  line-height: 1.4;
}

.package-features li:before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--primary-color);
  font-weight: bold;
}

.package-features li:last-child {
  border-bottom: none;
  margin-bottom: 10px;
}

.package-note {
  margin-bottom: 25px;
  font-size: 14px;
  color: var(--text-secondary);
  font-style: italic;
}

.pricing-note {
  max-width: 800px;
  margin: 50px auto 0;
  font-size: 14px;
  color: var(--text-secondary);
  padding: 20px;
  background-color: rgba(0, 0, 0, 0.03);
  border-radius: 8px;
}

/* How it Works Section */
.how-it-works {
  padding: 100px 0;
  background-color: var(--background-card);
}

.service-steps {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  margin: 50px auto 0;
}

.step {
  display: flex;
  width: calc(33.333% - 20px);
  min-width: 300px;
  margin-bottom: 20px;
}

.step-number {
  background-color: var(--primary-color);
  color: white;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 24px;
  margin-right: 20px;
  flex-shrink: 0;
}

.step-content h3 {
  margin-bottom: 10px;
  color: var(--primary-color);
}

/* FAQ Section */
.faq-section {
  padding: 100px 0;
  background-color: var(--background-light);
}

.faq-section h2 {
  margin-bottom: 50px;
  text-align: center;
  font-size: 42px;
}

.faq-item {
  margin-bottom: 35px;
  padding-bottom: 35px;
  border-bottom: 1px solid var(--border-color);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-item h3 {
  margin-bottom: 20px;
  color: var(--primary-color);
  font-size: 24px;
  line-height: 1.4;
}

.faq-item p {
  margin-bottom: 15px;
  line-height: 1.8;
  font-size: 17px;
  color: var(--text-secondary);
}

/* CTA Section */
.cta-section {
  padding: 100px 0;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
  color: white;
  text-align: center;
}

.cta-section h2 {
  color: white;
  margin-bottom: 20px;
}

.cta-section p {
  color: rgba(255, 255, 255, 0.9);
  max-width: 700px;
  margin: 0 auto 30px;
  font-size: 18px;
}

.primary-button.large {
  padding: 16px 40px;
  font-size: 18px;
  border: 2px solid white;
  background-color: white;
  color: var(--primary-color);
}

.primary-button.large:hover {
  background-color: transparent;
  color: white;
}

@media (max-width: 1068px) {
  .pricing-packages {
    flex-direction: column;
    align-items: center;
  }

  .package {
    width: 100%;
    max-width: 500px;
  }

  .package.featured {
    transform: scale(1);
    order: -1;
  }

  .package.featured:hover {
    transform: translateY(-10px);
  }

  .step {
    width: 100%;
  }
}

/* Footer */
footer {
  background-color: var(--background-dark);
  color: var(--text-light);
  padding: 60px 20px;
  /* Increased padding for more space */
  font-size: 14px;
  /* Increased from 12px */
  border-top: 3px solid var(--primary-color);
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-columns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 50px;
  /* Increased gap between columns */
  padding: 20px 0 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-contact p {
  margin-bottom: 12px;
  /* Increased from 10px */
  font-size: 16px;
  /* Increased from 12px */
  color: var(--text-light);
  line-height: 1.5;
}

.footer-contact a {
  color: var(--text-light);
  font-size: 16px;
  transition: color 0.3s ease;
}

.footer-contact a:hover {
  color: var(--primary-color);
  /* Changed to red */
}

.footer-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  /* Increased from 10px */
}

.footer-links .text-button {
  color: #9b9b9b;
}

.footer-social {
  display: flex;
  justify-content: flex-end;
  align-items: flex-start;
  gap: 24px;
  /* Increased from 20px */
}

.social-icon {
  width: 42px;
  /* Increased from 36px */
  height: 42px;
  /* Increased from 36px */
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  padding: 8px;
  /* Increased from 6px */
  position: relative;
  transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.social-icon::before {
  content: '';
  position: absolute;
  top: -1px;
  left: -1px;
  right: -1px;
  bottom: -1px;
  border-radius: 50%;
  background: var(--primary-color);
  opacity: 0;
  transform: scale(0.8);
  transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
  z-index: 0;
}

.social-icon img {
  width: 24px;
  /* Increased from 22px */
  height: 24px;
  /* Increased from 22px */
  position: relative;
  z-index: 2;
  transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
  filter: brightness(2);
}

.social-icon:hover {
  box-shadow: 0 0 15px rgba(193, 30, 43, 0.5);
  /* Red glow effect */
}

.social-icon:hover::before {
  opacity: 0.9;
  transform: scale(1);
}

.social-icon:hover img {
  filter: brightness(5);
  transform: scale(1.1);
}

.footer-copyright {
  padding-top: 25px;
  /* Increased from 20px */
  font-size: 14px;
  /* Increased from 12px */
  color: #9b9b9b;
  text-align: center;
}

/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: -60px;
  right: 30px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: var(--primary-color);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  z-index: 999;
  opacity: 0;
}

.back-to-top.visible {
  bottom: 30px;
  opacity: 1;
}

.back-to-top:hover {
  background-color: var(--primary-light);
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.back-to-top svg {
  width: 20px;
  height: 20px;
  transition: transform 0.3s ease;
}

.back-to-top:hover svg {
  transform: translateY(-3px);
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 10000;
  backdrop-filter: blur(5px);
}

.modal-content {
  background-color: white;
  margin: 5% auto;
  padding: 40px;
  border-radius: 8px;
  max-width: 700px;
  max-height: 85vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.modal-content h2 {
  color: var(--primary-color);
  font-size: 32px;
  margin-bottom: 20px;
  border-bottom: 2px solid var(--border-color);
  padding-bottom: 10px;
}

.modal-content h3 {
  color: var(--primary-color);
  font-size: 20px;
  margin: 25px 0 15px;
}

.modal-content p {
  margin-bottom: 15px;
  line-height: 1.6;
}

.modal-content ul {
  margin: 15px 0;
  padding-left: 20px;
}

.modal-content li {
  margin-bottom: 8px;
  line-height: 1.6;
}

.close {
  position: absolute;
  top: 20px;
  right: 25px;
  color: var(--text-secondary);
  font-size: 28px;
  font-weight: 400;
  cursor: pointer;
  transition: all var(--transition-speed);
}

.close:hover {
  color: var(--primary-color);
}

/* Forms in Modals */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-weight: 500;
  margin-bottom: 8px;
  font-size: 16px;
  color: var(--primary-color);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-size: 16px;
  font-family: inherit;
  transition: all var(--transition-speed);
  background-color: #f9f9f9;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(193, 30, 43, 0.1);
  background-color: white;
}

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



/* Responsive Styles */
@media (max-width: 1068px) {
  h1 {
    font-size: 40px;
  }

  h2 {
    font-size: 36px;
  }

  .content-section {
    flex-direction: column;
    gap: 40px;
  }

  .reverse-section {
    flex-direction: column;
  }
  .section-heading {
      max-width: 600px;
      text-align: center;
    }

  .section-container {
    max-width: 600px;
    text-align: center;
  }

  .footer-columns {
    grid-template-columns: 1fr;
    gap: 30px;
    text-align: center;
  }

  .footer-links {
    align-items: center;
  }

  .footer-social {
    justify-content: center;
  }

  .calculator-container {
    flex-direction: column;
    align-items: center;
  }

  .calculator-form,
  .calculator-results {
    max-width: 100%;
  }

  .pricing-packages {
    flex-direction: column;
    align-items: center;
  }

  .package {
    width: 100%;
    max-width: 500px;
  }

  .package.featured {
    transform: scale(1);
    order: -1;
  }

  .package.featured:hover {
    transform: translateY(-10px);
  }

  .step {
    width: 100%;
  }
}





@media (max-width: 734px) {
  
  h1 {
    font-size: 32px;
  }

  h2 {
    font-size: 28px;
  }

  h3 {
    font-size: 24px;
  }

  .hero {
    height: 500px;
  }

  .hero h2 {
    font-size: 21px;
  }

  .content-section {
    padding: 60px 20px;
  }

  .service-card {
    max-width: 100%;
  }

  .modal-content {
    margin: 10% 5%;
    padding: 25px 20px;
  }

  .back-to-top {
    right: 20px;
    width: 40px;
    height: 40px;
  }

  .back-to-top.visible {
    bottom: 20px;
  }
}



/* Hamburger Menu Styles */
.hamburger-menu {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1000;
  position: relative;
  margin-left: auto;
}

.hamburger-menu span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--text-light);
  margin: 5px 0;
  transition: all 0.3s ease;
}

/* Hamburger Animation */
.hamburger-menu.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger-menu.active span:nth-child(2) {
  opacity: 0;
}

.hamburger-menu.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

/* Prevent body scrolling when menu is open */
body.menu-open {
  overflow: hidden;
}

@media (max-width: 700px) {

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    /* Spread out the left and right parts */
    height: 60px;
    padding: 0 22px;
  }

  /* Display hamburger button */
  .hamburger-menu {
    display: block;
  }

  /* Mobile navigation menu: off-screen by default */
  .navigation {
    position: fixed;
    top: 60px;
    right: -300px;
    /* hide it off-screen */
    display: none;
    width: 300px;
    height: calc(100vh - 60px);
    background-color: var(--background-dark);
    transition: right 0.3s ease;
    overflow-y: auto;
    z-index: 999;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
  }

  /* When toggled, bring the menu onscreen */
  .navigation.active {
    right: 0;
    display: block;
  }

  /* Vertical nav list styling */
  nav ul {
    flex-direction: column;
    padding: 20px 0;
    align-items: flex-start;
  }

  nav ul li {
    width: 100%;
    text-align: left;
    padding: 0 30px;
  }

  nav ul li a {
    padding: 15px 0;
    display: block;
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  
}
