:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --muted: #6b7280;
  --text: #0f172a;
  --primary: #0b74de;
  --accent: #0b6b3a;
  --card: #f8fafc;
  --glass: rgba(255, 255, 255, 0.6);
  --shadow: 0 6px 18px rgba(11, 20, 40, 0.08);
  --submit: lightgreen;
  --cancel: rgb(245, 186, 186)
}

.theme-dark {
  --bg: #061222;
  --surface: #071826;
  --muted: #98a1ad;
  --text: #e6eef8;
  --primary: #58a6ff;
  --accent: #4fd08a;
  --card: rgba(255, 255, 255, 0.03);
  --glass: rgba(255, 255, 255, 0.04);
  --shadow: 0 10px 30px rgba(2, 6, 23, 0.6);
  --submit: #0b6b3a;
  --cancel: rgb(255 56 78)
}

* {
  box-sizing: border-box
}

html,
body {
  height: 100%
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.5;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1rem
}

/* Header */
.site-header {
  backdrop-filter: blur(6px);
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.6), transparent)
}

.theme-dark .site-header {
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.6), transparent);
  border-bottom-color: rgba(255, 255, 255, 0.03)
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.45rem 0
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit
}

.logo {
  max-height: 56px;
  width: auto;
  object-fit: contain;
  padding-left: 8px
}

.brand {
  align-items: center
}

.brand-text {
  font-weight: 700
}

.main-nav {
  display: flex;
  gap: 1rem;
  margin-left: auto
}

.main-nav a {
  color: var(--muted);
  text-decoration: none;
  padding: 0.4rem 0.6rem;
  border-radius: 6px
}

.main-nav a:hover {
  background: var(--glass);
  color: var(--text)
}

.header-actions {
  margin-left: 0.5rem
}

#theme-toggle {
  background: transparent;
  border: 0;
  padding: 0.3rem 0.6rem;
  border-radius: 8px;
  cursor: pointer
}

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  background: transparent;
  border: 0;
  color: var(--text);
  font-size: 22px;
  padding: 0.25rem 0.5rem;
  border-radius: 6px
}

/* Sliding mobile menu */
.mobile-overlay {
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 23, 0.4);
  z-index: 48;
  opacity: 0;
  transition: opacity .22s
}

.mobile-overlay.visible {
  opacity: 1
}

.mobile-menu {
  position: fixed;
  left: -100%;
  top: 0;
  bottom: 0;
  width: 100%;
  max-width: 100%;
  background: var(--surface);
  z-index: 50;
  padding: 1rem 0.75rem;
  box-shadow: 0 20px 60px rgba(2, 6, 23, 0.3);
  transition: left .28s cubic-bezier(.2, .9, .2, 1);
  display: flex;
  flex-direction: column
}

.mobile-menu.open {
  left: 0
}

.mobile-close {
  background: transparent;
  border: 0;
  color: var(--muted);
  font-size: 20px;
  padding: 0.5rem;
  position: absolute;
  right: 12px;
  top: 12px
}

.mobile-menu-top {
  display: flex;
  justify-content: flex-end;
  padding: 0 0.6rem 0.2rem
}

.btn-ghost {
  background: transparent;
  border: 0;
  padding: 0.4rem 0.6rem;
  border-radius: 8px;
  font-size: 18px;
  display: inline-flex;
  align-items: center;
  color: var(--text)
}

/* small spacing for theme icon + text */
.btn-ghost i {
  margin-right: 0.5rem
}

.theme-label {
  font-size: 0.95rem
}

/* animate hamburger to X */
.menu-toggle {
  transition: transform .28s ease, color .15s ease
}

.menu-toggle.open {
  transform: rotate(90deg)
}

.menu-toggle i {
  transition: transform .28s ease
}

/* overlay blur */
.mobile-overlay {
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px)
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: 1rem;
  flex: 1;
  overflow: auto
}

.mobile-nav a {
  padding: 0.8rem 1rem;
  border-radius: 8px;
  color: var(--text);
  text-decoration: none
}

.mobile-nav a:hover {
  background: var(--glass)
}

/* icons inside mobile nav links */
.mobile-nav i {
  margin-right: 0.6rem;
  color: var(--muted);
  min-width: 20px;
  text-align: center
}

