/* ==== 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;
}

article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section {
  display: block;
}

ol, ul {
  list-style: none;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.22s;
}

img {
  max-width: 100%;
  display: block;
}

/* ==== VARIABLE AND FALLBACKS ==== */
:root {
  --primary: #2A335E;
  --secondary: #F3F5F9;
  --accent: #EC8E26;
  --danger: #D32F2F;
  --success: #5CB85C;
  --neutral-800: #212121;
  --neutral-600: #474D5D;
  --neutral-400: #888C9C;
  --white: #fff;
  --radius: 18px;
  --shadow-m: 0 2px 12px rgba(44,44,78,0.10), 0 1px 3px rgba(44,44,78,0.03);
  --shadow-xs: 0 1px 6px rgba(44,44,78,0.05);
  --shadow-xl: 0 10px 55px 0 rgba(44,44,78,0.12);
  --transition: .28s cubic-bezier(.77,.2,.05,1);
  --font-display: 'Montserrat', Arial, sans-serif;
  --font-body: 'Roboto', Arial, sans-serif;
  --font-creative: 'Montserrat', 'Roboto', Arial, sans-serif;
}

body {
  font-family: var(--font-body), Arial, sans-serif;
  background: var(--secondary);
  color: var(--primary);
  line-height: 1.64;
  min-height: 100vh;
  font-size: 16px;
  letter-spacing: .02em;
  overflow-x: hidden;
}

.container {
  width: 100%;
  max-width: 1192px;
  margin: 0 auto;
  padding: 0 18px;
  position: relative;
  z-index: 1;
}

/* ==== HEADER ==== */
header {
  background: var(--white);
  box-shadow: 0 1px 14px rgba(44,44,78,0.06);
  padding: 0;
  position: relative;
  z-index: 50;
}
header .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  min-height: 80px;
  gap: 12px;
}
.logo img {
  height: 44px;
  width: auto;
  display: block;
}
.main-nav {
  display: flex;
  gap: 24px;
  align-items: center;
}
.main-nav a {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 17px;
  padding: 12px 4px;
  border-radius: 9px;
  color: var(--primary);
  position: relative;
  transition: background var(--transition), color var(--transition);
}
.main-nav a:hover, .main-nav a:focus {
  background: var(--accent);
  color: var(--white);
}
.btn-primary {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  padding: 13px 28px;
  background: var(--accent);
  color: var(--white) !important;
  border: none;
  border-radius: var(--radius);
  box-shadow: var(--shadow-xs);
  cursor: pointer;
  display: inline-block;
  margin-left: 18px;
  transition: background var(--transition), box-shadow var(--transition), transform .16s;
  outline: none;
  position: relative;
}
.btn-primary:active {
  transform: scale(.97);
}
.btn-primary:hover,.btn-primary:focus {
  background: var(--primary);
  color: var(--white) !important;
  box-shadow: 0 4px 18px rgba(236,142,38,.13);
}

/mobile menu burger button/
.mobile-menu-toggle {
  display: none;
  font-size: 36px;
  background: transparent;
  border: none;
  color: var(--accent);
  cursor: pointer;
  margin-left: 8px;
  padding: 6px 11px;
  border-radius: 12px;
  transition: background .18s;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: var(--accent);
  color: var(--white);
}

/* ==== MOBILE MENU ==== */
.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(42,51,94,0.96);
  box-shadow: var(--shadow-xl);
  z-index: 101;
  transform: translateX(100%);
  transition: transform var(--transition);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  padding-top: 0;
  gap: 0;
  opacity: 0;
  pointer-events: none;
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu-close {
  font-size: 34px;
  background: transparent;
  color: var(--accent);
  border: none;
  cursor: pointer;
  margin: 23px 26px 0 0;
  padding: 10px 14px;
  border-radius: 12px;
  transition: background .18s;
  align-self: flex-end;
}
.mobile-menu-close:focus, .mobile-menu-close:hover {
  background: var(--accent);
  color: var(--white);
}
.mobile-nav {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 14px;
  margin-top: 32px;
  padding: 0 32px;
}
.mobile-nav a {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--white);
  padding: 16px 0 16px 0;
  border-bottom: 1px solid rgba(236,142,38,0.09);
  transition: color .18s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: var(--accent);
  background: none;
}

