/* 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: #27211b;
  color: #F8EEDA;
  font-family: 'Lato', Arial, sans-serif;
  font-size: 16px;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
img {
  max-width: 100%;
  vertical-align: middle;
  border-style: none;
}
ul, ol {
  list-style: none;
}
a {
  color: inherit;
  text-decoration: none;
  transition: color .2s;
}
button, input, select, textarea {
  font-family: inherit;
  font-size: 100%;
  line-height: 1.2;
  color: inherit;
  background: none;
  border: none;
}
button:focus, a:focus {
  outline: 2px solid #8D674F;
  outline-offset: 2px;
}

/* FONT IMPORTS */
@import url('https://fonts.googleapis.com/css?family=Montserrat:700,600,500,400&display=swap');
@import url('https://fonts.googleapis.com/css?family=Lato:400,700&display=swap');

/* BRAND COLORS & STYLES */
:root {
  --primary: #46352C; /* espresso brown */
  --secondary: #8D674F; /* metallic bronze */
  --accent: #F8EEDA; /* oat milk cream */
  --metal: #aba7a2; /* metallic silver accent */
  --background: #27211b; /* dark base */
  --foreground: #F8EEDA;
  --error: #aa2c2c;
  --shadow: 0 2.5px 24px 0 rgba(34,28,20,0.25);
  --radius: 10px;
  --gap-section: 60px;
  --gap-card: 20px;
  --gap-content: 30px;
  --transition: .22s cubic-bezier(.4,0,.2,1);
}

/* TYPOGRAPHY */
h1, .hero h1 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 700;
  font-size: 2.375rem;
  color: var(--accent);
  letter-spacing: -1px;
  margin-bottom: 16px;
}
h2 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1.675rem;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--foreground);
}
h3 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--accent);
  letter-spacing: 0.5px;
}
h4, h5, h6 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 500;
  color: var(--secondary);
}
p, li, ul, ol, span, label, blockquote {
  font-family: 'Lato', Arial, Helvetica, sans-serif;
  font-weight: 400;
  font-size: 1rem;
  color: var(--foreground);
  line-height: 1.65;
}
strong, b {
  color: var(--accent);
  font-weight: 700;
}
blockquote {
  font-style: italic;
  font-size: 1.05rem;
  border-left: 3px solid var(--secondary);
  padding-left: 14px;
  margin-bottom: 8px;
  color: var(--primary);
  background: var(--accent);
  border-radius: var(--radius) 0 0 var(--radius);
  box-shadow: var(--shadow);
}

.category-tags {
  display: flex;
  gap: 8px;
  margin: 10px 0 0;
}
.category-tags span {
  font-size: 0.86rem;
  color: var(--secondary);
  background: #313131;
  padding: 5px 12px;
  border-radius: 20px;
  letter-spacing: .1em;
}

/* LAYOUT: CONTAINER AND WRAPPERS */
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 22px;
  box-sizing: border-box;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: none;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: var(--gap-content);
  margin-bottom: 24px;
}