/* generic inline SVG icon sizing and spacing */
.icon {
  width: 20px;
  height: 20px;
  vertical-align: middle;
  display: inline-block;
  margin-right: 0.5rem;
  color: var(--muted)
}

.service-card .icon {
  color: var(--primary)
}

.mobile-menu-bottom {
  padding: 0.8rem 0.6rem;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  display: flex;
  justify-content: center
}

@media (max-width:900px) {
  .menu-toggle {
    display: inline-flex;
    margin-left: auto
  }

  .main-nav {
    display: none
  }

  .header-actions {
    display: none
  }
}

/* Desktop: keep header fixed and ensure main content is padded */
@media (min-width:901px) {
  .site-header {
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    z-index: 80
  }

  main {
    padding-top: 76px
  }
}

/* Dropdown styles for Services */
.nav-dropdown {
  position: relative
}

.nav-dropdown .drop-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem
}

.dropdown-menu {
  position: absolute;
  left: 0;
  top: 100%;
  background: var(--surface);
  border-radius: 8px;
  box-shadow: var(--shadow);
  min-width: 220px;
  padding: 0.5rem 0;
  display: none;
  flex-direction: column
}

.dropdown-menu a {
  padding: 0.5rem 0.9rem;
  color: var(--text);
  text-decoration: none
}

.dropdown-menu a:hover {
  background: var(--glass)
}

.nav-dropdown:hover .dropdown-menu {
  display: flex
}

/* Measurement calculator styles */
.calc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  align-items: start;
  margin-top: 0.8rem
}

.calc-inputs label {
  display: block;
  margin-bottom: 0.6rem
}

.calc-inputs input,
.calc-inputs select {
  width: 100%;
  padding: 0.5rem;
  border-radius: 8px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: transparent
}

.calc-actions {
  display: flex;
  gap: 0.6rem;
  margin-top: 0.6rem
}

.calc-result {
  background: var(--card);
  padding: 0.8rem;
  border-radius: 10px;
  box-shadow: var(--shadow)
}

.calc-result h3 {
  margin-top: 0
}

.calc-inputs .input-container {
  display: flex;
  flex-direction: column;
  gap: 15px;
  /* Space between rows */
  max-width: 500px;
}

.input-row {
  display: flex;
  align-items: center;
  /* Vertically centers items */
  gap: 10px;
  /* Space between label, input, and select */
}

/* Optional: Keeps labels a consistent width for better alignment */
.input-row label {
  min-width: 130px;
  font-weight: bold;
}

/* Makes the number input feel a bit more professional */
input[type="number"] {
  padding: 5px;
  width: 80px;
}

select {
  padding: 5px;
}

@media (max-width:900px) {
  .calc-grid {
    grid-template-columns: 1fr
  }
}

/* Hero */
.hero {
  padding: 3rem 0;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  color: white
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 1.5rem;
  align-items: start
}

.hero-copy h1 {
  font-size: 2.1rem;
  margin: 0 0 0.5rem
}

.lead {
  opacity: 0.95
}

.cta-row {
  margin-top: 1rem
}

.btn {
  display: inline-block;
  padding: 0.6rem 1rem;
  border-radius: 8px;
  text-decoration: none
}

.btn.primary {
  background: var(--surface);
  color: var(--primary);
  font-weight: 600
}

.btn.outline {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: white
}

.calc-actions {
  .btn{
    font-weight: normal;
    color: var(--text);
  }
  .btn.primary {
    background: var(--submit);
    border: 1px solid green;
  }

  .btn.outline {
    background: var(--cancel);
    border: 1px solid rgb(255, 108, 108);
  }
}

.calc-diagram {
  width: 150px;
  height: auto;
}

.hero-card {
  max-width: 380px;
  background: rgba(255, 255, 255, 0.08);
  padding: 1rem;
  border-radius: 12px;
  box-shadow: var(--shadow)
}

.hero-stats {
  display: flex;
  gap: 1rem;
  list-style: none;
  padding: 0;
  margin: 1rem 0 0
}

.hero-stats li {
  flex: 1;
  text-align: center
}

.hero-stats strong {
  display: block;
  font-size: 1.2rem
}

/* Sections */
.section {
  padding: 0.2rem;
  background: var(--bg)
}

@media (max-width:900px) {
  .section.services {
    padding-top: 0.2rem
  }
}

