/* ==== 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,
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;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure,
footer, header, hgroup, main, menu, nav, section {
  display: block;
}
body {
  line-height: 1.6;
  background: #f6f7f9;
  color: #212837;
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
ul, ol {
  margin-left: 24px;
}
a {
  color: #212837;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover {
  color: #A54220;
}
button, input, select {
  font-family: inherit;
  font-size: 1rem;
  outline: none;
}
strong, b {
  font-weight: 700;
}

/* ==== BRAND TYPOGRAPHY ==== */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Merriweather', Georgia, 'Times New Roman', serif;
  color: #212837;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 16px;
}
h1 {
  font-size: 2.5rem;
  letter-spacing: -1px;
  margin-bottom: 24px;
}
h2 {
  font-size: 2rem;
  margin-bottom: 20px;
}
h3 {
  font-size: 1.3rem;
}
h4 {
  font-size: 1.1rem;
}
p, li {
  color: #212837;
  font-size: 1rem;
}

blockquote {
  font-family: 'Merriweather', Georgia, serif;
  font-style: italic;
  font-size: 1.09rem;
  color: #212837;
  background: #D8D9DD;
  padding: 18px 28px;
  border-left: 4px solid #A54220;
  margin-bottom: 16px;
  border-radius: 8px;
}
cite {
  display: block;
  font-size: 0.97rem;
  color: #666a74;
  margin-top: 6px;
  font-style: italic;
}

/* ==== GLOBAL SPACING & CONTAINERS ==== */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.text-section {
  align-items: flex-start;
  max-width: 810px;
}
@media (min-width: 900px) {
  .content-wrapper.text-section {
    margin-left: 12px;
    margin-right: 12px;
  }
}

/* ==== HEADER & NAVIGATION ==== */
header {
  background: #ffffff;
  box-shadow: 0 2px 8px 0 rgba(33,40,55,0.04);
  position: relative;
  z-index: 30;
}
.main-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 0;
}
.logo-link img {
  height: 42px;
}

.main-nav {
  display: flex;
  gap: 28px;
  align-items: center;
}
.main-nav a {
  font-weight: 600;
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 1rem;
  padding: 8px 0;
  position: relative;
}
.main-nav a:hover {
  color: #A54220;
}
.main-nav a.active {
  color: #A54220;
  border-bottom: 2px solid #A54220;
}

.btn-primary {
  background: #212837;
  color: #fff;
  font-family: 'Open Sans', Arial, sans-serif;
  font-weight: 700;
  font-size: 1rem;
  padding: 11px 32px;
  border-radius: 32px;
  border: none;
  box-shadow: 0 2px 10px 0 rgba(33,40,55,0.07);
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
  cursor: pointer;
  display: inline-block;
  margin-left: 16px;
}
.btn-primary:hover, .btn-primary:focus {
  background: #A54220;
  color: #fff;
  box-shadow: 0 4px 18px 0 rgba(33,40,55,0.11);
}

.mobile-menu-toggle {
  display: none;
  background: #212837;
  color: #fff;
  border: none;
  font-size: 2.1rem;
  border-radius: 6px;
  padding: 4px 14px;
  cursor: pointer;
  margin-left: 8px;
  z-index: 51;
}

/* ==== MOBILE MENU ==== */
.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: 92vw;
  max-width: 350px;
  height: 100vh;
  background: #f7f8fb;
  box-shadow: -8px 0 28px rgba(33,40,55,0.18);
  transform: translateX(100%);
  transition: transform 0.36s cubic-bezier(.78,.07,.32,1.19);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 32px 0 0 0;
  overflow-y: auto;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  position: absolute;
  top: 24px;
  right: 24px;
  background: none;
  border: none;
  font-size: 2.3rem;
  color: #212837;
  cursor: pointer;
  z-index: 1010;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: flex-start;
  padding: 46px 32px 32px 32px;
}
.mobile-nav a {
  color: #212837;
  font-weight: 600;
  font-size: 1.1rem;
  padding: 10px 0;
  transition: color 0.18s;
  border-bottom: 1px solid #e1e3e8;
  width: 100%;
}
.mobile-nav a:last-child {
  border-bottom: none;
}
.mobile-nav a:hover {
  color: #A54220;
}

