/* =====================================================
   Arcane Axe Smart Home – LUXURY PREMIUM Theme
   Responsive, Flexbox-only, Unmistakably Premium Look
   Brand Colors, Typography, Cookie Banner, Mobile Menu
   ===================================================== */

/* ---- 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;
  box-sizing: border-box;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
}
html {
  height: 100%;
  scroll-behavior: smooth;
}
body {
  min-height: 100vh;
  background: #f7f7f9; /* subtle light background */
}
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
  display: block;
}
ul, ol {
  list-style: none;
}
a {
  text-decoration: none;
  color: inherit;
}
img {
  max-width: 100%;
  vertical-align: middle;
  display: block;
}
input, button {
  font-family: inherit;
  font-size: 1rem;
  background: none;
  border: none;
  outline: none;
  box-sizing: border-box;
}
button {
  cursor: pointer;
}

/* ---- ROOT COLORS & FONTS ---- */
:root {
  --color-primary: #22314e;
  --color-secondary: #68a297;
  --color-accent: #f3f3f5;
  --color-gold: #b79a5b;
  --color-white: #fff;
  --color-black: #19181c;
  --color-border: #e5e5eb;
  --color-bg: #f7f7f9;
  --color-danger: #c1442e;
  --box-radius: 14px;
  --shadow: 0 6px 20px 0 rgba(34,49,78,0.06), 0 1.5px 6px rgba(34,49,78,0.08);
  --font-display: 'Montserrat', Arial, Helvetica, sans-serif;
  --font-body: 'Open Sans', Arial, Helvetica, sans-serif;
  --card-gap: 24px;
  --section-margin: 60px;
  --section-padding-v: 40px;
  --section-padding-h: 20px;
  --transition-quick: 0.2s cubic-bezier(.4,0,.2,1);
  --transition: 0.4s cubic-bezier(.4,0,.2,1);
}

/* Webfont loading fallback */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@600;700&family=Open+Sans:wght@400;600&display=swap');

body {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--color-primary);
  background: var(--color-bg);
  line-height: 1.65;
  font-weight: 400;
  overflow-x: hidden;
}

.container {
  width: 100%;
  max-width: 1170px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}

/* ---- TYPOGRAPHY ---- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 0.65em;
  line-height: 1.15;
}
h1 {
  font-size: 2.25rem;
  letter-spacing: -0.5px;
  margin-bottom: 0.6em;
}
h2 {
  font-size: 1.65rem;
  letter-spacing: -0.2px;
  margin-bottom: 0.5em;
}
h3 {
  font-size: 1.18rem;
  font-weight: 600;
  margin-bottom: 0.3em;
}
h4, h5, h6 {
  font-size: 1rem;
}
p, ul, ol {
  font-size: 1rem;
  color: var(--color-primary);
  margin-bottom: 1.2em;
}
ul, ol {
  padding-left: 1rem;
}
ul li, ol li {
  margin-bottom: 0.6em;
  position: relative;
}
b, strong {
  font-weight: 700;
}

/* Luxury premium detail accents */
h1, h2, h3 {
  position: relative;
}
h2::after {
  content: '';
  display: block;
  width: 40px;
  height: 3px;
  background: var(--color-gold);
  border-radius: 1.5px;
  margin-top: 12px;
  margin-bottom: 8px;
}

/* ---- SECTION SPACING & LAYOUT ---- */
section {
  margin-bottom: var(--section-margin);
  padding: var(--section-padding-v) var(--section-padding-h);
  background: var(--color-white);
  border-radius: var(--box-radius);
  box-shadow: var(--shadow);
}

@media (max-width: 991px) {
  .container {
    max-width: 100%;
    padding-left: 12px;
    padding-right: 12px;
  }
  section {
    padding: 28px 10px;
    margin-bottom: 40px;
  }
}
@media (max-width: 600px) {
  h1 {
    font-size: 1.38rem;
  }
  h2 {
    font-size: 1.08rem;
  }
  h3 {
    font-size: 0.96rem;
  }
}

