@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Plus+Jakarta+Sans:wght@600;700;800&display=swap');

:root {
  --primary-black: #09090B;
  --charcoal: #18181B;
  --roofing-red: #B91C1C;
  --deep-red: #7F1D1D;
  --white: #FFFFFF;
  --soft-gray: #F4F4F5;
  --text-gray: #52525B;
  --text-light: #A1A1AA;
  --success-green: #10B981;
  --warning-amber: #F59E0B;
  
  --shadow-soft: 0 10px 40px -10px rgba(0, 0, 0, 0.08);
  --shadow-strong: 0 20px 40px -10px rgba(0, 0, 0, 0.15);
  --shadow-glow: 0 10px 30px -10px rgba(185, 28, 28, 0.4);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  color: var(--text-gray);
  background-color: var(--soft-gray);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  /* Architectural Grid Pattern */
  background-image: 
    linear-gradient(90deg, rgba(0,0,0,0.02) 1px, transparent 1px),
    linear-gradient(rgba(0,0,0,0.02) 1px, transparent 1px);
  background-size: 80px 80px;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  color: var(--primary-black);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

ul {
  list-style: none;
}

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 2;
}

/* Utilities */
.text-center { text-align: center; }
.text-red { color: var(--roofing-red); }
.text-white { color: var(--white); }
.text-warning { color: var(--warning-amber); }

