/* ============================= */
/* PROFESSIONAL DESIGN SYSTEM */
/* ============================= */

:root {
  /* Primary Colors */
  --primary: #0B1F3A;
  --secondary: #E3B23C;
  --text-dark: #1A1A1A;
  --text-light: #6B7280;
  --bg-light: #F7F9FC;
  --white: #FFFFFF;

  /* Shadows */
  --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.08);
  --shadow-hover: 0 18px 40px rgba(0, 0, 0, 0.12);

  /* Spacing */
  --radius-small: 8px;
  --radius-medium: 12px;
}

/* ============================= */
/* GLOBAL STYLES */
/* ============================= */

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text-dark);
  line-height: 1.6;
  background: var(--white);
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  letter-spacing: -0.3px;
}

section {
  padding: 90px 6%;
}

/* ============================= */
/* NAVBAR */
/* ============================= */

.navbar {
  background: var(--white);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  padding: 18px 6%;
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  height: 40px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
  margin: 0;
  list-style: none;
  margin-left: auto;
}

.nav-links a {
  font-weight: 500;
  color: var(--text-dark);
  text-decoration: none;
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: var(--secondary);
}

.nav-links a.active {
  color: var(--secondary);
  font-weight: 700;
}

.btn-quote-header {
  background: var(--secondary);
  color: var(--primary);
  border: none;
  border-radius: var(--radius-small);
  padding: 10px 22px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-block;
  font-size: 1rem;
}

.btn-quote-header:hover {
  background: #D4A12F;
  transform: translateY(-2px);
}

/* ============================= */
/* HERO SECTION */
/* ============================= */

.hero {
  position: relative;
  height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 120px 6% 90px;
  background-size: cover;
  background-position: center;
}

.hero-bg-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  filter: brightness(0.5);
}

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

.hero-box {
  position: relative;
  z-index: 2;
  text-align: center;
  color: white;
  max-width: 800px;
}

.hero h1 {
  font-size: 48px;
  max-width: 650px;
  margin-bottom: 20px;
  line-height: 1.3;
  margin-left: auto;
  margin-right: auto;
}

.hero p {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.9);
  max-width: 520px;
  margin-bottom: 30px;
  margin-left: auto;
  margin-right: auto;
}

/* ============================= */
/* BUTTONS */
/* ============================= */

.primary-btn {
  background: var(--secondary);
  color: var(--primary);
  border: none;
  border-radius: var(--radius-small);
  padding: 14px 28px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
}

.primary-btn:hover {
  background: #D4A12F;
  transform: translateY(-2px);
}

.secondary-btn {
  border: 2px solid var(--primary);
  color: var(--primary);
  background: transparent;
  border-radius: var(--radius-small);
  padding: 12px 26px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
}

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

.btn-main {
  background: var(--secondary);
  color: var(--primary);
  border: none;
  border-radius: var(--radius-small);
  padding: 14px 28px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
}

.btn-main:hover {
  background: #D4A12F;
  transform: translateY(-2px);
}

.service-btn {
  background: var(--secondary);
  color: var(--primary);
  border: none;
  border-radius: var(--radius-small);
  padding: 12px 24px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 18px;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 0.85rem;
}

.service-btn:hover {
  background: #D4A12F;
  transform: translateY(-2px);
}

/* ============================= */
/* STATS BAR */
/* ============================= */

.stats-bar {
  background: var(--primary);
  padding: 70px 6%;
  color: white;
  text-align: center;
}

.stats-container {
  display: flex;
  justify-content: center;
  gap: 80px;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto;
  align-items: flex-start;
}

.stat-box {
  text-align: center;
  flex: 1;
  min-width: 220px;
}

.stat-number {
  font-size: 48px;
  color: var(--secondary);
  font-weight: 800;
  margin-bottom: 10px;
  letter-spacing: 1px;
}

.stat-box h3 {
  font-size: 18px;
  color: white;
  margin-bottom: 10px;
  font-weight: 700;
}

.stat-box p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
  margin-top: 8px;
}

/* ============================= */
/* SERVICES SECTION */
/* ============================= */

