/* 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 { font-size: 16px; }
body { line-height: 1.5; background: #f7f2ed; color: #222; }
*, *:before, *:after { box-sizing: inherit; }

img, picture { max-width: 100%; display: block; height: auto; }

ul, ol { list-style: none; }
a { text-decoration: none; color: inherit; transition: color 0.2s; }

/* BRAND COLOR PALETTE */
:root {
  --primary: #563C2E;
  --secondary: #C2B280;
  --accent: #F7F2ED;
  --vibrant-1: #ff601d;   /* Electric Orange */
  --vibrant-2: #18CBB6;   /* Flash Teal */
  --vibrant-3: #ffec42;   /* Neon Yellow */
  --vibrant-4: #5f30e2;   /* Energetic Purple */
  --neutral-bg: #f7f2ed;
  --neutral-bg-dark: #EFE5DC;
  --white: #fff;
  --black: #181818;
  --shadow: 0 4px 24px 0 rgba(86,60,46,0.07), 0 1.5px 6px 0 rgba(24,24,24,0.09);
}

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

body {
  font-family: 'Lato', Arial, Helvetica, sans-serif;
  background: var(--neutral-bg);
  color: var(--primary);
  min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Merriweather', Georgia, serif;
  font-weight: 900;
  color: var(--primary);
}
h1 { font-size: 2.25rem; line-height: 1.1; margin-bottom: 16px; }
h2 { font-size: 1.5rem; margin: 0 0 16px; line-height: 1.2; }
h3 { font-size: 1.125rem; color: var(--vibrant-2); margin: 0 0 12px; font-weight: 900; }
h4, h5, h6 { color: var(--primary); }

p, li, blockquote, span { font-size: 1rem; font-family: 'Lato', Arial, sans-serif; }
strong, b { font-weight: 700; }

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}

.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

main > section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--neutral-bg);
  border-radius: 1.25rem;
  box-shadow: var(--shadow);
}
/* HEROS AND FEATURE SECTIONS */
.hero {
  background: linear-gradient(89deg, var(--vibrant-1) 0%, var(--vibrant-2) 70%, var(--neutral-bg) 100%);
  box-shadow: 0 9px 32px 0 rgba(255,96,29,0.08);
  margin-bottom: 60px;
  padding: 40px 0 60px 0;
  border-radius: 0 0 2.5rem 2.5rem;
}
.hero .content-wrapper {
  align-items: flex-start;
  gap: 24px;
}
.hero h1 {
  color: var(--primary);
  font-size: 2.6rem;
  letter-spacing: -1px;
  text-shadow: 2px 2px 0 var(--vibrant-3), 0 8px 24px rgba(86,60,46,0.11);
}
.hero p {
  color: var(--primary);
  font-size: 1.18rem;
}

.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  margin: 24px 0 0 0;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: var(--white);
  border-radius: 1rem;
  box-shadow: 0 2px 12px rgba(24,24,24,0.07);
  transition: transform 0.18s, box-shadow 0.18s;
  padding: 24px 28px;
  max-width: 330px;
  min-width: 220px;
  flex: 1 1 260px;
}
.feature-item:hover {
  box-shadow: 0 6px 32px -2px var(--vibrant-1), 0 2px 16px rgba(24,24,24,0.11);
  transform: translateY(-7px) scale(1.035);
}
.feature-item img {
  width: 44px;
  height: 44px;
}
.feature-item h3 {
  font-size: 1.18rem;
  color: var(--vibrant-2);
}
.feature-item p {
  color: var(--primary);
}

/* SERVICES & CARD CONTAINERS */
.service-grid, .card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.service-item, .card {
  background: var(--white);
  border-radius: 1rem;
  margin-bottom: 20px;
  position: relative;
  box-shadow: var(--shadow);
  flex: 1 1 280px;
  min-width: 220px;
  padding: 28px 20px 22px 20px;
  transition: box-shadow 0.15s, transform 0.14s;
}
.service-item:hover, .card:hover {
  box-shadow: 0 10px 38px -3px var(--vibrant-2), 0 4px 16px 0 rgba(255,96,29,0.11);
  transform: translateY(-5px) scale(1.022);
}
.service-item h2 {
  font-size: 1.1rem;
  color: var(--vibrant-1);
  margin-bottom: 7px;
}
.service-item strong {
  display: inline-block;
  margin-top: 18px;
  color: var(--secondary);
  font-weight: 700;
  letter-spacing: 0.02em;
  font-size: 1.06rem;
}

/* GENERAL CARD STYLES */
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 15px;
}

