/* --- CSS RESET & NORMALIZATION --- */
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 {
  height: 100%;
  font-size: 16px;
}
body {
  min-height: 100%;
  background: #F2F2F5;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  color: #3B3A30;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: #29565A;
  text-decoration: none;
}
a:hover, a:focus {
  text-decoration: underline;
}
ul, ol {
  padding-left: 1.25em;
}
li {
  margin-bottom: 10px;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'Arial Black', serif;
  font-weight: 700;
  letter-spacing: -0.5px;
  line-height: 1.15;
  color: #29565A;
  margin-bottom: 18px;
}
h1 {font-size: 2.5rem;}
h2 {font-size: 2rem;}
h3 {font-size: 1.35rem;}
h4, h5, h6 {font-size: 1rem;}
p, li, dt, dd {
  font-size: 1rem;
}
strong {font-weight: 700;}

/* --- RETRO COLOR PALETTE --- */
:root {
  --color-primary: #29565A;
  --color-secondary: #CE9C57;
  --color-accent: #F2F2F5;
  --color-brown: #775B39;
  --color-camel: #CEAE87;
  --color-darktext: #3B3A30;
  --color-lightbg: #F9F5EC;
  --color-cream: #FFF9E5;
  --color-shadow: rgba(64,44,20,0.12);
  --color-card-bg: #FFF9E5;
  --color-error: #BA2F2F;
}

/* --- TYPOGRAPHY: RETRO FEEL --- */
@import url('https://fonts.googleapis.com/css?family=Montserrat:700,400&display=swap');
@import url('https://fonts.googleapis.com/css?family=Open+Sans:400,600&display=swap');

body {
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  background: var(--color-accent);
  color: var(--color-darktext);
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'Arial Black', serif;
  color: var(--color-primary);
  text-shadow: 1px 1px 0 #FFF8E0,0px 2px 2px rgba(44,30,21,0.07);
}
h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.35rem; }


/* ------------------
   LAYOUT STRUCTURE
------------------- */
.container {
  max-width: 1172px;
  margin: 0 auto;
  padding: 0 18px;
  width: 100%;
}
header, footer, main, section, nav, article, aside {
  width: 100%;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--color-cream);
  border-radius: 20px;
  box-shadow: 0 6px 30px var(--color-shadow);
  position: relative;
}
main > section {
  margin-bottom: 60px;
  padding: 40px 0 40px 0;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
}
/* Inner wrappers */
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.text-section {
  max-width: 620px;
  margin: 0 auto;
}

/* --- CARD CONTAINER --- */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 40px;
}
.card {
  position: relative;
  background: var(--color-card-bg);
  border-radius: 13px;
  box-shadow: 0 4px 18px var(--color-shadow);
  padding: 32px 24px 24px 24px;
  min-width: 280px;
  flex: 1 1 320px;
  margin-bottom: 20px;
  border: 2.5px solid var(--color-secondary);
  transition: box-shadow 0.17s, border-color 0.15s;
}
.card:hover {
  border-color: var(--color-primary);
  box-shadow: 0 7px 24px var(--color-shadow);
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
}

.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;
}

/* Testimonials & Feature Items */
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px 28px;
  background: var(--color-lightbg);
  border-radius: 14px;
  border: 2px dashed var(--color-secondary);
  box-shadow: 0 3px 14px var(--color-shadow);
  margin-bottom: 20px;
  color: #1a170b;
  max-width: 510px;
  font-size: 1.1rem;
  position: relative;
  z-index: 1;
}
.testimonial-card p {
  font-style: italic;
  font-size: 1.15rem;
  font-family: 'Open Sans', Arial, sans-serif;
  color: #2c2415;
}
.testimonial-card strong {
  font-family: 'Montserrat', Arial, serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-primary);
}
.testimonial-card span {
  letter-spacing: 2px;
  color: #FFD84A;
  font-family: inherit;
}

