/* UEC Energy — Global Styles */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --green:       #2e7d32;
  --green-dark:  #1b5e20;
  --green-light: #e8f5e9;
  --green-mid:   #4caf50;
  --white:       #ffffff;
  --off-white:   #f9f9f9;
  --light-grey:  #f1f1f1;
  --border:      #dde5dd;
  --text:        #1a1a1a;
  --muted:       #555;
  --muted2:      #888;
  --shadow:      4px 4px 0 rgba(0,0,0,.08);
}

body { font-family: 'Manrope', 'Segoe UI', Arial, sans-serif; color: var(--text); background: var(--white); line-height: 1.6; }

a { color: var(--green); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; display: block; }

.wrap { max-width: 1140px; margin: 0 auto; padding: 0 24px; }

/* ── BUTTONS ── */
.btn { display: inline-block; padding: 10px 24px; font-size: 14px; font-weight: 700; border-radius: 4px; border: 2px solid transparent; cursor: pointer; transition: background .15s, color .15s; text-decoration: none; }
.btn-primary { background: var(--green); color: var(--white); border: 2px solid var(--green); }
.btn-primary:hover { background: var(--green-dark); border-color: var(--green-dark); text-decoration: none; }
.btn-outline { background: transparent; color: var(--green); border: 2px solid var(--green); }
.btn-outline:hover { background: var(--green); color: var(--white); text-decoration: none; }
.btn-white { background: #fff !important; color: var(--green-dark) !important; border: 2px solid #fff !important; font-weight: 700; }
.btn-white:hover { background: var(--green-light); border-color: var(--green-light); text-decoration: none; }

/* ── HEADER ── */
.site-header { background: var(--white); border-bottom: 3px solid var(--green); position: sticky; top: 0; z-index: 100; box-shadow: 0 2px 8px rgba(0,0,0,.07); }
.header-row { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.brand img { height: 56px; width: auto; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { padding: 8px 14px; font-size: 14px; font-weight: 500; color: var(--text); border-radius: 4px; transition: background .12s, color .12s; }
.nav a:hover, .nav a.active { background: var(--green-light); color: var(--green-dark); text-decoration: none; }
.nav .btn-nav { background: var(--green); color: var(--white); padding: 8px 18px; border-radius: 4px; font-weight: 600; }
.nav .btn-nav:hover { background: var(--green-dark); }
.nav-toggle { display: none; background: none; border: none; font-size: 24px; cursor: pointer; color: var(--text); }

/* ── HERO ── */
.hero { position: relative; color: var(--white); padding: 120px 0; overflow: hidden; min-height: 520px; display: flex; align-items: center; text-align: center; justify-content: center; }
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.hero-slider { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.hero-slide { position: absolute; inset: 0; width: 100%; height: 100%; background-size: cover; background-position: center; opacity: 0; animation: hero-fade 10s linear infinite; background-attachment: fixed; }
.hero-slide:nth-child(1) { animation-delay: 0s; }
.hero-slide:nth-child(2) { animation-delay: 5s; }
@keyframes hero-fade {
  0% { opacity: 0; }
  10% { opacity: 1; }
  40% { opacity: 1; }
  50% { opacity: 0; }
  100% { opacity: 0; }
}
.hero-image { position: absolute; inset: 0; width: 100%; height: 100%; background-size: cover; background-position: center; z-index: 0; background-attachment: fixed; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(135deg, rgba(27,94,32,.45) 0%, rgba(46,125,50,.3) 100%); z-index: 1; }
.hero-content { position: relative; z-index: 2; max-width: 720px; }
.hero h1 { font-size: clamp(1.6rem, 5vw, 2.8rem); line-height: 1.1; max-width: 32ch; margin-left: auto; margin-right: auto; margin-bottom: 20px; font-weight: 800; text-shadow: 2px 2px 4px rgba(0,0,0,0.5); }
.hero p { font-size: 17px; line-height: 1.7; margin-bottom: 32px; opacity: .9; max-width: 56ch; margin-left: auto; margin-right: auto; text-shadow: 1px 1px 2px rgba(0,0,0,0.3); }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }

/* ── PAGE HERO (inner pages) ── */
.page-hero { background: var(--green-dark); color: var(--white); padding: 56px 0; border-bottom: 4px solid var(--green-mid); }
.page-hero h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); margin-bottom: 12px; }
.page-hero p { font-size: 16px; opacity: .88; max-width: 60ch; }

/* ── SECTIONS ── */
.section { padding: 72px 0; }
.section-sm { padding: 48px 0; }
.section-alt { background: var(--off-white); }
.section-green { background: var(--green-dark); color: var(--white); }
.section-head { margin-bottom: 40px; }
.section-head .eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--green); margin-bottom: 8px; }
.section-head h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); margin-bottom: 14px; line-height: 1.2; }
.section-head p { color: var(--muted); font-size: 16px; max-width: 64ch; line-height: 1.7; }
.section-green .section-head .eyebrow { color: var(--green-mid); }
.section-green .section-head p { color: rgba(255,255,255,.8); }

