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

/* CSS Variables */
:root {
  /* Colors */
  --color-charcoal: #003752;
  --color-graphite: #002233;
  --color-gold: #EE4036;
  --color-amber: #d32f2f;
  --color-grey: #F3F4F6;
  --color-steel: #6B7280;
  --color-white: #FFFFFF;
  --color-whatsapp: #16A34A;
  --color-whatsapp-hover: #15803d;
  --color-blue: #2563EB;

  /* Typography */
  --font-heading: 'Manrope', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Spacing */
  --section-padding: 80px 0;
  --section-padding-mobile: 50px 0;

  /* Borders */
  --border-radius-sm: 4px;
  --border-radius-md: 8px;
  --border-radius-lg: 12px;

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 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);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--color-charcoal);
  background-color: var(--color-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  color: var(--color-charcoal);
  line-height: 1.2;
  margin-bottom: 1rem;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

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

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Typography Utilities */
.text-center {
  text-align: center;
}

.text-gold {
  color: var(--color-gold);
}

.text-white {
  color: var(--color-white);
}

.text-steel {
  color: var(--color-steel);
}

.font-bold {
  font-weight: 700;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: var(--border-radius-sm);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  text-align: center;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-gold), var(--color-amber));
  color: var(--color-white);
  box-shadow: 0 4px 6px -1px rgba(238, 64, 54, 0.2);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(238, 64, 54, 0.4);
}

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

.btn-whatsapp:hover {
  background-color: var(--color-whatsapp-hover);
  color: var(--color-white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background-color: transparent;
  border: 2px solid var(--color-gold);
  color: var(--color-gold);
}

.btn-outline:hover {
  background-color: var(--color-gold);
  color: var(--color-charcoal);
}

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

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

/* Sections */
section {
  padding: var(--section-padding);
}

.section-dark {
  background-color: var(--color-charcoal);
  color: var(--color-white);
}

.section-dark h2,
.section-dark h3 {
  color: var(--color-white);
}

.section-grey {
  background-color: var(--color-grey);
}

.section-title {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--color-steel);
  max-width: 700px;
  margin: 0 auto 3rem;
}

.section-dark .section-subtitle {
  color: #9CA3AF;
}

/* Header */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 1000;
  padding: 15px 0;
  transition: all 0.3s ease;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

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

.header-logo,
.footer-logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--color-white);
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-logo span,
.footer-logo span {
  color: var(--color-gold);
}

.footer-logo img {
  max-height: 65px;
  width: auto;
  object-fit: contain;
  background: #fff;
  padding: 10px;
  border-radius: 4px;
}

.header-logo img {
  max-height: 45px;
  width: auto;
  object-fit: contain;
}

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

.nav-links a {
  color: var(--color-charcoal);
  font-weight: 500;
  font-size: 0.95rem;
}

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

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

.mobile-nav {
  display: none;
  position: fixed;
  top: 70px;
  left: 0;
  width: 100%;
  background-color: var(--color-graphite);
  padding: 20px;
  flex-direction: column;
  gap: 15px;
  z-index: 999;
  box-shadow: var(--shadow-md);
}

.mobile-nav.active {
  display: flex;
}

.mobile-nav a {
  color: var(--color-white);
  font-weight: 500;
  font-size: 1.1rem;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Mobile Sticky CTA */
.mobile-sticky-cta {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: var(--color-white);
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
  z-index: 998;
  padding: 10px;
  justify-content: space-between;
  gap: 10px;
}

.mobile-sticky-cta a {
  flex: 1;
  text-align: center;
  padding: 10px 4px;
  border-radius: var(--border-radius-sm);
  font-weight: 700;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.m-cta-whatsapp {
  background-color: var(--color-whatsapp);
  color: white;
}

.m-cta-call {
  background-color: var(--color-charcoal);
  color: white;
}

.m-cta-quote {
  background-color: var(--color-gold);
  color: var(--color-charcoal);
}

/* Hero Section */
.hero {
  padding: 120px 0px 40px 0px;
  min-height: 600px;
  display: flex;
  align-items: center;
  background: url('../images/ConstroMaxx Banner 1.webp') no-repeat center center;
  background-size: cover;
  color: var(--color-white);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 80% 20%, rgba(238, 64, 54, 0.15) 0%, transparent 50%);
  pointer-events: none;
}

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

.hero-content h1 {
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--color-white);
  margin-bottom: 1.5rem;
  line-height: 1.1;
}

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

.hero-content p {
  font-size: 1.25rem;
  color: #D1D5DB;
  margin-bottom: 2rem;
  max-width: 500px;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  align-items: center;
}

