/* ILAS Geotechnical Soil Mechanics Lab (iloveamericansoil.com) — Dopetrope Custom Architecture */
:root {
  --ilas-espresso: #231c18;
  --ilas-terracotta: #b44c24;
  --ilas-ochre: #d97706;
  --ilas-sand: #f6f2ec;
  --ilas-card: #ffffff;
  --ilas-slate: #334155;
  --ilas-border: #e2d9cc;
}

html, body {
  overflow-x: hidden;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif !important;
  color: #2d2926;
}

img {
  max-width: full;
  height: auto !important;
  object-fit: cover !important;
  display: block;
}

/* Clean Top Bar & Header */
#header {
  background: #ffffff !important;
  border-bottom: 3px solid var(--ilas-terracotta);
  padding: 2.2em 0 2em 0 !important;
}

.ilas-topstrip {
  background: var(--ilas-espresso);
  color: #f1f5f9;
  font-size: 0.84rem;
  padding: 0.55rem 1.25rem;
  margin-top: -2.2em;
  margin-bottom: 1.6em;
}

.ilas-topstrip-inner {
  max-width: 1220px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
}

.ilas-topstrip a {
  color: #fbbf24;
  text-decoration: none;
  font-weight: 700;
}

#header h1 {
  font-size: 1.85rem !important;
  letter-spacing: -0.02em;
  margin-bottom: 0.35em;
}

#header h1 a {
  color: var(--ilas-espresso) !important;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}

.ilas-brand-sub {
  display: block;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--ilas-terracotta);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-top: 0.25rem;
}

/* Navigation Single-Row Discipline */
#nav {
  margin-top: 1.15em !important;
}

#nav > ul {
  display: flex !important;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.35rem;
}

#nav > ul > li {
  display: inline-block;
  padding-left: 0 !important;
  position: relative;
}

#nav > ul > li > a {
  font-size: 0.92rem !important;
  font-weight: 700 !important;
  padding: 0.55em 1.05em !important;
  border-radius: 5px;
  color: #2d2926 !important;
  transition: background 0.2s, color 0.2s;
}

#nav > ul > li.current > a,
#nav > ul > li:hover > a {
  background: var(--ilas-terracotta) !important;
  color: #ffffff !important;
}

#nav > ul > li > ul {
  display: none;
  position: absolute;
  top: full;
  left: 0;
  min-width: 280px;
  background: var(--ilas-espresso);
  border-radius: 6px;
  padding: 0.5rem 0;
  z-index: 1000;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
  text-align: left;
}

#nav > ul > li:hover > ul {
  display: block;
}

#nav > ul > li > ul > li {
  display: block;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

#nav > ul > li > ul > li:first-child {
  border-top: none;
}

#nav > ul > li > ul > li > a {
  display: block;
  padding: 0.6rem 1.1rem;
  color: #f8fafc !important;
  font-size: 0.86rem;
  font-weight: 600;
  text-decoration: none;
}

#nav > ul > li > ul > li > a:hover {
  background: var(--ilas-terracotta);
  color: #ffffff !important;
}

/* Hero Banner Override */
#banner {
  background: linear-gradient(180deg, rgba(24, 19, 16, 0.72) 0%, rgba(35, 28, 24, 0.84) full),
              url("../../images/brisbane-geotechnical-soil-mechanics-testing-lab.jpg") center center / cover no-repeat !important;
  padding: 5.5em 1.25em !important;
  margin: 1.8em 0 0 0 !important;
}

#banner header {
  background: rgba(24, 19, 16, 0.88) !important;
  max-width: 980px;
  margin: 0 auto;
  padding: 2.4em 2.6em !important;
  border-radius: 10px;
  border-left: 6px solid var(--ilas-ochre);
}

#banner header h2 {
  font-size: 2.15rem !important;
  line-height: 1.25 !important;
  color: #ffffff !important;
  margin-bottom: 0.55em !important;
}

