/* -----------------------------------------------------
   CSS RESET & NORMALIZE (vintage-retro base)
------------------------------------------------------*/
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 { font-family: 'Raleway', Arial, sans-serif; background: #F6F5F3; }
body { line-height: 1.45; color: #233765; min-height: 100vh; font-size: 16px; background: #F4EEE3; -webkit-font-smoothing: antialiased; }
*, *:before, *:after { box-sizing: border-box; }
img { max-width: 100%; display: block; height: auto; border: 0; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font-family: inherit; outline: none; background: none; border: none; }

/* ----------------------------------------------------
   FONT SETUP: Vintage/retro
   Brand: Montserrat (display), Raleway (body)
   Vintage fallback: 'Georgia', serif for H1/H2
-----------------------------------------------------*/
@import url('https://fonts.googleapis.com/css?family=Montserrat:700,900&display=swap');
@import url('https://fonts.googleapis.com/css?family=Raleway:400,500,600,700&display=swap');

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'Georgia', serif;
  color: #233765;
  font-weight: 900;
  letter-spacing: -1px;
  margin-bottom: 18px;
}
h1 { font-size: 2.8rem; line-height: 1.1; }
h2 { font-size: 2.1rem; line-height: 1.18; }
h3 { font-size: 1.36rem; line-height: 1.21; }
h4, h5, h6 { font-size: 1.1rem; }
p, li { font-family: 'Raleway', Arial, sans-serif; font-size: 1.07rem; color: #403535; margin-bottom: 13px; }
strong { font-weight: 700; }

/* ----------------------------------------------------
   VINTAGE/RETRO COLOR SCHEME
   Brand: #233765 (navy), #E68C3A (vintage orange), #F6F5F3 (warm light)
   Add:
   - Classic cream: #F4EEE3 (main bg)
   - Earthy teal: #4C7977
   - Retro brown: #A17B52
   - Highlight yellow: #F4C74D
-----------------------------------------------------*/
:root {
  --color-primary: #233765;
  --color-secondary: #E68C3A;
  --color-accent: #F6F5F3;
  --color-cream: #F4EEE3;
  --color-teal: #4C7977;
  --color-brown: #A17B52;
  --color-yellow: #F4C74D;
  --color-bg: #F4EEE3;
  --color-footer: #233765;
  --color-shadow: #BCA577;
}

/* ----------------------------------------------------
   LAYOUT CONTAINERS
 ----------------------------------------------------*/
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--color-accent);
  border-radius: 18px;
  box-shadow: 0 8px 32px rgba(164,135,60,0.11), 0 1.5px 0 #E68C3A inset;
  position: relative;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-start;
}
.text-section {
  /* For sections meant to emphasize text */
  background: #FFFDF9;
  border: 2.5px dashed #E68C3A;
  border-radius: 16px;
  padding: 40px 24px;
  box-shadow: 0 4px 22px rgba(164,135,60,0.08);
  margin-bottom: 24px;
}

