/* =====================================================
   CONSTRUCTIVE ENERGY — Website Stylesheet
   ===================================================== */

/* --- Variables --- */
:root {
  --green: #2E7D32;
  --green-dark: #1B5E20;
  --green-mid: #388E3C;
  --green-light: #E8F5E9;
  --teal: #00796B;
  --white: #FFFFFF;
  --off-white: #F9FAF9;
  --light-grey: #F4F4F4;
  --mid-grey: #757575;
  --dark: #1A1A1A;
  --text: #2C2C2C;
  --border: #E0E0E0;
  --font: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  --max-width: 1100px;
  --radius: 6px;
  --shadow: 0 2px 12px rgba(0,0,0,0.09);
  --shadow-hover: 0 6px 24px rgba(0,0,0,0.15);
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--green); text-decoration: none; }
a:hover { color: var(--green-dark); }

/* --- Layout --- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 72px 0; }
.section--grey { background: var(--off-white); }
.section--green { background: var(--green); color: var(--white); }
.section--dark { background: var(--green-dark); color: var(--white); }

/* --- Typography --- */
h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.25;
  color: var(--dark);
}

h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); margin-bottom: 16px; }
h3 { font-size: 1.2rem; margin-bottom: 10px; }
h4 { font-size: 1rem; }

p { margin-bottom: 16px; color: var(--text); }
p:last-child { margin-bottom: 0; }

.lead {
  font-size: 1.15rem;
  color: var(--mid-grey);
  max-width: 720px;
}

.section-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 12px;
  display: block;
}

.section--green .section-label,
.section--dark .section-label {
  color: rgba(255,255,255,0.7);
}

/* --- Navigation --- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
}

.nav__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 1rem;
  color: var(--green-dark);
  letter-spacing: -0.01em;
}

.nav__logo img {
  height: 40px;
  width: auto;
}

.nav__logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.nav__logo-text span:first-child { font-size: 1.05rem; color: var(--green-dark); }
.nav__logo-text span:last-child { font-size: 0.72rem; font-weight: 400; color: var(--mid-grey); letter-spacing: 0.04em; }

.nav__links {
  display: flex;
  list-style: none;
  gap: 6px;
  align-items: center;
}

.nav__links a {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text);
  padding: 8px 14px;
  border-radius: var(--radius);
  transition: background 0.15s, color 0.15s;
}

.nav__links a:hover,
.nav__links a.active {
  background: var(--green-light);
  color: var(--green-dark);
}

.nav__cta {
  background: var(--green) !important;
  color: var(--white) !important;
  padding: 9px 18px !important;
  border-radius: var(--radius) !important;
}

.nav__cta:hover { background: var(--green-dark) !important; }

.nav__hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav__hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--dark);
  margin: 5px 0;
  border-radius: 2px;
  transition: all 0.2s;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.15s;
  border: 2px solid transparent;
  text-decoration: none;
}

.btn--primary {
  background: var(--green);
  color: var(--white);
  border-color: var(--green);
}
.btn--primary:hover { background: var(--green-dark); border-color: var(--green-dark); color: var(--white); }

.btn--outline {
  background: transparent;
  color: var(--green);
  border-color: var(--green);
}
.btn--outline:hover { background: var(--green); color: var(--white); }

.btn--white {
  background: var(--white);
  color: var(--green-dark);
  border-color: var(--white);
}
.btn--white:hover { background: var(--green-light); color: var(--green-dark); border-color: var(--green-light); }

.btn--white-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.6);
}
.btn--white-outline:hover { background: rgba(255,255,255,0.12); border-color: var(--white); }

/* --- Hero --- */
.hero {
  position: relative;
  min-height: 540px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--green-dark);
}

.hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.32;
}

.hero__content {
  position: relative;
  z-index: 2;
  padding: 80px 0;
}

.hero h1 { color: var(--white); margin-bottom: 20px; max-width: 680px; }
.hero .lead { color: rgba(255,255,255,0.85); margin-bottom: 32px; max-width: 620px; }
.hero .section-label { color: rgba(255,255,255,0.65); }

.hero__buttons { display: flex; gap: 14px; flex-wrap: wrap; }

/* --- Cards / Grids --- */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

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

.card {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 28px;
  box-shadow: var(--shadow);
  transition: box-shadow 0.2s, transform 0.2s;
}

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

.card__icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: var(--green-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.card__icon svg { width: 24px; height: 24px; color: var(--green); }
.card h3 { color: var(--green-dark); }
.card p { color: var(--mid-grey); font-size: 0.93rem; }

/* --- Project Cards --- */
.project-card {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: box-shadow 0.2s, transform 0.2s;
}

.project-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

.project-card__body { padding: 24px; }
.project-card__tag {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 8px;
  display: block;
}
.project-card h3 { font-size: 1.05rem; color: var(--dark); margin-bottom: 10px; }
.project-card p { font-size: 0.9rem; color: var(--mid-grey); }

.project-card__meta {
  padding: 14px 24px;
  background: var(--green-light);
  font-size: 0.82rem;
  color: var(--green-dark);
  font-weight: 500;
}

/* --- Client Strip --- */
.client-strip {
  text-align: center;
  padding: 56px 0;
  background: var(--light-grey);
}

.client-strip__label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mid-grey);
  margin-bottom: 24px;
  display: block;
}