@media (max-width: 1024px) {
  .main-nav {
    display: none;
  }
  .btn-primary {
    margin-left: 0;
  }
  .mobile-menu-toggle {
    display: inline-block;
  }
}
@media (min-width: 1025px) {
  .mobile-menu {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: none !important;
  }
}

/* ==== HERO & FEATURE SECTIONS ==== */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: space-between;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: #fff;
  border-radius: 12px;
  padding: 32px 24px;
  box-shadow: 0 4px 24px 0 rgba(33,40,55,0.045);
  flex: 1 1 260px;
  min-width: 220px;
  max-width: 270px;
  margin-bottom: 20px;
  border: 1px solid #f1f1f3;
  transition: box-shadow 0.2s, border 0.18s;
}
.feature-item img {
  width: 40px;
  height: 40px;
}
.feature-item:hover {
  box-shadow: 0 7px 32px 0 rgba(33,40,55,0.10);
  border: 1px solid #A54220;
}

/* ==== REVIEW & PICK CARD LAYOUTS ==== */
.review-snippets, .review-grid, .classic-grid, .top-picks-grid, .team-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}
.review-card, .classic-item, .pick-card, .team-member-bio {
  background: #fff;
  border-radius: 10px;
  padding: 22px 24px 20px 24px;
  box-shadow: 0 3px 16px 0 rgba(33,40,55,0.07);
  margin-bottom: 20px;
  flex: 1 1 280px;
  max-width: 31%;
  display: flex;
  flex-direction: column;
  gap: 10px;
  border: 1px solid #edeef0;
  position: relative;
  transition: box-shadow 0.19s, border 0.17s;
}
.review-card:hover, .classic-item:hover, .pick-card:hover, .team-member-bio:hover {
  border: 1px solid #A54220;
  box-shadow: 0 8px 38px 0 rgba(33,40,55,0.13);
}
.review-card a, .classic-item a, .pick-card a {
  color: #A54220;
  font-weight: 700;
  margin-top: 6px;
  font-size: 1rem;
  text-decoration: underline;
  display: inline-block;
}

.category-tag, .genre-tag {
  display: inline-block;
  background: #D8D9DD;
  color: #212837;
  font-size: 0.94rem;
  font-weight: 700;
  border-radius: 16px;
  padding: 4px 14px;
  margin-right: 8px;
  margin-top: 2px;
  margin-bottom: 8px;
}

.top-pick-list {
  list-style-type: disc;
  margin: 0 0 24px 22px;
  color: #212837;
}
.process-steps {
  margin-left: 28px;
  color: #212837;
}
.process-steps li {
  margin-bottom: 8px;
}

.team-grid {
  gap: 24px;
}
.team-member-bio ul {
  margin-left: 16px;
  margin-bottom: 0;
}

/* ==== TESTIMONIALS ====*/
.testimonial-card {
  display: flex;
  align-items: center;
  background: #f4f6fa;
  gap: 20px;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 3px 16px 0 rgba(33,40,55,0.055);
  margin-bottom: 20px;
  border-left: 5px solid #A54220;
  min-width: 220px;
  max-width: 800px;
}
.testimonial-card blockquote {
  background: none;
  border: none;
  color: #212837;
  font-size: 1.01rem;
  padding: 0;
  margin: 0;
}
.testimonial-card cite {
  margin-left: 12px;
  color: #212837;
  font-size: 0.96rem;
}

