/* RESET & BASE STYLES (Normalize + Box model) */
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;
}
html {
  scroll-behavior: smooth;
}
body {
  line-height: 1.5;
  background: #F7F9FB;
  color: #223447;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 16px;
  min-height: 100vh;
  letter-spacing: 0.02em;
  -webkit-font-smoothing: antialiased;
}

*, *:before, *:after {
  box-sizing: inherit;
}

img {
  max-width: 100%;
  vertical-align: middle;
  height: auto;
  display: block;
}

ul, ol {
  list-style: none;
  margin: 0 0 16px 0;
  padding: 0;
}
a {
  color: #223447;
  text-decoration: none;
  transition: color 0.2s;
}

/** VINTAGE RETRO STYLE VARIABLES **/
:root {
  --primary: #223447;
  --secondary: #D0AD61;
  --accent: #F7F9FB;
  --vintage-orange: #C26C2E;
  --vintage-mint: #91C8B0;
  --vintage-red: #B24A3D;
  --vintage-cream: #F1E6D5;
  --text-dark: #223447;
  --text-light: #fff;
}

/** VINTAGE RETRO TYPEFACE AND SCALE **/
h1, h2, h3, h4 {
  font-family: 'Oswald', 'Roboto', Arial, sans-serif;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--primary);
  margin-bottom: 16px;
  text-transform: uppercase;
  text-shadow: 1px 1px 0 var(--vintage-cream), 2px 2px 0 var(--secondary);
}
h1 {
  font-size: 2.4rem;
  line-height: 1.1;
  margin-bottom: 20px;
}
h2 {
  font-size: 2rem;
  margin-bottom: 18px;
}
h3 {
  font-size: 1.35rem;
  color: var(--vintage-orange);
  margin-bottom: 12px;
}
h4 {
  font-size: 1.1rem;
}
p, .subtitle {
  color: var(--primary);
  opacity: 0.92;
  font-size: 1rem;
  margin-bottom: 14px;
}
.subtitle {
  font-family: 'Oswald', 'Roboto', Arial, sans-serif;
  font-size: 1.2rem;
  color: var(--vintage-mint);
  letter-spacing: 0.04em;
  margin-bottom: 20px;
}
strong {
  color: var(--vintage-red);
  font-weight: bold;
}

/** CONTAINER AND LAYOUTS **/
.container {
  width: 93%;
  max-width: 1160px;
  margin: 0 auto;
}
.header-bar, .footer-container, .feature-grid, .service-grid, .case-study-grid, .posts-grid, .resource-list, .team-bios, .testimonial-slider {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
}
.footer-container {
  gap: 32px;
  flex-wrap: wrap;
  padding-top: 32px;
  padding-bottom: 32px;
  align-items: flex-start;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
}
.text-section {
  background: var(--vintage-cream);
  padding: 28px 24px 20px 24px;
  border-radius: 18px;
  box-shadow: 0 2px 10px rgba(34,52,71,0.07), 0 0.5px 2px var(--secondary);
  margin-bottom: 20px;
  position: relative;
  flex: 1 1 300px;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: var(--vintage-cream);
  border: 2px solid var(--secondary);
  border-radius: 22px;
  box-shadow: 0 2px 10px rgba(34,52,71,0.06);
  padding: 28px 20px;
  margin-bottom: 20px;
  position: relative;
}
.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;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 20px 26px;
  background: #fff;
  border-radius: 22px;
  box-shadow: 0 4px 18px rgba(32,24,4,0.10), 0 1px 2px var(--secondary);
  border: 1.5px solid var(--vintage-mint);
  min-width: 240px;
  max-width: 340px;
  margin-bottom: 20px;
  flex: 1 1 250px;
  transition: transform .21s cubic-bezier(.44,.31,.25,1), box-shadow .2s;
}
.testimonial-card:hover {
  transform: translateY(-6px) scale(1.018) rotate(-0.7deg);
  box-shadow: 0 8px 36px rgba(34,52,71,0.18);
  background: var(--vintage-cream);
}
.testimonial-author {
  display: block;
  color: var(--vintage-red);
  font-family: 'Oswald', 'Roboto', Arial, sans-serif;
  font-size: 0.98rem;
  margin-top: 12px;
}
.rating {
  color: var(--vintage-orange);
  font-size: 1.2rem;
  letter-spacing: 2px;
  margin-top: 4px;
}

.feature-item, .service-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: var(--accent);
  border-radius: 18px;
  border: 1.5px solid var(--secondary);
  box-shadow: 0 2px 12px rgba(193,173,97,0.06);
  padding: 24px 18px;
  min-width: 220px;
  margin-bottom: 20px;
  transition: box-shadow .22s, border-color .2s;
}
.feature-item:hover, .service-item:hover {
  border-color: var(--vintage-mint);
  box-shadow: 0 8px 38px rgba(145,200,176,0.12);
  background: var(--vintage-cream);
}
.feature-item img,
.service-item img {
  width: 38px;
  height: 38px;
  filter: drop-shadow(1px 1px 0 var(--secondary));
}

