/* ===== 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 {
  scroll-behavior: smooth;
}
body {
  line-height: 1.6;
  font-size: 16px;
  background: #F5F5F5;
  color: #22313F;
  font-family: 'Open Sans', Arial, sans-serif;
  min-height: 100vh;
}
article, section, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, main {
  display: block;
}
a {
  color: inherit;
  text-decoration: none;
  transition: color .18s;
}
ul, ol {
  list-style: none;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
button {
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
}
input, textarea, select {
  font-family: inherit;
  font-size: inherit;
}

/* ===== VINTAGE RETRO THEME VARIABLES ===== */
:root {
  --brand-primary: #22313F;
  --brand-secondary: #F5F5F5;
  --brand-accent: #E8792E;
  --vintage-green: #608268;
  --vintage-yellow: #FAD672;
  --vintage-blue: #648CA6;
  --vintage-red: #D24E3E;
  --vintage-bg: #FFF5E5;
  --text-body: #22313F;
  --text-dark: #1A232B;
  --text-light: #fff;
  --border-radius: 16px;
  --shadow: 0 3px 16px 0 rgba(28,32,40,0.08), 0 2px 6px 0 rgba(60,50,20,0.09);
  --font-display: 'Montserrat', 'Arial Black', Impact, sans-serif;
  --font-body: 'Open Sans', Arial, Helvetica, sans-serif;
  --pattern-light: repeating-linear-gradient(135deg,#f5f5f5 0 10px,#fbeedb 10px 20px,#f5f5f5 20px 30px);
}

/* ===== LAYOUT & CONTAINERS ===== */
.container {
  width: 100%;
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--vintage-bg);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  letter-spacing: -1px;
  font-weight: 700;
}
h1 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  color: var(--brand-primary);
}
h2 {
  font-size: 2rem;
  margin-bottom: 16px;
  color: var(--vintage-red);
}
h3 {
  font-size: 1.36rem;
  margin-bottom: 10px;
  color: var(--vintage-green);
}
h4 {
  font-size: 1.1rem;
  margin-bottom: 5px;
}
p, ul, ol, li, dt, dd, blockquote {
  font-size: 1rem;
  color: var(--text-body);
  line-height: 1.8;
  font-family: var(--font-body);
}
blockquote {
  font-size: 1.1rem;
  font-style: italic;
  background: #f8e8e1;
  color: var(--brand-primary);
  margin: 20px 0 0 0;
  padding: 20px 28px;
  border-left: 4px solid var(--brand-accent);
  border-radius: 11px;
  box-shadow: 0 2px 8px rgba(232,121,46,0.09);
}
dt {
  font-weight: 700;
  color: var(--vintage-red);
  margin-bottom: 4px;
}
dd {
  margin-bottom: 16px;
}
strong {
  font-weight: 700;
  color: var(--brand-primary);
}
address {
  font-style: normal;
  font-size: 1rem;
}

/* ===== HEADER & NAVIGATION ===== */
header {
  background: var(--brand-primary);
  border-bottom: 3px dotted var(--brand-accent);
  padding: 0;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 75px;
}
header img {
  height: 52px;
  width: auto;
  margin-right: 18px;
}
header nav {
  display: flex;
  gap: 20px;
}
header nav a {
  display: inline-block;
  color: var(--vintage-yellow);
  font-family: var(--font-display);
  padding: 6px 12px 6px 6px;
  font-size: 1.01rem;
  border-radius: 11px;
  position: relative;
  transition: background 0.18s, color 0.19s, box-shadow .12s;
}
header nav a:hover,
header nav a:focus {
  background: var(--brand-accent);
  color: var(--text-light);
}
.cta {
  background: var(--brand-accent);
  color: var(--text-light)!important;
  font-family: var(--font-display);
  font-size: 1rem;
  padding: 10px 26px;
  margin-left: 10px;
  border-radius: 13px;
  box-shadow: 0 3px 16px rgba(232,121,46,0.08);
  cursor: pointer;
  font-weight: 800;
  letter-spacing: 1px;
  text-shadow: 0 2px 0 #9356451f;
  transition: background .19s, box-shadow .19s, transform .17s;
  border: 2px solid var(--brand-primary);
  border-bottom: 4px solid var(--vintage-green);
}
.cta:hover, .cta:focus {
  background: #b65321;
  box-shadow: 0 6px 24px 0 rgba(232,121,46,0.12);
  transform: translateY(-2px) scale(1.022);
}

.mobile-menu-toggle {
  display: none;
  background: var(--brand-accent);
  color: var(--brand-secondary);
  padding: 9px 13px;
  margin-left: 18px;
  font-size: 2rem;
  border-radius: 10px;
  box-shadow: 0 1px 6px rgba(34,49,63,0.10);
  transition: background .18s, color .18s;
  z-index: 300;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: var(--vintage-red);
  color: var(--brand-secondary);
}

