/* CSS 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, 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;
  box-sizing: border-box;
}
html { box-sizing: border-box; }
*, *:before, *:after { box-sizing: inherit; }
body { line-height: 1; }
ol, ul { list-style: none; }
blockquote, q { quotes: none; }
blockquote:before, blockquote:after, q:before, q:after { content: ''; content: none; }
table { border-collapse: collapse; border-spacing: 0; }
img { max-width: 100%; height: auto; display: block; }

/* BASE TYPOGRAPHY & COLOR SYSTEM */
:root {
  --color-bg: #fff;
  --color-bg-alt: #f7f7f9;
  --color-primary: #1a1a1a;
  --color-secondary: #eec843;
  --color-accent: #fff;
  --color-link: #164873;
  --color-muted: #666;
  --color-border: #e0e0e0;
  --color-card-bg: #fafafc;
  --shadow-small: 0 1px 4px rgba(0,0,0,0.07);
  --shadow: 0 6px 32px 0 rgba(0,0,0,0.08);
  --font-display: 'Montserrat', Arial, sans-serif;
  --font-body: 'Open Sans', Arial, sans-serif;
}

body {
  background: var(--color-bg);
  color: var(--color-primary);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  font-weight: 400;
  min-height: 100vh;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  letter-spacing: -0.01em;
  color: #111;
  margin-bottom: 20px;
  font-weight: 700;
}
h1 { font-size: 2.5rem; margin-bottom: 32px; line-height: 1.12; }
h2 { font-size: 2rem; margin-bottom: 28px; line-height: 1.16; }
h3 { font-size: 1.35rem; margin-bottom: 16px; line-height: 1.22; }
h4 { font-size: 1.15rem; margin-bottom: 12px; }
p, ul, ol { font-size: 1rem; margin-bottom: 16px; color: var(--color-primary); }
strong { font-weight: 700; }
small { font-size: 0.9em; color: var(--color-muted); }

/* CONTAINER & LAYOUTS */
.container {
  width: 100%;
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: var(--color-card-bg);
  border-radius: 12px;
  box-shadow: var(--shadow-small);
  padding: 28px 22px 22px 22px;
}
.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: 12px;
  box-shadow: var(--shadow-small);
  margin-bottom: 20px;
  border-left: 4px solid #222;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: #f7f7f9;
  border-radius: 10px;
  padding: 24px 18px;
  box-shadow: var(--shadow-small);
  min-width: 220px;
  flex: 1 1 200px;
}

/* HERO STYLES */
.hero {
  background: #1a1a1a;
  color: #fff;
  padding: 72px 0 56px 0;
  margin-bottom: 48px;
}
.hero h1, .hero h2 {
  color: #fff;
}
.hero p {
  color: #ececec;
  font-size: 1.18rem;
}
.hero .content-wrapper {
  align-items: flex-start;
  max-width: 680px;
  margin: 0 auto;
}

/* SEARCH BAR */
.search-bar {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  margin: 28px 0 22px 0;
}
.search-bar input[type="text"] {
  flex: 1 1 auto;
  padding: 12px 18px;
  border: 1px solid #222;
  border-radius: 8px 0 0 8px;
  font-size: 1rem;
  color: var(--color-primary);
  background: #fff;
  font-family: var(--font-body);
}
.search-bar button {
  padding: 12px 24px;
  border: none;
  background: #222;
  color: #fff;
  border-radius: 0 8px 8px 0;
  font-size: 1rem;
  letter-spacing: 0.03em;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}
.search-bar button:hover, .search-bar button:focus {
  background: #164873;
  color: #fff;
}