/* Tags */
.tag {
  display: inline-block;
  background: rgba(225, 29, 72, 0.1);
  color: var(--roofing-red);
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.tag-white {
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px 36px;
  border-radius: 12px;
  font-weight: 700;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  cursor: pointer;
  border: none;
  font-size: 16px;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn i {
  transition: transform 0.3s ease;
}
.btn:hover i {
  transform: translateX(4px);
}

.btn::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(rgba(255,255,255,0.1), rgba(255,255,255,0));
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.btn:hover::before {
  opacity: 1;
}

.btn-sm {
  padding: 12px 28px;
  font-size: 15px;
  border-radius: 10px;
}

.btn-block {
  width: 100%;
  padding: 18px;
  margin-top: 10px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--roofing-red) 0%, #991B1B 50%, var(--deep-red) 100%);
  color: var(--white);
  box-shadow: 0 10px 25px -5px rgba(185, 28, 28, 0.4), inset 0 1px 1px rgba(255,255,255,0.2);
  text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 35px -10px rgba(185, 28, 28, 0.6), inset 0 1px 1px rgba(255,255,255,0.3);
  color: var(--white);
}

.btn-secondary {
  background: linear-gradient(to bottom, #FFFFFF 0%, #F4F4F5 100%);
  color: var(--primary-black);
  border: 1px solid #E4E4E7;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), inset 0 2px 0 rgba(255,255,255,0.8);
}

.btn-secondary:hover {
  transform: translateY(-3px);
  background: linear-gradient(to bottom, #FFFFFF 0%, #FAFAFA 100%);
  border-color: #D4D4D8;
  box-shadow: 0 10px 20px -5px rgba(0,0,0,0.08), inset 0 2px 0 rgba(255,255,255,0.9);
}

/* Global Inner Page Hero */
.page-hero {
  padding: 180px 0 100px;
  background: var(--primary-black);
  color: var(--white);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  z-index: 1;
  pointer-events: none;
}
.page-hero .container {
  position: relative;
  z-index: 2;
}
.page-hero h1 {
  color: var(--white);
  font-size: 56px;
  margin-bottom: 24px;
}
.page-hero p {
  font-size: 20px;
  color: #D4D4D8;
  max-width: 600px;
  margin: 0 auto;
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0; left: 0; width: 100%;
  background-color: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 1000;
  transition: all 0.4s ease;
  border-bottom: 1px solid transparent;
}

.navbar.scrolled {
  background-color: rgba(255, 255, 255, 0.98);
  box-shadow: 0 10px 30px -10px rgba(0,0,0,0.1);
  border-bottom: 1px solid rgba(0,0,0,0.05);
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 90px;
  max-width: 1400px;
}

.nav-logo {
  max-height: 44px;
  width: auto;
}

.nav-links {
  display: flex;
  gap: 20px;
}

.nav-links a {
  font-weight: 500;
  color: var(--text-gray);
  font-size: 14px;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 2px;
  background-color: var(--roofing-red);
  transition: width 0.3s ease;
}

.nav-links a:hover { color: var(--primary-black); }
.nav-links a:hover::after { width: 100%; }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-call {
  font-weight: 700;
  color: var(--primary-black);
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  white-space: nowrap;
}

/* Mobile Bottom Bar */
.mobile-bottom-bar {
  display: none;
  position: fixed;
  bottom: 0; left: 0; width: 100%;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.08);
  border-top: 1px solid #E4E4E7;
}

.mobile-bottom-bar .container {
  display: flex;
  justify-content: space-between;
  padding: 12px 20px;
  gap: 12px;
}

.mobile-bottom-bar .btn {
  flex: 1;
  padding: 12px;
  font-size: 14px;
}

/* Hero Section */
.hero {
  margin-top: 90px;
  position: relative;
  min-height: calc(100vh - 90px);
  display: flex;
  align-items: center;
  background-color: var(--primary-black);
  background-size: cover;
  background-position: center;
  /* Subtle Parallax Attachment */
  background-attachment: fixed; 
  color: var(--white);
  padding: 100px 0 160px;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(135deg, rgba(9, 9, 11, 0.98) 0%, rgba(9, 9, 11, 0.8) 40%, rgba(225, 29, 72, 0.2) 100%);
  z-index: 1;
}

.hero::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  z-index: 1;
  pointer-events: none;
}

.hero-content {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 80px;
  align-items: center;
}

.hero-text h1 {
  font-size: 64px;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 24px;
  line-height: 1.1;
  text-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.hero-text p {
  font-size: 20px;
  color: #D4D4D8;
  margin-bottom: 48px;
  max-width: 600px;
  font-weight: 400;
}

.hero-actions {
  display: flex;
  gap: 20px;
  margin-bottom: 48px;
}

.trust-row {
  display: flex;
  gap: 32px;
  align-items: center;
  font-size: 15px;
  color: #E4E4E7;
  font-weight: 600;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.trust-item i { color: var(--warning-amber); font-size: 18px; }
.trust-item i.fa-shield-halved { color: var(--success-green); }

/* Floating Label Forms */
.hero-form {
  background: var(--white);
  padding: 48px 40px;
  border-radius: 20px;
  box-shadow: 0 40px 80px -20px rgba(0, 0, 0, 0.8);
  position: relative;
  top: 40px;
  z-index: 10;
}

.hero-form h3 {
  color: var(--primary-black);
  margin-bottom: 28px;
  font-size: 26px;
}

.floating-label {
  position: relative;
  margin-bottom: 24px;
}

.floating-label input,
.floating-label select,
.floating-label textarea {
  width: 100%;
  padding: 24px 16px 10px;
  border-radius: 12px;
  border: 1px solid #E4E4E7;
  background: var(--soft-gray);
  color: var(--primary-black);
  font-family: inherit;
  font-size: 16px;
  transition: all 0.3s ease;
  box-sizing: border-box;
}

.floating-label textarea {
  resize: vertical;
  min-height: 120px;
}

.floating-label select {
  appearance: none;
  cursor: pointer;
}

.floating-label label {
  position: absolute;
  top: 18px;
  left: 16px;
  color: var(--text-light);
  font-size: 16px;
  transition: all 0.2s ease;
  pointer-events: none;
  font-weight: 500;
}

.floating-label input:focus, 
.floating-label input:not(:placeholder-shown),
.floating-label select:focus,
.floating-label select:valid,
.floating-label textarea:focus,
.floating-label textarea:not(:placeholder-shown) {
  background: var(--white);
  border-color: var(--roofing-red);
  outline: none;
  box-shadow: 0 0 0 4px rgba(225, 29, 72, 0.1);
}

.floating-label input:focus + label, 
.floating-label input:not(:placeholder-shown) + label,
.floating-label select:focus + label,
.floating-label select:valid + label,
.floating-label textarea:focus + label,
.floating-label textarea:not(:placeholder-shown) + label {
  top: 8px;
  font-size: 12px;
  color: var(--roofing-red);
  font-weight: 700;
}

/* Radial Glows for Dark Sections */
.radial-glow {
  position: absolute;
  top: 0; left: 0;
  width: 800px; height: 800px;
  background: radial-gradient(circle, rgba(225,29,72,0.08) 0%, rgba(0,0,0,0) 60%);
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-30%, -30%);
  z-index: 0;
}
.glow-right {
  left: auto; right: 0;
  transform: translate(30%, -20%);
}

/* Services Section */
.services {
  padding: 160px 0 120px; 
}

.section-header {
  text-align: center;
  margin-bottom: 72px;
}

.section-header h2 {
  font-size: 46px;
  font-weight: 800;
  margin-bottom: 20px;
}

.section-header p {
  color: var(--text-gray);
  max-width: 600px;
  margin: 0 auto;
  font-size: 18px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.services-grid .service-card:nth-child(3n + 2) {
  transform: translateY(40px);
}

.service-card {
  background: var(--white);
  border-radius: 20px;
  padding: 48px 40px;
  box-shadow: var(--shadow-soft);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(0,0,0,0.03);
  position: relative;
}

.service-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, var(--roofing-red), var(--deep-red));
  border-radius: 0 0 20px 20px;
  transform: scaleX(0);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.services-grid .service-card:hover, .services-grid .service-card:nth-child(3n+2):hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-strong);
}