/* NAVIGATION */
header {
  position: relative;
  width: 100%;
  background: #1d1916;
  box-shadow: 0 3px 18px 0 rgba(0,0,0,0.16);
  z-index: 99;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 8px 0;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  font-weight: 500;
}
.main-nav img {
  height: 44px;
  width: auto;
  margin-right: 24px;
  filter: grayscale(25%) contrast(110%) drop-shadow(0 0 2px #1d1916);
}
.main-nav a {
  opacity: .88;
  color: var(--foreground);
  padding: 8px 12px;
  border-radius: 6px;
  transition: background var(--transition), color var(--transition);
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
}
.main-nav a:hover, .main-nav a.active {
  background: #2e211a;
  color: var(--accent);
  opacity: 1;
}
.main-nav .cta-btn {
  background: var(--secondary);
  color: #fff;
  border-radius: 24px;
  font-weight: 700;
  padding: 10px 24px;
  margin-left: 18px;
  box-shadow: 0 4px 19px -7px #46352C22;
  transition: background var(--transition), box-shadow var(--transition);
}
.main-nav .cta-btn:hover {
  background: var(--primary);
  color: var(--accent);
  box-shadow: 0 6px 26px -8px #8D674F55;
}

/* BURGER MENU (MOBILE) */
.mobile-menu-toggle {
  display: none;
  position: absolute;
  right: 22px;
  top: 16px;
  z-index: 101;
  background: var(--secondary);
  border: none;
  color: #fff;
  font-size: 2.2rem;
  border-radius: 8px;
  cursor: pointer;
  padding: 4px 12px 6px 12px;
  box-shadow: 0 2px 8px #0000001a;
  transition: background var(--transition);
}
.mobile-menu-toggle:hover {
  background: var(--primary);
}
.mobile-menu {
  display: flex;
  flex-direction: column;
  position: fixed;
  left: 0; top: 0;
  width: 100vw;
  height: 100vh;
  background: #181512ee;
  backdrop-filter: blur(7px);
  z-index: 1200;
  transform: translateX(-100vw);
  transition: transform .35s cubic-bezier(.91,.12,.36,.95);
  padding: 32px 0 0 0;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  align-self: flex-end;
  margin: 0 24px 24px 0;
  font-size: 1.9rem;
  color: #fff;
  background: none;
  cursor: pointer;
  border-radius: 8px;
  padding: 3px 12px;
  border: none;
  transition: background var(--transition);
}
.mobile-menu-close:hover {
  background: #444;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 12px 30px 0 32px;
}
.mobile-nav a {
  color: #fff;
  font-size: 1.18rem;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  padding: 14px 8px;
  border-radius: 7px;
  transition: background var(--transition);
}
.mobile-nav a:hover, .mobile-nav a.active {
  background: #2e211a;
}

/* HERO SECTION */
.hero {
  background: linear-gradient(87deg, #2E2320 0%, #46352C 100%);
  margin-bottom: var(--gap-section);
  box-shadow: 0 13px 50px 0 #00000044;
  border-radius: 0 0 48px 48px;
}
.hero .container {
  padding-top: 68px;
  padding-bottom: 50px;
}
.hero .content-wrapper {
  align-items: flex-start;
  gap: 20px;
}
.hero h1 {
  color: var(--accent);
  font-size: 2.55rem;
  line-height: 1.14;
}
.hero p {
  max-width: 550px;
  color: var(--accent);
  opacity: .95;
  font-size: 1.25rem;
  margin-bottom: 6px;
}
.hero .cta-btn {
  margin-top: 12px;
}

/* FLEX CONTENT PATTERNS (MANDATORY LAYOUTS) */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  background: #31251f;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 26px;
  transition: box-shadow var(--transition), border var(--transition);
}
.card:hover {
  box-shadow: 0 5px 36px 0 #F8EEDA13,0 0 0 1.5px var(--secondary);
}
.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;
  background: var(--accent);
  padding: 20px;
  border-radius: var(--radius);
  margin-bottom: 22px;
  box-shadow: 0 3px 24px 0 #46352C1F;
  color: var(--primary) !important;
  transition: transform .15s, box-shadow .2s;
}
.testimonial-card blockquote {
  color: var(--primary);
  background: none;
  border-left: 4px solid var(--secondary);
  box-shadow: none;
}
.testimonial-card span {
  font-weight: 700;
  color: var(--secondary);
  font-size: 1rem;
  margin-left: auto;
}
.testimonial-card:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: 0 8px 36px -8px #46352C33;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}
.cta-row {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-top: 20px;
}

.section {
  background: none;
  margin-bottom: 60px;
  padding: 40px 20px;
}

/* FEATURE GRID */
.feature-grid,
.service-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 20px;
  justify-content: flex-start;
}
.feature-grid > div, .service-list > div {
  background: #31251f;
  border-radius: var(--radius);
  flex: 1 1 220px;
  min-width: 220px;
  max-width: 320px;
  padding: 28px 22px 22px 22px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-bottom: 0;
  position: relative;
  transition: box-shadow var(--transition), border var(--transition);
  border: 1px solid #382d26;
}
.feature-grid > div img,
.service-list > div img {
  width: 46px;
  margin-bottom: 13px;
  filter: grayscale(10%) brightness(.95) drop-shadow(0 1px 2px var(--metal));
}
.feature-grid > div:hover, .service-list > div:hover {
  box-shadow: 0 8px 30px -6px #8D674F66, 0 0 0 2px var(--metal);
}
.price {
  color: var(--secondary);
  margin-top: 10px;
  font-weight: 700;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
}