.client-strip__names {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px 32px;
  max-width: 900px;
  margin: 0 auto;
}

.client-strip__names span {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--green-dark);
  padding: 6px 14px;
  background: var(--white);
  border-radius: 30px;
  border: 1px solid var(--border);
}

/* --- About Split Layout --- */
.about-split {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 56px;
  align-items: start;
}

.about-split__photo img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.credentials-list {
  list-style: none;
  margin-top: 8px;
}

.credentials-list li {
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
  color: var(--text);
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.credentials-list li::before {
  content: '✓';
  color: var(--green);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

/* --- Services List --- */
.service-block {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 40px;
  padding: 40px 0;
  border-bottom: 1px solid var(--border);
  align-items: start;
}

.service-block:last-child { border-bottom: none; }

.service-block__number {
  font-size: 3rem;
  font-weight: 800;
  color: var(--green-light);
  line-height: 1;
  padding-top: 4px;
}

.service-block h3 { font-size: 1.3rem; color: var(--green-dark); margin-bottom: 12px; }
.service-block p { color: var(--mid-grey); }

/* --- Stats Bar --- */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(255,255,255,0.15);
}

.stat {
  padding: 32px 24px;
  text-align: center;
  background: var(--green-dark);
}

.stat__number {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1;
  margin-bottom: 6px;
}

.stat__label {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.75);
  font-weight: 500;
}

/* --- CTA Band --- */
.cta-band {
  text-align: center;
  padding: 80px 24px;
}

.cta-band h2 { color: var(--white); margin-bottom: 16px; }
.cta-band p { color: rgba(255,255,255,0.8); margin-bottom: 32px; }
.cta-band .buttons { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* --- Contact --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}

.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 24px;
}

.contact-detail__icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--green-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-detail__icon svg { width: 18px; height: 18px; color: var(--green); }
.contact-detail strong { display: block; font-size: 0.82rem; color: var(--mid-grey); margin-bottom: 3px; text-transform: uppercase; letter-spacing: 0.06em; }
.contact-detail p { font-size: 1rem; color: var(--dark); margin: 0; }

/* --- Form --- */
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 0.85rem; font-weight: 600; color: var(--dark); margin-bottom: 6px; }

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: 0.95rem;
  color: var(--text);
  background: var(--white);
  transition: border-color 0.15s;
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--green);
}

.form-group textarea { resize: vertical; min-height: 120px; }

/* --- Page Header --- */
.page-header {
  background: var(--green-dark);
  padding: 64px 0;
  color: var(--white);
}

.page-header h1 { color: var(--white); margin-bottom: 12px; }
.page-header p { color: rgba(255,255,255,0.8); max-width: 600px; }

/* --- Footer --- */
.footer {
  background: var(--dark);
  color: rgba(255,255,255,0.7);
  padding: 48px 0 24px;
}

.footer__inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  margin-bottom: 24px;
}

.footer__brand { max-width: 320px; }
.footer__brand img { height: 36px; width: auto; margin-bottom: 14px; }
.footer__brand p { font-size: 0.87rem; line-height: 1.6; }
.footer__brand .abn { margin-top: 12px; font-size: 0.8rem; opacity: 0.5; }

.footer__col h4 {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 16px;
}

.footer__col ul { list-style: none; }
.footer__col ul li { margin-bottom: 8px; }
.footer__col ul li a { font-size: 0.87rem; color: rgba(255,255,255,0.65); transition: color 0.15s; }
.footer__col ul li a:hover { color: var(--white); }

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
}

/* --- Divider --- */
.divider {
  width: 48px;
  height: 4px;
  background: var(--green);
  border-radius: 2px;
  margin: 16px 0 24px;
}

/* --- Section header centered --- */
.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 48px;
}

.section-header .divider { margin: 16px auto 24px; }

/* --- Responsive --- */
@media (max-width: 900px) {
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .about-split { grid-template-columns: 1fr; }
  .about-split__photo { max-width: 280px; }
  .service-block { grid-template-columns: 1fr; gap: 20px; }
  .service-block__number { font-size: 2rem; }
  .stats-bar { grid-template-columns: repeat(2, 1fr); }
  .footer__inner { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .section { padding: 48px 0; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .nav__links { display: none; }
  .nav__links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 16px 24px;
    gap: 4px;
    box-shadow: var(--shadow);
  }
  .nav__hamburger { display: block; }
  .stats-bar { grid-template-columns: 1fr 1fr; }
  .footer__inner { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; gap: 8px; text-align: center; }
  .hero { min-height: 400px; }
}
