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

html {
  box-sizing: border-box;
  font-size: 16px;
  scroll-behavior: smooth;
}
*, *:before, *:after {
  box-sizing: inherit;
}
body {
  line-height: 1.5;
  font-family: 'Roboto', Arial, sans-serif;
  background: #181C1F;
  color: #F8F8F8;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: #FFD600;
  text-decoration: none;
  transition: color 0.2s;
  font-weight: 500;
}
a:hover, a:focus {
  color: #FFF;
  outline: none;
}
ul, ol {
  list-style: none;
}
button, input, select, textarea {
  font-family: inherit;
  font-size: 1rem;
  color: inherit;
  background: none;
  border: none;
  outline: none;
}
button {
  cursor: pointer;
  background: none;
}

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

:root {
  --color-primary: #27607A;
  --color-secondary: #F8F8F8;
  --color-accent: #FFD600;
  --color-bg: #181C1F;
  --color-surface: #21262A;
  --color-metal: #444D55;
  --color-contrast: #1b2226;
  --color-disabled: #6c7780;
  --shadow-base: 0 2px 16px 0 rgba(30,30,32, 0.20);
  --shadow-hover: 0 4px 24px 0 rgba(30,30,32, 0.28);
  --radius-card: 12px;
  --radius-btn: 6px;
  --font-title: 'Montserrat', Arial, sans-serif;
  --font-body: 'Roboto', Arial, sans-serif;
}


/* ================= LAYOUT & CONTAINER =================== */
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 20px;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
@media (max-width: 768px) {
  .section {
    padding: 30px 8px;
    margin-bottom: 36px;
  }
  .container {
    padding: 0 8px;
  }
  .content-wrapper {
    gap: 20px;
  }
}

/* ================= HEADER & NAVIGATION =================== */
header {
  width: 100%;
  background: var(--color-surface);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  box-shadow: var(--shadow-base);
  padding: 0 20px;
  height: 72px;
  position: relative;
  z-index: 30;
}
header img[alt="Cristalline Solarhaus"] {
  height: 42px;
  width: auto;
  margin-right: 24px;
}
header nav {
  display: flex;
  gap: 24px;
  align-items: center;
}
header nav a {
  font-family: var(--font-body);
  font-size: 1.05rem;
  color: var(--color-secondary);
  padding: 6px 0;
  letter-spacing: 0.02em;
  border-bottom: 2px solid transparent;
  transition: border 0.2s, color 0.2s;
}
header nav a:hover, header nav a:focus {
  color: var(--color-accent);
  border-bottom: 2px solid var(--color-accent);
}
.cta-btn {
  background: linear-gradient(90deg, #373C40 40%, #27607A 100%);
  color: var(--color-accent);
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 1.08rem;
  letter-spacing: 0.03em;
  padding: 12px 26px;
  margin-left: 24px;
  border-radius: var(--radius-btn);
  border: none;
  box-shadow: 0 2px 8px 0 rgba(39,96,122,0.07);
  transition: background 0.25s, color 0.18s, box-shadow 0.2s, transform 0.09s;
  display: inline-block;
  outline: none;
  position: relative;
}
.cta-btn:hover, .cta-btn:focus {
  background: #FFD600;
  color: #21262A;
  box-shadow: 0 4px 22px 0 rgba(39,96,122,0.24);
  transform: translateY(-2px) scale(1.04);
}
.mobile-menu-toggle {
  display: none;
  background: var(--color-bg);
  color: var(--color-accent);
  border-radius: 50%;
  width: 44px;
  height: 44px;
  font-size: 2rem;
  align-items: center;
  justify-content: center;
  z-index: 42;
  margin-left: 16px;
  border: 2px solid #262D30;
  box-shadow: var(--shadow-base);
  transition: background 0.15s, color 0.2s, border 0.2s;
}
.mobile-menu-toggle:focus {
  background: var(--color-metal);
  color: var(--color-accent);
}

@media (max-width: 900px) {
  header nav {
    display: none;
  }
  .cta-btn {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
}

/* ======== MOBILE MENU OVERLAY ======== */
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(24,28,31,.97);
  z-index: 1002;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(.62,.11,.88,.97);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-start;
  padding-top: 0;
  pointer-events: none;
  opacity: 0;
}
.mobile-menu.open {
  transform: translateX(0);
  pointer-events: all;
  opacity: 1;
}
.mobile-menu-close {
  margin-top: 36px;
  margin-right: 26px;
  font-size: 2.2rem;
  background: var(--color-surface);
  color: var(--color-disabled);
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #444D55;
  transition: background 0.2s, color 0.2s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: var(--color-accent);
  color: var(--color-contrast);
  border-color: var(--color-accent);
}
.mobile-nav {
  margin-top: 16vh;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding-left: 40px;
}
.mobile-nav a {
  color: var(--color-accent);
  font-family: var(--font-title);
  font-size: 1.35rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 9px;
  display: block;
  padding: 8px 0;
  border-left: 3px solid transparent;
  transition: color 0.2s, border 0.14s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: #FFF;
  border-left: 3px solid var(--color-accent);
}

/* =================== TYPOGRAPHY =================== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-title);
  color: var(--color-secondary);
  font-weight: 900;
  letter-spacing: 0.01em;
  text-shadow: 0 2px 10px rgba(21,22,22,0.08);
}
h1 {
  font-size: 2.6rem;
  margin-bottom: 12px;
}
h2 {
  font-size: 1.9rem;
  margin-bottom: 10px;
  color: #FFD600;
  font-weight: 800;
}
h3 {
  font-size: 1.25rem;
  color: var(--color-accent);
  margin-bottom: 7px;
  font-weight: 700;
  letter-spacing: 0.02em;
}
h4, h5, h6 {
  font-size: 1.08rem;
  color: var(--color-accent);
}
p, li, ul, ol, span, strong, b {
  font-family: var(--font-body);
  color: var(--color-secondary);
  font-size: 1.07rem;
  font-weight: 400;
}
strong, b {
  font-weight: 700;
}
@media (max-width: 768px) {
  h1 { font-size: 2rem;}
  h2 { font-size: 1.25rem;}
  h3 { font-size: 1.09rem;}
  p, li, span { font-size: 0.98rem; }
}

/* ======== Brand Accent for Titles ======== */
h2, h3 {
  text-transform: none;
  letter-spacing: 0.015em;
}

/* ================== FLEX LAYOUT HELPERS ================= */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: stretch;
}
.card {
  background: var(--color-surface);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-base);
  margin-bottom: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 32px 22px;
  min-width: 260px;
  flex: 1 1 340px;
  transition: box-shadow 0.18s, transform 0.14s;
  border: 1.5px solid var(--color-metal);
}
.card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-3px) scale(1.018);
}
.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) {
  .card-container,
  .content-grid,
  .text-image-section {
    flex-direction: column;
    gap: 16px;
  }
}

