/* RESET & BASE --------------------------------------------------------- */
html {
  box-sizing: border-box;
  font-size: 16px;
  scroll-behavior: smooth;
}
*, *:before, *:after {
  box-sizing: inherit;
}
body {
  margin: 0;
  padding: 0;
  background: #F7F5EC; /* Soft vintage paper tone */
  color: #322F24;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  min-height: 100vh;
}
img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
  border: none;
}
a {
  color: #764732;
  text-decoration: none;
  transition: color .2s;
}
a:hover {
  color: #ae7c5b;
  text-decoration: underline;
}
ul, ol {
  padding-left: 1.6em;
}
ul, ol {
  margin: 0 0 1.5em 0;
}
h1, h2, h3, h4, h5, h6 {
  margin: 0 0 .8em 0;
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-weight: 700;
  letter-spacing: 0.015em;
  color: #1E3A5C;
  line-height: 1.2;
}
h1 { font-size: 2.5rem; font-family: 'Montserrat', serif; }
h2 { font-size: 2rem; font-family: 'Montserrat', serif; }
h3 { font-size: 1.25rem; font-family: 'Montserrat', serif; }
h4 { font-size: 1.1rem; }
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: none;
}
.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 18px;
  width: 100%;
  display: flex;
  flex-direction: column;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: flex-start;
  width: 100%;
}
.text-section {
  background: #F9F6F2;
  padding: 24px 20px;
  border-radius: 12px;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(130,92,61,0.08);
}

/* BRAND PATTERNS ------------------------------------------------------ */
body {
  /* subtle retro pattern overlay */
  background-image: url('data:image/svg+xml;utf8,<svg width="60" height="60" viewBox="0 0 60 60" fill="none" xmlns="http://www.w3.org/2000/svg"><rect fill="%23F9F6F2" width="60" height="60"/><ellipse cx="60" cy="60" rx="8" ry="8" fill="%23D6C29A" /><ellipse cx="0" cy="0" rx="7" ry="7" fill="%23AECBBC" /></svg>');
  background-repeat: repeat;
  background-size: 80px 80px;
}

/* HEADER -------------------------------------------------------------- */
header {
  background: #F6EFE4;
  border-bottom: 2px solid #D6C29A;
  position: sticky;
  top: 0;
  z-index: 90;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 80px;
}
header a img {
  height: 48px;
  transition: filter 0.2s;
}
header a img:hover {
  filter: hue-rotate(-12deg) brightness(0.9) sepia(0.15);
}

.main-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
}
.main-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  color: #322F24;
  letter-spacing: .04em;
  padding: 6px 10px;
  border-radius: 6px;
  transition: background .25s, color .15s;
  position: relative;
}
.main-nav a:hover {
  background: #D6C29A;
  color: #1E3A5C;
}
.main-nav .btn-primary {
  background: #B94C21;
  color: #fff;
  padding: 10px 26px;
  border-radius: 24px;
  font-weight: 700;
  font-size: 1.08rem;
  box-shadow: 0 4px 16px rgba(185,76,33,0.08);
  margin-left: 10px;
  transition: background .21s;
  border: none;
}
.main-nav .btn-primary:hover {
  background: #7A3520;
  color: #fff !important;
}

/* MOBILE MENU --------------------------------------------------------- */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2.3rem;
  color: #B94C21;
  padding: 8px 16px;
  cursor: pointer;
  border-radius: 50%;
  transition: background .15s;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: #D6C29A;
  outline: none;
}
.mobile-menu {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #F6EFE4;
  z-index: 150;
  transform: translateX(-105vw);
  transition: transform .33s cubic-bezier(.8,0,.2,1);
  box-shadow: 3px 0 16px rgba(130,92,61,0.13);
}
.mobile-menu.active {
  transform: translateX(0);
}
.mobile-menu-close {
  font-size: 2rem;
  background: none;
  border: none;
  color: #B94C21;
  padding: 18px;
  align-self: flex-end;
  cursor: pointer;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 22px;
  width: 100%;
  padding: 31px 30px;
}
.mobile-nav a {
  padding: 10px 6px;
  font-size: 1.2rem;
  color: #1E3A5C;
  font-family: 'Montserrat', Arial, sans-serif;
  letter-spacing: .03em;
  border-radius: 6px;
  transition: background .2s, color .15s;
  border-bottom: 1px solid #DBC09B;
}
.mobile-nav a:last-child {
  border-bottom: none;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #D6C29A;
  color: #322F24;
}