.highlighted-resource {
  border: 2.2px solid var(--vintage-orange);
  background: var(--vintage-cream);
  box-shadow: 0 4px 24px rgba(194,108,46,0.17);
  position: relative;
}

.case-study-grid, .posts-grid, .resource-list, .team-bios {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 20px;
}
.newsletter-placeholder {
  margin-top: 16px;
  padding: 16px 0 0 0;
}

.filters {
  margin: 24px 0 10px 0;
  font-size: .97rem;
  color: var(--vintage-orange);
  letter-spacing: 0.01em;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.filters a {
  color: var(--vintage-red);
  margin: 0 6px;
  font-family: 'Oswald', 'Roboto', Arial, sans-serif;
  font-size: 1.03em;
  border-radius: 3px;
  padding: 2px 6px;
  transition: background .2s, color .2s;
}
.filters a:hover {
  background: var(--vintage-mint);
  color: var(--primary);
}

/* NAVIGATION & HEADER */
header {
  background: var(--primary);
  box-shadow: 0 2px 12px rgba(34,52,71,0.045);
  width: 100%;
  position: relative;
  z-index: 55;
}
.header-bar {
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  gap: 28px;
  padding: 17px 0 15px 0;
}
.logo-link img {
  height: 44px;
  width: auto;
}
.main-nav {
  display: flex;
  gap: 24px;
  align-items: center;
}
.main-nav a {
  font-family: 'Oswald', Arial, sans-serif;
  color: #fff;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  position: relative;
  padding: 4px 10px;
  border-radius: 6px;
  transition: background .2s, color .2s;
}
.main-nav a:hover, .main-nav a:focus {
  background: var(--secondary);
  color: var(--primary);
}
.button.button-primary {
  background: var(--vintage-orange);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-family: 'Oswald', Arial, sans-serif;
  letter-spacing: 0.03em;
  font-weight: bold;
  font-size: 1.08rem;
  padding: 11px 26px;
  margin-left: 16px;
  box-shadow: 0 2px 8px rgba(34,52,71,0.08);
  cursor: pointer;
  transition: background .18s, box-shadow .18s;
  text-shadow: 0 1px 0 rgba(194,108,46,.13);
}
.button.button-primary:hover, .button.button-primary:focus {
  background: var(--vintage-red);
  color: #fff;
  box-shadow: 0 4px 18px rgba(178,74,61,.11);
}
button, .button {
  display: inline-block;
  font-family: 'Oswald', Arial, sans-serif;
  background: var(--secondary);
  color: var(--primary);
  font-size: 1em;
  border: none;
  border-radius: 7px;
  padding: 9px 23px;
  cursor: pointer;
  margin-top: 7px;
  margin-right: 7px;
  transition: background .17s, color .17s, box-shadow .2s;
  text-shadow: none;
  box-shadow: 0 1.5px 6px rgba(208,173,97,.06);
  font-weight: 700;
}
.button:hover, .button:focus {
  background: var(--vintage-mint);
  color: var(--primary);
}
.button:active {
  background: var(--primary);
  color: #fff;
}
nav a.button {
  margin: 0;
}

.mobile-menu-toggle {
  display: none;
  background: var(--vintage-orange);
  color: #fff;
  font-size: 1.79em;
  line-height: 1;
  border-radius: 8px;
  border: 2px solid var(--secondary);
  width: 40px;
  height: 40px;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  margin-left: auto;
  margin-right: 6px;
  box-shadow: 0 2px 8px rgba(34,52,71,0.06);
  transition: background .17s, color .17s;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: var(--vintage-mint);
  color: var(--primary);
}
@media (max-width: 992px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
}

/* MOBILE MENU & ANIMATION */
.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: var(--vintage-cream);
  box-shadow: 0 12px 48px 0 rgba(34,52,71,0.25);
  transform: translateX(-100vw);
  z-index: 999;
  opacity: 0;
  transition: transform .34s cubic-bezier(.42,0,.58,1), opacity .22s;
}
.mobile-menu.open {
  transform: translateX(0px);
  opacity: 1;
}
.mobile-menu-close {
  background: var(--vintage-red);
  color: #fff;
  font-size: 2.2rem;
  border-radius: 10px;
  border: none;
  margin: 24px 0 9px 20px;
  padding: 4px 14px;
  cursor: pointer;
  align-self: flex-start;
  box-shadow: 0 1px 4px rgba(178,74,61,0.13);
  transition: background .13s, color .13s;
  z-index: 2;
}
.mobile-menu-close:hover {
  background: var(--vintage-orange);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  width: 100%;
  gap: 7px;
  margin-top: 22px;
  padding-left: 40px;
}
.mobile-nav a {
  font-family: 'Oswald', Arial, sans-serif;
  font-size: 1.32rem;
  color: var(--primary);
  padding: 13px 0;
  border-bottom: 1px solid var(--secondary);
  width: 90%;
  transition: background .13s, color .13s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--vintage-mint);
  color: var(--vintage-red);
}

