/* =====================================================================
   FrostBloom Sky Electronics - Luxury Premium Theme (Mobile-first)
   ===================================================================== */

/* === 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,
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;
  -webkit-text-size-adjust: 100%;
}
*, *:before, *:after {
  box-sizing: inherit;
}
body {
  background: #F4F8FC;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  color: #203657;
  font-size: 16px;
  line-height: 1.6;
}
ul, ol {
  list-style: none;
}
a {
  color: #203657;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover,
a:focus {
  color: #b7974b;
}
img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}
strong {
  font-weight: 700;
}
button {
  font-family: inherit;
  font-size: inherit;
  background: none;
  border: none;
  outline: none;
  cursor: pointer;
}

/* === ROOT VARIABLES (with fallbacks) === */
:root {
  --color-primary: #203657;
  --color-secondary: #54B5EA;
  --color-accent: #F4F8FC;
  --color-gold: #b7974b;
  --color-gold-hover: #C6AA5B;
  --color-grey: #44506a;
  --color-white: #fff;
  --color-black: #19212D;
  --shadow-card: 0 4px 18px rgba(32,54,87,0.10), 0 1.5px 4px rgba(183,151,75,0.03);
  --shadow-hover: 0 6px 24px rgba(32,54,87,0.13), 0 2px 8px rgba(183,151,75,0.09);
  --radius-card: 18px;
  --radius-btn: 32px;
  --font-display: 'Montserrat', Arial, Helvetica, sans-serif;
  --font-body: 'Open Sans', Arial, Helvetica, sans-serif;
}

/* === TYPOGRAPHY === */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--color-primary);
  font-weight: 700;
}
h1 {
  font-size: 32px;
  margin-bottom: 20px;
  letter-spacing: 0.01em;
}
h2 {
  font-size: 24px;
  margin-bottom: 18px;
}
h3 {
  font-size: 18px;
  margin-bottom: 10px;
}
h4 {
  font-size: 16px;
  margin-bottom: 6px;
}
p, ul, ol {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--color-grey);
  margin-bottom: 16px;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.container {
  width: 100%;
  max-width: 1170px;
  margin: 0 auto;
  padding-left: 0;
  padding-right: 0;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 26px;
}
.text-section {
  max-width: 740px;
  margin-left: auto;
  margin-right: auto;
}

/* ===================================================== */
/*  LUXURY PREMIUM BUTTONS & LINKS                       */
/* ===================================================== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--color-gold);
  color: var(--color-black);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 0.03em;
  border-radius: var(--radius-btn);
  padding: 15px 38px;
  box-shadow: 0 2px 8px rgba(32,54,87,0.06);
  border: none;
  text-decoration: none;
  transition: background 0.18s, color 0.18s, box-shadow 0.18s;
  position: relative;
}
.btn-primary:hover, .btn-primary:focus {
  background: var(--color-gold-hover);
  color: var(--color-black);
  box-shadow: 0 4px 20px rgba(32,54,87,0.13);
}
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--color-primary);
  color: var(--color-gold);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 16px;
  border-radius: var(--radius-btn);
  padding: 12px 30px;
  border: 1.5px solid var(--color-gold);
  text-decoration: none;
  transition: background 0.18s, color 0.18s, border 0.18s, box-shadow 0.18s;
}
.btn-secondary:hover, .btn-secondary:focus {
  background: var(--color-gold);
  color: var(--color-primary);
  box-shadow: 0 4px 16px rgba(32,54,87,0.08);
}

/* ===================================================== */
/*  HEADER / NAVBAR                                      */
/* ===================================================== */
header {
  width: 100%;
  background: var(--color-white);
  border-bottom: 2px solid #e8e2cb;
  padding: 0 0;
  box-shadow: 0 2px 7px rgba(32,54,87,0.03);
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  flex-direction: column;
  align-items: center;
}
header .container { max-width: none; }
header > a img {
  height: 48px;
  margin: 16px 28px 16px 24px;
  display: block;
}
nav {
  display: flex;
  gap: 28px;
  align-items: center;
  margin-bottom: 0;
}
nav a {
  color: var(--color-primary);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 16px;
  text-decoration: none;
  padding: 8px 0;
  border-bottom: 2px solid transparent;
  transition: color 0.16s, border-bottom 0.16s;
}
nav a:hover, nav a:focus {
  color: var(--color-gold);
  border-bottom: 2px solid var(--color-gold);
}
.mobile-menu-toggle {
  display: none;
  background: var(--color-gold);
  color: var(--color-black);
  border-radius: 50%;
  width: 42px;
  height: 42px;
  font-size: 28px;
  align-items: center;
  justify-content: center;
  margin-left: auto;
  margin-right: 16px;
  margin-top: 10px;
  margin-bottom: 10px;
  box-shadow: 0 2px 7px rgba(32,54,87,0.09);
  border: none;
  transition: background 0.18s;
}
.mobile-menu-toggle:active,
.mobile-menu-toggle:focus {
  background: var(--color-gold-hover);
}

