/* ============================
   Energy Helm style.css
   Elegant Classic | Mobile-First Responsive
   ============================ */

/* CSS RESET & NORMALIZE */
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: inherit;
  vertical-align: baseline;
  box-sizing: border-box;
}
html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}
body {
  line-height: 1.66;
  font-family: 'Georgia', 'Times New Roman', Times, serif;
  color: #232529;
  background-color: #F9FAFB;
  min-height: 100vh;
}
a {
  color: #064978;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #F4B538;
  outline: none;
}

/* FONT IMPORTS */
@import url('https://fonts.googleapis.com/css?family=Montserrat:700,600,400&display=swap');
@import url('https://fonts.googleapis.com/css?family=Open+Sans:400,600,700&display=swap');

/* BRAND VARIABLES (Fallbacks for unsupported browsers) */
:root {
  --primary: #064978;
  --secondary: #F4B538;
  --accent: #E5E9F2;
  --neutral-bg: #F9FAFB;
  --text-main: #232529;
  --text-muted: #647080;
  --section-bg: #F6F7F8;
}

/* CONTAINER & LAYOUT */
.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding-left: 16px;
  padding-right: 16px;
  display: flex;
  flex-direction: column;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* SECTION SPACING */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--section-bg);
  border-radius: 18px;
  box-shadow: 0 2px 16px 0 rgba(12,22,44,0.04);
}

/* FLEX UTILITY CLASSES (as required) */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 8px 24px 0 rgba(6,73,120,0.06);
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 280px;
  max-width: 360px;
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 28px 24px;
  gap: 16px;
}
.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;
  margin-bottom: 40px;
}
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 4px 20px 0 rgba(12,22,44,0.08);
  margin-bottom: 20px;
  flex-direction: column;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 20px;
}

/* HEADER & NAVIGATION */
header {
  border-bottom: 1px solid var(--accent);
  background: #fff;
  box-shadow: 0 2px 12px 0 rgba(12,22,44,0.04);
  position: relative;
  z-index: 20;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  height: 90px;
  gap: 16px;
}
header img {
  height: 48px;
  width: auto;
  display: block;
}
header nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}
header nav a {
  font-family: 'Montserrat', 'Georgia', serif;
  font-weight: 600;
  letter-spacing: 0.01em;
  font-size: 16px;
  color: var(--primary);
  padding: 8px 18px;
  border-radius: 8px;
  transition: background 0.1s, color 0.1s;
  margin-right: 6px;
}
header nav a:last-child {
  margin-right: 0;
}
header nav a:hover, header nav a.active {
  background-color: var(--accent);
  color: var(--secondary);
}
.cta-btn {
  display: inline-block;
  font-family: 'Montserrat', 'Georgia', serif;
  font-weight: 700;
  background: var(--secondary);
  color: #fff;
  font-size: 18px;
  padding: 12px 30px;
  border-radius: 24px;
  margin-left: 24px;
  margin-right: 0;
  box-shadow: 0 3px 14px 0 rgba(244,181,56,0.08);
  border: none;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, transform 0.1s;
  outline: none;
}
.cta-btn:hover, .cta-btn:focus {
  background: var(--primary);
  color: #fff;
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 6px 22px 0 rgba(6,73,120,0.09);
}

/* MOBILE BURGER MENU */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 32px;
  color: var(--primary);
  cursor: pointer;
  margin-left: 18px;
  transition: color 0.2s;
  z-index: 100;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  color: var(--secondary);
}
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(6,73,120,0.99);
  color: #fff;
  transform: translateX(-100%);
  transition: transform 0.35s cubic-bezier(.7,0,.3,1);
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 24px 0 0 0;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  display: block;
  align-self: flex-end;
  background: none;
  border: none;
  color: #fff;
  font-size: 34px;
  padding: 8px 24px;
  cursor: pointer;
  transition: color 0.16s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: var(--secondary);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  width: 100%;
  gap: 8px;
  margin-top: 20px;
  align-items: flex-start;
  padding-left: 32px;
}
.mobile-nav a {
  color: #fff;
  font-family: 'Montserrat', 'Georgia', serif;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: .01em;
  line-height: 46px;
  padding: 2px 18px;
  margin: 2px 0;
  border-radius: 10px;
  width: fit-content;
  transition: background 0.16s, color 0.16s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--secondary);
  color: var(--primary);
}

