/* === 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;
}
*, *:before, *:after {
  box-sizing: inherit;
}
body {
  line-height: 1.5;
  background: #fff;
  color: #181818;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  font-size: 16px;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
  height: auto;
}
ul, ol {
  padding-left: 24px;
  margin-bottom: 24px;
}

/* === BRAND COLORS & TYPOGRAPHY === */
:root {
  --color-bg: #fff;
  --color-bg-dark: #1a1a1a;
  --color-text-main: #141414;
  --color-text-dark: #222;
  --color-grey-1: #212121;
  --color-grey-2: #444;
  --color-grey-3: #e6e6e6;
  --color-grey-4: #f4f4f4;
  --color-white: #fff;
  --color-black: #000;
  --brand-primary: #181818;
  --brand-secondary: #f7f7f7;
  --brand-accent: #81502E;
  --brand-accent-hover: #9c6b45;
}
/* === TYPOGRAPHY === */
h1, .h1 {
  font-family: 'Roboto Slab', serif;
  font-weight: 700;
  font-size: 2.5rem;
  color: var(--color-black);
  margin-bottom: 20px;
  letter-spacing: -1px;
}
h2, .h2 {
  font-family: 'Roboto Slab', serif;
  font-weight: 600;
  font-size: 2rem;
  margin-bottom: 16px;
  color: var(--color-grey-1);
}
h3, .h3 {
  font-family: 'Roboto Slab', serif;
  font-weight: 500;
  font-size: 1.3rem;
  color: var(--color-grey-2);
  margin-bottom: 10px;
}
h4, .h4 {
  font-weight: 600;
  font-size: 1.13rem;
  margin-bottom: 8px;
  color: var(--color-text-main);
}

p, li, blockquote, cite, table, th, td, input, select, textarea {
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  color: var(--color-text-main);
}
p {
  margin-bottom: 16px;
}
blockquote {
  font-family: 'Roboto Slab', serif;
  font-size: 1.1rem;
  font-style: italic;
  color: #222;
  border-left: 4px solid #222;
  margin-left: 0;
  padding-left: 18px;
  margin-bottom: 10px;
}
cite {
  display: block;
  font-size: 0.98rem;
  color: #575757;
}
.small, small {
  font-size: 0.94rem;
}
strong {
  color: var(--brand-accent);
  font-weight: 700;
}
a {
  color: inherit;
  text-underline-offset: 3px;
  word-break: break-word;
  transition: color 0.18s;
}
a:hover, a:focus {
  color: var(--brand-accent-hover);
}

.subheadline {
  color: #555;
  font-size: 1.28rem;
  margin-bottom: 18px;
}

/* === CONTAINER AND STRUCTURE === */
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 0;
}

section {
  width: 100%;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--color-white);
  border-radius: 18px;
}

@media (max-width: 768px) {
  .section {
    padding: 24px 8px;
    margin-bottom: 40px;
  }
  .container {
    padding: 0 8px;
  }
}

/* === FLEX PATTERNS === */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: var(--color-white);
  padding: 24px 22px;
  border-radius: 14px;
  box-shadow: 0 2px 16px rgba(20,20,20,0.07);
  transition: box-shadow 0.25s;
  min-width: 260px;
}
.card:hover {
  box-shadow: 0 6px 32px rgba(20,20,20,0.15);
}
.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, .content-grid {
    flex-direction: column;
    gap: 20px;
  }
}

.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  border-radius: 18px;
  background: #f7f7f7;
  box-shadow: 0 2.5px 18px rgba(24,24,24,0.07);
  padding: 20px;
  margin-bottom: 24px;
  margin-top: 0;
  position: relative;
  min-width: 240px;
}
.testimonial-card blockquote {
  color: #181818;
}
.testimonial-card cite {
  color: #555;
  font-weight: 500;
}

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

/* === HEADER & NAVIGATION === */
header {
  background: #fff;
  border-bottom: 1px solid #ececec;
  padding-top: 12px;
  z-index: 50;
  position: sticky;
  top: 0;
}
header > .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 0;
  padding-top: 6px;
  padding-bottom: 6px;
}
header img {
  height: 46px;
  margin-right: 22px;
}
nav.main-nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 24px;
}
nav.main-nav a {
  font-family: 'Roboto Slab', serif;
  color: #181818;
  font-weight: 500;
  font-size: 1.04rem;
  padding: 8px 4px;
  text-decoration: none;
  border-radius: 4px;
  transition: background 0.18s, color 0.18s;
}
nav.main-nav a:hover,
nav.main-nav a:focus {
  background: var(--brand-accent);
  color: #fff;
}
@media (max-width: 1024px) {
  nav.main-nav {
    gap: 10px;
  }
}

