/* Crystal Shade Interiors – Vintage Retro CSS Theme */

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

:root {
  /* Brand Colors */
  --primary: #1B263B;
  --secondary: #415A77;
  --accent: #F5F0EC;
  /* Vintage Retro Palette */
  --retro-orange: #F4A259;
  --retro-mustard: #EEC170;
  --retro-teal: #3A6B6C;
  --retro-brown: #7C5E3C;
  --retro-cream: #FFF8E7;
  --retro-red: #D7263D;
  --retro-green: #4E937A;
  /* Typography */
  --font-display: 'Montserrat', 'Roboto Slab', 'Pacifico', cursive;
  --font-body: 'Lato', Arial, sans-serif;
  /* Shadows */
  --shadow-card: 0 4px 16px rgba(60, 40, 20, 0.08);
  --shadow-btn: 0 2px 8px rgba(60, 40, 20, 0.10);
  /* Border Radius */
  --radius-card: 18px;
  --radius-btn: 28px;
  /* Spacing */
  --gap-section: 60px;
  --gap-card: 24px;
  --gap-content: 20px;
  --gap-feature: 15px;
  --gap-testimonial: 20px;
  --gap-text-image: 30px;
  /* Transition */
  --transition: 0.3s cubic-bezier(.4,1.3,.6,1);
}

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

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--primary);
  background: var(--retro-cream);
  min-height: 100vh;
  line-height: 1.7;
}

/* 2. TYPOGRAPHY */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--primary);
  margin-top: 0;
  margin-bottom: 0.6em;
  letter-spacing: 0.02em;
}
h1 {
  font-size: 2.2rem;
  font-family: 'Pacifico', var(--font-display);
  color: var(--retro-orange);
  text-shadow: 1px 2px 0 var(--retro-mustard);
}
h2 {
  font-size: 1.6rem;
  color: var(--retro-brown);
  font-family: 'Roboto Slab', var(--font-display);
  text-shadow: 1px 1px 0 var(--retro-mustard);
}
h3 {
  font-size: 1.2rem;
  color: var(--retro-teal);
  font-family: 'Montserrat', var(--font-display);
}
p, ul, ol, li, span {
  font-family: var(--font-body);
  color: var(--primary);
  font-size: 1rem;
}
strong {
  color: var(--retro-red);
  font-weight: 700;
}

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

.section {
  margin-bottom: var(--gap-section);
  padding: 40px 20px;
  background: var(--accent);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  position: relative;
}

/* 4. FLEXBOX PATTERNS */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: var(--gap-card);
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: var(--retro-cream);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 28px 22px;
  min-width: 260px;
  flex: 1 1 300px;
  transition: box-shadow var(--transition), transform var(--transition);
}
.card:hover {
  box-shadow: 0 8px 32px rgba(60,40,20,0.18);
  transform: translateY(-4px) scale(1.02);
}
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}
.text-image-section {
  display: flex;
  align-items: center;
  gap: var(--gap-text-image);
  flex-wrap: wrap;
}
.testimonial-card {
  display: flex;
  align-items: center;
  gap: var(--gap-testimonial);
  padding: 20px;
  background: var(--retro-mustard);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  margin-bottom: 20px;
  flex: 1 1 320px;
  min-width: 260px;
  color: #222;
  font-size: 1.05rem;
}
.testimonial-card p {
  color: #222;
  font-style: italic;
  margin: 0 0 0.5em 0;
}
.testimonial-card span {
  color: var(--retro-brown);
  font-weight: 700;
  font-size: 0.98em;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--gap-feature);
}

