/* ======================================================
   StylMísto Retro Vintage Theme — CSS
   Responsive, Flexbox-Only, No Grid, Retro Aesthetic
====================================================== */
/* --------------------- 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;
  vertical-align: baseline;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  line-height: 1.5;
  background: #F5F4EC;
  color: #2B4354;
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 16px;
}
*, *:before, *:after {
  box-sizing: inherit;
}
a {
  color: #8A6B40;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover,
a:focus {
  color: #2B4354;
  text-decoration: underline;
}
ul, ol {
  margin-left: 24px;
  margin-bottom: 16px;
}
li {
  margin-bottom: 8px;
  font-size: 1em;
}
table {
  width: 100%;
  border-collapse: collapse;
  background: #fcfaf5;
  border-radius: 8px;
  overflow: hidden;
  margin: 24px 0;
  font-size: 1em;
  box-shadow: 0 2px 12px rgba(171,130,95,0.04);
}
th, td {
  padding: 14px 16px;
  border-bottom: 1px solid #E2D6C4;
  text-align: left;
}
thead th {
  background: #E2C9A0;
  font-family: 'Montserrat', Arial, sans-serif;
  letter-spacing: 1px;
  color: #2B4354;
  font-weight: 700;
}
tbody tr:last-child td {
  border-bottom: 0;
}
strong { font-weight: 700; }

/* ---------------------- Typography --------------------- */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  color: #2B4354;
  margin-bottom: 16px;
}
h1 {
  font-size: 2.5rem;
  letter-spacing: 2px;
  font-weight: 900;
  text-shadow: 2px 2px 0 #E2C9A0, 0 2px 8px rgba(43,67,84,0.08);
  margin-bottom: 24px;
}
h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 20px;
  letter-spacing: 1px;
  text-shadow: 1px 1px 0 #E2C9A0, 0 2px 6px rgba(138,107,64,0.08);
}
h3 {
  font-size: 1.34rem;
  font-weight: 600;
  letter-spacing: 0.6px;
}
h4, h5, h6 {
  font-size: 1.15rem;
}
p, ul, ol, dl, .service-price, .testimonial-meta {
  font-family: 'Open Sans', Arial, sans-serif;
  color: #2B4354;
}

.text-section p, .text-section li, .text-section ul, .text-section ol {
  font-size: 1.1em;
}
.text-section ul, .text-section ol {
  margin-bottom: 20px;
}

.text-section {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}
dt {
  font-weight: 600;
}
dd {
  margin: 0 0 10px 0;
}

/* ---------------------- Container & Layout ------------------------ */
.container {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
  display: flex;
  flex-direction: column;
  gap: 0;
  box-sizing: border-box;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* Section Spacing Pattern */
section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: none;
  position: relative;
}
section:last-child {
  margin-bottom: 0;
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 30px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: #fcfaf5;
  border: 2px solid #B9946D;
  border-radius: 16px;
  box-shadow: 0 6px 24px -10px #8A6B4066, 0 1.5px 3px rgba(43,67,84,0.06);
  padding: 24px 20px;
  transition: box-shadow 0.22s, border-color 0.18s;
}
.card:hover, .card:focus-within {
  box-shadow: 0 14px 36px -4px #8A6B4088, 0 4px 16px #E2C9A099;
  border-color: #2B4354;
}

.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: #FFF7EA;
  border-radius: 14px;
  border: 1.5px dashed #B9946D;
  box-shadow: 0 3px 12px -6px #8A6B4066;
  margin-bottom: 20px;
  position: relative;
}

.testimonial-card p {
  color: #2B4354;
  font-style: italic;
  font-size: 1.18em;
  flex: 1 1 0%;
}
.testimonial-card .testimonial-meta {
  font-size: 0.98em;
  color: #8A6B40;
  font-style: normal;
  font-family: 'Montserrat', Arial, sans-serif;
  letter-spacing: 0.05em;
  margin-left: 16px;
}

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

