/* PatriFatte Barberhaus – Modern Bold Flexbox CSS
   Style: modern_bold (bold, high-contrast, geometric, urban/masculine)
   Author: Senior CSS Developer & UI Designer
*/

/* === 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;
}
html {
  box-sizing: border-box;
  scroll-behavior: smooth;
  font-size: 16px;
  background: #23272A;
}
*, *:before, *:after {
  box-sizing: inherit;
}
body {
  background: #23272A;
  color: #23272A;
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
a {
  color: #C69C6D;
  text-decoration: none;
  transition: color 0.18s cubic-bezier(.4,.95,.72,1);
  font-weight: 600;
}
a:hover, a:focus {
  color: #fff;
  outline: none;
}
ul, ol {
  list-style: none;
}
img {
  max-width: 100%;
  display: block;
  border: 0;
}

/* === BRAND COLORS AND FONTS === */
:root {
  --color-primary: #23272A;
  --color-secondary: #C69C6D;
  --color-accent: #FFFFFF;
  --color-bg: #FAFAFA;
  --color-bg-card: #fff;
  --color-bg-alt: #F2F2F2;
  --color-error: #E53935;
  --color-success: #43A047;
  --shadow-xs: 0 1px 3px rgba(35,39,42,0.06);
  --shadow-sm: 0 4px 10px rgba(35,39,42,0.08);
}
@font-face {
  font-family: 'Oswald';
  font-weight: 700;
  src: local('Oswald Bold'), url('https://fonts.googleapis.com/css?family=Oswald:700&display=swap');
}
@font-face {
  font-family: 'Open Sans';
  font-weight: 400 700;
  src: local('Open Sans'), url('https://fonts.googleapis.com/css?family=Open+Sans:400,700&display=swap');
}

/* === TYPOGRAPHY === */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Oswald', Arial, sans-serif;
  color: var(--color-primary);
  font-weight: 700;
  letter-spacing: 0.01em;
  margin-bottom: 0.4em;
}
h1 { font-size: 2.5rem; line-height: 1.1; }
h2 { font-size: 1.85rem; line-height: 1.18; }
h3 { font-size: 1.4rem; line-height: 1.22; }
h4 { font-size: 1.12rem; }
h5 { font-size: 1rem; }
h6 { font-size: 0.98rem; }
@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.4rem; }
  h3 { font-size: 1.15rem; }
}
strong {
  font-weight: 700;
  color: var(--color-secondary);
}
p, ul, ol, li, small {
  font-family: 'Open Sans', Arial, sans-serif;
  color: var(--color-primary);
  font-size: 1rem;
  font-weight: 400;
}
small {
  font-size: 0.85rem;
  opacity: 0.7;
}

/* === LAYOUT CONTAINERS === */
.container {
  width: 100%;
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 18px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
}

/* === SECTION SPACING & FLEX LAYOUTS === */
section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--color-bg);
  border-radius: 24px;
  box-shadow: var(--shadow-sm);
  position: relative;
}
@media (max-width: 700px) {
  section {
    margin-bottom: 40px;
    padding: 26px 7px;
    border-radius: 14px;
  }
}
.section { margin-bottom: 60px; padding: 40px 20px; }

/* === HEADER & NAVIGATION === */
header {
  width: 100%;
  background: var(--color-primary);
  padding: 0;
  box-shadow: 0 2px 10px rgba(35,39,42,0.16);
  position: sticky;
  top: 0;
  z-index: 1020;
}
.main-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0 16px 0;
}
.main-nav > a {
  font-family: 'Oswald', Arial, sans-serif;
  font-size: 1.05rem;
  color: var(--color-accent);
  background: none;
  padding: 6px 14px;
  border-radius: 8px;
  transition: background 0.18s, color 0.18s;
  font-weight: 600;
  letter-spacing: 0.01em;
  margin-right: 0px;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 8px;
}
.main-nav > a.cta.primary {
  background: var(--color-secondary);
  color: var(--color-primary);
  font-weight: 700;
  border-radius: 10px;
  margin-left: 12px;
  box-shadow: 0 3px 15px rgba(198,156,109,0.13);
}
.main-nav > a.cta.primary:hover, .main-nav > a.cta.primary:focus {
  background: #fff;
  color: var(--color-secondary);
  box-shadow: 0 4px 18px rgba(198,156,109,0.13);
}
.main-nav > a:hover, .main-nav > a:focus {
  background: var(--color-secondary);
  color: var(--color-primary);
}
.main-nav img {
  height: 43px;
  width: auto;
  filter: brightness(0) invert(1);
}

@media (max-width: 1020px) {
  .main-nav {
    gap: 8px;
    padding: 10px 0;
  }
  .main-nav img {
    height: 34px;
  }
}