/* ========== FEATURE ITEMS / LISTS ================= */
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 12px;
}
ul li, ol li {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 16px;
}
ul li img, ol li img {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  margin-right: 8px;
  filter: grayscale(0.7) contrast(1.2);
}
@media (max-width: 768px) {
  ul li, ol li { margin-bottom: 13px; }
  ul li img, ol li img { width: 22px; height: 22px; }
}

/* ========== TESTIMONIAL CARDS ========== */
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  background: #F8F8F8;
  color: #181C1F;
  border-radius: var(--radius-card);
  box-shadow: 0 4px 18px 0 rgba(30,30,32,0.15);
  padding: 20px 32px;
  margin-bottom: 20px;
  border-left: 5px solid var(--color-primary);
  font-size: 1.09rem;
  transition: box-shadow 0.18s, border-color 0.2s;
}
.testimonial-card p {
  color: #fff;
  font-style: italic;
  font-weight: 500;
}
.testimonial-card span {
  color: var(--color-metal);
  font-size: 0.96rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.testimonial-card:hover, .testimonial-card:focus-within {
  box-shadow: 0 6px 28px 0 rgba(30,30,32,0.26);
  border-left: 5px solid var(--color-accent);
}
@media (max-width: 600px) {
  .testimonial-card {
    padding: 18px 12px;
  }
}

/* ========== TEXT SECTIONS and FAQ ========== */
.text-section, .faq-list > div {
  background: var(--color-surface);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-base);
  padding: 22px 18px;
  margin-bottom: 20px;
  border-left: 3px solid var(--color-primary);
  transition: box-shadow 0.15s, border-color 0.2s;
}
.text-section:hover, .faq-list > div:hover {
  box-shadow: var(--shadow-hover);
  border-left: 3px solid var(--color-accent);
}
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.faq-list h3 {
  color: var(--color-primary);
  font-size: 1.13rem;
  margin-bottom: 7px;
}
@media (max-width: 768px) {
  .text-section, .faq-list > div {
    padding: 14px 8px;
  }
  .faq-list {
    gap: 14px;
  }
}