/* ── GRID CARDS ── */
.cards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card { background: var(--white); border: 1px solid var(--border); border-radius: 8px; padding: 28px; transition: box-shadow .15s, transform .15s; }
.card:hover { box-shadow: 0 6px 24px rgba(0,0,0,.1); transform: translateY(-2px); }
.card .icon { font-size: 2rem; margin-bottom: 14px; }
.card h3 { font-size: 1.05rem; margin-bottom: 8px; color: var(--green-dark); }
.card p { font-size: 14px; color: var(--muted); line-height: 1.65; }

/* ── ABOUT STRIP ── */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.about-grid h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); margin-bottom: 16px; }
.about-grid p { color: var(--muted); font-size: 15px; line-height: 1.75; margin-bottom: 14px; }

/* ── TESTIMONIALS ── */
.testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.testimonial { background: var(--white); border-left: 4px solid var(--green); padding: 24px; border-radius: 0 8px 8px 0; box-shadow: var(--shadow); }
.testimonial blockquote { font-size: 14px; color: var(--muted); line-height: 1.7; font-style: italic; margin-bottom: 14px; }
.testimonial cite { font-size: 13px; font-weight: 700; color: var(--text); font-style: normal; display: block; }
.testimonial cite span { font-weight: 400; color: var(--muted2); display: block; }