.cta.primary {
  background: var(--brand-accent);
  color: #fff !important;
  padding: 12px 32px;
  border-radius: 32px;
  border: none;
  font-family: 'Roboto Slab', serif;
  font-size: 1.07rem;
  font-weight: 700;
  box-shadow: 0 2px 16px rgba(24,24,24,0.08);
  cursor: pointer;
  text-decoration: none;
  margin-left: 20px;
  transition: background 0.18s, color 0.18s, box-shadow 0.18s;
}
.cta.primary:hover, .cta.primary:focus {
  background: var(--brand-accent-hover);
  color: #fff;
  box-shadow: 0 3px 18px rgba(24,24,24,0.10);
}
.cta {
  display: inline-block;
  background: transparent;
  color: var(--brand-accent);
  font-family: 'Roboto Slab', serif;
  border: 1.5px solid var(--brand-accent);
  border-radius: 32px;
  padding: 11px 28px;
  font-size: 1.04rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  margin-top: 10px;
  margin-bottom: 10px;
  transition: background 0.19s, color 0.18s, border 0.18s;
}
.cta:hover, .cta:focus {
  background: var(--brand-accent);
  color: #fff;
}

button, .button {
  font-family: 'Roboto Slab', serif;
  font-size: 1rem;
  padding: 10px 22px;
  border-radius: 32px;
  border: none;
  background: var(--brand-accent);
  color: #fff;
  transition: background 0.19s, color 0.17s;
  cursor: pointer;
}
button:hover, button:focus {
  background: var(--brand-accent-hover);
}

/* === MOBILE BURGER MENU === */
.mobile-menu-toggle {
  display: none;
  font-size: 33px;
  background: none;
  border: none;
  color: #232323;
  cursor: pointer;
  z-index: 2001;
  margin-left: 32px;
  line-height: 1;
  border-radius: 4px;
  padding: 2px 9px 2px 7px;
  transition: background 0.18s;
}
.mobile-menu-toggle:hover,
.mobile-menu-toggle:focus {
  background: #ececec;
  outline: none;
}

@media (max-width: 900px) {
  nav.main-nav, .cta.primary {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: inline-block;
  }
}

.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(24,24,24, 0.98);
  transform: translateX(-100%);
  transition: transform 0.36s cubic-bezier(0.83, 0, 0.17, 1);
  z-index: 2300;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 2.1rem;
  padding: 12px 18px 10px 10px;
  align-self: flex-end;
  margin: 12px 24px 6px 0;
  cursor: pointer;
  z-index: 2302;
  transition: background 0.18s;
  border-radius: 5px;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  background: rgba(240,240,240,0.13);
  outline: none;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 100%;
  padding: 4px 38px;
  margin-top: 14px;
  z-index: 2301;
}
.mobile-nav a {
  color: #fff;
  text-decoration: none;
  font-size: 1.26rem;
  font-family: 'Roboto Slab', serif;
  padding: 15px 0;
  letter-spacing: 0.3px;
  border-bottom: 1.5px solid rgba(200,200,200,.12);
  transition: color 0.16s;
  border-radius: 2px;
}
.mobile-nav a:focus,
.mobile-nav a:hover {
  color: var(--brand-accent-hover);
  background: rgba(200,200,200,0.05);
}

/* === HERO, SERVICES, CARDS === */
.service-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 18px;
  margin-top: 12px;
}
.service-card {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 16px rgba(24,24,24,0.08);
  padding: 26px 20px 20px 22px;
  min-width: 240px;
  flex: 1 1 260px;
  margin-bottom: 20px;
  position: relative;
  transition: box-shadow 0.18s;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 8px;
}
.service-card:hover {
  box-shadow: 0 6px 32px rgba(24,24,24,0.15);
  z-index: 1;
}

@media (max-width: 900px) {
  .service-cards {
    flex-direction: column;
    gap: 18px;
  }
  .service-card {
    min-width: 0;
    width: 100%;
  }
}

.text-section {
  margin-bottom: 20px;
}
.text-section h2, .text-section h3 {
  margin-bottom: 7px;
}
.text-section ul, .content-wrapper ul {
  margin-bottom: 12px;
}
.text-section li, .content-wrapper li {
  margin-bottom: 9px;
}

.feature-item img, li img {
  width: 28px;
  height: 28px;
  margin-right: 10px;
  vertical-align: middle;
  display: inline-block;
  filter: grayscale(0.95) contrast(0.87);
}

