/* ==== CSS RESET & NORMALIZE ==== */
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;
}
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1.6;
  background: #FAF5ED;
  color: #3D2C19;
}
ol, ul {
  list-style: none;
}
a {
  background: none;
  text-decoration: none;
  color: inherit;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
  border-style: none;
}
button {
  font-family: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

/* ==== FONTS (Montserrat/Roboto with retro fallback) ==== */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@700;900&family=Roboto:wght@400;500;700&display=swap');

body {
  font-family: 'Roboto', 'Arial', 'Helvetica', sans-serif;
  background-color: #FAF5ED;
  font-size: 16px;
  color: #3D2C19; /* deep brownish for retro */
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  letter-spacing: 0.02em;
  color: #1D5E2F;
  margin-bottom: 10px;
  font-weight: 900;
}
h1 { font-size: 2.4rem; }
h2 { font-size: 2rem;  }
h3 { font-size: 1.25rem; }
h4, h5, h6 { font-size: 1rem; letter-spacing: 0.04em; }

@media (min-width: 800px) {
  h1 { font-size: 3rem; }
  h2 { font-size: 2.4rem; }
  h3 { font-size: 1.45rem; }
}

strong, b { font-weight: 600; }

/* ==== COLOR PALETTE RETRO ==== */
:root {
  --primary: #1D5E2F;
  --secondary: #FFD600;
  --accent: #F5F7FA;
  --dark-brown: #3D2C19;
  --retro-beige: #FAF5ED;
  --retro-orange: #F5B255;
  --retro-green: #629460;
  --retro-red: #D3655B;
  --retro-blue: #406580;
  --retro-shadow: rgba(61,44,25,0.11);
}

/* ==== SPACING AND SECTION LAYOUTS ==== */
.container {
  width: 100%;
  max-width: 1200px;
  padding: 0 18px;
  margin: 0 auto;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--retro-beige);
  border-radius: 16px;
  box-shadow: 0 4px 24px var(--retro-shadow);
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

@media (min-width: 900px) {
  .content-wrapper { gap: 32px; }
  .section { padding: 60px 48px; }
}

/* ==== VINTAGE/RETRO PATTERNS and TYPOGRAPHY ==== */
.section, .card, .testimonial-card, .cta.primary, .card-container > .card, .footer-menu a, .footer-contact ul, .value-list > div {
  box-shadow: 0 2px 10px var(--retro-shadow), 0 0.5px 0 var(--secondary);
  border-radius: 17px;
}
.section {
  border: 2.5px solid var(--secondary);
  background-image: repeating-linear-gradient(135deg, transparent, transparent 15px,rgba(255,214,0,0.10) 16px, transparent 18px);
}

/* ==== HEADER ==== */
header {
  background: #FCF6E2;
  border-bottom: 3px solid var(--secondary);
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
}
header .container {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 12px;
  padding-bottom: 12px;
}
header nav {
  display: flex;
  align-items: center;
  gap: 20px;
}
header nav a {
  font-size: 1rem;
  font-weight: 700;
  color: #1D5E2F;
  transition: color .18s;
  padding: 6px 12px;
  border-radius: 7px;
  font-family: inherit;
  letter-spacing: 0.03em;
  position: relative;
}
header nav a:not(.cta).active,
header nav a:not(.cta):hover,
header nav a:not(.cta):focus {
  color: var(--retro-orange);
  background: rgba(255, 214, 0, 0.14);
}
header .cta.primary {
  background: var(--retro-orange);
  color: var(--dark-brown);
  border-radius: 9px;
  font-weight: 900;
  box-shadow: 0 2.5px 8px var(--retro-shadow);
  border: 2px solid var(--secondary);
  padding: 11px 26px;
  font-size: 1.10rem;
  letter-spacing: 0.03em;
  transition: background 0.18s, transform 0.2s;
  margin-left: 24px;
}
header .cta.primary:hover, .cta.primary:focus {
  background: var(--secondary);
  color: #1D5E2F;
  transform: translateY(-2px) scale(1.045);
}
header img[alt="Dynora Grid"] {
  height: 42px;
}

/* MOBILE HEADER */
.mobile-menu-toggle {
  background: var(--retro-orange);
  color: #1D5E2F;
  font-size: 2rem;
  padding: 7px 18px;
  border-radius: 10px;
  margin-left: 10px;
  display: flex;
  align-items: center;
  z-index: 1101;
  border: 2px solid var(--secondary);
  transition: background 0.16s, transform 0.17s;
}
.mobile-menu-toggle:hover,
.mobile-menu-toggle:focus {
  background: var(--secondary);
  color: var(--dark-brown);
  transform: scale(1.08);
}
@media (min-width: 1024px) {
  .mobile-menu-toggle { display: none; }
}
@media (max-width: 1023px) {
  header nav { display: none; }
}


/* ==== MOBILE MENU ==== */
.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: #FCF6E2;
  box-shadow: 0 12px 32px var(--retro-shadow);
  z-index: 1200;
  transform: translateX(-100%);
  transition: transform .4s cubic-bezier(.85,0,.25,1);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  font-size: 2.2rem;
  color: var(--primary);
  background: transparent;
  position: absolute;
  right: 24px; top: 24px;
  border-radius: 9px;
  width: 48px; height: 48px;
  border: 2px solid var(--secondary);
  z-index: 1210;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.1s;
}
.mobile-menu-close:hover,.mobile-menu-close:focus { background: #FFE1A0; }
.mobile-nav {
  margin-top: 88px;    /* space for header */
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: flex-start;
  padding: 0 32px;
}
.mobile-nav a {
  color: var(--primary);
  font-size: 1.35rem;
  font-weight: 800;
  padding: 11px 0 11px 14px;
  border-radius: 8px;
  transition: background .17s, color .13s;
  min-width: 210px;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--secondary);
  color: var(--retro-red);
  font-style: italic;
}