/* ===================  MOBILE MENU  =================== */
.mobile-menu {
  position: fixed;
  background: var(--color-white);
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 99;
  transform: translateX(100%);
  transition: transform 0.33s cubic-bezier(0.8,0.1,0.25,1);
  display: flex;
  flex-direction: column;
  opacity: 0.98;
  box-shadow: -8px 2px 60px rgba(32,54,87,0.10);
  visibility: hidden;
  pointer-events: none;
}
.mobile-menu.open {
  transform: translateX(0);
  visibility: visible;
  pointer-events: auto;
}
.mobile-menu-close {
  background: none;
  color: var(--color-gold);
  font-size: 32px;
  line-height: 1;
  margin: 25px 25px 10px auto;
  border: none;
  padding: 6px 15px;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.mobile-menu-close:hover {
  background: var(--color-accent);
  color: var(--color-primary);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 26px;
  margin: 24px 42px;
}
.mobile-nav a {
  color: var(--color-primary);
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  text-decoration: none;
  padding: 12px 0;
  border-bottom: 1.5px solid var(--color-accent);
  transition: color 0.18s, border-bottom 0.18s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: var(--color-gold);
  border-bottom: 2px solid var(--color-gold);
}

/* HIDE nav AND SHOW BURGER ON MOBILE */
@media (max-width: 1000px) {
  nav { display: none; }
  .mobile-menu-toggle { display: flex; }
}
@media (max-width: 1000px) {
  header {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
  header > a {
    margin-left: 0;
  }
}
@media (max-width: 660px) {
  header > a img {
    height: 36px;
    margin: 12px 12px 12px 8px;
  }
  .mobile-nav {
    margin: 22px 18px;
    gap: 18px;
  }
}

/* ===================================================== */
/*   HERO + CTA SECTIONS   (H1, HERO, CTA)               */
/* ===================================================== */
section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: none;
  border-radius: 0;
}
section .container { width: 100%; }
section .content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 22px;
  width: 100%;
}
section .btn-primary {
  margin-top: 14px;
}

/* ===================================================== */
/*   FLEXBOX LAYOUTS FROM SPEC                           */
/* ===================================================== */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
}
.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;
}
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* === Feature & Product Specialized Layouts === */
.feature-grid, .category-grid, .service-cards, .product-cards, .team-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
}
.feature-item, .category-item, .service-card, .product-card, .team-member {
  background: var(--color-white);
  border-radius: var(--radius-card);
  padding: 32px 22px 28px 22px;
  box-shadow: var(--shadow-card);
  transition: box-shadow 0.19s, transform 0.19s;
  margin-bottom: 20px;
  flex: 1 1 280px;
  min-width: 270px;
  max-width: 340px;
  border: 1.5px solid #e8e2cb;
  position: relative;
}
.feature-item:hover, .category-item:hover,
.service-card:hover, .product-card:hover, .team-member:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-3px) scale(1.016);
  border-color: var(--color-gold);
  z-index: 2;
}
.service-card {
  border-left: 4px solid var(--color-gold);
}
.product-badge {
  position: absolute;
  top: 20px;
  right: 24px;
  background: var(--color-gold);
  color: var(--color-black);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  padding: 6px 18px;
  border-radius: 14px;
  box-shadow: 0 2px 8px rgba(183,151,75,0.1);
  z-index: 3;
}

