@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Outfit:wght@400;600;700;800&display=swap');

:root {
  --primary: #0A192F; /* Deep Dark Blue */
  --primary-light: #172A45;
  --secondary: #E63946; /* Vibrant Red Accent */
  --secondary-hover: #D62828;
  --dark: #1C2025; /* Charcoal */
  --dark-light: #2A3038;
  --light: #F8F9FA;
  --white: #FFFFFF;
  --text: #333333;
  --text-light: #666666;
  --border: #E5E7EB;
  
  --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);
  
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 20px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', sans-serif;
  color: var(--text);
  line-height: 1.6;
  background-color: var(--light);
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Outfit', sans-serif;
  color: var(--primary);
  line-height: 1.2;
  font-weight: 700;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul {
  list-style: none;
}

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

/* Utilities */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section-padding {
  padding: 80px 0;
}

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-family: 'Outfit', sans-serif;
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
  font-size: 1rem;
}

.btn-primary {
  background-color: var(--secondary);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(230, 57, 70, 0.4);
}

.btn-primary:hover {
  background-color: var(--secondary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(230, 57, 70, 0.5);
}

.btn-secondary {
  background-color: var(--primary);
  color: var(--white);
}

.btn-secondary:hover {
  background-color: var(--primary-light);
  transform: translateY(-2px);
}

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

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

/* Header */
.top-bar {
  background-color: var(--dark);
  color: var(--white);
  padding: 8px 0;
  font-size: 0.875rem;
}

.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.top-bar-contact {
  display: flex;
  gap: 20px;
}

.top-bar-contact a {
  display: flex;
  align-items: center;
  gap: 6px;
}

.top-bar-contact a:hover {
  color: var(--secondary);
}

header {
  background-color: var(--white);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: var(--transition);
}

header.scrolled {
  box-shadow: var(--shadow-md);
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 15px;
  text-decoration: none;
  flex-shrink: 0;
}

.main-logo {
  height: 60px;
  width: auto;
  transition: var(--transition);
  flex-shrink: 0;
  object-fit: contain;
}

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

.logo-line1 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: -0.5px;
}

.logo-line2 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--secondary);
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.desktop-only {
  display: flex;
}

.mobile-only {
  display: none;
}

.logo {
  font-family: 'Outfit', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo span {
  color: var(--secondary);
}

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

.nav-links a {
  font-weight: 500;
  color: var(--primary);
  font-size: 1rem;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--secondary);
  transition: var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 20px;
}

.mobile-menu-btn {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--primary);
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  background-image: linear-gradient(rgba(10, 25, 47, 0.7), rgba(10, 25, 47, 0.8)), url('../images/ridge_caps_roof.png');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: var(--white);
  padding-top: 40px;
}

.hero-content {
  max-width: 800px;
  animation: fadeUp 1s ease-out;
}

