/* ========== BASE STYLES ========== */
body {
  font-family: 'Open Sans', Arial, sans-serif;
  margin: 0;
  padding: 0;
  background: #fff;
  color: #222;
}

.site-header {
  background: #015293;
  color: #fff;
  padding: 0;
  position: relative;
  z-index: 1000;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 18px;
  height: 80px;
}

.site-branding {
  display: flex;
  align-items: center;
}

.site-branding img {
  max-height: 60px;
  width: auto;
  display: block;
}

.site-navigation {
  display: flex;
  align-items: center;
}

#primary-menu {
  display: flex;
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
}

#primary-menu > li {
  position: relative;
}

#primary-menu > li > a {
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  text-transform: uppercase;
  padding: 18px 12px;
  display: block;
  transition: background 0.2s;
}

#primary-menu > li:hover > a,
#primary-menu > li.current-menu-item > a {
  background: #014070;
}

#primary-menu ul.sub-menu {
  display: none;
  position: absolute;
  left: 0;
  top: 100%;
  min-width: 220px;
  background: #014070;
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  border-radius: 0 0 6px 6px;
  z-index: 100;
  padding: 0;
  margin: 0;
}

#primary-menu li:hover > ul.sub-menu {
  display: block;
}

#primary-menu ul.sub-menu li {
  width: 100%;
}

#primary-menu ul.sub-menu li a {
  color: #fff;
  padding: 14px 20px;
  display: block;
  text-transform: uppercase;
  font-size: 1em;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  background: #014070;
}

#primary-menu ul.sub-menu li:last-child a {
  border-bottom: none;
}

#primary-menu ul.sub-menu ul.sub-menu {
  left: 100%;
  top: 0;
  border-radius: 0 6px 6px 0;
}

/* HAMBURGER & TOGGLE STYLING */
.mobile-menu-toggle {
    background: none !important;
    border: none !important;
    padding: 0 !important;
    cursor: pointer;
}

.hamburger {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 36px;
  height: 36px;
  justify-content: center;
  align-items: center;
}
.hamburger span {
  display: block;
  width: 28px;
  height: 4px;
  border-radius: 3px;
  background: #fff;
  transition: all 0.3s;
}


/* ========== DEFAULT CONTENT STYLES ========== */
.site-content {
    max-width: 1200px;
    margin: 0 auto; /* MODIFIED: Removed top/bottom margin to fix whitespace issue */
    padding: 0 18px;
}


/* ========== MOBILE STYLES ========== */
@media (max-width: 800px) {
  /* Hide desktop nav, show mobile toggle */
  .site-navigation {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: flex !important;
  }

  /* Mobile Overlay */
  .mobile-menu-overlay {
    display: none;
    position: fixed;
    z-index: 1100;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #015293;
    color: #fff;
    padding: 80px 18px 40px 18px;
    transition: opacity 0.3s;
    overflow-y: auto;
    box-sizing: border-box;
  }
  .mobile-menu-overlay.active {
    display: block;
  }

  /* --- MOBILE MENU STRUCTURE --- */
  .mobile-menu-overlay #primary-menu {
    display: block !important;
    width: 100% !important;
  }
  
  .mobile-menu-overlay #primary-menu > li {
    border-bottom: 1px solid rgba(255,255,255,0.15);
  }

  .mobile-menu-overlay #primary-menu li.menu-item-has-children {
      display: flex !important;
      flex-wrap: wrap;
      justify-content: space-between;
      align-items: center;
  }

  /* --- MENU LINKS & TOGGLES --- */
  .mobile-menu-overlay #primary-menu a {
    display: block;
    text-decoration: none;
    box-sizing: border-box;
    color: #fff;
  }
  
  .mobile-menu-overlay #primary-menu > li > a {
    text-transform: uppercase;
    font-weight: 700;
    font-size: 1.2em;
    padding: 18px 10px;
  }
  
  .mobile-menu-overlay #primary-menu li.menu-item-has-children > a {
      flex-grow: 1;
  }

  .mobile-menu-overlay .submenu-toggle {
    font-size: 1.5em;
    cursor: pointer;
    user-select: none;
    border: none;
    background: none;
    color: #fff;
    transition: transform 0.2s;
    padding: 10px 20px;
    line-height: 1;
    margin: 0;
    flex-shrink: 0;
  }

  /* --- SUBMENU STYLES --- */
  .mobile-menu-overlay #primary-menu ul.sub-menu {
    position: static !important;
    display: none !important;
    background: #014070 !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    width: 100%;
    flex-basis: 100%;
  }

  .mobile-menu-overlay #primary-menu li.expanded > ul.sub-menu {
    display: block !important;
    animation: slideDown 0.2s;
  }

  .mobile-menu-overlay #primary-menu ul.sub-menu li a {
    font-size: 1em;
    font-weight: 600;
    padding: 14px 20px 14px 32px;
    background: #014070;
    border-bottom: 1px solid rgba(255,255,255,0.10);
  }

  .mobile-menu-overlay #primary-menu ul.sub-menu ul.sub-menu li a {
    padding-left: 48px;
    background: #01325a;
  }
  
  .mobile-menu-overlay #primary-menu ul.sub-menu li:last-child a {
      border-bottom: none;
  }
  
  /* CLOSE BUTTON */
  .mobile-menu-close {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 30px auto 20px auto;
    background: none;
    border: 1px solid #fff;
    border-radius: 5px;
    color: #fff;
    font-size: 1.1em;
    cursor: pointer;
    font-weight: 700;
    gap: 8px;
    padding: 10px 20px;
  }

  .close-icon {
    font-size: 1.5em;
    line-height: 1;
  }

  @keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px);}
    to { opacity: 1; transform: translateY(0);}
  }
}