/* HIDE/SHOW NAV FOR MOBILE -------------------------------------------- */
@media (max-width: 992px) {
  .main-nav { display: none; }
  .mobile-menu-toggle { display: block; }
}
@media (min-width: 993px) {
  .mobile-menu { display: none !important; }
}

/* HERO SECTION -------------------------------------------------------- */
.hero-section {
  background: #E5D5B4;
  background-image: url('data:image/svg+xml;utf8,<svg width="160" height="60" viewBox="0 0 160 60" fill="none" xmlns="http://www.w3.org/2000/svg"><ellipse cx="120" cy="60" rx="23" ry="22" fill="%23AECBBC" opacity=".23"/><ellipse cx="0" cy="8" rx="18" ry="10" fill="%23D6C29A" opacity=".13"/></svg>');
  background-repeat: repeat-x;
  background-position: left bottom;
  padding: 56px 0 46px 0;
  margin-bottom: 60px;
}
.hero-section .container {
  align-items: center;
  justify-content: center;
}
.hero-section .content-wrapper {
  align-items: flex-start;
  gap: 18px;
  max-width: 680px;
}
.hero-section h1 {
  color: #B94C21;
  font-size: 2.3rem;
  font-family: 'Montserrat', serif;
  text-shadow: 1px 1px 0 #fff8, 0 3px 12px #B94C2118;
  margin-bottom: .3em;
  letter-spacing: .03em;
}
.hero-section p {
  font-size: 1.2rem;
  color: #322F24;
  margin-bottom: 18px;
}
.hero-section .btn-primary {
  margin-top: 8px;
}

/* BUTTONS ------------------------------------------------------------- */
.btn-primary, .main-nav .btn-primary, .mobile-nav .btn-primary {
  background: #B94C21;
  color: #fff !important;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  border: none;
  border-radius: 28px;
  padding: 13px 36px;
  outline: none;
  transition: background 0.23s, box-shadow 0.19s, color 0.13s;
  margin-top: 10px;
  box-shadow: 0 3px 16px rgba(185,76,33,0.10);
  cursor: pointer;
  letter-spacing: 0.04em;
  text-shadow: 0 1px 0 #0002;
}
.btn-primary:focus, .btn-primary:hover {
  background: #1E3A5C;
  color: #FFE0D3;
  box-shadow: 0 2px 22px 0 rgba(48,30,19,0.13);
  outline: none;
}

/* FLEXBOX LAYOUTS ----------------------------------------------------- */
.feature-grid, .team-grid, .industry-grid, .service-list, .pricing-grid, .case-grid, .blog-feed {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 24px;
  justify-content: flex-start;
}
.feature-grid > div, .team-grid > div, .industry-grid > div, .service-list > div, .pricing-grid > div, .case-grid > div, .blog-feed > article {
  background: #FAF6EE;
  border-radius: 14px;
  padding: 28px 18px;
  min-width: 250px;
  flex: 1 1 270px;
  box-shadow: 0 2px 8px 0 rgba(47,30,19,.09);
  margin-bottom: 20px;
  border: 1.5px solid #E5D5B4;
  transition: box-shadow .19s, border-color .18s;
  position: relative;
}
.feature-grid > div:hover, .team-grid > div:hover, .industry-grid > div:hover, .service-list > div:hover, .pricing-grid > div:hover, .case-grid > div:hover, .blog-feed > article:hover {
  border-color: #B94C21;
  box-shadow: 0 8px 32px 0 rgba(185,76,33,.10);
  z-index: 2;
}
.feature-grid img, .team-grid img, .industry-grid img, .service-list img {
  width: 44px;
  margin-bottom: 17px;
}

/* CARD CONTAINERS ----------------------------------------------------- */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  background: #FAF6EE;
  border-radius: 14px;
  padding: 24px 18px;
  box-shadow: 0 1.5px 8px 0 rgba(47,30,19,0.08);
  transition: box-shadow .2s;
  position: relative;
}
.card:hover {
  box-shadow: 0 7px 23px 0 rgba(47,30,19,0.14);
  z-index: 1;
}
.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 !important; align-items: flex-start; }
}

