/* ==== 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-size: 100%;
  vertical-align: baseline;
  box-sizing: border-box;
}
article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  background-color: #F5F1ED;
  color: #263238;
}
*, *::before, *::after {
  box-sizing: inherit;
}
img {
  max-width: 100%;
  display: block;
}
ul, ol {
  padding-left: 1.5em;
}
a {
  color: inherit;
  text-decoration: none;
  transition: color 0.18s;
}
button, input, select, textarea {
  font-family: inherit;
  font-size: 100%;
  border: none;
  outline: none;
  background: none;
}

/* ==== Vintage Retro Fonts ==== */
@import url('https://fonts.googleapis.com/css?family=Montserrat:700,900&display=swap');
@import url('https://fonts.googleapis.com/css?family=Roboto:400,700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Fredoka+One&display=swap');

:root {
  --primary: #1A3D5C;
  --secondary: #FDB813;
  --accent: #E3EFF4;
  --offwhite: #F5F1ED;
  --background: #F5F1ED;
  --vintage-red: #B25C38;
  --vintage-teal: #41949A;
  --vintage-olive: #8D9D6D;
  --vintage-yellow: #FFD97D;
  --retro-brown: #867655;

  --font-display: 'Montserrat', 'Fredoka One', system-ui, sans-serif;
  --font-body: 'Roboto', Arial, sans-serif;

  --box-radius: 12px;
  --shadow-vintage: 0 3px 16px rgba(26,61,92,0.09);
  --shadow-card: 0 2px 8px 0 rgba(180,141,85,0.14), 0 1.5px 6px 0 rgba(26,61,92,0.07);
  --border-card: 1.5px solid #E1C68A;
  --pattern-light: repeating-linear-gradient(135deg, #FFD97D 0 6px, #fff 6px 12px);
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  background: var(--background);
  color: #413D3A;
  min-height: 100vh;
}

/* ==== Spacing & Layout Containers ==== */
.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
}
.content-wrapper {
  margin: 0 auto;
  max-width: 820px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  border-radius: var(--box-radius);
  background: var(--offwhite);
  box-shadow: var(--shadow-vintage);
  border: var(--border-card);
}

/* ==== Typography Hierarchy ==== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 900;
  letter-spacing: -0.5px;
  color: var(--primary);
}
h1 {
  font-size: 2.75rem;
  line-height: 1.12;
  margin-bottom: 16px;
  text-shadow: 1px 2px 0 #FFD97D, 0 2px 8px #B25C3822;
}
h2 {
  font-size: 2rem;
  margin-bottom: 16px;
  color: var(--vintage-red);
}
h3 {
  font-size: 1.25rem;
  margin-bottom: 10px;
  color: var(--primary);
}
h4, h5, h6 {
  font-size: 1.1rem;
  color: var(--retro-brown);
}
p, li, address {
  font-family: var(--font-body);
  font-size: 1rem;
  margin-bottom: 12px;
}
strong, b {
  font-family: var(--font-display);
  font-weight: bold;
  color: var(--vintage-red);
}
.brand-tagline {
  font-family: 'Fredoka One', var(--font-display);
  color: var(--secondary);
  font-size: 1.15em;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

/* Retro link style */
a {
  color: var(--vintage-teal);
  text-decoration: underline wavy var(--vintage-yellow);
  transition: color 0.2s, text-shadow 0.18s;
}
a:hover, a:focus {
  color: var(--primary);
  text-shadow: 0 2px 0 var(--vintage-yellow), 0 1.5px 4px #B25C3877;
  text-decoration-style: solid;
}

/* ==== Buttons ==== */
.btn-primary {
  display: inline-block;
  background: var(--secondary);
  color: var(--primary);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.08rem;
  border-radius: 32px;
  padding: 12px 32px 12px 32px;
  box-shadow: 0 4px 0 #FFC220, var(--shadow-vintage);
  letter-spacing: 0.07em;
  border: 2px solid var(--primary);
  text-transform: uppercase;
  cursor: pointer;
  margin-top: 16px;
  margin-bottom: 12px;
  transition: background 0.14s, color 0.18s, box-shadow 0.13s, transform 0.11s;
}
.btn-primary:hover, .btn-primary:focus {
  background: var(--primary);
  color: var(--secondary);
  box-shadow: 0 6px 0 #B25C38;
  transform: translateY(-2px) scale(1.04) rotate(-1deg);
  border-color: var(--vintage-red);
}
.btn-primary:active {
  box-shadow: 0 2px 0 #FFC220;
  transform: translateY(1px) scale(.98);
}

/* ==== Header & Navigation ==== */
header {
  background: var(--vintage-yellow);
  box-shadow: 0 1px 8px 0 #B25C3855;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 78px;
  gap: 16px;
  padding-top: 14px;
  padding-bottom: 14px;
}
header img[alt='Sunsera Energy'] {
  max-height: 44px;
  margin-right: 18px;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}
