/* Sealtech Contracting - Financial Template Style (dir 2) */
:root {
  --primary: #1e3a5f;
  --primary-dark: #152a45;
  --yellow: #f4c430;
  --yellow-dark: #e0b028;
  --text-dark: #1a1a1a;
  --text-muted: #6b7280;
  --bg-light: #f8fafb;
  --white: #ffffff;
  --transition: 0.3s ease;
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text-dark);
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
}

/* Preloader */
#preloader {
  position: fixed;
  inset: 0;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.5s, visibility 0.5s;
}

#preloader.loaded {
  opacity: 0;
  visibility: hidden;
}

.loader {
  width: 48px;
  height: 48px;
  border: 3px solid var(--bg-light);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Top Bar */
.top-bar {
  background: var(--primary);
  color: var(--white);
  padding: 0.5rem 0;
  font-size: 0.9rem;
}

.top-bar a {
  color: var(--white);
  text-decoration: none;
  transition: opacity var(--transition);
}

.top-bar a:hover {
  opacity: 0.8;
}

.top-bar i {
  margin-right: 0.35rem;
  font-size: 0.95rem;
}

.top-bar-right i {
  margin-right: 0;
  margin-left: 0.5rem;
  font-size: 1rem;
}

@media (max-width: 576px) {
  .top-bar {
    font-size: 0.8rem;
  }
  .top-bar .gap-4 { gap: 1rem !important; }
}

/* Header */
.header {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--white);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.navbar {
  padding: 0.75rem 0;
}

.navbar-brand .logo-img {
  height: 48px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
}

.nav-link {
  font-weight: 500;
  color: var(--text-dark) !important;
  padding: 0.5rem 1rem !important;
  transition: color var(--transition);
}

.nav-link:hover {
  color: var(--primary) !important;
}

.btn-cta {
  background: var(--yellow) !important;
  color: var(--text-dark) !important;
  font-weight: 600;
  padding: 0.5rem 1.25rem;
  border-radius: 6px;
  border: none;
  transition: background var(--transition);
}

.btn-cta:hover {
  background: var(--yellow-dark) !important;
  color: var(--text-dark) !important;
}

/* Hero */
.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(30, 58, 95, 0.75) 0%, rgba(21, 42, 69, 0.7) 100%);
  z-index: 1;
}

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

.hero-title {
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 1.25rem;
  font-weight: 700;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.95);
  line-height: 1.7;
  max-width: 640px;
  margin: 0 auto 2rem;
}

.btn-hero-primary {
  background: var(--yellow);
  color: var(--text-dark);
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  border: none;
  transition: background var(--transition);
}

.btn-hero-primary:hover {
  background: var(--yellow-dark);
  color: var(--text-dark);
}

.btn-hero-outline {
  background: transparent;
  color: var(--white);
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  border: 2px solid var(--white);
  transition: background var(--transition), color var(--transition);
}

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

@media (max-width: 767px) {
  .hero-bg {
    background-attachment: scroll;
  }
}

/* Info Bar */
.info-bar {
  background: var(--yellow);
  padding: 2rem 0;
}

.info-bar-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-direction: column;
  text-align: center;
}

