/* =========================
   Bright Vein Legal - Vintage Retro CSS
   ========================= */

/* ========== FONT IMPORTS ========== */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@700;900&family=Source+Sans+Pro:wght@400;600&family=Roboto+Slab:wght@700&display=swap');

:root {
  /* Brand Colors */
  --primary: #153253;
  --secondary: #D3E6F5;
  --accent: #36A177;
  --accent-dark: #27805e;
  /* Vintage Retro Palette */
  --retro-yellow: #F6E7B4;
  --retro-orange: #EBA94B;
  --retro-red: #C94C4C;
  --retro-blue: #4B6EAF;
  --retro-green: #7BA05B;
  --retro-brown: #A67C52;
  --retro-bg: #F9F6F1;
  --retro-card: #FFF8E1;
  --retro-shadow: rgba(166, 124, 82, 0.15);
  --retro-border: #EBA94B;
  /* Typography */
  --font-display: 'Montserrat', 'Roboto Slab', Arial, sans-serif;
  --font-body: 'Source Sans Pro', Arial, sans-serif;
  /* Spacing */
  --section-margin: 60px;
  --section-padding: 40px 20px;
  --card-gap: 24px;
  --card-margin: 20px;
  --container-max: 1200px;
  --transition: 0.25s cubic-bezier(.4,0,.2,1);
}

html {
  box-sizing: border-box;
  font-size: 18px;
  background: var(--retro-bg);
  scroll-behavior: smooth;
}
*, *:before, *:after {
  box-sizing: inherit;
}

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

/* ========== LAYOUT CONTAINERS ========== */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

/* ========== HEADER & NAVIGATION ========== */
header {
  background: var(--retro-yellow);
  border-bottom: 4px solid var(--retro-border);
  box-shadow: 0 4px 16px var(--retro-shadow);
  position: sticky;
  top: 0;
  z-index: 100;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 20px;
}
header img {
  height: 48px;
  width: auto;
  margin-right: 24px;
}
.main-nav {
  display: flex;
  flex-direction: row;
  gap: 28px;
  align-items: center;
}
.main-nav a {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--primary);
  text-decoration: none;
  letter-spacing: 0.04em;
  padding: 6px 0;
  position: relative;
  transition: color var(--transition);
}
.main-nav a:after {
  content: '';
  display: block;
  height: 3px;
  width: 0;
  background: var(--accent);
  border-radius: 2px;
  transition: width var(--transition);
  margin-top: 2px;
}
.main-nav a:hover,
.main-nav a:focus {
  color: var(--accent);
}
.main-nav a:hover:after,
.main-nav a:focus:after {
  width: 100%;
}
.cta-btn {
  font-family: var(--font-display);
  font-weight: 900;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 32px;
  padding: 12px 32px;
  font-size: 1.1rem;
  letter-spacing: 0.06em;
  box-shadow: 0 2px 8px var(--retro-shadow);
  cursor: pointer;
  text-decoration: none;
  margin-left: 18px;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  position: relative;
  z-index: 1;
}
.cta-btn:hover,
.cta-btn:focus {
  background: var(--accent-dark);
  transform: translateY(-2px) scale(1.04) rotate(-1deg);
  box-shadow: 0 6px 18px var(--retro-shadow);
}

/* ========== MOBILE NAVIGATION ========== */
.mobile-menu-toggle {
  display: none;
  background: var(--retro-orange);
  color: var(--primary);
  border: none;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  font-size: 2rem;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  margin-left: 16px;
  transition: background var(--transition), color var(--transition);
  z-index: 120;
}
.mobile-menu-toggle:hover,
.mobile-menu-toggle:focus {
  background: var(--retro-red);
  color: #fff;
}
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(120deg, var(--retro-yellow) 80%, var(--retro-orange) 100%);
  box-shadow: 0 8px 32px var(--retro-shadow);
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 0;
  transform: translateX(-100%);
  transition: transform 0.35s cubic-bezier(.4,0,.2,1);
  opacity: 0;
  pointer-events: none;
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu-close {
  background: none;
  border: none;
  color: var(--retro-red);
  font-size: 2.2rem;
  align-self: flex-end;
  margin: 24px 24px 0 0;
  cursor: pointer;
  transition: color var(--transition);
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  color: var(--accent);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 28px;
  width: 100%;
  align-items: flex-start;
  padding: 40px 32px;
}
.mobile-nav a {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--primary);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 8px 0;
  border-bottom: 2px solid transparent;
  transition: color var(--transition), border-bottom var(--transition);
}
.mobile-nav a:hover,
.mobile-nav a:focus {
  color: var(--accent);
  border-bottom: 2px solid var(--accent);
}

