/* === 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.5;
  background: #f0e9df;
  color: #1d1c18;
}
ol, ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
}
a {
  text-decoration: none;
  color: inherit;
  transition: color .2s;
}
img {
  max-width: 100%;
  height: auto;
  border: none;
  display: block;
}
table {
  border-collapse: collapse;
  width: 100%;
}
th, td {
  text-align: left;
  padding: 8px 16px;
}

/* === FONTS (Vintage & Brand) === */
@import url('https://fonts.googleapis.com/css?family=Montserrat:700,900|Roboto:400,500,700&display=swap');
@font-face {
  font-family: 'Vintagescript';
  src: local('Brush Script MT'), local('Comic Sans MS'); /* fallback for retro headings */
}

body, html {
  font-family: 'Roboto', Arial, sans-serif;
  font-weight: 400;
  font-size: 16px;
}
h1, h2, h3, h4 {
  font-family: 'Montserrat', 'Vintagescript', Arial, sans-serif;
  color: #264653;
  margin-bottom: 16px;
  font-weight: 900;
  letter-spacing: 0.01em;
}
h1 { font-size: 2.25rem; letter-spacing: 0.02em; }
h2 { font-size: 1.6rem; margin-bottom: 20px; }
h3 { font-size: 1.2rem; margin-bottom: 10px; font-weight: 700; }
h4 { font-size: 1rem; font-weight: 700; }
p, li, dd {
  font-size: 1rem;
  color: #453528;
  line-height: 1.7;
  margin-bottom: 12px;
}
strong {
  font-weight: 900;
  font-family: 'Montserrat',Arial,sans-serif;
}

/* === COLOR PALETTE === */
:root {
  --primary: #18609e;  /* Blue - main */
  --secondary: #f5f7fa; /* Off-white retro paper */
  --accent: #e18700; /* Orange gold - retro accent */
  --contrast-dark: #1d1c18; /* deep brown */
  --retro-red: #c14430;
  --retro-green: #578267;
  --retro-tan: #f0e9df;
  --retro-blue: #215b7c;
  --shadow-dark: rgba(50,32,10,0.07);
  --testimonial-bg: #fffbe9;
  --testimonial-border: #e6cc9b;
  --btn-hover: #ad7018;
  --card-border: #d9b683;
  --card-shadow: 0 4px 16px 0 rgba(50,32,10,0.03);
}

/* === CONTAINER === */
.container {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 0 16px;
  box-sizing: border-box;
}

/* === HEADER + NAV === */
header {
  background: var(--secondary);
  border-bottom: 6px solid var(--accent);
  box-shadow: 0 2px 8px var(--shadow-dark);
  position: sticky;
  top: 0;
  z-index: 50;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  gap: 18px;
}
header img {
  width: 144px;
  height: auto;
}
header nav {
  display: flex;
  gap: 20px;
  align-items: center;
}
header nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary);
  padding: 10px 6px;
  border-radius: 4px;
  position: relative;
}
header nav a:hover, header nav a:focus {
  background: var(--accent);
  color: #fff;
  outline: none;
  transition: background .2s, color .2s;
}
.cta-btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 900;
  font-size: 1.05rem;
  border: none;
  border-radius: 26px;
  padding: 12px 30px;
  margin-left: 12px;
  box-shadow: 0 2px 8px 0 var(--shadow-dark);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: background .18s, box-shadow .18s, transform .16s;
  outline: none;
}
.cta-btn:hover, .cta-btn:focus {
  background: var(--btn-hover);
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 6px 16px 0 var(--shadow-dark);
}

/* ========== MOBILE NAV (BURGER) ========== */
.mobile-menu-toggle {
  display: none;
  background: none;
  color: var(--primary);
  border: none;
  font-size: 2rem;
  cursor: pointer;
  padding: 0 10px;
  z-index: 105;
  position: relative;
  transition: color .2s;
}
.mobile-menu-toggle:focus {
  outline: 2px solid var(--accent);
}
.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  background: var(--secondary);
  width: 98vw;
  max-width: 380px;
  height: 100vh;
  box-shadow: -7px 0 28px 0 rgba(0,0,0,0.19);
  z-index: 110;
  transform: translateX(100%);
  transition: transform .32s cubic-bezier(.77,0,.175,1);
  display: flex;
  flex-direction: column;
  gap: 0;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: none;
  color: var(--primary);
  border: none;
  font-size: 2rem;
  cursor: pointer;
  align-self: flex-end;
  margin: 18px 18px 0 0;
  transition: color .2s;
  z-index: 120;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  margin: 28px 0 0 24px;
  width: 88%;
}
.mobile-nav a {
  font-family: 'Montserrat',Arial,sans-serif;
  font-size: 1.15rem;
  padding: 10px 0;
  color: var(--primary);
  font-weight: 900;
  border-radius: 0;
  border-left: 4px solid transparent;
  transition: color .16s, border-color .16s, background .12s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--accent);
  color: #fff;
  border-left: 4px solid var(--primary);
}