@media (max-width: 980px) {
  .main-nav {
    display: none;
  }
  .btn-primary {
    margin-left: 0;
  }
  .mobile-menu-toggle {
    display: block;
  }
}

/* ==== HERO SECTIONS ==== */
.hero {
  background: linear-gradient(92deg, #F7B992 15%, #F3F5F9 40%, #e0e8fc 95%);
  position: relative;
  min-height: 390px;
  display: flex;
  align-items: center;
  overflow: hidden;
  z-index: 1;
}
.hero .container {
  min-height: 340px;
  display: flex;
  align-items: center;
  justify-content: left;
}
.hero .content-wrapper {
  max-width: 620px;
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding-bottom: 18px;
}
.hero h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2.2rem;
  color: var(--primary);
  margin-bottom: 12px;
  letter-spacing: -0.018em;
  line-height: 1.15;
}
.hero p {
  font-size: 1.15rem;
  color: var(--neutral-600);
  margin-bottom: 8px;
}

/* ==== SECTION SPACING ==== */
.section, section {
  margin-bottom: 60px;
  padding: 40px 20px;
  position: relative;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 26px;
  align-items: flex-start;
}

/* ==== FEATURES ==== */
.features {
  background: var(--secondary);
}
.features .content-wrapper > h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 12px;
}
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  margin-top: 20px;
  width: 100%;
}
.feature-grid li {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-m);
  padding: 28px 22px 26px 22px;
  min-width: 245px;
  max-width: 295px;
  flex: 1 1 245px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-height: 180px;
  align-items: flex-start;
  border-left: 5px solid var(--accent);
  transition: box-shadow .18s, transform .13s;
  margin-bottom: 20px;
  position: relative;
}
.feature-grid li img {
  width: 39px;
  height: 39px;
  margin-bottom: 10px;
}
.feature-grid li h3 {
  font-family: var(--font-display);
  font-size: 1.19rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 7px;
  letter-spacing: -0.011em;
}
.feature-grid li p {
  color: var(--neutral-600);
  font-size: 1.03rem;
}
.feature-grid li:hover, .feature-grid li:focus-within {
  box-shadow: 0 4px 26px rgba(42,51,94,0.14);
  transform: translateY(-4px) scale(1.02) rotate(-0.2deg);
}

/* ==== SERVICES ==== */
.services {
  background: var(--white);
}
.service-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
  margin-bottom: 40px;
}
.service-card {
  flex: 1 1 260px;
  background: var(--secondary);
  border-radius: var(--radius);
  box-shadow: var(--shadow-xs);
  padding: 22px 19px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: box-shadow .18s, transform .13s;
}
.service-card:hover, .service-card:focus-within {
  box-shadow: 0 3px 15px rgba(44,44,78,0.13);
  transform: translateY(-2px) scale(1.01);
}
.service-card h3 {
  font-family: var(--font-display);
  font-size: 1.03rem;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 6px;
}
.service-card p {
  color: var(--primary);
  font-size: 1rem;
}

.pricing-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1em;
  background: var(--secondary);
  border-radius: var(--radius);
  overflow: hidden;
  font-size: 1rem;
  box-shadow: 0 1px 9px rgba(44,44,78,0.06);
}
.pricing-table th, .pricing-table td {
  padding: 15px 18px;
  text-align: left;
}
.pricing-table th {
  background: var(--primary);
  color: var(--white);
  font-family: var(--font-display);
  font-size: 1.04rem;
  font-weight: 700;
}
.pricing-table td {
  background: var(--white);
  color: var(--neutral-800);
  border-bottom: 1px solid var(--secondary);
}
.pricing-table tr:last-child td {
  border-bottom: none;
}

