/* CSS RESET & NORMALIZATION */
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, main, menu,
nav, output, ruby, section, summary, time, mark, audio, video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
}
article, aside, details, figcaption, figure, footer, header, hgroup, main, menu, nav, section {
  display: block;
}
body {
  line-height: 1.5;
  background: #f8fafc;
  color: #243649;
  font-family: 'Open Sans', Arial, sans-serif;
  min-height: 100vh;
}
ul, ol {
  list-style: none;
}
a {
  background: transparent;
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}
a:focus {
  outline: 2px solid #F2C14E;
  outline-offset: 2px;
}
img {
  max-width: 100%;
  display: block;
}

/* VARIABLES */
:root {
  --primary: #243649;
  --secondary: #8C6A4D;
  --accent: #FFDC4E;
  --white: #fff;
  --black: #233041;
  --highlight: #59D5E2;
  --orange: #FF8552;
  --gray-bg: #f8fafc;
}

/* TYPOGRAPHY */
body {
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 16px;
  color: var(--primary);
  background: var(--gray-bg);
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Helvetica, Arial, sans-serif;
  font-weight: 800;
  letter-spacing: 1.5px;
  margin-bottom: 16px;
}
h1 {
  font-size: 2.5rem;
  color: var(--primary);
  line-height: 1.1;
}
h2 {
  font-size: 2rem;
  color: var(--orange);
  line-height: 1.15;
}
h3 {
  font-size: 1.25rem;
  color: var(--secondary);
  font-weight: 700;
}
h4 {
  font-size: 1.125rem;
  color: var(--black);
  font-weight: 600;
}
p, li, ul, ol, span, label {
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 1rem;
  color: var(--primary);
}
strong {
  color: var(--secondary);
  font-weight: 700;
}
.text-center {
  text-align: center;
}