/* MAIN TEXT & LISTS */
.text-section {
  padding: 0;
  background: none;
  box-shadow: none;
  border-radius: 0;
}
.text-section h2, .text-section h3 {
  margin-top: 12px;
}
.text-section ul, .text-section ol {
  padding-left: 22px;
  margin-bottom: 15px;
}
.text-section ul li, .text-section ol li {
  position: relative;
  line-height: 1.6;
  margin-bottom: 10px;
  color: var(--primary);
}
.text-section ul li:before {
  content: '';
  display: inline-block;
  width: 7px;
  height: 7px;
  background: var(--vibrant-2);
  border-radius: 50%;
  margin-right: 10px;
  vertical-align: middle;
}
.text-section ol { list-style: decimal; }

/* CASE STUDIES */
.case-study {
  background: var(--vibrant-4);
  color: var(--white);
  border-radius: 0.75rem;
  box-shadow: 0 3px 18px 0 var(--vibrant-4);
  padding: 24px 24px 16px 24px;
  margin-bottom: 20px;
  position: relative;
  transition: box-shadow 0.17s, transform 0.15s;
}
.case-study h3 { color: var(--vibrant-1); }
.case-study span {
  font-size: 1rem;
  font-style: italic;
  color: var(--vibrant-3);
}
.case-study:hover {
  box-shadow: 0 10px 34px -4px var(--vibrant-1), 0 7px 16px 0 rgba(95,48,226,0.18);
  transform: translateY(-4px) scale(1.019);
}

/* TESTIMONIAL CARDS */
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: var(--neutral-bg-dark);
  border-left: 7px solid var(--vibrant-1);
  border-radius: 1rem;
  margin-bottom: 20px;
  box-shadow: 0 4px 18px 0 rgba(24,24,24,0.07);
  transition: box-shadow 0.15s, border-left 0.17s;
}
.testimonial-card:hover {
  box-shadow: 0 8px 32px 0 var(--vibrant-2);
  border-left: 7px solid var(--vibrant-4);
}
.testimonial-card blockquote {
  margin: 0;
  padding: 0;
  font-size: 1.09rem;
  font-style: italic;
  color: var(--primary);
  line-height: 1.4;
}
.testimonial-card span {
  color: var(--vibrant-2);
  font-size: 0.97rem;
  font-weight: bold;
}

/* CTA BUTTONS */
.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 32px;
  background: var(--vibrant-1);
  color: var(--white);
  text-transform: uppercase;
  font-family: 'Merriweather', serif;
  font-weight: 900;
  font-size: 1.1rem;
  letter-spacing: 0.1em;
  border-radius: 40px;
  box-shadow: 0 4px 14px 0 rgba(255,96,29,0.18);
  border: none;
  cursor: pointer;
  transition: background 0.16s, box-shadow 0.16s, transform 0.12s;
  margin-top: 12px;
}
.cta-button:hover, .cta-button:focus {
  background: var(--vibrant-2);
  color: var(--black);
  box-shadow: 0 7px 25px 0 var(--vibrant-2);
  transform: translateY(-3px) scale(1.03);
}

/* HEADER & NAVIGATION */
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 20px;
  background: var(--white);
  box-shadow: 0 2px 10px 0 rgba(86,60,46,0.07);
  z-index: 1100;
  position: relative;
}
header a img {
  height: 38px;
  width: auto;
  display: block;
}
header nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
header nav a {
  color: var(--primary);
  font-weight: 700;
  transition: color 0.16s, border-bottom 0.18s;
  font-size: 1.08rem;
  padding-bottom: 3px;
  position: relative;
}
header nav a::after {
  content: '';
  display: block;
  width: 0;
  height: 2.5px;
  border-radius: 2.5px;
  background: var(--vibrant-2);
  transition: width 0.18s;
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
}
header nav a:hover, header nav a:focus {
  color: var(--vibrant-1);
}
header nav a:hover::after, header nav a:focus::after {
  width: 100%;
}

/* FOOTER */
footer {
  background: var(--primary);
  color: var(--accent);
  padding: 46px 0 28px 0;
  font-size: 1rem;
  margin-top: 60px;
  position: relative;
  z-index: 900;
}
footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
}
footer img {
  height: 41px;
  width: auto;
}
footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 4px;
}
footer nav a {
  color: var(--secondary);
  font-weight: 600;
  font-size: 1rem;
  transition: color 0.15s;
}
footer nav a:hover, footer nav a:focus {
  color: var(--vibrant-3);
}
footer div:last-child {
  font-size: 0.93rem;
  color: var(--accent);
}