@media (max-width: 575px) {
  .mobile-menu-close {
    right: 8px; top: 8px;
  }
  .mobile-nav {
    padding: 0 13px;
  }
}

/* ==== HERO SECTION ==== */
.hero {
  background: var(--secondary);
  background-image:
    repeating-linear-gradient(135deg, transparent, transparent 11px, rgba(245,178,85,0.12) 13px, transparent 16px),
    url('../assets/vintage-bg-pattern.svg');
  background-size: auto, cover;
  color: var(--dark-brown);
  box-shadow: 0 2px 18px var(--retro-shadow);
  border-radius: 0 0 34px 34px;
  padding: 60px 0 44px 0;
}
.hero .container {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  height: 100%;
}
.hero .content-wrapper {
  max-width: 630px;
  gap: 26px;
}
.hero h1 {
  color: var(--primary);
  font-size: 2.3rem;
  font-weight: 900;
  line-height: 1.12;
  margin-bottom: 12px;
  text-shadow: 1px 1px 0 #F5B255,0px 2px 5px #fff4;
  letter-spacing: 0.04em;
}
.hero p {
  font-size: 1.24rem;
  color: var(--dark-brown);
}

@media (min-width: 900px) {
  .hero .container { min-height: 390px; }
  .hero h1 { font-size: 2.9rem; }
}

/* ==== VINTAGE FEATURE GRID ==== */
.features .feature-grid,
.section .service-list,
.section .service-grid,
.section .article-list,
.section .project-list,
.value-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
  margin-top: 20px;
}
.feature-grid > div,
.service-list > div,
.service-grid > div,
.article-list > article,
.value-list > div,
.project-list > div {
  width: 100%;
  max-width: 340px;
  background: #FFE1A0;
  border-radius: 13px;
  padding: 20px 18px 20px 18px;
  box-shadow: 0 2px 12px var(--retro-shadow);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 13px;
  margin-bottom: 20px;
  border: 2px solid var(--retro-orange);
  font-family: 'Roboto', Arial, sans-serif;
  transition: background 0.17s, transform 0.19s, box-shadow .19s;
}
.feature-grid > div:hover,
.service-list > div:hover,
.service-grid > div:hover,
.article-list > article:hover,
.value-list > div:hover,
.project-list > div:hover {
  background: #FFEDC7;
  box-shadow: 0 6px 26px var(--retro-shadow);
  transform: translateY(-4px) scale(1.018);
}
.feature-grid img,
.service-list img,
.service-grid img,
.value-list img,
.project-list img {
  width: 47px;
  height: 47px;
  margin-bottom: 8px;
}
.project-list h2 { font-size: 1.18rem; margin-bottom: 6px; }