/* ===== MOBILE MENU ===== */
.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: var(--brand-primary);
  transform: translateX(-100%);
  transition: transform .3s cubic-bezier(.6, .2, .21, 1);
  z-index: 9000;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 32px 18px 18px 24px;
  box-shadow: 6px 0 44px 0 #22313fa6;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  align-self: flex-end;
  background: var(--brand-accent);
  color: var(--text-light);
  font-size: 2rem;
  padding: 7px 13px;
  border-radius: 8px;
  margin-bottom: 16px;
  transition: background .14s;
  z-index: 9902;
}
.mobile-menu-close:focus, .mobile-menu-close:hover {
  background: var(--vintage-red);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 22px;
  width: 100%;
}
.mobile-nav a {
  color: var(--vintage-yellow);
  font-size: 1.2rem;
  padding: 8px 0;
  border-radius: 7px;
  font-family: var(--font-display);
  font-weight: 700;
  transition: color .17s, background .12s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--brand-accent);
  color: #fff;
}

/* ===== HERO ===== */
.hero {
  background: var(--pattern-light);
  border-bottom: 2px dotted var(--vintage-green);
  box-shadow: var(--shadow);
  padding: 0 0 45px 0;
}
.hero .container {
  min-height: 340px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}
.hero .content-wrapper {
  max-width: 600px;
  margin-top: 32px;
  margin-bottom: 24px;
  gap: 22px;
}
.hero h1 {
  color: var(--brand-accent);
  font-family: var(--font-display);
  text-shadow: 0 1px 0 #fff9, 0 6px 32px #22313f2d;
}
.hero p {
  font-size: 1.21rem;
  color: var(--brand-primary);
}

/* ===== FEATURES GRID ===== */
.features-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin-top: 18px;
  justify-content: flex-start;
}
.features-grid > div {
  flex: 1 1 225px;
  background: #fff7ed;
  border: 2px dashed var(--vintage-green);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  padding: 32px 20px 22px 20px;
  min-width: 210px;
  max-width: 320px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: background .17s, transform .14s, box-shadow .14s;
  position: relative;
}
.features-grid > div img {
  height: 38px;
  width: auto;
  margin-bottom: 11px;
}
.features-grid > div:hover {
  background: #ffe8c8;
  transform: translateY(-4px) scale(1.028);
  box-shadow: 0 8px 30px 0 #E8792E32;
  z-index: 2;
}
.features-grid h3 {
  color: var(--brand-accent);
  font-family: var(--font-display);
  font-size: 1.28rem;
  margin-bottom: 7px;
}
.features-grid p {
  color: var(--brand-primary);
  font-size: 1rem;
}

/* ===== SERVICES PAGE - SERVICE LIST ===== */
.service-list {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin: 24px 0;
}
.service-list > div {
  flex: 1 1 220px;
  max-width: 305px;
  min-width: 180px;
  background: #FAD67222;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  padding: 28px 17px 21px 17px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: background .18s, transform .16s, box-shadow .16s;
  border: 2px solid var(--brand-accent);
}
.service-list > div:hover {
  background: #ffeec4;
  transform: scale(1.018) translateY(-3px);
  box-shadow: 0 7px 25px #E8792E24;
  z-index: 2;
}
.service-list img {
  height: 38px;
  width: auto;
  margin-bottom: 11px;
}
.service-list h2 {
  font-size: 1.18rem;
  color: var(--vintage-green);
  margin-bottom: 9px;
}
.service-list p {
  font-size: 1rem;
  color: var(--text-body);
}
.service-list span {
  margin-top: 16px;
  font-weight: bold;
  color: var(--brand-accent);
  background: #fff;
  padding: 5px 15px;
  border-radius: 9px;
  box-shadow: 0 1px 4px 0 #e8792e12;
}

/* ===== PROJECTS PAGE ===== */
.case-study-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 24px;
}
.project-card {
  flex: 1 1 265px;
  background: #fffbee;
  border: 2px solid var(--vintage-blue);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  padding: 28px 22px 18px 22px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 11px;
  position: relative;
  transition: background .2s, box-shadow .16s, transform .15s;
}
.project-card:hover {
  background: #e5f1fd;
  box-shadow: 0 7px 24px 0 #648CA632;
  transform: translateY(-2px) scale(1.016);
  z-index: 2;
}
.project-card h2 {
  font-size: 1.16rem;
  color: var(--brand-accent);
  margin-bottom: 8px;
}