/* NAVIGATION (DESKTOP) */
header {
  background: #fff;
  border-bottom: 1px solid var(--color-border);
  box-shadow: 0 2px 10px rgba(0,0,0,0.04);
  z-index: 103;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  min-height: 74px;
  gap: 0;
}
.main-nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 22px;
}
.main-nav a {
  color: #1a1a1a;
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 500;
  transition: color 0.16s;
  padding: 4px 9px;
  border-radius: 6px;
}
.main-nav a:hover,
.main-nav a:focus {
  color: #164873;
  background: #f7f7f9;
}
.main-nav .cta-button {
  background: #1a1a1a;
  color: #fff;
  font-weight: 600;
  border-radius: 24px;
  padding: 7px 22px;
  margin-left: 8px;
  border: none;
  transition: background 0.24s, color 0.22s;
  box-shadow: 0 2px 16px rgba(22,22,22,0.07);
}
.main-nav .cta-button:hover,
.main-nav .cta-button:focus {
  background: #164873;
  color: #fff;
}

/* MOBILE MENU BUTTON */
.mobile-menu-toggle {
  display: none;
  background: #fff;
  border: 1.5px solid #222;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  font-size: 1.7rem;
  color: #222;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  margin-left: 18px;
  z-index: 2002;
  transition: background 0.2s, box-shadow 0.2s;
}
.mobile-menu-toggle:hover,
.mobile-menu-toggle:focus {
  background: #f7f7f9;
  box-shadow: var(--shadow-small);
}

/* MOBILE MENU OVERLAY */
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100vw;
  height: 100vh;
  background: #fff;
  z-index: 2001;
  display: none;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  transition: transform 0.32s cubic-bezier(.77,0,.18,1), opacity 0.2s;
  transform: translateX(100%);
  opacity: 0;
  box-shadow: 0 0 0 100vw rgba(0,0,0,0.16);
}
.mobile-menu.open {
  display: flex;
  transform: translateX(0);
  opacity: 1;
  box-shadow: 0 0 0 100vw rgba(0,0,0,0.19);
}
.mobile-menu-close {
  background: none;
  color: #1a1a1a;
  border: none;
  font-size: 2rem;
  font-weight: 500;
  margin: 22px 0 8px 20px;
  cursor: pointer;
  align-self: flex-start;
  z-index: 2202;
  transition: color 0.2s;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  color: #164873;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  width: 100%;
  gap: 12px;
  padding: 18px 28px;
}
.mobile-nav a {
  color: #1a1a1a;
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 500;
  padding: 12px 4px;
  border-radius: 6px;
  transition: color 0.2s, background 0.19s;
}
.mobile-nav a:hover,
.mobile-nav a:focus {
  color: #fff;
  background: #164873;
}

/* BUTTONS */
.cta-button, .category-filters button, .directory-list a, .feature-item a, .pagination button, .cookie-banner button {
  font-family: var(--font-display);
  font-weight: 600;
  cursor: pointer;
  border-radius: 24px;
  padding: 12px 28px;
  color: #fff;
  background: #1a1a1a;
  border: none;
  font-size: 1rem;
  line-height: 1.15;
  transition: background 0.22s, color 0.18s, box-shadow 0.18s;
  margin: 6px 6px 6px 0;
  box-shadow: 0 2px 12px rgba(22,22,22,0.10);
  text-decoration: none !important;
  display: inline-block;
}
.cta-button:hover, .cta-button:focus,
.category-filters button:hover, .category-filters button:focus,
.pagination button.active {
  background: #164873;
  color: #fff;
  box-shadow: 0 4px 24px rgba(22,72,115,0.13);
}
.category-filters button {
  font-size: 1rem;
  padding: 8px 20px;
  background: #fff;
  color: #222;
  border: 1.5px solid #222;
  margin: 0 7px 8px 0;
  box-shadow: none;
  transition: background 0.18s, color 0.17s, border 0.17s;
}
.category-filters button:hover, .category-filters button.active {
  background: #222;
  color: #fff;
  border-color: #222;
}
.pagination {
  display: flex;
  flex-direction: row;
  gap: 10px;
  justify-content: flex-start;
  margin: 24px 0 0 0;
}
.pagination button {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #fff;
  color: #222;
  border: 1.5px solid #222;
  font-weight: 600;
  font-size: 1rem;
  box-shadow: none;
  padding: 0;
}
.pagination button.active {
  background: #222;
  color: #fff;
}
.pagination button:hover, .pagination button:focus {
  background: #164873;
  color: #fff;
  border-color: #164873;
}