/* === MOBILE NAV === */
.mobile-menu-toggle {
  display: none;
  background: var(--color-secondary);
  color: var(--color-primary);
  border: none;
  font-size: 2rem;
  border-radius: 10px;
  padding: 6px 17px;
  position: absolute;
  top: 18px; right: 18px;
  z-index: 1201;
  box-shadow: 0 2px 14px rgba(0,0,0,0.12);
  cursor: pointer;
  transition: background 0.15s;
}
.mobile-menu-toggle:active,
.mobile-menu-toggle:focus {
  background: #fff7ef;
  color: var(--color-secondary);
}
@media (max-width: 900px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}
.mobile-menu {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(35,39,42,0.92);
  z-index: 1400;
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.74,0,0.32,1);
  pointer-events: none;
}
.mobile-menu.open {
  transform: translateX(0);
  pointer-events: auto;
}
.mobile-menu nav.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: var(--color-bg);
  padding: 56px 34px 34px 34px;
  min-width: 78vw;
  max-width: 410px;
  min-height: 96vh;
  border-radius: 24px 0 0 24px;
  box-shadow: -5px 0 36px rgba(35,39,42,0.15);
}
@media (max-width: 520px) {
  .mobile-menu nav.mobile-nav {
    width: 100vw;
    min-width: 0;
    border-radius: 0;
    max-width: 100vw;
    padding: 55px 18px 30px 18px;
  }
}
.mobile-menu nav.mobile-nav a {
  font-family: 'Oswald', Arial, sans-serif;
  font-size: 1.18rem;
  color: var(--color-primary);
  font-weight: bold;
  padding: 13px;
  border-radius: 9px;
  transition: background 0.17s, color 0.17s;
  background: none;
  margin-right: 0;
  display: block;
}
.mobile-menu nav.mobile-nav a:hover,
.mobile-menu nav.mobile-nav a:focus {
  background: var(--color-secondary);
  color: var(--color-accent);
}
.mobile-menu-close {
  position: absolute;
  top: 24px; right: 28px;
  background: none;
  border: none;
  font-size: 2.5rem;
  color: var(--color-secondary);
  z-index: 1600;
  cursor: pointer;
  border-radius: 10px;
  padding: 0 8px;
  transition: background 0.13s, color 0.16s;
}
.mobile-menu-close:focus,
.mobile-menu-close:hover {
  background: var(--color-bg);
  color: var(--color-primary);
}

/* === HIDE MOBILE MENU BACKDROP BY DEFAULT === */
.mobile-menu {
  visibility: hidden;
}
.mobile-menu.open {
  visibility: visible;
}

/* === MAIN LAYOUT FLEX PATTERNS === */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  border-radius: 18px;
  background: var(--color-bg-card);
  box-shadow: var(--shadow-xs);
  transition: box-shadow 0.18s, transform 0.18s;
}
.card:hover, .card:focus-within {
  box-shadow: 0 7px 30px rgba(198,156,109,0.12), var(--shadow-sm);
  transform: translateY(-3px) scale(1.012);
  z-index: 10;
}
.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;
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    gap: 18px;
    align-items: flex-start;
  }
  .content-grid {
    flex-direction: column;
    gap: 24px;
  }
}

/* === FEATURE GRID STYLING === */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 18px;
}
.feature-grid li {
  background: #fff;
  border-radius: 18px;
  padding: 26px 17px 22px 17px;
  min-width: 200px;
  flex: 1 1 206px;
  box-shadow: var(--shadow-xs);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
  margin-bottom: 20px;
  border: 2.5px solid var(--color-secondary);
  transition: box-shadow 0.17s, border 0.22s;
}
.feature-grid li:hover, .feature-grid li:focus-within {
  border-color: var(--color-primary);
  box-shadow: 0 7px 24px rgba(35,39,42,0.13);
  transform: scale(1.037);
  z-index: 3;
}
.feature-grid img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  margin-bottom: 12px;
}
@media (max-width: 640px) {
  .feature-grid {
    flex-direction: column;
    gap: 12px;
  }
  .feature-grid li {
    min-width: 0;
    width: 100%;
  }
  .card-container, .content-grid {
    flex-direction: column;
  }
}

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

/* === TESTIMONIAL CARDS === */
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding: 28px 22px 18px 22px;
  border-radius: 18px;
  background: #fff;
  color: #23272A;
  box-shadow: 0 3px 18px rgba(35,39,42,0.06);
  margin-bottom: 20px;
  border-left: 4px solid var(--color-secondary);
  transition: box-shadow 0.15s;
}
.testimonial-card p {
  color: #23272A;
  font-size: 1.08rem;
  margin-bottom: 6px;
  font-weight: 500;
}
.testimonial-card span {
  color: #656d7b;
  font-size: 0.96rem;
  font-style: italic;
  font-weight: 600;
}
.testimonial-card:hover {
  box-shadow: 0 10px 30px rgba(198,156,109,0.19);
}

