/* ===================================================================
   EnergeticFlow - Vintage Retro CSS Styles
   Responsive, modern, unmistakably VINTAGE/RETRO FLEXBOX-ONLY DESIGN
   =================================================================== */

/* === CSS RESET AND 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%;
  font: inherit;
  vertical-align: baseline;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}
body {
  min-height: 100vh;
  font-family: 'Roboto', Arial, sans-serif;
  background: #FDF6EC;
  color: #2A2320;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
*, *:before, *:after {
  box-sizing: inherit;
}
a {
  color: #1B232F;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #BC6600;
  outline: none;
}
ul, ol {
  list-style: none;
}
img {
  display: inline-block;
  max-width: 100%;
  height: auto;
}
button, input, select, textarea {
  font: inherit;
}

/* === VINTAGE RETRO BRAND COLORS === */
:root {
  --primary: #1B232F;
  --secondary: #6699A7;
  --accent: #F7D04B;
  --retro-caramel: #F7CB98;
  --retro-peach: #FFD9B3;
  --retro-hunter: #487570;
  --retro-sand: #FFF8E1;
  --retro-brown: #7A5C42;
  --retro-orange: #E9941A;
  --retro-red: #D04E31;
  --retro-bg: #FDF6EC;
}

/* === FONT FACE (with Google fallback) === */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@700;900&family=Roboto:wght@400;700&display=swap');

/* === TYPOGRAPHY === */
h1, .h1 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--primary);
  letter-spacing: 1.5px;
  text-shadow: 1px 1px 0 var(--accent), 2px 2px 0 #E2B63B;
  margin-bottom: 24px;
}
h2, .h2 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--retro-brown);
  margin-bottom: 20px;
  letter-spacing: 1px;
  text-shadow: 1px 1px 0 var(--accent);
}
h3, .h3 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--retro-orange);
  margin-bottom: 12px;
  letter-spacing: 0.5px;
}
h4, .h4 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary);
}
h5, .h5 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary);
}
h6, .h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--primary);
}
p, li {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  color: #2A2320;
}
.subheadline {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.25rem;
  color: var(--retro-hunter);
  margin-bottom: 20px;
  font-weight: 700;
  letter-spacing: 0.5px;
}
strong {
  font-weight: 700;
  color: var(--retro-brown);
}

/* ===== GLOBAL CONTAINER AND LAYOUT SPACING ===== */
.container {
  width: 100%;
  max-width: 1176px;
  margin: 0 auto;
  padding: 0 16px;
}
section, .section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--retro-bg);
  border-radius: 18px;
  box-shadow: 0 3px 14px 0 rgba(156, 125, 80, 0.10);
  border: 3px solid var(--retro-caramel);
  position: relative;
  z-index: 1;
}
@media (max-width: 768px) {
  section, .section {
    padding: 24px 8px;
    margin-bottom: 38px;
    border-radius: 12px;
  }
  .container {
    padding: 0 4vw;
  }
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 22px;
  align-items: flex-start;
}
.text-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
}

/* ===== FLEXBOX LAYOUTS (MANDATORY) ===== */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 20px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: var(--retro-peach);
  border-radius: 14px;
  box-shadow: 2px 4px 16px 0 rgba(110,89,65,0.09);
  border: 2px solid var(--retro-caramel);
  padding: 32px 26px;
  transition: box-shadow 0.15s, transform 0.18s;
}
.card:hover, .card:focus {
  box-shadow: 2px 8px 36px 0 rgba(180,80,40,0.19);
  transform: translateY(-2px) scale(1.02);
  z-index: 2;
}
.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;
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
  }
  .content-grid {
    flex-direction: column;
    gap: 24px;
  }
}
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  margin-bottom: 20px;
  background: #FFF5CC;
  border: 2px dashed var(--retro-orange);
  border-radius: 12px;
  box-shadow: 1px 3px 12px 0 rgba(220, 132, 40, .08);
  position: relative;
  font-style: italic;
  color: #3B311B;
  transition: border-color 0.18s, background 0.16s;
}
.testimonial-card p {
  color: #251a08;
  margin-bottom: 0;
  font-size: 1.08rem;
}
.testimonial-card span {
  font-family: 'Montserrat', Arial, sans-serif;
  color: #948259;
  font-size: 1rem;
  font-style: normal;
  margin-left: auto;
}
.testimonial-card:hover, .testimonial-card:focus {
  border-color: var(--retro-red);
  background: #FFFDE4;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  padding: 24px 16px 20px 16px;
  background: var(--retro-sand);
  border-radius: 14px;
  border: 2px solid var(--retro-caramel);
  box-shadow: 1px 2px 12px 0 rgba(179,142,78, 0.07);
  width: 100%;
  max-width: 350px;
  min-width: 220px;
}
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}
@media (max-width: 992px) {
  .feature-grid {
    flex-direction: column;
    gap: 24px;
    align-items: stretch;
  }
  .feature-item {
    max-width: 100%;
    min-width: 0;
  }
}