/* ============== FOOTER ============== */
footer {
  background: #232729;
  color: var(--color-secondary);
  width: 100%;
  padding: 38px 0 0 0;
  box-shadow: 0 -2px 16px 0 rgba(24, 22, 34, 0.12);
  border-top: 2px solid var(--color-metal);
}
footer .container {
  padding-bottom: 22px;
}
footer .content-wrapper {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
}
footer nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
footer nav a {
  color: var(--color-accent);
  text-transform: uppercase;
  font-size: 0.98rem;
  font-weight: 600;
  margin-bottom: 2px;
  letter-spacing: 0.04em;
  border-left: 2px solid transparent;
  padding-left: 6px;
  transition: color 0.16s, border 0.14s;
}
footer nav a:hover, footer nav a:focus {
  color: #fff;
  border-left: 2px solid var(--color-accent);
}
footer strong {
  color: var(--color-accent);
}
footer .social-links {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 12px;
}
footer .social-links img {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #263239;
  padding: 6px;
  transition: background 0.2s;
}
footer .social-links img:hover {
  background: var(--color-accent);
}
@media (max-width: 900px) {
  footer .content-wrapper {
    flex-direction: column;
    gap: 26px;
  }
}
@media (max-width: 600px) {
  footer {
    padding: 28px 0 0 0;
  }
}

/* ============== COOKIE CONSENT BANNER ============== */
.cookie-banner {
  position: fixed;
  left: 0; bottom: 0; right: 0;
  width: 100vw;
  background: var(--color-surface);
  color: var(--color-secondary);
  box-shadow: 0 -4px 32px 0 rgba(24,28,31,0.11);
  z-index: 9999;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 28px;
  padding: 22px 16px;
  font-size: 1.06rem;
  animation: cb-fadein 0.45s;
}
@keyframes cb-fadein {
  0% { transform: translateY(100%); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}
.cookie-banner__buttons {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-left: 20px;
}
.cookie-btn, .cookie-btn-alt {
  background: var(--color-accent);
  color: var(--color-contrast);
  border: none;
  padding: 10px 22px;
  border-radius: var(--radius-btn);
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 1rem;
  margin-left: 2px;
  cursor: pointer;
  transition: background 0.18s, color 0.16s, box-shadow 0.12s, transform 0.13s;
  box-shadow: 0 1px 6px 0 rgba(39,96,122,0.08);
}
.cookie-btn:hover, .cookie-btn-alt:hover, .cookie-btn:focus, .cookie-btn-alt:focus {
  background: var(--color-primary);
  color: var(--color-accent);
  transform: scale(1.04);
  outline: none;
}
.cookie-btn-alt {
  background: #232729;
  color: var(--color-secondary);
  border: 1.2px solid #FFD600;
}
@media (max-width: 700px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    font-size: 1rem;
    padding: 16px 6px;
  }
  .cookie-banner__buttons {
    margin-left: 0;
    gap: 8px;
    flex-direction: row;
    width: 100%;
    justify-content: flex-start;
    margin-top: 4px;
  }
}

/* COOKIE MODAL */
.cookie-modal__overlay {
  position: fixed;
  z-index: 10001;
  left: 0; right: 0; top: 0; bottom: 0;
  background: rgba(24,28,31,0.77);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: all;
  opacity: 1;
  transition: opacity 0.3s;
}
.cookie-modal {
  background: var(--color-surface);
  color: var(--color-secondary);
  border-radius: 14px;
  min-width: 340px;
  max-width: 99vw;
  box-shadow: 0 4px 32px 0 rgba(30,30,44,0.27);
  padding: 36px 28px 22px 28px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
  animation: cb-modalin 0.34s forwards;
}
@keyframes cb-modalin {
  0% { opacity: 0; transform: translateY(70px) scale(.93) }
  90% { opacity: 1; }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}
.cookie-modal__close {
  position: absolute;
  top: 13px; right: 16px;
  background: none;
  color: var(--color-accent);
  font-size: 1.7rem;
  border: none;
  border-radius: 50%;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.1s;
}
.cookie-modal__close:hover, .cookie-modal__close:focus {
  background: var(--color-accent);
  color: var(--color-bg);
}
.cookie-pref-section {
  display: flex;
  flex-direction: column;
  gap: 13px;
  margin: 12px 0 16px 0;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}