.main-nav a {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--primary);
  transition: color 0.15s;
  position: relative;
  padding: 2px 4px;
  border-radius: 6px;
}
.main-nav a:hover, .main-nav a:focus {
  color: var(--vintage-red);
  background: var(--vintage-yellow);
  box-shadow: 0 4px 0 #FFD97D44;
}
.mobile-menu-toggle {
  display: none;
  font-size: 2.1rem;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 46px;
  height: 46px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  margin-left: 10px;
  transition: background 0.15s, color 0.18s, box-shadow 0.18s;
  box-shadow: 0 1.5px 10px #1A3D5C33;
  z-index: 102;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: var(--secondary);
  color: var(--primary);
}

/* ==== Mobile Menu ==== */
.mobile-menu {
  position: fixed;
  top: 0; left: 0; bottom: 0; right: 0;
  width: 100vw;
  height: 100vh;
  background: var(--vintage-yellow);
  box-shadow: 0 2px 24px #1A3D5C66;
  transform: translateX(-100%);
  transition: transform 0.4s cubic-bezier(.62,.02,.21,1.02);
  z-index: 1202;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  padding: 0 0 32px 0;
  overflow-y: auto;
}
.mobile-menu.active {
  transform: translateX(0);
}
.mobile-menu-close {
  margin: 18px 0 12px 16px;
  font-size: 2rem;
  color: var(--primary);
  background: none;
  border: none;
  border-radius: 50%;
  width: 46px;
  height: 46px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.18s, color 0.14s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: var(--vintage-red);
  color: #fff;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding-left: 36px;
  margin-top: 18px;
  width: 100%;
}
.mobile-nav a {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--primary);
  padding: 10px 0;
  transition: color 0.17s, background 0.12s;
  border-radius: 5px;
  width: 92%;
  display: block;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #FFD97D;
  color: var(--vintage-red);
}

@media (max-width: 980px) {
  .main-nav {
    gap: 16px;
  }
}
@media (max-width: 860px) {
  .main-nav a {
    font-size: 0.98rem;
  }
}
@media (max-width: 768px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
  .btn-primary {
    padding-left: 22px;
    padding-right: 22px;
  }
  .container {
    padding: 0 12px;
  }
}

/* ==== Section, Cards, and Flex Patterns ==== */

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 24px;
}
.card {
  background: #fff;
  border: var(--border-card);
  border-radius: var(--box-radius);
  box-shadow: var(--shadow-card);
  padding: 30px 24px;
  margin-bottom: 20px;
  position: relative;
  min-width: 270px;
  transition: box-shadow 0.16s, transform 0.16s;
}
.card:hover, .card:focus-within {
  box-shadow: 0 5px 34px #B25C3840, var(--shadow-card);
  transform: translateY(-2px) scale(1.017) rotate(-0.5deg);
  z-index: 2;
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.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;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}
.text-section {
  margin-bottom: 24px !important;
}
@media (max-width: 900px) {
  .card-container, .content-grid {
    flex-direction: column;
    gap: 20px;
  }
}
@media (max-width: 768px) {
  .section {
    margin-bottom: 38px;
    padding: 22px 8px;
  }
  .card {
    padding: 18px 10px;
    min-width: 180px;
  }
  .text-image-section {
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
  }
  .feature-item {
    gap: 11px;
  }
}

/**** List styles ****/
ul, ol {
  margin-bottom: 12px;
}
ul li, ol li {
  display: flex;
  align-items: center;
  margin-bottom: 7px;
  gap: 8px;
  font-size: 1rem;
}
ul li img, ol li img {
  width: 22px;
  height: 22px;
  margin-right: 6px;
  flex-shrink: 0;
}

/* ==== Testimonials ==== */
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  background: linear-gradient(110deg, #fff9ef 85%, #FFD97D 100%);
  border-radius: var(--box-radius);
  border: 1.5px solid #E7A441;
  padding: 20px;
  margin-bottom: 18px;
  box-shadow: 0 1.5px 10px rgba(250,190,80,0.09);
  flex-wrap: wrap;
  position: relative;
}
.testimonial-card blockquote {
  color: #463021;
  font-family: var(--font-display);
  font-size: 1.16em;
  line-height: 1.36;
  quotes: '“' '”';
  margin-right: 14px;
}
.testimonial-card blockquote:before {
  content: open-quote;
  color: var(--vintage-red);
  font-size: 1.7em;
  margin-right: 6px;
}
.testimonial-card blockquote:after {
  content: close-quote;
  color: var(--vintage-red);
  font-size: 1.7em;
  margin-left: 2px;
}
.testimonial-card footer {
  font-size: 1em;
  font-family: var(--font-body);
  font-style: italic;
  color: var(--vintage-red);
  margin-left: 0;
}
.testimonial-card img {
  width: 20px; height: 20px;
  margin-left: 1px;
  margin-right: 1px;
}
.testimonial-card div {
  display: flex;
  align-items: center;
}
@media (max-width: 730px) {
  .testimonial-card {
    flex-direction: column;
    gap: 12px;
    padding: 12px 8px;
    align-items: flex-start;
  }
  .testimonial-card div {
    margin-bottom: 4px;
  }
}