/* ---- HEADER (Desktop & Mobile) ---- */
header {
  background: var(--color-white);
  box-shadow: 0 2px 14px 0 rgba(34,49,78,0.08);
  position: sticky;
  top: 0;
  z-index: 1010;
}
header .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  padding-top: 8px;
  padding-bottom: 8px;
}
.logo {
  display: flex;
  align-items: center;
}
.logo img {
  height: 46px;
  width: auto;
}
nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 28px;
}
nav a {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  color: var(--color-primary);
  letter-spacing: 0.01em;
  padding: 8px 0;
  transition: color var(--transition-quick);
  border-bottom: 2px solid transparent;
  position: relative;
}
nav a:hover,nav a:focus {
  color: var(--color-gold);
  border-bottom: 2px solid var(--color-gold);
}
.btn-primary {
  background: var(--color-gold);
  color: var(--color-white);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.02rem;
  letter-spacing: 0.02em;
  padding: 0.7em 1.5em;
  border: none;
  border-radius: 48px;
  box-shadow: 0 2px 12px rgba(183,154,91,0.13);
  transition: background var(--transition), transform var(--transition-quick);
  display: inline-block;
  margin-left: 16px;
  position: relative;
}
.btn-primary:hover, .btn-primary:focus {
  background: #a68741;
  color: var(--color-white);
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 4px 20px rgba(183,154,91,.16);
}
header .btn-primary {
  margin-left: 20px;
}
.mobile-menu-toggle {
  background: var(--color-accent);
  color: var(--color-gold);
  font-size: 2.2rem;
  padding: 0 13px;
  border-radius: 11px;
  display: none;
  margin-left: 16px;
  transition: background var(--transition);
  z-index: 1101;
  border: 1px solid var(--color-gold);
}
.mobile-menu-toggle:hover,.mobile-menu-toggle:focus {
  background: var(--color-gold);
  color: var(--color-white);
}

/* ---- MOBILE MENU ---- */
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(34,49,78,0.92);
  z-index: 1200;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform var(--transition);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  padding: 0;
  opacity: 0;
  pointer-events: none;
}
.mobile-menu.active {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu-close {
  background: none;
  color: var(--color-gold);
  font-size: 2rem;
  border: none;
  position: absolute;
  top: 26px;
  right: 32px;
  z-index: 1250;
  cursor: pointer;
  transition: color var(--transition-quick);
}
.mobile-menu-close:hover,.mobile-menu-close:focus {
  color: var(--color-white);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 28px;
  width: 100%;
  padding: 100px 36px 60px 36px;
}
.mobile-nav a {
  color: var(--color-white);
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: color var(--transition-quick), border var(--transition-quick);
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: var(--color-gold);
  border-bottom: 2px solid var(--color-gold);
}
@media (max-width: 991px) {
  nav,
  header .btn-primary {
    display: none;
  }
  .mobile-menu-toggle {
    display: inline-block;
  }
}

/* ---- CONTENT WRAPPER SPACING ---- */
.content-wrapper {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 4px;
}

/* ---- FLEXBOX LAYOUTS ---- */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 24px;
  justify-content: flex-start;
}
.feature-grid > div {
  background: var(--color-accent);
  box-shadow: var(--shadow);
  border-radius: var(--box-radius);
  flex: 1 1 205px;
  min-width: 230px;
  max-width: 330px;
  padding: 28px 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  position: relative;
  border: 1px solid var(--color-border);
  margin-bottom: 20px;
  transition: box-shadow var(--transition), border var(--transition);
}
.feature-grid > div:hover {
  border: 1.5px solid var(--color-gold);
  box-shadow: 0 10px 36px 0 rgba(183,154,91,.11);
  z-index: 2;
}
.feature-grid img {
  width: 38px;
  height: 38px;
  object-fit: contain;
}

.card-container,
.card-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: var(--color-accent);
  border-radius: var(--box-radius);
  box-shadow: var(--shadow);
  margin-bottom: 20px;
  padding: 28px 22px;
  display: flex;
  flex-direction: column;
  position: relative;
  border: 1px solid var(--color-border);
}

.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;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  background: var(--color-white);
  border-radius: var(--box-radius);
  box-shadow: var(--shadow);
  margin-bottom: 24px;
  padding: 20px 26px 18px 22px;
  max-width: 500px;
  border-left: 5px solid var(--color-gold);
  position: relative;
  color: var(--color-black);
}
.star-rating {
  color: var(--color-gold);
  font-size: 1.3rem;
  font-family: var(--font-display);
  font-weight: 700;
  margin-bottom: 5px;
}
.customer-meta {
  font-size: 0.98rem;
  font-family: var(--font-body);
  color: var(--color-secondary);
  font-weight: 600;
  margin-top: 3px;
  letter-spacing: 0.01em;
}
.testimonials {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 30px;
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: var(--color-accent);
  border-radius: var(--box-radius);
  padding: 20px;
}

.blog-teasers {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 22px;
}
.blog-teasers li {
  background: var(--color-accent);
  border-radius: var(--box-radius);
  box-shadow: var(--shadow);
  padding: 20px 18px;
  border-left: 5px solid var(--color-primary);
  transition: border-color var(--transition-quick);
  margin-bottom: 4px;
}
.blog-teasers li:hover {
  border-left-color: var(--color-gold);
}

/* FAQ LIST */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 32px;
}
.faq-list > div {
  background: var(--color-accent);
  border-radius: var(--box-radius);
  box-shadow: var(--shadow);
  padding: 22px 22px 17px 22px;
  border-left: 4px solid var(--color-secondary);
}
.faq-list h3 {
  font-size: 1.02rem;
  color: var(--color-primary);
  margin-bottom: 5px;
}