/* === HEADER/NAVIGATION === */
header {
  background: var(--retro-peach);
  border-bottom: 3px solid var(--accent);
  padding: 0;
  box-shadow: 0 4px 32px 0 rgba(193,153,65,0.05);
  position: sticky;
  top: 0;
  z-index: 1100;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 76px;
}
nav {
  display: flex;
  gap: 18px;
  align-items: center;
}
nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary);
  padding: 7px 12px;
  border-radius: 8px;
  transition: background 0.14s, color 0.12s;
  outline: 0;
  position: relative;
}
nav a:hover, nav a:focus {
  background: var(--accent);
  color: var(--primary);
}
header img {
  height: 44px;
  margin-right: 18px;
}
.cta-primary, .cta-secondary {
  display: inline-block;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 900;
  font-size: 1.08rem;
  border-radius: 28px;
  padding: 11px 30px 12px 30px;
  box-shadow: 0 3px 12px 0 rgba(221,175,55,0.10);
  border: none;
  cursor: pointer;
  margin-left: 12px;
  transition: background 0.15s, color 0.15s, box-shadow 0.13s;
  text-shadow: 1px 1px 0 #fff7c0;
  letter-spacing: 0.5px;
}
.cta-primary {
  background: var(--accent);
  color: var(--primary);
  border: 2px solid var(--retro-orange);
}
.cta-primary:hover, .cta-primary:focus {
  background: var(--retro-red);
  color: #fff;
  box-shadow: 0 6px 32px 0 rgba(200, 120, 30, 0.1);
}
.cta-secondary {
  background: var(--secondary);
  color: #fff;
  border: 2px solid var(--retro-hunter);
}
.cta-secondary:hover, .cta-secondary:focus {
  background: var(--primary);
  box-shadow: 0 3px 18px 0 rgba(77,90,100,0.13);
}

/* === MOBILE MENU === */
.mobile-menu-toggle {
  display: none;
}
@media (max-width: 900px) {
  nav {
    display: none;
  }
  .cta-primary {
    display: none;
  }
  .mobile-menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    background: var(--accent);
    color: var(--primary);
    border-radius: 50%;
    border: 2px solid var(--primary);
    width: 44px;
    height: 44px;
    cursor: pointer;
    margin-left: auto;
    transition: background 0.14s, color 0.14s, border-color 0.14s;
    z-index: 1502;
  }
  .mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
    background: var(--retro-red);
    color: #fff;
    border-color: var(--retro-orange);
  }
}
.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(250, 235, 205, 0.98);
  transform: translateX(100%);
  transition: transform 0.38s cubic-bezier(.85,.12,.44,1.02);
  will-change: transform;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  z-index: 1500;
  box-shadow: -8px 0 48px 10px rgba(130,100,41,0.08);
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  margin: 26px 0 0 24px;
  background: var(--retro-caramel);
  color: var(--primary);
  font-size: 2.2rem;
  border: none;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  cursor: pointer;
  transition: background 0.14s;
  z-index: 1510;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: var(--retro-red);
  color: #fff;
}
.mobile-nav {
  margin: 46px auto auto 28px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: flex-start;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  color: var(--retro-brown);
  font-weight: 700;
  font-size: 1.25rem;
  padding: 12px 24px;
  text-decoration: none;
  border-radius: 9px;
  transition: background 0.15s, color 0.14s;
  width: 90vw;
  box-sizing: border-box;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--accent);
  color: var(--primary);
}

@media (min-width: 900px) {
  .mobile-menu { display:none !important; }
}