/* ========== DESKTOP STYLES (hide mobile elements) ========== */
@media (min-width: 801px) {
  .mobile-menu-toggle,
  .mobile-menu-overlay {
    display: none !important;
  }
}

/* ========== FULL-WIDTH TEMPLATE FIX ========== */
body.page-template-template-fullwidth-php .elementor {
    max-width: none;
}


/* ========== VISIBILITY CLASSES (NEW) ========== */
/* Hide menu items with this class by default */
.logged-in-only {
    display: none;
}

/* Only show them if the user is logged in */
body.logged-in .logged-in-only {
    display: block;
}
/* ========== TABLE STYLES (Final Version) ========== */

/* General Table Styling */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 0 0 1.5em 0; /* Aligns table to the top, keeps bottom margin */
    font-size: 1em;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    text-align: left;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #000; /* Added 1px black border */
}

/* Table Cell & Header Base Styling */
table th,
table td {
    padding: 16px 20px;
    vertical-align: top;
    border-right: 1px solid #e0e0e0;
}

table th:last-child,
table td:last-child {
    border-right: none; /* Remove border from the last cell */
}

/* --- Default Table Header (for 'Concrete vs Wooden' table) --- */
table th {
    background-color: #2d3748; /* Dark slate background */
    color: #ffffff;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.9em;
    letter-spacing: 0.5px;
}

/* --- Specific styles for the 'Cost Implications' table --- */
/* Header Row for the 'costs-table' */
.costs-table table tbody tr:first-child {
    background-color: #000000 !important; /* Black header */
}

.costs-table table tbody tr:first-child td span {
    color: #ffffff !important; /* Use !important to override inline styles */
    font-weight: bold;
}

/* --- General Table Body & Zebra-Striping --- */
table tbody tr {
    background-color: #ffffff;
    border-bottom: 1px solid #e0e0e0;
}

table tbody tr:nth-of-type(even) {
    background-color: #f8f9fa;
}

table tbody tr:last-of-type {
    border-bottom: none;
}

/* Lists inside tables */
table td ul {
   margin: 0;
   padding-left: 20px;
   list-style-position: outside;
}

table td ul li {
    padding-bottom: 8px;
}

table td ul li:last-child {
    padding-bottom: 0;
}

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

.site-footer {
    background: #015293;
    color: #fff;
    padding: 40px 18px;
    font-size: 0.9em;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-column {
    flex: 1;
    min-width: 250px;
}

.footer-column h4 {
    color: #fff;
    text-transform: uppercase;
    font-size: 1.1em;
    margin-bottom: 15px;
}

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

.footer-column ul li {
    margin-bottom: 10px;
}

.footer-column a {
    color: #fff;
    text-decoration: none;
    transition: opacity 0.2s;
}

.footer-column a:hover {
    opacity: 0.8;
}

.footer-column p {
    line-height: 1.6;
}

.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.social-icons a {
    font-size: 1.4em;
}

.site-info {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 0.8em;
}

.footer-button-link {
    display: inline-block;
    background-color: #014070;
    color: #fff;
    padding: 10px 15px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    margin-top: 15px;
    transition: background-color 0.2s, color 0.2s;
}

.footer-button-link:hover {
    background-color: #fff;
    color: #015293;
}

.footer-button-link i {
    margin-right: 8px;
}

/* Responsive styles for the footer */
@media (max-width: 800px) {
    .footer-container {
        flex-direction: column;
        text-align: center;
    }

    .social-icons {
        justify-content: center;
    }

    .footer-button-link {
        margin-bottom: 20px;
    }
}