.service-card:hover::after {
  transform: scaleX(1);
}

.service-icon {
  width: 64px;
  height: 64px;
  background: rgba(225, 29, 72, 0.08);
  color: var(--roofing-red);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 28px;
}

.service-card h3 {
  margin-bottom: 16px;
  font-size: 22px;
}

.service-card p {
  margin-bottom: 32px;
  color: var(--text-gray);
}

.nav-links a {
  text-decoration: none;
  color: var(--primary-black);
  font-weight: 500;
  transition: color 0.3s ease;
  position: relative;
  padding: 10px 0;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--roofing-red);
}

/* Dropdown Logic */
.nav-dropdown-container {
  position: relative;
  display: inline-block;
}
.nav-dropdown-container > a::after {
  content: '▼';
  font-size: 10px;
  margin-left: 5px;
  vertical-align: middle;
}
.nav-dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  min-width: 220px;
  border-radius: 12px;
  box-shadow: var(--shadow-strong);
  padding: 10px 0;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
  z-index: 100;
  border: 1px solid rgba(0,0,0,0.05);
}
.nav-dropdown-container:hover .nav-dropdown {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.nav-dropdown a {
  display: block;
  padding: 10px 20px;
  color: var(--text-gray);
  font-size: 15px;
  border-radius: 0;
  transition: all 0.2s ease;
}
.nav-dropdown a:hover {
  background: rgba(225, 29, 72, 0.05);
  color: var(--roofing-red);
  padding-left: 25px;
}
.nav-dropdown a::after {
  display: none;
}

.card-link {
  font-weight: 700;
  color: var(--primary-black);
  display: flex;
  align-items: center;
  gap: 8px;
}
.card-link i {
  transition: transform 0.3s ease;
  color: var(--roofing-red);
}
.service-card:hover .card-link i {
  transform: translateX(6px);
}

/* Trust Section */
.trust-section {
  padding: 140px 0;
  background-color: var(--primary-black);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.trust-section .section-header h2 { color: var(--white); }
.trust-section .section-header p { color: var(--text-light); }

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.trust-card {
  background: rgba(255, 255, 255, 0.04);
  padding: 40px 32px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.05);
  border-top: 3px solid var(--roofing-red);
  transition: all 0.3s ease;
}

.trust-card:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.trust-card i {
  margin-bottom: 24px;
  filter: drop-shadow(0 0 12px rgba(225,29,72,0.4));
}

.trust-card h4 {
  color: var(--white);
  margin-bottom: 12px;
  font-size: 20px;
}

.trust-card p {
  color: var(--text-light);
  font-size: 15px;
}

/* Founder Section */
.founder {
  padding: 140px 0;
  background-color: var(--white);
}

.founder .container {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 100px;
  align-items: center;
}

.founder-img {
  position: relative;
  z-index: 1;
}

.founder-offset-box {
  position: absolute;
  top: 40px; right: -40px;
  width: 100%; height: 100%;
  background: var(--soft-gray);
  border-radius: 24px;
  z-index: -1;
  border: 1px solid #E4E4E7;
}

.founder-img img {
  width: 100%;
  border-radius: 24px;
  box-shadow: var(--shadow-strong);
  display: block;
}

.founder-content h2 {
  font-size: 46px;
  margin-bottom: 24px;
}

.founder-content p {
  font-size: 18px;
  margin-bottom: 40px;
  color: var(--text-gray);
}

.quote-block {
  border-left: 4px solid var(--roofing-red);
  padding-left: 32px;
  font-style: italic;
  font-size: 24px;
  color: var(--primary-black);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 600;
  line-height: 1.4;
}

/* Timeline Process Section */
.process {
  padding: 140px 0;
}

.timeline {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  padding: 20px 0;
}

.timeline-line {
  position: absolute;
  top: 0; bottom: 0; left: 50%;
  width: 2px;
  background: linear-gradient(to bottom, rgba(225,29,72,0) 0%, rgba(225,29,72,0.3) 10%, rgba(225,29,72,0.3) 90%, rgba(225,29,72,0) 100%);
  transform: translateX(-50%);
}

.timeline-step {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  width: 50%;
  position: relative;
  margin-bottom: 60px;
  padding-right: 60px;
}

.timeline-step:nth-child(odd) {
  left: 50%;
  justify-content: flex-start;
  padding-right: 0;
  padding-left: 60px;
}

.timeline-marker {
  position: absolute;
  top: 50%; right: -24px;
  transform: translateY(-50%);
  width: 48px; height: 48px;
  background: var(--primary-black);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 20px;
  z-index: 2;
  box-shadow: 0 0 0 6px var(--soft-gray);
}

.timeline-step:nth-child(odd) .timeline-marker {
  right: auto; left: -24px;
}

.timeline-content {
  background: var(--white);
  padding: 32px 40px;
  border-radius: 20px;
  box-shadow: var(--shadow-soft);
  width: 100%;
}

.timeline-content h4 {
  font-size: 22px;
  margin-bottom: 12px;
}

/* Projects Gallery */
.projects {
  padding: 140px 0;
  background: var(--charcoal);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.projects .section-header h2 { color: var(--white); }
.projects .section-header p { color: var(--text-light); }

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
}

.project-card {
  border-radius: 24px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 30px 60px rgba(0,0,0,0.4);
}

.project-card img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-card:hover img {
  transform: scale(1.05);
}

.project-info {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.2) 60%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 48px;
}