@media (max-width: 900px) {
  .feature-grid > div, .service-list > div, .service-grid > div, .article-list > article, .project-list > div {
    max-width: 100%;
  }
  .features .feature-grid,
  .service-list,
  .service-grid,
  .article-list,
  .value-list,
  .project-list {
    flex-direction: column;
  }
}

/* ==== ABOUT / VALUES ==== */
.values .value-list {
  margin-top: 0;
  gap: 24px;
}
.values .value-list > div {
  background: #FFFDF6;
  border: 2px dashed var(--retro-green);
}
.values .value-list > div h3 { color: var(--retro-red); font-size: 1.12rem; font-family: 'Montserrat',sans-serif; }
.values .value-list > div p { color: #464032; font-size: 1rem; }

/* ==== CARD-CONTAINER LAYOUT ==== */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: #FFE1A0;
  border-radius: 9px;
  box-shadow: 0 2px 11px var(--retro-shadow);
  padding: 26px 23px;
  border: 2px solid var(--retro-green);
  font-family: 'Roboto', Arial, sans-serif;
}

/* ==== VINTAGE BUTTONS ==== */
.cta, .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
  font-weight: 700;
  font-size: 1.05rem;
  background: var(--retro-orange);
  color: var(--dark-brown);
  padding: 12px 24px;
  border-radius: 9px;
  border: 2px solid var(--secondary);
  margin-top: 10px;
  box-shadow: 0 2px 11px var(--retro-shadow);
  cursor: pointer;
  transition: background 0.18s, color 0.18s, box-shadow 0.19s, transform 0.19s;
  letter-spacing: 0.03em;
}
.cta:hover, .btn:hover,
.cta:focus, .btn:focus {
  background: var(--secondary);
  color: var(--primary);
  box-shadow: 0 6px 22px var(--retro-shadow);
  transform: translateY(-2px) scale(1.03);
}
.cta.primary, .btn.primary {
  background: var(--primary);
  color: #fff6d6;
  border: 2px solid var(--retro-green);
}
.cta.primary:hover, .btn.primary:hover {
  background: var(--retro-green);
  color: #212925;
  border-color: var(--primary);
}

/* OLD-STYLE LINK APPEARANCE */
a, .cta, .btn {
  text-decoration: none;
  outline: none;
}
a.cta:active { filter: brightness(0.93); }

/* ==== CARDS, TESTIMONIALS & FLEX UTILITIES ==== */
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: #FFF2CC;
  border-radius: 13px;
  border: 2.5px dashed var(--retro-orange);
  margin-bottom: 18px;
  box-shadow: 0 2px 12px var(--retro-shadow);
  font-family: 'Roboto',Arial,sans-serif;
  max-width: 560px;
  transition: transform .19s, box-shadow .17s;
}
.testimonial-card:hover {
  box-shadow: 0 8px 35px var(--retro-shadow);
  transform: scale(1.025);
}
.testimonial-card blockquote {
  font-size: 1.10rem;
  color: #483C2F;
  font-style: italic;
  margin: 0;
}
.testimonial-card footer {
  font-size: .95em;
  font-style: normal;
  color: #1D5E2F;
  font-family: 'Montserrat',sans-serif;
  margin-top: 10px;
  font-weight: 900;
}

@media (max-width: 900px) {
  .testimonial-card { max-width: 100%; }
}

/* For contrast in testimonials */
.testimonial-card blockquote {
  background: none;
  color: #273218;
}

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