/* BLOG POSTS */
.blog-post {
  background: #31251f;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px 20px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.blog-post h3 {
  margin-bottom: 6px;
  color: var(--accent);
}
.blog-post a {
  color: var(--secondary);
  font-weight: 700;
  text-decoration: underline;
  transition: color var(--transition);
}
.blog-post a:hover {
  color: #f7b98e;
}

/* CTA BUTTONS */
.cta-btn {
  display: inline-flex;
  align-items: center;
  background: var(--secondary);
  color: #fff;
  border: none;
  border-radius: 26px;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 700;
  font-size: 1.07rem;
  padding: 12px 32px;
  cursor: pointer;
  margin-top: 10px;
  box-shadow: 0 4px 19px -7px #46352C28;
  letter-spacing: .02em;
  transition: background var(--transition), color var(--transition), box-shadow var(--transition);
}
.cta-btn:hover, .cta-btn:focus {
  background: var(--primary);
  color: var(--accent);
  box-shadow: 0 6px 27px -8px #8D674Faa;
}
.cta-btn.outline {
  background: none;
  color: var(--secondary);
  border: 2px solid var(--secondary);
  transition: background var(--transition), color var(--transition), border var(--transition);
}
.cta-btn.outline:hover, .cta-btn.outline:focus {
  background: var(--secondary);
  color: #fff;
}

/* TEXT SECTION */
.text-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
  color: var(--foreground);
  line-height: 1.72;
}
.text-section strong {
  color: var(--secondary);
}

/* FOOTER */
footer {
  background: #1C1815;
  color: var(--foreground);
  border-top: 2px solid #33261e;
  margin-top: 80px;
  box-shadow: 0 -3px 24px 0 #46352C28;
}
footer .container {
  padding: 34px 20px 20px 20px;
}
footer .content-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: space-between;
  align-items: flex-end;
  position: relative;
}
.footer-nav {
  display: flex;
  gap: 20px;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  flex-wrap: wrap;
}
.footer-nav a {
  color: var(--secondary);
  font-weight: 500;
  padding: 2px 7px;
  border-radius: 6px;
  transition: background .16s;
}
.footer-nav a:hover {
  background: #2e211a;
}
footer img {
  height: 50px;
  width: auto;
  filter: grayscale(40%) brightness(.95);
}
.social-links {
  display: flex;
  gap: 12px;
  margin-top: 10px;
}
.social-links a {
  display: inline-flex;
  background: var(--accent);
  border-radius: 50%;
  padding: 5px;
  transition: box-shadow var(--transition);
  box-shadow: 0 1px 6px #1C181533;
}
.social-links a:hover {
  box-shadow: 0 2px 12px #8D674F55;
}
.brand-credits {
  color: var(--metal);
  font-size: .9rem;
  margin-top: 25px;
  font-family: 'Lato', Arial, Helvetica, sans-serif;
  opacity: .7;
}

/* COOKIES BANNER */
#cookie-banner, .cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 1300;
  background: #24201C;
  color: var(--accent);
  padding: 20px 7vw 16px 7vw;
  box-shadow: 0 -3px 32px 0 #0000001e, 0 0 2px #8D674F99;
  display: flex;
  align-items: center;
  gap: 30px;
  justify-content: space-between;
  flex-wrap: wrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s;
}
#cookie-banner.show, .cookie-banner.show {
  opacity: 1;
  pointer-events: auto;
}
.cookie-banner-content {
  flex: 2 1 340px;
  font-size: 1rem;
  color: var(--accent);
  max-width: 650px;
  margin-right: 18px;
  line-height: 1.7;
}
.cookie-buttons {
  display: flex;
  gap: 16px;
}
.cookie-btn {
  padding: 10px 25px;
  border-radius: 21px;
  font-size: 1rem;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 600;
  border: none;
  cursor: pointer;
  background: var(--secondary);
  color: #fff;
  margin-left: 0;
  transition: background var(--transition), color var(--transition), box-shadow var(--transition);
  box-shadow: 0 2px 14px -6px #8D674F33;
}
.cookie-btn.accept {
  background: var(--secondary);
}
.cookie-btn.reject {
  background: #54443C;
}
.cookie-btn.settings {
  background: transparent;
  border: 2px solid var(--secondary);
  color: var(--secondary);
}
.cookie-btn:hover, .cookie-btn:focus {
  background: var(--primary);
  color: var(--accent);
}
.cookie-btn.settings:hover, .cookie-btn.settings:focus {
  background: var(--secondary);
  color: #fff;
}

