/* =========================
   VINTAGE RETRO THEME CSS
   BrightWay Crest
   ========================= */

/* 1. FONT IMPORTS (Vintage/Retro) */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@700&family=Open+Sans:wght@400;700&family=Roboto+Slab:wght@700&family=Quicksand:wght@700&display=swap');

:root {
  /* Brand Colors */
  --primary: #23495b;
  --secondary: #ffe84a;
  --accent: #f5f7fa;
  /* Vintage Retro Palette */
  --retro-orange: #e87d3e;
  --retro-blue: #4b7a8f;
  --retro-cream: #f7ecd7;
  --retro-brown: #a67c52;
  --retro-green: #7bb174;
  --retro-red: #d94f4f;
  /* Typography */
  --font-display: 'Montserrat', 'Roboto Slab', 'Quicksand', Arial, sans-serif;
  --font-body: 'Open Sans', Arial, sans-serif;
  /* Shadows */
  --shadow-card: 0 4px 16px rgba(35, 73, 91, 0.08), 0 1.5px 0 #ffe84a;
  --shadow-btn: 0 2px 8px rgba(35, 73, 91, 0.10);
  /* Patterns */
  --pattern-bg: repeating-linear-gradient(135deg, #ffe84a 0 2px, transparent 2px 20px);
}

html {
  box-sizing: border-box;
  font-size: 18px;
  scroll-behavior: smooth;
}
*, *:before, *:after {
  box-sizing: inherit;
}

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

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

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: rgba(255, 232, 74, 0.07);
  border-radius: 18px;
  box-shadow: var(--shadow-card);
}

/* ===============
   TYPOGRAPHY
   =============== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--primary);
  margin-top: 0;
  margin-bottom: 12px;
  letter-spacing: 0.02em;
}
h1 {
  font-size: 2.2rem;
  font-weight: 700;
  text-shadow: 1px 2px 0 #ffe84a, 0 2px 8px rgba(35,73,91,0.10);
}
h2 {
  font-size: 1.6rem;
  font-weight: 700;
  border-bottom: 3px dotted var(--retro-orange);
  display: inline-block;
  padding-bottom: 4px;
  margin-bottom: 18px;
}
h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--retro-orange);
  margin-bottom: 8px;
}
p, ul, ol {
  font-size: 1rem;
  color: var(--primary);
  margin-bottom: 12px;
}
strong {
  color: var(--retro-brown);
  font-weight: 700;
}

/* ===============
   HEADER & NAVIGATION
   =============== */
header {
  background: var(--primary);
  color: #fff;
  padding: 0;
  box-shadow: 0 2px 12px rgba(35,73,91,0.08);
  position: sticky;
  top: 0;
  z-index: 100;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 70px;
}
header img {
  height: 48px;
  margin-right: 24px;
}
.main-nav {
  display: flex;
  flex-direction: row;
  gap: 24px;
  align-items: center;
}
.main-nav a {
  color: #fff;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  padding: 6px 10px;
  border-radius: 6px;
  transition: background 0.2s, color 0.2s;
  position: relative;
}
.main-nav a:hover, .main-nav a:focus {
  background: var(--secondary);
  color: var(--primary);
  text-shadow: 0 1px 0 #fff;
}

.btn-primary, .btn-secondary {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  padding: 12px 32px;
  border-radius: 30px;
  border: none;
  cursor: pointer;
  box-shadow: var(--shadow-btn);
  transition: background 0.2s, color 0.2s, transform 0.15s;
  margin-left: 18px;
  text-decoration: none;
  letter-spacing: 0.04em;
}
.btn-primary {
  background: linear-gradient(90deg, var(--secondary) 80%, var(--retro-orange) 100%);
  color: var(--primary);
  border: 2px solid var(--primary);
}
.btn-primary:hover, .btn-primary:focus {
  background: var(--retro-orange);
  color: #fff;
  transform: translateY(-2px) scale(1.03);
}
.btn-secondary {
  background: var(--primary);
  color: var(--secondary);
  border: 2px solid var(--secondary);
}
.btn-secondary:hover, .btn-secondary:focus {
  background: var(--retro-blue);
  color: #fff;
  transform: translateY(-2px) scale(1.03);
}

/* ===============
   MOBILE NAVIGATION
   =============== */