/* ==== FAQ Accordion ==== */
.faq-accordion h3 {
  font-size: 1.08em;
  color: var(--retro-brown);
  cursor: pointer;
  padding: 7px 0 4px 0;
  margin-bottom: 2px;
  border-bottom: 1px dotted #FFD97D;
  transition: color 0.12s;
}
.faq-accordion h3:hover {
  color: var(--primary);
}
.faq-accordion p {
  margin-bottom: 13px;
  color: #222;
}

/* ==== Footer ==== */
footer {
  background: var(--primary);
  color: #fff7e0;
  font-family: var(--font-body);
  font-size: 15px;
  margin-top: 48px;
  padding-top: 38px;
  padding-bottom: 28px;
}
footer .container {
  display: flex;
  flex-direction: column;
}
footer .content-wrapper {
  display: flex;
  flex-direction: row;
  gap: 40px;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
}
footer img[alt='Sunsera Energy'],
footer img[alt='Sunsera Energy'],
footer img[alt='logo-mark.svg'] {
  max-height: 34px;
  margin-bottom: 8px;
}
footer nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
footer nav h3 {
  color: var(--secondary);
  margin-bottom: 9px;
  font-size: 1.05rem;
}
footer nav a {
  color: #fffbe7;
  font-family: var(--font-body);
  font-size: 1em;
  padding-bottom: 2.5px;
  transition: color 0.13s;
}
footer nav a:hover, footer nav a:focus {
  color: var(--secondary);
}
footer address {
  font-style: normal;
  color: #FFD97D;
  margin-bottom: 7px;
}
footer .social-links {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 10px;
}
footer .social-links img {
  width: 28px;
  height: 28px;
  background: #fff4d7;
  border-radius: 7px;
  box-shadow: 0 2px 7px #1A3D5C66;
  transition: filter 0.14s, background 0.13s;
  cursor: pointer;
}
footer .social-links img:hover {
  filter: brightness(1.1) saturate(1.6);
  background: #FFD97D;
}
@media (max-width: 850px) {
  footer .content-wrapper {
    flex-direction: column;
    gap: 20px;
  }
}
@media (max-width: 570px) {
  footer {
    padding-top: 21px;
    padding-bottom: 13px;
  }
}

/* ==== Cookie Consent Banner ==== */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  background: #fffbe9;
  border-top: 2.5px solid var(--secondary);
  box-shadow: 0 -2px 18px #B25C3844;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 25px 16px 20px 28px;
  z-index: 2022;
  animation: slideInBanner 0.45s cubic-bezier(.52,.13,.33,1.19);
}
@keyframes slideInBanner {
  from { transform: translateY(100%); opacity: 0.6; }
  to { transform: translateY(0); opacity: 1; }
}
.cookie-banner__text {
  color: #423C31;
  font-size: 1rem;
  line-height: 1.4;
  margin-right: 10px;
  font-family: var(--font-body);
  max-width: 600px;
}
.cookie-banner__actions {
  display: flex;
  gap: 14px;
}
.cookie-btn {
  font-family: var(--font-display);
  font-size: 1em;
  border-radius: 21px;
  padding: 8px 24px;
  border: 2px solid var(--primary);
  background: var(--secondary);
  color: var(--primary);
  font-weight: bold;
  margin: 0;
  cursor: pointer;
  transition: background 0.14s, color 0.13s;
}
.cookie-btn.reject {
  background: var(--primary);
  color: #fff;
  border-color: var(--vintage-red);
}
.cookie-btn.settings {
  background: #fff;
  color: var(--retro-brown);
  border-color: #FFD97D;
}
.cookie-btn:hover, .cookie-btn:focus {
  background: var(--primary);
  color: var(--secondary);
}
.cookie-btn.reject:hover, .cookie-btn.reject:focus {
  background: var(--vintage-red);
  color: #fff;
}
.cookie-btn.settings:hover, .cookie-btn.settings:focus {
  background: var(--vintage-yellow);
  color: var(--primary);
}
@media (max-width: 600px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 15px 6px 11px 8px;
    gap: 14px;
  }
  .cookie-banner__actions {
    width: 100%;
    flex-wrap: wrap;
    gap: 10px;
  }
}