.project-info h4 {
  color: var(--white);
  margin-top: 12px;
  font-size: 32px;
}

.project-info span {
  align-self: flex-start;
  background: var(--roofing-red);
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* Reviews Masonry */
.reviews {
  padding: 140px 0;
}

.review-masonry {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.review-card {
  background: var(--white);
  padding: 48px 40px;
  border-radius: 20px;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(0,0,0,0.03);
}

.review-card:nth-child(2) {
  transform: translateY(40px);
}

.review-stars {
  color: var(--warning-amber);
  margin-bottom: 24px;
  font-size: 16px;
}

.review-text {
  font-size: 18px;
  color: var(--primary-black);
  margin-bottom: 32px;
  line-height: 1.6;
  font-weight: 500;
}

.reviewer {
  font-weight: 700;
  color: var(--text-gray);
  display: flex;
  align-items: center;
  gap: 16px;
}

.reviewer::before {
  content: '';
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: var(--soft-gray);
  display: inline-block;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23A1A1AA"><path d="M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"/></svg>');
  background-position: center;
  background-repeat: no-repeat;
  background-size: 24px;
}

/* Footer CTA */
.footer-cta {
  padding: 140px 0;
  text-align: center;
  background: linear-gradient(135deg, var(--roofing-red) 0%, var(--deep-red) 100%);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.footer-cta::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: 
    linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 40px 40px;
}

.footer-cta-form {
  max-width: 600px; 
  margin: 0 auto; 
  text-align: left; 
  background: var(--white); 
  padding: 48px; 
  border-radius: 20px; 
  color: var(--primary-black);
  box-shadow: 0 40px 80px rgba(0,0,0,0.3);
  position: relative;
  z-index: 2;
}

/* Footer */
footer {
  background-color: var(--primary-black);
  color: var(--text-light);
  padding: 100px 0 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 80px;
  margin-bottom: 80px;
}

.footer-col h3 {
  color: var(--white);
  margin-bottom: 32px;
  font-size: 18px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.footer-col ul li {
  margin-bottom: 16px;
}

.footer-col ul li a:hover {
  color: var(--white);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 32px;
  text-align: center;
  font-size: 15px;
}

/* Animations */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.15s; }
.reveal-delay-2 { transition-delay: 0.3s; }
.reveal-delay-3 { transition-delay: 0.45s; }

/* Video Placeholders */
.video-placeholder {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, var(--primary-black) 0%, #2A2A2E 100%);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-strong);
  margin: 40px 0;
  border: 1px solid rgba(255,255,255,0.1);
}

.video-placeholder::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 30px 30px;
  pointer-events: none;
}

.video-placeholder i {
  font-size: 64px;
  color: var(--white);
  opacity: 0.8;
  transition: all 0.3s ease;
  cursor: pointer;
  z-index: 2;
}

.video-placeholder i:hover {
  transform: scale(1.1);
  color: var(--roofing-red);
  opacity: 1;
}

.video-placeholder span {
  position: absolute;
  bottom: 20px;
  left: 24px;
  color: rgba(255,255,255,0.6);
  font-size: 14px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  z-index: 2;
}

/* Image Placeholders */
.image-placeholder {
  width: 100%;
  aspect-ratio: 16 / 9;
  background-color: var(--soft-gray);
  background-size: cover;
  background-position: center;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-strong);
  margin: 40px 0;
  border: 1px solid rgba(0,0,0,0.05);
}