/* SECTION STYLES ------------------------------------------------------ */
section {
  margin-bottom: 60px;
  padding: 40px 20px;
  border-radius: 12px;
  background: none;
}
.cta-section {
  background: #D6C29A;
  border: 1px solid #B94C21;
  border-radius: 14px;
  box-shadow: 0 2px 14px 0 rgba(130,92,61,0.08);
  margin-bottom: 60px;
}
.cta-section h2 {
  color: #B94C21;
  letter-spacing: .02em;
}
.cta-section p {
  font-size: 1.2rem;
}

/* PRICING & FAQ ------------------------------------------------------- */
.pricing-grid {
  gap: 28px;
}
.pricing-grid > div {
  border: 2.5px dashed #D6C29A;
  background: #FCF7E9;
  text-align: center;
  transition: border-color .18s;
}
.pricing-grid > div:hover {
  border-color: #B94C21;
}
.pricing-grid h3 {
  color: #1E3A5C;
  font-size: 1.32rem;
}
.pricing-grid ul {
  text-align: left;
  margin: 1.5em 0 0 0;
  color: #764732;
}
.pricing-hint {
  margin-top: 14px;
  font-size: 0.97rem;
  color: #815D27;
}
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.faq-list > div {
  border-bottom: 1.5px dotted #D6C29A;
  padding-bottom: 16px;
}
.faq-list > div:last-child {
  border-bottom: none;
}

/* BLOG FEED --------------------------------------------------------- */
.blog-feed {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 24px;
  justify-content: flex-start;
}
.blog-feed article {
  background: #FAF6EE;
  border-radius: 12px;
  padding: 26px 17px;
  min-width: 260px;
  flex: 1 1 270px;
  box-shadow: 0 2px 10px 0 rgba(47,30,19,0.09);
  border: 1px solid #E5D5B4;
  transition: border-color .18s, box-shadow .18s;
}
.blog-feed article:hover {
  border-color: #B94C21;
  box-shadow: 0 6px 22px 0 rgba(185,76,33,0.12);
}

/* TESTIMONIALS -------------------------------------------------------- */
.testimonials-section {
  background: #E8EBDD;
  border-radius: 18px;
  margin-bottom: 60px;
}
.testimonials-section .testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 26px;
  margin-bottom: 22px;
  background: #fff;
  border: 2px solid #D6C29A;
  border-radius: 14px;
  box-shadow: 0 3px 18px 0 rgba(60,41,22,0.09);
  color: #1E3A5C;
  position: relative;
}
.testimonials-section .testimonial-card p {
  font-size: 1.15rem;
  color: #322F24;
  font-style: italic;
  margin: 0 0 8px 0;
}
.testimonials-section .testimonial-card strong {
  font-size: 1rem;
  color: #7A3520;
  font-family: 'Montserrat', Arial, sans-serif;
  letter-spacing: .03em;
}