.hero-link {
  color: var(--color-white);
  text-decoration: underline;
  font-weight: 500;
}

.hero-link:hover {
  color: var(--color-gold);
}

.trust-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.trust-chip {
  background-color: var(--color-graphite);
  padding: 8px 16px;
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-image {
  position: relative;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.5);
}

.hero-image img {
  width: 100%;
  height: 600px;
  object-fit: cover;
}

/* Quick Enquiry Strip */
.enquiry-strip {
  background-color: var(--color-gold);
  padding: 20px 0;
}

.enquiry-scroll {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 5px;
}

.enquiry-scroll::-webkit-scrollbar {
  display: none;
}

.enquiry-chip {
  background-color: var(--color-white);
  padding: 10px 20px;
  border-radius: 50px;
  white-space: nowrap;
  font-weight: 700;
  color: var(--color-charcoal);
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: var(--shadow-sm);
}

.enquiry-chip:hover {
  box-shadow: var(--shadow-md);
}

/* Value Blocks */
.value-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.value-card {
  background-color: var(--color-white);
  border-radius: var(--border-radius-lg);
  padding: 30px;
  box-shadow: var(--shadow-md);
  border-top: 4px solid var(--color-gold);
  transition: transform 0.3s ease;
}

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

.value-card h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
}

.value-card p {
  color: var(--color-steel);
  margin-bottom: 25px;
}

.value-card ul {
  list-style: none;
  margin-bottom: 30px;
}

.value-card ul li {
  margin-bottom: 10px;
  position: relative;
  padding-left: 25px;
  color: var(--color-charcoal);
  font-size: 0.95rem;
}

.value-card ul li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--color-gold);
  font-weight: bold;
}

/* Product Grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 30px;
}

.product-card {
  background-color: var(--color-white);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
}

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

.product-img {
  height: 200px;
  overflow: hidden;
}

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

.product-card:hover .product-img img {
  transform: scale(1.05);
}

.product-content {
  padding: 25px;
}

.product-content h3 {
  font-size: 1.25rem;
  margin-bottom: 10px;
}

.product-content p {
  color: var(--color-steel);
  font-size: 0.9rem;
  margin-bottom: 10px;
}

.product-content .btn {
  width: 100%;
}

/* Product Carousel Mobile */
.product-carousel-wrapper {
  position: relative;
}

.carousel-btn {
  display: none;
}

@media (max-width: 768px) {
  .product-carousel-wrapper {
    margin-left: -20px;
    margin-right: -20px;
    position: relative;
    padding-left: 20px;
  }

  .product-content p {
    color: var(--color-steel);
    font-size: 0.9rem;
    margin-bottom: 10px;
  }

  .value-card {
    padding: 20px;
  }

  .hero {
    background: linear-gradient(rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.45)), url('../images/ConstroMaxx Banner 1.webp') no-repeat center center !important;
  }

  .product-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    gap: 12px;
    padding: 0 20px 20px 20px;
    -ms-overflow-style: none;
    scrollbar-width: none;
  }

  .product-grid::-webkit-scrollbar {
    display: none;
  }

  .product-grid .product-card {
    min-width: 95%;
    width: 95%;
    max-width: 95%;
    scroll-snap-align: start;
    flex-shrink: 0;
  }

  .carousel-btn {
    display: flex;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: var(--color-white);
    color: var(--color-charcoal);
    border: 1px solid #E5E7EB;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    align-items: center;
    justify-content: center;
    z-index: 10;
    cursor: pointer;
    transition: transform 0.2s ease, background-color 0.2s ease;
    outline: none !important;
    -webkit-tap-highlight-color: transparent;
  }

  .carousel-btn:hover {
    background-color: var(--color-grey);
    transform: translateY(-50%) scale(1.05);
  }

  .prev-btn {
    left: 5px;
  }

  .next-btn {
    right: 5px;
  }

  .why-icon {
    width: 32px !important;
    height: 32px !important;
  }
}

/* Why ConstroMaxx */
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.why-feature {
  display: flex;
  gap: 20px;
}

.why-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.why-text h4 {
  font-size: 1.125rem;
  margin-bottom: 8px;
}

.why-text p {
  color: var(--color-steel);
  font-size: 0.9rem;
}

/* Quote Section */
.quote-section {
  position: relative;
  overflow: hidden;
}

.quote-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  background-color: var(--color-white);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.quote-image {
  position: relative;
}

.quote-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.quote-form-wrap {
  padding: 50px;
}

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  font-size: 0.9rem;
}