/* === BUTTONS & CTAS === */
.cta, button.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Oswald', Arial, sans-serif;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  font-size: 1.1rem;
  min-width: 165px;
  min-height: 46px;
  border-radius: 12px;
  border: none;
  padding: 0 26px;
  cursor: pointer;
  background: var(--color-secondary);
  color: var(--color-primary);
  box-shadow: 0 4px 15px rgba(198,156,109,0.13);
  transition: background 0.16s, color 0.13s, box-shadow 0.18s, transform 0.18s;
  position: relative;
  z-index: 1;
  margin-top: 6px;
}
.cta.primary,
button.cta.primary {
  background: var(--color-secondary);
  color: var(--color-primary);
  font-weight: 800;
  border: none;
}
.cta.primary:hover,
.cta.primary:focus {
  background: #fff;
  color: var(--color-secondary);
  box-shadow: 0 7px 25px rgba(198,156,109,0.17);
  outline: none;
  transform: translateY(-2px) scale(1.03);
}
.cta:not(.primary):hover,
.cta:not(.primary):focus {
  background: var(--color-primary);
  color: #fff;
}
.cta:active {
  transform: scale(0.99);
}

/* === GENERIC LISTS === */
ul, ol {
  margin-bottom: 14px;
}
ul li, ol li {
  margin-bottom: 9px;
  line-height: 1.65;
}
ul.feature-grid li:last-child, ul li:last-child, ol li:last-child {
  margin-bottom: 0;
}

/* === TEXT SECTIONS === */
.text-section {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 12px;
}
.text-section ul, .text-section ol {
  margin-top: 0.4em;
}
.text-section a {
  margin-top: 10px;
}
/* Responsive Section Layouts */
@media (max-width: 768px) {
  .container {
    padding: 0 7px;
  }
  .content-wrapper, .text-section, .card-container, .content-grid {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
}

/* === FOOTER === */
footer {
  background: var(--color-primary);
  padding: 24px 0 16px 0;
  margin-top: 60px;
}
footer .container {
}
footer .content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: flex-start;
  justify-content: flex-start;
}
footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 5px;
}
footer nav a {
  color: var(--color-secondary);
  font-family: 'Oswald', Arial, sans-serif;
  font-weight: 700;
  padding: 3px 14px;
  border-radius: 6px;
  transition: background 0.13s, color 0.13s;
}
footer nav a.cta.primary {
  background: var(--color-secondary);
  color: var(--color-primary);
  margin-left: 9px;
  border-radius: 8px;
}
footer nav a.cta.primary:hover,
footer nav a.cta.primary:focus {
  background: #fff;
  color: var(--color-secondary);
}
footer nav a:hover,
footer nav a:focus {
  background: var(--color-secondary);
  color: var(--color-primary);
}
footer .text-section {
  gap: 5px;
  color: #f2f2f2;
}
footer small {
  color: #aaa;
  opacity: 0.95;
}