.mobile-menu-toggle {
  display: none;
  background: var(--secondary);
  color: var(--primary);
  border: none;
  font-size: 2rem;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  margin-left: 18px;
  box-shadow: 0 2px 8px rgba(35,73,91,0.10);
  transition: background 0.2s, color 0.2s;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: var(--retro-orange);
  color: #fff;
}
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(35,73,91,0.97);
  color: #fff;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 0;
  transform: translateX(-100%);
  transition: transform 0.35s cubic-bezier(.77,0,.18,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(--secondary);
  font-size: 2.2rem;
  align-self: flex-end;
  margin: 24px 24px 0 0;
  cursor: pointer;
  transition: color 0.2s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: var(--retro-orange);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 28px;
  margin: 40px 0 0 36px;
}
.mobile-nav a {
  color: var(--secondary);
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  text-decoration: none;
  padding: 8px 0;
  border-bottom: 2px dotted var(--retro-orange);
  transition: color 0.2s, border-color 0.2s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: var(--retro-orange);
  border-bottom: 2px solid var(--retro-orange);
}

/* ===============
   HERO SECTION
   =============== */
.hero {
  background: linear-gradient(120deg, var(--secondary) 60%, var(--retro-orange) 100%);
  padding: 60px 0 40px 0;
  border-bottom: 6px double var(--retro-brown);
  box-shadow: 0 8px 32px rgba(35,73,91,0.07);
}
.hero .container {
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
}
.hero .content-wrapper {
  max-width: 700px;
  gap: 24px;
}
.hero h1 {
  color: var(--primary);
  font-size: 2.5rem;
  margin-bottom: 18px;
  text-shadow: 2px 2px 0 #fffbe7, 0 2px 8px rgba(35,73,91,0.10);
}
.hero p {
  color: var(--retro-brown);
  font-size: 1.15rem;
  margin-bottom: 18px;
}

/* ===============
   FLEXBOX GRIDS & CARDS
   =============== */
.feature-grid, .service-list, .service-grid, .feature-list, .blog-post-grid, .testimonial-slider, .testimonial-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 20px;
}
.feature-grid > div, .service-list > div, .service-grid > div, .feature-list > div, .blog-post-grid > div {
  background: #fffbe7;
  border-radius: 14px;
  box-shadow: var(--shadow-card);
  padding: 24px 20px;
  flex: 1 1 220px;
  min-width: 220px;
  margin-bottom: 0;
  border: 2px solid var(--retro-orange);
  position: relative;
  transition: box-shadow 0.2s, transform 0.15s;
}
.feature-grid > div:hover, .service-list > div:hover, .service-grid > div:hover, .feature-list > div:hover, .blog-post-grid > div:hover {
  box-shadow: 0 8px 32px rgba(232,125,62,0.13), 0 2px 0 var(--secondary);
  transform: translateY(-4px) scale(1.03);
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fffbe7;
  border-radius: 14px;
  box-shadow: var(--shadow-card);
  margin-bottom: 20px;
  position: relative;
  padding: 24px 20px;
  min-width: 220px;
}

.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;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* ===============
   TESTIMONIALS
   =============== */
.testimonial-slider, .testimonial-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 12px rgba(35,73,91,0.10);
  border-left: 8px solid var(--retro-orange);
  min-width: 240px;
  max-width: 350px;
  margin-bottom: 20px;
  transition: box-shadow 0.2s, transform 0.15s;
}
.testimonial-card p {
  color: var(--primary);
  font-size: 1.05rem;
  font-style: italic;
  margin-bottom: 8px;
}
.testimonial-card span {
  color: var(--retro-brown);
  font-size: 0.95rem;
  font-family: var(--font-display);
  font-weight: 700;
}
.testimonial-card:hover {
  box-shadow: 0 8px 32px rgba(232,125,62,0.13), 0 2px 0 var(--secondary);
  transform: translateY(-4px) scale(1.03);
}

/* ===============
   FOOTER
   =============== */