.image-placeholder::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 60%, rgba(0,0,0,0.6) 100%);
  pointer-events: none;
}

.image-placeholder.drone-shot {
  background-image: url('../images/roof_project_1_1779646049262.png');
}

.image-placeholder.material-shot {
  background-image: url('../images/Residential-Roofing-1.jpg');
}

.image-placeholder span {
  position: absolute;
  bottom: 20px;
  left: 24px;
  color: var(--white);
  font-size: 16px;
  font-weight: 600;
  font-family: 'Plus Jakarta Sans', sans-serif;
  z-index: 2;
}

/* Before and After Placeholder */
.before-after-placeholder {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 20px;
  display: flex;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-strong);
  margin: 40px 0;
}

.before-after-half {
  flex: 1;
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: flex-end;
  padding: 20px;
}

.before-after-half.before {
  background-color: #d4d4d8;
  border-right: 4px solid var(--white);
  filter: grayscale(100%) opacity(0.8);
}

.before-after-half.after {
  background-image: url('../images/Commercial-Roofing-updated.jpg');
}

.before-after-half span {
  background: var(--primary-black);
  color: var(--white);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* 4-Second Popup */
.site-popup-overlay {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
  backdrop-filter: blur(5px);
}
.site-popup-overlay.active {
  opacity: 1;
  pointer-events: all;
}
.site-popup-content {
  background: var(--white);
  width: 90%;
  max-width: 500px;
  border-radius: 20px;
  position: relative;
  padding: 40px;
  text-align: center;
  transform: translateY(40px) scale(0.95);
  transition: all 0.5s cubic-bezier(0.5, 0, 0, 1);
  box-shadow: var(--shadow-strong);
}
.site-popup-overlay.active .site-popup-content {
  transform: translateY(0) scale(1);
}
.site-popup-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--soft-gray);
  border: none;
  width: 32px; height: 32px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}