@media (max-width: 1200px) {
  .container {
    max-width: 98vw;
  }
}
@media (max-width: 900px) {
  header .container { gap:8px; }
  header nav a { font-size: .96rem; }
  .cta-btn { font-size: .98rem; padding: 11px 20px; }
}
@media (max-width: 768px) {
  header nav, .cta-btn {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: block;
    margin-left: auto;
  }
}

/* === SECTIONS & SPACING (Mandatory Patterns) === */
section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--secondary);
  border-radius: 18px;
  box-shadow: 0 3px 32px 0 var(--shadow-dark);
  overflow: hidden;
  position: relative;
}
section:last-child {
  margin-bottom: 0;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.text-section {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
@media (max-width:768px) {
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
}

/* === FEATURE/CARDS === */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}
.feature-grid > li {
  background: var(--retro-tan);
  border: 2px solid var(--card-border);
  border-radius: 12px;
  box-shadow: var(--card-shadow);
  flex: 1 1 180px;
  min-width: 185px;
  max-width: 228px;
  padding: 24px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 20px;
  position: relative;
  transition: box-shadow .22s, transform .16s, border-color .18s;
}
.feature-grid > li img {
  width: 52px;
  margin-bottom: 12px;
}
.feature-grid > li h3 {
  margin: 8px 0 6px 0;
  color: var(--primary);
  font-size: 1.11rem;
}
.feature-grid > li p {
  text-align: center;
  margin-bottom: 0;
  font-size: .97rem;
}
.feature-grid > li .price,
.feature-grid > li strong {
  color: var(--accent);
  font-weight: 900;
  font-family: 'Montserrat',Arial,sans-serif;
}
.feature-grid > li:hover, .feature-grid > li:focus-within {
  box-shadow: 0 10px 30px 0 var(--shadow-dark);
  border-color: var(--accent);
  transform: translateY(-3px) scale(1.03);
}

/* == CARD CONTAINER (general) == */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  width: 100%;
}
.card {
  background: var(--retro-tan);
  border: 2px solid var(--card-border);
  border-radius: 14px;
  box-shadow: var(--card-shadow);
  margin-bottom: 20px;
  padding: 22px 24px;
  position: relative;
  transition: box-shadow .18s, border-color .16s;
  display: flex;
  flex-direction: column;
}
.card:hover, .card:focus-within {
  border-color: var(--primary);
  box-shadow: 0 8px 24px 0 var(--shadow-dark);
}

/* == FLEX CONTENT GRID == */
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}

/* == TESTIMONIALS == */
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  background: var(--testimonial-bg);
  border: 2px solid var(--testimonial-border);
  border-radius: 14px;
  box-shadow: 0 1px 14px 0 var(--shadow-dark);
  padding: 20px 28px;
  margin-bottom: 20px;
  position: relative;
  min-width: 220px;
  max-width: 500px;
}
.testimonial-card p {
  color: #191912;
  font-size: 1.1rem;
  font-family: 'Roboto',Arial,sans-serif;
  font-style: italic;
  margin: 0 0 4px 0;
  line-height: 1.6;
}
.testimonial-card strong {
  color: var(--primary);
}
.testimonial-card span {
  color: var(--accent);
  font-family: 'Montserrat',Arial,sans-serif;
  font-size: 1rem;
  margin-bottom: 0;
}
.testimonial-card > span:first-child {
  font-size: 1.3rem;
  font-family: 'Vintagescript','Montserrat',cursive;
  letter-spacing: .04em;
}
.testimonial-card:before {
  content: '\201C';
  font-family: Georgia, serif;
  color: var(--accent);
  opacity: .15;
  font-size: 5rem;
  position: absolute;
  left: 13px; top: -3px;
  z-index: 0;
}

/* == VISUAL MICRO-ELEMENTS == */
dt {
  font-weight: 700;
  color: var(--primary);
  margin: 18px 0 0 0;
}
dd {
  margin-left: 0;
  margin-bottom: 12px;
  color: #453528;
}
ol {
  counter-reset: stepnum;
}
ol > li {
  position: relative;
  padding-left: 38px;
  margin: 14px 0 14px 0;
  font-size: 1rem;
}
ol > li::before {
  counter-increment: stepnum;
  content: counter(stepnum);
  background: var(--accent);
  color: #fff;
  font-family: 'Montserrat',sans-serif;
  font-weight: 900;
  width: 28px;
  height: 28px;
  line-height: 28px;
  border-radius: 50%;
  display: inline-block;
  text-align: center;
  position: absolute;
  left: 0; top: 0;
  font-size: 1.02rem;
}

