/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-color: #143a52;
  --secondary-color: #e67e22;
  --accent-color: #0f8ec7;
  --dark-color: #0f1f2d;
  --light-color: #f5f7fa;
  --text-color: #2c3e50;
  --text-light: #718096;
  --white: #ffffff;
  --shadow: 0 20px 45px rgba(20, 58, 82, 0.12);
  --transition: all 0.3s ease;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Open Sans', sans-serif;
  color: var(--text-color);
  background: var(--white);
  line-height: 1.7;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  line-height: 1.2;
  color: var(--dark-color);
}

p {
  margin-bottom: 1rem;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

.container.narrow {
  max-width: 820px;
}

.btn {
  display: inline-block;
  padding: 12px 30px;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
  border: none;
  cursor: pointer;
  font-family: 'Montserrat', sans-serif;
}

.btn-primary {
  background: var(--secondary-color);
  color: var(--white);
  box-shadow: 0 10px 20px rgba(230, 126, 34, 0.2);
}

.btn-primary:hover {
  transform: translateY(-2px);
}

.btn-outline {
  border: 1px solid rgba(255,255,255,0.6);
  color: var(--white);
  background: transparent;
}

.btn-outline:hover {
  background: rgba(255,255,255,0.1);
}

.text-link {
  color: var(--accent-color);
  font-weight: 600;
  text-decoration: none;
}

.text-link:hover {
  text-decoration: underline;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: 0.75rem;
  color: var(--secondary-color);
  margin-bottom: 0.75rem;
}

.lead {
  font-size: 1.1rem;
  color: var(--text-light);
}

main {
  padding-top: 110px;
}

/* Header */
.header {
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  background: var(--white);
  box-shadow: 0 10px 30px rgba(15, 31, 45, 0.06);
  z-index: 1000;
  transition: var(--transition);
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px;
  gap: 12px;
}

.header .container .logo {
  margin-right: 0;
}

/* Slightly smaller button in header to keep header height compact */
.header .btn {
  padding: 8px 20px;
  font-size: 0.85rem;
}

.header--scrolled {
  background: rgba(255,255,255,0.98);
  box-shadow: 0 12px 30px rgba(15, 31, 45, 0.15);
}

.logo {
  display: inline-block;
  margin-right: 8px;
}

.logo img {
  /* Desktop/tablet logo size - smaller header, but still prominent */
  height: 90px;
  max-height: 90px;
  width: auto;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.phone-link {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--primary-color);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
}

.phone-link i {
  color: var(--secondary-color);
}

.mobile-menu-btn {
  width: 32px;
  height: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
}

.mobile-menu-btn span {
  height: 3px;
  width: 100%;
  background: var(--dark-color);
  transition: var(--transition);
}

.nav {
  display: none;
  background: var(--white);
  box-shadow: 0 10px 30px rgba(15, 31, 45, 0.06);
}

.nav ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0;
}

.nav li {
  border-bottom: 1px solid #edf2f7;
}

.nav a {
  display: block;
  padding: 15px 20px;
  text-decoration: none;
  color: var(--dark-color);
  font-weight: 600;
  transition: var(--transition);
}

.nav a.active,
.nav a:hover {
  color: var(--secondary-color);
}

.nav.active {
  display: block;
}

/* Info bar */
.info-bar {
  background: linear-gradient(135deg, var(--primary-color), var(--dark-color));
  padding: 12px 0;
  font-size: 0.9rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.info-bar .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
  align-items: center;
}

.info-bar span {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  font-weight: 500;
  padding: 4px 0;
  transition: var(--transition);
}

.info-bar span:hover {
  transform: translateY(-2px);
}

.info-bar i {
  color: var(--secondary-color);
  font-size: 1.1rem;
}

/* Hero */
.hero {
  background: url('../images/homepic.jpeg') center/cover;
  color: var(--text-color);
  padding: 60px 0;
  background-attachment: fixed;
}

.hero-grid {
  display: flex;
  flex-direction: column;
  gap: 30px;
  align-items: center;
  justify-content: center;
}

.hero-text h1 {
  font-size: 2.8rem;
  margin-bottom: 1rem;
}

.hero-cta {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 20px 0;
}

.hero-list {
  list-style: none;
  margin-top: 20px;
}

.hero-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.hero-form {
  background: var(--white);
  color: var(--text-color);
  padding: 30px;
  border-radius: 16px;
  box-shadow: var(--shadow);
}

.hero-form form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hero-form select,
.hero-form input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  font-size: 0.95rem;
}

.hero-form textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  font-size: 0.95rem;
  resize: vertical;
  min-height: 90px;
}

.hero-form .file-input {
  font-size: 0.85rem;
  color: var(--text-light);
}

