/* Spectarix Energy - Creative Artistic Style CSS
==================================================
 RESET & BASELINE NORMALIZATION
================================================== */
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
  box-sizing: border-box;
}
html {
  font-size: 16px;
  scroll-behavior: smooth;
}
body {
  background-color: #F5F5F5;
  color: #183153;
  font-family: 'Roboto', Arial, sans-serif;
  min-height: 100vh;
  line-height: 1.65;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: #29B03E;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #183153;
}
ul, ol {
  margin-left: 1.5em;
  margin-bottom: 16px;
}
li {
  margin-bottom: 8px;
}
hr {
  border: none;
  border-top: 1.5px solid #e0e0e0;
  margin: 24px 0;
}

/* Typography Hierarchy */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Oswald', 'Arial Black', Arial, sans-serif;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #183153;
  line-height: 1.12;
}
h1 {
  font-size: 2.75rem;
  margin-bottom: 24px;
  color: #29B03E;
  text-shadow: 1px 2px 0 #fff, 0 4px 24px rgba(24, 49, 83, 0.1);
}
h2 {
  font-size: 2rem;
  margin-bottom: 16px;
  color: #183153;
  position: relative;
}
h2::after {
  content: '';
  display: block;
  width: 44px;
  height: 5px;
  background: #29B03E;
  border-radius: 10px;
  margin: 10px 0 0 0;
}
h3 {
  font-size: 1.5rem;
  margin-bottom: 12px;
  color: #183153;
}
h4 {
  font-size: 1.25rem;
}
p, ul, ol {
  font-size: 1rem;
  color: #1A2230;
  margin-bottom: 12px;
}
small {
  font-size: 0.93rem;
  color: #666;
}
strong {
  color: #183153;
  font-weight: 700;
}
blockquote {
  background: #E9FCEF;
  border-left: 5px solid #29B03E;
  font-style: italic;
  margin: 18px 0;
  padding: 16px 24px;
  border-radius: 10px 0 0 10px;
  color: #183153;
}

/* Layout Containers & Artistic Flair */
.container {
  width: 100%;
  max-width: 1170px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  background: rgba(255,255,255,0.93);
  border-radius: 22px;
  box-shadow: 0 4px 24px 0 rgba(24,49,83,0.12);
  padding: 40px 28px;
  margin: 20px 0 0 0;
}
.text-section {
  background: none!important;
  box-shadow: none!important;
  padding: 0!important;
  border-radius: 0!important;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: #fff;
  box-shadow: 0 2px 12px rgba(24, 49, 83, 0.09);
  border-radius: 18px;
  padding: 28px 20px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  transition: box-shadow .3s;
}
.card:hover {
  box-shadow: 0 6px 32px rgba(41,176,62, 0.13), 0 2px 12px rgba(24,49,83,0.14);
  transform: translateY(-4px) scale(1.014);
}
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
/* For testimonial and feature items */
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px 28px 16px 28px;
  background: #fff;
  border-radius: 16px;
  margin-bottom: 20px;
  box-shadow: 0 2px 10px rgba(24,49,83,0.10);
}
.testimonial-card .star-rating {
  color: #FFD601;
  font-size: 1.3rem;
  letter-spacing: 2px;
  font-family: 'Oswald', sans-serif;
}
.testimonial-card p {
  color: #071326;
  font-size: 1.09rem;
  font-style: italic;
}
.testimonial-card small {
  align-self: flex-end;
  color: #29B03E;
  font-weight: 600;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}


/* === NAVIGATION & HEADER === */
header {
  width: 100%;
  background: #183153;
  box-shadow: 0 2px 14px rgba(24,49,83, 0.09);
  min-height: 73px;
  z-index: 1200;
  position: relative;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  min-height: 73px;
  gap: 18px;
}
.logo img {
  height: 48px;
  width: auto;
  margin-right: 16px;
  vertical-align: middle;
}
.main-nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 22px;
}
.main-nav a {
  color: #fff;
  font-family: 'Oswald', Arial Black, Arial, sans-serif;
  font-size: 1.07rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  position: relative;
  padding: 6px 0;
  font-weight: 600;
  transition: color 0.18s;
}
.main-nav a:hover, .main-nav a.active {
  color: #FFD601;
}
.cta.primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #29B03E;
  color: #fff;
  padding: 13px 32px;
  border-radius: 33px;
  font-family: 'Oswald', Arial Black, Arial, sans-serif;
  font-weight: 700;
  font-size: 1.08rem;
  letter-spacing: 0.02em;
  border: none;
  box-shadow: 0 2px 12px rgba(41,176,62,0.07);
  outline: none;
  cursor: pointer;
  transition: background 0.18s, color 0.16s, transform 0.11s;
  text-transform: uppercase;
}
.cta.primary:hover, .cta.primary:focus {
  background: #183153;
  color: #FFD601;
  transform: scale(1.035);
}
.cta.secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  color: #183153;
  border: 2.5px solid #29B03E;
  padding: 11px 28px;
  border-radius: 33px;
  font-family: 'Oswald', Arial Black, Arial, sans-serif;
  font-weight: 700;
  font-size: 1.07rem;
  transition: background 0.18s, color 0.15s, border-color 0.19s;
  text-transform: uppercase;
}
.cta.secondary:hover, .cta.secondary:focus {
  background: #29B03E;
  color: #fff;
  border-color: #29B03E;
}