/* ── CONTACT STRIP ── */
.contact-strip { background: var(--green-dark); color: var(--white); padding: 40px 0; }
.contact-strip .wrap { display: grid; grid-template-columns: 1fr 1fr 1fr auto; gap: 24px; align-items: center; }
.contact-item { display: flex; gap: 12px; align-items: center; }
.contact-item .ci-icon { font-size: 1.3rem; flex-shrink: 0; }
.contact-item p { font-size: 14px; opacity: .9; line-height: 1.4; }
.contact-item a:not(.btn) { color: #fff !important; opacity: 1 !important; }
.contact-item a:not(.btn):hover { opacity: 1; text-decoration: none; }

/* ── TM44 / SERVICES LIST ── */
.service-list { display: grid; gap: 0; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.service-item { padding: 24px 28px; border-bottom: 1px solid var(--border); display: flex; gap: 20px; align-items: flex-start; }
.service-item:last-child { border-bottom: none; }
.service-item .si-num { font-size: 11px; font-weight: 700; color: var(--green); font-family: monospace; letter-spacing: .06em; flex-shrink: 0; padding-top: 3px; min-width: 32px; }
.service-item h3 { font-size: 1rem; margin-bottom: 6px; color: var(--green-dark); }
.service-item p { font-size: 14px; color: var(--muted); line-height: 1.65; }

/* ── STATS BAR ── */
.stats-bar { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--border); border-radius: 8px; overflow: hidden; background: var(--white); }
.stat-item { padding: 28px; text-align: center; border-right: 1px solid var(--border); }
.stat-item:last-child { border-right: none; }
.stat-item strong { display: block; font-size: 2.2rem; font-weight: 800; color: var(--green); line-height: 1; margin-bottom: 6px; }
.stat-item span { font-size: 12px; color: var(--muted2); text-transform: uppercase; letter-spacing: .06em; }

/* ── CTA BAND ── */
.cta-band { background: var(--green); color: var(--white); padding: 64px 0; text-align: center; }
.cta-band h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); margin-bottom: 14px; }
.cta-band p { font-size: 16px; opacity: .9; max-width: 52ch; margin: 0 auto 28px; line-height: 1.7; }
.cta-band .actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ── FOOTER ── */
.site-footer { background: #111; color: #ccc; padding: 48px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 32px; }
.footer-col h4 { color: var(--white); font-size: 13px; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 14px; }
.footer-col p { font-size: 13px; line-height: 1.7; color: #aaa; }
.footer-col ul { list-style: none; display: grid; gap: 8px; }
.footer-col ul li a { font-size: 13px; color: #aaa; }
.footer-col ul li a:hover { color: var(--white); text-decoration: none; }
.footer-bottom { border-top: 1px solid #333; padding-top: 20px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; font-size: 12px; color: #666; }
.footer-bottom a { color: #888; }
.footer-bottom a:hover { color: #ccc; }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .cards-grid { grid-template-columns: 1fr 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats-bar { grid-template-columns: 1fr 1fr; }
  .stat-item:nth-child(2) { border-right: none; }
  .stat-item:nth-child(3) { border-top: 1px solid var(--border); }

  /* Medium screen fixes */
  .hero { padding: 80px 0; min-height: 480px; }
  .hero h1 { font-size: clamp(1.5rem, 4vw, 2.4rem); }

  /* Grid layout fixes for medium screens */
  .section-alt .wrap > div[style*="grid-template-columns:1fr 1fr"],
  .section .wrap > div[style*="grid-template-columns:1fr 1fr"] {
    gap: 32px !important;
  }
}
@media (max-width: 640px) {
  .cards-grid { grid-template-columns: 1fr; }
  .nav { display: none; flex-direction: column; position: absolute; top: 70px; left: 0; right: 0; background: var(--white); border-bottom: 2px solid var(--green); padding: 16px; gap: 4px; box-shadow: 0 4px 12px rgba(0,0,0,.1); }
  .nav.open { display: flex; }
  .nav-toggle { display: block; }
  .hero { padding: 48px 0; min-height: 400px; }
  .hero-image { background-attachment: scroll; }
  .hero h1 { font-size: clamp(1.4rem, 4vw, 2rem); }
  .hero p { font-size: 15px; }
  .hero-actions { flex-direction: column; align-items: center; }
  .hero-actions .btn { width: 100%; max-width: 280px; text-align: center; }
  .section { padding: 48px 0; }
  .section-sm { padding: 32px 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .stats-bar { grid-template-columns: 1fr 1fr; }
  .contact-strip .wrap { grid-template-columns: 1fr; row-gap: 16px; }
  .about-grid { grid-template-columns: 1fr; gap: 32px; }

  /* Fix for inline grid layouts */
  .section-alt .wrap > div[style*="grid-template-columns"],
  .section .wrap > div[style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
  }

  /* Testimonials grid fix */
  .section .wrap > div[style*="grid-template-columns:1fr 1fr"] {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }

  /* Contact strip button fix */
  .contact-item .btn { width: 100%; text-align: center; }

  /* Stats bar adjustments */
  .stat-item { padding: 20px; }
  .stat-item strong { font-size: 1.8rem; }

  /* Trust bar mobile fixes */
  .section .wrap > div[style*="display:flex"] {
    flex-direction: column !important;
    gap: 20px !important;
    padding: 16px !important;
  }
  .section .wrap > div[style*="display:flex"] > div[style*="width:1px"] {
    width: 100% !important;
    height: 1px !important;
    background: var(--border) !important;
  }

  /* Form mobile fixes */
  form[style*="display:grid"] {
    gap: 12px !important;
  }
}