.name-fields,
.address-fields {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hero-form small {
  display: block;
  font-size: 0.8rem;
  color: var(--text-light);
}

/* Generic sections */
.page-section {
  padding: 70px 0;
}

.section-heading {
  font-size: 2rem;
  margin-bottom: 1.5rem;
}

.split-grid {
  display: grid;
  gap: 30px;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.stat-grid h3 {
  font-size: 2rem;
  color: var(--secondary-color);
}

.feature-card {
  background: var(--light-color);
  border-radius: 16px;
  padding: 30px;
  box-shadow: var(--shadow);
}

.feature-card ul {
  list-style: none;
}

.feature-card li {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.tile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
}

.tile {
  background: var(--white);
  padding: 25px;
  border-radius: 18px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tile img {
  width: 100%;
  border-radius: 12px;
}

.tile-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.tile-link:hover h3 {
  color: var(--secondary-color);
  transition: var(--transition);
}

.tile-link img {
  transition: var(--transition);
}

.tile-link:hover img {
  transform: scale(1.05);
  opacity: 0.9;
}

.feature-list {
  list-style: none;
  margin: 15px 0;
  padding: 0;
}

.feature-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  color: var(--text-color);
}

.feature-list i {
  color: var(--secondary-color);
}

.mission-section .container {
  text-align: center;
}

.mission-card {
  margin: 20px auto 0;
  padding: 20px;
  border-radius: 16px;
  background: var(--light-color);
  box-shadow: var(--shadow);
  max-width: 720px;
}

.differentiators {
  background: var(--light-color);
}

.pill-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.pill-card {
  background: var(--white);
  border-radius: 18px;
  padding: 24px;
  box-shadow: var(--shadow);
  text-align: center;
}

.pill-card i {
  font-size: 1.5rem;
  color: var(--secondary-color);
  margin-bottom: 10px;
}

.pill-card h3 {
  margin-bottom: 8px;
}

.door-directory {
  background: var(--light-color);
}

.door-type-card {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  background: var(--white);
  border-radius: 24px;
  padding: 35px;
  box-shadow: var(--shadow);
  margin-bottom: 30px;
}

.door-type-info h2 {
  margin-bottom: 10px;
}

.door-type-list {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.door-type-actions {
  display: flex;
  gap: 20px;
  align-items: center;
  margin-top: 15px;
}

.door-preview {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  min-height: 280px;
  background: #0f1f2d;
}

.door-preview img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.door-preview img.active {
  opacity: 1;
}

.door-preview-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  height: 100%;
  padding: 20px;
}

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: rgba(0,0,0,0.5);
  color: var(--white);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  z-index: 2;
}

.slider-btn:hover {
  background: rgba(0,0,0,0.8);
}

.slider-btn.prev {
  left: 15px;
}

.slider-btn.next {
  right: 15px;
}

.door-preview .slider-btn {
  display: none;
}

.door-preview:hover .slider-btn {
  display: flex;
}

.detail-hero .detail-hero-actions {
  margin-top: 20px;
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.door-detail {
  background: var(--light-color);
}

.door-detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
}

.feature-list.stacked li {
  align-items: flex-start;
}

.door-slider {
  position: relative;
}

.door-slider-frame {
  border-radius: 20px;
  overflow: hidden;
  min-height: 360px;
  position: relative;
  background: #0f1f2d;
}

.door-slider-frame img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.door-slider-frame img.active {
  opacity: 1;
}

.products-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-bottom: 30px;
}