/* 5. CUSTOM FLEX GRIDS FOR PAGE SECTIONS */
.feature-grid, .project-slider, .project-grid, .service-list, .step-grid, .team-gallery, .blog-post-grid, .testimonials {
  display: flex;
  flex-wrap: wrap;
  gap: var(--gap-card);
  justify-content: flex-start;
}
.feature-grid > div, .project-slider > div, .project-grid > div, .service-list > div, .step-grid > div, .team-gallery > div, .blog-post-grid > div, .testimonials > div {
  background: var(--retro-cream);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 24px 18px;
  flex: 1 1 260px;
  min-width: 220px;
  margin-bottom: 20px;
  transition: box-shadow var(--transition), transform var(--transition);
}
.feature-grid > div:hover, .project-slider > div:hover, .project-grid > div:hover, .service-list > div:hover, .step-grid > div:hover, .team-gallery > div:hover, .blog-post-grid > div:hover {
  box-shadow: 0 8px 32px rgba(60,40,20,0.18);
  transform: translateY(-4px) scale(1.02);
}

/* 6. BUTTONS & CTA */
.cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(90deg, var(--retro-orange) 60%, var(--retro-mustard) 100%);
  color: var(--primary);
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  border: none;
  border-radius: var(--radius-btn);
  padding: 14px 38px;
  margin-top: 18px;
  box-shadow: var(--shadow-btn);
  cursor: pointer;
  text-decoration: none;
  letter-spacing: 0.04em;
  transition: background var(--transition), color var(--transition), box-shadow var(--transition), transform var(--transition);
  position: relative;
  z-index: 1;
}
.cta-btn:hover, .cta-btn:focus {
  background: linear-gradient(90deg, var(--retro-red) 60%, var(--retro-orange) 100%);
  color: #fff;
  box-shadow: 0 6px 24px rgba(215,38,61,0.18);
  transform: translateY(-2px) scale(1.03);
}

/* 7. HEADER & NAVIGATION */
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  background: var(--retro-teal);
  box-shadow: 0 2px 12px rgba(60,40,20,0.08);
  position: relative;
  z-index: 10;
}
header img {
  height: 48px;
  margin-right: 18px;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.main-nav a {
  color: var(--accent);
  font-family: var(--font-display);
  font-weight: 700;
  text-decoration: none;
  font-size: 1.05rem;
  letter-spacing: 0.03em;
  position: relative;
  transition: color var(--transition);
}
.main-nav a:after {
  content: '';
  display: block;
  height: 2px;
  width: 0;
  background: var(--retro-orange);
  transition: width var(--transition);
  position: absolute;
  left: 0;
  bottom: -4px;
}
.main-nav a:hover, .main-nav a:focus {
  color: var(--retro-mustard);
}
.main-nav a:hover:after, .main-nav a:focus:after {
  width: 100%;
}

/* Hamburger Button */
.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;
  box-shadow: var(--shadow-btn);
  cursor: pointer;
  margin-left: 18px;
  transition: background var(--transition), color var(--transition), box-shadow var(--transition);
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: var(--retro-red);
  color: #fff;
  box-shadow: 0 4px 16px rgba(215,38,61,0.18);
}

/* 8. MOBILE MENU OVERLAY */
.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: linear-gradient(120deg, var(--retro-mustard) 60%, var(--retro-orange) 100%);
  z-index: 1000;
  transform: translateX(-100%);
  transition: transform 0.4s cubic-bezier(.4,1.3,.6,1);
  box-shadow: 0 0 0 100vw rgba(27,38,59,0.18);
  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(--primary);
  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(--retro-red);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 28px;
  margin: 48px 0 0 36px;
}
.mobile-nav a {
  color: var(--primary);
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 0.04em;
  transition: color var(--transition);
  position: relative;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: var(--retro-red);
}