.star-rating-summary {
  margin-top: 8px;
  font-size: 1.2rem;
  color: var(--color-secondary);
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* --- RETRO Patterns & Visual Flair --- */
.section:before {
  content: "";
  display: block;
  position: absolute;
  top: -22px; left: 32px;
  width: 120px; height: 22px;
  background: repeating-linear-gradient(135deg, var(--color-secondary), var(--color-secondary) 8px,transparent 9px, transparent 16px);
  opacity: 0.18;
  border-radius: 13px 13px 0 0;
  z-index: 0;
  pointer-events: none;
}
.section:nth-child(even):before {
  left: auto; right: 32px; transform: scaleX(-1);
}


/* ---- HEADER / NAVIGATION ---- */
header {
  background: var(--color-primary);
  color: var(--color-accent);
  padding: 0;
  box-shadow: 0 4px 21px var(--color-shadow);
  position: sticky;
  top: 0;
  z-index: 1100;
}
.header-logo {
  padding: 16px 0 11px 0;
  display: flex;
  align-items: center;
}
.header-logo img {
  height: 46px;
  width: auto;
}
.main-nav {
  display: flex;
  gap: 18px;
  align-items: center;
  font-family: 'Montserrat', Arial, serif;
  font-size: 1rem;
  padding: 0 0 0 12px;
}
.main-nav a {
  color: var(--color-accent);
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 6px;
  transition: background 0.18s, color 0.17s;
}
.main-nav a:hover, .main-nav a:focus {
  background: var(--color-secondary);
  color: #2a1900;
}
.main-nav .nav-cta {
  background: var(--color-secondary);
  color: #2a1900;
  font-weight: 700;
  margin-left: 10px;
  padding: 9px 22px;
  border-radius: 24px 24px 8px 8px;
  box-shadow: 0 2px 11px var(--color-shadow);
}
.main-nav .nav-cta:hover, .main-nav .nav-cta:focus {
  background: #ffe4b5;
  color: var(--color-primary);
}

header {
  display: flex;
  flex-direction: column;
  gap: 0;
}
header > .header-logo {
  margin: 0 auto;
  width: 85%;
}
header > .main-nav {
  justify-content: center;
  margin-bottom: 0;
  margin-top: -5px;
}

/* --- MOBILE MENU --- */
.mobile-menu-toggle {
  display: none;
  position: absolute;
  top: 17px;
  right: 24px;
  background: var(--color-secondary);
  color: #2a1900;
  font-size: 2.1rem;
  border: none;
  border-radius: 10px;
  padding: 8px 16px;
  box-shadow: 0 2px 11px var(--color-shadow);
  cursor: pointer;
  z-index: 1200;
  transition: background 0.16s, color 0.13s;
}
.mobile-menu-toggle:active {
  background: var(--color-primary);
  color: #f7eddc;
}
.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: var(--color-primary);
  color: var(--color-accent);
  z-index: 2000;
  display: flex;
  flex-direction: column;
  transform: translateX(-100%);
  transition: transform 0.35s cubic-bezier(.77,0,.18,1);
  box-shadow: 2px 0 32px var(--color-shadow);
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: none;
  color: var(--color-secondary);
  font-size: 2.2rem;
  border: none;
  align-self: flex-end;
  padding: 24px 34px 18px 0;
  margin: 0;
  cursor: pointer;
  z-index: 2100;
  transition: color 0.16s;
}
.mobile-menu-close:hover { color: #FFFEC7; }
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin: 28px 0 0 36px;
  font-family: 'Montserrat', Arial, serif;
  font-size: 1.3rem;
}
.mobile-nav a {
  color: var(--color-accent);
  padding: 10px 0;
  border-radius: 7px;
  transition: background 0.14s, color 0.14s;
  min-width: 135px;
  font-weight: 400;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--color-secondary);
  color: #2a1900;
}

@media (max-width: 1024px) {
  .main-nav {
    font-size: 0.96rem;
    gap: 10px;
  }
}
@media (max-width: 900px) {
  .main-nav {
    gap: 7px;
  }
  header > .header-logo { width: 98%; }
}
@media (max-width: 768px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}

@media (min-width: 769px) {
  .mobile-menu, .mobile-menu-toggle {
    display: none !important;
  }
}