.info-bar-icon {
  width: 48px;
  height: 48px;
  background: var(--primary);
  color: var(--white);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.info-bar-text {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.info-bar-text strong {
  font-size: 0.85rem;
  color: var(--text-dark);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.info-bar-text span {
  font-size: 0.95rem;
  color: var(--text-dark);
  font-weight: 500;
}

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

.section-badge {
  display: inline-block;
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  color: var(--text-dark);
  margin-bottom: 1rem;
}

.section-title-dark {
  color: var(--primary);
  font-size: clamp(1.5rem, 3vw, 2rem);
}

.section-desc {
  color: var(--text-muted);
  max-width: 720px;
  margin: 0 auto;
  line-height: 1.7;
}

.section-header {
  margin-bottom: 3rem;
}

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

.why-section .section-desc {
  margin-top: 1rem;
}

/* Services */
.services-section {
  background: var(--bg-light);
}

.service-card {
  background: var(--white);
  padding: 2rem;
  border-radius: 8px;
  height: 100%;
  transition: transform var(--transition), box-shadow var(--transition);
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(30, 58, 95, 0.12);
}

.service-icon {
  width: 52px;
  height: 52px;
  background: var(--primary);
  color: var(--white);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  margin-bottom: 1.25rem;
}

.service-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
  color: var(--text-dark);
}

.service-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
}

.service-list {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
  margin: 0;
  padding-left: 1.25rem;
}

.service-list li {
  margin-bottom: 0.35rem;
}

.service-card-highlight {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  border-color: transparent;
}

.service-card-highlight h3,
.service-card-highlight p,
.service-card-highlight .service-list {
  color: rgba(255, 255, 255, 0.95);
}

.service-card-highlight .service-list li::marker {
  color: var(--yellow);
}

.section-subtitle {
  font-size: 1.25rem;
  color: var(--text-dark);
  font-weight: 600;
}

.project-types {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.project-type-badge {
  display: inline-block;
  background: var(--white);
  color: var(--primary);
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 500;
  border: 1px solid rgba(30, 58, 95, 0.2);
  transition: background var(--transition), color var(--transition);
}

.project-type-badge:hover {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

/* Projects */
.project-card {
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
}

.project-img {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
}

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

.project-card:hover .project-img img {
  transform: scale(1.08);
}

.project-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(30, 58, 95, 0.9) 0%, transparent 60%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
  opacity: 0;
  transition: opacity var(--transition);
}

.project-card:hover .project-overlay {
  opacity: 1;
}

.project-overlay span {
  color: var(--yellow);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 1px;
  margin-bottom: 0.25rem;
}

.project-overlay h4 {
  color: var(--white);
  font-size: 1.2rem;
  margin: 0;
}

/* Project Gallery Modal */
.gallery-modal-content {
  border: none;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
}

.gallery-modal-header {
  background: var(--primary);
  color: var(--white);
  border-bottom: none;
  padding: 1rem 1.5rem;
}

.gallery-modal-header .modal-title {
  font-size: 1.1rem;
  font-weight: 600;
}

.gallery-img {
  max-height: 70vh;
  object-fit: contain;
  background: #1a1a1a;
}

.gallery-control {
  width: 50px;
  height: 50px;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 50%;
  opacity: 1;
  top: 50%;
  transform: translateY(-50%);
}

.gallery-control:hover {
  background: var(--primary);
}

.gallery-control i {
  font-size: 1.5rem;
  color: var(--white);
}

.gallery-indicators {
  position: absolute;
  bottom: 1rem;
  left: 0;
  right: 0;
  margin: 0;
}

.gallery-indicators button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.5);
  border: none;
  margin: 0 4px;
}

.gallery-indicators button.active {
  background-color: var(--white);
}

/* Process */
.process-section {
  background: var(--white);
}

.process-card {
  background: var(--bg-light);
  padding: 2rem;
  border-radius: 8px;
  height: 100%;
  position: relative;
  padding-top: 3rem;
  border: 1px solid rgba(0, 0, 0, 0.06);
  transition: box-shadow var(--transition);
}

.process-card:hover {
  box-shadow: 0 10px 30px rgba(30, 58, 95, 0.1);
}

.process-num {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  font-size: 2.25rem;
  font-weight: 700;
  color: rgba(30, 58, 95, 0.15);
}

.process-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.75rem;
  color: var(--text-dark);
}

.process-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
}

/* About */
.about-images {
  position: relative;
}

.about-img-main {
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
  max-width: 500px;
  display: block;
}

.about-video {
  object-fit: cover;
  aspect-ratio: 3/4;
}

.about-img-overlay {
  position: absolute;
  bottom: -2rem;
  right: -2rem;
  width: 45%;
  border-radius: 8px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
  border: 4px solid var(--white);
}

.about-text {
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 1rem;
}

.about-section .section-title {
  margin-top: 0.5rem;
}

/* Stats */
.stats-section {
  background: var(--primary);
  color: var(--white);
}

.stat-item {
  padding: 1rem;
}