.hero-badge {
  display: inline-block;
  background-color: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(4px);
  padding: 8px 16px;
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 20px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero h1 {
  font-size: 4rem;
  color: var(--white);
  margin-bottom: 20px;
  line-height: 1.1;
}

.hero h1 span {
  color: var(--secondary);
}

.hero p {
  font-size: 1.25rem;
  margin-bottom: 30px;
  opacity: 0.9;
}

.hero-btns {
  display: flex;
  gap: 15px;
}

/* Features/Badges Below Hero */
.trust-badges {
  background-color: var(--white);
  box-shadow: var(--shadow-md);
  border-radius: var(--radius-lg);
  padding: 30px;
  display: flex;
  justify-content: space-around;
  margin-top: -50px;
  position: relative;
  z-index: 10;
}

.trust-badge {
  display: flex;
  align-items: center;
  gap: 15px;
}

.trust-icon {
  width: 50px;
  height: 50px;
  background-color: rgba(230, 57, 70, 0.1);
  color: var(--secondary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.trust-text h4 {
  font-size: 1.1rem;
  margin-bottom: 4px;
}

.trust-text p {
  font-size: 0.875rem;
  color: var(--text-light);
}

/* Section Headers */
.section-header {
  text-align: center;
  margin-bottom: 50px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.section-subtitle {
  color: var(--secondary);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.875rem;
  margin-bottom: 10px;
  display: block;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 15px;
}

/* Services */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.service-card {
  background-color: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  border: 1px solid var(--border);
  position: relative;
  top: 0;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-xl);
  border-color: transparent;
}

.service-img {
  height: 220px;
  overflow: hidden;
  position: relative;
}

.service-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.service-card:hover .service-img img {
  transform: scale(1.1);
}

.service-content {
  padding: 25px;
}

.service-icon {
  position: absolute;
  top: 195px;
  right: 25px;
  width: 50px;
  height: 50px;
  background-color: var(--secondary);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  box-shadow: var(--shadow-md);
  z-index: 2;
}

.service-card h3 {
  font-size: 1.25rem;
  margin-bottom: 10px;
  transition: var(--transition);
}

.service-card:hover h3 {
  color: var(--secondary);
}

.service-card p {
  color: var(--text-light);
  margin-bottom: 20px;
  font-size: 0.95rem;
}

.service-link {
  font-weight: 600;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.service-link:hover {
  color: var(--secondary);
}

/* About/Why Choose Us */
.about-section {
  background-color: var(--white);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.about-img {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.about-img::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  box-shadow: inset 0 0 0 10px rgba(255,255,255,0.2);
  z-index: 1;
}

.about-content h2 {
  font-size: 2.25rem;
  margin-bottom: 20px;
}

.about-content p {
  color: var(--text-light);
  margin-bottom: 20px;
}

.feature-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  margin-bottom: 30px;
}

.feature-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
  color: var(--primary);
}

.feature-list li i {
  color: var(--secondary);
}

/* Before and After */
.before-after-section {
  background-color: var(--dark);
  color: var(--white);
}

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

.before-after-container {
  max-width: 900px;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  position: relative;
}

/* CTA Section */
.cta-section {
  background-color: var(--primary);
  color: var(--white);
  text-align: center;
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(230,57,70,0.1) 0%, transparent 60%);
}

.cta-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
  margin: 0 auto;
}

.cta-content h2 {
  color: var(--white);
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.cta-content p {
  font-size: 1.1rem;
  margin-bottom: 30px;
  opacity: 0.9;
}

/* FAQ */
.faq-item {
  background-color: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: 15px;
  overflow: hidden;
}

.faq-question {
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-weight: 600;
  font-family: 'Outfit', sans-serif;
  color: var(--primary);
}

.faq-question i {
  transition: transform 0.3s ease;
  color: var(--secondary);
}

.faq-item.active .faq-question i {
  transform: rotate(180deg);
}

.faq-answer {
  padding: 0 20px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: var(--text-light);
}

.faq-item.active .faq-answer {
  padding: 0 20px 20px;
  max-height: 300px;
}

/* Footer */
footer {
  background-color: var(--dark);
  color: var(--white);
  padding: 80px 0 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  margin-bottom: 50px;
}

.footer-about .logo {
  color: var(--white);
  margin-bottom: 20px;
}

.footer-about p {
  color: #9CA3AF;
  margin-bottom: 20px;
}

.social-links {
  display: flex;
  gap: 15px;
}

.social-links a {
  width: 40px;
  height: 40px;
  background-color: rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--white);
}

.social-links a:hover {
  background-color: var(--secondary);
  transform: translateY(-3px);
}

.footer-title {
  color: var(--white);
  font-size: 1.25rem;
  margin-bottom: 25px;
  position: relative;
}

.footer-title::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 40px;
  height: 2px;
  background-color: var(--secondary);
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: #9CA3AF;
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-links a::before {
  content: '›';
  color: var(--secondary);
  font-size: 1.2rem;
}

.footer-links a:hover {
  color: var(--secondary);
  transform: translateX(5px);
}

.footer-contact li {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
  color: #9CA3AF;
}

.footer-contact i {
  color: var(--secondary);
  font-size: 1.2rem;
  margin-top: 4px;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #9CA3AF;
  font-size: 0.875rem;
}

/* Animations */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.animate-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Sticky Mobile Button */
.sticky-mobile-cta {
  display: none;
}

.mobile-header-btns {
  display: none;
  width: 100%;
  padding: 12px 20px;
  background-color: var(--light);
  border-top: 1px solid var(--border);
  justify-content: space-between;
  gap: 15px;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.02);
}

/* Responsive */
@media (max-width: 992px) {
  .hero h1 {
    font-size: 3rem;
  }
  .about-grid, .footer-grid {
    grid-template-columns: 1fr;
  }
  .trust-badges {
    flex-direction: column;
    gap: 20px;
    margin-top: 20px;
  }
  .desktop-only {
    display: none !important;
  }
  .mobile-only {
    display: flex;
  }
  .main-logo {
    height: 50px;
  }
}

@media (max-width: 768px) {
  .top-bar {
    display: none;
  }
  .nav-links, .nav-cta .btn {
    display: none;
  }
  .mobile-menu-btn {
    display: block;
  }
  .hero h1 {
    font-size: 2.5rem;
  }
  .hero-btns {
    flex-direction: column;
  }
  .section-title {
    font-size: 2rem;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 15px;
  }
  .sticky-mobile-cta {
    display: block;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--secondary);
    color: var(--white);
    text-align: center;
    padding: 15px;
    font-weight: 700;
    z-index: 1000;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    font-family: 'Outfit', sans-serif;
    font-size: 1.1rem;
  }
  body {
    padding-bottom: 60px; /* Space for sticky CTA */
  }
}