/* LINKS */
a {
  color: var(--color-link);
  text-decoration: underline;
  transition: color 0.17s;
}
a:hover, a:focus {
  color: #111;
}

/* ICONS */
.feature-item img, .team-member img, .contact-details img, .blog-teaser img, .company-card img {
  height: 36px;
  width: 36px;
  margin-bottom: 8px;
  filter: grayscale(1) contrast(1.1);
}

/* FEATURES GRID */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 12px;
  justify-content: flex-start;
}

/* TESTIMONIALS */
.testimonials {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.testimonial-card {
  flex: 1 1 240px;
  min-width: 240px;
  max-width: 360px;
  background: #fff;
  color: #191919;
  border-left: 4px solid #111;
  box-shadow: var(--shadow-small);
  border-radius: 12px;
  padding: 22px 22px 16px 22px;
  align-items: flex-start;
  font-style: italic;
  transition: box-shadow 0.2s, border-color 0.18s;
}
.testimonial-card:hover {
  box-shadow: 0 8px 30px rgba(22,72,115,0.10);
  border-left: 4px solid #164873;
}
.testimonial-meta {
  margin-top: 10px;
  font-size: 0.97em;
  color: #555;
  font-style: normal;
  font-weight: 600;
}

/* BLOG PREVIEW / CARDS */
.blog-preview, .blog-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.blog-teaser, .blog-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: var(--shadow-small);
  padding: 24px 22px;
  min-width: 230px;
  max-width: 360px;
  flex: 1 1 250px;
  transition: box-shadow 0.2s, border-left 0.2s;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 20px;
  border-left: 4px solid #f7f7f9;
}
.blog-teaser:hover, .blog-card:hover {
  box-shadow: 0 8px 30px rgba(22,22,22,0.1);
  border-left: 4px solid #164873;
}
.blog-card h3, .blog-teaser h3 {
  font-size: 1.1rem;
  margin: 0 0 8px 0;
}
.blog-card a,
.blog-teaser a {
  font-size: 1rem;
  color: #164873;
  text-decoration: underline;
  font-weight: 500;
  transition: color 0.17s;
  margin-top: 6px;
  align-self: flex-start;
}
.blog-card a:hover, .blog-teaser a:hover {
  color: #111;
  text-decoration: underline;
}

/* DIRECTORY & COMPANY CARDS */
.directory-list {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin: 18px 0;
}
.company-card {
  background: #fff;
  border-radius: 8px;
  box-shadow: var(--shadow-small);
  padding: 26px 22px 20px 22px;
  min-width: 245px;
  max-width: 340px;
  flex: 1 1 240px;
  transition: box-shadow 0.2s, border-left 0.22s;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
  border-left: 4px solid #164873;
}
.company-card a {
  margin-top: 9px;
  background: #164873;
  color: #fff;
  border-radius: 18px;
  padding: 8px 20px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.18s, color 0.14s;
}
.company-card a:hover,
.company-card a:focus {
  background: #222;
  color: #fff;
}

/* PRICING TABLE */
.pricing-table {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin: 34px 0;
}
.pricing-plan {
  flex: 1 1 265px;
  min-width: 230px;
  max-width: 340px;
  background: #fff;
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 32px 26px 30px 26px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  border-left: 6px solid #222;
  transition: box-shadow 0.2s, border 0.2s;
  margin-bottom: 20px;
}
.pricing-plan h3 {
  font-size: 1.2rem;
  margin-bottom: 12px;
  color: #164873;
}
.pricing-plan p {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 18px;
}
.pricing-plan ul {
  margin-bottom: 23px;
  color: #222;
  font-size: 1rem;
}
.pricing-plan li { margin-bottom: 9px; }
.pricing-plan .cta-button {
  padding: 11px 30px;
  font-size: 1rem;
}
.pricing-plan:hover {
  box-shadow: 0 12px 40px rgba(22,72,115,0.13);
  border-left: 6px solid #164873;
}