/* TIMELINE */
.timeline {
  display: flex;
  flex-direction: column;
  gap: 13px;
  margin-top: 24px;
}
.timeline li {
  padding-left: 18px;
  position: relative;
}
.timeline li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 6px;
  width: 7px;
  height: 7px;
  background: var(--color-gold);
  border-radius: 50%;
}

/* CONTACT DETAILS/ICONS */
.contact-details,
.contact-links {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 18px;
}
.contact-links a,
.contact-details a {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--color-primary);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  padding: 7px 13px;
  background: var(--color-accent);
  border-radius: 24px;
  transition: background var(--transition-quick), color var(--transition-quick);
}
.contact-links a:hover {
  background: var(--color-gold);
  color: var(--color-white);
}
.contact-details img, .contact-links img, .footer-contact img {
  width: 23px;
  height: 23px;
  margin-right: 5px;
  object-fit: contain;
}

.map-placeholder {
  margin-top: 16px;
  background: #ecebeb;
  color: #aaa087;
  border-radius: var(--box-radius);
  padding: 18px 20px;
  font-style: italic;
  font-size: 1.01rem;
}

/* ---- BUTTONS ---- */
.btn-primary:active {
  background: #dfbe63;
}
button, .btn-primary {
  transition: background var(--transition-quick), color var(--transition-quick), box-shadow var(--transition-quick), transform var(--transition-quick);
}

/* ---- COOKIE CONSENT BANNER ---- */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 3000;
  background: rgba(34,49,78,0.98);
  padding: 24px 22px;
  color: var(--color-white);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px;
  box-shadow: 0 -2px 30px 0 rgba(34,49,78,0.15);
  font-family: var(--font-body);
  font-size: 1rem;
  animation: bannerSlideIn 0.6s ease;
}
@keyframes bannerSlideIn {
  from { transform: translateY(100%);} to {transform: translateY(0);}
}
.cookie-banner .cookie-msg {
  flex: 1 1 240px;
}
.cookie-banner .cookie-actions {
  display: flex;
  gap: 16px;
}
.cookie-banner .btn-cookie {
  border-radius: 30px;
  background: var(--color-gold);
  color: var(--color-white);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  padding: 9px 22px;
  box-shadow: 0 2px 8px rgba(34,49,78,0.10);
  transition: all var(--transition-quick);
}
.cookie-banner .btn-cookie:hover,
.cookie-banner .btn-cookie:focus {
  background: #a68741;
  color: var(--color-white);
}
.cookie-banner .btn-secondary-cookie {
  background: var(--color-white);
  color: var(--color-primary);
  border-radius: 30px;
  border: 1.5px solid var(--color-gold);
  padding: 9px 22px;
  font-weight: 700;
  font-family: var(--font-display);
  font-size: 1rem;
  margin-right: 8px;
  transition: background var(--transition-quick), color var(--transition-quick);
}
.cookie-banner .btn-secondary-cookie:hover,
.cookie-banner .btn-secondary-cookie:focus {
  background: var(--color-gold);
  color: var(--color-white);
}

/* ---- COOKIE CONSENT MODAL ---- */
.cookie-modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(34,49,78,0.67);
  z-index: 4000;
  display: flex;
  justify-content: center;
  align-items: center;
  animation: fadeIn 0.23s;
}
@keyframes fadeIn {
  from { opacity: 0;} to {opacity: 1;}
}
.cookie-modal {
  background: var(--color-white);
  color: var(--color-primary);
  border-radius: var(--box-radius);
  box-shadow: 0 8px 48px rgba(34,49,78,0.23);
  padding: 38px 32px 32px 28px;
  min-width: 320px;
  max-width: 96vw;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.cookie-modal h3 {
  font-size: 1.25rem;
  color: var(--color-primary);
  fontWeight: 700;
  margin-bottom: 0.9em;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 14px;
}
.cookie-category input[type=checkbox],
.cookie-category input[type=radio] {
  accent-color: var(--color-gold);
  width: 19px; height: 19px;
}
.cookie-modal-actions {
  display: flex;
  gap: 14px;
  margin-top: 17px;
}
.cookie-modal .btn-cookie {
  padding: 8px 18px;
}
.cookie-modal-close {
  position: absolute;
  top: 20px; right: 28px;
  font-size: 2rem;
  color: var(--color-gold);
  background: none;
  border: none;
  cursor: pointer;
  transition: color var(--transition-quick);
}
.cookie-modal-close:hover,.cookie-modal-close:focus {
  color: var(--color-primary);
}

/* --- FORM & INPUTS --- */
input[type="search"],input[type="text"],input[type="email"],input[type="tel"],textarea {
  font-family: var(--font-body);
  padding: 12px 15px;
  font-size: 1rem;
  border-radius: 8px;
  border: 1.4px solid var(--color-border);
  background: var(--color-accent);
  transition: border-color var(--transition-quick);
}
input[type="search"]:focus,
input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
textarea:focus {
  border-color: var(--color-gold);
  outline: none;
}
input[type="search"] {
  width: 100%;
  margin: 16px 0 0 0;
}

/* --- FOOTER --- */
footer {
  background: var(--color-primary);
  color: var(--color-white);
  padding: 40px 0 28px 0;
}
footer .container {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding-left: 20px;
  padding-right: 20px;
}
footer nav {
  display: flex;
  flex-direction: column;
  gap: 11px;
}
footer nav a {
  color: var(--color-white);
  font-weight: 600;
  font-size: 1rem;
  font-family: var(--font-display);
  letter-spacing: 0.01em;
  opacity: 0.94;
  transition: color var(--transition-quick), opacity var(--transition-quick);
}
footer nav a:hover,footer nav a:focus {
  color: var(--color-gold);
  opacity: 1;
}
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.98rem;
  color: var(--color-white);
  font-family: var(--font-body);
}
.footer-logo img {
  width: 54px;
  height: auto;
}
@media (max-width: 991px) {
  footer .container {
    flex-direction: column;
    gap: 18px;
    align-items: flex-start;
  }
  .footer-logo {
    margin-top: 13px;
  }
}