/* === TABLES (Pricing) === */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 28px 0;
  background: #fff;
  border-radius: 7px;
  overflow: hidden;
  font-size: 1rem;
  box-shadow: 0 2px 14px rgba(30,30,30,0.07);
}
th, td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid #ececec;
}
th {
  background: #eee;
  font-weight: 700;
}
tbody tr:last-child td {
  border-bottom: none;
}

@media (max-width: 500px) {
  table, thead, tbody, th, td, tr {
    display: block;
  }
  th, td {
    padding: 10px 12px;
    text-align: left;
    border-bottom: none;
  }
  th {
    background: #ececec;
  }
}

/* === CONTACT & LOCATION === */
.contact-info {
  background: #f4f4f4;
  border-radius: 12px;
  padding: 24px 20px 18px 20px;
  box-shadow: 0 1.5px 10px rgba(30,30,30,0.07);
  margin-bottom: 20px;
}
.location-map {
  margin-top: 8px;
}
.location-map img {
  max-width: 340px;
  border-radius: 6px;
  box-shadow: 0 1.5px 5px rgba(0,0,0,.08);
}

/* === FOOTER === */
footer {
  background: #161616;
  color: #e6e6e6;
  padding: 48px 0 12px 0;
  margin-top: 80px;
  box-shadow: 0 -1px 12px rgba(30,30,30,0.04);
  font-size: 0.98rem;
}
footer .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 0;
  padding: 0 20px;
  margin-bottom: 16px;
}
.footer-brand {
  flex: 0 0 auto;
}
.footer-brand img {
  height: 40px;
}
.footer-nav {
  display: flex;
  flex-direction: row;
  gap: 22px;
}
.footer-nav a {
  color: #e6e6e6;
  font-family: 'Roboto Slab', serif;
  text-decoration: none;
  font-size: 1.02rem;
  transition: color 0.18s;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: var(--brand-accent-hover);
}
.social-links {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 14px;
}
.social-links a {
  height: 32px;
  width: 32px;
  border-radius: 50%;
  background: #242424;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.18s;
}
.social-links a:hover {
  background: var(--brand-accent);
}
.social-links img {
  width: 18px;
  height: 18px;
  filter: grayscale(0.9) contrast(0.7);
}
footer small {
  display: block;
  color: #bebebe;
  margin-top: 12px;
  margin-bottom: 0;
  font-size: 0.99rem;
}
@media (max-width: 900px) {
  footer .container {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    padding: 0 8px;
  }
  .footer-nav, .social-links {
    margin-bottom: 9px;
  }
}

/* === COOKIE BANNER & MODAL === */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  background: #212121;
  color: #fff;
  padding: 22px 18px 20px 18px;
  z-index: 5000;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 -4px 18px rgba(24,24,24,0.12);
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
  animation: cookie-fade-in 0.64s cubic-bezier(0.6,0,0.4,1);
}
@keyframes cookie-fade-in {
  0% { transform: translateY(100%); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}
.cookie-banner p {
  color: #e0e0e0;
  font-size: 1.06rem;
  margin-bottom: 10px;
  text-align: center;
}
.cookie-buttons {
  display: flex;
  flex-direction: row;
  gap: 13px;
  margin-top: 6px;
}
.cookie-button {
  background: var(--brand-accent);
  color: #fff;
  border-radius: 24px;
  border: none;
  padding: 9px 20px;
  font-size: 1.01rem;
  font-family: 'Roboto Slab', serif;
  cursor: pointer;
  margin: 0;
  font-weight: 600;
  transition: background 0.16s, color 0.16s;
}
.cookie-button.settings {
  background: transparent;
  color: var(--brand-accent-hover);
  border: 1.6px solid var(--brand-accent);
}
.cookie-button:hover, .cookie-button:focus {
  background: var(--brand-accent-hover);
  color: #fff;
}
.cookie-button.settings:hover, .cookie-button.settings:focus {
  background: var(--brand-accent);
  color: #fff;
}

/* Cookie Modal */
.cookie-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 5001;
  background: rgba(0,0,0,0.48);
  animation: cookie-backdrop-in 0.45s cubic-bezier(0.7,0,0.3,1);
}
@keyframes cookie-backdrop-in {
  0% { opacity: 0; } 
  100% { opacity: 1; }
}
.cookie-modal {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%,-50%) scale(1);
  background: #fafafa;
  border-radius: 18px;
  box-shadow: 0 9px 32px rgba(15,15,15,0.29);
  z-index: 5002;
  padding: 38px 34px 28px 34px;
  min-width: 320px;
  max-width: 92vw;
  animation: cookie-modal-fade-in 0.33s cubic-bezier(0.6,0,0.4,1);
  display: flex;
  flex-direction: column;
  gap: 18px;
}
@keyframes cookie-modal-fade-in {
  0% { transform: translate(-50%, 80%) scale(0.80); opacity: 0; }
  100% { transform: translate(-50%,-50%) scale(1); opacity: 1; }
}
.cookie-modal h3 {
  color: #232323;
  font-size: 1.28rem;
  font-family: 'Roboto Slab', serif;
  margin-bottom: 2px;
}
.cookie-category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  margin: 10px 0 13px 0;
}
.cookie-category label {
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  font-size: 1.03rem;
  font-weight: 500;
  color: #232323;
}
.cookie-category input[type="checkbox"] {
  appearance: none;
  width: 36px; height: 22px;
  background: #c4c4c4;
  border-radius: 14px;
  position: relative;
  outline: none;
  transition: background 0.18s;
}
.cookie-category input[type="checkbox"]:checked {
  background: var(--brand-accent);
}
.cookie-category input[type="checkbox"]:before {
  content: '';
  display: block;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: #f7f7f7;
  position: absolute;
  top: 3px; left: 5px;
  transition: left 0.18s;
}
.cookie-category input[type="checkbox"]:checked:before {
  left: 16px;
}
.cookie-modal-buttons {
  display: flex;
  flex-direction: row;
  gap: 16px;
  justify-content: flex-end;
  margin-top: 4px;
}
.close-cookie-modal {
  position: absolute;
  top: 14px;
  right: 20px;
  font-size: 1.5rem;
  background: none;
  border: none;
  color: #232323;
  cursor: pointer;
  z-index: 5100;
  opacity: 0.82;
}
.close-cookie-modal:hover,
.close-cookie-modal:focus {
  color: #000;
  opacity: 1;
}