/* ==== FILTER & SEARCH BARS ==== */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin-top: 16px;
  margin-bottom: 4px;
  align-items: center;
  color: #514e5d;
  font-size: 1rem;
}
.search-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 16px 0;
}
.search-bar label {
  font-weight: 600;
  color: #212837;
  margin-right: 6px;
}
.search-bar input {
  background: #fff;
  border: 1px solid #C5C6CA;
  border-radius: 20px;
  padding: 10px 18px;
  font-size: 1rem;
  color: #212837;
  transition: border 0.18s;
}
.search-bar input:focus {
  border: 1.5px solid #A54220;
}

/* ==== CONTACT DETAILS ==== */
.contact-details {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 18px 0 22px 0;
}
.contact-details img {
  width:18px;
  height:18px;
  margin-right: 6px;
  vertical-align: text-bottom;
  display: inline-block;
}
.office-hours {
  margin-left: 18px;
  margin-bottom: 18px;
}

/* ==== FOOTER ==== */
footer {
  background: #212837;
  color: #fff;
  padding: 48px 0 0 0;
}
.footer-wrapper {
  display: flex;
  flex-direction: column;
  gap: 30px;
  align-items: center;
  justify-content: center;
  padding-bottom: 18px;
}
.footer-nav {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  justify-content: center;
}
.footer-nav a {
  color: #fff;
  opacity: 0.92;
  font-weight: 500;
  font-size: 1rem;
  transition: color 0.15s, opacity 0.18s;
}
.footer-nav a:hover {
  color: #A54220;
  opacity: 1;
}
.footer-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  font-size: 0.96rem;
  color: #E1E3EA;
  align-items: center;
  justify-content: center;
}
.footer-contact img {
  width: 17px;
  height: 17px;
  margin-right: 7px;
}
.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  color: #fff;
  opacity: 0.88;
  font-size: 0.97rem;
}
.footer-brand img {
  height: 30px;
}
@media (max-width: 600px) {
  .footer-wrapper {
    gap: 18px;
  }
  .footer-contact {
    gap: 8px;
    flex-direction: column;
    font-size: 0.95rem;
    align-items: flex-start;
  }
}

/* ==== COOKIE CONSENT BANNER ==== */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  max-width: 100vw;
  background: #fff;
  border-top: 3px solid #212837;
  box-shadow: 0 -3px 14px rgba(33,40,55,0.13);
  padding: 22px 10px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: flex-start;
  z-index: 1200;
  transition: transform 0.33s;
  font-size: 1.04rem;
}
.cookie-banner.hidden {
  transform: translateY(150%);
}
.cookie-banner strong {
  color: #212837;
}
.cookie-banner-buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.cookie-btn {
  background: #212837;
  color: #fff;
  border: none;
  padding: 8px 22px;
  border-radius: 24px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  margin-right: 10px;
  transition: background 0.18s, color 0.18s;
}
.cookie-btn.reject {
  background: #D8D9DD;
  color: #212837;
}
.cookie-btn.settings {
  background: #fff;
  border: 1.5px solid #212837;
  color: #212837;
}
.cookie-btn:hover,
.cookie-btn:focus {
  background: #A54220;
  color: #fff;
  border-color: #A54220;
}
.cookie-btn.reject:hover {
  background: #A54220;
  color: #fff;
}

/* ==== COOKIE PREFERENCE MODAL ==== */
.cookie-modal-backdrop {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(33,40,55,0.35);
  z-index: 1300;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.33s;
  opacity: 1;
}
.cookie-modal.closed {
  display: none;
}
.cookie-modal {
  background: #fff;
  padding: 40px 28px 30px 28px;
  border-radius: 16px;
  box-shadow: 0 9px 48px rgba(33,40,55,0.18);
  max-width: 410px;
  width: 92vw;
  display: flex;
  flex-direction: column;
  gap: 22px;
  z-index: 1320;
  animation: modalFadeIn 0.36s cubic-bezier(.5,.14,.26,1.19);
}
@keyframes modalFadeIn {
  0% { transform: scale(0.92) translateY(20px); opacity: 0; }
  100% { transform: scale(1) translateY(0); opacity: 1; }
}
.cookie-modal h2 {
  margin-top: 0;
  font-size: 1.33rem;
  margin-bottom: 12px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  font-size: 1.04rem;
}
.cookie-toggle {
  width: 38px;
  height: 22px;
  background: #D8D9DD;
  border-radius: 16px;
  position: relative;
  cursor: pointer;
  border: none;
  outline: none;
  transition: background 0.2s;
}
.cookie-toggle.enabled {
  background: #A54220;
}
.cookie-toggle-knob {
  position: absolute;
  left: 3px;
  top: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1.5px 6px rgba(33,40,55,0.09);
  transition: left 0.22s;
}
.cookie-toggle.enabled .cookie-toggle-knob {
  left: 18px;
}
.cookie-modal-actions {
  align-self: flex-end;
  display: flex;
  gap: 10px;
}