.services {
  padding: 90px 6%;
  background: var(--bg-light);
  text-align: center;
}

.services h2 {
  font-size: 42px;
  color: var(--primary);
  margin-bottom: 60px;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.card {
  background: white;
  border-radius: var(--radius-medium);
  box-shadow: var(--shadow-soft);
  border: 1px solid #eef1f5;
  padding: 40px 32px;
  transition: all 0.3s ease;
  text-align: center;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}

.service-card {
  padding: 40px 32px;
  border-radius: var(--radius-medium);
  transition: 0.3s;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}

.service-icon-large {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: #eef3fa;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
  font-size: 30px;
  color: var(--primary);
}

.service-icon-large img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.card h3 {
  font-size: 20px;
  color: var(--primary);
  margin-bottom: 15px;
}

.card p {
  color: var(--text-light);
  font-size: 16px;
  line-height: 1.6;
}

.service-list {
  list-style: none;
  padding: 20px 0;
  text-align: left;
  margin-bottom: 20px;
}

.service-list li {
  color: var(--text-dark);
  font-size: 15px;
  margin-bottom: 8px;
  padding-left: 24px;
  position: relative;
}

.service-list li:before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--secondary);
  font-weight: bold;
}

/* ============================= */
/* WHY CHOOSE US SECTION */
/* ============================= */

.why-choose-us {
  padding: 90px 6%;
  background: var(--white);
  text-align: center;
}

.why-choose-header {
  max-width: 800px;
  margin: 0 auto 60px;
}

.section-logo {
  height: 60px;
  margin-bottom: 20px;
  filter: brightness(0) invert(1);
}

.why-choose-us h2 {
  font-size: 42px;
  color: var(--primary);
  margin-bottom: 20px;
}

.why-choose-header p {
  font-size: 18px;
  color: var(--text-light);
  line-height: 1.7;
}

.why-choose-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.why-card {
  background: white;
  color: var(--text-dark);
  padding: 40px 30px;
  border-radius: var(--radius-medium);
  text-align: center;
  box-shadow: var(--shadow-soft);
  border: 1px solid #eef1f5;
  transition: all 0.3s ease;
}

.why-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
}

.card-icon {
  font-size: 42px;
  color: var(--secondary);
  margin-bottom: 20px;
}

.why-card h3 {
  font-size: 18px;
  color: var(--primary);
  margin-bottom: 15px;
}

.why-card p {
  color: var(--text-light);
  font-size: 15px;
  line-height: 1.6;
}

/* ============================= */
/* WINDOW WATERPROOFING */
/* ============================= */

.window-waterproofing {
  padding: 90px 6%;
  background: var(--bg-light);
  text-align: center;
}

.window-container {
  max-width: 1100px;
  margin: 0 auto;
}

.window-waterproofing h2 {
  font-size: 42px;
  color: var(--primary);
  margin-bottom: 15px;
}

.section-subtitle {
  max-width: 700px;
  margin: 0 auto 50px;
  color: var(--text-light);
  font-size: 18px;
}

.window-grid {
  display: flex;
  justify-content: center;
  gap: 60px;
  flex-wrap: wrap;
}