/* FAQ ACCORDION, BLOG, TESTIMONIALS, ETC */
.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.faq-item {
  background: var(--color-white);
  border-radius: 14px;
  border: 1.5px solid #e8e2cb;
  padding: 20px 24px;
  box-shadow: var(--shadow-card);
  transition: box-shadow 0.19s;
}
.faq-item h3 {
  font-size: 17px;
  color: var(--color-primary);
  margin-bottom: 10px;
}
.faq-item p {
  margin-bottom: 0;
}

/* ================== TESTIMONIALS ==================== */
.testimonial-slider {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
}
.testimonial-card {
  flex: 1 1 290px;
  background: var(--color-accent);
  border-radius: 18px;
  box-shadow: 0 2px 9px rgba(32,54,87,0.07);
  padding: 28px 28px 20px 28px;
  color: var(--color-black);
  margin-bottom: 20px;
  border: 1.5px solid #e8e2cb;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  min-width: 230px;
  position: relative;
}
.testimonial-card p {
  color: var(--color-primary);
  font-size: 16px;
  margin-bottom: 12px;
  line-height: 1.6;
}
.testimonial-meta {
  color: var(--color-gold);
  font-family: var(--font-display);
  font-size: 14px;
  font-style: italic;
}

/* =================== BLOG STYLE ===================== */
.blog-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.blog-list article {
  background: var(--color-white);
  border-radius: 15px;
  padding: 28px 24px;
  min-width: 240px;
  flex: 1 1 320px;
  box-shadow: var(--shadow-card);
  border: 1.5px solid #e8e2cb;
  margin-bottom: 20px;
  transition: box-shadow 0.16s;
}
.blog-list article:hover {
  box-shadow: var(--shadow-hover);
  border-color: var(--color-gold);
}
.blog-meta {
  color: var(--color-gold);
  font-size: 13px;
  font-family: var(--font-display);
  font-weight: 500;
}

/* ==================== FOOTER ======================= */
footer {
  background: var(--color-primary);
  color: var(--color-accent);
  padding: 50px 20px 28px 20px;
  margin-top: 80px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}
.footer-nav, .footer-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
  justify-content: center;
}
.footer-nav a {
  color: var(--color-gold);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 15px;
  text-decoration: none;
  margin-right: 8px;
  border-bottom: 1.5px solid transparent;
  transition: color 0.15s, border-bottom 0.15s;
}
.footer-nav a:hover {
  color: var(--color-white);
  border-bottom: 1.5px solid var(--color-gold);
}
.footer-contact p {
  color: var(--color-accent);
  font-size: 15px;
  margin-bottom: 0;
}
.footer-contact a {
  color: var(--color-secondary);
  text-decoration: underline;
}
.footer-brand {
  margin-top: 12px;
  color: #a2aab6;
  font-size: 14px;
  text-align: center;
  font-family: var(--font-body);
}

/* =============== Cookie Consent Banner =============== */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  z-index: 120;
  background: var(--color-white);
  color: var(--color-primary);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  box-shadow: 0 -2px 16px rgba(32,54,87,0.10);
  padding: 26px 18px 22px 18px;
  gap: 18px;
  border-top: 3px solid var(--color-gold);
  animation: fadeInUp 0.5s;
}
@keyframes fadeInUp {
  from { transform: translateY(100px); opacity: 0; }
  to   { transform: none; opacity: 1; }
}
.cookie-banner .cookie-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 8px;
}
.cookie-banner button {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 500;
  border-radius: var(--radius-btn);
  padding: 9px 20px;
  margin-right: 5px;
  border: 1.5px solid transparent;
  transition: background 0.15s, color 0.15s, border 0.15s;
}
.cookie-banner .cookie-accept-btn {
  background: var(--color-gold);
  color: var(--color-black);
  border: 1.5px solid var(--color-gold);
}
.cookie-banner .cookie-accept-btn:hover {
  background: var(--color-gold-hover);
}
.cookie-banner .cookie-reject-btn {
  background: var(--color-accent);
  color: var(--color-grey);
  border: 1.5px solid #e8e2cb;
}
.cookie-banner .cookie-reject-btn:hover {
  background: #e8e2cb;
}
.cookie-banner .cookie-settings-btn {
  background: var(--color-primary);
  color: var(--color-gold);
  border: 1.5px solid var(--color-gold);
}
.cookie-banner .cookie-settings-btn:hover {
  background: var(--color-gold);
  color: var(--color-primary);
}