.services-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 20px;
}

.services-list > div, .service-card {
  background: #fcfaf5;
  border: 1.5px solid #B9946D;
  border-radius: 12px;
  padding: 24px 18px;
  margin-bottom: 20px;
  box-shadow: 0 2px 16px -6px #2B43544d;
  flex: 1 1 260px;
  transition: box-shadow 0.18s, border-color 0.18s;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 220px;
  font-size: 1.07em;
}
.services-list > div:hover, .service-card:hover {
  box-shadow: 0 8px 34px -6px #B9946D88;
  border-color: #2B4354;
}
.service-price {
  font-family: 'Montserrat', Arial, sans-serif;
  color: #8A6B40;
  font-weight: 700;
  margin-top: 8px;
  letter-spacing: 0.08em;
  background: #e6decf;
  border-radius: 6px;
  padding: 2px 10px;
  font-size: 1.04em;
  display: inline-block;
}

.stylist-profile {
  background: #FFF9EC;
  border: 1px solid #E2C9A0;
  border-radius: 12px;
  box-shadow: 0 2px 8px -2px #8A6B4040;
  margin-top: 12px;
  padding: 20px 18px;
}

/* ---------------------------------- Header & Navigation --------------------------------- */
header {
  background: #FFF9EC;
  border-bottom: 2.5px solid #B9946D;
  box-shadow: 0 2px 8px -2px #E2C9A080;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 70px;
  padding-top: 10px;
  padding-bottom: 10px;
}
header nav {
  display: flex;
  gap: 22px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.12em;
  align-items: center;
}
header nav a {
  color: #2B4354;
  padding: 6px 10px;
  border-radius: 5px;
  transition: background 0.16s, color 0.16s;
  position: relative;
}
header nav a:hover, header nav a:focus {
  background: #E2C9A0;
  color: #8A6B40;
  text-decoration: none;
}