/* ===== TESTIMONIALS ===== */
.testimonial-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
  margin: 24px 0;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  background: #fff;
  border: 2px solid var(--brand-accent);
  border-radius: var(--border-radius);
  padding: 20px 28px;
  margin-bottom: 20px;
  max-width: 430px;
  min-width: 215px;
  box-shadow: 0 2px 12px 0 var(--vintage-yellow), 0 1px 8px 0 #e8792e13;
  font-family: var(--font-body);
  transition: box-shadow .18s, transform .14s, background .14s;
}
.testimonial-card:hover {
  box-shadow: 0 8px 32px 0 #E8792E22;
  background: #faf2e0;
  transform: translateY(-3px) scale(1.013);
  z-index: 2;
}
.testimonial-card strong {
  color: var(--brand-primary);
}
.testimonial-card div {
  color: var(--vintage-red);
}
.testimonial-card blockquote {
  background: #fff6e9;
  color: var(--brand-primary);
  border-left: 4px solid var(--brand-accent);
  border-radius: 7px;
  font-size: 1.08rem;
  margin-left: 0;
  margin-right: 0;
  margin-bottom: 0;
}

/* ===== CONTACT PAGE INFO ===== */
.contact-info {
  background: #f9efdb;
  border: 2px dashed var(--brand-accent);
  border-radius: 10px;
  padding: 17px 19px;
  margin-bottom: 20px;
  font-size: 1.02rem;
  line-height: 1.7;
  color: var(--brand-primary);
  font-family: var(--font-body);
  box-shadow: 0 3px 12px 0 #E8792E18;
}

/* ===== FOOTER ===== */
footer {
  background: var(--brand-primary);
  color: var(--vintage-yellow);
  border-top: 3px dotted var(--brand-accent);
  margin-top: 55px;
  padding-top: 26px;
  padding-bottom: 31px;
}
.footer-flex {
  display: flex;
  flex-wrap: wrap;
  gap: 44px;
  align-items: flex-start;
  justify-content: space-between;
}
footer nav {
  display: flex;
  flex-direction: column;
  gap: 9px;
}
footer nav a {
  color: var(--vintage-yellow);
  font-family: var(--font-display);
  font-size: 1.01rem;
  margin-bottom: 3px;
  letter-spacing: .3px;
  border-radius: 5px;
  padding: 3px 7px;
  transition: background .14s, color .15s;
}
footer nav a:hover, footer nav a:focus {
  background: var(--brand-accent);
  color: #fff;
}
footer img {
  height: 48px;
  width: auto;
  margin-bottom: 9px;
}
footer strong {
  color: var(--vintage-yellow);
}
footer address, footer a {
  color: var(--vintage-yellow);
  font-style: normal;
  font-size: .97rem;
}
footer address {
  margin-bottom: 6px;
}

/* ===== COOKIES BANNER & MODAL ===== */
.cookie-banner {
  position: fixed;
  left: 0; right: 0;
  bottom: 0;
  background: #22313F;
  color: var(--vintage-yellow);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 18px 22px 26px;
  box-shadow: 0 -8px 32px #22313f2d;
  z-index: 10000;
  font-size: 1rem;
  font-family: var(--font-body);
  gap: 22px;
  transition: transform .26s;
}
.cookie-banner.hide {
  transform: translateY(130%);
  pointer-events: none;
}
.cookie-banner .cookie-text {
  flex: 1 1 auto;
  margin-right: 30px;
}
.cookie-banner .cookie-actions {
  display: flex;
  gap: 16px;
  align-items: center;
}
.cookie-banner .cookie-btn {
  background: var(--vintage-yellow);
  color: var(--brand-primary);
  font-family: var(--font-display);
  font-weight: 600;
  padding: 8px 18px;
  border-radius: 7px;
  border: 2px solid var(--brand-accent);
  font-size: 1rem;
  margin-left: 0;
  margin-right: 0;
  box-shadow: 0 1px 7px #fad6721e;
  transition: background .14s, color .16s, box-shadow .12s;
}
.cookie-banner .cookie-btn:hover, .cookie-banner .cookie-btn:focus {
  background: var(--brand-accent);
  color: #fff;
}
.cookie-banner .cookie-btn.secondary {
  background: #fff;
  color: var(--brand-accent);
  border: 2px solid var(--brand-accent);
  margin-left: 0;
}
.cookie-banner .cookie-btn.secondary:hover {
  background: #e8792e16;
  color: var(--brand-primary);
}

