/* --------------------------------------------------
   MustaChatt Luxury Premium Style CSS
   -------------------------------------------------- */
@import url('https://fonts.googleapis.com/css?family=Montserrat:700,600,400&display=swap');
@import url('https://fonts.googleapis.com/css?family=Roboto:400,500,700&display=swap');

:root {
  --color-primary: #1B263B;
  --color-secondary: #4ECDC4;
  --color-accent: #F7FFF7;
  --color-gold: #C9A14D;
  --color-gold-dark: #B08D36;
  --color-bg: #F5F6FA;
  --color-bg-dark: #232A34;
  --color-text: #232323;
  --color-text-light: #F7FFF7;
  --color-muted: #8A8A8A;
  --shadow-card: 0 4px 24px 0 rgba(27,38,59,0.08);
  --shadow-hover: 0 8px 32px 0 rgba(27,38,59,0.16);
  --radius: 18px;
  --radius-btn: 28px;
  --transition: all 0.25s cubic-bezier(.4,0,.2,1);
  --font-display: 'Montserrat', Arial, sans-serif;
  --font-body: 'Roboto', Arial, sans-serif;
  --header-height: 80px;
  --z-mobile-menu: 1000;
  --z-cookie: 2000;
}

html {
  box-sizing: border-box;
  font-size: 16px;
  scroll-behavior: smooth;
}
*, *:before, *:after {
  box-sizing: inherit;
}

body {
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  margin: 0;
  min-height: 100vh;
  letter-spacing: 0.01em;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--color-primary);
  margin-top: 0;
  margin-bottom: 0.6em;
  font-weight: 700;
  letter-spacing: 0.01em;
}
h1 {
  font-size: 2.4rem;
  line-height: 1.1;
  margin-bottom: 0.7em;
}
h2 {
  font-size: 1.8rem;
  margin-bottom: 0.6em;
}
h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5em;
}
h4, h5, h6 {
  font-size: 1.1rem;
  margin-bottom: 0.4em;
}
p, ul, ol, address {
  margin-top: 0;
  margin-bottom: 1.2em;
  color: var(--color-text);
  font-size: 1rem;
}
strong {
  font-weight: 700;
  color: var(--color-primary);
}
a {
  color: var(--color-secondary);
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: var(--color-gold);
  text-decoration: underline;
}

/* Layout Containers */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}
.content-wrapper {
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--color-accent);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  position: relative;
}

/* Cards & Grids */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  margin-bottom: 20px;
  position: relative;
  padding: 32px 24px;
  transition: box-shadow var(--transition), transform var(--transition);
}
.card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px) scale(1.02);
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
}

.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;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  margin-bottom: 20px;
  border-left: 6px solid var(--color-gold);
  color: var(--color-primary);
  font-size: 1.1rem;
  transition: box-shadow var(--transition), border-color var(--transition);
}
.testimonial-card:hover {
  box-shadow: var(--shadow-hover);
  border-left: 6px solid var(--color-gold-dark);
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* Feature/Product/Team Grids (custom for each page) */
.feature-grid, .product-cards, .product-grid, .gadget-grid, .solution-grid, .team-grid, .blog-post-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}
.feature-grid > div, .product-cards > div, .product-grid > div, .gadget-grid > div, .solution-grid > div, .team-grid > div, .blog-post-list > div {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 28px 20px;
  flex: 1 1 260px;
  min-width: 260px;
  max-width: 340px;
  margin-bottom: 20px;
  border-top: 3px solid var(--color-gold);
  transition: box-shadow var(--transition), border-color var(--transition);
}
.feature-grid > div:hover, .product-cards > div:hover, .product-grid > div:hover, .gadget-grid > div:hover, .solution-grid > div:hover, .team-grid > div:hover, .blog-post-list > div:hover {
  box-shadow: var(--shadow-hover);
  border-top: 3px solid var(--color-gold-dark);
}

/* Category/Blog/FAQ Lists */
.category-list ul, .blog-categories ul, .faq-list {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  list-style: none;
  padding: 0;
  margin: 0 0 20px 0;
}
.category-list li, .blog-categories li, .faq-list li {
  background: #fff;
  border-radius: var(--radius-btn);
  padding: 10px 22px;
  color: var(--color-primary);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  box-shadow: 0 2px 8px 0 rgba(27,38,59,0.06);
  margin-bottom: 0;
}

/* Buttons */
.cta-btn, .btn, .cookie-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(90deg, var(--color-gold) 0%, var(--color-gold-dark) 100%);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  border: none;
  border-radius: var(--radius-btn);
  padding: 14px 38px;
  margin-top: 10px;
  margin-bottom: 10px;
  box-shadow: 0 2px 12px 0 rgba(201,161,77,0.08);
  cursor: pointer;
  transition: background var(--transition), box-shadow var(--transition), transform var(--transition);
  text-decoration: none;
  letter-spacing: 0.02em;
}
.cta-btn:hover, .btn:hover, .cookie-btn:hover {
  background: linear-gradient(90deg, var(--color-gold-dark) 0%, var(--color-gold) 100%);
  color: #fff;
  box-shadow: 0 4px 24px 0 rgba(201,161,77,0.18);
  transform: translateY(-2px) scale(1.03);
}