/* ==== ABOUT, CTA, LEGAL SECTIONS ==== */
.text-section {
  display: flex;
  flex-direction: column;
  gap: 15px;
  align-items: flex-start;
}
.cta {
  background: var(--primary);
  color: var(--white);
  border-radius: var(--radius);
  box-shadow: 0 4px 19px rgba(42, 51, 94, 0.10);
  padding: 35px 24px;
}
.cta h2 {
  color: var(--accent);
  font-size: 2rem;
  font-family: var(--font-display);
  font-weight: 800;
  margin-bottom: 13px;
}
.cta p {
  font-size: 1.08rem;
  margin-bottom: 24px;
  color: var(--secondary);
}
.cta .btn-primary {
  background: var(--accent);
  color: var(--primary);
  margin-top: 12px;
}
.cta .btn-primary:hover,.cta .btn-primary:focus {
  background: var(--white);
  color: var(--accent) !important;
}

.legal h1, .legal h2 {
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--primary);
}
.legal h1 {
  font-size: 2.1rem;
  margin-bottom: 17px;
}
.legal h2 {
  font-size: 1.25rem;
  margin-top: 18px;
  margin-bottom: 6px;
}
.legal ul, .about ul, .features ul:not(.feature-grid) {
  margin-top: 13px;
  margin-bottom: 16px;
  padding-left: 22px;
  list-style: disc inside;
}
.legal li, .about li, .features ul:not(.feature-grid) li {
  margin-bottom: 7px;
  color: var(--neutral-800);
  font-size: 1rem;
}

/* ==== TESTIMONIALS ==== */
.testimonials .content-wrapper > h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 17px;
  font-weight: 700;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  background: var(--white);
  border-radius: var(--radius);
  padding: 20px 26px 15px 26px;
  margin-bottom: 26px;
  box-shadow: var(--shadow-m);
  border-left: 4px solid var(--accent);
  min-width: 210px;
  max-width: 640px;
  font-size: 1.09rem;
  transition: box-shadow .17s;
  position: relative;
}
.testimonial-card:hover, .testimonial-card:focus-within {
  box-shadow: 0 6px 24px 0 rgba(44,44,78,0.13);
}
.testimonial-card p {
  color: var(--primary);
  font-style: italic;
  font-size: 1.11rem;
}
.testimonial-details {
  color: var(--neutral-400);
  font-size: 0.95rem;
  font-family: var(--font-body);
}
.star-rating {
  color: var(--accent);
  font-size: 1.35rem;
  font-family: var(--font-display);
  letter-spacing: 2px;
  margin-top: -3px;
}

/* == CONTACT PAGE == */
.contact-info ul {
  display: flex;
  flex-direction: column;
  gap: 11px;
  list-style: none;
  margin-top: 16px;
}
.contact-info li {
  font-size: 1.1rem;
}
.form-cta .btn-primary {
  margin-top: 17px;
}

/* == FOOTER == */
footer {
  background: var(--primary);
  color: var(--secondary);
  padding: 38px 0 25px 0;
  border-radius: 30px 30px 0 0;
  box-shadow: 0 -2px 19px rgba(42,51,94,.09);
  font-size: 0.98rem;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin-bottom: 27px;
  font-family: var(--font-display);
  font-size: 1.08rem;
}
.footer-nav a {
  color: var(--secondary);
  border-bottom: 1px dashed var(--accent);
  padding-bottom: 2px;
  transition: color .17s;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: var(--accent);
}

.footer-brand {
  display: flex;
  flex-direction: row;
  gap: 25px;
  align-items: flex-start;
  margin-top: 9px;
}
.footer-brand img {
  width: 58px;
  height: 58px;
}
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 5px;
  color: var(--secondary);
  font-size: 1rem;
}
.footer-contact a {
  color: var(--accent);
  text-decoration: underline;
  transition: color .16s;
}
.footer-contact a:hover, .footer-contact a:focus {
  color: var(--white);
}