/* --- CTA BUTTONS --- */
.cta-btn {
  display: inline-block;
  background: var(--color-secondary);
  color: #3B270E;
  font-family: 'Montserrat', Arial, serif;
  font-weight: 700;
  font-size: 1.12rem;
  padding: 12px 32px;
  border: none;
  border-radius: 22px 22px 8px 8px;
  box-shadow: 0 2px 21px var(--color-shadow);
  margin-top: 20px;
  cursor: pointer;
  letter-spacing: 0.05em;
  transition: background 0.19s, color 0.13s, box-shadow 0.19s;
  outline: none;
}
.cta-btn:hover, .cta-btn:focus {
  background: #e8c274;
  color: var(--color-primary);
  box-shadow: 0 6px 30px var(--color-shadow);
  text-decoration: none;
}

/* --- ICONS in Lists --- */
ul li img,
ul li svg{
  display: inline-block;
  margin-right: 13px;
  vertical-align: middle;
  width: 28px;
  height: 28px;
}

/* --- PROJECT TILES --- */
.project-tiles {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  margin-bottom: 26px;
}
.project-tiles > div {
  flex: 1 1 260px;
  padding: 22px 20px 17px 20px;
  background: var(--color-lightbg);
  border-radius: 11px;
  box-shadow: 0 3px 14px var(--color-shadow);
  border: 1.7px solid var(--color-secondary);
  margin-bottom: 15px;
}
.project-tiles h3 {margin-bottom: 10px;}

.project-types-list ul {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  list-style: none;
  margin: 8px 0 15px 0;
  padding: 0;
}
.project-types-list li {
  padding: 7px 16px;
  border-radius: 8px;
  background: var(--color-accent);
  color: var(--color-primary);
  font-size: 1rem;
  border: 1.5px dashed var(--color-secondary);
  margin-bottom: 0;
}

/* --- SERVICE LIST --- */
.service-list h3 {
  font-size: 1.18rem;
  color: var(--color-brown);
  margin-top: 16px;
  margin-bottom: 10px;
}
.service-list ul {
  margin-left: 0;
  padding-left: 20px;
}
.service-list li {
  margin-bottom: 7px;
}

/* --- BLOG LIST / ARTICLES --- */
.blog-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 28px;
}
.blog-list article {
  background: var(--color-card-bg);
  border: 1.8px solid var(--color-secondary);
  border-radius: 11px;
  box-shadow: 0 3px 10px var(--color-shadow);
  padding: 22px 20px 15px 22px;
  flex: 1 1 270px;
  transition: border-color 0.14s, box-shadow 0.15s;
}
.blog-list article:hover {
  border-color: var(--color-primary);
  box-shadow: 0 8px 18px var(--color-shadow);
}
.blog-list h3 {margin-bottom: 9px;}