/* Header & Navigation */
header {
  background: #fff;
  box-shadow: 0 2px 12px 0 rgba(27,38,59,0.06);
  position: sticky;
  top: 0;
  z-index: 900;
  min-height: var(--header-height);
}
nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}
nav > a img {
  height: 44px;
  width: auto;
  display: block;
}
nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  list-style: none;
  margin: 0;
  padding: 0;
}
nav ul li {
  margin: 0;
}
nav ul li a {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  color: var(--color-primary);
  padding: 8px 18px;
  border-radius: var(--radius-btn);
  transition: background var(--transition), color var(--transition);
  position: relative;
}
nav ul li a:hover, nav ul li a:focus {
  background: var(--color-gold);
  color: #fff;
}

/* Mobile Menu */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2.2rem;
  color: var(--color-gold);
  cursor: pointer;
  margin-left: 18px;
  transition: color var(--transition), transform var(--transition);
  z-index: var(--z-mobile-menu);
}
.mobile-menu-toggle:active {
  color: var(--color-gold-dark);
  transform: scale(1.1);
}
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(27,38,59,0.98);
  z-index: var(--z-mobile-menu);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-start;
  transform: translateX(-100%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.4s cubic-bezier(.4,0,.2,1), opacity 0.3s;
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu-close {
  background: none;
  border: none;
  color: var(--color-gold);
  font-size: 2.2rem;
  margin: 24px 32px 0 0;
  cursor: pointer;
  transition: color var(--transition), transform var(--transition);
}
.mobile-menu-close:hover {
  color: var(--color-gold-dark);
  transform: scale(1.1);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
  margin: 60px 0 0 40px;
}
.mobile-nav a {
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  padding: 12px 0;
  border-bottom: 2px solid transparent;
  transition: color var(--transition), border-color var(--transition);
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: var(--color-gold);
  border-bottom: 2px solid var(--color-gold);
}

/* Footer */
footer {
  background: var(--color-primary);
  color: var(--color-text-light);
  padding: 40px 0 0 0;
  margin-top: 60px;
}
footer .container {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: flex-start;
}
footer ul {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  list-style: none;
  padding: 0;
  margin: 0 0 10px 0;
}
footer ul li a {
  color: var(--color-gold);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  transition: color var(--transition);
}
footer ul li a:hover {
  color: var(--color-secondary);
}
footer address {
  font-style: normal;
  color: var(--color-text-light);
  font-size: 1rem;
  line-height: 1.7;
}
footer address a {
  color: var(--color-secondary);
  text-decoration: underline;
}

/* Blog Highlight & Featured */
.blog-highlight {
  background: linear-gradient(90deg, var(--color-gold) 0%, var(--color-gold-dark) 100%);
  color: #fff;
  border-radius: var(--radius);
  padding: 32px 24px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-card);
}
.blog-highlight h2, .blog-highlight p {
  color: #fff;
}
.featured-articles {
  background: #fff;
  border-radius: var(--radius);
  padding: 24px 20px;
  box-shadow: var(--shadow-card);
  margin-top: 24px;
}

/* Cookie Consent Banner */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: var(--z-cookie);
  background: #fff;
  color: var(--color-primary);
  box-shadow: 0 -2px 24px 0 rgba(27,38,59,0.12);
  padding: 28px 20px 24px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  border-top: 4px solid var(--color-gold);
  animation: cookieSlideIn 0.6s cubic-bezier(.4,0,.2,1);
}
@keyframes cookieSlideIn {
  from { transform: translateY(100%); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}
.cookie-banner p {
  margin: 0 0 8px 0;
  color: var(--color-primary);
  font-size: 1rem;
}
.cookie-banner .cookie-btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 6px;
}
.cookie-btn {
  background: linear-gradient(90deg, var(--color-gold) 0%, var(--color-gold-dark) 100%);
  color: #fff;
  border: none;
  border-radius: var(--radius-btn);
  padding: 10px 28px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: background var(--transition), box-shadow var(--transition), transform var(--transition);
}
.cookie-btn.reject {
  background: #fff;
  color: var(--color-gold);
  border: 2px solid var(--color-gold);
}
.cookie-btn.reject:hover {
  background: var(--color-gold);
  color: #fff;
}
.cookie-btn.settings {
  background: var(--color-secondary);
  color: var(--color-primary);
}
.cookie-btn.settings:hover {
  background: var(--color-gold);
  color: #fff;
}