.form-control {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #D1D5DB;
  border-radius: var(--border-radius-sm);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: border-color 0.3s;
}

.form-control:focus {
  outline: none !important;
  border-color: var(--color-gold);
  box-shadow: 0 0 0 3px rgba(245, 164, 0, 0.1);
}

select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23111827%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");
  background-repeat: no-repeat;
  background-position: right 15px top 50%;
  background-size: 12px auto;
}

.checkbox-wrap {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.checkbox-wrap input {
  margin-top: 5px;
}

.checkbox-wrap label {
  font-size: 0.85rem;
  color: var(--color-steel);
}

.form-message {
  display: none;
  padding: 15px;
  border-radius: var(--border-radius-sm);
  margin-top: 20px;
  font-weight: 500;
}

.form-message.success {
  display: block;
  background-color: #DEF7EC;
  color: #03543F;
}

.form-message.error {
  display: block;
  background-color: #FDE8E8;
  color: #9B1C1C;
}

/* Delivery Trust */
.delivery-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

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

.delivery-image::before {
  content: '';
  position: absolute;
  top: -20px;
  left: -20px;
  width: 100%;
  height: 100%;
  border: 4px solid var(--color-gold);
  border-radius: var(--border-radius-lg);
  z-index: -1;
}

.delivery-points li {
  font-size: 1.1rem;
  font-weight: 500;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 15px;
}

.delivery-points li svg {
  color: var(--color-whatsapp);
  flex-shrink: 0;
}

/* Service Areas */
.areas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.area-card {
  background-color: var(--color-white);
  padding: 20px;
  border-radius: var(--border-radius-md);
  text-align: center;
  font-weight: 600;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-grey);
}

.area-note {
  text-align: center;
  color: #D1D5DB;
  font-size: 0.9rem;
  margin-bottom: 30px;
}

/* FAQ */
.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

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

.faq-question {
  padding: 20px 25px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  user-select: none;
}

.faq-icon {
  transition: transform 0.3s ease;
  color: var(--color-gold);
}

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

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

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

/* Educational Cards */
.edu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 30px;
}

.edu-card {
  background-color: var(--color-charcoal);
  color: var(--color-white);
  padding: 30px;
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-md);
  border-bottom: 4px solid var(--color-blue);
}

.edu-card h4 {
  color: var(--color-white);
  font-size: 1.2rem;
  margin-bottom: 15px;
}

.edu-card p {
  color: #9CA3AF;
  font-size: 0.9rem;
}

/* Final CTA */
.final-cta {
  position: relative;
  padding: 100px 0;
  text-align: center;
  color: var(--color-white);
}

.final-cta-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
}

.final-cta-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.final-cta-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(17, 24, 39, 0.85);
  z-index: -1;
}

.final-cta .btn-group {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

/* Footer */
footer {
  background-color: var(--color-charcoal);
  color: var(--color-white);
  padding: 80px 0 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

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

.footer-about p {
  color: #9CA3AF;
  margin-top: 20px;
  font-size: 0.95rem;
}

.footer-title {
  color: var(--color-white);
  font-size: 1.2rem;
  margin-bottom: 25px;
  font-weight: 700;
}

.footer-links {
  list-style: none;
}

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

.footer-links a {
  color: #9CA3AF;
  font-size: 0.95rem;
}

.footer-links a:hover {
  color: var(--color-gold);
}

.footer-contact li {
  color: #9CA3AF;
  font-size: 0.95rem;
  margin-bottom: 15px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.footer-contact li svg {
  color: var(--color-gold);
  flex-shrink: 0;
  margin-top: 4px;
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #6B7280;
  font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 1024px) {
  .hero-content h1 {
    font-size: 3rem;
  }

  .quote-container {
    grid-template-columns: 1fr;
  }

  .quote-image {
    height: 300px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  section {
    padding: var(--section-padding-mobile);
  }

  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-content p {
    margin: 0 auto 2rem;
  }

  .hero-ctas {
    justify-content: center;
  }

  .hero-image img {
    height: 400px;
  }

  .trust-chips {
    justify-content: center;
  }

  .nav-links,
  .header-cta {
    display: none;
  }

  .mobile-menu-btn {
    display: block;
  }

  .value-grid,
  .why-grid,
  .delivery-grid {
    grid-template-columns: 1fr;
  }

  .areas-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .delivery-image {
    order: -1;
  }

  .quote-form-wrap {
    padding: 30px 20px;
  }

  .mobile-sticky-cta {
    display: flex;
  }

  footer {
    padding-bottom: 90px;
  }

  /* Space for sticky CTA */
}