@media (max-width: 1024px) {
  .main-nav {
    gap: 18px;
  }
  .cta-btn {
    padding: 10px 22px;
    font-size: 1rem;
  }
}
@media (max-width: 900px) {
  header .container {
    flex-wrap: wrap;
    gap: 10px;
  }
}
@media (max-width: 768px) {
  .main-nav {
    display: none;
  }
  .cta-btn {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
  header .container {
    flex-direction: row;
    gap: 8px;
    padding: 12px 10px;
  }
}

/* ========== HERO SECTION ========== */
.hero-section {
  background: repeating-linear-gradient(135deg, var(--retro-yellow), var(--retro-yellow) 40px, var(--retro-orange) 40px, var(--retro-orange) 80px);
  border-bottom: 6px solid var(--retro-border);
  box-shadow: 0 8px 32px var(--retro-shadow);
  margin-bottom: var(--section-margin);
  padding: 0;
}
.hero-section .container {
  min-height: 340px;
  align-items: center;
  justify-content: center;
  padding: 60px 20px 60px 20px;
}
.hero-section .content-wrapper {
  align-items: center;
  text-align: center;
  gap: 24px;
}
.hero-section h1 {
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 900;
  color: var(--primary);
  letter-spacing: 0.06em;
  text-shadow: 2px 2px 0 var(--retro-orange), 4px 4px 0 var(--retro-yellow);
  margin-bottom: 12px;
}
.hero-section p {
  font-size: 1.25rem;
  color: var(--retro-brown);
  margin-bottom: 18px;
}

/* ========== SECTION SPACING ========== */
section {
  margin-bottom: var(--section-margin);
  padding: var(--section-padding);
  background: none;
}

/* ========== FLEXBOX LAYOUTS ========== */
.feature-grid, .service-cards, .service-list, .industry-grid, .team-grid, .article-list, .approach-steps, .process-steps {
  display: flex;
  flex-wrap: wrap;
  gap: var(--card-gap);
  justify-content: space-between;
}
.feature-grid > *, .service-cards > *, .service-list > *, .industry-grid > *, .team-grid > *, .article-list > *, .approach-steps > *, .process-steps > * {
  flex: 1 1 260px;
  min-width: 260px;
  max-width: 100%;
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
}
.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;
  padding: 20px;
  background: var(--retro-card);
  border: 2px solid var(--retro-border);
  border-radius: 18px;
  box-shadow: 0 4px 16px var(--retro-shadow);
  margin-bottom: 20px;
  max-width: 520px;
  color: var(--primary);
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* ========== CARDS & FEATURE BOXES ========== */
.feature, .service-card, .service, .industry, .team-member, .article {
  background: var(--retro-card);
  border: 2px solid var(--retro-border);
  border-radius: 16px;
  box-shadow: 0 2px 8px var(--retro-shadow);
  padding: 28px 22px;
  margin-bottom: 20px;
  transition: box-shadow var(--transition), transform var(--transition);
  position: relative;
  z-index: 1;
}
.feature:hover, .service-card:hover, .service:hover, .industry:hover, .team-member:hover, .article:hover {
  box-shadow: 0 8px 24px var(--retro-shadow);
  transform: translateY(-4px) scale(1.03) rotate(-1deg);
}
.feature h3, .service-card h3, .service h3, .industry h3, .team-member h3, .article h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 900;
  color: var(--retro-blue);
  margin-bottom: 10px;
  letter-spacing: 0.04em;
}
.feature p, .service-card p, .service p, .industry p, .team-member p, .article p {
  color: var(--retro-brown);
  font-size: 1.05rem;
}
.service-card a, .article a {
  display: inline-block;
  margin-top: 14px;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--accent);
  text-decoration: underline;
  transition: color var(--transition);
}
.service-card a:hover, .article a:hover {
  color: var(--retro-red);
}

/* ========== TESTIMONIALS ========== */
.testimonial-slider {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 24px;
}
.testimonial-card p {
  font-size: 1.15rem;
  color: var(--primary);
  font-style: italic;
  margin-bottom: 8px;
}
.testimonial-card span {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--retro-brown);
  font-weight: 700;
}
.client-logos {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 18px;
  color: var(--retro-brown);
  font-family: var(--font-display);
  font-size: 1.05rem;
}

/* ========== LISTS ========== */
ul {
  padding-left: 24px;
  margin: 0 0 18px 0;
}
ul li {
  margin-bottom: 10px;
  font-size: 1.05rem;
  color: var(--retro-brown);
  position: relative;
}
ul li:before {
  content: '\25A0';
  color: var(--retro-orange);
  font-size: 0.8em;
  margin-right: 10px;
  vertical-align: middle;
}