/* ==== FOOTER ==== */
footer {
  background: #FCF6E2;
  border-top: 4px solid var(--secondary);
  padding: 34px 0 17px 0;
  font-family: 'Roboto',Arial,sans-serif;
}
footer .container {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
footer .content-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  align-items: flex-start;
  justify-content: space-between;
}
.footer-menu {
  display: flex;
  flex-direction: row;
  gap: 18px;
  flex-wrap: wrap;
}
.footer-menu a {
  color: var(--primary);
  font-weight: bold;
  border-radius: 8px;
  padding: 5px 13px;
  font-size: .98rem;
  background: #ffe1a09e;
  transition: background .24s, color .17s;
}
.footer-menu a:hover, .footer-menu a:focus {
  background: var(--secondary);
  color: var(--retro-red);
}
.footer-contact ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: #FFF9E6;
  border-radius: 9px;
  padding: 10px 15px;
  border: 2px dotted var(--retro-orange);
  font-size: 1rem;
}
.footer-brand img {
  height: 47px;
}

@media (max-width: 900px) {
  footer .content-wrapper {
    flex-direction: column;
    gap: 28px;
    align-items: flex-start;
  }
  .footer-menu { flex-direction: column; gap:10px; }
}

/* ==== LISTS / OL / DL / UL ==== */
ul {
  margin-left: 0;
  margin-bottom: 14px;
  padding-left: 18px;
}
ul li {
  position: relative;
  padding-left: 1.3em;
  margin-bottom: 8px;
  font-size: 1rem;
}
ul li img {
  width: 22px;
  vertical-align: middle;
  margin-right: 8px;
}
ul li:before {
  content: '\25CF';
  position: absolute;
  left: 0.1em;
  color: #D3655B;
  font-size: 0.9em;
  top: 0.35em;
  opacity: 0.6;
}
ol {
  padding-left: 18px;
  margin-bottom: 12px;
}
ol li {
  font-size: 1rem;
  margin-bottom: 7px;
  list-style-type: decimal;
  padding-left: 0;
}
dl {
  margin-bottom: 18px;
}
dt {
  font-weight: bold;
  color: var(--retro-blue);
  margin-top: 8px;
}
dd {
  margin-left: 18px;
  margin-bottom: 3px;
}

/* ==== MISCELLANEOUS ==== */
input, textarea, select {
  font-family: inherit;
  border: 2px solid var(--retro-orange);
  padding: 11px 12px;
  border-radius: 8px;
  margin-bottom: 15px;
  outline: none;
  font-size: 1rem;
  background: #FFFCE5;
  color: var(--dark-brown);
  transition: border 0.16s;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--primary);
}

/* ==== RESPONSIVE FLEX LAYOUTS ==== */
@media (max-width: 768px) {
  .content-wrapper,
  .content-grid,
  .card-container,
  .feature-grid,
  .service-list,
  .service-grid,
  .article-list,
  .value-list,
  .project-list,
  .text-image-section {
    flex-direction: column !important;
    gap: 22px !important;
    align-items: stretch;
  }
  .hero h1 { font-size: 2rem; }
}
@media (max-width: 575px) {
  .container { padding: 0 7px; }
  .hero { padding: 30px 0 23px 0;}
  .section { padding: 28px 6px; }
}