/* Section heading icons */
.section h2 {
  display: flex;
  align-items: center;
  gap: 0.6rem
}

.section h2 i {
  color: var(--primary);
  font-size: 1.05em
}

.about p {
  max-width: 70ch
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem
}

.service-card {
  background: var(--card);
  padding: 1rem;
  border-radius: 12px;
  box-shadow: var(--shadow)
}

/* Make the first service card (Ready Mix Concrete) span full width */
.services-grid>.service-card:first-child {
  grid-column: 1 / -1
}

/* Make the Transport & Pumping card (second card) span full width on wider viewports */
@media (min-width:900px) {
  .services-grid>.service-card:nth-child(2) {
    grid-column: 1 / -1;
  }

  .services-grid>.service-card:nth-child(3) {
    grid-column: 1 / -1;
  }

  .services-grid>.service-card:nth-child(4) {
    grid-column: 1 / -1;
  }
}

/* Service list styling */
.service-list {
  margin-top: 0.6rem;
  padding-left: 1.05rem
}

.service-list li {
  margin-bottom: 0.45rem
}

.service-card h4 {
  margin-top: 0.5rem
}

.muted {
  color: var(--muted)
}

.main-nav i,
.service-card h3 i {
  margin-right: 0.5rem
}

.special-mixes {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 0.75rem
}

.special-mixes li {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  background: var(--card);
  padding: 0.6rem;
  border-radius: 10px
}

.special-mixes img {
  width: 150px;
  height: 150px;
  object-fit: cover;
  border-radius: 8px
}

.special-mixes strong {
  display: block
}


.projects-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem;
  margin-top: 1rem
}

.proj {
  background: linear-gradient(180deg, rgba(11, 20, 40, 0.03), transparent);
  padding: 1rem;
  border-radius: 8px;
  text-align: center
}

.locations-list {
  columns: 2;
  gap: 1rem
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 1.5rem;
  align-items: start
}

.contact-form {
  background: var(--card);
  padding: 1rem;
  border-radius: 12px;
  box-shadow: var(--shadow)
}

.contact-form label {
  display: block;
  margin-bottom: 0.6rem
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.6rem;
  border-radius: 8px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: transparent
}

.form-actions {
  display: flex;
  gap: 0.6rem;
  margin-top: 0.5rem
}

/* Make the Email Us link visible and theme-aware inside the contact form */
.contact-email {
  color: var(--primary);
  background: none;
  border: none;
  padding: 0;
  font-weight: 600;
  text-decoration: underline;
  align-self: flex-start;
}

.contact-email:hover {
  opacity: 0.9
}

/* Contact list icons and alignment */
.contact-list {
  list-style: none;
  padding: 0;
  margin: 0
}

.contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin-bottom: 0.4rem
}

.contact-list i {
  color: var(--muted);
  min-width: 20px;
  font-size: 1.05rem
}

.map-wrap {
  background: var(--card);
  padding: 0.8rem;
  border-radius: 10px;
  box-shadow: var(--shadow);
  margin-top: 0.8rem
}

.map-wrap h3 {
  margin: 0 0 0.5rem
}

.map-wrap iframe {
  width: 100%;
  height: 220px;
  border: 0;
  border-radius: 8px
}

#leaflet-map {
  width: 100%;
  height: 260px;
  border-radius: 8px;
  margin-bottom: 0.6rem
}

.site-footer {
  padding: 1.25rem 0;
  border-top: 1px solid rgba(0, 0, 0, 0.04)
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center
}

/* WhatsApp floating */
.whatsapp-float {
  position: fixed;
  right: 18px;
  bottom: 18px;
  padding: 0.6rem 0.6rem;
  display: flex;
  gap: 0.5rem;
  align-items: center;
  box-shadow: 0 10px 30px rgba(11, 20, 40, 0.18);
  text-decoration: none;
  background: #25D366;
  color: white;
  border-radius: 999px;
  justify-content: center;
  width: 55px;
  height: 55px;
  }

.theme-dark .whatsapp-float {
  background: var(--accent)
}

.theme-dark .whatsapp-float {
  background: #128C7E
}

.whatsapp-float i {
  font-size: 40px;
  line-height: 1
}

.whatsapp-float .visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0
}

.whatsapp-float span {
  display: none
}

/* --- Base Responsive Container --- */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem; /* Increased padding for mobile comfort */
}