/* Cookie Modal */
.cookie-modal-overlay {
  position: fixed;
  z-index: calc(var(--z-cookie) + 1);
  left: 0; top: 0; right: 0; bottom: 0;
  background: rgba(27,38,59,0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.cookie-modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}
.cookie-modal {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 8px 32px 0 rgba(27,38,59,0.18);
  padding: 36px 28px 28px 28px;
  min-width: 320px;
  max-width: 95vw;
  display: flex;
  flex-direction: column;
  gap: 18px;
  animation: modalFadeIn 0.4s cubic-bezier(.4,0,.2,1);
}
@keyframes modalFadeIn {
  from { transform: scale(0.95); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}
.cookie-modal h2 {
  font-size: 1.3rem;
  color: var(--color-primary);
  margin-bottom: 8px;
}
.cookie-modal .cookie-category {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 12px;
}
.cookie-modal .cookie-category label {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-primary);
  font-weight: 500;
}
.cookie-modal .cookie-toggle {
  width: 44px;
  height: 24px;
  border-radius: 12px;
  background: var(--color-muted);
  position: relative;
  cursor: pointer;
  transition: background var(--transition);
  margin-left: 8px;
}
.cookie-modal .cookie-toggle input {
  display: none;
}
.cookie-modal .cookie-toggle .slider {
  position: absolute;
  left: 2px;
  top: 2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  transition: left var(--transition), background var(--transition);
  box-shadow: 0 1px 4px 0 rgba(27,38,59,0.08);
}
.cookie-modal .cookie-toggle input:checked + .slider {
  left: 22px;
  background: var(--color-gold);
}
.cookie-modal .cookie-toggle input:checked ~ .slider {
  background: var(--color-gold);
}
.cookie-modal .cookie-category.essential .cookie-toggle {
  background: var(--color-gold);
  cursor: not-allowed;
}
.cookie-modal .cookie-category.essential label {
  color: var(--color-gold-dark);
}
.cookie-modal .cookie-category.essential .cookie-toggle .slider {
  background: var(--color-gold-dark);
}
.cookie-modal .cookie-modal-actions {
  display: flex;
  gap: 14px;
  margin-top: 10px;
}

/* Responsive Design */
@media (max-width: 1200px) {
  .container {
    max-width: 1000px;
  }
}
@media (max-width: 900px) {
  .container {
    max-width: 760px;
  }
  .feature-grid > div, .product-cards > div, .product-grid > div, .gadget-grid > div, .solution-grid > div, .team-grid > div, .blog-post-list > div {
    min-width: 220px;
    max-width: 100%;
    flex: 1 1 220px;
  }
}
@media (max-width: 768px) {
  html {
    font-size: 15px;
  }
  nav ul {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
  .container {
    max-width: 98vw;
    padding-left: 10px;
    padding-right: 10px;
  }
  .section {
    padding: 28px 8px;
    margin-bottom: 36px;
  }
  .content-wrapper {
    gap: 16px;
  }
  .feature-grid, .product-cards, .product-grid, .gadget-grid, .solution-grid, .team-grid, .blog-post-list {
    flex-direction: column;
    gap: 16px;
  }
  .feature-grid > div, .product-cards > div, .product-grid > div, .gadget-grid > div, .solution-grid > div, .team-grid > div, .blog-post-list > div {
    min-width: 0;
    max-width: 100%;
    width: 100%;
    margin-bottom: 12px;
    padding: 18px 10px;
  }
  .category-list ul, .blog-categories ul, .faq-list {
    flex-direction: column;
    gap: 10px;
  }
  .testimonial-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 14px 10px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 16px;
  }
  .cookie-modal {
    min-width: 0;
    padding: 18px 8px 14px 8px;
  }
}
@media (max-width: 480px) {
  html {
    font-size: 14px;
  }
  h1 {
    font-size: 1.5rem;
  }
  h2 {
    font-size: 1.15rem;
  }
  .cta-btn, .btn, .cookie-btn {
    padding: 10px 16px;
    font-size: 1rem;
  }
}

/* Micro-interactions & Transitions */
.card, .testimonial-card, .feature-grid > div, .product-cards > div, .product-grid > div, .gadget-grid > div, .solution-grid > div, .team-grid > div, .blog-post-list > div {
  transition: box-shadow var(--transition), border-color var(--transition), transform var(--transition);
}
.cta-btn, .btn, .cookie-btn {
  transition: background var(--transition), color var(--transition), box-shadow var(--transition), transform var(--transition);
}
nav ul li a, .mobile-nav a {
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}

/* Utility Classes */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-gold { color: var(--color-gold); }
.bg-gold { background: var(--color-gold); color: #fff; }
.bg-primary { background: var(--color-primary); color: #fff; }
.bg-accent { background: var(--color-accent); color: var(--color-primary); }

/* Hide visually but keep accessible */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

/* Remove number input arrows for cookie toggles */
input[type=number]::-webkit-inner-spin-button, input[type=number]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
input[type=number] {
  -moz-appearance: textfield;
}

/* End of MustaChatt Luxury Premium CSS */