/* FOOTER -------------------------------------------------------------- */
footer {
  background: #1E3A5C;
  color: #fff;
  margin-top: 60px;
  border-top: 8px double #D6C29A;
}
footer .container {
  flex-direction: column;
  gap: 26px;
  justify-content: flex-start;
  align-items: flex-start;
  padding: 32px 24px;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin-bottom: 16px;
}
.footer-nav a {
  color: #D6C29A;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  padding: 6px 10px;
  border-radius: 4px;
  transition: background .19s, color .12s;
}
.footer-nav a:hover { background: #B94C21; color: #fff; }
.footer-info {
  display: flex;
  align-items: flex-start;
  gap: 18px;
}
.footer-info img {
  height: 46px;
}
.footer-info > div p {
  margin: 0 0 7px 0;
  display: flex;
  align-items: center;
  gap: 7px;
  color: #E5D5B4;
  font-size: 0.98rem;
}
.legal {
  font-size: 0.92em;
  color: #D6C29A;
  padding-top: 8px;
  border-top: 1px dashed #D6C29A;
  width: 100%;
  margin-top: 10px;
  text-align: left;
}

/* UTILITIES ----------------------------------------------------------- */
.statistics {
  display: flex;
  gap: 20px;
  margin-top: 18px;
}
.statistics > div {
  background: #F9F6F2;
  border-radius: 8px;
  padding: 11px 22px;
  color: #1E3A5C;
  font-family: 'Montserrat', sans-serif;
  font-size: 1.14rem;
  font-weight: 600;
  box-shadow: 0 1px 6px 0 rgba(47,30,19,0.07);
}
.benefit-grid {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.qualifications {
  margin-top: 10px;
  font-size: 0.99rem;
  color: #7A3520;
  letter-spacing: .03em;
}
.next-steps {
  background: #E5D5B4;
  border-radius: 12px;
  padding: 16px 14px;
  margin: 10px 0 14px 0;
}
.contact-details p, .map p {
  margin: 0 0 9px 0;
}

/* RESPONSIVE STYLES --------------------------------------------------- */
@media (max-width: 1210px) {
  .container { max-width: 98vw; }
}
@media (max-width: 992px) {
  html { font-size: 15px; }
  .hero-section .content-wrapper { max-width: 92vw; }
}
@media (max-width: 900px) {
  .feature-grid, .team-grid, .industry-grid, .service-list, .blog-feed, .pricing-grid, .case-grid {
    gap: 17px;
  }
}
@media (max-width: 768px) {
  body { font-size: 0.99rem; }
  header .container { flex-direction: row; padding: 0 10px; }
  .container, .footer .container, main .container { padding: 0 7px; }
  section, .cta-section, .testimonials-section { padding: 22px 4px; }
  h1 { font-size: 2rem; }
  h2 { font-size: 1.38rem; }
  .feature-grid, .team-grid, .industry-grid, .service-list, .blog-feed, .pricing-grid, .case-grid {
    flex-direction: column;
    gap: 16px;
  }
  .footer-info { flex-direction: column; gap: 8px; }
  .cta-section, .testimonials-section { margin-bottom: 44px; }
  .content-wrapper { gap: 12px; }
  .statistics {
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
  }
  .testimonial-card {
    flex-direction: column;
    gap: 13px;
    padding: 13px 8px;
  }
}
@media (max-width: 480px){
  html { font-size: 14px; }
  .btn-primary, .main-nav .btn-primary { padding: 10px 19px; font-size: 1rem; min-width: 75%; }
}

/* ANIMATIONS ---------------------------------------------------------- */
.hero-section, .cta-section, .testimonials-section, .feature-grid > div, .team-grid > div, .industry-grid > div, .service-list > div, .pricing-grid > div, .blog-feed article, .case-grid > div {
  transition: box-shadow .22s, border-color .20s, background .21s, filter .13s;
}
.mobile-menu, .mobile-menu.active {
  transition: transform .27s cubic-bezier(.72,0,.23,1);
}

/* LIST STYLING -------------------------------------------------------- */
ul li {
  margin-bottom: 10px;
  position: relative;
  padding-left: 1em;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
}
ul li::before {
  content: '\25A0';
  color: #B94C21;
  display: inline-block;
  width: 1em;
  margin-left: -1em;
  font-size: 1em;
  font-weight: 900;
  vertical-align: middle;
  opacity: 0.45;
}
ol li {
  margin-bottom: 10px;
  font-size: 1rem;
}

/* MICROINTERACTIONS --------------------------------------------------- */
.feature-grid > div:active,
.team-grid > div:active,
.industry-grid > div:active,
.service-list > div:active,
.pricing-grid > div:active,
.blog-feed article:active {
  filter: brightness(.98) sepia(.23);
  box-shadow: 0 1.5px 12px rgba(185,76,33,0.15);
}

/* FOCUS STATES -------------------------------------------------------- */
a:focus, .btn-primary:focus, button:focus {
  outline: 3px dashed #B94C21;
  outline-offset: 2.5px;
}
.mobile-menu-close:focus {
  outline: 2px solid #B94C21;
}

/* COOKIE CONSENT BANNER ----------------------------------------------- */
.cookie-consent-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 350;
  background: #322F24;
  color: #F9F6F2;
  padding: 22px 18px 19px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  box-shadow: 0 -2px 24px 0 rgba(47,30,19,0.14);
  font-size: 1.02rem;
  border-radius: 16px 16px 0 0;
  animation: cookie-slidein .6s cubic-bezier(.44,0,.16,1);
}
@keyframes cookie-slidein {
  0% {
    transform: translateY(110%); opacity: 0;
  }
  80% { transform: translateY(-7px); }
  100% {
    transform: none; opacity: 1;
  }
}
.cookie-consent-banner .cookie-buttons {
  display: flex;
  flex-direction: row;
  gap: 15px;
  justify-content: center;
  margin-top: 2px;
}
.cookie-consent-banner button {
  background: #B94C21;
  color: #fff;
  border: none;
  border-radius: 20px;
  padding: 9px 22px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  margin: 0;
  cursor: pointer;
  transition: background .19s, color .12s;
  box-shadow: 0 2px 8px 0 rgba(47,30,19,0.12);
}
.cookie-consent-banner button:hover, .cookie-consent-banner button:focus {
  background: #7A3520;
}
.cookie-consent-banner .cookie-settings-btn {
  background: #1E3A5C;
  color: #FFF;
}
.cookie-consent-banner .cookie-settings-btn:hover {
  background: #AECBBC;
  color: #7A3520;
}
/* Cookie Modal */
.cookie-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(30,23,17,0.58);
  z-index: 390;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: modal-fadein .32s cubic-bezier(.63,0,.26,1);
}
@keyframes modal-fadein {
  0% { opacity: 0; }
  100% { opacity: 1; }
}
.cookie-modal {
  background: #F9F6F2;
  color: #1E3A5C;
  border-radius: 16px;
  box-shadow: 0 12px 80px 0 rgba(47,30,19,0.23);
  padding: 38px 32px 28px 32px;
  max-width: 92vw;
  width: 410px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
  animation: modal-in .44s cubic-bezier(.62,0,.26,1) forwards;
}
@keyframes modal-in {
  0% { transform: scale(0.85); opacity: 0; }
  95% { transform: scale(1.035); }
  100% { transform: scale(1); opacity: 1; }
}
.cookie-modal-close {
  position: absolute;
  top: 12px;
  right: 18px;
  background: none;
  border: none;
  color: #B94C21;
  font-size: 1.8rem;
  cursor: pointer;
}
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 17px;
  margin: 14px 0;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
}
.cookie-category input[type='checkbox'] {
  accent-color: #1E3A5C;
  width: 18px;
  height: 18px;
}
.cookie-category label {
  font-weight: 600;
  color: #322F24;
  font-family: 'Montserrat', Arial, sans-serif;
}
.cookie-modal .essential {
  color: #B94C21;
  font-weight: bold;
  font-size: 1.05em;
  margin-left: 5px;
}
.cookie-modal .save-btn {
  background: #B94C21;
  color: #fff;
  border-radius: 16px;
  padding: 10px 30px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  margin-top: 18px;
  cursor: pointer;
  border: none;
  transition: background .13s;
}
.cookie-modal .save-btn:hover, .cookie-modal .save-btn:focus {
  background: #7A3520;
}
@media (max-width: 480px) {
  .cookie-modal { padding: 20px 7px 18px 7px; width: 98vw; }
}