/* FAQ ACCORDION */
.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.faq-item {
  background: #fafafc;
  border-radius: 10px;
  padding: 24px 20px;
  box-shadow: var(--shadow-small);
  font-size: 1rem;
  margin-bottom: 10px;
  transition: box-shadow 0.17s;
}
.faq-item h3 {
  font-size: 1.12rem;
  font-family: var(--font-display);
  margin-bottom: 7px;
}
.faq-item p {
  margin-bottom: 0;
}
.faq-item:hover {
  box-shadow: 0 6px 24px rgba(22,22,22,0.08);
}

/* TEAM MEMBERS */
.team {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin-top: 20px;
}
.team-member {
  background: #fff;
  border-radius: 10px;
  box-shadow: var(--shadow-small);
  padding: 24px 18px 22px 18px;
  flex: 1 1 200px;
  min-width: 210px;
  max-width: 300px;
  margin-bottom: 20px;
  transition: box-shadow 0.17s;
}
.team-member h3 {
  margin-bottom: 7px;
}
.team-member:hover {
  box-shadow: 0 6px 24px rgba(22,22,22,0.08);
}

/* CONTACT DETAILS */
.contact-details {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
}
.contact-details p {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #222;
  font-size: 1rem;
  margin-bottom: 0;
}

/* LEGAL TEXT BLOCKS */
.legal-text {
  background: #fafafc;
  border-radius: 12px;
  box-shadow: var(--shadow-small);
  padding: 36px 26px 30px 26px;
  margin-bottom: 0;
  color: #181818;
}
.legal-text h2 {
  font-size: 1.12rem;
  color: #111;
  margin: 18px 0 7px 0;
}
.legal-text ul {
  margin-left: 20px;
  margin-bottom: 12px;
}
.legal-text ul li {
  list-style-type: disc;
  margin-bottom: 6px;
}