/* === COOKIE CONSENT BANNER === */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 5000;
  background: var(--color-primary);
  color: #fff;
  box-shadow: 0 -6px 32px rgba(35,39,42,0.11);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 22px;
  justify-content: space-between;
  padding: 20px 36px;
  min-height: 72px;
  font-size: 1.04rem;
  border-radius: 18px 18px 0 0;
  animation: slideInCookie 0.9s cubic-bezier(.4,.95,.72,1);
}
@keyframes slideInCookie {
  from { transform: translateY(80px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.cookie-banner__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.cookie-banner button,
.cookie-banner .cta {
  font-family: 'Oswald', Arial, sans-serif;
  font-size: 1.05rem;
  border-radius: 8px;
  padding: 10px 27px;
  font-weight: 700;
  text-transform: uppercase;
  border: none;
  outline: none;
  cursor: pointer;
  background: var(--color-secondary);
  color: var(--color-primary);
  transition: background 0.15s, color 0.15s;
}
.cookie-banner button:hover, .cookie-banner button:focus {
  background: #fff;
  color: var(--color-secondary);
}
.cookie-banner .cookie-settings {
  background: none;
  border: 2px solid var(--color-secondary);
  color: #fff;
}
.cookie-banner .cookie-settings:hover,
.cookie-banner .cookie-settings:focus {
  background: var(--color-secondary);
  color: var(--color-primary);
}
@media (max-width: 640px) {
  .cookie-banner {
    flex-direction: column;
    justify-content: flex-start;
    gap: 14px;
    padding: 17px 8px 14px 8px;
    font-size: 0.95rem;
    min-height: unset;
  }
  .cookie-banner__buttons {
    gap: 10px;
  }
}

/* COOKIE PREFERENCE MODAL */
.cookie-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 6000;
  background: rgba(35,39,42,0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeInModalBg 0.3s linear;
}
@keyframes fadeInModalBg {
  from{ opacity: 0; } to {opacity: 1;}
}
.cookie-modal {
  background: #fff;
  color: #23272A;
  border-radius: 20px;
  padding: 38px 38px 32px 38px;
  max-width: 96vw;
  width: 440px;
  box-shadow: 0 8px 38px rgba(35,39,42,0.18);
  display: flex;
  flex-direction: column;
  gap: 24px;
  animation: slideUpModal 0.5s cubic-bezier(.4,.95,.72,1);
  position: relative;
}
@keyframes slideUpModal {
  from{ transform: translateY(70px); opacity: 0;} to {transform: none; opacity: 1;}
}
.cookie-modal h2 {
  font-size: 1.38rem;
  font-family: 'Oswald', Arial, sans-serif;
  color: var(--color-primary);
}
.cookie-modal .cookie-category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 11px;
  margin-bottom: 0;
  padding: 0.8em 0.15em;
}
.cookie-modal .cookie-category label {
  font-size: 1rem;
  font-family: 'Open Sans', Arial, sans-serif;
  color: var(--color-primary);
  font-weight: 600;
  margin-right: 9px;
}
.cookie-category input[type='checkbox'][disabled] {
  accent-color: var(--color-secondary);
  cursor: not-allowed;
}
.cookie-category input[type='checkbox'] {
  accent-color: var(--color-secondary);
  width: 20px;
  height: 20px;
  cursor: pointer;
}
.cookie-modal-buttons {
  display: flex;
  gap: 13px;
  flex-wrap: wrap;
}
.cookie-modal-close {
  position: absolute;
  top: 17px; right: 17px;
  background: none;
  color: var(--color-secondary);
  border: none;
  font-size: 2.1rem;
  cursor: pointer;
  border-radius: 8px;
  width: 33px;
  height: 33px;
  transition: background 0.13s;
}
.cookie-modal-close:hover,
.cookie-modal-close:focus {
  background: var(--color-bg-alt);
  color: var(--color-primary);
}

@media (max-width: 540px) {
  .cookie-modal {
    padding: 19px 9px 18px 9px;
    width: 95vw;
    min-width: unset;
  }
}

/* === ANIMATIONS === */
@media (prefers-reduced-motion: no-preference) {
  .cta, .card, .feature-grid li,
  .mobile-menu, .content-wrapper, .testimonial-card,
  .cookie-banner, .cookie-modal {
    transition-timing-function: cubic-bezier(.4,.95,.72,1);
    transition-duration: 0.2s;
  }
}

/* === GLOBAL UTILITY === */
.flex { display: flex; }
.flex-align-center { align-items: center; }
.flex-justify-between { justify-content: space-between; }
.flex-wrap { flex-wrap: wrap; }
.mb-24 { margin-bottom: 24px; }
.mt-16 { margin-top: 16px; }
.mt-32 { margin-top: 32px; }
.text-center { text-align: center; }
.text-uppercase { text-transform: uppercase; }

/* === ACCESSIBILITY === */
:focus-visible {
  outline: 2px solid var(--color-secondary);
  outline-offset: 2px;
}

/* === MISC === */
::-webkit-scrollbar {
  width: 10px;
  background: #f3f3f3;
}
::-webkit-scrollbar-thumb { background: #C69C6D; border-radius: 12px; }
::-webkit-input-placeholder { color: #888; }
::-moz-placeholder { color: #888; }
:-ms-input-placeholder { color: #888; }
::placeholder { color: #888; }

/* Fix section background for dark mode testimonial area */
section:nth-of-type(5), section .testimonial-card {
  background: #fff !important;
}

/* Ensure no overlap, enforce gap/margin patterns */
.card, .feature-grid li, .testimonial-card {
  margin-bottom: 20px;
}
.content-wrapper > * + * {
  margin-top: 0px;
}

/* Responsive adjust for extreme small screens */
@media (max-width: 420px) {
  h1, h2, h3 {
    font-size: 1.01rem !important;
  }
  .cta, button.cta {
    font-size: 0.97rem;
    min-width: 111px;
    padding: 0 13px;
  }
}

/* Hide scroll when modal/mobile menu open */
body.mobile-menu-open, body.cookie-modal-open {
  overflow: hidden;
}

/* --- THE END --- */