/* CTA Button */
.cta-btn {
  background: #2B4354;
  color: #F5F4EC;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  border: none;
  border-radius: 26px 8px 22px 8px;
  padding: 10px 28px;
  margin-left: 10px;
  box-shadow: 0 6px 24px -10px #2B435490;
  outline: none;
  cursor: pointer;
  letter-spacing: 0.1em;
  font-size: 1.15em;
  transition: background 0.18s, color 0.18s, box-shadow 0.18s;
  display: inline-block;
  position: relative;
}
.cta-btn::after {
  content: '';
  display: inline-block;
  width: 14px; height: 14px;
  background: #B9946D;
  border-radius: 50%;
  margin-left: 10px;
  vertical-align: middle;
  box-shadow: 2px 2px 8px #B9946D88;
  transition: background 0.18s;
}
.cta-btn:hover, .cta-btn:focus {
  background: #8A6B40;
  color: #FFFFFF;
  box-shadow: 0 10px 28px -8px #B9946D90;
}
.cta-btn:hover::after,
.cta-btn:focus::after { background: #2B4354; }

header img {
  height: 42px; min-height: 42px; max-height: 60px;
  margin-right: 14px;
}

/* Hamburger - Mobile Menu Button */
.mobile-menu-toggle {
  background: none;
  border: 2px solid #B9946D;
  border-radius: 8px;
  font-size: 2rem;
  color: #8A6B40;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  display: none;
  cursor: pointer;
  transition: border 0.18s, background 0.18s;
}
.mobile-menu-toggle:hover,
.mobile-menu-toggle:focus {
  background: #E2C9A0;
  outline: none;
}

/* -------------------- Mobile Navigation Overlay -------------------- */
.mobile-menu {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  position: fixed;
  z-index: 9999;
  top: 0; right: 0; bottom: 0; left: 0;
  background: #FBF6ECee;
  box-shadow: -4px 0 32px #8A6B4066;
  transform: translateX(100%);
  transition: transform 0.33s cubic-bezier(.6,.01,.85,.64);
  pointer-events: none;
  opacity: 0;
}
.mobile-menu.open {
  transform: translateX(0);
  pointer-events: auto;
  opacity: 1;
  animation: fadeInMenu 0.25s;
}
@keyframes fadeInMenu {
  from { opacity: 0; }
  to { opacity: 1; }
}
.mobile-menu-close {
  align-self: flex-end;
  background: none;
  border: none;
  font-size: 2.2rem;
  color: #8A6B40;
  margin: 30px 24px 10px 0;
  cursor: pointer;
  transition: color 0.12s;
  z-index: 10;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  color: #2B4354;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  padding: 36px 32px;
  font-size: 1.28em;
  width: 100%;
}
.mobile-nav a {
  color: #2B4354;
  background: none;
  padding: 10px 16px;
  border-radius: 7px;
  font-family: 'Montserrat', Arial, sans-serif;
  transition: background 0.15s, color 0.15s;
  margin: 0 0 6px 0;
  width: 100%;
  display: block;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #E2C9A0;
  color: #8A6B40;
}

@media (max-width: 1024px) {
  header .container {
    gap: 10px;
  }
  header nav {
    gap: 12px;
  }
}
@media (max-width: 900px) {
  header nav a, .cta-btn { font-size: 1em; }
}
@media (max-width: 768px) {
  header .container {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    padding-left: 10px;
    padding-right: 10px;
  }
  header nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
  .cta-btn { margin-left: 0; }
}
@media (max-width: 480px) {
  .cta-btn { padding: 9px 16px; font-size: 1em; }
}

/* -------------------- Footer -------------------- */
footer {
  background: #E2C9A0;
  border-top: 2.5px solid #B9946D;
  box-shadow: 0 -2px 14px -5px #B9946D33;
  padding: 18px 0 0 0;
}
footer .container {
  flex-direction: column;
  align-items: flex-start;
  gap: 8px 0;
  padding-bottom: 14px;
}
footer nav {
  display: flex;
  gap: 24px;
  margin-bottom: 8px;
}
footer nav a {
  color: #2B4354;
  font-size: 0.98em;
  padding: 4px 8px;
  border-radius: 5px;
}
footer nav a:hover, footer nav a:focus {
  background: #F5F4EC;
  color: #8A6B40;
}
footer p {
  font-size: 0.98em;
  color: #8A6B40;
}

/* -------------------- Lists & Text Details -------------------- */
ul, ol { list-style-position: outside; }
ul {
  list-style-type: disc;
}
ol {
  list-style-type: decimal;
}
.text-section ul li,
.text-section ol li {
  font-size: 1em;
  margin-bottom: 8px;
}
.text-section dl {
  margin: 18px 0 16px 0;
}
.text-section dt {
  font-family: 'Montserrat', Arial, sans-serif;
  color: #8A6B40;
  font-weight: bold;
}
.text-section dd {
  margin-left: 10px;
  margin-bottom: 14px;
}

/* ----------------- Vintage Retro Patterns & Effects --------------- */
section {
  position: relative;
}
section::before {
  content: '';
  position: absolute;
  left: 20px; top: 20px;
  width: 54px; height: 54px;
  background: repeating-linear-gradient(-45deg, #F5F4EC, #F5F4EC 7px, #E2C9A0 7px, #E2C9A0 14px);
  opacity: 0.20;
  border-radius: 20% 60% 70% 30%;
  z-index: 0;
  pointer-events: none;
}
section:nth-child(even)::after {
  content: '';
  position: absolute;
  right: 20px; bottom: 20px;
  width: 42px; height: 42px;
  background: repeating-linear-gradient(30deg,#E2C9A0, #E2C9A0 12px, #fff 12px, #fff 22px);
  border-radius: 60% 30% 20% 80%;
  opacity: 0.16;
  z-index: 0;
  pointer-events: none;
}
.content-wrapper, .text-section, .card, .services-list > div, .service-card, .testimonial-card {
  position: relative;
  z-index: 1;
}

/* --------------------- Cookie Consent Banner ---------------------- */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 10001;
  background: #FFF7EA;
  color: #2B4354;
  border-top: 2px solid #B9946D;
  box-shadow: 0 -4px 30px -7px #8A6B4060;
  padding: 18px 12px 16px 12px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  animation: bannerIn 0.24s ease-in;
}
@keyframes bannerIn {
  from { transform: translateY(100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.cookie-banner p {
  flex: 1 1 200px;
  font-size: 1em;
  margin-right: 12px;
  color: #2B4354;
}
.cookie-banner button {
  margin-left: 6px;
  margin-right: 4px;
  background: #8A6B40;
  color: #FFF7EA;
  border: none;
  border-radius: 20px 5px 12px 6px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 1em;
  padding: 8px 16px;
  cursor: pointer;
  box-shadow: 0 2px 8px #B9946D40;
  transition: background 0.16s, color 0.16s;
}
.cookie-banner button:hover, .cookie-banner button:focus {
  background: #2B4354;
  color: #FFD796;
}
.cookie-banner .cookie-settings-btn {
  background: #E2C9A0;
  color: #2B4354;
  border: 2px solid #8A6B40;
}
.cookie-banner .cookie-settings-btn:hover,
.cookie-banner .cookie-settings-btn:focus {
  background: #FFF7EA;
  color: #8A6B40;
}

/* ---------------- Cookie Modal (Preferences) ------------------- */
.cookie-modal {
  position: fixed;
  z-index: 10010;
  left: 0; right: 0; top: 0; bottom: 0;
  background: rgba(43,67,84,0.63);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}
.cookie-modal.open {
  opacity: 1;
  pointer-events: auto;
  animation: fadeInModal 0.2s;
}
@keyframes fadeInModal {
  from { opacity: 0; }
  to { opacity: 1; }
}
.cookie-modal-content {
  background: #FFF7EA;
  padding: 36px 28px 28px 28px;
  border-radius: 14px;
  box-shadow: 0 12px 54px -8px #B9946Daa;
  min-width: 310px; max-width: 92vw;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  position:relative;
}
.cookie-modal-content h3 {
  font-size: 1.22em;
  margin-bottom: 12px;
  font-family: 'Montserrat', Arial, sans-serif;
  color: #2B4354;
}
.cookie-options {
  margin-bottom: 16px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.cookie-option {
  display: flex;
  align-items: center;
  gap: 13px;
  font-size: 1.04em;
}
.cookie-option label {
  font-family: 'Montserrat', Arial, sans-serif;
  color: #8A6B40;
}
.cookie-modal-content button,
.cookie-modal-content .cookie-save {
  margin-top: 12px;
  align-self: flex-end;
}
.cookie-modal-close {
  position: absolute;
  top: 12px; right: 12px;
  font-size: 1.45em;
  color: #8A6B40;
  background: none;
  border: none;
  cursor: pointer;
}

/* Cookie Modal Toggle Switches */
.switch {
  position: relative;
  display: inline-block;
  width: 45px;
  height: 24px;
}
.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background: #E2C9A0;
  border-radius: 24px;
  transition: .2s;
}
.slider:before {
  position: absolute;
  content: "";
  left: 4px;
  top: 4px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #8A6B40;
  transition: .2s;
}
input:checked + .slider {
  background: #8A6B40;
}
input:checked + .slider:before {
  background: #F5F4EC;
  transform: translateX(18px);
}

/* Essential cookies appear disabled */
.cookie-option .switch input[disabled] + .slider {
  background: #B9946D;
  opacity: 0.6;
  cursor: not-allowed;
}

/* --------------- Responsive Patterns --------------- */
@media (max-width: 900px) {
  section {
    padding: 32px 7vw;
    margin-bottom: 48px;
  }
  .services-list {
    gap: 16px;
  }
}
@media (max-width: 768px) {
  header img { height: 38px; }
  h1 { font-size: 2em; }
  h2 { font-size: 1.34em; }
  section { padding: 32px 8px; }
  .text-section { padding: 0; }
  .content-grid, .card-container, .services-list { gap: 12px; }
  .card, .services-list > div, .testimonial-card, .stylist-profile, .service-card { padding: 18px 12px; }
  .testimonial-card { flex-direction: column; align-items: flex-start; gap: 8px; }
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
}
@media (max-width: 600px) {
  h1 { font-size: 1.32em; }
  h2 { font-size: 1.05em; }
  .card, .services-list > div, .testimonial-card, .stylist-profile, .service-card {
    min-width: 0;
    font-size: 0.98em;
    padding: 12px 7px;
  }
  table, th, td { font-size: 0.96em; }
}

/* --------------- Utilities --------------- */
.muted { color: #9BA7B2; }
.hide { display: none !important; }

::-webkit-input-placeholder { color: #AE9363; }
::-moz-placeholder { color: #AE9363; }
:-ms-input-placeholder { color: #AE9363; }
::placeholder { color: #AE9363; }

/* --------------- Scrollbar Retro Styling --------------- */
::-webkit-scrollbar {
  width: 12px;
  background: #E2C9A0;
}
::-webkit-scrollbar-thumb {
  background: #B9946D;
  border-radius: 8px;
}

/* --------------- Focus Styles (Accessibility) --------------- */
a:focus, button:focus, .cta-btn:focus, .mobile-menu-toggle:focus, .mobile-menu-close:focus {
  outline: 2px dashed #8A6B40;
  outline-offset: 2px;
}

/* ============ RETRO Micro-interactions & Shadows =========== */
.card, .card-container > div, .services-list > div, .service-card, .testimonial-card, .stylist-profile {
  transition: box-shadow 0.18s cubic-bezier(.43,.08,.33,1), border-color 0.18s;
}
.table thead th {
  background: #E2C9A0;
}
.card:hover, .service-card:hover, .stylist-profile:hover, .testimonial-card:hover {
  box-shadow: 0 12px 32px -8px #B9946D80, 0 4px 10px #8A6B4066;
  border-color: #2B4354;
}

/* --------------- Retro Details: Stamps & Lines --------------- */
.card::before, .testimonial-card::before {
  content: '';
  display: block;
  width: 40px; height: 6px;
  background: repeating-linear-gradient(90deg,#E2C9A0,#E2C9A0 8px,#F5F4EC 8px,#F5F4EC 16px);
  border-radius: 3px;
  margin-bottom: 8px;
  opacity: 0.25;
}

.testimonial-card::after {
  content: '\201C';
  font-family: 'Montserrat', serif;
  font-size: 3rem;
  color: #E2C9A0;
  position: absolute;
  top: 8px;
  left: 18px;
  opacity: 0.18;
  z-index: 0;
}

@media (max-width: 600px) {
  .testimonial-card::after { font-size: 2.2rem; left: 8px; top: 2px; }
  .card::before, .testimonial-card::before { width: 28px; height: 4px; }
}

/* --------------- Form (Contact page) --------------- */
input, textarea, select {
  font-family: 'Open Sans', Arial, sans-serif;
  border: 1.5px solid #B9946D;
  border-radius: 6px;
  padding: 9px 12px;
  background: #FFF7EA;
  margin-bottom: 14px;
  font-size: 1em;
  color: #2B4354;
  outline: none;
  transition: border 0.22s;
}
input:focus, textarea:focus, select:focus {
  border: 2px solid #8A6B40;
  background: #f9f7ee;
}

/* -------------- Hide elements visually (for modals, menu) ------------- */
.hide { display: none !important; }

/* =================== END ===================== */