/* FOOTER */
footer {
  background: var(--primary);
  color: #fff;
  margin-top: 50px;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 16px;
  font-family: 'Oswald', Arial, Helvetica, sans-serif;
  color: var(--secondary);
  margin-bottom: 20px;
}
.footer-brand img {
  width: 38px;
  height: auto;
  filter: drop-shadow(1.5px 1.5px 0px var(--secondary));
}
.footer-contact h3, .footer-links h3, .footer-social h3 {
  font-family: 'Oswald', Arial, sans-serif;
  font-size: 1.12em;
  color: var(--secondary);
  margin-bottom: 10px;
  margin-top: 0;
  letter-spacing: 0.03em;
  text-shadow: none;
}
.footer-contact ul, .footer-links nav {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.footer-contact li, .footer-links a {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1em;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
}
.footer-links nav {
  gap: 5px;
  margin-top: 6px;
}
.footer-links a {
  color: var(--secondary);
  transition: color .15s;
}
.footer-links a:hover, .footer-links a:focus {
  color: var(--vintage-mint);
}
.footer-social {
  display: flex;
  flex-direction: column;
  gap: 7px;
  align-items: flex-start;
}
.footer-social a {
  display: inline-block;
  margin-right: 8px;
  margin-bottom: 2px;
}
.footer-social img {
  width: 28px;
  height: 28px;
  filter: grayscale(0.4) brightness(1.14) drop-shadow(1px 0px 0px var(--secondary));
  transition: filter .16s;
}
.footer-social a:hover img {
  filter: none;
}

/* CONTACT INFO LIST */
.contact-info li {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 1.05em;
  margin-bottom: 12px;
  color: var(--primary);
  opacity: 1;
}
.contact-info img {
  width: 22px;
  height: 22px;
}

/* BLOG META */
.blog-meta {
  display: block;
  color: var(--vintage-orange);
  font-size: .97em;
  font-family: 'Oswald', Arial, sans-serif;
  margin: 4px 0 5px 0;
}

/* BUTTON & ANIMATION INTERACTIONS */
.button,
.button.button-primary,
button {
  outline: none;
  box-shadow: 0 1px 4px rgba(34,52,71,0.07) inset;
  transition: background .15s, color .14s, transform .14s, box-shadow .16s;
}
.button:active {
  transform: scale(0.98);
}
.button:focus {
  box-shadow: 0 0 0 2px var(--vintage-mint); 
}

/* SPECIAL ELEMENTS */
ul, ol {
  margin: 0 0 18px 18px;
  padding: 0 0 0 8px;
  list-style: disc outside;
}
ul li, ol li {
  margin-bottom: 6px;
  font-size: 1em;
  color: var(--primary);
  line-height: 1.6;
}
ul li img {
  margin-right: 7px;
}

dt { font-weight: bold; }
dd { margin-bottom: 10px; }

/* TABLES */
table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  margin-bottom: 18px;
}
th, td {
  text-align: left;
  padding: 11px 7px;
  border-bottom: 1.5px solid var(--vintage-mint);
}
th {
  background: var(--secondary);
  color: var(--primary);
}

/* RESPONSIVE & MOBILE FLEXBOX LAYOUTS */
@media (max-width: 1200px) {
  .container {
    max-width: 99vw; 
  }
  .footer-container, .header-bar {
    flex-wrap: wrap;
  }
}
@media (max-width: 992px) {
  .footer-container {
    flex-direction: column;
    gap: 20px;
  }
  .footer-contact, .footer-links, .footer-social {
    margin-top: 4px;
  }
}
@media (max-width: 768px) {
  .header-bar, .footer-container, .feature-grid, .service-grid, .case-study-grid, .posts-grid, .resource-list, .team-bios, .testimonial-slider, .content-grid {
    flex-direction: column;
    gap: 20px;
    align-items: stretch;
  }
  .section {
    padding: 36px 8px;
    margin-bottom: 38px;
  }
  .card, .text-section, .feature-item, .service-item, .testimonial-card {
    min-width: unset;
    width: 100%;
  }
  .text-image-section {
    flex-direction: column;
    gap: 18px;
    align-items: center;
  }
  .newsletter-placeholder {
    text-align: center;
    padding: 10px 2px 0 2px;
  }
}