/* === MAIN: HERO, MAP PLACEHOLDER, TIMELINE === */
.map-placeholder {
  width: 100%;
  height: 220px;
  background: repeating-linear-gradient(-45deg, var(--retro-sand), var(--retro-sand) 18px, #e1d3b2 22px, #e1d3b2 38px);
  border-radius: 14px;
  border: 2px dashed var(--retro-caramel);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #b88e3c;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.1rem;
  margin-top: 22px;
}
.timeline {
  padding: 20px 5%;
  background: var(--retro-peach);
  border-radius: 8px;
  border: 2px solid var(--accent);
  font-size: 1.07rem;
  color: var(--retro-brown);
  margin-bottom: 16px;
  box-shadow: 0 2px 10px 0 rgba(203,169,64,.08);
}

/* === LISTS AND INFO === */
ul, ol {
  margin-bottom: 22px;
}
ul li, ol li {
  margin-bottom: 10px;
  padding-left: 28px;
  position: relative;
}
ul li:before {
  content: '◆';
  color: var(--retro-orange);
  position: absolute;
  left: 0;
  top: 2px;
  font-size: 18px;
}
.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 16px 0 24px 0;
}
.contact-info-list li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0;
  font-size: 1.07rem;
  color: var(--retro-brown);
}
.contact-info-list img {
  width: 22px;
  height: 22px;
}
.team-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 30px;
}
.team-list .text-section {
  background: var(--retro-peach);
  border: 2px solid var(--retro-caramel);
  border-radius: 12px;
  padding: 22px 18px;
  flex: 1 1 260px;
  min-width: 220px;
  box-shadow: 0 1px 7px 0 rgba(180,120,30,0.08);
  margin-bottom: 0;
}
@media (max-width: 800px) {
  .team-list {
    flex-direction: column;
    gap: 18px;
  }
}

/* === FOOTER === */
footer {
  background: var(--retro-hunter);
  color: #fff;
  padding: 44px 0 18px 0;
  border-top: 5px double var(--accent);
  font-family: 'Montserrat', Arial, sans-serif;
  letter-spacing: 0.5px;
}
footer .container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 10px;
}
.footer-nav a {
  color: #fff8e1;
  font-weight: 700;
  font-size: 1rem;
  padding: 8px 12px;
  border-radius: 6px;
  transition: background 0.12s, color 0.12s;
}
.footer-nav a:hover, .footer-nav a:focus {
  background: var(--accent);
  color: var(--primary);
}
.footer-contact {
  font-size: 0.94rem;
  color: #FFF8E1;
  margin-top: 0;
}
@media (max-width: 700px) {
  footer .container { padding: 0 8vw; }
  .footer-nav { flex-direction: column; gap: 12px; }
}

/* === BUTTONS & FORMS (fallback for future form templates) === */
button,
input[type="submit"],
input[type="button"] {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.07rem;
  border-radius: 7px;
  background: var(--accent);
  color: var(--primary);
  border: 2px solid var(--primary);
  padding: 11px 23px;
  cursor: pointer;
  box-shadow: 0 2px 7px 0 rgba(220,174,80, 0.11);
  margin: 4px 2px;
  transition: background 0.14s, color 0.14s, border 0.13s;
}
button:hover, button:focus,
input[type="submit"]:hover, input[type="submit"]:focus,
input[type="button"]:hover, input[type="button"]:focus {
  background: var(--retro-orange);
  color: #fff;
  border-color: var(--retro-red);
  outline: none;
}

/* === COOKIE CONSENT BANNER === */
#cookie-banner {
  position: fixed;
  left: 0; bottom: 0;
  width: 100vw;
  background: var(--retro-caramel);
  color: var(--primary);
  padding: 22px 4vw 17px 28px;
  box-shadow: 0 -6px 32px rgba(130,98,40,0.10);
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 24px;
  z-index: 5000;
  border-top: 3px solid var(--accent);
  font-size: 1.05rem;
  transition: transform 0.35s;
}
#cookie-banner.closed {
  transform: translateY(100%);
}
#cookie-banner .cookie-actions {
  display: flex;
  flex-direction: row;
  gap: 16px;
  margin-left: auto;
}
@media (max-width: 600px) {
  #cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 2vw 20px 2vw;
    font-size: 0.97rem;
  }
  #cookie-banner .cookie-actions {
    margin-left: 0;
    width: 100%;
    justify-content: flex-start;
    gap: 10px;
  }
}

.cookie-btn {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  padding: 8px 22px;
  border-radius: 22px;
  border: 2px solid var(--retro-brown);
  background: var(--accent);
  color: var(--primary);
  margin-right: 7px;
  font-size: 1rem;
  transition: background 0.13s, border 0.15s, color 0.14s;
}
.cookie-btn.accept {
  background: var(--retro-orange);
  color: #fff;
  border-color: var(--retro-red);
}
.cookie-btn.reject {
  background: #f7f1e1;
  color: var(--retro-brown);
  border-color: var(--retro-brown);
}
.cookie-btn.settings {
  background: var(--retro-caramel);
  color: var(--primary);
  border-color: var(--accent);
}
.cookie-btn:hover, .cookie-btn:focus {
  background: var(--retro-red);
  color: #fff;
  border-color: var(--retro-orange);
  outline: none;
}