/* ----------------------------------------------------
   FLEXBOX LAYOUTS (MANDATORY)
 ----------------------------------------------------*/
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 24px;
}
.card {
  background: #FFFDF9;
  border: 2px solid #E68C3A;
  box-shadow: 0 4px 15px rgba(35,55,101,0.07);
  border-radius: 16px;
  padding: 28px 24px;
  margin-bottom: 20px;
  position: relative;
  min-width: 270px;
}
.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;
  background: #FCF8EE;
  border: 2px dotted #A17B52;
  box-shadow: 0 4px 15px rgba(164,123,82,0.09);
  border-radius: 16px;
  margin-bottom: 20px;
  transition: box-shadow 0.19s linear, border-color 0.22s;
  max-width: 650px;
}
.testimonial-card:hover {
  border-color: #E68C3A;
  box-shadow: 0 10px 30px rgba(164,123,82,0.15);
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

@media (max-width: 900px) {
  .container { max-width: 96vw; }
  .content-wrapper, .card-container, .content-grid { flex-direction: column !important; gap: 20px !important; }
}
@media (max-width: 768px) {
  .container { max-width: 100vw; }
  .section, .text-section, .card { padding: 24px 11px !important; }
  .content-wrapper, .card-container, .content-grid, .text-image-section, .testimonial-card, .feature-item { flex-direction: column !important; align-items: stretch !important; }
  .text-image-section { gap: 12px !important; }
  h1 { font-size: 2.1rem; }
  h2 { font-size: 1.4rem; }
}
@media (max-width: 524px) {
  .section, .text-section { padding: 18px 4px !important; }
  h1 { font-size: 1.2rem; }
}

/* ----------------------------------------------------
   HEADER & NAVIGATION (Retro style)
 ----------------------------------------------------*/
header {
  background: var(--color-primary);
  border-bottom: 4px solid var(--color-secondary);
  box-shadow: 0 2px 6px rgba(63,52,39,0.06);
}
nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
  gap: 22px;
  font-family: 'Montserrat', 'Georgia', serif;
}
nav img {
  height: 48px;
}
nav ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px;
  margin: 0 18px;
}
nav ul li a {
  font-weight: 700;
  font-size: 1.09rem;
  color: var(--color-accent);
  letter-spacing: 0.01em;
  padding: 7px 13px;
  border-radius: 6px;
  transition: background 0.15s, color 0.14s;
  position: relative;
}
nav ul li a:hover, nav ul li a:focus {
  background: var(--color-secondary);
  color: var(--color-primary);
  outline: none;
}
.cta-btn {
  background: var(--color-secondary);
  color: #233765;
  border-radius: 24px;
  padding: 12px 32px;
  font-weight: bold;
  font-family: 'Montserrat', 'Georgia', serif;
  font-size: 1.09rem;
  letter-spacing: 0.01em;
  box-shadow: 0 2px 12px rgba(230,140,58,0.09);
  text-transform: uppercase;
  border: 2px solid var(--color-yellow);
  transition: background 0.15s, color 0.2s, border 0.15s, box-shadow 0.23s;
  cursor: pointer;
  position: relative;
  margin-left: 10px;
  z-index: 6;
}
.cta-btn:hover, .cta-btn:focus {
  background: var(--color-primary);
  color: var(--color-accent);
  border-color: #233765;
  box-shadow: 0 3px 17px rgba(35,55,101,0.17);
  outline: none;
}
@media (max-width: 968px) {
  nav ul { gap: 13px; margin: 0 2px; }
}
@media (max-width: 810px) {
  nav, header nav { flex-wrap: wrap; }
  nav ul { flex-wrap: wrap; }
}
@media (max-width: 650px) {
  nav ul, nav .cta-btn {
    display: none !important;
  }
}

/* ----------------------------------------------------
   MOBILE BURGER MENU
 ----------------------------------------------------*/
.mobile-menu-toggle {
  display: none;
  position: fixed;
  top: 21px;
  right: 22px;
  background: var(--color-secondary);
  color: var(--color-primary);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 3px solid #FAE5CC;
  font-size: 2rem;
  z-index: 52;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 9px rgba(230,140,58,0.13);
  transition: background 0.24s, color 0.24s;
  cursor: pointer;
}
.mobile-menu-toggle:focus,
.mobile-menu-toggle:hover {
  background: #E3B56F;
  color: #233765;
}
@media (max-width: 650px) {
  .mobile-menu-toggle { display: flex !important; }
}
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(235,210,161,0.89);
  z-index: 1005;
  display: flex;
  flex-direction: column;
  transform: translateX(-100vw);
  transition: transform 0.34s cubic-bezier(.62,1.94,.22,.77);
  pointer-events: none;
  opacity: 0;
}
.mobile-menu.open {
  transform: translateX(0);
  pointer-events: all;
  opacity: 1;
}
.mobile-menu-close {
  align-self: flex-end;
  background: var(--color-secondary);
  color: var(--color-primary);
  border-radius: 50%;
  width: 42px;
  height: 42px;
  font-size: 1.5rem;
  margin: 21px 21px 0 0;
  border: 2px solid #D2A26B;
  box-shadow: 0 1px 7px #E68C3A33;
  cursor: pointer;
  transition: background 0.18s, color 0.18s;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  background: var(--color-primary);
  color: var(--color-accent);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 28px;
  align-items: center;
  justify-content: center;
  flex: 1;
  margin: 31px 0 0 0;
}
.mobile-nav a {
  display: block;
  padding: 17px 0;
  width: min(90vw, 320px);
  font-family: 'Montserrat', 'Georgia', serif;
  text-align: center;
  border-radius: 13px;
  margin: 0 auto;
  font-size: 1.28rem;
  background: var(--color-accent);
  color: var(--color-primary);
  border: 2px solid var(--color-secondary);
  box-shadow: 0 2px 8px rgba(35,55,101,0.08);
  margin-bottom: 7px;
  transition: background 0.14s, color 0.14s, border 0.16s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--color-secondary);
  color: var(--color-accent);
  border: 2px solid var(--color-primary);
}