.window-item {
  flex: 1;
  min-width: 250px;
  max-width: 350px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.img-circle-container {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  overflow: hidden;
  border: 6px solid var(--secondary);
  box-shadow: var(--shadow-soft);
  margin-bottom: 25px;
  transition: all 0.3s ease;
  background: white;
}

.img-circle-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.window-item:hover .img-circle-container {
  border-color: #D4A12F;
  box-shadow: var(--shadow-hover);
}

.window-item h3 {
  color: var(--primary);
  margin-bottom: 15px;
  font-size: 20px;
}

.window-item p {
  color: var(--text-light);
  line-height: 1.7;
  font-size: 15px;
}

/* ============================= */
/* CONTACT SECTION */
/* ============================= */

.contact {
  padding: 90px 6%;
  background: linear-gradient(135deg, var(--primary) 0%, #1a3a4a 100%);
  color: white;
  text-align: center;
  position: relative;
}

.contact h2 {
  font-size: 42px;
  margin-bottom: 50px;
}

.contact-container {
  display: flex;
  gap: 40px;
  max-width: 900px;
  margin: 30px auto 0;
  flex-wrap: wrap;
}

.contact-info {
  flex: 1;
  min-width: 250px;
}

form {
  flex: 1;
  min-width: 280px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

input, select, textarea {
  background: #f4f6f9;
  border: 1px solid #e5e7eb;
  border-radius: var(--radius-small);
  padding: 16px;
  font-family: inherit;
  font-size: 16px;
  transition: all 0.3s ease;
  color: var(--text-dark);
}

input:focus, textarea:focus, select:focus {
  border-color: var(--secondary);
  outline: none;
  box-shadow: 0 0 0 3px rgba(227, 178, 60, 0.1);
}

textarea {
  resize: vertical;
  min-height: 130px;
}

.send-btn {
  background: var(--secondary);
  color: var(--primary);
  font-weight: 600;
  border: none;
  border-radius: var(--radius-small);
  padding: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.send-btn:hover {
  background: #D4A12F;
  transform: translateY(-2px);
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
  text-align: left;
}

.contact-item .icon {
  font-size: 24px;
  color: var(--secondary);
}

.contact-item h4 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
}

.contact-item p, .contact-item a {
  margin: 5px 0 0;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
}

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

/* ============================= */
/* FOOTER */
/* ============================= */

/* ============================= */
/* TESTIMONIALS SECTION */
/* ============================= */

.testimonials {
  padding: 90px 6%;
  background: var(--bg-light);
  text-align: center;
}

.testimonials-label {
  color: var(--secondary);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 15px;
}

.testimonials h2 {
  font-size: 42px;
  color: var(--primary);
  margin-bottom: 60px;
}

.testimonials-container {
  max-width: 1000px;
  margin: 0 auto;
  position: relative;
}

.testimonial-card {
  background: white;
  padding: 50px 40px;
  border-radius: var(--radius-medium);
  box-shadow: var(--shadow-soft);
  border: 1px solid #eef1f5;
  min-height: 320px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  animation: fadeInScale 0.5s ease;
}

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.testimonial-card.hidden {
  display: none;
}

.quote-mark {
  font-size: 48px;
  color: rgba(227, 178, 60, 0.3);
  line-height: 1;
  margin-bottom: 20px;
}

.testimonial-text {
  font-size: 18px;
  color: var(--text-dark);
  line-height: 1.8;
  margin-bottom: 30px;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 15px;
}

.author-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--bg-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  flex-shrink: 0;
}

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

.author-name {
  font-weight: 700;
  color: var(--primary);
  font-size: 16px;
  margin: 0;
}

.author-title {
  color: var(--text-light);
  font-size: 14px;
  margin: 0;
}

.stars {
  display: flex;
  gap: 4px;
  justify-content: flex-start;
}

.stars span {
  font-size: 16px;
  color: #FFC107;
}

.testimonial-dots {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 40px;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(11, 31, 58, 0.2);
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.dot.active {
  background: var(--primary);
  width: 32px;
  border-radius: 6px;
}

.dot:hover {
  background: rgba(11, 31, 58, 0.4);
}

/* ============================= */
/* FOOTER */
/* ============================= */

footer {
  background: var(--primary);
  color: white;
  padding: 80px 6%;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 50px;
  margin-bottom: 60px;
}

.footer-section h3 {
  font-size: 18px;
  color: white;
  margin-bottom: 25px;
  font-weight: 700;
  position: relative;
  padding-bottom: 12px;
}

.footer-section h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background: var(--secondary);
  border-radius: 2px;
}

.footer-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-section ul li {
  margin-bottom: 12px;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.8);
}

.footer-section ul li a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-section ul li a:hover {
  color: var(--secondary);
}

.footer-section p {
  margin: 0 0 12px 0;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.7;
}

.footer-section a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-section a:hover {
  color: var(--secondary);
}

.business-info {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 15px;
  font-size: 14px;
}

.business-info strong {
  color: white;
  min-width: 80px;
}

.hours-list {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
}

.hours-list p {
  margin: 8px 0;
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 30px;
  text-align: center;
}

footer p.copyright {
  margin: 0;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
}

/* ============================= */
/* CHAT WIDGET */
/* ============================= */

#chat-toggle {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: var(--secondary);
  color: var(--primary);
  padding: 14px 18px;
  border-radius: 30px;
  font-weight: 600;
  cursor: pointer;
  z-index: 9999;
  box-shadow: var(--shadow-hover);
  border: none;
  transition: all 0.3s ease;
}