/* HERO, HEADINGS, TYPOGRAPHY */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'Georgia', serif;
  letter-spacing: 0.03em;
  color: var(--primary);
  margin-bottom: 8px;
}
h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 18px;
  line-height: 1.15;
}
h2 {
  font-size: 1.7rem;
  font-weight: 600;
  margin-bottom: 14px;
  line-height: 1.18;
}
h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 6px;
}
h4, h5, h6 {
  font-size: 1.1rem;
  font-weight: 600;
}
p, ul, ol, dl, blockquote {
  font-family: 'Open Sans', 'Georgia', serif;
  color: var(--text-main);
  font-size: 1.06rem;
  margin-bottom: 10px;
}
ul, ol {
  margin-left: 20px;
  padding-left: 16px;
  margin-bottom: 16px;
}
ul li, ol li {
  margin-bottom: 8px;
  line-height: 1.7;
}
dl {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
dt {
  font-weight: 600;
  color: var(--primary);
  font-family: 'Montserrat', 'Georgia', serif;
}
dd { margin-left: 10px; }
strong { font-weight: 700; color: var(--primary); }
blockquote {
  font-style: italic;
  color: var(--primary);
  background: var(--accent);
  padding: 16px 24px;
  border-left: 4px solid var(--secondary);
  border-radius: 10px;
  margin-bottom: 10px;
}
cite {
  display: block;
  color: var(--text-muted);
  font-size: .97em;
  margin-top: 3px;
  font-style: normal;
}
.topic-tags {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin: 8px 0 10px 0;
}
.topic-tags span {
  background: var(--accent);
  color: var(--primary);
  font-family: 'Montserrat', 'Georgia', serif;
  font-size: 0.96em;
  padding: 5px 14px;
  border-radius: 11px;
  letter-spacing: 0.01em;
}

/* TABLES */
table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 24px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 10px 0 rgba(6,73,120,0.04);
  overflow: hidden;
}
thead th {
  background: var(--primary);
  color: #fff;
  font-family: 'Montserrat', 'Georgia', serif;
  font-weight: 600;
  padding: 14px 10px;
  font-size: 1.05em;
  letter-spacing: .01em;
}
td, th {
  padding: 12px 10px;
  font-size: 1em;
  border-bottom: 1px solid var(--accent);
}
tbody tr:last-child td {
  border-bottom: none;
}
tbody td {
  font-family: 'Open Sans', 'Georgia', serif;
  color: var(--text-main);
}

/* FEATURE LISTS WITH ICONS */
.content-wrapper ul li > img {
  vertical-align: middle;
  margin-right: 8px;
  width: 28px;
  height: 28px;
  display: inline-block;
}

/* SECTION/CONTENT LISTS */
.content-wrapper ul, .content-wrapper ol {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* TESTIMONIALS */
.testimonial-card {
  background: #fff;
  color: var(--text-main);
  border-left: 5px solid var(--secondary);
  min-width: 200px;
  max-width: 480px;
  margin-bottom: 20px;
  box-shadow: 0 4px 20px 0 rgba(12,22,44,0.08);
  padding: 20px 24px; 
  align-items: flex-start;
  gap: 12px;
}
.testimonial-card blockquote {
  background: transparent;
  color: var(--primary);
  border: none;
  padding: 0;
  margin-bottom: 4px;
  font-size: 1.1rem;
  font-family: 'Georgia', serif;
}
.testimonial-card cite {
  color: var(--secondary);
  font-weight: 500;
}

/* FOOTER */
footer {
  background: #fff;
  border-top: 1px solid var(--accent);
  padding: 36px 0 30px 0;
}
footer .container {
  flex-direction: row;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}
footer nav {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
footer nav a {
  font-family: 'Montserrat', 'Georgia', serif;
  color: var(--primary);
  font-size: 15px;
  letter-spacing: 0.01em;
  transition: color 0.16s;
}
footer nav a:hover, footer nav a:focus {
  color: var(--secondary);
}
.footer-contact {
  font-family: 'Open Sans', 'Georgia', serif;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.5;
  margin-top: 10px;
}

/* CARDS (eg. Offers, Articles) */
.content-wrapper > ul > li,
.card, .feature-item {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 14px 0 rgba(6,73,120,0.07);
  padding: 24px;
  margin-bottom: 20px;
  transition: box-shadow 0.13s, transform 0.1s;
}
.content-wrapper > ul > li:hover {
  box-shadow: 0 6px 24px 0 rgba(6,73,120,0.13);
  transform: translateY(-3px) scale(1.01); 
}
.card strong {
  color: var(--secondary);
  font-size: 1.08em;
}

/* ANALYSIS & VISUAL HIERARCHY */
section > .container {
  margin-bottom: 0;
}
section {
  margin-bottom: 60px;
  padding: 40px 0;
}
section:last-child {
  margin-bottom: 0;
}

/* BUTTONS GENERAL */
button, .cta-btn {
  font-family: 'Montserrat', 'Georgia', serif;
  cursor: pointer;
  border: none;
  border-radius: 22px;
  transition: background 0.18s, color 0.18s, box-shadow 0.15s, transform 0.09s;
  outline: none;
}
button:focus, .cta-btn:focus {
  box-shadow: 0 0 0 3px var(--accent);
}

/* FORM FIELDS (for possible contact forms) */
input, textarea, select {
  font-family: 'Open Sans', 'Georgia', serif;
  font-size: 1rem;
  padding: 11px 15px;
  border: 1px solid var(--accent);
  border-radius: 8px;
  margin-bottom: 20px;
  background: #fff;
  transition: border-color .17s;
}
input:focus, textarea:focus {
  border-color: var(--secondary);
}

/* COOKIE CONSENT BANNER */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  background: var(--primary);
  color: #fff;
  padding: 24px 18px 18px 18px;
  box-shadow: 0 -3px 20px 0 rgba(6,73,120,0.16);
  z-index: 3000;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
  animation: fadeInUp .5s;
}
.cookie-banner p {
  font-size: 1.08em;
  color: #fff;
  margin-bottom: 7px;
}
.cookie-banner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.cookie-btn, .cookie-banner button {
  font-family: 'Montserrat', serif;
  font-size: 16px;
  border-radius: 14px;
  padding: 9px 22px;
  font-weight: 600;
  border: none;
  min-width: 120px;
  cursor: pointer;
  transition: background .15s, color .12s;
}
.cookie-btn.accept {
  background: var(--secondary);
  color: var(--primary);
}
.cookie-btn.accept:hover {
  background: #dec885;
}
.cookie-btn.reject {
  background: #fff;
  color: var(--primary);
  border: 1px solid var(--secondary);
}
.cookie-btn.reject:hover {
  background: #fcf9f3;
}
.cookie-btn.settings {
  background: transparent;
  color: #fff;
  border: 1px solid #fff;
}
.cookie-btn.settings:hover {
  background: #fff;
  color: var(--primary);
}

/* COOKIE PREFERENCES MODAL */
.cookie-modal-overlay {
  position: fixed;
  top:0; left:0; right:0; bottom:0;
  background: rgba(27, 32, 41, 0.43);
  z-index: 3500;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn .24s;
}
.cookie-modal {
  background: #fff;
  max-width: 390px;
  width: 96%;
  border-radius: 16px;
  box-shadow: 0 8px 40px 0 rgba(6,73,120,0.31);
  padding: 28px 24px 24px 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  animation: fadeInUp .23s;
}
.cookie-modal h4 {
  color: var(--primary);
  font-size: 1.22em;
  font-weight: 700;
  margin-bottom: 6px;
}
.cookie-category {
  background: var(--accent);
  padding: 12px 18px;
  border-radius: 10px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.cookie-category input[type='checkbox'],
.cookie-category input[type='radio'] {
  accent-color: var(--secondary);
  width: 22px; height: 22px;
}
.cookie-category label {
  font-family: 'Open Sans', serif;
  font-size: 1.02em;
  font-weight: 600;
  color: var(--primary);
}
.cookie-modal-actions {
  display: flex;
  gap: 14px;
  width: 100%;
  justify-content: flex-end;
  margin-top: 8px;
}

/* Animations */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(50px); }
  to   { opacity: 1; transform: none; }
}
@keyframes fadeIn {
  from { opacity: 0 }
  to { opacity: 1 }
}

