/* --- CSS RESET & BASE --- */
html {
  box-sizing: border-box;
  font-size: 16px;
}
*, *:before, *:after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}
body {
  background-color: #FAFAFA;
  color: #222;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  min-height: 100vh;
  line-height: 1.6;
  font-size: 16px;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}
img {
  max-width: 100%;
  display: block;
}
a {
  color: #BA945A;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover,
a:focus {
  color: #E3BB6B;
}
ul, ol {
  padding-left: 24px;
}
th, td {
  padding: 8px 12px;
  border-bottom: 1px solid #ede9e3;
}
/* --- COLOR & TYPOGRAPHY VARIABLES (WITH FALLBACKS) --- */
:root {
  --af-primary: #282b32;
  --af-secondary: #fafafa;
  --af-dark: #232426;
  --af-brand-dark: #2C3E50;
  --af-brand-light: #ECF0F1;
  --af-gold: #BA945A;
  --af-gold-light: #EDD6A5;
  --af-gold-dark: #926E32;
  --af-accent: #C45500;
  --af-error: #d7263d;
  --af-success: #26ae60;
  --af-neutral: #ede9e3;
  --af-shadow: rgba(44, 62, 80, 0.05);
  --af-font-display: 'Montserrat', Arial, Helvetica, sans-serif;
  --af-font-body: 'Open Sans', Arial, Helvetica, sans-serif;
}
h1, h2, h3, h4 {
  font-family: var(--af-font-display);
  letter-spacing: 0.01em;
  font-weight: 700;
  color: var(--af-primary);
  margin-bottom: 18px;
  line-height: 1.15;
}
h1 {
  font-size: 2.25rem;
}
h2 {
  font-size: 1.5rem;
}
h3 {
  font-size: 1.15rem;
}
h4 {
  font-size: 1rem;
}
p, ul, ol, li {
  font-size: 1rem;
  color: var(--af-brand-dark);
}
strong, b {
  font-weight: 700;
}
/* --- GENERAL CONTAINER AND SPACING --- */
.container {
  width: 100%;
  max-width: 1200px;
  padding: 0 20px;
  margin: 0 auto;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--af-secondary);
  border-radius: 20px;
  box-shadow: 0 2px 12px var(--af-shadow);
}
/* --- HEADER --- */
header {
  background: var(--af-brand-dark);
  color: #fff;
  width: 100%;
  box-shadow: 0 4px 16px var(--af-shadow);
  position: relative;
}
header .container {
  padding-top: 20px;
  padding-bottom: 20px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
header img {
  max-height: 46px; /* logo */
}
.main-nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 32px;
  font-family: var(--af-font-display);
}
.main-nav a {
  color: #fff;
  font-size: 1rem;
  padding: 4px 0;
  font-weight: 500;
  margin-bottom: 0;
  border-bottom: 2px solid transparent;
  transition: border-color 0.18s, color 0.18s;
}
.main-nav a:hover, .main-nav a:focus {
  color: var(--af-gold);
  border-bottom: 2px solid var(--af-gold);
}
.btn-primary {
  font-family: var(--af-font-display);
  font-weight: 700;
  font-size: 1.1rem;
  background: var(--af-gold);
  color: #fff;
  padding: 12px 36px;
  border-radius: 30px;
  border: none;
  box-shadow: 0 2px 10px var(--af-shadow);
  cursor: pointer;
  letter-spacing: 0.02em;
  transition: background 0.23s, color 0.23s, box-shadow 0.23s;
  border-bottom: 2px solid var(--af-gold-dark);
  display: inline-block;
  outline: none;
  margin-left: 16px;
}
.btn-primary:hover, .btn-primary:focus {
  background: var(--af-gold-dark);
  color: #fffbe6;
  box-shadow: 0 6px 24px var(--af-shadow);
}
/* --- HERO SECTION --- */
.hero {
  background: linear-gradient(128deg, var(--af-secondary) 70%, #f7eedb 100%);
  padding: 64px 0 54px 0;
  margin-bottom: 0;
}
.hero h1 {
  color: var(--af-brand-dark);
  font-size: 2.5rem;
  margin-bottom: 14px;
}
.hero p {
  font-size: 1.25rem;
  color: #5a5343;
  margin-bottom: 32px;
}
.hero .btn-primary {
  margin-top: 20px;
}
/* --- FLEXBOX PATTERNS --- */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 20px var(--af-shadow);
  position: relative;
  flex: 1 1 300px;
  padding: 32px 28px;
  min-width: 280px;
  transition: box-shadow 0.18s, transform 0.18s;
}
.card:hover {
  box-shadow: 0 6px 36px var(--af-shadow);
  transform: translateY(-5px) scale(1.02);
}
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
  width: 100%;
}
.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: 16px;
  background: #fff;
  border-left: 5px solid var(--af-gold);
  padding: 28px 32px;
  margin-bottom: 20px;
  border-radius: 18px;
  box-shadow: 0 2px 16px var(--af-shadow);
  max-width: 480px;
  color: var(--af-dark);
  transition: transform 0.17s, box-shadow 0.17s;
}
.testimonial-card strong {
  color: var(--af-primary);
  font-family: var(--af-font-display);
  font-size: 1.05rem;
}
.testimonial-card:hover {
  box-shadow: 0 8px 38px 2px rgba(44,62,80,0.11);
  transform: scale(1.03);
}
.star-rating img {
  width: 22px;
  height: 22px;
  display: inline-block;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin-top: 20px;
}
.feature-grid > div {
  flex: 1 1 210px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 8px var(--af-shadow);
  padding: 24px 18px;
  min-width: 200px;
  border-left: 3px solid var(--af-gold-light);
  transition: box-shadow 0.13s;
}
.feature-grid > div:hover {
  box-shadow: 0 8px 30px 2px rgba(44,62,80,0.09);
  border-left: 3px solid var(--af-gold);
}
/* --- CATEGORY & CONTENT CARDS --- */
.category-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  font-size: 1.05rem;
  margin-bottom: 14px;
}
.category-filters span {
  color: var(--af-primary);
  font-weight: 700;
}
.category-filters a {
  background: #fff;
  color: var(--af-primary);
  border-radius: 20px;
  padding: 7px 18px;
  border: 1px solid var(--af-gold-light);
  margin-bottom: 7px;
  transition: background 0.18s, color 0.18s, border 0.18s;
}
.category-filters a:hover, .category-filters a:focus {
  background: var(--af-gold-light);
  color: var(--af-accent);
  border: 1px solid var(--af-gold);
}
.review-list, .news-feed {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 10px;
}
.review-list > div,
.news-feed > div {
  background: #fff;
  border-radius: 16px;
  flex: 1 1 260px;
  min-width: 240px;
  box-shadow: 0 1px 8px var(--af-shadow);
  padding: 24px 18px;
  margin-bottom: 20px;
  border-top: 2px solid var(--af-gold-light);
  position: relative;
  transition: box-shadow 0.16s;
}
.review-list > div:hover,
.news-feed > div:hover {
  box-shadow: 0 5px 18px var(--af-shadow);
  border-top: 2.5px solid var(--af-gold);
}
.editor-choice-highlight {
  margin-top: 12px;
  color: var(--af-gold);
  background: var(--af-gold-light);
  padding: 6px 22px 6px 10px;
  border-radius: 14px;
  font-weight: 700;
  font-size: 0.98rem;
  display: flex;
  align-items: center;
  gap: 10px;
}
/* --- TEAM SECTION --- */
.team-members {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin-bottom: 18px;
}
.team-member {
  flex: 1 1 220px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 1px 8px var(--af-shadow);
  padding: 22px 16px;
  min-width: 200px;
  border-left: 3px solid var(--af-gold-light);
  margin-bottom: 20px;
}
.team-member h3 {
  color: var(--af-gold-dark);
  font-size: 1.13rem;
  margin-bottom: 7px;
}
.founder-message {
  background: var(--af-gold-light);
  border-left: 4px solid var(--af-gold);
  border-radius: 14px;
  padding: 18px 18px;
  font-style: italic;
  color: var(--af-dark);
  margin-top: 16px;
}
.founder-message h3 {
  font-size: 1.07rem;
  margin-bottom: 4px;
  color: var(--af-gold-dark);
}
/* --- CTA SECTION --- */
.cta {
  background: var(--af-brand-dark);
  color: #fff;
  padding: 60px 0;
  margin-bottom: 0;
}
.cta .content-wrapper {
  align-items: center;
  text-align: center;
  gap: 20px;
}
.cta h2, .cta h1 {
  color: var(--af-gold);
}
.cta .btn-primary {
  background: var(--af-gold);
  color: #fff;
}
.cta .btn-primary:hover {
  background: var(--af-gold-dark);
}
/* --- SPECIAL DETAILS & TABLES --- */
.service-list ul, .test-process-summary ul, .how-to-articles ul, .trending-topics ul, .test-results-table table {
  margin-bottom: 14px;
}
.service-list li, .how-to-articles li, .trending-topics li, .test-process-summary li, .comparison-highlights li {
  margin-bottom: 11px;
  color: var(--af-brand-dark);
}
.test-results-table table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
  background: #fff;
  color: var(--af-brand-dark);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 10px var(--af-shadow);
}
.test-results-table th {
  background: var(--af-gold-light);
  color: var(--af-gold-dark);
  font-weight: 700;
}
.test-results-table tr:nth-child(even) {
  background: #fbf8f2;
}
.comparison-highlights ul {
  margin-bottom: 0;
}
/* --- MAP, CONTACT, OFFICE HOURS --- */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 1rem;
  color: var(--af-brand-dark);
}
.contact-info div {
  display: flex;
  align-items: center;
  gap: 8px;
}
.map-location, .office-hours {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 1px 8px var(--af-shadow);
  padding: 15px 14px;
  margin-bottom: 18px;
}
.map-location h3, .office-hours h3 {
  color: var(--af-gold-dark);
}
footer {
  background: var(--af-primary);
  color: #ede9e3;
  padding: 44px 0 16px 0;
}
footer .container {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 32px;
  justify-content: space-between;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.98rem;
}
.footer-nav a {
  color: #fdf6e9;
  font-weight: 500;
  transition: color 0.17s;
  margin-bottom: 2px;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: var(--af-gold);
}
footer .contact-info div {
  color: #f6eecb;
  font-size: 0.97rem;
}
footer img {
  max-height: 38px;
  margin-bottom: 15px;
}
/* --- MOBILE NAVIGATION (BURGER) --- */
.mobile-menu-toggle {
  display: none;
  position: absolute;
  top: 28px;
  right: 22px;
  z-index: 101;
  background: var(--af-gold);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  font-size: 2rem;
  align-items: center;
  justify-content: center;
  transition: background 0.19s, color 0.19s;
  box-shadow: 0 1px 8px var(--af-shadow);
  cursor: pointer;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: var(--af-gold-dark);
  color: #fffbe6;
}
.mobile-menu {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(45,44,40,0.98);
  transform: translateX(-100vw);
  z-index: 1100;
  opacity: 0;
  visibility: hidden;
  transition: transform 0.33s cubic-bezier(.77,0,.18,1), opacity 0.31s cubic-bezier(.44,.67,.39,.96);
  padding-top: 34px;
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
  visibility: visible;
}
.mobile-menu-close {
  background: var(--af-gold);
  color: #fff;
  border: none;
  border-radius: 50%;
  font-size: 2em;
  width: 44px;
  height: 44px;
  margin-left: 16px;
  margin-bottom: 22px;
  align-self: flex-end;
  cursor: pointer;
  box-shadow: 0 1px 10px var(--af-shadow);
  transition: background 0.16s, color 0.16s;
  z-index: 1150;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: var(--af-gold-dark);
  color: #fffbe6;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
  margin-top: 28px;
  align-items: flex-start;
  padding-left: 36px;
}
.mobile-nav a {
  font-size: 1.2rem;
  font-family: var(--af-font-display);
  color: #fff;
  font-weight: 700;
  padding: 9px 0;
  transition: color 0.17s;
  border-bottom: 2px solid transparent;
  display: block;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: var(--af-gold);
  border-bottom: 2px solid var(--af-gold);
}
@media (max-width: 1020px) {
  .main-nav {
    gap: 16px;
  }
  .container {
    max-width: 950px;
  }
}
@media (max-width: 900px) {
  header .container,
  .footer .container {
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
  }
}
@media (max-width: 850px) {
  .feature-grid, .team-members, .review-list, .news-feed, .card-container, .content-grid {
    flex-direction: column;
    gap: 22px;
  }
}
@media (max-width: 768px) {
  .section {
    padding: 28px 8px;
    margin-bottom: 32px;
  }
  .container {
    padding: 0 8px;
    max-width: 98vw;
  }
  .content-grid,
  .card-container,
  .feature-grid,
  .team-members,
  .review-list,
  .news-feed {
    flex-direction: column;
    gap: 16px;
  }
  .hero {
    padding: 38px 0 24px;
  }
  .main-nav {
    display: none;
  }
  .btn-primary {
    margin-left: 0;
    padding: 12px 20px;
  }
  .mobile-menu-toggle {
    display: flex;
    position: fixed;
    top: 22px;
    right: 20px;
    z-index: 1115;
  }
  header .container {
    flex-direction: row;
    gap: 10px;
  }
  .testimonial-card, .card, .feature-grid > div, .team-member {
    padding: 18px 12px;
  }
  .cta {
    padding: 36px 0;
  }
  footer .container {
    flex-direction: column;
    gap: 12px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 18px;
  }
}
@media (max-width: 480px) {
  .hero h1 { font-size: 1.34rem; }
  h2 { font-size: 1.11rem; }
  h3 { font-size: 1rem; }
  .testimonial-card,
  .card,
  .feature-grid > div,
  .team-member {
    padding: 12px 7px;
  }
}
/* --- COOKIE CONSENT --- */
.cookie-consent-banner {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100vw;
  background: #2C3E50;
  color: #fffbe6;
  padding: 20px 15px 22px 15px;
  box-shadow: 0 -2px 18px var(--af-shadow);
  z-index: 1500;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 18px;
  font-size: 1.08rem;
  font-family: var(--af-font-body);
  border-top: 3px solid var(--af-gold);
  justify-content: space-between;
  animation: cookie-banner-slideIn 0.42s cubic-bezier(.86,.03,.19,.97) 1;
}
@keyframes cookie-banner-slideIn {
  0% { transform: translateY(100%); opacity:0; }
  90% { opacity:1; }
  100% { transform: translateY(0); opacity:1; }
}
.cookie-consent-banner .cookie-btn-group {
  display: flex;
  flex-direction: row;
  gap: 16px;
}
.cookie-consent-banner button {
  font-family: var(--af-font-display);
  font-weight: 700;
  font-size: 1.02rem;
  border-radius: 16px;
  border: none;
  padding: 8px 24px;
  margin: 0;
  outline: none;
  cursor: pointer;
  transition: background 0.17s, color 0.17s;
}
.cookie-accept-btn {
  background: var(--af-gold);
  color: #fff;
  border-bottom: 2px solid var(--af-gold-dark);
}
.cookie-accept-btn:hover, .cookie-accept-btn:focus {
  background: var(--af-gold-dark);
  color: #fffbe6;
}
.cookie-reject-btn {
  background: transparent;
  color: #fffbe6;
  border: 2px solid var(--af-gold-light);
}
.cookie-reject-btn:hover, .cookie-reject-btn:focus {
  background: var(--af-gold-light);
  color: var(--af-dark);
}
.cookie-settings-btn {
  background: transparent;
  color: #fffbe6;
  border: 2px solid var(--af-gold);
}
.cookie-settings-btn:hover, .cookie-settings-btn:focus {
  background: var(--af-gold);
  color: #fffbe6;
}
@media (max-width: 700px) {
  .cookie-consent-banner { padding: 16px 8px; flex-direction: column; gap: 12px; text-align: left; }
}
/* --- COOKIE MODAL --- */
.cookie-modal {
  position: fixed;
  left: 50%;
  top: 50%;
  background: #fff;
  color: var(--af-brand-dark);
  width: 94vw;
  max-width: 424px;
  min-height: 260px;
  z-index: 1602;
  border-radius: 16px;
  box-shadow: 0 10px 48px 0 rgba(42,33,21,0.28);
  transform: translate(-50%, -50%) scale(0.96);
  opacity: 0;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 32px 26px 22px 26px;
  transition: opacity 0.27s, transform 0.24s;
}
.cookie-modal.open {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
  pointer-events: all;
}
.cookie-modal h2 {
  color: var(--af-gold-dark);
  font-size: 1.28rem;
  margin-bottom: 4px;
}
.cookie-category {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 6px 0 10px 0;
  border-bottom: 1px solid var(--af-neutral);
}
.cookie-category:last-child {
  border-bottom: none;
}
.cookie-checkbox {
  accent-color: var(--af-gold);
  margin-right: 8px;
}
.cookie-modal-btns {
  display: flex;
  gap: 18px;
  justify-content: flex-end;
  margin-top: 11px;
}
.cookie-modal-close {
  position: absolute;
  right: 12px;
  top: 13px;
  background: var(--af-gold);
  color: #fff;
  border-radius: 50%;
  border: none;
  width: 32px;
  height: 32px;
  font-size: 1.15em;
  cursor: pointer;
  transition: background 0.16s;
}
.cookie-modal-close:hover {
  background: var(--af-gold-dark);
}
.cookie-modal .cookie-modal-btns button {
  font-family: var(--af-font-display);
  font-weight: 700;
  padding: 9px 26px;
  border-radius: 14px;
  border: none;
  cursor: pointer;
  background: var(--af-gold);
  color: #fff;
  transition: background 0.19s, color 0.19s;
}
.cookie-modal .cookie-modal-btns button:hover {
  background: var(--af-gold-dark);
}
/* --- INTERACTIONS --- */
.btn-primary, .cookie-consent-banner button, .cookie-modal-btns button {
  transition: background 0.22s, color 0.18s, box-shadow 0.16s, border 0.14s;
}
.card, .testimonial-card, .feature-grid > div, .team-member {
  transition: box-shadow 0.18s, border 0.17s, transform 0.18s;
}
.card:hover, .feature-grid > div:hover, .team-member:hover {
  box-shadow: 0 14px 42px var(--af-shadow);
  border-left: 3px solid var(--af-gold);
}
input, button, select, textarea {
  font-family: inherit;
  font-size: 1rem;
  outline: none;
}
button:focus, a:focus {
  outline: 2px solid var(--af-gold);
  outline-offset: 2px;
}
::-webkit-input-placeholder {
  color: #b8aa97;
}
::-moz-placeholder { color: #b8aa97; }
:-ms-input-placeholder { color: #b8aa97; }
::placeholder { color: #b8aa97; }

/* --- REMOVE OUTLINES FOR MOUSE USERS ONLY (OPTIONAL, FOR ACCESSIBILITY) --- */
body:not(.user-is-tabbing) button:focus, body:not(.user-is-tabbing) a:focus {
  outline: none;
}

/* --- SCROLLBAR --- */
html::-webkit-scrollbar { width: 9px; background: #f7ecd7; }
html::-webkit-scrollbar-thumb { background: var(--af-gold); border-radius: 10px; }
html::-webkit-scrollbar-thumb:hover { background: var(--af-gold-dark); }

/* --- SELECTIVE CLASSES AND FINE TUNING --- */
.text-section {
  background: #fdfaf4;
  border-radius: 13px;
  padding: 23px 18px;
  box-shadow: 0 1px 8px var(--af-shadow);
  color: var(--af-dark);
}
.popular-guides, .how-to-articles, .trending-topics, .upcoming-products {
  background: #fff;
  border-radius: 13px;
  box-shadow: 0 1px 8px var(--af-shadow);
  padding: 14px 12px;
  margin-bottom: 12px;
}
.popular-guides h3, .how-to-articles h3, .upcoming-products h3, .trending-topics h3 {
  color: var(--af-gold-dark);
  font-size: 1.09rem;
  margin-bottom: 6px;
}

/* --- PRINT HEADINGS & GENERAL --- */
@media print {
  body, header, nav, .mobile-menu, .cookie-consent-banner, .cookie-modal {
    display: none !important;
  }
}