/* --- RESPONSIVE BREAKPOINTS --- */
@media (max-width: 991px) {
  .feature-grid {
    flex-direction: column;
    gap: 18px;
  }
  .testimonials {
    flex-direction: column;
    gap: 15px;
  }
  .blog-teasers {
    gap: 11px;
  }
  .faq-list {
    gap: 12px;
  }
  .section {
    margin-bottom: 40px;
    padding: 28px 8px;
  }
}
@media (max-width: 768px) {
  .content-wrapper {
    max-width: 97vw;
    padding: 0 2px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
  }
  .feature-grid > div {
    min-width: 100%;
    max-width: 100%;
  }
  .card-container,
  .card-grid,
  .content-grid {
    flex-direction: column;
    gap: 15px;
  }
  .testimonials {
    gap: 11px;
  }
}
@media (max-width: 600px) {
  header .container {
    padding-left: 7px;
    padding-right: 7px;
  }
  .container {
    padding-left: 6px;
    padding-right: 6px;
  }
  section {
    padding: 14px 3px;
    margin-bottom: 22px;
  }
  .blog-teasers li, .faq-list > div, .testimonial-card {
    padding: 13px 10px;
    font-size: 0.98rem;
  }
  .cookie-banner {
    padding: 12px 8px;
    flex-direction: column;
    gap: 11px;
    font-size: 0.98rem;
  }
  .cookie-banner .cookie-actions {
    gap: 8px;
  }
  .cookie-modal {
    padding: 15px 8px 14px 8px;
    min-width: 80vw;
    max-width: 99vw;
  }
  .cookie-modal h3 {
    font-size: 1.05rem;
  }
  .timeline li {
    padding-left: 10px;
    font-size: 0.97em;
  }
}

/* --- TRANSITIONS AND MICRO-INTERACTIONS --- */
.feature-grid > div, .card, .testimonial-card, .blog-teasers li, .faq-list > div, .feature-item {
  transition: box-shadow var(--transition-quick), transform var(--transition-quick), border var(--transition-quick);
}
.feature-grid > div:hover, .card:hover, .testimonial-card:hover, .blog-teasers li:hover {
  transform: translateY(-2px) scale(1.01);
  box-shadow: 0 8px 36px 0 rgba(183,154,91,.13);
}

/* --- UTILITY CLASSES --- */
.text-center { text-align: center !important; }
.w100 { width: 100% !important; }
.mb-0 { margin-bottom: 0 !important; }

/* ---- MINIMUM CARD SPACING ENFORCEMENT ---- */
.card-container > *, .card-grid > *, .feature-grid > *, .testimonials > *, .blog-teasers > * {
  margin-bottom: 20px !important;
}

/* --- OVERWRITES for some elements --- */
ul li {
  padding-left: 0;
}
li img {
  vertical-align: middle;
  margin-right: 7px;
  width: 22px;
  height: 22px;
}

/* ---- SCROLLBAR for LUXURY ---- */
/* Modern browsers only for visual luxury touch */
::-webkit-scrollbar {
  width: 10px;
  background: var(--color-accent);
}
::-webkit-scrollbar-thumb {
  background: var(--color-gold);
  border-radius: 7px;
}

/* --- Z-INDEX LAYERS --- */
header { z-index: 1010; }
.mobile-menu { z-index: 1200; }
.cookie-modal-overlay { z-index: 4000; }
.cookie-banner { z-index: 3000; }

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