/* ============= RESPONSIVE DESIGN ============= */
@media (max-width: 1100px) {
  .container { max-width: 97vw; }
}
@media (max-width: 900px) {
  header .container, footer .container {
    flex-direction: column;
    align-items: flex-start;
    height: auto;
    gap: 18px;
  }
  .footer-contact { margin-top: 12px; }
}
@media (max-width: 768px) {
  /* Header */
  header .container {
    flex-direction: row;
    height: 64px;
    gap: 6px;
  }
  header nav {
    display: none;
  }
  .cta-btn {
    margin-left: 12px;
    font-size: 16px;
    padding: 9px 22px;
  }
  .mobile-menu-toggle {
    display: block;
  }
  /* Section */
  section {
    margin-bottom: 40px;
    padding: 26px 0;
  }
  .container {
    padding-left: 8px;
    padding-right: 8px;
  }
  /* Main layouts */
  .content-grid, .card-container, .text-image-section {
    flex-direction: column !important;
    gap: 18px !important;
    align-items: stretch !important;
  }
}
@media (max-width: 540px) {
  h1 { font-size: 1.6rem; }
  h2 { font-size: 1.18rem; }
  .content-wrapper {
    gap: 16px;
  }
  .card, .content-wrapper > ul > li, .testimonial-card {
    padding: 16px 12px;
  }
  .card-container, .content-grid {
    gap: 12px;
  }
  .cta-btn {
    font-size: 15px;
    padding: 9px 12px;
    border-radius: 14px;
  }
  footer {
    padding: 20px 0 15px 0;
  }
}

/* ============= UTILITY CLASSES ============= */
.muted { color: var(--text-muted); }
.no-shadow { box-shadow: none !important; }
.text-center { text-align: center !important; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.d-none { display: none !important; }
.gap-24 { gap: 24px !important; }

/* ============= Z-INDEX ==================== */
header, .mobile-menu { z-index: 50; }
footer { z-index: 10; }

/* ============= PRINT ==================== */
@media print {
  header, .mobile-menu, .cookie-banner, .cookie-modal-overlay, footer {
    display: none !important;
  }
  section, .container, .content-wrapper {
    box-shadow: none !important;
    background: #fff !important;
  }
}

/* ============= END OF STYLE.CSS ============= */