/* SECTION & LAYOUTS: Flex Only! */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
}
.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;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* MOBILE MENU TOGGLE & OVERLAY */
.mobile-menu-toggle {
  display: none;
  position: fixed;
  top: 28px;
  right: 20px;
  z-index: 2001;
  background: var(--vibrant-1);
  color: var(--white);
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 50%;
  font-size: 2rem;
  box-shadow: 0 3px 16px var(--vibrant-1);
  cursor: pointer;
  transition: background 0.13s;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover { background: var(--vibrant-2); color: var(--primary); }

.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: 100vw;
  z-index: 2500;
  background: rgba(86,60,46,0.92);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  padding: 42px 0 0 0;
  transform: translateX(100vw);
  transition: transform 0.34s cubic-bezier(.62,1.2,.38,1);
  pointer-events: none;
  opacity: 0;
}
.mobile-menu.active {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu-close {
  background: var(--vibrant-3);
  color: var(--primary);
  border: none;
  font-size: 2.15rem;
  border-radius: 50%;
  width: 52px; height: 52px;
  margin-right: 23px;
  margin-bottom: 19px;
  cursor: pointer;
  transition: background 0.13s, color 0.13s;
  box-shadow: 0 3px 10px var(--vibrant-1);
}
.mobile-menu-close:focus, .mobile-menu-close:hover {
  background: var(--vibrant-1);
  color: var(--white);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  width: 100%;
  align-items: flex-end;
  gap: 16px;
  padding: 34px 28px 0 0;
}
.mobile-nav a {
  color: var(--white);
  font-size: 1.38rem;
  padding: 15px 8px;
  font-weight: bold;
  border-radius: 0.5rem;
  transition: background 0.12s, color 0.13s;
  min-width: 212px;
  text-align: right;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--vibrant-2);
  color: var(--primary);
}

/* COOKIE CONSENT BANNER */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--white);
  color: var(--primary);
  box-shadow: 0 -2px 22px 0 var(--vibrant-1), 0 -1px 8px rgba(24,24,24,0.09);
  z-index: 4000;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
  padding: 30px 30px 20px 30px;
  font-size: 1.02rem;
  animation: cookieFadeIn 0.5s;
}
@keyframes cookieFadeIn { from { opacity: 0; transform: translateY(80px);} to { opacity: 1; transform: translateY(0);}}

.cookie-banner .cookie-text {
  max-width: 800px;
  margin-right: 22px;
}
.cookie-banner .cookie-actions {
  display: flex;
  gap: 14px;
  flex-direction: row;
}
.cookie-btn {
  padding: 10px 28px;
  border-radius: 32px;
  font-family: 'Lato', Arial, sans-serif;
  font-weight: 700;
  border: none;
  outline: none;
  cursor: pointer;
  font-size: 1.05rem;
  transition: background 0.14s, color 0.13s, box-shadow 0.13s;
  box-shadow: 0 2px 12px 0 rgba(24,24,24,0.13);
}
.cookie-btn.accept {
  background: var(--vibrant-1);
  color: var(--white);
}
.cookie-btn.accept:hover, .cookie-btn.accept:focus { background: var(--vibrant-2); color: var(--primary); }
.cookie-btn.reject {
  background: var(--white);
  color: var(--vibrant-1);
  border: 2px solid var(--vibrant-1);
}
.cookie-btn.reject:hover, .cookie-btn.reject:focus { background: var(--vibrant-3); color: var(--primary); border: 2px solid var(--vibrant-1); }
.cookie-btn.settings {
  background: var(--vibrant-2);
  color: var(--white);
}
.cookie-btn.settings:hover, .cookie-btn.settings:focus { background: var(--vibrant-1); color: var(--white);}

