/* =======================================================
   CSS RESET (Normalized for Consistency and Flexbox Layout)
   ======================================================= */
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;
  vertical-align: baseline;
  font-size: 100%;
  font: inherit;
  box-sizing: border-box;
}
html {
  width: 100%;
  height: 100%;
  scroll-behavior: smooth;
}
body {
  min-height: 100vh;
  line-height: 1.7;
  background: #F7F3E7;
  color: #22334A;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
img, picture, video {
  max-width: 100%;
  display: block;
  height: auto;
}
a {
  text-decoration: none;
  color: #22334A;
  transition: color 0.2s;
}
ul, ol {
  list-style: none;
  margin: 0;
  padding: 0;
}
button, input, select, textarea {
  font: inherit;
  outline: none;
}
::-webkit-input-placeholder { color: #908A78; }
::-moz-placeholder { color: #908A78; }
:-ms-input-placeholder { color: #908A78; }
::placeholder { color: #908A78; }

/* ==========================================
   VINTAGE RETRO BRAND FONTS & TYPOGRAPHY
   ========================================== */
@import url('https://fonts.googleapis.com/css?family=Oswald:400,500,700&display=swap');
@import url('https://fonts.googleapis.com/css?family=Roboto:400,400i,700&display=swap');
:root {
  --color-primary: #22334A;
  --color-secondary: #BEA75D;
  --color-accent: #F7F3E7;
  --color-text: #22334A;
  --color-text-light: #fffbe7;
  --color-muted: #908a78;
  --color-border: #D1C5AB;
  --color-success: #9db96f;
  --retro-orange: #D07641;
  --retro-red: #B04A4A;
  --retro-green: #5D8A66;
  --retro-blue: #376B8A;
  --retro-cream: #F2E9D6;
  --font-display: 'Oswald', serif;
  --font-body: 'Roboto', Arial, sans-serif;
}
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--color-primary);
  margin-bottom: 16px;
  text-shadow: 0 2px 0 #eee4bc;
}
h1 {
  font-size: 2.5rem;
  margin-bottom: 24px;
}
h2 {
  font-size: 1.75rem;
  margin-bottom: 18px;
}
h3 {
  font-size: 1.3rem;
  margin-bottom: 12px;
  color: var(--retro-orange);
}
h4, h5, h6 {
  font-size: 1.1rem;
}
p, li, ul, ol, blockquote {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-text);
  margin-bottom: 14px;
}
strong {
  color: var(--color-secondary);
}
blockquote {
  font-style: italic;
  position: relative;
  padding-left: 24px;
  color: var(--color-primary);
}
blockquote:before {
  content: '\201C';
  position: absolute;
  top: 0;
  left: 0;
  color: var(--retro-orange);
  font-size: 2rem;
  font-family: var(--font-display);
  opacity: 0.4;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}

/* ============================
   SPACING AND CONTAINER RULES
   ============================ */
.container {
  max-width: 1120px;
  width: 100%;
  margin: 0 auto;
  padding: 0 18px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.section, .about, .legal, .howto, .faqs, .services, .process, .contact, .info, .thankyou, .materials, .blog-list, .category-highlights, .about-preview, .values, .blog-preview, .featured-projects {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--color-accent);
  border-radius: 32px;
  box-shadow: 0 8px 32px 0 rgba(60,44,31,0.08);
  border: 2px solid var(--color-border);
  position: relative;
}
.section:last-child, .about:last-child, .legal:last-child, .howto:last-child, .faqs:last-child, .services:last-child, .process:last-child, .materials:last-child, .contact:last-child, .info:last-child, .thankyou:last-child {
  margin-bottom: 0;
}

/* =====================================
   FLEX LAYOUTS (MANDATORY FLEXBOX ONLY)
   ===================================== */
.card-container, .feature-grid, .content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
  margin-bottom: 20px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: var(--retro-cream);
  border: 2px solid var(--color-border);
  border-radius: 22px;
  box-shadow: 0 4px 12px 0 rgba(34,51,74,0.06);
  transition: transform 0.18s cubic-bezier(.53,.14,.31,1.03), box-shadow 0.18s;
  padding: 24px 18px;
  flex: 1 1 330px;
  min-width: 290px;
  max-width: 375px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}
.card:hover {
  box-shadow: 0 6px 32px 0 rgba(190,167,93,0.23);
  transform: translateY(-6px) scale(1.02) rotate(-1deg);
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: var(--retro-cream);
  padding: 28px 20px;
  border-radius: 19px;
  border: 2px solid var(--color-border);
  box-shadow: 0 4px 10px 0 rgba(34,51,74,0.09);
  min-width: 250px;
  flex: 1 1 230px;
  transition: box-shadow 0.18s, transform 0.13s;
}
.feature-item img {
  width: 38px;
  height: 38px;
  margin-bottom: 4px;
}
.feature-item:hover {
  box-shadow: 0 4px 28px 0 rgba(190,167,93,0.13);
  transform: translateY(-4px) scale(1.015);
  border-color: var(--color-secondary);
}
.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 24px;
  background: var(--retro-cream);
  border-radius: 19px;
  border: 2px solid var(--retro-orange);
  box-shadow: 0 4px 16px rgba(190,167,93,0.10);
  margin-bottom: 20px;
  color: #22334A;
}
.testimonial-card blockquote {
  color: #22334A;
}
.testimonial-card span {
  font-family: var(--font-display);
  color: var(--color-secondary);
  font-size: 1rem;
  padding-bottom: 2px;
}
.text-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.blog-filter {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 0.96rem;
  color: var(--color-muted);
}
.blog-filter a {
  color: var(--retro-red);
  text-decoration: underline dotted;
  transition: color 0.2s;
}
.blog-filter a:hover { color: var(--color-secondary); }
.search-bar {
  display: flex;
  margin-bottom: 24px;
  justify-content: stretch;
}
.search-bar input[type='search'] {
  flex: 1 1 180px;
  border: 1.5px solid var(--color-border);
  border-radius: 18px;
  padding: 9px 18px;
  background: #F7F3E7;
  font-size: 1rem;
  color: #22334A;
  transition: border-color 0.18s;
}
.search-bar input[type='search']:focus {
  border-color: var(--color-secondary);
}