/* === CARDS AND FLEX LAYOUTS === */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-m);
  padding: 21px 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: box-shadow .15s, transform .14s;
}
.card:hover, .card:focus-within {
  box-shadow: 0 4px 22px rgba(44,44,78,0.14);
  transform: translateY(-3px) scale(1.01);
}

.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;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* ==== COOKIE CONSENT BANNER ==== */
#cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 120;
  background: var(--white);
  color: var(--primary);
  box-shadow: 0 -2px 16px rgba(44,44,78,0.15);
  padding: 18px 16px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  justify-content: center;
  font-size: 1rem;
  transform: translateY(100%);
  opacity: 0;
  pointer-events: none;
  border-radius: 20px 20px 0 0;
  transition: transform .45s cubic-bezier(.65,0,.35,1), opacity .21s;
}
#cookie-banner.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
#cookie-banner .btn-primary,
#cookie-banner .btn-reject,
#cookie-banner .btn-settings {
  font-family: var(--font-display);
  font-size: 1rem;
  padding: 9px 22px;
  border-radius: 13px;
  margin-left: 13px;
  border: none;
  box-shadow: var(--shadow-xs);
  outline: none;
  cursor: pointer;
  transition: background .16s, color .16s;
}
#cookie-banner .btn-primary {
  background: var(--accent);
  color: var(--white);
}
#cookie-banner .btn-primary:hover, #cookie-banner .btn-primary:focus { background: var(--primary); }
#cookie-banner .btn-settings {
  background: none;
  color: var(--accent);
  border: 2px solid var(--accent);
  margin-left: 0;
  margin-right: 10px;
}
#cookie-banner .btn-settings:hover, #cookie-banner .btn-settings:focus { background: var(--accent); color: var(--white); }
#cookie-banner .btn-reject {
  background: none;
  color: var(--danger);
  border: 2px solid var(--danger);
}
#cookie-banner .btn-reject:hover, #cookie-banner .btn-reject:focus { background: var(--danger); color: var(--white); }

/* ==== COOKIE CONSENT MODAL ==== */
#cookie-modal {
  position: fixed;
  z-index: 130;
  left: 0; top: 0; right: 0; bottom: 0;
  background: rgba(42,51,94,0.70);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .28s;
}
#cookie-modal.visible {
  opacity: 1;
  pointer-events: auto;
}
#cookie-modal .modal-content {
  background: var(--white);
  color: var(--primary);
  border-radius: 14px;
  max-width: 468px;
  min-width: 320px;
  padding: 32px 30px 20px 30px;
  box-shadow: 0 2px 28px rgba(44,44,78,0.25);
  display: flex;
  flex-direction: column;
  gap: 19px;
  position: relative;
}
#cookie-modal .close-modal {
  position: absolute;
  right: 24px; top: 20px;
  background: none;
  border: none;
  color: var(--accent);
  font-size: 2rem;
  cursor: pointer;
  padding: 7px 15px;
  border-radius: 7px;
  transition: background .16s;
}
#cookie-modal .close-modal:hover, #cookie-modal .close-modal:focus {
  background: var(--accent);
  color: var(--white);
}
#cookie-modal h2 {
  font-size: 1.36rem;
  font-family: var(--font-display);
  font-weight: 700;
  margin-bottom: 4px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 17px;
  margin-bottom: 12px;
}
.cookie-category label {
  font-size: 1.08rem;
  color: var(--primary);
  font-family: var(--font-body);
  font-weight: 500;
}
.cookie-toggle {
  width: 44px; height: 26px;
  border-radius: 12px;
  background: var(--secondary);
  position: relative;
  transition: background .17s;
}
.cookie-toggle input {
  display: none;
}
.cookie-slider {
  position: absolute;
  top: 2px; left: 2px;
  width: 22px; height: 22px;
  background: var(--accent);
  border-radius: 50%;
  transition: left .15s, background .15s;
}
/* When checked, move slider */
.cookie-toggle input:checked + .cookie-slider {
  left: 20px;
  background: var(--primary);
}
.cookie-category input[disabled] + .cookie-slider {
  background: #bbb;
  opacity: .51;
}
.cookie-category .category-label {
  font-size: 1.09rem;
}
#cookie-modal .modal-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 15px;
}