.cookie-category input[type=checkbox], .cookie-category input[type=radio] {
  accent-color: var(--color-accent);
  width: 19px;
  height: 19px;
  margin-right: 2px;
}
.cookie-category label {
  font-size: 1rem;
  font-weight: 500;
  color: var(--color-accent);
}
.cookie-category.essential label {
  color: #B2B2B2;
}
.cookie-modal__actions {
  display: flex;
  flex-direction: row;
  gap: 14px;
  justify-content: flex-end;
  margin-top: 16px;
}
@media (max-width: 520px) {
  .cookie-modal {
    min-width: 0;
    padding: 20px 7px 16px 9px;
  }
  .cookie-modal__close { top: 6px; right: 6px; }
}

/* =============== GENERAL SECTION SPACING =============== */
section {
  width: 100%;
  background: transparent;
  margin-bottom: 60px;
  padding: 0;
  border: none;
}
section:last-child {
  margin-bottom: 0;
}
@media (max-width: 768px) {
  section { margin-bottom: 36px;}
}

/* ================ INTERACTIVE & HOVER EFFECTS ================ */
.card, .testimonial-card, .text-section, .faq-list > div {
  transition: box-shadow .19s, border .15s, transform .10s;
}
.card:active, .testimonial-card:active, .text-section:active, .faq-list > div:active {
  transform: scale(.99);
}

/* Button and link focus ring */
a:focus, button:focus, .cta-btn:focus, .cookie-btn:focus, .cookie-btn-alt:focus, .mobile-menu-toggle:focus {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

/* =============== SCROLLBAR CUSTOMIZATION =============== */
body::-webkit-scrollbar {
  width: 10px;
}
body::-webkit-scrollbar-thumb {
  background: #28434E;
  border-radius: 6px;
}
body::-webkit-scrollbar-track {
  background: #111418;
}

/* ========== UTILITY: VISIBILITY HELPER CLASSES ========== */
.hide {
  display: none !important;
}
.visible {
  display: block !important;
}

/* ========== ACCESSIBILITY ========== */
.sr-only {
  position: absolute;
  left: -10000px;
  width: 1px; height: 1px;
  overflow: hidden;
}

/* ========= MEDIA QUERIES (RESPONSIVE FLEX LAYOUTS) ======== */
@media (max-width: 900px) {
  .card-container, .content-grid, .features, .footer-content, .text-image-section {
    flex-direction: column;
    gap: 18px;
  }
}
@media (max-width: 600px) {
  .content-wrapper, .card-container, .content-grid, .features, .footer-content {
    gap: 10px;
  }
}


/* =============== TABLES (RARE) =============== */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  background: var(--color-surface);
  border-radius: var(--radius-card);
  overflow: hidden;
}
th, td {
  padding: 10px 14px;
  text-align: left;
}
th {
  background: var(--color-primary);
  color: var(--color-secondary);
  font-family: var(--font-title);
  font-weight: 700;
}
td {
  color: var(--color-secondary);
}

/* =============== FORM ELEMENTS =============== */
input[type="text"],
input[type="email"],
input[type="number"],
input[type="password"],
select, textarea {
  padding: 12px 14px;
  background: #23272C;
  color: #F8F8F8;
  border: 1.5px solid #323A42;
  border-radius: var(--radius-btn);
  box-shadow: 0 2px 9px 0 rgba(24,28,31,0.06);
  font-size: 1rem;
  margin-bottom: 18px;
  width: 100%;
  transition: border 0.19s, box-shadow 0.16s;
}
input:focus, textarea:focus, select:focus {
  border: 1.7px solid var(--color-accent);
  box-shadow: 0 4px 18px 0 rgba(255,214,0,0.15);
}

/* Larger buttons for touch targets (e.g. forms/mobile) */
button, input[type=submit] {
  min-width: 68px;
  min-height: 42px;
}

/* =============== Miscellaneous =============== */
div, section, main, article {
  word-break: break-word;
}

/* ======= Industrial/Metallic decorative micro-details ====== */
.card, .testimonial-card, .text-section, .faq-list > div {
  border-right: 1.5px solid #5B6978;
  background: linear-gradient(125deg,#232c31 70%, #21262A 100%);
}

/* "Metal panel" effect for cards (subtle lines) */
.card, .testimonial-card {
  background-image: repeating-linear-gradient(135deg, rgba(100,120,138,0.018) 0 6px, transparent 6px 12px);
}

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