/* Burger menu button */
.mobile-menu-toggle {
  display: none;
  font-size: 2rem;
  background: none;
  color: #fff;
  border: none;
  cursor: pointer;
  margin-left: 14px;
  outline: none;
  z-index: 1320;
  padding: 0 6px;
  min-width: 40px;
  min-height: 40px;
  transition: color 0.18s;
}
.mobile-menu-toggle:focus {
  color: #FFD601;
}

/* Mobile Menu Overlay */
.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: linear-gradient(123deg,#183153 85%,#29B03E 100%);
  box-shadow: 0 8px 32px rgba(24,49,83,0.22);
  z-index: 3000;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 0 0 0 0;
  transform: translateX(-100%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.38s cubic-bezier(.85,-0.03,.22,1.07), opacity 0.14s;
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: all;
}
.mobile-menu-close {
  font-size: 2.3rem;
  color: #FFD601;
  background: none;
  border: none;
  align-self: flex-end;
  margin: 26px 24px 0 0;
  cursor: pointer;
  outline: none;
  z-index: 3300;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  margin: 50px 0 0 32px;
}
.mobile-nav a {
  color: #fff;
  font-family: 'Oswald', Arial Black, Arial, sans-serif;
  font-size: 1.35rem;
  line-height: 2.2rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: color 0.17s, background 0.13s;
  padding: 8px 0 8px 12px;
  border-radius: 8px;
  width: 90vw;
  max-width: 390px;
}
.mobile-nav a:hover, .mobile-nav a:active {
  color: #FFD601;
  background: rgba(41,176,62,0.13);
}

/* === MAIN SECTIONS === */
main {
  min-height: 60vh;
}
section {
  margin-bottom: 60px;
  padding: 40px 20px;
  width: 100%;
  position: relative;
  z-index: 1;
}

/* Hero artistic underline/decor */
h1, .hero-title {
  position: relative;
  z-index: 2;
}
h1::before {
  content: '';
  position: absolute;
  left: 0;
  bottom: -16px;
  width: 65px;
  height: 9px;
  background: #FFD601;
  border-radius: 12px;
  opacity: .65;
  z-index: 1;
  filter: blur(1.5px);
}

/* Feature Grid in index */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  justify-content: flex-start;
  list-style: none;
  margin: 24px 0 0 0;
  padding: 0;
}
.feature-grid li {
  display: flex;
  align-items: center;
  gap: 13px;
  background: #E9FCEF;
  border-radius: 15px;
  padding: 13px 20px;
  font-weight: 500;
  color: #183153;
  font-size: 1.07rem;
  min-width: 210px;
  min-height: 44px;
  box-shadow: 0 0px 6px rgba(41,176,62,0.06);
}
.feature-grid img {
  height: 32px;
  width: 32px;
  background: #fff;
  border-radius: 50%;
  padding: 4px;
  box-shadow: 0 1px 8px rgba(41,176,62,0.09);
}

.service-list {
  margin-top: 18px;
  list-style: disc inside;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.service-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
  margin: 18px 0 0 0;
}
.service-item {
  background: #fff;
  border-radius: 17px;
  box-shadow: 0 3px 18px rgba(24,49,83,0.10);
  padding: 28px 18px 22px 18px;
  flex: 1 1 270px;
  min-width: 260px;
  max-width: 370px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  margin-bottom: 20px;
  border-left: 5px solid #29B03E;
  transition: box-shadow .25s, transform .16s;
}
.service-item:hover {
  box-shadow: 0 8px 32px rgba(41,176,62, 0.16), 0 2px 12px rgba(24,49,83,0.10);
  transform: translateY(-3px) scale(1.022);
  border-color: #FFD601;
}