/* ========== HEADINGS ========== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--primary);
  margin: 0 0 10px 0;
  letter-spacing: 0.04em;
}
h1 {
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--retro-blue);
  text-shadow: 1px 1px 0 var(--retro-yellow);
}
h2 {
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--retro-red);
  margin-bottom: 8px;
}
h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--retro-blue);
}
h4 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--retro-green);
}

/* ========== BUTTONS ========== */
button, .cta-btn {
  font-family: var(--font-display);
  font-weight: 700;
  border: none;
  border-radius: 32px;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), box-shadow var(--transition), transform var(--transition);
}
button:focus, .cta-btn:focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ========== FOOTER ========== */
footer {
  background: var(--retro-yellow);
  border-top: 4px solid var(--retro-border);
  box-shadow: 0 -4px 16px var(--retro-shadow);
  padding: 0;
}
footer .container {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
  padding: 36px 20px 24px 20px;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-nav a {
  color: var(--primary);
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  transition: color var(--transition);
}
.footer-nav a:hover {
  color: var(--accent);
}
.footer-contact {
  color: var(--retro-brown);
  font-size: 1rem;
  font-family: var(--font-body);
  margin-bottom: 12px;
}
.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.footer-brand img {
  height: 38px;
  width: auto;
}
.footer-brand span {
  font-size: 0.95rem;
  color: var(--retro-brown);
}

/* ========== RESPONSIVE DESIGN ========== */
@media (max-width: 1024px) {
  .feature-grid, .service-cards, .service-list, .industry-grid, .team-grid, .article-list, .approach-steps, .process-steps {
    gap: 16px;
  }
  .container {
    padding: 0 10px;
  }
  footer .container {
    gap: 18px;
    padding: 24px 10px 16px 10px;
  }
}
@media (max-width: 900px) {
  .feature-grid > *, .service-cards > *, .service-list > *, .industry-grid > *, .team-grid > *, .article-list > *, .approach-steps > *, .process-steps > * {
    flex: 1 1 100%;
    min-width: 220px;
  }
  .testimonial-slider {
    flex-direction: column;
    gap: 18px;
  }
  .footer-nav {
    flex-direction: row;
    gap: 16px;
  }
}
@media (max-width: 768px) {
  .container {
    padding: 0 6px;
  }
  .content-wrapper {
    gap: 18px;
  }
  .hero-section .container {
    padding: 36px 6px 36px 6px;
  }
  .hero-section h1 {
    font-size: 1.5rem;
  }
  .feature-grid, .service-cards, .service-list, .industry-grid, .team-grid, .article-list, .approach-steps, .process-steps {
    flex-direction: column;
    gap: 14px;
  }
  .feature, .service-card, .service, .industry, .team-member, .article {
    padding: 18px 10px;
  }
  .testimonial-card {
    padding: 14px 10px;
    max-width: 100%;
  }
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
  footer .container {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 18px 6px 10px 6px;
  }
}
@media (max-width: 480px) {
  .hero-section .container {
    min-height: 180px;
    padding: 18px 2px 18px 2px;
  }
  .feature, .service-card, .service, .industry, .team-member, .article {
    padding: 10px 4px;
  }
}

/* ========== COOKIE CONSENT BANNER ========== */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: var(--retro-yellow);
  color: var(--primary);
  box-shadow: 0 -4px 24px var(--retro-shadow);
  border-top: 3px solid var(--retro-border);
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 32px;
  z-index: 3000;
  font-size: 1rem;
  animation: cookie-slide-in 0.5s cubic-bezier(.4,0,.2,1);
}
@keyframes cookie-slide-in {
  from { transform: translateY(100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.cookie-banner .cookie-actions {
  display: flex;
  flex-direction: row;
  gap: 14px;
}
.cookie-banner button {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  border-radius: 24px;
  padding: 8px 22px;
  border: none;
  margin: 0;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), box-shadow var(--transition);
}
.cookie-banner .accept {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 2px 8px var(--retro-shadow);
}
.cookie-banner .accept:hover,
.cookie-banner .accept:focus {
  background: var(--accent-dark);
}
.cookie-banner .reject {
  background: var(--retro-red);
  color: #fff;
}
.cookie-banner .reject:hover,
.cookie-banner .reject:focus {
  background: #a62c2c;
}
.cookie-banner .settings {
  background: var(--retro-orange);
  color: var(--primary);
}
.cookie-banner .settings:hover,
.cookie-banner .settings:focus {
  background: var(--retro-yellow);
  color: var(--accent);
}
@media (max-width: 600px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 14px 8px;
    font-size: 0.95rem;
  }
  .cookie-banner .cookie-actions {
    gap: 8px;
  }
}

/* ========== COOKIE PREFERENCES MODAL ========== */
.cookie-modal-overlay {
  position: fixed;
  left: 0; right: 0; top: 0; bottom: 0;
  background: rgba(21, 50, 83, 0.65);
  z-index: 4000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(.4,0,.2,1);
}
.cookie-modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}
.cookie-modal {
  background: var(--retro-card);
  border: 3px solid var(--retro-border);
  border-radius: 18px;
  box-shadow: 0 8px 32px var(--retro-shadow);
  padding: 36px 32px 28px 32px;
  max-width: 420px;
  width: 90vw;
  color: var(--primary);
  display: flex;
  flex-direction: column;
  gap: 18px;
  animation: modal-pop-in 0.4s cubic-bezier(.4,0,.2,1);
  position: relative;
}
@keyframes modal-pop-in {
  from { transform: scale(0.85) translateY(40px); opacity: 0; }
  to { transform: scale(1) translateY(0); opacity: 1; }
}
.cookie-modal h2 {
  font-size: 1.3rem;
  color: var(--retro-red);
  margin-bottom: 8px;
}
.cookie-modal .cookie-category {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}
.cookie-modal .cookie-category label {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--primary);
}
.cookie-modal .cookie-category input[type="checkbox"] {
  accent-color: var(--accent);
  width: 20px;
  height: 20px;
  margin-right: 6px;
}
.cookie-modal .cookie-category input[disabled] {
  accent-color: var(--retro-orange);
  opacity: 0.7;
}
.cookie-modal .modal-actions {
  display: flex;
  flex-direction: row;
  gap: 12px;
  margin-top: 10px;
}
.cookie-modal .close-modal {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: none;
  color: var(--retro-red);
  font-size: 1.5rem;
  cursor: pointer;
  transition: color var(--transition);
}
.cookie-modal .close-modal:hover,
.cookie-modal .close-modal:focus {
  color: var(--accent);
}
.cookie-modal button {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  border-radius: 24px;
  padding: 8px 22px;
  border: none;
  margin: 0;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), box-shadow var(--transition);
}
.cookie-modal .accept {
  background: var(--accent);
  color: #fff;
}
.cookie-modal .accept:hover,
.cookie-modal .accept:focus {
  background: var(--accent-dark);
}
.cookie-modal .reject {
  background: var(--retro-red);
  color: #fff;
}
.cookie-modal .reject:hover,
.cookie-modal .reject:focus {
  background: #a62c2c;
}

