/* =====================
   RESET & BASE STYLES
====================== */
html {
  box-sizing: border-box;
  font-size: 16px;
  scroll-behavior: smooth;
}
*, *:before, *:after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
  border: 0;
}
body {
  font-family: 'Lato', Arial, Helvetica, sans-serif;
  background: #F6F6F4;
  color: #233140;
  line-height: 1.7;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  color: #233140;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: 0.01em;
}
h1 {
  font-size: 2.5rem;
  line-height: 1.2;
  margin-bottom: 20px;
}
h2 {
  font-size: 2rem;
  margin-bottom: 18px;
  line-height: 1.25;
}
h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
  line-height: 1.28;
}
p, ul, ol {
  font-size: 1rem;
  margin-bottom: 16px;
}
ul, ol {
  padding-left: 22px;
}
li {
  margin-bottom: 9px;
}
a {
  color: #9FA376;
  text-decoration: none;
  transition: color 0.22s cubic-bezier(.55,.06,.68,.19);
}
a:hover, a:focus {
  color: #233140;
  text-decoration: underline;
}
img {
  display: inline-block;
  max-width: 100%;
  height: auto;
}
strong {
  font-weight: bold;
}
:focus {
  outline: 2px dotted #9FA376;
  outline-offset: 2px;
}
::-webkit-input-placeholder { color: #838383; }
::-moz-placeholder { color: #838383; }
:-ms-input-placeholder { color: #838383; }
::placeholder { color: #838383; }

/* ================
   COLOR VARIABLES
================== */
:root {
  --primary: #233140;
  --secondary: #e1ded9;
  --accent: #9fa376;
  --surface: #fff;
  --art-orange: #e76c34;
  --art-purple: #6e4fcc;
  --art-blue: #417ae0;
  --art-pink: #ffb0b9;
  --danger: #bf2f3c;
  --success: #259c63;
}

/* =============
   CONTAINER
============== */
.container {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 1240px;
  padding: 0 22px;
  margin: 0 auto;
}

/* ===============
   HEADER & NAV
================ */
header {
  background: var(--surface);
  box-shadow: 0 2px 14px 0 rgba(35,49,64,0.05);
  border-bottom: 3px solid var(--accent);
  position: sticky;
  top: 0;
  z-index: 100;
}
.logo {
  height: 54px;
  width: auto;
  margin: 10px 0;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 84px;
}
.main-nav {
  display: flex;
  gap: 20px;
  align-items: center;
  flex-wrap: wrap;
}
.main-nav a {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 1rem;
  padding: 5px 2px;
  color: var(--primary);
  position: relative;
  letter-spacing: 0.02em;
}
.main-nav a::after {
  content: '';
  display: block;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.3s ease;
  margin-top: 3px;
}
.main-nav a:hover::after,
.main-nav a:focus::after {
  width: 100%;
}
.cta-nav {
  margin-left: 24px;
  padding: 11px 26px;
  background: var(--art-orange);
  color: #fff;
  border-radius: 22px;
  font-family: 'Montserrat', sans-serif;
  font-size: 1rem;
  font-weight: 800;
  box-shadow: 0 2px 8px 0 rgba(145, 39, 10, 0.06);
  transition: background 0.2s;
  border: 2px solid transparent;
}
.cta-nav:hover, .cta-nav:focus {
  background: var(--art-purple);
  color: #fff;
  border-color: var(--accent);
  text-decoration: none;
}
.mobile-menu-toggle {
  display: none;
  background: var(--art-orange);
  color: #fff;
  font-size: 2rem;
  border-radius: 8px;
  width: 46px;
  height: 46px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: 0;
  transition: background 0.21s;
  margin-left: 12px;
}
.mobile-menu-toggle:active,
.mobile-menu-toggle:focus {
  background: var(--art-blue);
}

/* ===============
   MOBILE MENU
================ */
.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: 340px;
  max-width: 100vw;
  height: 100vh;
  background: var(--surface);
  box-shadow: -2px 0 38px 0 rgba(110,79,204,0.13);
  z-index: 201;
  transform: translateX(100%);
  transition: transform 0.42s cubic-bezier(.55,.06,.55,.9);
  display: flex;
  flex-direction: column;
  padding: 38px 30px 30px 30px;
  gap: 22px;
  opacity: 0;
  pointer-events: none;
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu-close {
  background: transparent;
  border: 0;
  color: var(--primary);
  font-size: 2.1rem;
  align-self: flex-end;
  cursor: pointer;
  padding: 3px 8px;
  border-radius: 8px;
  transition: background 0.18s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: var(--accent);
  color: #fff;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.mobile-nav a {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.10rem;
  color: var(--primary);
  font-weight: 700;
  padding: 13px 6px;
  border-radius: 10px;
  transition: background 0.22s, color 0.22s;
}
.mobile-nav a:hover,
.mobile-nav a:focus {
  background: var(--accent);
  color: #fff;
}

/* Hamburger & menu visibility rules */
@media (max-width: 970px) {
  .main-nav { display: none; }
  .cta-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
}

/* Hide mobile menu on desktop */
@media (min-width: 971px) {
  .mobile-menu {
    display: none !important;
  }
}

/* ================
   SECTION LAYOUTS
================== */
section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.hero {
  background: linear-gradient(92deg, var(--art-pink) 0%, var(--secondary) 70%);
  border-radius: 0 0 38px 38px;
  box-shadow: 0 16px 44px 0 rgba(233,121,68,0.09);
  position: relative;
  overflow: hidden;
}
.hero .content-wrapper {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  align-items: flex-start;
  min-height: 280px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-start;
}

/* =============
   ART-FULL BUTTONS
=============== */
.cta-main {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(99deg, var(--art-orange) 60%, var(--art-purple) 100%);
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  font-size: 1.15rem;
  font-weight: 800;
  padding: 15px 38px;
  border-radius: 32px 32px 16px 16px;
  letter-spacing: 0.02em;
  margin-top: 10px;
  box-shadow: 0 3px 24px -2px rgba(110, 79, 204, 0.16);
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.22s, transform 0.22s;
}
.cta-main:hover, .cta-main:focus {
  background: linear-gradient(81deg, var(--art-purple) 50%, var(--art-orange) 100%);
  color: #fff;
  transform: translateY(-2px) scale(1.045);
  border-color: var(--accent);
  text-decoration: none;
}

/* ================
   FLEX CONTAINERS
================== */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  background: var(--surface);
  border-radius: 24px;
  box-shadow: 0 3px 14px 0 rgba(68,76,82,0.05);
  position: relative;
  min-width: 295px;
  max-width: 390px;
  flex: 1 1 300px;
  display: flex;
  flex-direction: column;
  padding: 28px 24px;
  transition: box-shadow 0.21s, transform 0.22s;
}
.card:hover, .card:focus-within {
  box-shadow: 0 8px 28px 0 rgba(157,163,90,0.12);
  transform: translateY(-3px) scale(1.03) rotate(-1deg);
  z-index: 2;
}

.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: flex-start;
  gap: 20px;
  padding: 20px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 3px 14px 0 rgba(35,49,64,0.08);
  max-width: 570px;
  margin-bottom: 24px;
  border-left: 6px solid var(--art-purple);
  transition: box-shadow 0.17s, border-color 0.26s;
}
.testimonial-card:hover {
  border-color: var(--art-orange);
  box-shadow: 0 8px 24px -2px var(--art-orange)25, 0 2px 12px var(--art-purple)06;
}
.testimonial-card p {
  color: #1B1D21;
  font-style: italic;
  font-family: 'Lato', sans-serif;
  font-size: 1.10rem;
}
.testimonial-card span {
  font-size: 0.97rem;
  color: var(--accent);
  font-family: 'Montserrat', sans-serif;
  letter-spacing: 0.02em;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

ul.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  list-style: none;
  justify-content: flex-start;
}
ul.feature-grid li {
  background: var(--surface);
  border-radius: 16px;
  box-shadow: 0 3px 12px 0 rgba(68,76,82,0.06);
  flex: 1 1 185px;
  min-width: 225px;
  max-width: 340px;
  padding: 26px 18px 22px 22px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 20px;
  transition: box-shadow 0.19s, border-color 0.23s;
  border-left: 5px solid var(--art-blue);
}
ul.feature-grid li:hover {
  box-shadow: 0 7px 22px 0 rgba(110, 79, 204, 0.16);
  border-left: 5px solid var(--art-orange);
  z-index: 2;
}
ul.feature-grid img {
  width: 44px;
  height: 44px;
  margin-bottom: 12px;
}
ul.feature-grid h3 {
  font-size: 1.15rem;
  color: var(--art-purple);
}
ul.feature-grid p {
  color: #3e434c;
}

ul.contact-info {
  display: flex;
  flex-direction: column;
  gap: 14px;
  list-style: none;
  font-size: 1.07rem;
  margin-bottom: 22px;
}
ul.contact-info li {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #5a5a67;
}
ul.contact-info img {
  width: 28px;
  height: 28px;
  margin-right: 7px;
}

.project-highlight {
  background: var(--art-pink);
  border-radius: 18px;
  padding: 24px 22px 20px;
  margin-bottom: 20px;
  box-shadow: 0 3px 14px 0 rgba(255,176,185,0.13);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.project-highlight h3 {
  color: var(--art-orange);
}

.search-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 10px 0 rgba(110,79,204,0.03);
  padding: 10px;
  margin-bottom: 18px;
}
.search-bar img {
  width: 25px;
  height: 25px;
}
.search-bar input {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 1rem;
  font-family: 'Lato', Arial, sans-serif;
  color: #233140;
  padding: 6px 4px;
}
.blog-list {
  display: flex;
  flex-direction: column;
  gap: 22px;
  list-style: none;
  margin-bottom: 12px;
}
.blog-list li {
  background: var(--surface);
  box-shadow: 0 2px 7px 0 rgba(110,79,204,0.07);
  border-radius: 15px 15px 8px 8px;
  padding: 15px 19px;
  transition: box-shadow 0.22s;
}
.blog-list li:hover {
  box-shadow: 0 5px 18px 0 rgba(110,79,204,0.16);
  z-index: 2;
}
.blog-category {
  font-size: 0.92rem;
  background: var(--accent);
  color: #fff;
  border-radius: 10px;
  padding: 2px 15px;
  margin-left: 8px;
  font-family: 'Montserrat',sans-serif;
  font-style: italic;
  letter-spacing: 0.03em;
}

/* =============
   FOOTER
============== */
footer {
  background: var(--secondary);
  padding: 38px 0 18px;
  border-top: 3px solid var(--accent);
}
footer .container {
  flex-direction: row;
  gap: 30px;
  align-items: flex-start;
  justify-content: space-between;
}
.footer-left {
  max-width: 250px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-left img {
  width: 54px;
  height: auto;
  margin-bottom: 8px;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-nav a {
  color: var(--primary);
  font-size: 1rem;
  margin-bottom: 2px;
  transition: color 0.21s;
}
.footer-nav a:hover {
  color: var(--art-orange);
}
.footer-contact ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
  list-style: none;
}
.footer-contact li {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #384852;
  font-size: 1rem;
}
.footer-contact img {
  width: 24px;
  height: 24px;
}
@media (max-width: 900px) {
  footer .container {
    flex-direction: column;
    align-items: flex-start;
    gap: 26px;
  }
}

/* =============
   COOKIE BANNER
============== */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  background: #fff;
  border-top: 2px solid var(--accent);
  box-shadow: 0 -2px 18px 0 rgba(110,79,204,0.07);
  z-index: 9999;
  display: flex;
  flex-direction: row;
  gap: 18px;
  align-items: center;
  justify-content: center;
  padding: 26px 16px 24px 16px;
  font-family: 'Lato', sans-serif;
  font-size: 1.02rem;
  animation: cookie-banner-in 0.55s cubic-bezier(0.49,0.33,.54,0.98);
}
.cookie-banner button {
  margin-left: 13px;
  padding: 9px 22px;
  border-radius: 9px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: background 0.19s, color 0.19s;
}
.cookie-banner .accept {
  background: var(--art-orange);
  color: #fff;
}
.cookie-banner .accept:hover {
  background: var(--art-purple);
  color: #fff;
}
.cookie-banner .reject {
  background: var(--danger);
  color: #fff;
}
.cookie-banner .reject:hover {
  background: #232233;
}
.cookie-banner .settings {
  background: var(--surface);
  color: var(--primary);
  border: 2px solid var(--accent);
}
.cookie-banner .settings:hover {
  background: var(--accent);
  color: #fff;
}
@media (max-width: 650px) {
  .cookie-banner {
    flex-direction: column;
    align-items: stretch;
    gap: 9px;
    padding: 16px 6px 16px 6px;
    font-size: 1rem;
  }
  .cookie-banner button {
    margin-left: 0;
    margin-top: 5px;
    width: 100%;
  }
}
@keyframes cookie-banner-in {
  from { transform: translateY(100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* =============
   COOKIE MODAL
============== */
.cookie-modal {
  display: none;
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%,-50%) scale(0.96);
  background: #fff;
  border-radius: 20px;
  padding: 42px 38px 38px 38px;
  z-index: 10900;
  box-shadow: 0 7px 31px 4px rgba(110,79,204,0.21);
  min-width: 320px;
  max-width: 92vw;
  min-height: 320px;
  animation: cookie-modal-in 0.33s cubic-bezier(0.48,0.63,0.31,1.01);
}
.cookie-modal.open {
  display: flex;
  flex-direction: column;
  gap: 22px;
  align-items: flex-start;
}
.cookie-modal h2 {
  color: var(--primary);
  font-size: 1.35rem;
  margin-bottom: 8px;
}
.cookie-modal .category {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 1rem;
  margin-bottom: 14px;
}
.cookie-modal .toggle {
  padding: 0 12px;
  accent-color: var(--accent);
  width: 22px;
  height: 22px;
}
.cookie-modal .essential {
  font-weight: 700;
  color: var(--art-blue);
}
.cookie-modal .actions {
  display: flex;
  flex-direction: row;
  gap: 10px;
  margin-top: 8px;
}
.cookie-modal .actions button {
  padding: 9px 22px;
  font-size: 1rem;
  border-radius: 9px;
  border: 0;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  cursor: pointer;
  background: var(--accent);
  color: #fff;
  margin: 0;
  transition: background 0.19s, color 0.19s;
}
.cookie-modal .actions button:hover {
  background: var(--art-orange);
  color: #fff;
}
.cookie-modal .close-modal {
  position: absolute;
  right: 25px;
  top: 18px;
  font-size: 1.5rem;
  background: transparent;
  color: var(--primary);
  border: none;
  cursor: pointer;
  padding: 2px 8px;
  border-radius: 8px;
  transition: background 0.12s;
}
.cookie-modal .close-modal:hover {
  background: var(--accent);
  color: #fff;
}
@keyframes cookie-modal-in {
  from { transform: translate(-50%,30%) scale(0.92); opacity: 0; }
  to { transform: translate(-50%,-50%) scale(1); opacity: 1; }
}

/* ===============================
  RESPONSIVE FLEX & LAYOUT ADJUSTMENTS
=============================== */
@media (max-width: 1100px) {
  .container {
    max-width: 100vw;
    padding: 0 13px;
  }
}
@media (max-width: 850px) {
  section {
    padding: 36px 7px;
  }
}
@media (max-width: 768px) {
  .hero .container,
  .container {
    padding: 0 6vw;
  }
  .content-wrapper {
    gap: 15px;
  }
  .footer-contact ul,
  ul.feature-grid {
    gap: 14px;
  }
  .footer-nav {
    gap: 9px;
  }
  .content-grid,
  .card-container {
    gap: 14px;
  }
  .card {
    padding: 16px 10px;
    min-width: 185px;
    max-width: 99vw;
  }
  .hero {
    padding: 32px 4vw 48px 4vw;
  }
  ul.feature-grid li {
    padding: 16px 10px;
    min-width: 165px;
    max-width: 98vw;
  }
}
@media (max-width: 650px) {
  header .container {
    padding: 0 7px;
    flex-direction: row;
    gap: 11px;
  }
  .logo {
    height: 39px;
  }
  h1 {
    font-size: 2rem;
  }
  h2 {
    font-size: 1.35rem;
  }
  .testimonial-card {
    padding: 13px;
    font-size: 1rem;
  }
  .cookie-modal {
    min-width: 96vw;
    padding: 18px 6px 24px 11px;
  }
}
@media (max-width: 540px) {
  .content-wrapper, .hero .content-wrapper {
    gap: 7px;
  }
  ul.feature-grid {
    gap: 8px;
    flex-direction: column;
    align-items: stretch;
  }
  .footer-left {
    max-width: 99vw;
  }
}
@media (max-width: 480px) {
  h1 {
    font-size: 1.38rem;
  }
  .hero {
    padding: 20px 0 28px 0;
    border-radius: 0 0 18px 18px;
  }
}

/* ============== 
  FLEX ALIGNMENT CLASSES
=================== */
.align-center {
  align-items: center !important;
}
.justify-center {
  justify-content: center !important;
}
.align-start {
  align-items: flex-start !important;
}
.flex-row {
  flex-direction: row !important;
}
.flex-col {
  flex-direction: column !important;
}

/* ===================
   MICRO-INTERACTIONS
==================== */
.card, ul.feature-grid li, .blog-list li, .testimonial-card {
  transition: box-shadow 0.18s, border-color 0.18s, transform 0.18s;
}
.card:active, ul.feature-grid li:active, .blog-list li:active, .testimonial-card:active {
  transform: scale(0.98);
}
input, button, select, textarea {
  transition: border 0.19s, box-shadow 0.19s;
}

/* ==========
   ARTISTIC TOUCHES
 =========== */
.hero::before {
  content: '';
  display: block;
  position: absolute;
  top: -44px;
  right: -62px;
  width: 160px;
  height: 160px;
  background: var(--art-orange);
  opacity: 0.15;
  border-radius: 60% 80% 80% 60%;
  z-index: 0;
  pointer-events: none;
  filter: blur(12px);
}
.hero::after {
  content: '';
  display: block;
  position: absolute;
  left: -80px;
  bottom: -34px;
  width: 190px;
  height: 130px;
  background: var(--art-purple);
  opacity: 0.12;
  border-radius: 70% 30% 60% 90%;
  z-index: 0;
  pointer-events: none;
  filter: blur(13px);
}
.blog-category {
  box-shadow: 0 2px 9px 0 rgba(110,79,204,0.10);
}
.cta-main, .cta-nav {
  letter-spacing: 0.03em;
  box-shadow: 0 3px 13px 0 rgba(157,163,90,0.09);
}

/* ================
   PRINT OPTIMIZATION
================== */
@media print {
  body, section, header, footer, .container {
    background: #fff !important;
    color: #000 !important;
    box-shadow: none !important;
    border: 0 !important;
  }
  .hero, .cta-main, .cookie-banner, .mobile-menu { display: none !important; }
}

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