/* Artistic dividers between sections */
section:not(:last-child):after {
  content: '';
  display: block;
  width: 100px;
  height: 4px;
  background: #29B03E;
  opacity: 0.27;
  margin: 48px auto 0 auto;
  border-radius: 20px;
}

/* Footer */
footer {
  width: 100%;
  background: #183153;
  color: #fff;
  padding: 38px 0 22px 0;
  margin-top: 60px;
}
footer .container {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 30px;
}
.footer-nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 28px;
}
.footer-nav a {
  color: #FFD601;
  font-family: 'Oswald', Arial Black, Arial, sans-serif;
  font-size: 1.01rem;
  text-transform: uppercase;
  font-weight: 700;
}
.footer-nav a:hover {
  color: #fff;
  text-decoration: underline;
}
.branding {
  display: flex;
  align-items: center;
  margin: 0 10px;
}
.branding img {
  height: 41px;
  width: auto;
}
.contact-details {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  text-align: right;
  font-size: 1em;
}
.contact-details a {
  color: #fff;
  font-weight: 500;
  text-decoration: underline;
}
.contact-details a:hover {
  color: #FFD601;
}


/* === Cookie Consent Banner & Modal === */
.cookie-consent-banner {
  position: fixed;
  left: 0; right: 0;
  bottom: 0;
  background: #fff;
  color: #183153;
  box-shadow: 0 -2px 16px rgba(24,49,83,0.10), 0 -1px 5px #29B03E;
  padding: 20px 30px;
  z-index: 5020;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 18px;
  min-height: 70px;
  justify-content: space-between;
  animation: cookieSlideIn 0.66s cubic-bezier(.44,1.77,.15,1.02);
}
@keyframes cookieSlideIn {
  from { transform: translateY(95px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.cookie-consent-banner p {
  flex: 1 1 0;
  font-size: 1.03rem;
  color: #1A2230;
}
.cookie-actions {
  display: flex;
  flex-direction: row;
  gap: 15px;
}
.cookie-btn {
  padding: 11px 20px;
  border-radius: 32px;
  border: none;
  font-family: 'Oswald', Arial Black, Arial, sans-serif;
  font-weight: 600;
  font-size: 1.01rem;
  cursor: pointer;
  transition: background 0.18s, color 0.14s, border-color 0.18s;
  outline: none;
  margin: 0 2px;
}
.cookie-btn.accept {
  background: #29B03E;
  color: #fff;
  border: none;
}
.cookie-btn.accept:hover, .cookie-btn.accept:focus {
  background: #183153;
  color: #FFD601;
}
.cookie-btn.reject {
  background: #FFD601;
  color: #183153;
  border: none;
}
.cookie-btn.reject:hover, .cookie-btn.reject:focus {
  background: #fff;
  color: #29B03E;
  border: 1.7px solid #29B03E;
}
.cookie-btn.settings {
  background: #fff;
  color: #183153;
  border: 1.7px solid #29B03E;
}
.cookie-btn.settings:hover, .cookie-btn.settings:focus {
  background: #183153;
  color: #FFD601;
  border-color: #FFD601;
}

/* Cookie preferences modal */
.cookie-modal {
  position: fixed;
  left: 0; top: 0; right:0; bottom:0;
  background: rgba(24,49,83,0.23);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5040;
  transition: opacity 0.24s;
  opacity: 0;
  pointer-events: none;
}
.cookie-modal.open {
  opacity: 1;
  pointer-events: all;
}
.cookie-modal-dialog {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 8px 40px rgba(24,49,83,0.17);
  max-width: 430px;
  width: 98vw;
  padding: 38px 24px 30px 24px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.cookie-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 9px;
}
.cookie-modal-header h3 {
  margin: 0;
}
.cookie-modal-close {
  background: none;
  border: none;
  color: #183153;
  font-size: 2.0rem;
  line-height: 1;
  cursor: pointer;
  margin-left: 9px;
  position: relative;
}
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin: 12px 0;
}
.cookie-category {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 15px;
}
.cookie-toggle-label {
  font-family: 'Roboto', Arial, sans-serif;
}
.cookie-toggle {
  width: 34px;
  height: 18px;
  border-radius: 12px;
  background: #E9FCEF;
  position: relative;
  margin-left: 2px;
  outline: none;
  border: none;
  appearance: none;
  cursor: pointer;
  transition: background 0.19s;
}
.cookie-toggle:checked {
  background: #29B03E;
}
.cookie-toggle::before {
  content: '';
  position: absolute;
  left: 3px; top: 2.5px;
  width: 16px; height: 13.5px;
  border-radius: 10px;
  background: #fff;
  transition: left .20s;
}
.cookie-toggle:checked::before {
  left: 15px;
}


/* === RESPONSIVE FLEXBOX === */
@media (max-width: 1200px) {
  .container {
    max-width: 970px;
  }
  .service-grid, .card-container {
    gap: 17px;
  }
}
@media (max-width: 900px) {
  .container {
    max-width: 720px;
  }
  .content-wrapper {
    padding: 32px 12px;
  }
  .service-item {
    min-width: 180px;
    max-width: 100%;
  }
  .main-nav {
    gap: 10px;
  }
  .footer-nav {
    gap: 16px;
  }
}
@media (max-width: 768px) {
  html {
    font-size: 15px;
  }
  body {
    min-height: unset;
  }
  .container {
    max-width: 96vw;
    padding: 0 11px;
  }
  .content-wrapper {
    padding: 26px 7px;
    border-radius: 15px;
    gap: 10px;
  }
  .section {
    margin-bottom: 38px;
    padding: 26px 7px;
  }
  .main-nav, .cta.primary {
    display: none;
  }
  .logo img {
    height: 36px;
  }
  .mobile-menu-toggle {
    display: block;
  }
  .feature-grid, .service-grid, .card-container, .content-grid {
    flex-direction: column;
    gap: 13px;
  }
  .testimonial-card {
    padding: 18px 9px 13px 13px;
  }
  .footer-nav {
    flex-direction: column;
    gap: 10px;
    text-align: left;
    align-items: flex-start;
    margin-bottom: 9px;
  }
  footer .container {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    text-align: left;
  }
  .contact-details {
    align-items: flex-start;
    text-align: left;
    font-size: 1em;
    gap: 2px;
  }
  .text-image-section, .card-container, .service-grid, .content-grid {
    flex-direction: column;
    gap: 14px;
    align-items: stretch;
  }
  h1, h2 {
    font-size: 2rem;
  }
}
@media (max-width: 500px) {
  h1 {
    font-size: 1.55rem;
  }
  h2 {
    font-size: 1.17rem;
  }
  .feature-grid li {
    min-width: 145px;
    font-size: 0.98rem;
    padding: 7px 11px;
  }
  .section {
    padding: 16px 2vw;
  }
  .cookie-consent-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 12px 8px 9px 11px;
    gap: 13px;
    position: fixed;
  }
  .cookie-actions {
    gap: 7px;
  }
  .cookie-modal-dialog {
    padding: 16px 6px 11px 8px;
    max-width: 97vw;
  }
}

/* Artistic Unique Touches */
section {
  background: linear-gradient(99deg, #F5F5F5 60%, #E9FCEF 100%);
  border-radius: 27px 27px 55px 18px/27px 25px 31px 31px;
}
section:nth-child(even) {
  background: linear-gradient(268deg, #F5F5F5 65%, #E2EFF6 100%);
}

/* Subtle element fade-in */
@keyframes fadeup {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: translateY(0); }
}
.content-wrapper, .service-item, .testimonial-card {
  animation: fadeup 0.7s both;
}
.content-wrapper { animation-delay: 0.07s; }
.service-item { animation-delay: 0.14s; }
.testimonial-card { animation-delay: 0.21s; }

/* Inputs & Forms (for feature completeness) */
input, textarea, select {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  padding: 10px 14px;
  border-radius: 8px;
  border: 1.3px solid #E2EFF6;
  background: #fff;
  margin-bottom: 12px;
  transition: border-color 0.18s;
}
input:focus, textarea:focus, select:focus {
  border-color: #29B03E;
  outline: none;
}

button {
  font-family: 'Oswald', Arial Black, Arial, sans-serif;
}

/* Hide visually only helper class */
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0,0,0,0) !important;
  border: 0 !important;
}

/* Misc. utility/classes for artistic shapes/decoration */
.decorative-squiggle {
  display: inline-block;
  width: 55px;
  height: 9px;
  background-image: url('../assets/squiggle.svg');
  background-size: contain;
  background-repeat: no-repeat;
}

/* Prevent content overlapping and ensure proper z-index */
main, header, footer, .mobile-menu, .cookie-consent-banner, .cookie-modal {
  z-index: initial;
}

/* End of Spectarix Energy Style CSS */