/* ================= Cookie Modal ===================== */
.cookie-modal {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(32,54,87,0.23);
  z-index: 130;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.24s;
}
.cookie-modal.open {
  opacity: 1;
  pointer-events: all;
}
.cookie-modal .cookie-modal-content {
  background: var(--color-white);
  border-radius: 22px;
  padding: 38px 30px 28px 30px;
  box-shadow: 0 8px 60px rgba(32,54,87,0.19);
  min-width: 310px; max-width: 94vw;
  width: 380px;
  position: relative;
}
.cookie-modal .cookie-modal-title {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 700;
  margin-bottom: 15px;
  color: var(--color-primary);
}
.cookie-modal .cookie-modal-close {
  position: absolute;
  top: 16px; 
  right: 22px;
  background: none;
  color: var(--color-gold);
  font-size: 28px;
  border: none;
  cursor: pointer;
  transition: background 0.14s;
  border-radius: 50%;
  padding: 5px 10px;
}
.cookie-modal .cookie-modal-close:hover {
  background: var(--color-accent);
  color: var(--color-primary);
}
.cookie-modal .cookie-category {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}
.cookie-modal .cookie-category span {
  font-size: 15px;
  font-family: var(--font-body);
}
.cookie-modal .cookie-toggle {
  width: 38px;
  height: 22px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  background: #e8e2cb;
  position: relative;
  transition: background 0.16s;
}
.cookie-modal .cookie-toggle input {
  display: none;
}
.cookie-modal .cookie-toggle-slider {
  height: 18px;
  width: 18px;
  background: var(--color-gold);
  border-radius: 50%;
  position: absolute;
  left: 2px;
  top: 2px;
  transition: left 0.17s, background 0.17s;
}
.cookie-modal .cookie-toggle input:checked + .cookie-toggle-slider {
  background: var(--color-primary);
  left: 18px;
}
.cookie-modal .cookie-category.essential .cookie-toggle {
  background: #e8e2cb;
  opacity: 0.7;
  pointer-events: none;
}

.cookie-modal .cookie-modal-actions {
  display: flex;
  gap: 14px;
  margin-top: 15px;
}
.cookie-modal .cookie-modal-actions button {
  border-radius: var(--radius-btn);
  padding: 9px 18px;
  font-size: 15px;
  font-family: var(--font-display);
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: background 0.13s, color 0.13s;
}
.cookie-modal .cookie-modal-actions .cookie-save {
  background: var(--color-gold);
  color: var(--color-black);
}
.cookie-modal .cookie-modal-actions .cookie-cancel {
  background: var(--color-accent);
  color: var(--color-grey);
}
.cookie-modal .cookie-modal-actions .cookie-save:hover {
  background: var(--color-gold-hover);
}
.cookie-modal .cookie-modal-actions .cookie-cancel:hover {
  background: var(--color-primary);
  color: var(--color-gold);
}

/* ===================================== */
/*     CARDS / BADGES ETC                */
/* ===================================== */
.card, .service-card, .product-card, .category-item, .team-member {
  box-shadow: var(--shadow-card);
  border-radius: var(--radius-card);
  background: var(--color-white);
  border: 1.5px solid #e8e2cb;
  padding: 30px 20px;
  margin-bottom: 20px;
  transition: box-shadow 0.17s, border 0.17s, transform 0.17s;
}
.card:hover, .service-card:hover, .product-card:hover, .category-item:hover, .team-member:hover {
  box-shadow: var(--shadow-hover);
  border: 1.8px solid var(--color-gold);
  transform: translateY(-2px) scale(1.012);
}