/* ========== MICRO-INTERACTIONS ========== */
a, button, .cta-btn {
  transition: color var(--transition), background var(--transition), box-shadow var(--transition), transform var(--transition);
}
.card, .feature, .service-card, .service, .industry, .team-member, .article {
  transition: box-shadow var(--transition), transform var(--transition);
}

/* ========== VINTAGE/RETRO DECORATIVE ELEMENTS ========== */
.card:before, .feature:before, .service-card:before, .service:before, .industry:before, .team-member:before, .article:before {
  content: '';
  display: block;
  position: absolute;
  top: -12px; left: -12px;
  width: 36px; height: 36px;
  background: repeating-linear-gradient(135deg, var(--retro-orange), var(--retro-orange) 8px, var(--retro-yellow) 8px, var(--retro-yellow) 16px);
  border-radius: 50%;
  opacity: 0.13;
  z-index: 0;
  pointer-events: none;
}

/* ========== FORM ELEMENTS ========== */
input, textarea, select {
  font-family: var(--font-body);
  font-size: 1rem;
  border: 2px solid var(--retro-border);
  border-radius: 8px;
  padding: 10px 14px;
  margin-bottom: 16px;
  background: #fff;
  color: var(--primary);
  transition: border-color var(--transition), box-shadow var(--transition);
}
input:focus, textarea:focus, select:focus {
  border-color: var(--accent);
  box-shadow: 0 2px 8px var(--retro-shadow);
  outline: none;
}
label {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 6px;
  display: block;
}

/* ========== MISCELLANEOUS ========== */
::-webkit-scrollbar {
  width: 10px;
  background: var(--retro-yellow);
}
::-webkit-scrollbar-thumb {
  background: var(--retro-orange);
  border-radius: 8px;
}

/* ========== ENSURE NO OVERLAPPING ========== */
section, .feature, .service-card, .service, .industry, .team-member, .article, .testimonial-card {
  margin-bottom: 20px;
}

/* ========== END ========== */