/* ========================
   HEADER & NAVBAR VINTAGE
   ======================== */
header {
  width: 100%;
  background: var(--color-primary);
  padding: 0 0;
  min-height: 70px;
  display: flex;
  align-items: center;
  box-shadow: 0 2px 9px 0 rgba(34,51,74,0.11);
  position: relative;
  z-index: 20;
  border-bottom: 6px solid var(--color-secondary);
}
.logo {
  display: flex;
  align-items: center;
  margin: 0 28px 0 18px;
}
.logo img {
  width: 54px;
  height: auto;
  filter: sepia(0.46) hue-rotate(-8deg) brightness(1.09);
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-right: auto;
}
.main-nav a {
  color: var(--color-accent);
  font-size: 1rem;
  font-family: var(--font-display);
  padding: 4px 0;
  position: relative;
}
.main-nav a:after {
  content: '';
  display: block;
  height: 2px;
  background: var(--color-secondary);
  width: 0;
  transition: width 0.23s cubic-bezier(.5,.14,.31,1.03);
}
.main-nav a:hover:after, .main-nav a:focus:after {
  width: 80%;
}
.main-nav a:hover, .main-nav a:focus {
  color: var(--color-secondary);
}
.cta-btn {
  font-family: var(--font-display);
  font-size: 1.05rem;
  padding: 11px 26px;
  margin-left: 30px;
  border-radius: 25px;
  background: var(--color-secondary);
  color: var(--color-primary);
  font-weight: 700;
  border: none;
  letter-spacing: 0.04em;
  box-shadow: 0 3px 14px 0 rgba(190,167,93,0.07);
  transition: background 0.17s, color 0.17s, box-shadow 0.18s;
  border: 2px solid #ccb77c;
  cursor: pointer;
  position: relative;
}
.cta-btn:hover, .cta-btn:focus {
  background: var(--color-primary);
  color: var(--color-secondary);
  border-color: var(--color-secondary);
  box-shadow: 0 5px 22px 0 rgba(34,51,74,0.18);
}
.mobile-menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  background: var(--retro-orange);
  color: #fff;
  border: none;
  font-size: 2rem;
  padding: 7px 16px;
  border-radius: 13px;
  margin-left: 20px;
  cursor: pointer;
  transition: background 0.17s, color 0.17s;
  z-index: 31;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: var(--color-secondary);
  color: var(--color-primary);
}