/* === SEARCH BAR (shop) === */
.search-bar {
  background: var(--color-white);
  border: 1.3px solid #e8e2cb;
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(32,54,87,0.06);
  display: flex;
  align-items: center;
  padding: 10px 16px;
  width: 100%;
  max-width: 390px;
  margin-top: 13px;
  margin-bottom: 0;
}
.search-bar input {
  border: none;
  outline: none;
  background: transparent;
  font-size: 16px;
  font-family: var(--font-body);
  color: var(--color-primary);
  width: 100%;
}
.search-bar input::placeholder {
  color: #B9C6DB;
}

/* === Blog Filter Bar === */
.blog-filters {
  display: flex;
  gap: 16px;
  align-items: center;
  font-size: 15px;
  color: var(--color-primary);
  font-family: var(--font-display);
  margin-bottom: 18px;
}

/* === Misc. Utility classes === */
.map-placeholder {
  background: var(--color-accent);
  border: 1.2px solid #e8e2cb;
  border-radius: 16px;
  padding: 24px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 18px;
  margin-bottom: 0;
}

/* === OL STEPS (How it works) === */
.step-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 12px;
}
.step-list li {
  background: var(--color-white);
  border-radius: 16px;
  padding: 24px 20px;
  box-shadow: var(--shadow-card);
  border: 1.5px solid #e8e2cb;
  min-width: 220px;
  flex: 1 1 180px;
}
.step-list li strong {
  display: block;
  margin: 12px 0 6px 0;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1100px) {
  .feature-grid, .category-grid, .service-cards, .product-cards, .team-grid, .testimonial-slider, .blog-list, .step-list {
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 20px;
  }
}
@media (max-width: 900px) {
  .container { padding: 0 12px; }
  .footer-nav, .footer-contact {
    flex-direction: column;
    gap: 12px;
  }
}
@media (max-width: 768px) {
  section, .section {
    padding: 26px 7px;
  }
  h1 {
    font-size: 24px;
  }
  h2 { font-size: 20px; }
  .content-wrapper, .feature-grid, .category-grid, .service-cards, .product-cards, .team-grid, .testimonial-slider, .blog-list, .step-list {
    flex-direction: column;
    gap: 15px;
    align-items: stretch !important;
  }
  .text-image-section { flex-direction: column; gap: 17px; }
  .step-list li, .feature-item, .service-card, .product-card, .category-item, .team-member { min-width: 90vw; max-width: 100vw; padding: 20px 10px; }
}
@media (max-width: 480px) {
  h1 { font-size: 20px; }
  h2 { font-size: 17px; }
  .btn-primary, .btn-secondary {
    font-size: 14px;
    padding: 12px 18px;
  }
  .cookie-modal .cookie-modal-content { width: 96vw; padding: 22px 7px; min-width: 0; }
}

/* =================== MICRO-INTERACTIONS ============= */
a, button, .btn-primary, .btn-secondary {
  transition: color 0.16s, background 0.16s, border 0.16s, box-shadow 0.16s, transform 0.14s;
}
.card:active, .service-card:active, .product-card:active, .team-member:active {
  transform: scale(0.98);
}

/* =================== MISC. ========================== */
::-webkit-scrollbar { width: 10px; background: #f5f5f5; }
::-webkit-scrollbar-thumb { background: #e8e2cb; border-radius: 7px; }
::-webkit-scrollbar-thumb:hover { background: #b7974b; }

/* ===== ADA/ACCESSIBILITY: High contrast for key areas ===== */
.testimonial-card, .faq-item, .feature-item, .product-card, .category-item {
  color: var(--color-black);
  background-color: var(--color-accent);
  box-shadow: 0 4px 24px rgba(32,54,87,0.10);
}
.testimonial-card p, .testimonial-card .testimonial-meta {
  color: var(--color-primary);
  background: none;
}

/* Always sufficient contrast for testimonials/reviews */
.testimonial-card, .testimonial-card p, .testimonial-meta {
  color: #1f2125;
  background: inherit;
}

/* END OF CSS */