/* CONTAINER & LAYOUT */
.container {
  width: 100%;
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: transparent;
  border-radius: 20px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
/* SPACING FOR CARDS & FLEX GROUPS */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: var(--white);
  border-radius: 24px;
  box-shadow: 0 4px 18px -2px rgba(36,54,73,0.10), 0 1.5px 6px -2px rgba(255,133,82,0.13);
  padding: 32px 24px;
  margin-bottom: 20px;
  position: relative;
  transition: transform 0.15s cubic-bezier(.52,.01,.23,1), box-shadow 0.2s;
  will-change: transform, box-shadow;
}
.card:hover {
  transform: translateY(-6px) scale(1.025) rotate(-2deg);
  box-shadow: 0 8px 24px -4px rgba(89,213,226,0.14), 0 6px 36px 0 rgba(255,133,82,0.11);
}
.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;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: var(--white);
  border-radius: 20px;
  box-shadow: 0 2px 10px -2px rgba(140,106,77,0.11);
  margin-bottom: 20px;
  transition: box-shadow 0.18s, transform 0.13s;
  min-width: 240px;
}
.testimonial-card p {
  color: var(--primary);
  font-size: 1.125rem;
  font-style: italic;
}
.testimonial-card span {
  color: var(--secondary);
  font-weight: 700;
  font-size: 1rem;
  align-self: flex-end;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

.text-section {
  font-size: 1rem;
  color: var(--primary);
}
.text-section ul, .text-section ol {
  margin: 18px 0 18px 24px;
  color: var(--primary);
}
.text-section ul li, .text-section ol li {
  margin-bottom: 12px;
  padding-left: 0.5em;
  position: relative;
}
.text-section ul li::before {
  content: '•';
  color: var(--highlight);
  font-weight: bold;
  display: inline-block;
  width: 1.5em;
  margin-left: -1.5em;
}
.text-section ol {
  list-style: decimal inside;
}
.text-section ol li::before {
  display: none;
}

.project-summary {
  background: #fffbea;
  border-left: 7px solid var(--highlight);
  border-radius: 18px;
  padding: 24px 20px;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px -2px rgba(255,220,78,0.08);
  transition: box-shadow 0.2s, transform 0.14s;
}
.project-summary:hover {
  transform: scale(1.015) rotate(1.5deg);
  box-shadow: 0 8px 24px -4px rgba(255,220,78,0.13), 0 6px 36px 0 rgba(89,213,226,0.11);
}

/* NAVIGATION */
header {
  background: var(--white);
  box-shadow: 0 1.5px 6px -2px rgba(36,54,73,0.09);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 1000;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 18px;
}
header img {
  height: 48px;
  width: auto;
  margin-right: 22px;
}
header nav {
  display: flex;
  flex-direction: row;
  gap: 22px;
  align-items: center;
}
header nav a {
  font-family: 'Montserrat', sans-serif;
  color: var(--primary);
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 14px;
  position: relative;
  transition: background 0.18s, color 0.18s, box-shadow 0.15s;
  font-size: 1rem;
}
header nav a:hover, .mobile-nav a:hover {
  background: var(--highlight);
  color: var(--black);
}
header .cta-btn {
  margin-left: 18px;
}
header .mobile-menu-toggle {
  display: none;
  background: var(--accent);
  color: var(--primary);
  border: none;
  font-size: 2rem;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0.5px 2px 0 rgba(140,106,77,0.11);
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.18s;
}
header .mobile-menu-toggle:hover,
header .mobile-menu-toggle:focus {
  background: var(--orange);
  color: var(--white);
}

/* CTA BUTTONS */
.cta-btn {
  background: var(--orange);
  color: var(--white);
  padding: 12px 32px;
  border-radius: 32px;
  font-family: 'Montserrat', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  transition: background 0.18s, transform 0.13s, box-shadow 0.17s;
  border: none;
  box-shadow: 0 2px 8px -2px rgba(255,133,82,0.14);
  cursor: pointer;
  letter-spacing: 0.5px;
  outline: inherit;
  margin-top: 14px;
  display: inline-block;
}
.cta-btn:hover, .cta-btn:focus {
  background: var(--highlight);
  color: var(--primary);
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 8px 24px -4px rgba(89,213,226,0.17);
}

/* FOOTER DESIGN */
footer {
  background: var(--primary);
  color: var(--white);
  padding: 50px 0 18px 0;
}
footer .container {
  flex-direction: column;
  align-items: center;
  gap: 28px;
}
footer nav {
  display: flex;
  gap: 20px;
  margin-bottom: 7px;
}
footer nav a {
  color: var(--white);
  font-size: 1rem;
  opacity: 0.88;
  transition: opacity 0.16s, color 0.15s;
  padding: 4px 12px;
  border-radius: 8px;
}
footer nav a:hover {
  opacity: 1;
  background: var(--highlight);
  color: var(--primary);
}
footer p {
  color: var(--accent);
  font-size: 0.95rem;
  text-align: center;
  margin-top: 8px;
}

/* MOBILE NAV OVERLAY */
.mobile-menu {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(36,54,73, 0.98);
  z-index: 2000;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  transition: transform 0.45s cubic-bezier(.86,-0.01,.53,1.11);
  transform: translateX(100%);
}
.mobile-menu.active {
  display: flex;
  transform: translateX(0%);
  animation: slideInMenu 0.5s cubic-bezier(.86,-0.01,.53,1.11);
}
@keyframes slideInMenu {
  0% { transform: translateX(100%); }
  100% { transform: translateX(0%); }
}
.mobile-menu-close {
  margin: 24px 0 12px 26px;
  font-size: 2.2rem;
  background: var(--orange);
  color: var(--white);
  border: none;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 6px -1px rgba(255,133,82,0.23);
  cursor: pointer;
  transition: background 0.17s, color 0.18s;
  z-index: 2200;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  background: var(--highlight);
  color: var(--primary);
}
.mobile-nav {
  margin: 24px 0 0 32px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.mobile-nav a {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--white);
  padding: 12px 0 12px 8px;
  border-radius: 8px;
  transition: background 0.19s, color 0.19s;
  min-width: 118px;
}
.mobile-nav a:active, .mobile-nav a:focus {
  background: var(--highlight);
  color: var(--primary);
}

/* HERO/INTRO SECTION */
main section:first-of-type {
  background: linear-gradient(90deg, var(--accent) 60%, #FFFAE5 100%);
  border-radius: 0 0 40px 40px;
  box-shadow: 0 4px 32px -12px rgba(255,220,78,0.13);
  margin-bottom: 60px;
  padding-top: 60px;
  animation: fadeInDown 1.3s cubic-bezier(.4,0,.2,1);
}
@keyframes fadeInDown {
  0% { opacity: 0; transform: translateY(-32px); }
  90% { opacity: 1; }
  100% { transform: translateY(0); }
}
.content-wrapper > a.cta-btn {
  margin-top: 18px;
  align-self: flex-start;
}

/* SERVICE ICONS */
.content-wrapper ul,
.content-wrapper ol {
  display: flex;
  flex-wrap: wrap;
  gap: 25px;
}
.content-wrapper ul li, .content-wrapper ol li {
  background: var(--white);
  border-radius: 19px;
  box-shadow: 0 1px 7px -1.5px rgba(36,54,73,0.09);
  padding: 24px 18px;
  margin-bottom: 10px;
  min-width: 230px;
  flex: 1 1 265px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 11px;
  position: relative;
  transition: transform 0.11s, box-shadow 0.13s;
}
.content-wrapper ul li:hover {
  transform: scale(1.04) rotate(-2deg);
  box-shadow: 0 8px 24px -4px rgba(255,133,82,0.12), 0 6px 36px 0 rgba(140,106,77,0.12);
}
.content-wrapper ul li img {
  height: 38px;
  width: 38px;
  margin-bottom: 6px;
  display: block;
}
.content-wrapper ul li h3 {
  color: var(--orange);
  font-size: 1.12rem;
  margin-bottom: 8px;
  margin-top: 2px;
}
.content-wrapper ul li span {
  color: var(--secondary);
  font-weight: 600;
  font-size: 1rem;
  margin-top: 10px;
}

/* INPUT (for future forms) */
input, textarea, select, button:not(.cta-btn) {
  font-family: inherit;
  font-size: 1rem;
  border-radius: 12px;
  border: 1.5px solid #d8d8d8;
  padding: 10px 15px;
  outline: none;
  transition: border 0.15s, box-shadow 0.13s;
}
input:focus, textarea:focus {
  border-color: var(--orange);
  box-shadow: 0 2px 8px -2px rgba(255,133,82,0.11);
}

/* Animations for playful style */
.cta-btn, .mobile-menu-toggle, .mobile-menu-close, .testimonial-card, .card, .project-summary {
  transition: box-shadow 0.19s, transform 0.14s, background 0.15s, color 0.15s;
}
.cta-btn:active { transform: scale(0.97) rotate(-1deg) }

/* Playful microinteractions */
h2:after {
  content: '';
  display: block;
  height: 5px;
  width: 46px;
  background: var(--highlight);
  border-radius: 3px;
  margin-top: 6px;
  animation: bounceUnderline 2.3s cubic-bezier(.74,.21,.07,1.66) infinite alternate;
}
@keyframes bounceUnderline {
  0% { width: 36px; }
  60% { width: 62px; }
  100% { width: 46px; }
}

/* Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: var(--white);
  box-shadow: 0 -2px 16px 0 rgba(36,54,73,0.19);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 28px;
  z-index: 4000;
  animation: slideUpCookie 0.7s cubic-bezier(.56,.01,.21,1.04);
}
@keyframes slideUpCookie {
  0% { transform: translateY(120%); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}
.cookie-banner p {
  flex: 1 1 220px;
  font-size: 1rem;
  color: var(--primary);
}
.cookie-banner .cookie-btn {
  background: var(--highlight);
  color: var(--primary);
  font-family: 'Montserrat', sans-serif;
  padding: 8px 20px;
  border: none;
  border-radius: 20px;
  font-size: 1rem;
  font-weight: 700;
  margin-right: 10px;
  transition: background 0.19s, color 0.15s, transform 0.1s;
  cursor: pointer;
}
.cookie-banner .cookie-btn.accept {
  background: var(--orange);
  color: var(--white);
}
.cookie-banner .cookie-btn.reject {
  background: #eaeaea;
  color: var(--primary);
}
.cookie-banner .cookie-btn.settings {
  background: transparent;
  color: var(--secondary);
  border: 2px solid var(--secondary);
}
.cookie-banner .cookie-btn:hover,
.cookie-banner .cookie-btn:focus {
  background: var(--highlight);
  color: var(--primary);
}

/* Cookie Modal */
.cookie-modal {
  position: fixed;
  z-index: 5000;
  left: 0; right: 0; top: 0; bottom: 0;
  background: rgba(36,54,73, 0.80);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeInCookieModal 0.3s ease;
}
@keyframes fadeInCookieModal {
  0% { opacity: 0; }
  100% { opacity: 1; }
}
.cookie-modal .cookie-modal-content {
  background: var(--white);
  border-radius: 22px;
  padding: 30px 28px 24px 28px;
  min-width: 280px;
  max-width: 400px;
  box-shadow: 0 8px 32px 0 rgba(140,106,77,0.14);
  position: relative;
  animation: popCookieModal 0.4s cubic-bezier(.6,.14,.2,1.23);
  display: flex;
  flex-direction: column;
  gap: 18px;
}
@keyframes popCookieModal {
  0% { transform: scale(0.88); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}
.cookie-modal .cookie-modal-close {
  position: absolute;
  top: 14px; right: 16px;
  font-size: 1.7rem;
  background: var(--accent);
  color: var(--secondary);
  border: none;
  border-radius: 50%;
  width: 34px;
  height: 34px;
  box-shadow: 0 2px 8px -2px rgba(140,106,77,0.12);
  cursor: pointer;
  transition: background 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cookie-modal .cookie-modal-close:hover,
.cookie-modal .cookie-modal-close:focus {
  background: var(--highlight);
  color: var(--primary);
}
.cookie-modal h3 {
  font-size: 1.2rem;
  color: var(--orange);
  margin-bottom: 12px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 1rem;
  margin: 6px 0;
}
.cookie-toggle {
  appearance: none;
  width: 40px;
  height: 18px;
  background: #eee;
  border-radius: 11px;
  position: relative;
  outline: none;
  cursor: pointer;
  transition: background 0.15s;
  border: 1.5px solid #eff2f5;
}
.cookie-toggle:checked {
  background: var(--orange);
  border-color: var(--orange);
}
.cookie-toggle::after {
  content: '';
  position: absolute;
  left: 3px; top: 2px;
  width: 14px; height: 14px;
  background: var(--white);
  border-radius: 50%;
  transition: transform 0.21s;
  box-shadow: 0 1px 2px 0 rgba(255,133,82,0.11);
}
.cookie-toggle:checked::after {
  transform: translateX(20px);
}
.cookie-modal .cookie-btn {
  margin: 18px 0 0 0;
  font-size: 1.09rem;
}

/* Responsive Styles (mobile-first) */
@media (max-width: 1200px) {
  .container {
    max-width: 920px;
  }
}
@media (max-width: 990px) {
  .container {
    max-width: 98vw;
  }
  .content-wrapper ul,
  .content-wrapper ol {
    gap: 16px;
  }
}
@media (max-width: 880px) {
  header .container {
    padding: 0 8px;
  }
  main section {
    padding: 36px 12px;
  }
  .content-wrapper ul li, .content-wrapper ol li {
    min-width: 175px;
    font-size: 0.97rem;
    padding: 17px 10px;
  }
}
@media (max-width: 768px) {
  /* Responsive navigation */
  header nav,
  header .cta-btn {
    display: none;
  }
  header .mobile-menu-toggle {
    display: flex;
  }
  .mobile-menu {
    display: none;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
  }
  main section, footer {
    padding-left: 0;
    padding-right: 0;
  }
  .container {
    padding: 0 6px;
  }
  .section {
    padding: 26px 6px;
    margin-bottom: 38px;
  }
  .text-image-section {
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
  }
  .content-wrapper,
  .card-container,
  .content-grid {
    flex-direction: column;
    gap: 13px;
  }
  .project-summary, .card, .testimonial-card {
    min-width: 0;
    width: 100%;
    border-radius: 13px;
    padding: 16px 10px;
  }
  h1 {font-size: 2.0rem}
  h2 {font-size: 1.38rem}
  h3 {font-size: 1.05rem}
}
@media (max-width: 490px) {
  header img {height: 36px;}
  h1 {font-size: 1.35rem}
  h2 {font-size: 1.17rem}
  .cta-btn {font-size: 1rem; padding: 10px 13px;}
  .container {padding: 0 4px;}
}

/* --- UTILITY CLASSES --- */
.visible { display: flex !important; }
.hide { display: none !important; opacity: 0 !important; }

/* Scrollbar styling (playful touch) */
::-webkit-scrollbar {
  width: 10px;
  background: var(--gray-bg);
}
::-webkit-scrollbar-thumb {
  background: var(--highlight);
  border-radius: 8px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--orange);
}

/* SELECTION COLOR for playful accent */
::selection {
  background: var(--highlight);
  color: var(--primary);
}

/* ACCORDION, if needed in content */
.accordion {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.accordion-item {
  border-radius: 14px;
  background: var(--white);
  box-shadow: 0 1px 7px -2px rgba(255,220,78,0.05);
  transition: box-shadow 0.13s;
}
.accordion-item.active {
  box-shadow: 0 8px 24px -4px rgba(89,213,226,0.15);
}

/* Misc playful deco */
[data-bounce] {
  animation: bounce 2.7s infinite alternate cubic-bezier(.56,.01,.21,1.04);
}
@keyframes bounce {
  0% { transform: translateY(0); }
  20% { transform: translateY(-8px); }
  70% { transform: translateY(2px); }
  100% { transform: translateY(0); }
}
section {
  padding: 20px 0;
}