#chat-toggle:hover {
  transform: scale(1.05);
}

#chat-widget {
  position: fixed;
  bottom: 80px;
  right: 20px;
  width: 340px;
  height: 480px;
  background: white;
  border-radius: var(--radius-medium);
  box-shadow: var(--shadow-hover);
  display: flex;
  flex-direction: column;
  z-index: 9999;
  overflow: hidden;
}

#chat-widget.closed {
  display: none;
}

#chat-header {
  background: var(--primary);
  color: white;
  padding: 14px;
  font-weight: bold;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

#chat-close {
  cursor: pointer;
  font-size: 18px;
}

#chat-messages {
  flex: 1;
  padding: 15px;
  overflow-y: auto;
  background: var(--bg-light);
}

.chat-message {
  margin-bottom: 10px;
  padding: 10px 14px;
  border-radius: var(--radius-small);
  font-size: 14px;
}

.chat-message.user {
  background: var(--secondary);
  color: var(--primary);
  text-align: right;
}

.chat-message.bot {
  background: white;
  color: var(--text-dark);
  border: 1px solid #eef1f5;
}

#chat-input {
  display: flex;
  border-top: 1px solid #eef1f5;
}

#chat-text {
  flex: 1;
  padding: 10px;
  border: none;
  outline: none;
  font-family: inherit;
  font-size: 14px;
}

#send-btn {
  background: var(--secondary);
  color: var(--primary);
  border: none;
  padding: 10px 15px;
  cursor: pointer;
  font-weight: bold;
  transition: all 0.3s ease;
}

#send-btn:hover {
  background: #D4A12F;
}

/* ============================= */
/* GALLERY */
/* ============================= */

.gallery {
  padding: 90px 6%;
  background: var(--bg-light);
}

.gallery h2 {
  text-align: center;
  font-size: 42px;
  margin-bottom: 40px;
  color: var(--primary);
}

.gallery-section {
  margin-bottom: 50px;
}

.gallery-section h3 {
  margin-bottom: 20px;
  color: var(--primary);
  font-size: 24px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.gallery-grid img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: var(--radius-medium);
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-soft);
}

.gallery-grid img:hover {
  transform: scale(1.05);
  box-shadow: var(--shadow-hover);
}

/* ============================= */
/* RESPONSIVE */
/* ============================= */

@media (max-width: 768px) {
  section {
    padding: 60px 4%;
  }

  .navbar {
    padding: 15px 4%;
    flex-direction: column;
    gap: 15px;
  }

  .nav-container {
    flex-direction: column;
  }

  .nav-links {
    flex-wrap: wrap;
    gap: 15px;
    margin-left: 0;
  }

  .hero {
    padding: 60px 4%;
    min-height: auto;
  }

  .hero h1 {
    font-size: 32px;
  }

  .hero p {
    font-size: 16px;
  }

  h2 {
    font-size: 28px !important;
  }

  .service-grid,
  .why-choose-grid {
    gap: 24px;
  }

  .contact-container {
    flex-direction: column;
    gap: 24px;
  }

  .stats-container {
    flex-direction: column;
    gap: 30px;
  }

  .window-grid {
    flex-direction: column;
    gap: 40px;
  }

  .gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  }

  #chat-widget {
    width: 90vw;
    height: 70vh;
    max-width: 100%;
    right: 5vw;
    bottom: 70px;
  }
}

@media (max-width: 480px) {
  section {
    padding: 50px 3%;
  }

  .hero {
    padding: 40px 3%;
  }

  .hero h1 {
    font-size: 24px;
  }

  .contact-item {
    text-align: center;
    flex-direction: column;
  }
}