/* ==== Cookie Modal ==== */
.cookie-modal-overlay {
  display: none;
  position: fixed;
  z-index: 2200;
  left: 0; right: 0; top: 0; bottom: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(26,61,92,0.38);
  align-items: center;
  justify-content: center;
  animation: fadeInModal 0.25s ease;
}
.cookie-modal-overlay.active {
  display: flex;
}
@keyframes fadeInModal {
  from { opacity: 0; }
  to { opacity: 1; }
}
.cookie-modal {
  background: #fffdf8;
  border-radius: 21px;
  box-shadow: 0 4px 44px #140c0d22;
  min-width: 320px;
  max-width: 96vw;
  padding: 32px 24px 24px 24px;
  font-family: var(--font-body);
  color: var(--primary);
  animation: modalZoomIn 0.22s;
  position: relative;
  border: 2.5px solid var(--secondary);
}
@keyframes modalZoomIn {
  from { transform: scale(0.92); opacity: 0.5; }
  to { transform: scale(1); opacity: 1; }
}
.cookie-modal h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--primary);
  margin-bottom: 10px;
}
.cookie-modal ul {
  margin-bottom: 12px;
  list-style: none;
}
.cookie-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}
.cookie-toggle-row label {
  font-size: 1rem;
  color: var(--primary);
  font-weight: 700;
}
.cookie-toggle {
  appearance: none;
  width: 40px;
  height: 22px;
  background: #FFD97D;
  border-radius: 11px;
  position: relative;
  outline: none;
  cursor: pointer;
  transition: background 0.19s;
}
.cookie-toggle:checked {
  background: var(--vintage-teal);
}
.cookie-toggle:disabled {
  background: #d2d2d2;
  cursor: default;
}
.cookie-toggle:before {
  content: '';
  display: block;
  width: 20px;
  height: 20px;
  position: absolute;
  top: 1px;
  left: 1px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 1px 3px #1A3D5C18;
  transition: transform 0.18s;
}
.cookie-toggle:checked:before {
  transform: translateX(18px);
}
.cookie-modal-buttons {
  display: flex;
  gap: 10px;
  margin-top: 10px;
  justify-content: flex-end;
}
.cookie-modal .cookie-btn {
  padding: 7px 20px;
  font-size: 0.98em;
}
.cookie-modal .cookie-btn:last-child {
  margin-right: 0;
}
.cookie-modal-close {
  position: absolute;
  top: 13px;
  right: 13px;
  background: none;
  border: none;
  font-size: 1.28em;
  color: var(--vintage-red);
  cursor: pointer;
  padding: 0;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.13s, color 0.18s;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  background: #FFD97D;
  color: var(--primary);
}
@media (max-width: 480px) {
  .cookie-modal {
    min-width: 94vw;
    padding: 15px 6px 10px 6px;
  }
  .cookie-modal h3 {
    font-size: 1.08rem;
  }
}

/* ==== Additional Retro Patterns ==== */
.section {
  background: var(--offwhite) url('data:image/svg+xml;utf8,<svg width="200" height="80" xmlns="http://www.w3.org/2000/svg"><rect x="0" y="44" width="200" height="12" fill="%23FFD97D" /><rect x="0" y="0" width="200" height="12" fill="%23E1C68A" /></svg>') repeat-x top;
  background-blend-mode: lighten;
}
.card {
  background: #fff url('data:image/svg+xml;utf8,<svg width="16" height="16" xmlns="http://www.w3.org/2000/svg"><rect width="8" height="8" fill="%23E3EFF4"></rect><rect x="8" y="8" width="8" height="8" fill="%23FFD97D"></rect></svg>') repeat;
  background-size: 32px 32px;
  border: 1.5px solid #dec393;
  box-shadow: var(--shadow-card);
}
.testimonial-card {
  background: linear-gradient(110deg, #fffbe7 76%, #FFD97D 100%);
  border: 1.5px solid #DEC393;
  box-shadow: 0 1.5px 7px #DEC39333;
}

/* ==== Responsive Adjustments ==== */
@media (max-width: 720px) {
  .content-wrapper {
    max-width: 99vw;
  }
  h1 {
    font-size: 2.13rem;
  }
  h2 {
    font-size: 1.34rem;
  }
  .card {
    font-size: 0.96rem;
  }
}

/* ==== Focus and Accessibility ==== */
a:focus-visible, button:focus-visible, .btn-primary:focus-visible, .cookie-btn:focus-visible {
  outline: 2.5px solid var(--vintage-teal);
  outline-offset: 2px;
  box-shadow: 0 0 0 2.5px #fff3;
  z-index: 3;
}

/* ==== Misc Utility ==== */
.hide {
  display: none !important;
}

::-webkit-input-placeholder { color: #c7b088; }
:-moz-placeholder { color: #c7b088; }
::-moz-placeholder { color: #c7b088; }
:-ms-input-placeholder { color: #c7b088; }


/* ==== END OF CSS ==== */
