/* =====================================================================
   Climate Solutions Consulting — static site stylesheet
   Reproduces the look of the former Joomla (Helix3 / Radhuni) template:
   Droid Serif body text, Ubuntu headings, gold (#ccad52) accents,
   green (#0d854d) links, grey contact band, dark footer.
   ===================================================================== */

/* ---------- Fonts (self-hosted, no calls to Google) ---------- */
@font-face { font-family: 'Droid Serif'; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/DroidSerif-400-latin.woff2) format('woff2'); }
@font-face { font-family: 'Droid Serif'; font-style: normal; font-weight: 700; font-display: swap; src: url(../fonts/DroidSerif-700-latin.woff2) format('woff2'); }
@font-face { font-family: 'Ubuntu'; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/Ubuntu-400-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Ubuntu'; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/Ubuntu-400-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Ubuntu'; font-style: normal; font-weight: 500; font-display: swap; src: url(../fonts/Ubuntu-500-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Ubuntu'; font-style: normal; font-weight: 500; font-display: swap; src: url(../fonts/Ubuntu-500-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Ubuntu'; font-style: normal; font-weight: 700; font-display: swap; src: url(../fonts/Ubuntu-700-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Ubuntu'; font-style: normal; font-weight: 700; font-display: swap; src: url(../fonts/Ubuntu-700-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

/* ---------- Tokens ---------- */
:root {
  --serif: "Droid Serif", "Noto Serif", Georgia, "Times New Roman", serif;
  --sans: "Ubuntu", "Segoe UI", Helvetica, Arial, sans-serif;
  --text: #787878;
  --heading: #333333;
  --gold: #ccad52;
  --green: #0d854d;
  --green-dark: #085732;
  --menu: #ec442c;
  --contact-bg: #8d8e8f;
  --footer-bg: #121315;
  --container: 1140px;
  --header-h: 100px;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  margin: 0;
  background: #ffffff;
  color: var(--text);
  font-family: var(--serif);
  font-size: 14px;
  line-height: 26px;
}
img { max-width: 100%; height: auto; display: block; margin: 0 auto; }
h1, h2, h3, h4, h5, h6 {
  color: var(--heading);
  font-family: var(--sans);
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 12px;
}
h2 { font-size: 30px; }
h3 { font-size: 22px; }
p { margin: 0 0 10px; }
a {
  color: var(--green);
  font-family: var(--sans);
  font-weight: 700;
  text-decoration: none;
  transition: color .2s;
}
a:hover, a:focus { color: #5e5e5e; text-decoration: none; }
ul, ol { margin: 0 0 12px; padding-left: 22px; }
li { margin-bottom: 4px; }
sup, sub { line-height: 0; }
strong { color: #555; }
table { border-collapse: collapse; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -999px; top: 8px; background: #fff; color: #000; padding: 8px 12px; z-index: 2000; }
.skip-link:focus { left: 8px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 15px; }

/* ---------- Header / navigation ---------- */
#site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #ffffff;
  box-shadow: -1px 1px 1px rgba(0, 0, 0, .1);
}
#site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  gap: 20px;
}
.logo a { display: block; }
.logo img { width: 200px; margin: 0; }

.nav-toggle {
  display: none;
  border: 0;
  background: #fff;
  color: var(--gold);
  font-size: 22px;
  width: 40px;
  height: 40px;
  border-radius: 4px;
  cursor: pointer;
  padding: 0;
}
.nav-toggle .bar { display: block; width: 22px; height: 3px; background: currentColor; margin: 4px auto; border-radius: 2px; }

.main-nav ul { list-style: none; margin: 0; padding: 0; }
.main-nav > ul { display: flex; align-items: center; }
.main-nav > ul > li { position: relative; }
.main-nav > ul > li > a {
  display: block;
  padding: 15px;
  color: var(--menu);
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 20px;
  text-transform: uppercase;
  white-space: nowrap;
}
.main-nav > ul > li > a:hover,
.main-nav > ul > li.active > a,
.main-nav > ul > li:hover > a,
.main-nav > ul > li.open > a { color: var(--gold); }
.main-nav .has-sub > a::after {
  content: "";
  display: inline-block;
  width: 6px; height: 6px;
  margin-left: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-3px) rotate(45deg);
}
.main-nav .sub {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 230px;
  background: #ffffff;
  box-shadow: 0 5px 15px rgba(0, 0, 0, .15);
  border-top: 2px solid var(--gold);
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all .2s ease;
}
.main-nav > ul > li:hover > .sub,
.main-nav > ul > li.open > .sub,
.main-nav > ul > li:focus-within > .sub { opacity: 1; visibility: visible; transform: translateY(0); }
.main-nav .sub a {
  display: block;
  padding: 7px 20px;
  color: #333;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 400;
  line-height: 20px;
}
.main-nav .sub a:hover, .main-nav .sub li.active > a { background: var(--green); color: #ffffff; }

@media (max-width: 991px) {
  :root { --header-h: 80px; }
  .nav-toggle { display: block; }
  .main-nav {
    position: absolute;
    left: 0; right: 0; top: 100%;
    background: #fff;
    box-shadow: 0 10px 20px rgba(0, 0, 0, .15);
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s ease;
  }
  .main-nav.open { max-height: 90vh; overflow-y: auto; }
  .main-nav > ul { display: block; padding: 8px 0 16px; }
  .main-nav > ul > li > a { padding: 12px 20px; border-top: 1px solid #f0f0f0; }
  .main-nav .has-sub > a::after { float: right; margin-top: 6px; }
  .main-nav .sub {
    position: static;
    opacity: 1; visibility: visible; transform: none;
    box-shadow: none; border-top: 0;
    display: none;
    padding: 0 0 6px;
    background: #fafafa;
  }
  .main-nav > ul > li.open > .sub { display: block; }
  .main-nav .sub a { padding: 8px 20px 8px 36px; }
}
@media (max-width: 550px) {
  .logo img { width: 130px; }
}

/* ---------- Hero slider (home) ---------- */
.hero {
  position: relative;
  height: clamp(240px, 50.8vw, 650px);
  overflow: hidden;
  background: #222;
}
.hero .slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  animation: heroFade 16s infinite;
}
.hero .slide:nth-child(2) { animation-delay: 8s; }
@keyframes heroFade {
  0%   { opacity: 0; transform: scale(1); }
  8%   { opacity: 1; }
  50%  { opacity: 1; transform: scale(1.12); }
  58%  { opacity: 0; }
  100% { opacity: 0; transform: scale(1.2); }
}
@media (prefers-reduced-motion: reduce) {
  .hero .slide { animation: none; }
  .hero .slide:first-child { opacity: 1; }
}

/* ---------- Home sections ---------- */
.section { padding: 60px 0; }
.section.tight { padding-top: 10px; }
.section-heading {
  display: block;
  width: 250px;
  max-width: 100%;
  margin: 0 auto 60px;
  padding: 30px 0;
  background: var(--gold);
  border: 4px double #ffffff;
  outline: 1px solid var(--gold);
  color: #ffffff;
  font-family: var(--sans);
  font-size: 26px;
  font-weight: 700;
  line-height: 1.1;
  text-align: center;
  text-transform: uppercase;
}
.about-text { font-size: 24px; line-height: 1.45; }
.about-text p { margin-bottom: 26px; }
.about-text strong { color: #666; }
.about-text .metrics { margin: 10px auto 30px; }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0 30px;
}
.feature {
  display: block;
  padding: 30px;
  background: #ffffff;
  text-align: center;
  transition: all .4s ease;
  border-radius: 2px;
}
.feature:hover { background: var(--gold); box-shadow: 0 0 30px rgba(0, 0, 0, .2); transform: translateY(-10px); }
.feature img { width: auto; max-height: 320px; margin: 0 auto 20px; }
.feature h3 { font-size: 22px; margin: 0; color: var(--green); transition: color .2s; }
.feature:hover h3 { color: #ffffff; }
@media (max-width: 991px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 575px) { .feature-grid { grid-template-columns: 1fr; } .feature { padding: 20px 10px; } }

/* ---------- Contact band (all pages) ---------- */
#contactus {
  background: var(--contact-bg);
  color: #ffffff;
  padding: 50px 0;
}
#contactus h3 { color: var(--heading); font-size: 26px; margin-bottom: 10px; }
#contactus ul { list-style: none; margin: 0; padding: 0; }
#contactus li { margin: 0; line-height: 26px; }
#contactus a { color: var(--green); }
#contactus a:hover { color: #ffffff; }

/* ---------- Footer ---------- */
#site-footer {
  background: var(--footer-bg);
  color: #ffffff;
  padding: 20px 0;
  font-size: 14px;
}
#site-footer .container { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
#site-footer a { color: #cfcfcf; font-family: var(--serif); font-weight: 400; }
#site-footer a:hover { color: var(--gold); }

/* ---------- Inner pages ---------- */
.page { padding-top: 60px; padding-bottom: 40px; }
.page-title {
  font-size: 30px;
  font-weight: 400;
  margin-bottom: 20px;
}
.page-title.boxed {
  /* the "Reference" page uses the gold boxed title like the home sections */
  display: block; width: 250px; margin: 0 auto 50px; padding: 30px 0;
  background: var(--gold); border: 4px double #fff; outline: 1px solid var(--gold);
  color: #fff; font-weight: 700; font-size: 26px; text-align: center; text-transform: uppercase;
}
.two-col {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: 30px;
  align-items: start;
}
@media (max-width: 767px) { .two-col { grid-template-columns: 1fr; } .about-text, .prose .lead { font-size: 20px; } }
.prose p { margin-bottom: 14px; }
.prose .justify { text-align: justify; }
.prose .indent { padding-left: 30px; }
.prose .lead { font-size: 24px; line-height: 1.45; }
.prose .lead p { margin-bottom: 26px; }
.price { font-size: 19px; }
.price strong { color: #333; }
.download h4 { font-size: 16px; font-weight: 400; margin: 20px 0 8px; }
.download ul { list-style: none; padding-left: 30px; margin: 0; }
.download li { margin-bottom: 6px; }
.download a::before { content: "- "; color: var(--text); font-family: var(--serif); font-weight: 400; }
.entry + .entry { margin-top: 60px; padding-top: 60px; border-top: 1px solid #eee; }

/* ---------- Carousel (product / service photos) ---------- */
.carousel { position: relative; overflow: hidden; }
.carousel .track { position: relative; }
.carousel .item {
  display: none;
  align-items: center;
  justify-content: center;
  min-height: 200px;
}
.carousel .item.active { display: flex; animation: carouselFade .6s ease; }
@keyframes carouselFade { from { opacity: 0; } to { opacity: 1; } }
.carousel .item img { max-height: 700px; width: auto; margin: 0 auto; }
.carousel .dots {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 8px;
  justify-content: center;
  position: absolute;
  bottom: 12px;
  left: 0; right: 0;
  z-index: 2;
}
.carousel .dots button {
  width: 12px; height: 12px;
  border-radius: 50%;
  border: 2px solid #999;
  background: rgba(255, 255, 255, .8);
  padding: 0;
  cursor: pointer;
}
.carousel .dots button[aria-current="true"] { background: var(--gold); border-color: var(--gold); }
.carousel .arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px; height: 40px;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, .35);
  color: #fff;
  font-size: 22px;
  line-height: 40px;
  cursor: pointer;
  opacity: 0;
  transition: opacity .2s;
  z-index: 2;
}
.carousel:hover .arrow, .carousel:focus-within .arrow { opacity: .8; }
.carousel .arrow.prev { left: 8px; }
.carousel .arrow.next { right: 8px; }
.carousel.single .dots, .carousel.single .arrow { display: none; }

/* ---------- Reference page ---------- */
.ref-entry { margin-bottom: 50px; }
.ref-entry h3 { font-size: 22px; margin-bottom: 14px; }
.ref-entry em { font-style: italic; }
.ref-entry .num { padding-left: 60px; }
.ref-entry.with-media { display: grid; grid-template-columns: 7fr 5fr; gap: 30px; align-items: start; }
.ref-entry.with-media h3 { grid-column: 1 / -1; }
@media (max-width: 767px) { .ref-entry.with-media { grid-template-columns: 1fr; } }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin-top: 10px; }
.ref-table { width: 100%; min-width: 900px; font-size: 13px; line-height: 20px; }
.ref-table th, .ref-table td { border: 1px solid #ddd; padding: 8px 10px; vertical-align: top; text-align: left; }
.ref-table th { background: #f5f5f5; color: #333; font-family: var(--sans); }
.ref-table tr:nth-child(even) td { background: #fafafa; }

/* ---------- Back-to-top ---------- */
.scrollup {
  position: fixed;
  right: 10px; bottom: 10px;
  width: 40px; height: 40px;
  border: 0; border-radius: 5px;
  background: var(--gold);
  color: #fff;
  font-size: 22px;
  line-height: 40px;
  text-align: center;
  cursor: pointer;
  box-shadow: 0 1px 10px rgba(0, 0, 0, .2);
  opacity: 0; visibility: hidden;
  transition: all .3s;
  z-index: 999;
}
.scrollup.show { opacity: 1; visibility: visible; }
.scrollup:hover { background: #222; }

/* ---------- 404 ---------- */
.error-page { text-align: center; padding: 100px 0; }
.error-page h1 { font-size: 60px; color: var(--gold); }