#banner header p {
  font-size: 1.08rem !important;
  line-height: 1.6 !important;
  color: #fde68a !important;
}

.ilas-hero-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  margin-bottom: 1.1rem;
}

.ilas-badge {
  background: rgba(217, 119, 6, 0.22);
  border: 1px solid #f59e0b;
  color: #fef3c7;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
}

/* Button overrides — prevent any ellipsis truncation */
.button,
a.button,
button,
input[type="submit"],
input[type="button"] {
  background-color: var(--ilas-terracotta) !important;
  color: #ffffff !important;
  max-width: none !important;
  overflow: visible !important;
  text-overflow: clip !important;
  white-space: normal !important;
  height: auto !important;
  line-height: 1.4 !important;
  padding: 0.85em 1.65em !important;
  border-radius: 6px !important;
  font-weight: 700 !important;
}

.button.alt,
a.button.alt {
  background-color: var(--ilas-espresso) !important;
  color: #ffffff !important;
}

/* Main Content Area & Boxes */
#main {
  background: var(--ilas-sand) !important;
  padding: 3.2em 0 !important;
}

.box {
  background: #ffffff !important;
  border: 1px solid var(--ilas-border) !important;
  border-radius: 10px !important;
  padding: 2em !important;
  box-shadow: 0 6px 20px rgba(35, 28, 24, 0.05);
  margin-bottom: 2em;
}

.box .image.featured {
  margin: -2em -2em 1.5em -2em !important;
  width: calc(full + 4em) !important;
  border-radius: 10px 10px 0 0;
  overflow: hidden;
}

/* Interactive AS 1289 Proctor Compaction & CBR Simulator */
.ilas-sim-card {
  background: #1c1613;
  color: #f8fafc;
  border-radius: 12px;
  padding: 2.2rem;
  border: 2px solid #b44c24;
  margin: 2.2rem 0;
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.22);
}

.ilas-sim-card h2,
.ilas-sim-card h3 {
  color: #ffffff !important;
}

.ilas-sim-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 1.8rem;
  align-items: start;
  margin-top: 1.4rem;
}

.ilas-sim-controls label {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #fcd34d;
  margin: 0.85rem 0 0.35rem 0;
}

.ilas-sim-controls select {
  width: full;
  background: #2b231e !important;
  color: #ffffff !important;
  border: 1px solid #78350f !important;
  border-radius: 6px;
  padding: 0.7rem 0.9rem;
  font-size: 0.94rem;
  font-weight: 600;
}

.ilas-kpi-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.ilas-kpi-box {
  background: #2b231e;
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: 8px;
  padding: 0.8rem 0.9rem;
  overflow: hidden;
}

.ilas-kpi-box span {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #cbd5e1;
  margin-bottom: 0.25rem;
}

.ilas-kpi-box strong {
  display: block;
  font-size: 0.92rem !important;
  font-weight: 800;
  color: #fbbf24 !important;
  white-space: nowrap !important;
}

.ilas-svg-panel {
  background: #120e0c;
  border: 1px solid #451a03;
  border-radius: 10px;
  padding: 1.15rem;
}

#ilas-proctor-svg {
  width: full;
  height: auto;
  display: block;
}

.ilas-sim-summary {
  margin-top: 0.9rem;
  font-size: 0.88rem;
  line-height: 1.55;
  color: #e2e8f0;
}

/* Technical Specification Tables */
.ilas-table-wrap {
  width: full;
  overflow-x: auto;
  margin: 1.5rem 0;
}

table.ilas-table {
  width: full;
  border-collapse: collapse;
  background: #ffffff;
  font-size: 0.92rem;
}

table.ilas-table th {
  background: var(--ilas-espresso);
  color: #ffffff;
  font-weight: 700;
  text-align: left;
  padding: 0.85rem 1rem;
  border: 1px solid #3f322a;
}