/* === UTILITIES === */
.text-center {
  text-align: center;
}
.mt-20 { margin-top: 20px; }
.mb-16 { margin-bottom: 16px; }
.pt-40 { padding-top: 40px; }

/* === RESPONSIVE BREAKPOINTS === */
@media (max-width: 768px) {
  h1, .h1 { font-size: 2rem; }
  h2, .h2 { font-size: 1.38rem; }
  h3, .h3 { font-size: 1.09rem; }
  header > .container { flex-direction: row; padding: 10px 8px; }
  .section { padding: 24px 8px; margin-bottom: 36px; }
  .service-card, .testimonial-card, .contact-info {
    padding: 16px 9px 14px 11px;
    font-size: 0.98rem;
  }
  .testimonial-card {
    gap: 13px;
  }
  .footer-brand img { height: 33px; }
  .footer-nav { gap: 10px; font-size: 0.98rem; }
  .social-links { gap: 7px; }
  .cookie-modal { padding: 22px 9px 18px 14px; }
}
@media (max-width:480px) {
  header img, .footer-brand img { height: 26px; }
  .service-card, .testimonial-card { font-size: 0.95rem; }
  .footer-nav { font-size: 0.97rem; }
  .cookie-banner { padding: 13px 4px 13px 7px; }
}

/* === ACCESSIBILITY === */
:focus {
  outline: 2px solid var(--brand-accent);
  outline-offset: 2px;
}

/* === MICRO-INTERACTIONS & SHADOWS === */
.card, .testimonial-card, .contact-info, .service-card, table {
  transition: box-shadow 0.25s, transform 0.21s;
  will-change: box-shadow, transform;
}
.card:hover, .service-card:hover, .testimonial-card:hover {
  box-shadow: 0 10px 32px rgba(0,0,0,0.13);
  transform: translateY(-2px) scale(1.01);
}

/* === VISUAL HIERARCHY RULES === */
section + section { margin-top: 36px; }
.content-wrapper > h2, .content-wrapper > h1 {
  margin-top: 0;
  margin-bottom: 18px;
}
.content-wrapper > .service-cards, .content-wrapper > .testimonial-card {
  margin-top: 8px;
}

/* === SPACING CONSISTENCY === */
.card, .service-card, .testimonial-card {
  margin-bottom: 20px !important;
}
.section, .card, .service-card, .testimonial-card, .contact-info {
  margin-right: 0;
  margin-left: 0;
}
.content-wrapper > * + * { margin-top: 18px; }

/* === PREVENT OVERLAPPING === */
.card, .service-card, .testimonial-card, .contact-info {
  z-index: 1;
}

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