.cookie-modal {
  position: fixed;
  bottom: 0; left: 50%;
  transform: translate(-50%,100%);
  z-index: 10001;
  width: 96vw;
  max-width: 420px;
  background: #fffbe9;
  color: var(--brand-primary);
  border-radius: 24px 24px 0 0;
  box-shadow: 0 0 42px #22313f33;
  padding: 34px 28px 24px 28px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  transition: transform .32s;
  font-family: var(--font-body);
}
.cookie-modal.open {
  transform: translate(-50%,0);
}
.cookie-modal h3 {
  font-size: 1.19rem;
  margin-bottom: 10px;
  color: var(--brand-accent);
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 14px;
}
.cookie-category label {
  font-weight: 600;
  font-size: 1rem;
}
.cookie-category input[type=checkbox] {
  accent-color: var(--brand-accent);
  margin-right: 9px;
}
.cookie-modal .cookie-actions {
  display: flex;
  gap: 15px;
  justify-content: flex-end;
  align-items: center;
  margin-top: 18px;
}
.cookie-modal .cookie-btn {
  background: var(--vintage-yellow);
  color: var(--brand-primary);
  font-family: var(--font-display);
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 8px;
  border: 2px solid var(--brand-accent);
  font-size: 1rem;
  box-shadow: 0 1px 5px #fad6721b;
  transition: background .15s, color .13s, box-shadow .11s;
}
.cookie-modal .cookie-btn:hover { background: var(--brand-accent); color: #fff;}
.cookie-modal .cookie-btn.secondary { background: #fff; color: var(--brand-accent);}
.cookie-modal .cookie-btn.secondary:hover { background: #e8792e16; color: var(--brand-primary);}

/* ===== COMMON FLEX CLASSES ===== */
.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;
}

/* ===== RESPONSIVENESS & MEDIA QUERIES ===== */
@media (max-width: 992px) {
  .footer-flex {
    gap: 25px;
  }
  .features-grid > div, .service-list > div, .project-card, .testimonial-card {
    min-width: 220px;
    max-width: 98vw;
  }
  .case-study-list { gap: 16px; }
}
@media (max-width: 768px) {
  header .container {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 12px;
    min-height: 60px;
  }
  header nav, header .cta {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
  .features-grid, .service-list, .case-study-list, .testimonial-list, .footer-flex {
    flex-direction: column;
    gap: 20px;
  }
  .content-wrapper {
    gap: 18px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 18px;
    align-items: flex-start;
  }
  .section {
    padding: 30px 8px;
    margin-bottom: 38px;
  }
  main {
    padding-bottom: 30px;
  }
}
@media (max-width: 545px) {
  .container {
    padding-left: 7px;
    padding-right: 7px;
  }
  .hero .container {
    min-height: 180px;
    padding-top: 18px;
    padding-bottom: 16px;
  }
  .cookie-modal {
    padding: 14px 7px 15px 7px;
    max-width: 97vw;
  }
  .footer-flex {
    gap: 13px;
  }
}

/* ===== MICRO-INTERACTIONS ===== */
.card, .features-grid > div, .service-list > div, .project-card, .testimonial-card {
  transition: box-shadow .18s, background .15s, transform .14s, border-color .16s;
}
a, button, .cta, .cookie-btn {
  transition: color .17s, background .15s, text-shadow .13s, box-shadow .16s, border-color .17s;
}

/* ===== KEYBOARD FOCUS VISIBLE ===== */
a:focus-visible, button:focus-visible, .cta:focus-visible, .cookie-btn:focus-visible {
  outline: 2px dotted var(--brand-accent);
  outline-offset: 2px;
}

/* ===== RETRO NOSTALGIA — PATTERNS/BORDERS ===== */
.section, .features-grid > div, .service-list > div, .project-card, .testimonial-card, .contact-info {
  border-radius: var(--border-radius);
  border-style: solid;
  border-width: 2px;
}
.features-grid > div, .service-list > div, .contact-info {
  border-style: dashed;
}
.case-study-list > .project-card {
  border-style: solid;
}

/* ===== VINTAGE DECORATIVE DETAILS ===== */
.features-grid > div:after, .service-list > div:after, .project-card:after {
  content: '';
  display: block;
  position: absolute;
  bottom: -11px;
  right: 22px;
  width: 38px;
  height: 9px;
  background: linear-gradient(90deg, var(--brand-accent) 39%, transparent);
  opacity: 0.11;
  border-radius: 7px;
  pointer-events: none;
}

/* ===== FORM STYLES (if needed in future) ===== */
input, textarea, select {
  background: #fffbe9;
  color: var(--brand-primary);
  border: 1.7px solid var(--brand-accent);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 1rem;
  font-family: var(--font-body);
  margin-bottom: 15px;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--vintage-green);
  outline: none;
  box-shadow: 0 0 0 2px #fad67299;
}

/* ===== THANK YOU PAGE ===== */
.thank-you-section, .thank-you {
  background: #fffdf7;
  border: 2px dashed var(--brand-accent);
  border-radius: var(--border-radius);
  margin: 44px auto 88px auto;
  max-width: 520px;
  padding: 48px 22px 66px 22px;
  box-shadow: 0 6px 36px 0 #fad6721a;
  text-align: center;
  font-family: var(--font-body);
}

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