.filter-btn {
  border: 1px solid rgba(20,58,82,0.2);
  background: var(--white);
  color: var(--dark-color);
  padding: 10px 24px;
  border-radius: 30px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.filter-btn.active,
.filter-btn:hover {
  background: var(--secondary-color);
  color: var(--white);
  border-color: var(--secondary-color);
}

.product-types {
  display: none;
}

.product-types.active {
  display: block;
}

.type-grid {
  display: grid;
  gap: 24px;
}

.type-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  background: var(--white);
  padding: 24px;
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.type-card img {
  width: 100%;
  border-radius: 14px;
  object-fit: cover;
  max-height: 220px;
}

.type-card ul {
  list-style: none;
  margin: 12px 0;
}

.type-card ul li {
  margin-bottom: 8px;
  color: var(--text-light);
}

.cta-band {
  background: var(--primary-color);
  color: var(--white);
  text-align: center;
  padding: 60px 0;
}

.cta-band p {
  max-width: 640px;
  margin: 0 auto 20px;
}

/* Page hero */
.page-hero {
  padding: 80px 0 40px;
  background: var(--light-color);
}

.page-hero h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

/* Catalogue */
.catalogue .section-heading-wrap {
  margin-bottom: 30px;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.product-card {
  background: var(--white);
  padding: 25px;
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.product-card ul {
  list-style: none;
  margin-top: 10px;
}

.product-card ul li {
  margin-bottom: 8px;
  color: var(--text-light);
}

/* About */
.about-photo {
  width: 100%;
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.highlight-list {
  list-style: none;
  margin-top: 20px;
}

.highlight-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.timeline {
  background: var(--light-color);
}

.timeline-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.timeline-grid article {
  background: var(--white);
  border-radius: 16px;
  padding: 25px;
  box-shadow: var(--shadow);
}

.timeline-grid span {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--secondary-color);
  display: inline-block;
  margin-bottom: 10px;
}

.values .container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.values-card {
  background: var(--white);
  border-radius: 16px;
  padding: 25px;
  box-shadow: var(--shadow);
}

/* Reviews */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.review-card {
  background: var(--white);
  border-radius: 16px;
  padding: 25px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.review-rating i {
  color: #f7b500;
}

.review-author {
  display: flex;
  flex-direction: column;
  color: var(--text-light);
}

.testimonial-cta {
  background: var(--primary-color);
  color: var(--white);
  text-align: center;
  padding: 60px 0;
}

/* Contact */
.contact-grid {
  display: grid;
  gap: 30px;
}

.contact-info {
  background: var(--white);
  padding: 30px;
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.contact-item {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
}

.contact-item i {
  font-size: 1.2rem;
  color: var(--secondary-color);
}

.opening-hours ul {
  list-style: none;
}

.social-links {
  margin-top: 25px;
  padding-top: 25px;
  border-top: 1px solid #e2e8f0;
}

.social-links h3 {
  margin-bottom: 15px;
  font-size: 1.1rem;
  color: var(--dark-color);
}

.social-icons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.social-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: var(--light-color);
  border-radius: 8px;
  text-decoration: none;
  color: var(--text-color);
  font-weight: 500;
  transition: var(--transition);
  border: 1px solid #e2e8f0;
}

.social-link:hover {
  background: var(--primary-color);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.social-link i {
  font-size: 1.2rem;
}

.social-link:hover i {
  color: var(--white);
}

.contact-form {
  background: var(--white);
  padding: 30px;
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  font-size: 0.95rem;
}

.form-group textarea {
  resize: vertical;
}

.map-panel {
  background: var(--light-color);
}

.map-placeholder {
  background: var(--white);
  border-radius: 16px;
  padding: 60px;
  text-align: center;
  color: var(--text-light);
  border: 1px dashed #cbd5f5;
}

/* Brands */
.brands {
  padding: 50px 0;
  background: var(--white);
}

.brands-slider {
  overflow: hidden;
}

.brand-track {
  display: flex;
  gap: 30px;
  animation: slide 20s linear infinite;
}

.brand-slide img {
  max-width: 120px;
  filter: grayscale(100%);
  opacity: 0.7;
}

@keyframes slide {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* Footer */
.footer {
  background: var(--dark-color);
  color: var(--white);
  padding: 50px 0 20px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.footer-column ul {
  list-style: none;
}

.footer-column ul li {
  margin-bottom: 10px;
  color: #cbd5f5;
}

.footer-column a {
  color: #cbd5f5;
  text-decoration: none;
}

.footer-column a:hover {
  color: var(--secondary-color);
}

.footer-logo img {
  height: 200px;
  max-height: 200px;
  width: auto;
  margin-bottom: 15px;
}

.footer-bottom {
  text-align: center;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 15px;
}

/* Floating buttons */
.floating-buttons {
  position: fixed;
  right: 20px;
  bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 999;
}

.whatsapp-btn,
.email-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  text-decoration: none;
  box-shadow: var(--shadow);
}

.whatsapp-btn {
  background: #25d366;
}

.email-btn {
  background: var(--primary-color);
}

.whatsapp-btn:hover,
.email-btn:hover {
  transform: translateY(-3px);
}

/* Responsive */
@media (max-width: 767px) {
  /* Keep header usable on small screens */
  .logo img {
    height: 80px;
    max-height: 80px;
  }

  .footer-logo img {
    height: 80px;
    max-height: 80px;
  }

  .header .container {
    justify-content: space-between;
    flex-wrap: wrap;
    position: relative;
  }

  .header-inner {
    gap: 10px;
  }

  .mobile-menu-btn {
    order: 1;
  }

  .logo {
    order: 2;
  }

  .header-right {
    order: 3;
    flex-direction: column;
    gap: 8px;
    align-items: flex-end;
  }

  .nav {
    width: 100%;
    order: 4;
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    z-index: 999;
    margin-top: 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  }

  .nav.active {
    display: block;
  }

  .nav ul {
    width: 100%;
  }
}

@media (min-width: 768px) {
  .hero-grid {
    flex-direction: row;
    align-items: center;
    justify-content: flex-end; /* CHANGED: This pushes the form to the right */
  }

  .hero-form {
    max-width: 500px;
    width: 100%;
    /* Optional: Add a slight margin-right if you want it further from the edge, 
       though the container padding handles this mostly. */
  }

  .hero-cta {
    flex-direction: row;
  }

  .split-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .type-card {
    grid-template-columns: 220px 1fr;
    align-items: center;
  }

  .contact-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (min-width: 992px) {
  .logo {
    margin-right: 8px;
  }

  .nav {
    display: block;
    position: static;
    box-shadow: none;
    margin-left: 0;
  }

  .nav ul {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
  }

  .nav li {
    border: none;
  }

  .nav a {
    padding: 0;
  }

  .mobile-menu-btn {
    display: none;
  }

  .search-bar {
    display: block;
    position: relative;
    margin: 0 20px;
  }

  .search-bar input {
    width: 280px;
    padding: 10px 40px 10px 15px;
    border-radius: 30px;
    border: 1px solid #e2e8f0;
  }

  .search-bar i {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
  }

  .nav-spacer {
    display: block;
    flex: 1;
  }
}