/* COOKIE CONSENT: BANNER AND MODAL */
.cookie-banner {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100vw;
  background: var(--vintage-cream);
  color: var(--primary);
  box-shadow: 0 -4px 22px rgba(34,52,71,0.13);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 17px 6vw 15px 18px;
  font-size: 1.12em;
  border-top: 1.5px solid var(--secondary);
  animation: slideInUp 0.6s cubic-bezier(.42,0,.58,1);
}
@keyframes slideInUp {
  0% {transform: translateY(80px); opacity: 0;}
  100% {transform: translateY(0); opacity: 1;}
}
.cookie-banner .button, .cookie-banner .button-primary {
  margin: 0 6px 0 0;
  min-width: 120px;
}
.cookie-banner .button-primary {
  background: var(--vintage-orange);
  color: #fff;
}
.cookie-banner .button-primary:hover {
  background: var(--vintage-red);
}
/** Hide on accept **/
.cookie-banner[hidden] { display: none !important; }

/* COOKIE MODAL */
.cookie-modal {
  position: fixed;
  left: 50%;
  top: 50%;
  min-width: 350px;
  max-width: 98vw;
  width: 400px;
  background: #fff0de;
  color: var(--primary);
  border: 2px solid var(--vintage-orange);
  border-radius: 18px;
  box-shadow: 0 12px 38px rgba(194,108,46,0.30);
  padding: 28px 22px 18px 22px;
  z-index: 12000;
  transform: translate(-50%, -50%) scale(0.97);
  opacity: 0;
  pointer-events: none;
  transition: opacity .29s, transform .34s cubic-bezier(.39,.22,.41,1.11);
}
.cookie-modal.open {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, -50%) scale(1);
}
.cookie-modal h3 {
  margin-bottom: 14px;
  color: var(--vintage-red);
  text-shadow: 0 1px 0 var(--vintage-cream);
  font-size: 1.25rem;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  font-size: 1.02em;
}
.cookie-checkbox {
  width: 22px;
  height: 22px;
  accent-color: var(--vintage-orange);
}
.cookie-category-label {
  color: var(--primary);
}
.cookie-category-essential {
  font-weight: bold;
  color: var(--vintage-mint);
}
.cookie-modal .button {
  margin-top: 7px;
  min-width: 120px;
}
.cookie-modal .close-modal {
  background: var(--vintage-red);
  color: #fff;
  float: right;
  width: 1.3em;
  height: 1.3em;
  border-radius: 50%;
  font-family: inherit;
  font-size: 1.22em;
  border: none;
  cursor: pointer;
  margin-right: 3px;
  margin-bottom: 10px;
}

/* MODAL OVERLAY */
.cookie-modal-overlay {
  position: fixed;
  left: 0; top: 0; right: 0; bottom: 0;
  width: 100vw; height: 100vh;
  background: rgba(34,52,71,0.14);
  z-index: 11000;
  display: none;
}
.cookie-modal.open + .cookie-modal-overlay {
  display: block;
}

/* VINTAGE RETRO PATTERN HINTS (SUBTLE STRIPING/BG) */
body {
  background:
  repeating-linear-gradient(135deg, var(--vintage-cream), var(--vintage-cream) 28px, #fbeee2 30px, #fbeee2 45px);
}
header, footer {
  background-image: repeating-linear-gradient(135deg, #223447, #223447 25px, #26374a 27px, #223447 52px);
  background-size: 90px 54px;
}
.text-section, .card, .feature-item, .service-item, .testimonial-card {
  background: var(--vintage-cream) url("data:image/svg+xml,%3Csvg width='76' height='76' viewBox='0 0 76 76' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Crect width='76' height='76' fill='%23F1E6D5'/%3E%3Cellipse cx='38' cy='38' rx='27' ry='27' fill='%23D0AD61' fill-opacity='0.07'/%3E%3C/svg%3E") repeat;
}

/* SCROLLBAR RETRO STYLING */
::-webkit-scrollbar {
  width: 12px;
  background: var(--vintage-cream);
}
::-webkit-scrollbar-thumb {
  background: var(--vintage-mint);
  border-radius: 8px;
}

/* MISC (accessibility/readability) */
.testimonial-card p, .testimonial-author, .rating {
  color: var(--text-dark);
  background: transparent;
}

/* Hide outline except keyboard focus (improved accessibility) */
:focus:not(:focus-visible) {
  outline: none;
}
:focus-visible {
  outline: 2.5px solid var(--vintage-mint);
  outline-offset: 2.5px;
}

/********************************************************/
/*                   END OF CSS FILE                    */
/********************************************************/