/* COOKIE MODAL */
#cookie-modal, .cookie-modal {
  display: none;
  position: fixed;
  z-index: 1400;
  left: 0; top: 0;
  width: 100vw; height: 100vh;
  background: rgba(39,33,27,.85);
  align-items: center;
  justify-content: center;
  transition: background .24s;
}
.cookie-modal.show {
  display: flex;
}
.cookie-modal-content {
  background: #fffbee;
  color: #46352C;
  border-radius: 14px;
  box-shadow: 0 6px 48px 0 #46352C55;
  padding: 40px 34px 24px 34px;
  max-width: 420px;
  width: 92vw;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 20px;
  border: 1.5px solid var(--secondary);
}
.cookie-modal-content h3 {
  color: var(--primary);
  font-size: 1.32rem;
  margin-bottom: 7px;
}
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.cookie-category {
  display: flex;
  align-items: center;
  font-size: 1.04rem;
  gap: 10px;
}
.cookie-category input[type="checkbox"] {
  accent-color: var(--secondary);
  width: 19px; height: 19px;
}
.cookie-modal-close {
  position: absolute;
  right: 16px; top: 14px;
  font-size: 1.6rem;
  color: var(--secondary);
  background: none;
  border: none;
  cursor: pointer;
  transition: color var(--transition);
}
.cookie-modal-close:hover {
  color: var(--error);
}
.cookie-modal-content .cookie-btn {
  margin-top: 18px;
  width: 100%;
}
.cookie-category .essential {
  opacity: 0.6;
}

/* RESPONSIVE DESIGN */
@media (max-width: 1120px) {
  .container {
    max-width: 99vw;
  }
}
@media (max-width: 900px) {
  .main-nav {
    gap: 13px;
    font-size: 0.98rem;
  }
  .feature-grid>div, .service-list>div {
    min-width: 190px;
    max-width: 100%;
    flex: 1 1 48vw;
  }
  .footer-nav {
    gap: 10px;
  }
}

@media (max-width: 768px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block !important;
  }
  .hero .container {
    padding-top: 32px;
    padding-bottom: 26px;
  }
  .feature-grid, .service-list, .content-grid, .card-container {
    flex-direction: column;
    gap: 20px;
  }
  .footer-nav {
    flex-direction: column;
    gap: 7px;
    margin-bottom: 10px;
  }
  .footer .content-wrapper {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  .section {
    margin-bottom: 32px;
    padding: 26px 10px 16px 10px;
  }
  .text-image-section,
  .content-wrapper {
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
  }
  .testimonial-card {
    flex-direction: column;
    align-items: flex-start;
  }
  #cookie-banner, .cookie-banner {
    flex-direction: column;
    gap: 18px;
    padding: 18px 3vw 12px 3vw;
  }
  .cookie-buttons {
    width: 100%;
    gap: 8px;
  }
}
/* Extra Small Devices */
@media (max-width: 480px) {
  h1, .hero h1 {
    font-size: 1.37rem;
  }
  h2 {
    font-size: 1.18rem;
  }
  .main-nav img, footer img {
    height: 38px;
  }
  .feature-grid > div, .service-list>div {
    padding: 18px 8px 12px 8px;
    font-size: .95rem;
  }
  .brand-credits {
    font-size: .80rem;
    margin-top: 10px;
  }
}

/* MICRO-INTERACTIONS & ANIMATIONS */
.cta-btn, .cookie-btn {
  transition: transform .13s, box-shadow .14s, background var(--transition), color var(--transition);
}
.cta-btn:active, .cookie-btn:active {
  transform: scale(.96);
  box-shadow: 0 1px 8px #8D674F61;
}
.card:active {
  transform: scale(.98);
  box-shadow: 0 1px 4px #46352C80;
}
.testimonial-card:active {
  transform: scale(.98);
  box-shadow: 0 1px 8px #46352C51;
}

/* UTILITY */
.muted {
  color: #908e8a !important;
  font-size: .9em;
}
.space-below {
  margin-bottom: 24px !important;
}
.center {
  text-align: center;
}

/* Hide scroll on open mobile menu */
body.mobile-menu-open {
  overflow: hidden;
}

/* Fallbacks for custom properties */
@media (any-pointer: coarse) {
  a:active, button:active {
    filter: brightness(.9);
  }
}