/* ==== TYPOGRAPHY ==== */
h1, .h1 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 2.1rem;
  line-height: 1.13;
  color: var(--primary);
  letter-spacing: -0.014em;
  margin-bottom: 13px;
}
h2, .h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.36rem;
  color: var(--primary);
  margin-bottom: 10px;
}
h3, .h3 {
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 6px;
}
strong {
  font-weight: 700;
  color: var(--accent);
}
em {
  color: var(--accent);
}

/* ==== UNIQUE/ARTISTIC ELEMENTS ==== */
section:not(.hero):not(.cta):not(footer) {
  background-image: url('../assets/artistic-bg.svg');
  background-repeat: no-repeat;
  background-size: 220px 120px;
  background-position: right bottom;
  /* Decorative svg, fallback is solid color if image missing */
}

/* Subtle colored brush for artistic section header -- simulated with a border/box-shadow */
.content-wrapper > h2, .text-section > h1 {
  position: relative;
}
.content-wrapper > h2::before, .text-section > h1::before {
  content: '';
  position: absolute;
  left: -14px; top: 60%;
  width: 42px;
  height: 15px;
  background: var(--accent);
  opacity: 0.13;
  border-radius: 16px;
  transform: rotate(-5deg) translateY(-55%);
  z-index: 0;
}

/* === TRANSITIONS/MICRO-INTERACTIONS === */
a, .btn-primary, .feature-grid li, .service-card,
.testimonial-card, .footer-nav a {
  transition: background .19s, color .19s, box-shadow .18s, transform .16s;
}

/* ==== MEDIA QUERIES / RESPONSIVE ==== */
@media (max-width: 1024px) {
  .container {
    max-width: 970px;
  }
  .footer-brand {
    flex-direction: column;
    gap: 10px;
  }
}
@media (max-width: 900px) {
  .hero .container {
    min-height: 220px;
  }
  .feature-grid, .service-cards, .card-container, .content-grid {
    gap: 15px;
  }
  .feature-grid li, .service-card {
    min-width: 185px;
    font-size: .98rem;
  }
}
@media (max-width: 768px) {
  .container {
    max-width: 97vw;
    padding: 0 11px;
  }
  .content-wrapper, .text-section, .footer-brand {
    gap: 17px;
  }
  .footer-nav {
    gap: 12px;
    font-size: .97rem;
  }
  .cta {
    padding: 27px 10px;
    border-radius: 14px;
  }
  .hero, .section, section {
    padding: 26px 3vw;
    margin-bottom: 24px;
    min-height: unset;
  }
  .hero h1 {
    font-size: 1.28rem;
  }
  .feature-grid, .service-cards, .card-container, .content-grid {
    flex-direction: column;
    gap: 13px;
  }
  .testimonial-card, .feature-grid li, .service-card {
    max-width: 100%;
    min-width: 0;
  }
  .text-image-section { flex-direction: column; }
}
@media (max-width: 417px) {
  .footer-brand img {
    width: 45px;
    height: 45px;
  }
}

/* ==== UTILITIES ==== */
.mt-2 { margin-top: 16px !important; }
.mt-4 { margin-top: 32px !important; }
.mb-2 { margin-bottom: 16px !important; }
.mb-4 { margin-bottom: 32px !important; }
.text-center { text-align: center !important; }
.text-accent { color: var(--accent) !important; }
.text-primary { color: var(--primary) !important; }

/* ==== SCROLLBAR FOR ARTISTIC TOUCH ==== */
body, .mobile-menu {
  scrollbar-color: var(--accent) var(--secondary);
  scrollbar-width: thin;
}
::-webkit-scrollbar { width: 10px; background: var(--secondary); }
::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 12px; }

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