footer {
  background: var(--primary);
  color: #fff;
  padding: 40px 0 24px 0;
  border-top: 6px double var(--retro-brown);
}
footer .container {
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-nav a {
  color: var(--secondary);
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  transition: color 0.2s;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: var(--retro-orange);
}
.footer-contact {
  font-size: 0.98rem;
  color: #fff;
  font-family: var(--font-body);
  line-height: 1.6;
}

/* ===============
   BLOG & CATEGORIES
   =============== */
.blog-post-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.blog-post-grid > div {
  background: #fffbe7;
  border-radius: 14px;
  box-shadow: var(--shadow-card);
  padding: 24px 20px;
  flex: 1 1 220px;
  min-width: 220px;
  margin-bottom: 0;
  border: 2px solid var(--retro-green);
  position: relative;
  transition: box-shadow 0.2s, transform 0.15s;
}
.categories-filter {
  display: flex;
  flex-direction: row;
  gap: 18px;
  margin-top: 18px;
  font-family: var(--font-display);
  color: var(--retro-brown);
  font-size: 1rem;
}
.categories-filter span {
  background: var(--retro-green);
  color: #fff;
  border-radius: 8px;
  padding: 4px 14px;
  margin-right: 6px;
  font-weight: 700;
  letter-spacing: 0.03em;
}

/* ===============
   FAQ ACCORDION
   =============== */
.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.faq-accordion > div {
  background: #fffbe7;
  border-radius: 12px;
  box-shadow: var(--shadow-card);
  padding: 18px 20px;
  border-left: 6px solid var(--retro-green);
  transition: box-shadow 0.2s, transform 0.15s;
}
.faq-accordion > div:hover {
  box-shadow: 0 8px 32px rgba(123,177,116,0.13), 0 2px 0 var(--secondary);
  transform: translateY(-2px) scale(1.01);
}

/* ===============
   PROJECT GALLERY & FILTERS
   =============== */
.project-gallery {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.project-filters {
  display: flex;
  flex-direction: row;
  gap: 18px;
  font-family: var(--font-display);
  color: var(--retro-brown);
  font-size: 1rem;
}
.project-filters span {
  background: var(--retro-blue);
  color: #fff;
  border-radius: 8px;
  padding: 4px 14px;
  margin-right: 6px;
  font-weight: 700;
  letter-spacing: 0.03em;
}

/* ===============
   COOKIE CONSENT BANNER
   =============== */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: var(--retro-brown);
  color: #fff;
  z-index: 99999;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 24px 18px;
  box-shadow: 0 -2px 16px rgba(35,73,91,0.13);
  gap: 20px;
  animation: cookieBannerIn 0.5s cubic-bezier(.77,0,.18,1);
}
@keyframes cookieBannerIn {
  from { transform: translateY(100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.cookie-banner p {
  margin: 0;
  font-size: 1rem;
  color: #fff;
}
.cookie-banner .cookie-actions {
  display: flex;
  flex-direction: row;
  gap: 14px;
}
.cookie-banner button {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  border-radius: 20px;
  border: none;
  padding: 10px 22px;
  cursor: pointer;
  margin: 0;
  transition: background 0.2s, color 0.2s, transform 0.15s;
}
.cookie-banner .accept {
  background: var(--retro-green);
  color: #fff;
}
.cookie-banner .accept:hover, .cookie-banner .accept:focus {
  background: var(--secondary);
  color: var(--primary);
}
.cookie-banner .reject {
  background: var(--retro-red);
  color: #fff;
}
.cookie-banner .reject:hover, .cookie-banner .reject:focus {
  background: var(--retro-orange);
  color: #fff;
}
.cookie-banner .settings {
  background: var(--secondary);
  color: var(--primary);
}
.cookie-banner .settings:hover, .cookie-banner .settings:focus {
  background: var(--retro-blue);
  color: #fff;
}

/* Cookie Modal */
.cookie-modal-overlay {
  position: fixed;
  left: 0; right: 0; top: 0; bottom: 0;
  background: rgba(35,73,91,0.85);
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: cookieModalIn 0.4s cubic-bezier(.77,0,.18,1);
}
@keyframes cookieModalIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.cookie-modal {
  background: #fffbe7;
  color: var(--primary);
  border-radius: 18px;
  box-shadow: 0 8px 32px rgba(35,73,91,0.18);
  padding: 36px 28px 28px 28px;
  min-width: 320px;
  max-width: 95vw;
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: relative;
}
.cookie-modal h2 {
  color: var(--retro-orange);
  font-size: 1.3rem;
  margin-bottom: 12px;
  border: none;
}
.cookie-modal .cookie-category {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 16px;
  margin-bottom: 10px;
}
.cookie-modal .cookie-category label {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--primary);
  font-weight: 700;
}
.cookie-modal .cookie-category input[type="checkbox"] {
  accent-color: var(--retro-green);
  width: 22px;
  height: 22px;
}
.cookie-modal .cookie-category .always-on {
  color: var(--retro-brown);
  font-size: 0.95rem;
  font-weight: 700;
  margin-left: 8px;
}
.cookie-modal .cookie-modal-actions {
  display: flex;
  flex-direction: row;
  gap: 14px;
  margin-top: 18px;
}
.cookie-modal .close-modal {
  position: absolute;
  top: 14px;
  right: 18px;
  background: none;
  border: none;
  color: var(--retro-orange);
  font-size: 2rem;
  cursor: pointer;
  transition: color 0.2s;
}
.cookie-modal .close-modal:hover, .cookie-modal .close-modal:focus {
  color: var(--retro-red);
}

/* ===============
   MISCELLANEOUS
   =============== */
.privacy-policy-text, .rodo-text, .cookies-policy-text, .terms-of-use-text {
  background: #fffbe7;
  border-radius: 14px;
  box-shadow: var(--shadow-card);
  padding: 24px 20px;
  margin-bottom: 20px;
  border: 2px solid var(--retro-blue);
}

.team-gallery {
  display: flex;
  flex-direction: column;
  gap: 18px;
  background: #fffbe7;
  border-radius: 14px;
  box-shadow: var(--shadow-card);
  padding: 24px 20px;
  margin-bottom: 20px;
  border: 2px solid var(--retro-green);
}

.contact-details, .map {
  background: #fffbe7;
  border-radius: 14px;
  box-shadow: var(--shadow-card);
  padding: 24px 20px;
  margin-bottom: 20px;
  border: 2px solid var(--retro-blue);
}

/* ===============
   SPACING & FLEXBOX PATTERNS
   =============== */
.section { margin-bottom: 60px; padding: 40px 20px; }
.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; align-items: center; gap: 20px; padding: 20px; }
.feature-item { display: flex; flex-direction: column; align-items: flex-start; gap: 15px; }

/* ===============
   RESPONSIVE DESIGN
   =============== */
@media (max-width: 1024px) {
  .container {
    max-width: 98vw;
    padding: 0 10px;
  }
  .footer-contact, .footer-nav {
    font-size: 0.95rem;
  }
}
@media (max-width: 900px) {
  .feature-grid, .service-list, .service-grid, .feature-list, .blog-post-grid, .testimonial-slider, .testimonial-list {
    flex-direction: column;
    gap: 20px;
  }
  .footer-nav, .footer-contact {
    width: 100%;
  }
  footer .container {
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
  }
}
@media (max-width: 768px) {
  html { font-size: 16px; }
  header .container {
    flex-direction: row;
    gap: 10px;
    min-height: 56px;
  }
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
  .btn-primary, .btn-secondary {
    margin-left: 0;
    padding: 10px 18px;
    font-size: 1rem;
  }
  .hero {
    padding: 36px 0 24px 0;
  }
  .hero h1 {
    font-size: 1.5rem;
  }
  .section {
    padding: 24px 8px;
    margin-bottom: 36px;
  }
  .content-wrapper {
    gap: 18px;
  }
  .feature-grid, .service-list, .service-grid, .feature-list, .blog-post-grid, .testimonial-slider, .testimonial-list {
    flex-direction: column;
    gap: 16px;
  }
  .card-container, .content-grid {
    flex-direction: column;
    gap: 16px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 18px;
    align-items: flex-start;
  }
  .footer-nav {
    flex-direction: column;
    gap: 8px;
  }
  .footer-contact {
    font-size: 0.93rem;
  }
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding: 18px 8px;
  }
  .cookie-banner .cookie-actions {
    flex-direction: column;
    gap: 10px;
  }
  .cookie-modal {
    padding: 22px 8px 18px 8px;
    min-width: 0;
  }
}
@media (max-width: 480px) {
  html { font-size: 15px; }
  .hero h1 {
    font-size: 1.1rem;
  }
  .btn-primary, .btn-secondary {
    padding: 8px 10px;
    font-size: 0.95rem;
  }
  .testimonial-card {
    min-width: 0;
    max-width: 100%;
    padding: 14px 8px;
  }
  .feature-grid > div, .service-list > div, .service-grid > div, .feature-list > div, .blog-post-grid > div {
    padding: 14px 8px;
    min-width: 0;
  }
}

/* ===============
   ANIMATIONS & MICRO-INTERACTIONS
   =============== */
a, button, .btn-primary, .btn-secondary {
  transition: background 0.2s, color 0.2s, box-shadow 0.2s, transform 0.15s;
}
.card, .feature-grid > div, .service-list > div, .service-grid > div, .feature-list > div, .blog-post-grid > div, .testimonial-card {
  transition: box-shadow 0.2s, transform 0.15s;
}

/* ===============
   ACCESSIBILITY
   =============== */
:focus {
  outline: 2px dashed var(--retro-orange);
  outline-offset: 2px;
}

/* ===============
   UTILITY CLASSES
   =============== */
.hide {
  display: none !important;
}

/* ===============
   END OF CSS
   =============== */