/* === COOKIE MODAL === */
#cookie-modal {
  position: fixed;
  left: 0; top: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(30,24,12,0.48);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 6000;
  animation: cookiefadein 0.32s ease;
}
#cookie-modal.open { display: flex; }
@keyframes cookiefadein { from { opacity: 0; } to { opacity: 1; } }

.cookie-modal-window {
  background: var(--retro-peach);
  padding: 40px 32px 30px 32px;
  border-radius: 18px;
  box-shadow: 0 7px 56px 0 rgba(92,65,20,0.13);
  border: 4px solid var(--accent);
  min-width: 310px;
  max-width: 95vw;
  display: flex;
  flex-direction: column;
  gap: 22px;
  position: relative;
}
.cookie-modal-window h2 {
  color: var(--primary);
  font-size: 1.45rem;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 900;
}
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.cookie-category {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  font-size: 1.03rem;
  color: var(--retro-brown);
}
.cookie-toggle {
  width: 36px;
  height: 22px;
  background: #efe8cf;
  border-radius: 12px;
  border: 2px solid var(--accent);
  position: relative;
  cursor: pointer;
  transition: background 0.13s, border 0.13s;
}
.cookie-toggle[aria-checked="true"] {
  background: var(--retro-orange);
  border-color: var(--retro-red);
}
.cookie-toggle-knob {
  position: absolute;
  top: 1px; left: 2px;
  width: 18px; height: 18px;
  background: #fff6de;
  border-radius: 50%;
  transition: left 0.17s;
}
.cookie-toggle[aria-checked="true"] .cookie-toggle-knob {
  left: 14px;
}
.cookie-modal-close {
  position: absolute;
  top: 19px;
  right: 19px;
  background: var(--accent);
  color: var(--primary);
  border: none;
  border-radius: 50%;
  width: 34px;
  height: 34px;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  background: var(--retro-red);
  color: #fff;
}
.cookie-modal-actions {
  display: flex;
  flex-direction: row;
  gap: 13px;
  justify-content: flex-end;
}

/* === RESPONSIVE TYPO/SCALE/IMAGES === */
@media (max-width: 480px) {
  h1,.h1 { font-size: 1.7rem; }
  h2,.h2 { font-size: 1.2rem; }
  h3,.h3 { font-size: 1.04rem; }
  section,.section { padding: 16px 2vw; margin-bottom: 19px; }
  .container { max-width: 100vw; padding: 0 2vw; }
}

/* === Vintage Retro Decorative Patterns === */
section:before {
  content: '';
  display: block;
  position: absolute;
  top: 0; left: 0;
  width: 40px; height: 40px;
  background: url('/assets/pattern-corner.svg') no-repeat center center;
  opacity: 0.16;
  z-index: 0;
}
section:after {
  content: '';
  display: block;
  position: absolute;
  bottom: 0; right: 0;
  width: 40px; height: 40px;
  background: url('/assets/pattern-corner.svg') no-repeat center center;
  opacity: 0.1;
  z-index: 0;
}

@media (max-width: 768px) {
  section:before, section:after {
    width: 24px;
    height: 24px;
  }
}

/* === ANIMATIONS & TRANSITIONS === */
.cta-primary, .cta-secondary, .cookie-btn, button, input[type="submit"], input[type="button"] {
  transition: background 0.14s, color 0.14s, border 0.13s, box-shadow 0.14s, transform 0.14s;
}
.card, .feature-item, .testimonial-card {
  transition: box-shadow 0.17s, border-color 0.15s, background 0.13s;
}

/* === MICRO-INTERACTIONS === */
.card:active, .feature-item:active {
  transform: scale(0.98);
}
input:focus, textarea:focus {
  outline: 2px solid var(--retro-orange);
  outline-offset: 2px;
}

/* === UTILITIES === */
.hide { display: none !important; }
.flex { display: flex !important; }

/* === PRINT SETTINGS === */
@media print {
  header, footer, #cookie-banner, #cookie-modal { display: none !important; }
  section, .section { box-shadow: none !important; border: none !important; }
}

/* End EnergeticFlow CSS */