/* == TABLES == */
table {
  background: var(--retro-tan);
  border: 2px solid var(--card-border);
  border-radius: 10px;
  box-shadow: var(--card-shadow);
  width: 100%;
  margin-top: 18px;
  margin-bottom: 16px;
  overflow: hidden;
}
th {
  background: var(--primary);
  color: #fff;
  font-family: 'Montserrat',Arial,sans-serif;
  font-weight: 900;
}
td { color: #453528; }
tr:nth-child(even) td {
  background: #f7ebd7;
}

/* == ADDRESS & FOOTER == */
footer {
  background: var(--retro-blue);
  color: #fff;
  padding: 32px 0;
  font-size: .97rem;
  border-top: 4px solid var(--accent);
}
footer .container {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
}
footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}
footer nav a {
  color: #fffbe7;
  font-family: 'Montserrat',Arial,sans-serif;
  font-weight: 700;
  border-bottom: 2px solid transparent;
  transition: border-color .14s;
}
footer nav a:hover, footer nav a:focus {
  border-bottom: 2px solid var(--accent);
}
address {
  font-style: normal;
  color: #fffbe7;
  line-height: 1.6;
  margin-top: 6px;
}
address a {
  color: var(--accent);
  font-weight: 700;
  word-break: break-all;
}

/* == BUTTONS == */
button, .btn {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 900;
  font-size: 1rem;
  border-radius: 80px;
  border: none;
  padding: 11px 28px;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  transition: background .18s, box-shadow .16s, transform .14s;
  margin: 0 8px 0 0;
  outline: none;
}
button:hover, button:focus, .btn:hover, .btn:focus {
  background: var(--btn-hover);
  color: #fff;
  box-shadow: 0 4px 16px 0 var(--shadow-dark);
  transform: translateY(-2px);
}

/* == LINK BUTTON STYLE == */
a.cta-btn, .btn-link, a.btn {
  display:inline-block;
  outline:none;
}
a.cta-btn:focus {
  box-shadow: 0 0 0 3px var(--accent);
  background: var(--btn-hover);
}

/* == FEATURE ITEM == */
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 18px;
}

/* == MAP LOCATION BLOCK == */
.map-location {
  background: var(--testimonial-bg);
  border: 1.5px dashed var(--accent);
  border-radius: 7px;
  padding: 10px 16px;
  font-size: .97rem;
  margin: 10px 0 10px 0;
  color: var(--primary);
  font-family: 'Montserrat',Arial,sans-serif;
}