/* ==== COOKIE CONSENT BANNER ==== */
.cookie-banner {
  position: fixed;
  left: 0; right: 0;
  bottom: 0;
  z-index: 1800;
  width: 100vw;
  background: var(--retro-beige);
  border-top: 4px solid var(--secondary);
  box-shadow: 0 -4px 28px var(--retro-shadow);
  padding: 22px 10px 18px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  animation: cookieDrop .9s cubic-bezier(.26,1.51,.83,.67);
}
@keyframes cookieDrop {
  from { transform: translateY(100%); opacity: 0; }
  to   { transform: translateY(0);   opacity: 1; }
}
.cookie-banner p {
  font-size: 1rem;
  color: var(--dark-brown);
  text-align: center;
}
.cookie-btns {
  display: flex;
  flex-direction: row;
  gap: 12px;
}
.cookie-banner button {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 1rem;
  border-radius: 7px;
  border: 2px solid var(--primary);
  padding: 11px 16px;
  margin: 0;
  transition: background 0.17s, color 0.13s, border-color 0.13s;
  cursor: pointer;
}
.cookie-banner .accept {
  background: var(--primary);
  color: #ffe;
}
.cookie-banner .accept:hover,.cookie-banner .accept:focus {
  background: var(--retro-green);
  color: var(--retro-beige);
}
.cookie-banner .reject {
  background: #FFE1A0;
  color: var(--retro-red);
  border-color: var(--retro-red);
}
.cookie-banner .reject:hover,.cookie-banner .reject:focus {
  background: var(--retro-red);
  color: #ffe;
  border-color: var(--retro-red);
}
.cookie-banner .settings {
  background: #FFFDF6;
  color: var(--primary);
  border-color: var(--retro-blue);
}
.cookie-banner .settings:hover,.cookie-banner .settings:focus {
  background: var(--retro-blue);
  color: #ffe;
  border-color: var(--retro-blue);
}

/* ==== COOKIE MODAL ==== */
.cookie-modal-overlay {
  position: fixed;
  left: 0; top: 0; width: 100vw; height: 100vh;
  background: rgba(60,48,24,0.34);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn .27s;
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.cookie-modal {
  min-width: 340px;
  max-width: 95vw;
  background: var(--retro-beige);
  border-radius: 17px;
  padding: 40px 26px 28px 26px;
  box-shadow: 0 6px 50px var(--retro-shadow);
  border: 3px solid var(--retro-orange);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 18px;
  animation: modalPop .48s cubic-bezier(.14,1.77,.89,.82);
}
@keyframes modalPop {
  from { opacity: 0; transform: scale(0.82); }
  to   { opacity: 1; transform: scale(1);   }
}
.cookie-modal h2 { color: var(--primary);font-size:1.35rem;font-weight: 900; }
.cookie-modal label {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 0;
  font-weight: 700;
  font-family: 'Montserrat', Arial, sans-serif;
  color: var(--dark-brown);
}
.cookie-modal .cookie-toggle {
  appearance: none;
  width: 36px;
  height: 21px;
  background: #E5CA8A;
  border-radius: 21px;
  border: 2px solid var(--retro-orange);
  position: relative;
  outline: none;
  margin-right: 5px;
  transition: background 0.17s;
}
.cookie-modal .cookie-toggle:checked {
  background: var(--primary);
  border-color: var(--primary);
}
.cookie-modal .cookie-toggle::before {
  content: '';
  display: block;
  position: absolute;
  left: 3px;
  top: 3px;
  width: 13px;
  height: 13px;
  background: #fff6d6;
  border-radius: 50%;
  transition: left 0.15s;
}
.cookie-modal .cookie-toggle:checked::before {
  left: 18px;
}
.cookie-modal .cookie-save-btn {
  background: var(--primary);
  color: #fff6d6;
  border-radius: 8px;
  padding: 13px 22px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 900;
  font-size: 1.09rem;
  border: 2px solid var(--retro-green);
  transition: background 0.16s;
}
.cookie-modal .cookie-save-btn:hover,.cookie-modal .cookie-save-btn:focus {
  background: var(--retro-green);
  color: #fff7d6;
}

/* ==== RETRO MICRO-INTERACTIONS ==== */
.cta, .btn, .testimonial-card, .feature-grid > div,
.service-list > div, .card, .footer-menu a {
  transition: background 0.17s, color 0.14s, box-shadow 0.2s, transform .16s;
}

/* ==== ACCESSIBILITY FOCUS STYLES ==== */
a:focus, button:focus, .cta:focus, .btn:focus {
  outline: 3px dashed var(--retro-red);
  outline-offset: 3px;
  background: #FFDCC2 !important;
}

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

/* ==== ANIMATIONS: SLIDE MENU ==== */
.mobile-menu {
  will-change: transform;
}