.site-popup-close:hover {
  background: var(--roofing-red);
  color: var(--white);
}
.site-popup-icon {
  width: 64px; height: 64px;
  background: rgba(220, 38, 38, 0.1);
  color: var(--roofing-red);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin: 0 auto 20px;
}

/* Responsive */
@media (max-width: 1024px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 60px;
  }
  .hero-text p { margin: 0 auto 40px; }
  .hero-actions, .trust-row { justify-content: center; }
  .hero-form { top: 0; }
  
  .services-grid .service-card:nth-child(3n + 2) { transform: none; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  
  .trust-grid, .project-grid { grid-template-columns: repeat(2, 1fr); }
  .founder .container { grid-template-columns: 1fr; }
  .founder-offset-box { right: -20px; top: 20px; }
  
  .timeline::before { left: 0; }
  .timeline-step, .timeline-step:nth-child(odd) {
    width: 100%; left: 0; padding-left: 60px; padding-right: 0; justify-content: flex-start;
  }
  .timeline-marker { left: -24px !important; right: auto !important; }
  .timeline-line { left: 0; transform: none; }
  
  .review-masonry { grid-template-columns: 1fr; }
  .review-card:nth-child(2) { transform: none; }
}

@media (max-width: 768px) {
  .navbar .nav-links, .navbar .nav-call, .navbar .btn { display: none; }
  .mobile-bottom-bar { display: block; }
  .hero-text h1 { font-size: 44px; }
  .services-grid, .trust-grid, .project-grid, .footer-grid { grid-template-columns: 1fr; }
  .footer-grid { gap: 40px; }
  body { padding-bottom: 70px; }
  .hero { padding: 40px 0; }
  .footer-cta-form .form-group[style] { grid-template-columns: 1fr !important; }
}

/* Floating Elements */
.floating-emergency {
  position: fixed;
  top: 50%;
  right: 0;
  transform: translateY(-50%) rotate(-90deg);
  transform-origin: right bottom;
  background: var(--roofing-red);
  color: var(--white);
  padding: 12px 24px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: 12px 12px 0 0;
  box-shadow: -5px -5px 20px rgba(0,0,0,0.15);
  z-index: 1000;
  text-decoration: none;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 10px;
}
.floating-emergency:hover {
  background: var(--deep-red);
  padding-bottom: 16px;
  color: var(--white);
}

.chat-widget-placeholder {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 60px;
  height: 60px;
  background: var(--primary-black);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
  z-index: 1000;
  cursor: pointer;
  transition: transform 0.3s ease;
}
.chat-widget-placeholder:hover {
  transform: scale(1.1);
}

@media (max-width: 768px) {
  .floating-emergency { display: none !important; }
  .chat-widget-placeholder { bottom: 90px !important; }
}

/* Mobile Menu Styles */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 26px;
  color: var(--primary-black);
  cursor: pointer;
  padding: 10px;
}
@media (max-width: 768px) {
  .mobile-menu-toggle { display: block; }
}
.mobile-menu-overlay {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100vh;
  background: rgba(255,255,255,0.98);
  z-index: 2000;
  display: flex;
  flex-direction: column;
  padding: 80px 20px;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  overflow-y: auto;
}
.mobile-menu-overlay.active {
  transform: translateX(0);
}
.mobile-menu-close {
  position: absolute;
  top: 20px; right: 20px;
  background: none; border: none; font-size: 32px;
  cursor: pointer; color: var(--primary-black);
}
.mobile-menu-overlay a {
  font-size: 22px;
  font-weight: 700;
  color: var(--primary-black);
  margin-bottom: 20px;
  text-decoration: none;
}
.mobile-menu-overlay .dropdown-items {
  display: flex; flex-direction: column; padding-left: 15px; margin-bottom: 20px; border-left: 2px solid var(--roofing-red);
}
.mobile-menu-overlay .dropdown-items a {
  font-size: 16px; font-weight: 500; margin-bottom: 12px; color: var(--text-gray);
}