/* ==== VISUAL EFFECTS & INTERACTIONS ==== */
a, button, .btn-primary, .feature-item, .review-card, .pick-card, .classic-item, .search-bar input, .main-nav a {
  transition: color 0.17s, background 0.18s, box-shadow 0.19s, border 0.18s;
}

/* ==== RESPONSIVE DESIGN (MOBILE-FIRST) ==== */
@media (max-width: 900px) {
  .container {
    max-width: 98vw;
  }
  .feature-grid,
  .review-snippets, .review-grid, .classic-grid, .top-picks-grid, .team-grid {
    flex-direction: column;
    gap: 20px;
  }
  .review-card, .classic-item, .pick-card, .team-member-bio {
    max-width: 100%;
    flex: 1 1 100%;
  }
  .footer-wrapper {
    flex-direction: column;
    gap: 14px;
  }
}
@media (max-width: 768px) {
  .main-header {
    flex-direction: row;
    gap: 8px;
    padding: 13px 0;
  }
  .logo-link img {
    height: 34px;
  }
  h1 {
    font-size: 1.45rem;
    margin-bottom: 16px;
  }
  h2 {
    font-size: 1.2rem;
    margin-bottom: 14px;
  }
  .content-wrapper, .content-wrapper.text-section {
    gap: 16px;
    padding: 0;
    margin-left: 0;
    margin-right: 0;
  }
  .section {
    margin-bottom: 38px;
    padding: 24px 6px;
  }
  .feature-item {
    padding: 18px 12px;
    max-width: 100%;
    min-width: 0;
  }
  .testimonial-card {
    flex-direction: column;
    padding: 15px;
    min-width: 0;
    max-width: 100vw;
    gap: 6px;
  }
}
@media (max-width: 425px) {
  h1 { font-size: 1.13rem; }
  h2 { font-size: 1.01rem; }
  .btn-primary { padding: 8px 16px; font-size: 0.98rem; }
  .feature-item { padding: 9px 7px; font-size: 0.98rem; }
}

/* ==== UTILITY & FLEX CLASSES ==== */
.card-container, .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) {
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }
}
.card {
  margin-bottom: 20px;
  position: relative;
}

/**** Remove absolute/overlap risks from cards ****/
.card, .card-container > * {
  position: relative;
  z-index: 1;
}

/* ==== Z-INDEX SAFETY ON OVERLAYS ==== */
.cookie-modal-backdrop, .cookie-modal, .mobile-menu {
  z-index: 2000;
}
.mobile-menu-toggle, .mobile-menu-close {
  z-index: 2100;
}

/* ==== ACCESSIBILITY ==== */
:focus {
  outline: 2px solid #A54220;
  outline-offset: 2px;
  z-index: 6;
}

/* ==== ENSURE MINIMUM SPACING BETWEEN CARDS ==== */
.review-snippets > *, .review-grid > *, .classic-grid > *, .top-picks-grid > *, .feature-grid > *, .team-grid > *, .testimonial-card {
  margin-bottom: 20px;
}

/*********************************************/
/*            END OF STYLE.CSS               */
/*********************************************/