/* COOKIE SETTINGS MODAL */
.cookie-modal {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) translateY(150%);
  background: var(--white);
  color: var(--primary);
  border-radius: 1.7rem 1.7rem 0 0;
  box-shadow: 0 -1px 32px 0 var(--vibrant-2), 0 2px 12px rgba(24,24,24,0.09);
  z-index: 4050;
  min-width: 330px;
  max-width: 95vw;
  padding: 40px 36px 30px 36px;
  opacity: 0;
  pointer-events: none;
  transition: transform 0.41s cubic-bezier(.7,-0.07,.32,1.01), opacity 0.2s;
}
.cookie-modal.active {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.cookie-modal h2 {
  font-size: 1.38rem;
  margin-bottom: 18px;
  color: var(--vibrant-4);
}
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 32px;
}
.cookie-category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--neutral-bg-dark);
  border-radius: 0.7em;
  padding: 14px 22px;
}
.cookie-category.essential {
  background: var(--vibrant-2);
  color: var(--white);
  font-weight: 700;
}
.cookie-category .toggle {
  width: 44px;
  height: 28px;
  border-radius: 14px;
  position: relative;
  background: #ddd;
  transition: background 0.2s;
  cursor: pointer;
  border: none;
}
.cookie-category .toggle.active {
  background: var(--vibrant-1);
}
.cookie-category .handle {
  position: absolute;
  left: 3px;
  top: 3px;
  width: 22px;
  height: 22px;
  border-radius: 60%;
  background: var(--white);
  box-shadow: 0 1px 5px rgba(24,24,24,0.14);
  transition: left 0.18s;
}
.cookie-category .toggle.active .handle {
  left: 19px;
  background: var(--white);
}
.cookie-modal .cookie-modal-actions {
  display: flex;
  gap: 16px;
  justify-content: flex-end;
}

/* ANIMATIONS FOR BUTTONS */
.cta-button, .cookie-btn, .mobile-menu-toggle, .mobile-menu-close {
  transition: background 0.15s, color 0.13s, transform 0.12s, box-shadow 0.14s;
}

/* RESPONSIVENESS */
@media (max-width: 1020px) {
  .container {
    max-width: 100%;
    padding: 0 11px;
  }
}
@media (max-width: 900px) {
  .feature-grid, .service-grid, .card-container, .content-grid {
    gap: 18px;
  }
  .feature-item, .service-item, .card {
    min-width: 160px;
  }
}
@media (max-width: 800px) {
  header nav { gap: 12px; }
}
@media (max-width: 768px) {
  header nav, header .cta-button {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
  .feature-grid, .service-grid, .card-container, .content-grid {
    flex-direction: column;
    gap: 21px;
  }
  .feature-item, .service-item, .card {
    max-width: 100%;
    min-width: 0;
    width: 100%;
  }
  .testimonial-card, .case-study {
    flex-direction: column;
    gap: 11px;
    align-items: flex-start;
    padding: 13px 10px;
  }
  .hero {
    border-radius: 0 0 2rem 2rem;
    padding-bottom: 32px;
  }
  .hero h1 { font-size: 1.8rem; }
  main > section, .section {
    margin-bottom: 32px;
    padding: 24px 7px;
    border-radius: 1.1rem;
  }
  .footer .container, .footer nav {
    gap: 10px;
  }
  .mobile-menu {
    width: 100vw;
    min-width: 0;
  }
  .cookie-banner {
    flex-direction: column;
    gap: 18px;
    padding: 20px 8px;
    font-size: 0.98rem;
  }
  .cookie-banner .cookie-text {
    margin: 0;
    max-width: 98vw;
  }
}
@media (max-width: 600px) {
  h1 { font-size: 1.5rem; }
  h2 { font-size: 1.1rem; }
  h3 { font-size: 1rem; }
  .cookie-modal { min-width: 0; max-width: 99vw; padding: 18px 7px 10px 7px; }
  .cookie-modal h2 { margin-bottom: 8px; }
  .cookie-categories { gap: 9px; }
  .cookie-category { padding: 7px 10px; font-size: 0.99rem; }
  footer .container { gap: 10px; }
}

/* FORM FIELDS (CONTACT PAGE, future proof) */
input[type="text"], input[type="email"], textarea {
  font-family: 'Lato', Arial, sans-serif;
  width: 100%;
  padding: 12px 18px;
  margin-bottom: 17px;
  border-radius: 0.6rem;
  border: 1.5px solid var(--secondary);
  background: #fdfcf8;
  color: var(--primary);
  box-shadow: 0 1px 6px rgba(86,60,46,0.07);
  font-size: 1rem;
  transition: border 0.12s, box-shadow 0.12s;
}
input[type="text"]:focus, input[type="email"]:focus, textarea:focus {
  border: 1.5px solid var(--vibrant-2);
  outline: none;
  box-shadow: 0 2px 11px var(--vibrant-2);
}

/* LINK STYLES */
a {
  color: var(--vibrant-2);
  text-decoration: underline;
  transition: color 0.14s, text-decoration 0.11s;
}
a:hover, a:focus {
  color: var(--vibrant-1);
  text-decoration: none;
}

/* MISC */
::-webkit-scrollbar {
  width: 12px;
  background: var(--accent);
}
::-webkit-scrollbar-thumb {
  background: var(--secondary);
  border-radius: 7px;
}