/* VINTAGE RETRO ELEMENTS ---------------------------------------------- */
h1, h2, h3, .main-nav a, .btn-primary, .footer-nav a {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
}
body, .text-section, p, ul, ol, label, input, .footer-info p {
  font-family: 'Roboto', Arial, sans-serif;
}

/* RETRO SHADOWS & BORDERS --------------------------------------------- */
.feature-grid > div, .team-grid > div, .industry-grid > div, .service-list > div, .pricing-grid > div, .card, .testimonial-card, .case-grid > div, .blog-feed article {
  border-width: 2px;
  border-style: solid;
  border-color: #D6C29A;
  box-shadow: 2px 3px 0 #AE7C5B22, 0 7px 23px 0 rgba(47,30,19,.09);
}

/* RETRO COLOR ACCENTS ------------------------------------------------- */
strong, b, .main-nav .btn-primary, .btn-primary {
  color: #B94C21;
  font-weight: bold;
}

/* FORMS --------------------------------------------------------------- */
input, select, textarea {
  border: 1.5px solid #D6C29A;
  border-radius: 8px;
  background: #FCF7E9;
  padding: 10px;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  color: #322F24;
  margin-bottom: 14px;
  width: 100%;
  box-sizing: border-box;
  transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus, textarea:focus {
  border-color: #B94C21;
  outline: none;
}
label {
  font-weight: 600;
  color: #322F24;
  margin-bottom: 7px;
  display: block;
  font-size: 1.01rem;
}

/* RETRO/NOSTALGIC UI MARKERS ------------------------------------------ */
h1::after, h2::after, .cta-section h2::after {
  content: '';
  display: block;
  width: 50px;
  height: 4px;
  background: #B94C21;
  opacity: .21;
  margin: 6px 0 14px 0;
  border-radius: 5px;
}

/* -------------------------------------------------------------------- */
/* END */