/* =========================
   MOBILE NAV + ANIMATION
   ========================= */
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: var(--color-primary);
  color: var(--color-accent);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  transform: translateX(-120vw);
  transition: transform 0.39s cubic-bezier(.76,.19,.35,.97);
  z-index: 9999;
  padding: 32px 18px 0 18px;
  pointer-events: none;
}
.mobile-menu.open {
  transform: translateX(0);
  pointer-events: auto;
}
.mobile-menu-close {
  align-self: flex-end;
  background: none;
  border: none;
  color: var(--color-secondary);
  font-size: 2.1rem;
  padding: 2px 9px;
  margin-bottom: 18px;
  border-radius: 6px;
  transition: background 0.14s;
  cursor: pointer;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: rgba(190,167,93,0.18);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 23px;
  width: 100%;
}
.mobile-nav a {
  color: var(--color-accent);
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 500;
  padding: 13px 0 7px 0;
  border-bottom: 1.4px dashed #b89960;
  outline: none;
  transition: color 0.18s, background 0.19s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: var(--color-secondary);
  background: rgba(190,167,93,0.09);
}

/* =========================
   HERO BANNER
   ========================= */
.hero {
  background: linear-gradient(105deg, #F2E9D6 50%, #F7F3E7 100%);
  border: 4px double #b89960;
  box-shadow: 0 8px 36px 0 rgba(34,51,74,0.12);
  border-radius: 40px;
  padding: 50px 0 60px 0;
  margin-bottom: 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero h1 {
  font-size: 2.7rem;
  color: var(--retro-orange);
  margin-bottom: 16px;
  letter-spacing: 0.06em;
  line-height: 1.13;
}
.hero .subheadline {
  font-family: var(--font-body);
  font-size: 1.18rem;
  color: var(--color-primary);
  margin-bottom: 29px;
  text-shadow: 0 1px 0 #eee2c3;
}


/* =========================
   BLOG & CARD COMPONENTS
   ========================= */
.blog-list ul, .blog-preview ul, .about ul, .faqs ul, .howto ul, .services ul {
  margin-left: 8px;
  margin-bottom: 22px;
  padding-left: 8px;
  display: flex;
  flex-direction: column;
  gap: 13px;
}
.blog-list li, .blog-preview li, .about ul li, .faqs ul li, .howto ul li, .services ul li {
  color: var(--color-primary);
  background: var(--color-accent);
  border-left: 5px solid var(--color-secondary);
  border-radius: 6px;
  padding: 11px 17px 11px 19px;
}
.blog-list li h2, .blog-preview li strong, .services ul li strong {
  line-height: 1.3;
  color: var(--retro-red);
}
.category-highlights .feature-grid, .materials .feature-grid, .features .feature-grid {
  margin-top: 8px;
}

/* =========================
   CONTACT/INFO COMPONENTS
   ========================= */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 13px;
}
.contact-info p {
  display: flex;
  align-items: center;
  gap: 10px;
}
.contact-info img {
  width: 22px;
  height: 22px;
  opacity: .88;
}

/* CTA SECTION (Retro Border/Pattern) */
.cta {
  background: repeating-linear-gradient(-45deg, #d2c389 0 4px, #e8debf 4px 12px);
  border: 2.5px dashed var(--color-secondary);
  border-radius: 24px;
  padding: 44px 20px 38px 20px;
  text-align: center;
}
.cta h2 {
  color: var(--retro-green);
  margin-bottom: 12px;
}
.cta .cta-btn {
  margin-top: 22px;
}

/* ================
   FOOTER
   ================ */
footer {
  background: var(--color-primary);
  color: var(--color-accent);
  padding: 42px 10px 32px 10px;
  font-size: 1rem;
  border-top: 4px solid var(--color-secondary);
  margin-top: 60px;
}
.footer-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 22px;
  margin-bottom: 17px;
}
.footer-nav a {
  color: var(--color-secondary);
  text-decoration: underline wavy;
  font-weight: 500;
  font-family: var(--font-display);
}
.footer-nav a:hover, .footer-nav a:focus {
  color: var(--color-accent);
  background: rgba(190,167,93,0.09);
  border-radius: 2.5px;
}
.footer-contact {
  text-align: center;
  color: #eeecd7;
}
.footer-contact p, .footer-contact a {
  font-size: 0.98rem;
  color: #eeecd7;
  word-break: break-word;
}
.footer-contact strong {
  color: var(--color-secondary);
}

/* ==================
   VINTAGE PATTERNS
   ================== */
.hero, .cta, .section, .about, .legal, .howto, .faqs, .services, .process, .materials, .contact, .info, .thankyou, .blog-list, .category-highlights, .about-preview, .values, .blog-preview, .featured-projects {
  position: relative;
  isolation: isolate;
}
.section:before, .about:before, .howto:before {
  content: '';
  display: block;
  position: absolute;
  top: -26px;
  left: 18px;
  width: 84px;
  height: 15px;
  background: repeating-linear-gradient(90deg, #BEA75D 0 14px, transparent 15px 24px);
  opacity: 0.19;
  z-index: 0;
  pointer-events: none;
}
.cta:after {
  content: '';
  display: block;
  position: absolute;
  bottom: -15px; right: 18px;
  width: 84px;
  height: 15px;
  background: repeating-linear-gradient(90deg, #BEA75D 0 14px, transparent 15px 24px);
  opacity: 0.16;
  z-index: 0;
  pointer-events: none;
}

/* =======================
   COOKIE CONSENT BANNER
   ======================= */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: var(--color-accent);
  color: #22334A;
  box-shadow: 0 -2px 16px 0 rgba(34,51,74,0.12);
  border-top: 2.5px solid var(--color-secondary);
  z-index: 999991;
  padding: 22px 18px 18px 18px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
  font-size: 1rem;
  flex-wrap: wrap;
  animation: slideUp 0.35s cubic-bezier(.71,.16,.45,.93);
}
@keyframes slideUp {
  from { transform: translateY(120%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.cookie-banner-text {
  flex: 1 1 230px;
  color: #22334A;
}
.cookie-banner-btns {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.cookie-banner-btn, .cookie-settings-btn {
  font-family: var(--font-display);
  border-radius: 21px;
  padding: 9px 22px;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  margin: 0 2px;
  transition: background 0.16s, color 0.16s;
  outline: none;
}
.cookie-banner-btn.accept {
  background: var(--color-success);
  color: #22334A;
  border: 2px solid #b5c98a;
}
.cookie-banner-btn.accept:hover, .cookie-banner-btn.accept:focus { background: #b5c98a; }
.cookie-banner-btn.reject {
  background: var(--retro-red);
  color: #fff;
  border: 2px solid #e2a9a9;
}
.cookie-banner-btn.reject:hover, .cookie-banner-btn.reject:focus { background: #e2a9a9; color: var(--color-primary); }
.cookie-settings-btn {
  background: var(--color-secondary);
  color: var(--color-primary);
  border: 2px solid #ccb77c;
}
.cookie-settings-btn:hover, .cookie-settings-btn:focus { background: var(--color-primary); color: var(--color-secondary); }

/* COOKIE PREFS MODAL */
.cookie-modal-overlay {
  position: fixed; top: 0; right: 0; bottom: 0; left: 0;
  background: rgba(34,51,74,0.56);
  z-index: 999999;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  pointer-events: auto;
  animation: fadeIn 0.22s cubic-bezier(.91,.02,.59,.96);
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.cookie-modal {
  background: var(--retro-cream);
  border-radius: 22px 22px 0 0;
  width: 98%;
  max-width: 430px;
  padding: 32px 24px 24px 24px;
  margin-bottom: 8px;
  box-shadow: 0 2px 34px 0 rgba(34,51,74,0.13);
  display: flex;
  flex-direction: column;
  gap: 18px;
  z-index: 9999999;
  position: relative;
  animation: slideUpModal 0.31s cubic-bezier(.91,.02,.59,.96);
}
@keyframes slideUpModal {
  from { transform: translateY(180px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.cookie-modal h2 {
  color: var(--color-primary);
  font-size: 1.2rem;
  margin-bottom: 9px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 8px;
}
.cookie-category-label {
  flex: 1 1 auto;
  color: var(--color-secondary);
  font-size: 1rem;
  font-family: var(--font-display);
}
.cookie-toggle {
  appearance: none;
  width: 36px;
  height: 19px;
  border: 2px solid #ccb77c;
  background: #dfd8c5;
  border-radius: 11px;
  position: relative;
  transition: background 0.16s, border 0.16s;
  outline: none;
  cursor: pointer;
}
.cookie-toggle:checked {
  background: var(--color-success);
  border-color: #b5c98a;
}
.cookie-toggle::before {
  content: '';
  display: block;
  width: 15px; height: 15px;
  border-radius: 50%;
  background: #fff;
  position: absolute;
  top: 1px; left: 2px;
  box-shadow: 0 1px 3px 0 rgba(34,51,74,0.10);
  transition: transform 0.16s cubic-bezier(.53,.14,.31,1.03);
}
.cookie-toggle:checked::before {
  transform: translateX(15px);
}
.cookie-category .cookie-toggle[disabled] {
  cursor: not-allowed;
  opacity: .62;
}
.cookie-modal-close {
  position: absolute;
  top: 8px;
  right: 10px;
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--color-secondary);
  cursor: pointer;
  border-radius: 7px;
  transition: background 0.14s;
}
.cookie-modal-close:hover {
  background: rgba(205,185,112,0.18);
}
.cookie-modal-actions {
  display: flex;
  gap: 13px;
  margin-top: 12px;
  justify-content: flex-end;
}

/* ===============
   MEDIA QUERIES
   =============== */
@media (max-width: 980px) {
  .container {
    padding: 0 6px;
  }
  .feature-grid, .card-container, .content-grid {
    gap: 16px;
  }
  .main-nav, .footer-nav {
    gap: 13px;
  }
}
@media (max-width: 820px) {
  .feature-grid, .card-container, .content-grid {
    flex-wrap: wrap;
    gap: 13px;
  }
}
@media (max-width: 768px) {
  .main-nav {
    display: none;
  }
  .cta-btn {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
  .container {
    padding: 0 3vw;
  }
  .hero, .section, .about, .legal, .howto, .faqs, .services, .process, .materials, .contact, .info, .thankyou, .blog-list, .category-highlights, .about-preview, .values, .blog-preview, .featured-projects {
    padding: 26px 8px;
    border-radius: 17px;
  }
  .feature-grid, .card-container, .content-grid {
    flex-direction: column;
    gap: 14px;
  }
  .footer-nav {
    flex-direction: column;
    gap: 7px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 17px;
  }
  .testimonial-card {
    padding: 17px 6px;
    border-radius: 13px;
  }
  .cookie-modal {
    padding: 22px 6px 14px 6px;
  }
}
@media (max-width: 540px) {
  h1 {
    font-size: 1.42rem;
  }
  h2 {
    font-size: 1.12rem;
  }
  .footer-contact, .footer-nav {
    font-size: 0.94rem;
  }
  .testimonial-card, .card, .feature-item {
    min-width: auto;
    max-width: 100%;
  }
}

/* ====================
   MICRO-INTERACTIONS
   ==================== */
a, button, .cta-btn, .cookie-toggle {
  transition: color 0.18s, background 0.18s, transform 0.11s, box-shadow 0.14s;
}
button:active, .cta-btn:active, .cookie-banner-btn:active {
  transform: scale(0.96);
}

/* For focus-visible (for accessibility) */
a:focus-visible, button:focus-visible, .cta-btn:focus-visible {
  outline: 2px dashed var(--color-secondary);
  outline-offset: 3px;
}

/* Avoid Card/Table Overlap */
.card, .feature-item, .testimonial-card {
  z-index: 2;
}

/* Avoid user-select on buttons/links (for a retro feel) */
button, .cta-btn, .cookie-banner-btn, .mobile-menu-close, .mobile-menu-toggle {
  user-select: none;
}

/* Subtle Card Animations */
.card:active, .feature-item:active, .testimonial-card:active {
  transform: scale(.99);
  box-shadow: 0 3px 12px 0 rgba(34,51,74,0.12);
}

/* END OF CSS */