/* 9. FOOTER */
footer {
  background: var(--retro-brown);
  color: var(--accent);
  padding: 40px 0 24px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  margin-top: 60px;
}
.footer-nav {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: center;
}
.footer-nav a {
  color: var(--retro-mustard);
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 1rem;
  transition: color var(--transition);
}
.footer-nav a:hover, .footer-nav a:focus {
  color: var(--retro-orange);
}
.footer-contact {
  text-align: center;
  color: var(--accent);
  font-size: 0.98rem;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.footer-brand img {
  height: 36px;
}
.footer-brand span {
  color: var(--retro-mustard);
  font-family: var(--font-display);
  font-size: 1rem;
}

/* 10. LISTS & OL */
ul, ol {
  padding-left: 1.3em;
  margin: 0 0 1.2em 0;
}
ul li, ol li {
  margin-bottom: 0.5em;
  position: relative;
  padding-left: 0.5em;
}
ul li:before {
  content: '\2022';
  color: var(--retro-orange);
  font-weight: bold;
  display: inline-block;
  width: 1em;
  margin-left: -1em;
}
ol li:before {
  display: none;
}

/* 11. CATEGORIES FILTER (BLOG) */
.categories-filter {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  font-size: 0.98rem;
}
.categories-filter a {
  color: var(--retro-red);
  text-decoration: none;
  font-weight: 700;
  transition: color var(--transition);
}
.categories-filter a:hover, .categories-filter a:focus {
  color: var(--retro-orange);
}

/* 12. MAP/IMAGE PLACEHOLDER (CONTACT) */
.text-image-section > div:last-child {
  min-width: 220px;
  min-height: 120px;
  background: repeating-linear-gradient(135deg, var(--retro-mustard), var(--retro-mustard) 10px, var(--retro-cream) 10px, var(--retro-cream) 20px);
  border-radius: var(--radius-card);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  color: var(--retro-brown);
  font-size: 1.1rem;
  box-shadow: var(--shadow-card);
  padding: 12px;
}

/* 13. COOKIE CONSENT BANNER */
.cookie-banner {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100vw;
  background: var(--retro-brown);
  color: var(--accent);
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 32px;
  z-index: 2000;
  box-shadow: 0 -2px 16px rgba(60,40,20,0.12);
  font-size: 1rem;
  animation: cookieBannerIn 0.6s cubic-bezier(.4,1.3,.6,1);
}
@keyframes cookieBannerIn {
  from { transform: translateY(100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.cookie-banner .cookie-actions {
  display: flex;
  gap: 16px;
}
.cookie-btn {
  background: var(--retro-orange);
  color: var(--primary);
  border: none;
  border-radius: var(--radius-btn);
  padding: 10px 24px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  margin: 0;
  transition: background var(--transition), color var(--transition), box-shadow var(--transition);
  box-shadow: var(--shadow-btn);
}
.cookie-btn:hover, .cookie-btn:focus {
  background: var(--retro-red);
  color: #fff;
}
.cookie-btn.settings {
  background: var(--retro-mustard);
  color: var(--primary);
}
.cookie-btn.settings:hover, .cookie-btn.settings:focus {
  background: var(--retro-orange);
  color: #fff;
}

/* COOKIE MODAL */
.cookie-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(27,38,59,0.45);
  z-index: 2100;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(.4,1.3,.6,1);
}
.cookie-modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}
.cookie-modal {
  background: var(--accent);
  color: var(--primary);
  border-radius: var(--radius-card);
  box-shadow: 0 8px 32px rgba(60,40,20,0.18);
  padding: 36px 32px 28px 32px;
  min-width: 320px;
  max-width: 90vw;
  display: flex;
  flex-direction: column;
  gap: 22px;
  animation: cookieModalIn 0.5s cubic-bezier(.4,1.3,.6,1);
}
@keyframes cookieModalIn {
  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-brown);
  margin-bottom: 0.5em;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 10px;
}
.cookie-category label {
  font-weight: 700;
  color: var(--retro-teal);
}
.cookie-toggle {
  width: 38px;
  height: 22px;
  background: var(--retro-mustard);
  border-radius: 12px;
  position: relative;
  cursor: pointer;
  transition: background var(--transition);
  margin-left: 8px;
}
.cookie-toggle input {
  display: none;
}
.cookie-toggle span {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  background: var(--retro-orange);
  border-radius: 50%;
  transition: left var(--transition), background var(--transition);
}
.cookie-toggle input:checked + span {
  left: 18px;
  background: var(--retro-green);
}
.cookie-modal .cookie-modal-actions {
  display: flex;
  gap: 16px;
  justify-content: flex-end;
}
.cookie-modal .cookie-modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  background: none;
  border: none;
  color: var(--retro-red);
  font-size: 1.5rem;
  cursor: pointer;
}