/* FOOTER */
footer {
  background: #1a1a1a;
  color: #fff;
  padding: 48px 0 20px 0;
}
footer .container {
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
}
.footer-nav {
  display: flex;
  flex-direction: row;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.footer-nav a {
  color: #fff;
  opacity: 0.88;
  text-decoration: underline;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 500;
  transition: color 0.16s, opacity 0.13s;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: #eec843;
  opacity:1;
}
.footer-contact p, .footer-contact small {
  color: #eaeaea;
  font-size: 1rem;
  margin-bottom: 8px;
  line-height: 1.6;
}
.footer-contact small {
  font-size: 0.9rem;
  color: #bbb;
  margin-top: 16px;
}

/* BLOG LIST CONTROLS */
.blog-list-controls {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 22px;
  margin-bottom: 18px;
  justify-content: space-between;
}
.categories {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 9px;
}
.categories span {
  color: #1a1a1a;
  font-weight: 600;
  font-size: 1rem;
  margin-right: 5px;
}
.categories a {
  font-size: 1rem;
  color: #111;
  padding: 6px 13px;
  border-radius: 14px;
  background: #f7f7f9;
  transition: background 0.14s, color 0.14s;
  text-decoration: none;
}
.categories a:hover, .categories a:focus {
  background: #164873;
  color: #fff;
}

/* VARIOUS */
.category-filters {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  margin-top: 22px;
}
.category-filters span {
  font-weight: 600;
  font-size: 1rem;
  margin-right: 8px;
  color: #111;
}
.sorting-options {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.sorting-options select {
  padding: 8px 16px;
  border-radius: 8px;
  border: 1.5px solid #222;
  font-size: 1rem;
  font-family: var(--font-body);
  color: #222;
  background: #fff;
  transition: border 0.17s;
}
.sorting-options select:focus {
  border-color: #164873;
}

/* COOKIE CONSENT BANNER */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  width: 100vw;
  background: #191919;
  color: #fff;
  z-index: 4001;
  padding: 30px 0 20px 0;
  box-shadow: 0 -4px 32px 0 rgba(0,0,0,0.18);
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 36px;
  font-size: 1.05rem;
  transition: transform 0.41s cubic-bezier(.77,0,.18,1), opacity 0.24s;
  transform: translateY(100%);
  opacity: 0;
}
.cookie-banner.visible {
  transform: translateY(0);
  opacity: 1;
}
.cookie-banner-message {
  max-width: 480px;
  color: #fafafc;
}
.cookie-banner .cookie-btn {
  background: #222;
  color: #fff;
  border-radius: 18px;
  padding: 10px 22px;
  margin: 0 8px;
  font-size: 1rem;
  border: none;
  font-family: var(--font-display);
  font-weight: 600;
  cursor: pointer;
  transition: background 0.19s, color 0.14s;
}
.cookie-banner .cookie-btn:hover,
.cookie-banner .cookie-btn:focus {
  background: #164873;
  color: #fff;
}
.cookie-banner .cookie-btn.settings {
  background: #fff;
  color: #1a1a1a;
  border: 1.5px solid #222;
}
.cookie-banner .cookie-btn.settings:hover {
  background: #eec843;
  color: #111;
  border-color: #eec843;
}

/* COOKIE MODAL */
.cookie-modal-overlay {
  position: fixed;
  z-index: 4011;
  left: 0; top: 0; right: 0; bottom: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(24,24,24,0.39);
  display: none;
  align-items: center;
  justify-content: center;
  transition: opacity 0.19s;
}
.cookie-modal-overlay.visible {
  display: flex;
}
.cookie-modal {
  background: #fff;
  border-radius: 18px;
  max-width: 400px;
  width: 92%;
  padding: 38px 32px 32px 32px;
  box-shadow: 0 16px 48px rgba(22,22,22,0.16);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  z-index: 4012;
}
.cookie-modal h2 {
  color: #111;
  font-size: 1.25rem;
  margin-bottom: 6px;
}
.cookie-modal .cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-bottom: 18px;
}
.cookie-modal .cookie-category {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.03rem;
  color: #222;
}
.cookie-modal .cookie-category .toggle {
  width: 42px;
  height: 24px;
  background: #f0f0f0;
  border-radius: 14px;
  border: 1px solid #bbb;
  position: relative;
  transition: background 0.21s, border 0.14s;
  margin-right: 8px;
}
.cookie-modal .cookie-category .toggle[data-active="true"] {
  background: #164873;
  border-color: #164873;
}
.cookie-modal .cookie-category .toggle:after {
  content: '';
  display: block;
  width: 18px;
  height: 18px;
  background: #fff;
  border-radius: 50%;
  position: absolute;
  top: 2px;
  left: 2px;
  transition: left 0.21s;
}
.cookie-modal .cookie-category .toggle[data-active="true"]:after {
  left: 22px;
}
.cookie-modal .cookie-category[data-essential="true"] .toggle {
  cursor: not-allowed;
  opacity: 0.63;
}
.cookie-modal .cookie-modal-actions {
  display: flex;
  flex-direction: row;
  gap: 13px;
  justify-content: flex-end;
  margin-top: 13px;
}
.cookie-modal .cookie-btn {
  padding: 9px 22px;
  font-size: 1rem;
  border-radius: 16px;
}
.cookie-modal .cookie-modal-close {
  position: absolute;
  top: 18px;
  right: 24px;
  background: none;
  border: none;
  font-size: 1.35rem;
  color: #222;
  cursor: pointer;
  transition: color 0.13s;
}
.cookie-modal .cookie-modal-close:hover,
.cookie-modal .cookie-modal-close:focus {
  color: #164873;
}

