/* --------------------------------------------------
   CSS RESET & NORMALIZATION
---------------------------------------------------*/
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,main,menu,nav,output,ruby,section,summary,time,mark,audio,video{
  margin:0;padding:0;border:0;font-size:100%;font:inherit;vertical-align:baseline
}
html{box-sizing:border-box;height:100%}
*,*:before,*:after{box-sizing:inherit}
body{line-height:1;background:#fff;color:#181C27;min-height:100%;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}

/* --------------------------------------------------
    TYPOGRAPHY
--------------------------------------------------*/
body{
  font-family:'Roboto', Arial, sans-serif;
  font-size:16px;
  color:#181C27;
}
h1,h2,h3,h4,h5,h6{
  font-family:'Montserrat', Arial, sans-serif;
  color:#181C27;
  font-weight:600;
  letter-spacing:0.01em;
}
h1{font-size:2.5rem;line-height:1.12;margin-bottom:24px;}
h2{font-size:2rem;line-height:1.15;margin-bottom:20px;}
h3{font-size:1.2rem;line-height:1.2;margin-bottom:16px;}
h4{font-size:1rem;margin-bottom:12px;}
.subheadline{font-size:1.1rem;color:#5E738C;margin-bottom:36px;max-width:600px;}
p,ul,ol{line-height:1.7; margin-bottom:1.5em;}
a{
  color:#181C27;
  text-decoration:none;
  transition:color 0.2s;
}
a:hover,a:focus{
  color:#5E738C;
}
strong{font-weight:600;}
blockquote{
  font-size:1.1rem;
  font-style:italic;
  color:#181C27;
  margin:0 0 0.8em 0;
  line-height:1.6;
}

/* --------------------------------------------------
    LAYOUT CONTAINERS & SECTIONS
--------------------------------------------------*/
.container{
  width:100%;
  max-width:1100px;
  margin:0 auto;
  padding:0 20px;
}
section{
  margin-bottom:60px;padding:40px 0;
  background:#fff;
}
.content-wrapper{
  display:flex;
  flex-direction:column;
  gap:32px;
}

@media (max-width:768px){
  .container{padding:0 10px;}
  section{padding:30px 0;}
  .content-wrapper{gap:20px;}
}

/* --------------------------------------------------
    HEADER & MAIN NAVIGATION
--------------------------------------------------*/
header{
  width:100%;
  background:#fff;
  box-shadow:0 2px 8px rgba(24,28,39,0.04);
  z-index:20;
}
header nav{
  display:flex;
  align-items:center;
  gap:24px;
  padding:22px 0 22px 0;
  font-family:'Montserrat', Arial, sans-serif;
  font-weight:500;
}
header nav img{
  height:36px;width:auto;margin-right:20px;vertical-align:middle;
}
header nav a{
  color:#181C27;
  font-size:1rem;
  position:relative;
  padding:4px 6px;
  border-radius:4px;
  transition:background 0.16s,color 0.16s;
}
header nav a:hover,header nav a:focus{
  background:#F7F7F7;color:#5E738C;
}
@media (max-width:1000px){
  header nav {
    gap:12px;
    font-size:0.94rem;
  }
  header nav img { height:28px; }
}

/* --------------------------------------------------
   MOBILE NAVIGATION
--------------------------------------------------*/
.mobile-menu-toggle{
  display:none;
  background:none;border:0;
  font-size:2.1rem;
  color:#181C27;
  padding:8px 8px 6px 8px;
  margin-left:auto; /* align right */
  cursor:pointer;
  z-index:105;
  transition:color 0.18s;
}
.mobile-menu-toggle:focus,
.mobile-menu-toggle:hover{
  color:#5E738C;
  outline:none;
}
@media (max-width:900px){
  header nav{display:none;}
  .mobile-menu-toggle{display:block;}
}

.mobile-menu{
  position:fixed;top:0;left:0;width:100vw;height:100vh;
  background:#fff;
  box-shadow:0 6px 24px rgba(24,28,39,0.13);
  z-index:120;
  transform:translateX(-100%);
  transition:transform 0.35s cubic-bezier(.6,-0.2,.7,1.15);
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  padding:0;
}
.mobile-menu.open{
  transform:translateX(0);
}
.mobile-menu-close{
  background:none;border:0;font-size:2.2rem;color:#181C27;
  align-self:flex-end;margin:18px 20px 0 0;cursor:pointer;
  z-index:121;
  transition:color 0.16s;
}
.mobile-menu-close:hover,.mobile-menu-close:focus{
  color:#5E738C;outline:none;
}
.mobile-nav{
  display:flex;
  flex-direction:column;
  align-items:flex-end;
  width:100%;
  gap:18px;
  padding:40px 32px 0 0;
  font-family:'Montserrat', Arial, sans-serif;
}
.mobile-nav a{
  font-size:1.18rem;
  color:#181C27;
  padding:14px 0 14px 0;
  border-radius:6px;
  width:100%;
  text-align:right;
  transition:background 0.16s,color 0.16s;
}
.mobile-nav a:hover,.mobile-nav a:focus{
  background:#F7F7F7;
  color:#5E738C;
}
@media (max-width:600px){
  .mobile-nav{ padding:32px 18px 0 0; }
  .mobile-nav a{ font-size:1rem; }
  .mobile-menu-close{ margin:16px 10px 0 0; }
}

/* Overlay for mobile menu */
.mobile-menu::after{
  content:"";
  display:block;
  position:absolute;
  top:0; right:0; bottom:0; left:70%;
  background:rgba(24,28,39,0.06);
  pointer-events:none;
}

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

/* --------------------------------------------------
   BUTTONS
--------------------------------------------------*/
.cta-button, .cookie-banner button, .cookie-modal button{
  font-family:'Montserrat', Arial, sans-serif;
  font-size:1.07rem;
  background:#181C27;
  color:#fff;
  padding:12px 30px;
  border:none;
  border-radius:24px;
  box-shadow:0 2px 12px rgba(24,28,39,0.08);
  transition:background 0.21s,box-shadow 0.18s, color 0.18s;
  cursor:pointer;
  margin-top:10px;
  margin-bottom:6px;
  font-weight:600;
  letter-spacing:0.01em;
  outline:none;
}
.cta-button:hover, .cookie-banner button:hover, .cookie-modal button:hover,
.cta-button:focus, .cookie-banner button:focus, .cookie-modal button:focus{
  background:#5E738C; color:#fff; box-shadow:0 4px 18px rgba(24,28,39,0.11);
}
.cookie-banner .secondary, .cookie-modal .secondary{
  background:#F7F7F7;color:#181C27;box-shadow:none;
}
.cookie-banner .secondary:hover, .cookie-modal .secondary:hover{
  background:#5E738C;color:#fff;
}
.cookie-banner .danger, .cookie-modal .danger{
  background:#fff;color:#5E738C;border:1px solid #5E738C;
}
.cookie-banner .danger:hover, .cookie-modal .danger:hover{
  background:#5E738C;color:#fff;
}

/* --------------------------------------------------
   UI CARDS, SHADOWS, CONTAINERS
--------------------------------------------------*/
.card-container { display: flex; flex-wrap: wrap; gap: 24px; }
.card,
.testimonial-card,
.accessory-category-grid li, .category-grid li, .product-category-grid li, .service-list li, .feature-grid li, .stats-counter-grid li
{
  background:#fff;
  border-radius:14px;
  box-shadow:0 4px 24px rgba(24,28,39,0.06);
  padding:28px 22px 20px 22px;
  margin-bottom:20px;
  position:relative;
  display:flex;
  flex-direction:column;
  gap:10px;
  transition:box-shadow 0.18s, transform 0.18s;
}
.card:hover,.testimonial-card:hover, .category-grid li:hover, .product-category-grid li:hover, .accessory-category-grid li:hover, .service-list li:hover, .feature-grid li:hover, .stats-counter-grid li:hover {
  box-shadow:0 8px 32px rgba(24,28,39,0.13);
  transform:translateY(-2px) scale(1.011);
  z-index:5;
}

/* --------------------------------------------------
   FLEX LAYOUT PATTERNS
--------------------------------------------------*/
.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; }

/***** Explicit brand main lists *****/
.feature-grid,
.category-grid,
.product-category-grid,
.accessory-category-grid,
.stats-counter-grid,
.service-list,
.faq-list
{
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  list-style: none;
  margin:0 0 12px 0;
  padding:0;
}
.feature-grid li, .category-grid li, .product-category-grid li, .accessory-category-grid li, .service-list li, .stats-counter-grid li {
  flex:1 1 260px;
  min-width:220px;
  max-width:calc(50% - 24px);
}
@media (max-width:700px){
  .feature-grid li, .category-grid li, .product-category-grid li, .accessory-category-grid li,.service-list li, .stats-counter-grid li {
    min-width:100%; max-width:100%;
  }
  .feature-grid, .category-grid, .product-category-grid, .accessory-category-grid, .stats-counter-grid, .service-list, .faq-list { 
    flex-direction:column; gap:20px;
  }
}

.stats-counter-grid img,
.category-grid img,
.product-category-grid img,
.accessory-category-grid img{
  width:34px;height:34px;margin-right:10px;vertical-align:middle;
}

/* For FAQ/secondary lists */
.faq-list {
  flex-direction:column;
  gap:28px;
}
.faq-list ul, .faq-list ol {
  margin-left:24px;
  margin-bottom:12px;
  font-size:1rem;
}

/* Lists without card shadow */
.text-section{
  display:flex;
  flex-direction:column;
  gap:8px;
}
.newsletter-signup{margin-top:20px;font-size:1rem;}

/* Testimonial Card */
.testimonial-card {
  background:#F7F7F7;
  color:#181C27;
  border-radius:14px;
  box-shadow:0 4px 18px rgba(24,28,39,0.09);
  margin-bottom:20px;
  padding:30px 26px 24px 32px;
  font-size:1.1rem;
  flex-direction:column;
  align-items:flex-start;
  gap:10px;
  transition:box-shadow 0.17s, transform 0.16s;
}
.testimonial-card blockquote{ color:#181C27; }
.testimonial-card p{ font-size:1rem; color:#5E738C; margin-bottom:0; }
@media (max-width:700px){ .testimonial-card{padding:22px 12px 12px 10px;} }

/* Content alignment */
.contact-details{
  display:flex; flex-direction:column; gap:14px;
  background:#F7F7F7;
  border-radius:10px;
  padding:22px 18px;
  font-size:1.05rem;
  margin-bottom:16px;
}
.contact-details img{ width:22px; height:22px; margin-right:8px;vertical-align:middle; }

.device-highlights ul, .text-section ul{margin-left:20px;margin-bottom:12px;}

.warranty-info, .support-links, .compatibility-info, .device-highlights{
  background:#F7F7F7; border-radius:10px; padding:18px 16px; margin-bottom:18px;
}

/* --------------------------------------------------
   SPACING
--------------------------------------------------*/
section{ margin-bottom:60px; padding:40px 20px; }
.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; }

@media (max-width:768px){ 
  .text-image-section{ flex-direction:column; gap:18px; }
  .content-grid{ flex-direction:column; gap:16px; }
 }

/* --------------------------------------------------
   FOOTER
--------------------------------------------------*/
footer{
  background:#fff;
  color:#5E738C;
  font-size:1rem;
  border-top:1px solid #e6e6ea;
}
footer section{
  padding:24px 0 12px 0;
  margin-bottom:0;
}
footer nav{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  margin-bottom:18px;
}
footer nav a{
  color:#5E738C;
  font-size:0.97rem;
  padding:2px 6px;border-radius:4px;
  transition:background 0.14s,color 0.14s;
}
footer nav a:hover,footer nav a:focus{
  background:#F7F7F7;
  color:#181C27;
}
@media (max-width:700px){
  footer nav{flex-direction:column;gap:6px;}
}

/* --------------------------------------------------
   COOKIE BANNER (FIXED)
--------------------------------------------------*/
.cookie-banner {
  position:fixed;
  left:0;right:0;bottom:0;
  background:#F7F7F7;
  color:#181C27;
  border-top:1px solid #e5e5e9;
  box-shadow:0 -2px 24px rgba(24,28,39,0.09);
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  padding: 20px 36px 20px 36px;
  z-index:300;
  transition:transform 0.32s, opacity 0.32s;
  font-size:1rem;
}
.cookie-banner button{
  margin-left:10px; min-width:130px;
}
@media (max-width:700px){
  .cookie-banner{ flex-direction:column; align-items:flex-start; padding: 18px 10px; gap:12px; }
  .cookie-banner button{ margin:9px 0 0 0; min-width:100px; }
}
.cookie-banner[hidden]{
  display:none;
  opacity:.0;
}

/* Cookie Preference MODAL */
.cookie-modal{
  position:fixed;bottom:0;left:0;right:0;top:0;
  background:rgba(24,28,39,0.15);
  z-index:350;
  display:flex;align-items:center;justify-content:center;
  opacity:1;visibility:visible;
  transition: opacity 0.28s;
}
.cookie-modal[hidden]{ opacity:0;visibility:hidden; pointer-events:none; }
.cookie-modal .modal-content{
  background:#fff;
  color:#181C27;
  box-shadow:0 8px 48px rgba(24,28,39,0.13);
  border-radius:18px;
  max-width:400px;width:94vw;
  padding:34px 26px 28px 26px;
  display:flex;flex-direction:column;gap:22px;
  animation:pop-in 0.27s cubic-bezier(.65,-0.1,.6,1.25);
}
@keyframes pop-in{ 0%{transform:scale(.94);opacity:0;} 90%{transform:scale(1.03);} 100%{transform:scale(1);opacity:1;} }
.cookie-modal .cookie-categories{
  display:flex;flex-direction:column;gap:14px;margin-bottom:10px;
}
.cookie-modal label{
  font-size:1rem;
  display:flex;
  align-items:center;
  gap:10px;
}
.cookie-modal input[type=checkbox],
.cookie-modal input[type=radio]{ margin-right:8px; accent-color:#5E738C; }
.cookie-modal .actions{
  display:flex;gap:10px;justify-content:flex-end;margin-top:18px;
}
.cookie-modal .category-desc{font-size:.98rem; color:#5E738C; margin-left:26px;}

/* Cookie essential always enabled */
.cookie-modal .essential[disabled]{opacity:.7;cursor:not-allowed;}

/* --------------------------------------------------
   TRANSITION/FOCUS EFFECTS
--------------------------------------------------*/
a,.cta-button,.card, .testimonial-card, .cookie-banner button, .cookie-modal button{
  transition:color 0.19s,background 0.21s,box-shadow 0.17s,transform 0.14s;
}
:focus{outline:2px solid #5E738C; outline-offset:2px;}

/* --------------------------------------------------
   RESPONSIVE IMAGE SIZING
--------------------------------------------------*/
img{max-width:100%;display:inline-block;vertical-align:middle;}

/* --------------------------------------------------
   RESPONSIVE SETTINGS
--------------------------------------------------*/
@media (max-width:900px){
  h1{font-size:2rem;}
  h2{font-size:1.4rem;}
  h3{font-size:1.05rem;}
}
@media (max-width:600px){
  h1{font-size:1.5rem;}
  h2{font-size:1.13rem;}
  h3{font-size:1.00rem;}
  .cta-button, .cookie-banner button, .cookie-modal button{ font-size:0.98rem; padding: 10px 16px; }
  .card,.testimonial-card {
    padding:14px 7px 16px 9px;
  }
}

/* --------------------------------------------------
   MISC UTILITIES
--------------------------------------------------*/
.hide-sm { display:none; }
@media (min-width:769px){ .hide-sm{ display:initial; } }

.show-sm{ display:none; }
@media (max-width:768px){ .show-sm{ display:inline; } }

/* --------------------------------------------------
   CUSTOM SCROLLBAR (Light/minimal)
--------------------------------------------------*/
::-webkit-scrollbar {width:8px;background:#F7F7F7;}
::-webkit-scrollbar-thumb { background:#e5e7eb;border-radius:10px; }

/* --------------------------------------------------
   END
--------------------------------------------------*/