/* =========== COOKIE BANNER (FIXED) =========== */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  background: #fffaed;
  color: #155334;
  border-top: 2.5px solid var(--accent);
  padding: 18px 20px 18px 20px;
  z-index: 9998;
  box-shadow: 0 -4px 32px rgba(177,135,52,0.17);
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 1rem;
  animation: cbanner-in .85s cubic-bezier(.42,-0.09,.79,1.29);
}
@keyframes cbanner-in {
  from { transform: translateY(100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.cookie-banner .cookie-btn {
  margin: 0 4px;
  border-radius: 59px;
  font-size: 1rem;
  font-family: 'Montserrat',sans-serif;
  font-weight: 900;
  border: none;
  padding: 10px 18px;
  background: var(--accent);
  color: #fffbe7;
  cursor: pointer;
  transition: background .17s, transform .14s;
}
.cookie-banner .cookie-btn.cookie-btn-secondary{
  background: var(--primary);
}
.cookie-banner .cookie-btn.cookie-btn-text{
  background: none;
  color: var(--primary);
  font-weight: 900;
  padding: 8px 8px;
  text-decoration: underline;
}
.cookie-banner .cookie-btn:hover, .cookie-banner .cookie-btn:focus {
  background: var(--btn-hover);
  color: #fff;
}
.cookie-banner .cookie-btn.cookie-btn-text:hover {
  color: var(--accent);
}

@media(max-width: 640px){
  .cookie-banner{
    flex-direction: column;
    align-items: flex-start;
    font-size: .97rem;
    gap: 10px;
    padding: 16px 12px;
  }
  .cookie-banner .cookie-btn{
    margin: 5px 7px 0 0;
    padding: 10px 12px;
  }
}

/* ========== COOKIE MODAL (PREFERENCES) ========== */
.cookie-modal-overlay {
  position: fixed;
  left:0; top:0; width:100vw; height:100vh;
  background: rgba(50,32,10, 0.50);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeInModal .24s linear;
}
@keyframes fadeInModal {
  from { opacity:0; } to { opacity:1; }
}
.cookie-modal {
  background: #fffbe7;
  border-radius: 12px;
  border: 2.5px solid var(--accent);
  max-width: 388px;
  width: 92vw;
  padding: 32px 22px 22px 22px;
  box-shadow: 0 8px 48px rgba(34,18,6,0.22);
  z-index: 10001;
  display: flex;
  flex-direction: column;
  gap: 17px;
  position: relative;
  animation: cbanner-in .35s cubic-bezier(.66,.08,.75,1.29);
}
.cookie-modal h2{
  font-family: 'Montserrat',Arial,sans-serif;
  font-weight: 900;
  font-size: 1.1rem;
  color: var(--primary);
}
.cookie-modal label{
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .98rem;
  font-family: 'Roboto', Arial, sans-serif;
  margin: 0 0 10px 0;
}
.cookie-modal input[type="checkbox"]{
  width: 20px; height: 20px;
  accent-color: var(--accent);
  border-radius: 3px;
  cursor: pointer;
}
.cookie-modal .cookie-modal-actions{
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 7px;
}
.cookie-modal .cookie-modal-close{
  position: absolute;
  top: 8px;
  right: 14px;
  background: none;
  color: var(--accent);
  font-size: 1.5rem;
  border: none;
  cursor: pointer;
  transition: color .15s;
}
.cookie-modal .cookie-modal-close:hover{
  color: var(--primary);
}

/* ========== RESPONSIVENESS ========== */
@media (max-width:900px) {
  section { padding: 32px 6px; }
  .feature-grid > li { min-width: 140px; max-width: 48vw; }
  .testimonial-card { padding: 15px 8px; }
}
@media (max-width: 768px) {
  h1 { font-size: 1.32rem; }
  h2 { font-size: 1.12rem; }
  section { padding: 22px 2vw; margin-bottom: 38px; border-radius: 9px; }
  .container { padding: 0 6px; }
  .content-wrapper, .feature-grid { gap: 15px !important; }
  .feature-grid { flex-direction: column; gap: 18px; }
  .feature-grid > li { max-width: 98vw; min-width: 0; }
  .testimonial-card { max-width: 100vw; min-width: 0; padding: 14px 4px; }
  .card-container { gap: 18px; }
  .content-grid { gap: 12px; }
}
@media (max-width:600px) {
  address { font-size: .88rem; }
  footer .container { gap: 5px; }
}
@media (max-width:460px){
  h1, h2 { font-size: 1rem; }
  section { padding-left:3px; padding-right:3px;}
}

/* ========== ANIMATIONS/MICRO-INTERACTIONS ========== */
.feature-grid > li, .card, .testimonial-card {
  transition: box-shadow .23s, transform .16s, border-color .16s;
  cursor: pointer;
}
.card:hover, .feature-grid > li:hover, .testimonial-card:hover{
  box-shadow: 0 6px 24px 0 var(--shadow-dark);
  border-color: var(--accent);
  transform: translateY(-2px) scale(1.02);
}

/* ========== UTILS ========== */
::-webkit-input-placeholder { color: #ba9855; }
:-moz-placeholder { color: #ba9855; }
::-moz-placeholder { color: #ba9855; }
:-ms-input-placeholder { color: #ba9855; }
input, textarea {
  border: 1.5px solid var(--card-border);
  background: #fffbe9;
  border-radius: 6px;
  font-size: 1rem;
  font-family: 'Roboto',Arial;
  padding: 10px 15px;
  color: #3d2314;
  margin-bottom: 14px;
  width: 100%;
}
input:focus, textarea:focus {
  border-color: var(--accent);
  outline: 2px solid var(--accent);
}
hr {
  margin: 30px 0;
  border: none;
  border-top: 1.5px dashed var(--card-border);
}

/* ========== NOSTALGIC ELEMENTS & PATTERNS ========== */
section {
  background: repeating-linear-gradient(135deg,#fcf4e3 0 22px,#fdf8ed 22px 44px,#f6e6c5 44px 66px);
  box-shadow: 0 3px 32px 0 var(--shadow-dark), 0 0.5px 0 0 #ded4be;
}
.feature-grid > li, .card, .testimonial-card {
  background: repeating-linear-gradient(120deg,#fffbe7 0 36px,#f7ecce 36px 72px);
  border: 2px solid var(--card-border);
}

/* Decorative lines and spot for ultra-retro feel */
section::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  margin: 38px auto 0 auto;
  background: var(--accent);
  opacity: .14;
  border-radius: 2px;
}

/* ========== PRINT === */
@media print {
  header, footer, .cookie-banner, .mobile-menu { display: none !important; }
  section { background: #fff !important; box-shadow: none; }
}