/* MEDIA QUERIES - MOBILE-FIRST */
@media (max-width: 1020px) {
  .container { max-width: 98vw; }
}
@media (max-width: 820px) {
  .team, .company-card, .faq-accordion, .feature-grid, .pricing-table, .testimonials, .blog-preview, .directory-list, .content-grid, .blog-cards {
    flex-direction: column !important;
    gap: 18px !important;
  }
  .container, .footer .container { flex-direction: column !important; gap: 18px; }
}
@media (max-width: 768px) {
  /* Nav – hide main nav, show burger */
  .main-nav { display: none; }
  .mobile-menu-toggle { display: flex !important; }
  .container { padding: 0 8px; }
  .footer .container { flex-direction: column; gap: 20px; }
  .footer-nav { flex-direction: column; gap: 8px; align-items: flex-start; }
  .footer-contact p, .footer-contact small { font-size: 0.98rem; }
  /* Resize hero and section padding */
  .hero { padding: 42px 0 28px 0; }
  .section { padding: 24px 7px; margin-bottom: 34px; }
  /* Stack feature grid, testimonials, preview etc as columns */
  .feature-grid, .testimonials, .pricing-table,
  .blog-preview, .blog-cards, .directory-list, .blog-list-controls,
  .team, .contact-details {
    flex-direction: column !important;
    gap: 14px !important;
    align-items: stretch !important;
  }
  /* Card & plan min-w for mobile */
  .feature-item, .team-member, .company-card, .blog-teaser, .blog-card, .pricing-plan, .testimonial-card {
    min-width: 0 !important;
    max-width: 100% !important;
    margin-bottom: 14px !important;
  }
  .testimonial-card, .faq-item, .legal-text {
    padding: 18px 12px !important;
  }
  /* Content grid & text-image as columns */
  .content-grid, .text-image-section { flex-direction: column !important; gap: 14px !important; }
}
@media (max-width: 520px) {
  h1 { font-size: 1.65rem !important; }
  h2 { font-size: 1.25rem !important; }
  h3 { font-size: 1rem !important; }
  body { font-size: 0.99rem !important; }
  .search-bar input[type="text"] { font-size: 0.98rem; }
  .search-bar button, .cta-button, .cookie-banner .cookie-btn, .pagination button, .category-filters button {
    font-size: 0.96rem; padding: 9px 16px;
  }
}
@media (max-width: 410px) {
  .cookie-modal { padding: 20px 5px 20px 10px; max-width: 95vw; }
  .blog-card, .blog-teaser, .company-card, .feature-item, .pricing-plan {
    padding: 13px 7px 12px 7px !important;
  }
}

/* MICRO-INTERACTIONS & TRANSITIONS */
.card, .pricing-plan, .feature-item, .blog-card, .blog-teaser, .company-card, .testimonial-card, .team-member {
  transition: box-shadow 0.16s, border-color 0.16s, border-left 0.15s;
}
.card:hover, .feature-item:hover, .pricing-plan:hover, .blog-card:hover, .team-member:hover {
  box-shadow: 0 8px 32px rgba(26,26,26,0.12);
  border-left: 4px solid #164873;
}

/* INPUTS */
input, select, textarea {
  font-family: var(--font-body);
  border-radius: 8px;
  border: 1.5px solid #222;
  padding: 9px 14px;
  transition: border 0.16s;
  outline: none;
  background: #fff;
}
input:focus, select:focus, textarea:focus {
  border: 1.5px solid #164873;
}

/* HIDE COOKIE MODAL SCROLL ON OPEN */
body.cookie-modal-open {
  overflow: hidden;
}

/* HIDE VISUALLY BUT ACCESSIBLE */
.visually-hidden { 
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