/* 14. RESPONSIVE DESIGN */
@media (max-width: 1100px) {
  .container {
    max-width: 98vw;
  }
}
@media (max-width: 900px) {
  .main-nav {
    gap: 18px;
  }
  .feature-grid > div, .project-slider > div, .project-grid > div, .service-list > div, .step-grid > div, .team-gallery > div, .blog-post-grid > div {
    min-width: 180px;
    flex: 1 1 180px;
  }
}
@media (max-width: 768px) {
  html {
    font-size: 16px;
  }
  header {
    flex-direction: row;
    flex-wrap: wrap;
    padding: 12px 10px;
  }
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
  .cta-btn {
    padding: 12px 22px;
    font-size: 1rem;
    margin-top: 10px;
  }
  .container {
    padding: 0 8px;
  }
  .section {
    padding: 24px 8px;
    margin-bottom: 36px;
  }
  .feature-grid, .project-slider, .project-grid, .service-list, .step-grid, .team-gallery, .blog-post-grid, .testimonials {
    flex-direction: column;
    gap: 18px;
  }
  .feature-grid > div, .project-slider > div, .project-grid > div, .service-list > div, .step-grid > div, .team-gallery > div, .blog-post-grid > div, .testimonial-card {
    min-width: 0;
    width: 100%;
    flex: 1 1 100%;
  }
  .text-image-section {
    flex-direction: column;
    gap: 18px;
    align-items: flex-start;
  }
  .footer-nav {
    gap: 12px;
  }
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 10px;
    font-size: 0.98rem;
  }
  .cookie-modal {
    padding: 22px 10px 18px 10px;
    min-width: 0;
    width: 98vw;
  }
}
@media (max-width: 480px) {
  h1 {
    font-size: 1.4rem;
  }
  h2 {
    font-size: 1.1rem;
  }
  .footer-brand img {
    height: 28px;
  }
}

/* 15. MICRO-INTERACTIONS & TRANSITIONS */
a, button, .cta-btn, .cookie-btn, .mobile-menu-toggle, .mobile-menu-close {
  transition: color var(--transition), background var(--transition), box-shadow var(--transition), transform var(--transition);
}

/* 16. VINTAGE/RETRO DECORATIVE ELEMENTS */
.section:before {
  content: '';
  display: block;
  position: absolute;
  top: -18px;
  left: 24px;
  width: 60px;
  height: 8px;
  background: repeating-linear-gradient(90deg, var(--retro-orange), var(--retro-orange) 12px, var(--retro-mustard) 12px, var(--retro-mustard) 24px);
  border-radius: 8px;
  opacity: 0.18;
  z-index: 0;
}
.section:nth-child(even):before {
  left: auto;
  right: 24px;
  background: repeating-linear-gradient(90deg, var(--retro-teal), var(--retro-teal) 12px, var(--retro-green) 12px, var(--retro-green) 24px);
}

/* 17. ACCESSIBILITY & CONTRAST */
.testimonial-card, .testimonial-card p, .testimonial-card span {
  color: #222 !important;
  background: var(--retro-mustard) !important;
}

/* 18. MISC */
::-webkit-scrollbar {
  width: 10px;
  background: var(--retro-cream);
}
::-webkit-scrollbar-thumb {
  background: var(--retro-mustard);
  border-radius: 8px;
}

/* Hide outline except for keyboard navigation */
:focus:not(:focus-visible) {
  outline: none;
}
:focus-visible {
  outline: 2px dashed var(--retro-orange);
  outline-offset: 2px;
}

/* END OF CSS */