table.ilas-table td {
  padding: 0.8rem 1rem;
  border: 1px solid var(--ilas-border);
  color: #2d2926;
  vertical-align: top;
}

table.ilas-table tr:nth-child(even) td {
  background: #faf7f2;
}

/* Callout & Step Process Matrix */
.ilas-callout {
  background: #fffbeb;
  border-left: 5px solid var(--ilas-ochre);
  padding: 1.25rem 1.5rem;
  border-radius: 0 8px 8px 0;
  margin: 1.5rem 0;
}

.ilas-step-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
  margin: 1.5rem 0;
}

.ilas-step-card {
  background: #faf7f2;
  border: 1px solid var(--ilas-border);
  border-radius: 8px;
  padding: 1.25rem;
}

.ilas-step-card h4 {
  color: var(--ilas-terracotta);
  font-size: 1.02rem;
  margin-bottom: 0.45rem;
}

/* Booking Form */
.ilas-form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.1rem;
}

.ilas-form-grid .full-span {
  grid-column: 1 / -1;
}

.ilas-form-grid label {
  display: block;
  font-weight: 700;
  font-size: 0.88rem;
  margin-bottom: 0.35rem;
  color: var(--ilas-espresso);
}

.ilas-form-grid input,
.ilas-form-grid select,
.ilas-form-grid textarea {
  width: full;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 0.7rem 0.9rem;
  background: #ffffff;
  color: #1e293b;
  font-size: 0.95rem;
}

/* Footer */
#footer {
  background: var(--ilas-espresso) !important;
  color: #cbd5e1 !important;
  padding: 3.5em 0 2.5em 0 !important;
}

/* Hide Dopetrope floating mobile titleBar overlap and keep nav visible on mobile */
#titleBar, #navPanel {
  display: none !important;
}

@media screen and (max-width: 980px) {
  #nav {
    display: block !important;
  }
  #nav > ul {
    gap: 0.3rem;
  }
  #nav > ul > li > a {
    font-size: 0.82rem !important;
    padding: 0.45em 0.75em !important;
  }
  .ilas-sim-grid,
  .ilas-step-grid,
  .ilas-form-grid {
    grid-template-columns: 1fr !important;
  }
  . box .image.featured {
    margin: -1.5em -1.5em 1.2em -1.5em !important;
    width: calc(full + 3em) !important;
  }
}

@media screen and (max-width: 680px) {
  .ilas-kpi-grid {
    grid-template-columns: 1fr !important;
  }
  #banner header {
    padding: 1.5em 1.25em !important;
  }
  #banner header h2 {
    font-size: 1.55rem !important;
  }
}

/* Visual polish fixes verified via Headless Opera CDP screenshots */
.ilas-topstrip strong,
.ilas-sim-card strong,
#footer strong {
  color: #fde68a !important;
}

#header > #banner,
body.homepage #banner,
#banner {
  background-color: #231c18 !important;
  background-image: linear-gradient(180deg, rgba(24, 19, 16, 0.65) 0%, rgba(35, 28, 24, 0.78) 100%),
                    url("../../images/brisbane-geotechnical-soil-mechanics-testing-lab.jpg") !important;
  background-position: center center !important;
  background-size: cover !important;
  background-repeat: no-repeat !important;
}

#banner ul.actions {
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 0.9rem !important;
}

#banner ul.actions li {
  padding: 0 !important;
  margin: 0 !important;
  display: inline-block !important;
}

.box .image.featured {
  margin: 0 0 1.5rem 0 !important;
  width: 100% !important;
  border-radius: 8px !important;
  overflow: hidden !important;
}

.box.post header {
  padding-top: 0 !important;
  margin: 0 0 1.5rem 0 !important;
}

.box.post header h2,
article.box.post h2 {
  line-height: 1.28 !important;
  font-size: 1.85rem !important;
  margin-bottom: 0.45rem !important;
}

.box.post header p {
  line-height: 1.45 !important;
  font-size: 1.05rem !important;
}