.stat-number {
  display: block;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.stat-label {
  font-size: 0.9rem;
  opacity: 0.9;
}

/* Testimonials */
.testimonials-section {
  background: var(--bg-light);
}

.testimonial-card {
  background: var(--white);
  padding: 3rem;
  border-radius: 8px;
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.testimonial-text {
  font-size: 1.15rem;
  line-height: 1.8;
  color: var(--text-dark);
  font-style: italic;
  margin-bottom: 1.5rem;
}

.testimonial-author strong {
  display: block;
  color: var(--primary);
  margin-bottom: 0.25rem;
}

.testimonial-author span {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.testimonials-section .carousel-control-prev,
.testimonials-section .carousel-control-next {
  width: 50px;
  height: 50px;
  background: var(--primary);
  border-radius: 50%;
  opacity: 1;
  top: 50%;
  transform: translateY(-50%);
}

.testimonials-section .carousel-control-prev {
  left: -25px;
}

.testimonials-section .carousel-control-next {
  right: -25px;
}

.carousel-control-prev i,
.carousel-control-next i {
  font-size: 1.25rem;
  color: var(--white);
}

/* Contact */
.contact-form-wrapper {
  background: var(--bg-light);
  padding: 2rem;
  border-radius: 8px;
  height: 100%;
}

.contact-form-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 1.5rem;
}

.contact-form {
  position: relative;
}

/* Honeypot: invisible to users, catches bots */
.form-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-feedback {
  margin-bottom: 1rem;
  padding: 0.75rem 1rem;
  border-radius: 6px;
  display: none;
}

.form-feedback.show {
  display: block;
}

.form-feedback.success {
  background: #d1fae5;
  color: #065f46;
}

.form-feedback.error {
  background: #fee2e2;
  color: #991b1b;
}

.contact-form .form-control {
  padding: 0.875rem 1rem;
  border-radius: 6px;
  border: 1px solid #e5e7eb;
}

.contact-form .form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(30, 58, 95, 0.15);
}

.contact-info-wrapper {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  height: 100%;
}

.contact-address,
.contact-phone,
.contact-email-block {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: var(--primary);
  color: var(--white);
  border-radius: 8px;
}

.contact-address i,
.contact-phone i,
.contact-email-block i {
  font-size: 1.5rem;
  color: var(--yellow);
  flex-shrink: 0;
}

.contact-address strong,
.contact-phone strong,
.contact-email-block strong {
  display: block;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.25rem;
  opacity: 0.9;
}

.contact-address p,
.contact-phone p,
.contact-email-block p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.5;
}

.contact-phone a,
.contact-email-block a {
  color: var(--white);
  text-decoration: none;
  transition: opacity 0.2s;
}

.contact-phone a:hover,
.contact-email-block a:hover {
  opacity: 0.9;
  color: var(--yellow);
}

.contact-map {
  flex: 1;
  min-height: 280px;
  height: 280px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.contact-map iframe {
  width: 100%;
  height: 100%;
  min-height: 280px;
  border: none;
}

.btn-primary {
  background: var(--yellow) !important;
  border-color: var(--yellow) !important;
  color: var(--text-dark) !important;
  font-weight: 600;
}

.btn-primary:hover {
  background: var(--yellow-dark) !important;
  border-color: var(--yellow-dark) !important;
  color: var(--text-dark) !important;
}

/* Footer */
.footer {
  background: var(--primary-dark);
  color: var(--white);
}

.footer-logo {
  height: 45px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
  padding: 0.5rem 1rem;
  background: var(--white);
  border-radius: 6px;
}

.footer-text {
  font-size: 0.9rem;
  opacity: 0.9;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
  font-size: 0.85rem;
  opacity: 0.8;
}

/* Responsive */
@media (max-width: 991px) {
  .about-img-overlay {
    right: 0;
    bottom: -1.5rem;
    width: 50%;
  }

  .testimonials-section .carousel-control-prev {
    left: 0;
  }

  .testimonials-section .carousel-control-next {
    right: 0;
  }

  .nav-item.ms-3 {
    margin-left: 0 !important;
    margin-top: 0.5rem;
  }
}

@media (max-width: 767px) {
  .section {
    padding: 3.5rem 0;
  }

  .about-img-overlay {
    position: relative;
    bottom: 0;
    right: 0;
    width: 100%;
    margin-top: 1rem;
  }

  .info-bar-item {
    flex-direction: row;
    justify-content: flex-start;
    text-align: left;
  }
}