/* --- Navigation & Header --- */
@media (max-width: 900px) {
  .menu-toggle {
    display: inline-flex; /* Hamburger button visible on mobile */
    margin-left: auto;
  }
  .main-nav, .header-actions {
    display: none; /* Hide desktop nav */
  }
  .logo {
    max-height: 45px; /* Slightly smaller logo for mobile */
  }
}

/* --- Hero Section Responsive --- */
@media (max-width: 768px) {
  .hero-grid {
    grid-template-columns: 1fr; /* Stack text and card vertically */
    text-align: center;
    gap: 2rem;
  }
  .hero-copy h1 {
    font-size: 1.8rem; /* Smaller font for mobile headings */
  }
  .cta-row {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
  }
  .hero-card {
    margin: 0 auto; /* Center card on mobile */
    width: 100%;
  }
}

/* --- About & Vision/Mission Cards --- */
@media (max-width: 768px) {
  .about-flex {
    flex-direction: column;
  }
  .about-image img {
    margin-top: 1.5rem;
    width: 100%;
    height: auto;
  }
  .about .container {
    flex-direction: column; /* Stack Vision/Mission cards */
    align-items: center;
  }
  .card {
    min-width: 100%; /* Cards take full width */
  }
}

/* --- Services Grid --- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

/* --- Measurement Calculators --- */
@media (max-width: 768px) {
  .calc-grid {
    grid-template-columns: 1fr; /* Stack inputs and results */
  }
  .input-row {
    flex-direction: column; /* Stack label, input, and unit selector */
    align-items: flex-start;
    gap: 5px;
  }
  .input-row label {
    min-width: auto;
  }
  .calc-inputs input[type="number"], 
  .calc-inputs select {
    width: 100%; /* Inputs take full width on mobile */
  }
  .calc-actions {
    flex-direction: column; /* Stack "Calculate" and "Clear" buttons */
  }
}

/* --- Footer & Image Items --- */
@media (max-width: 768px) {
  .footer-inner {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }
  .image-item img {
    max-width: 100%; /* Ensure images don't overflow */
    height: auto;
  }
}

@media (max-width:480px) {
  .brand-text {
    display: none
  }

  .hero-copy h1 {
    font-size: 1.4rem
  }

  .projects-grid {
    grid-template-columns: 1fr
  }
}

/* small accessibility touches */
a:focus {
  outline: 3px solid rgba(11, 116, 222, 0.18);
  outline-offset: 3px
}

.about-flex {
  display: flex;
  align-items: center;
  gap: 40px;
  padding: 40px 0;
}

.about-text {
  flex: 1;
  padding: 0px 12px;
}

.about-image {
  flex: 1;
}

.about-image img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  /* Smooth corners */
  box-shadow: 0 4px 15px var(--shadow);
  /* Subtle depth */
}

/* Mobile Responsiveness */
@media (max-width: 900px) {
  .about-flex {
    flex-direction: column;
    text-align: center;
  }

  .about-image {
    order: -1;
    /* Puts the truck image above the text on mobile */
  }
}

.image-row-container {
  display: flex;
  flex-direction: row;
  gap: 20px;
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  padding: 20px;
}

.image-item {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.image-item img {
  width: 300px;
  height: 300px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 4px 10px var(--shadow);
}

/* --- Mobile Responsive CSS --- */

/* 768px is the standard breakpoint for tablets and phones */
@media screen and (max-width: 768px) {
  .image-row-container {
    flex-direction: column;
    gap: 15px;
  }
}

.about{
  .container {
            display: flex;
            gap: 30px;
            max-width: 1000px;
            flex-wrap: wrap;
            justify-content: center;
        }

        .card {
            background: var(--bg);
            color: var(--text);
            border-radius: 15px;
            box-shadow: 0 10px 30px var(--shadow);
            padding: 40px 30px;
            flex: 1;
            min-width: 300px;
            max-width: 450px;
            text-align: center;
            transition: transform 0.3s ease;
            border: 2px solid green;
        }

        .card:hover {
            transform: translateY(-5px);
        }

        .icon-header {
            display: flex;
            align-items: center;
            justify-content: center;
            margin-bottom: 25px;
            gap: 15px;
        }

        .icon-circle {
          color: green;
            width: 40px;
            height: 40px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 36px;
        }
}