/* --- Blog Categories --- */
.blog-categories {
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.blog-categories strong {color: var(--color-brown); margin-right: 9px;}
.blog-categories ul {
  display: flex;flex-wrap: wrap;gap: 10px;margin: 0;padding: 0;list-style: none;
}
.blog-categories li {
  padding: 6px 15px;
  border-radius: 13px;
  background: var(--color-cream);
  color: var(--color-brown);
  font-size: 1rem;
  border: 1.3px solid var(--color-brown);
}

/* --- ADDRESS / CONTACT BLOCKS --- */
.address-block, .contact-information {
  background: var(--color-card-bg);
  border-radius: 10px;
  padding: 22px;
  margin-bottom: 24px;
  font-size: 1.05rem;
  color: var(--color-darktext);
}
.address-block strong, .contact-information strong {
  color: var(--color-primary);
}

/* --- FOOTER --- */
footer {
  background: var(--color-primary);
  color: var(--color-accent);
  padding: 48px 0 16px 0;
  font-size: 1rem;
  border-top-left-radius: 32px;
  border-top-right-radius: 32px;
  margin-top: 60px;
  box-shadow: 0 -10px 33px var(--color-shadow);
}
footer .container {
  display: flex;
  flex-wrap: wrap;
  gap: 36px;
  justify-content: space-between;
  align-items: flex-start;
}
.footer-logo img {
  height: 46px;
}
.footer-nav {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-nav a {
  color: var(--color-secondary);
  font-family: 'Montserrat', Arial, serif;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  padding: 5px 11px;
  border-radius: 8px;
  transition: background 0.16s, color 0.13s;
}
.footer-nav a:hover, .footer-nav a:focus {
  background: #ffe3b0;
  color: var(--color-primary);
}
.footer-contact {
  max-width: 280px;
  font-size: 1rem;
  margin-bottom: 8px;
}
.footer-social {
  display: flex;
  gap: 16px;
}
.footer-social img {
  height: 34px; width: 34px;
  background: var(--color-secondary);
  border-radius: 7px;
  padding: 4px;
  transition: background 0.15s, box-shadow 0.15s;
  box-shadow: 0 2px 10px var(--color-shadow);
}
.footer-social img:hover {
  background: #ffe3b0;
  box-shadow: 0 4px 18px var(--color-shadow);
}
.footer-brand {
  font-family: 'Montserrat', Arial, serif;
  font-size: 1rem;
  color: #e7e3d0;
  margin-top: 18px;
}

@media (max-width: 1100px) {
  footer .container {
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
  }
}

/* --- COOKIE CONSENT BANNER --- */
.cookie-consent-banner {
  position: fixed;
  left: 0; right: 0;
  bottom: 0;
  width: 100vw;
  background: var(--color-secondary);
  color: #2a1900;
  z-index: 3000;
  box-shadow: 0 -5px 39px var(--color-shadow);
  border-top: 2px solid var(--color-primary);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 24px 12px 22px 12px;
  font-size: 1.05rem;
  font-family: 'Open Sans', Arial, sans-serif;
  animation: bannerSlideUp 0.5s cubic-bezier(.77,0,.18,1);
}
@keyframes bannerSlideUp {
  from {transform: translateY(90px);opacity: 0;}
  to   {transform: translateY(0);opacity: 1;}
}
.cookie-consent-banner .cookie-text {
  flex: 1 1 240px;
  max-width: 580px;
  margin-right: 15px;
}
.cookie-consent-banner .cookie-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.cookie-btn {
  background: var(--color-primary);
  color: var(--color-accent);
  border: none;
  font-family: 'Montserrat', Arial, serif;
  font-weight: 600;
  border-radius: 20px;
  padding: 10px 25px;
  cursor: pointer;
  font-size: 1rem;
  transition: background 0.13s, color 0.13s;
  box-shadow: 0 2px 10px var(--color-shadow);
}
.cookie-btn:hover, .cookie-btn:focus {
  background: #3B776A;
  color: #ffe3b0;
}
.cookie-btn.reject {
  background: #BA2F2F;
  color: #FFF9E5;
  font-weight: 700;
}
.cookie-btn.reject:hover {background: #9A2424;}
.cookie-btn.settings {
  background: #fff9e5;
  color: #7d6532;
  border: 1.5px solid var(--color-primary);
}
.cookie-btn.settings:hover, .cookie-btn.settings:focus {
  background: var(--color-cream);
}

/* --- COOKIE SETTINGS MODAL --- */
.cookie-modal {
  position: fixed;
  left: 0; right: 0; top: 0; bottom: 0;
  background: rgba(41,86,90,0.81);
  z-index: 4000;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: modalFadeIn 0.4s cubic-bezier(.77,0,.18,1);
}
@keyframes modalFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.cookie-modal-content {
  background: var(--color-cream);
  color: #392f25;
  border-radius: 18px;
  box-shadow: 0 10px 36px var(--color-shadow);
  padding: 38px 22px 30px 32px;
  min-width: 330px; max-width: 95vw;
  max-width: 440px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 21px;
}
.cookie-modal-close {
  position: absolute;
  top: 21px; right: 25px;
  background: none;
  border: none;
  color: var(--color-primary);
  font-size: 2.1rem;
  cursor: pointer;
  transition: color 0.16s;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  color: #BA2F2F;
}
.cookie-modal-content h2 {
  margin-bottom: 14px;
  font-size: 1.38rem;
  color: var(--color-primary);
}
.cookie-options {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-bottom: 10px;
}
.cookie-option {
  display: flex;
  align-items: center;
  gap: 15px;
  font-size: 1.05rem;
}
.cookie-option .cookie-toggle {
  width: 30px; height: 17px;
  border-radius: 13px;
  background: #c9d2b5;
  border: none;
  appearance: none;
  transition: background 0.17s;
  position: relative;
  outline: none;
  vertical-align: middle;
}
.cookie-option .cookie-toggle:checked {
  background: var(--color-secondary);
}
.cookie-option .cookie-toggle::after {
  content: "";
  display: block;
  width: 15px; height: 15px;
  border-radius: 50%;
  background: #fff;
  position: absolute;
  left: 2px; top: 1px;
  transition: left 0.14s;
  box-shadow: 0 1px 4px var(--color-shadow);
}
.cookie-option .cookie-toggle:checked::after {
  left: 13px;
}

/* --- MODAL CTA BUTTONS --- */
.cookie-modal-content .cookie-btn {
  width: 100%;
  margin-top: 13px;
}

/* --- Micro-interactions and Animations --- */
.cta-btn, .cookie-btn, .mobile-menu-toggle, .main-nav a, .footer-nav a, .footer-social img, .card, .blog-list article, .project-tiles > div, .testimonial-card {
  transition: box-shadow 0.18s, border-color 0.14s, background 0.18s, color 0.17s;
  outline: none;
}
.card:hover, .blog-list article:hover, .project-tiles > div:hover {
  transform: translateY(-3px) scale(1.027);
  box-shadow: 0 9px 32px var(--color-shadow);
}

/* --- Responsive Design (Mobile-First) --- */
@media (max-width: 900px) {
  .container {
    max-width: 99vw;
    padding: 0 6px;
  }
}
@media (max-width: 768px) {
  h1 { font-size: 1.7rem; }
  h2 { font-size: 1.3rem; }
  h3 { font-size: 1.08rem; }

  .section, main > section {
    padding: 24px 0;
    margin-bottom: 36px;
    border-radius: 14px;
  }
  .section:before { display: none; }

  .content-wrapper, .card-container, .feature-item, .content-grid, .blog-list {
    flex-direction: column;
    gap: 16px;
  }
  .testimonial-card {
    max-width: 98vw;
    font-size: 1rem;
    padding: 17px 9px 16px 13px;
    border-radius: 11px;
  }
  .project-tiles, .project-types-list ul {
    flex-direction: column;
    gap: 15px;
  }
  .footer-nav,.footer-social {
    gap: 8px;
  }
  footer .container {
    gap: 18px;
    padding: 0 2px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 19px;
    align-items: flex-start;
  }
  .mobile-menu {
    padding-top: 35px;
  }
}

@media (max-width: 520px) {
  h1 { font-size: 1.35rem; }
  h2 { font-size: 1.03rem; }
  .testimonial-card, .card {padding: 13px 7px;}
  .footer-logo img {height: 36px;}
  .footer-social img {height:28px; width:28px;}
  .cookie-modal-content {padding: 18px 5px 18px 12px;}
  .section, main > section {padding: 11px 0;}
}

/* --- FORMS (if needed, fallback styles) --- */
input, textarea, select {
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 1rem;
  padding: 10px 14px;
  border: 1.5px solid var(--color-primary);
  border-radius: 8px;
  background: var(--color-lightbg);
  margin-bottom: 14px;
  transition: border 0.13s;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--color-secondary);
  outline: none;
}

/* --- Accessibility: Focus ring --- */
:focus-visible {
  outline: 2.5px solid var(--color-secondary);
  outline-offset: 2px;
}

/* --- Special Utility Classes --- */
.mt-0 {margin-top: 0 !important;}
.mb-0 {margin-bottom: 0 !important;}
.hide {
  display: none !important;
}
.z-top {z-index: 5000 !important;}

/* --- END OF CSS --- */