/* ----------------------------------------------------
   SECTIONS: PATTERNS, BORDERS, NOSTALGIC DECOR
 ----------------------------------------------------*/
.section {
  position: relative;
  /* Retro corner ribbons/decorative elements */
  overflow: visible;
}
.section:before, .text-section:before {
  content: "";
  display: block;
  position: absolute;
  left: -25px; top: -25px;
  width: 55px; height: 55px;
  background: repeating-linear-gradient(135deg, #E68C3A 0, #E68C3A 7px, #F4C74D 7px, #F4C74D 14px);
  opacity: 0.2;
  z-index: 2;
  border-radius: 15px 25px 15px 65px;
  pointer-events: none;
}
.text-section:before {
  left: unset; right: -25px; top: -22px;
  border-radius: 35px 12px 22px 35px;
  background: repeating-linear-gradient(135deg, #A17B52 0, #A17B52 10px, #F4C74D 10px, #F4C74D 20px);
}
/* ----------------------------------------------------
   ICONS IN LISTS (retro accent)
 ----------------------------------------------------*/
ul li img, ul li svg {
  display: inline-block;
  width: 25px;
  height: 25px;
  margin-right: 11px;
  vertical-align: middle;
  filter: contrast(115%) saturate(1.1);
}
ul li {
  margin-bottom: 10px;
  padding-left: 0;
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 1.05rem;
}

ol {
  padding-left: 17px;
  margin-bottom: 16px;
  color: #403535;
}
ol li {
  margin-bottom: 13px;
  font-family: 'Raleway', Arial, sans-serif;
}

/* ----------------------------------------------------
   BUTTONS (Retro)
 ----------------------------------------------------*/
button, .cta-btn {
  cursor: pointer;
  font-family: 'Montserrat', 'Georgia', serif;
  font-weight: 700;
  border-radius: 24px;
  border: 2.5px solid var(--color-yellow);
  padding: 12px 32px;
  color: #233765;
  background: #F4C74D;
  transition: background 0.18s, color 0.16s, border 0.17s, box-shadow 0.19s;
}
button:focus,button:hover,.cta-btn:focus,.cta-btn:hover {
  color: var(--color-accent);
  background: var(--color-primary);
  border: 2.5px solid var(--color-secondary);
  box-shadow: 0 2px 16px rgba(230,140,58,0.20);
  outline: none;
}

/* Utility button classes for cookie banner/default */
.btn, .cookie-btn {
  font-family: 'Montserrat', 'Georgia', serif;
  font-weight: 700;
  font-size: 1.06rem;
  border-radius: 22px;
  padding: 10px 24px;
  border: 2px solid var(--color-brown);
  background: #F6F5F3;
  color: var(--color-primary);
  margin: 7px 7px 0 0;
  box-shadow: 0 1px 7px #deb37533;
  cursor: pointer;
  transition: background 0.13s, color 0.12s, border 0.13s;
}
.btn:focus, .btn:hover, .cookie-btn:active {
  background: #E68C3A;
  color: #FFFDF9;
  border-color: #233765;
}

/* ----------------------------------------------------
   SERVICE & FEATURE CARDS
 ----------------------------------------------------*/
.service-card {
  background: #FFFDF9;
  border: 2.5px solid #F4C74D;
  border-radius: 12px;
  box-shadow: 0 4px 18px #baa16822;
  padding: 30px 23px 24px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  min-width: 240px;
  gap: 11px;
}
.service-card strong {
  color: #B37D22;
  font-size: 1.13rem;
}

/* ----------------------------------------------------
   TESTIMONIALS (Vintage accent)
 ----------------------------------------------------*/
.testimonial-card {
  background: linear-gradient(98deg, #FCF8EE 85%, #F6F5F3 100%);
  border: 2.5px dotted #A17B52;
  color: #233765;
  font-size: 1.16rem;
  font-family: 'Raleway', Arial, sans-serif;
}
.testimonial-card span {
  color: #B37D22;
  font-size: 1.02rem;
  font-family: 'Montserrat', 'Georgia', serif;
  font-weight: bold;
  margin-left: 7px;
  letter-spacing: 0.01em;
}

/* Ensure proper color contrast in all testimonials (requirement) */
.testimonial-card p { color: #233765; }
.testimonial-card span { color: #A17B52; }

/* ----------------------------------------------------
   PAGINATION (Retro dots)
 ----------------------------------------------------*/
.pagination {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: flex-start;
  margin: 24px 0 0 0;
}
.pagination a, .pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 35px;
  height: 35px;
  font-size: 1.1rem;
  font-family: 'Montserrat', 'Georgia', serif;
  color: #233765;
  background: #F6F5F3;
  border-radius: 50%;
  border: 2px solid #A17B52;
  transition: background 0.14s, color 0.14s, border 0.13s;
  margin-right: 2px;
}
.pagination a:hover, .pagination a:focus {
  background: #F4C74D;
  border: 2px solid #E68C3A;
  color: #233765;
}
.pagination span {
  background: #E68C3A;
  border: 2px solid #E68C3A;
  color: #FFFDF9;
  font-weight: bold;
}

/* ----------------------------------------------------
   FORMS & INPUTS
 ----------------------------------------------------*/
input[type="text"], input[type="email"], textarea {
  width: 100%;
  background: #FFFDF9;
  border: 2px solid #E68C3A;
  border-radius: 7px;
  font-size: 1.11rem;
  padding: 12px 15px;
  margin-bottom: 13px;
  font-family: 'Raleway', Arial, sans-serif;
  color: #233765;
  transition: border 0.14s, box-shadow 0.13s;
  box-shadow: 0 1px 4px #c9b17222;
}
input[type="text"]:focus, input[type="email"]:focus, textarea:focus {
  border-color: #E68C3A;
  outline: 2px solid #F4C74D;
  box-shadow: 0 1px 8px #e6cb892a;
}
::placeholder {
  color: #958453;
  opacity: 0.7;
  font-style: italic;
  font-family: 'Georgia', serif;
}

/* ----------------------------------------------------
   FOOTER (Retro stripe)
 ----------------------------------------------------*/
footer {
  background: linear-gradient(98deg, #F4EEE3 82%, #F6F5F3 100%);
  border-top: 4px solid #E68C3A;
  color: #233765;
  font-size: 1.09rem;
  margin-top: 55px;
  padding: 0;
}
footer .container { padding: 37px 0 9px 0; }
footer nav {
  color: #A17B52;
  font-family: 'Montserrat', 'Georgia', serif;
  font-size: 0.99rem;
  margin-bottom: 9px;
  gap: 0;
}
footer ul {
  display: flex;
  flex-direction: row;
  gap: 33px;
  margin: 16px 0 9px 0;
}
footer ul li {
  font-size: 1rem;
  color: #403535;
}
footer a {
  color: #233765;
  text-decoration: underline;
  transition: color 0.12s;
}
footer a:hover, footer a:focus {
  color: #E68C3A;
}
footer img {
  height: 46px;
}
footer p {
  font-size: 0.92rem;
  color: #6a6a65;
  margin-top: 9px;
}
@media (max-width: 600px) {
  footer .content-wrapper { align-items: flex-start !important; }
  footer ul { flex-direction: column; gap: 9px; }
  footer img { margin-bottom: 14px; }
}

/* ----------------------------------------------------
   COOKIE CONSENT BANNER
 ----------------------------------------------------*/
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: #F4EEE3;
  border-top: 2.5px solid #E68C3A;
  color: #233765;
  font-family: 'Raleway', Arial, sans-serif;
  padding: 18px 16px 12px 16px;
  z-index: 1100;
  box-shadow: 0 -2px 16px #8e750a23;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 20px;
  animation: cookieBannerIn 0.45s cubic-bezier(.51,1.3,.49,.92);
}
@keyframes cookieBannerIn {
  from { transform: translateY(110%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.cookie-banner-text {
  flex: 1 1 340px;
  max-width: 1000px;
  font-size: 1.04rem;
  color: #233765;
  margin-bottom: 8px;
}
.cookie-btn {
  min-width: 130px;
}

/* Cookie modal */
.cookie-modal {
  position: fixed;
  left: 50%;
  bottom: 50%;
  transform: translate(-50%,64%);
  background: #FFFDF9;
  border-radius: 23px;
  border: 2.5px solid #E68C3A;
  box-shadow: 0 8px 32px #c7b68952;
  padding: 40px 26px 24px 26px;
  z-index: 1202;
  width: 95%;
  max-width: 420px;
  display: none;
  flex-direction: column;
  gap: 18px;
  opacity: 0;
  animation: modalIn 0.34s cubic-bezier(.41,1.05,.56,.75);
}
.cookie-modal.open {
  display: flex;
  opacity: 1;
}
@keyframes modalIn {
  from {transform: translate(-50%,100%) scale(0.89); opacity: 0; }
  to {transform: translate(-50%,64%) scale(1); opacity: 1; }
}
.cookie-category {
  display: flex; flex-direction: column; gap: 17px; margin-bottom: 24px;
}
.cookie-switch {
  appearance: none;
  outline: none;
  border: 2px solid #A17B52;
  background-color: #F6F5F3;
  width: 38px;
  height: 21px;
  border-radius: 40px;
  position: relative;
  box-shadow: 0 1px 7px #deb37533;
  vertical-align: middle;
  margin-right: 9px;
  transition: background 0.2s, border 0.16s;
}
.cookie-switch:checked {
  background-color: #E68C3A;
  border-color: #F4C74D;
}
.cookie-switch::after {
  content: "";
  position: absolute;
  top: 2.5px; left: 3px;
  width: 15px; height: 15px;
  border-radius: 50%;
  background: #E68C3A;
  transition: left 0.18s;
}
.cookie-switch:checked::after {
  left: 19px;
  background: #233765;
}
.cookie-modal h3 {
  font-family: 'Montserrat', 'Georgia', serif;
  font-weight: 700;
  font-size: 1.19rem;
  margin-bottom: 7px;
}
.cookie-modal-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

.cookie-category label {
  display: flex;
  align-items: center;
  cursor: pointer;
  font-size: 1rem;
}
.cookie-essential-label {
  color: #A17B52;
  font-weight: bold;
}

/* Cookie modal overlay bg */
.cookie-modal-bg {
  position: fixed;
  z-index: 1201;
  top: 0; left:0; right:0; bottom:0;
  background: rgba(43,36,23,0.35);
  display: none;
}
.cookie-modal.open ~ .cookie-modal-bg { display: block !important; }

@media (max-width: 480px) {
  .cookie-modal { padding: 16px 3vw; min-width: 0; width: 95% !important; }
  .cookie-banner { gap: 11px; flex-direction: column; padding: 9px 2vw 4px 2vw; }
  .cookie-modal h3 { font-size: 1.07rem; }
}

/* ----------------------------------------------------
   RETRO VISUAL EFFECTS & MICRO-INTERACTIONS
 ----------------------------------------------------*/
.card, .service-card, .testimonial-card, .cookie-modal {
  transition: box-shadow 0.22s, border-color 0.19s;
}
.card:hover, .service-card:hover {
  border-color: #233765; box-shadow: 0 8px 24px #E68C3A44;
}

/* Animated underline for links */
a:not(.cta-btn):not(.mobile-nav a):not(.cookie-btn) {
  position: relative;
  transition: color 0.11s;
}
a:not(.cta-btn):not(.mobile-nav a):not(.cookie-btn):after {
  content: "";
  display: block;
  position: absolute;
  left: 0; bottom: -2px;
  width: 0%;
  height: 2px;
  background: #E68C3A;
  transition: width 0.14s;
}
a:not(.cta-btn):not(.mobile-nav a):not(.cookie-btn):hover:after, a:not(.cta-btn):not(.mobile-nav a):not(.cookie-btn):focus:after {
  width: 100%;
}

/* ----------------------------------------------------
   MISC.
 ----------------------------------------------------*/
::-webkit-scrollbar {
  width: 13px; background: #F6F5F3;
}
::-webkit-scrollbar-thumb {
  background: #E68C3A;
  border-radius: 8px;
}

/* Accessibility: focus ring */
:focus-visible {
  outline: 3px dashed #E68C3A;
  outline-offset: 3px;
}

/* Section titles & dividers */
.section h2 {
  position: relative;
  padding-bottom: 9px;
  margin-bottom: 19px;
}
.section h2:after {
  content: " ";
  display: block;
  width: 52px;
  height: 4px;
  background: #E68C3A;
  border-radius: 2px;
  margin-top: 7px;
  opacity: 0.68;
}

/* Media queries clean-up */
@media (max-width: 600px) {
  h1, h2, h3 { font-size: 1.05em !important; }
  .container { padding: 0 7px; }
}
