/* ---------------------------------------------------
   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;
}
html {
  box-sizing: border-box;
  font-size: 16px;
  scroll-behavior: smooth;
}
*, *:before, *:after {
  box-sizing: inherit;
}
body {
  background: #F7F8FA;
  font-family: 'Open Sans', Arial, sans-serif;
  color: #234159;
  min-height: 100vh;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  letter-spacing: 0.01em;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
  border: 0;
}
a {
  color: #2953a2;
  text-decoration: none;
  transition: color .2s;
}
a:hover, a:focus {
  color: #f36909;
  outline: none;
}
ul, ol {
  margin-left: 22px;
}
ul { list-style: disc; }
ol { list-style: decimal; }


/* ----------------------------
   ROOT VARIABLES
---------------------------- */
:root {
  --color-primary: #234159;
  --color-primary-light: #386387;
  --color-secondary: #A3B5C9;
  --color-accent: #F7F8FA;
  --color-accent2: #f36909;
  --color-contrast: #192b38;
  --color-white: #fff;
  --color-light: #f0f5fc;
  --shadow-base: 0 2px 16px 0 rgba(35,65,89,0.10);
  --shadow-card: 0 4px 28px 0 rgba(60,100,150,0.11);
  --radius: 18px;
  --radius-card: 16px;
  --transition: .23s cubic-bezier(.65,.05,.36,1);
  --font-display: 'Merriweather', Georgia, serif;
  --font-body: 'Open Sans', Arial, sans-serif;
}

@supports (font-variation-settings: normal) {
  :root {
    --font-display: 'Merriweather', Georgia, serif;
    --font-body: 'Open Sans', Arial, sans-serif;
  }
}


/* ---------------------------------------------------
   BASE LAYOUT & TYPOGRAPHY
--------------------------------------------------- */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--color-primary);
  letter-spacing: -0.0125em;
  line-height: 1.18;
  font-weight: 700;
}
h1 { font-size: 2.66rem; margin-bottom: 18px; }
h2 { font-size: 2rem; margin-bottom: 14px; }
h3 { font-size: 1.275rem; margin-bottom: 8px; font-weight: 600; }
h4 { font-size: 1.08rem; font-weight: 500; }
h5, h6 { font-size: 1rem; font-weight: 500; }
p, .text-section {
  font-family: var(--font-body);
  color: var(--color-contrast);
  font-size: 1.04rem;
  line-height: 1.72;
  margin-bottom: 16px;
}
.subheadline {
  font-size: 1.19rem;
  font-family: var(--font-display);
  color: var(--color-primary-light);
  margin-bottom: 20px;
}
strong {
  font-weight: bold;
  color: var(--color-primary-light);
}


/* ---------------------------------------------------
   HEADER & NAVIGATION
--------------------------------------------------- */
header {
  width: 100%;
  background: var(--color-primary);
  color: var(--color-accent);
  box-shadow: var(--shadow-base);
  z-index: 900;
  position: relative;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
}
.logo img {
  width: 162px;
  max-height: 50px;
  height: auto;
  filter: drop-shadow(0 2px 6px #22314640);
}
.main-nav {
  display: flex;
  gap: 25px;
  align-items: center;
  margin-left: 20px;
}
.main-nav a {
  color: var(--color-accent);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  padding: 6px 10px;
  border-radius: 8px;
  transition: background var(--transition), color var(--transition);
  position: relative;
}
.main-nav a:after {
  content: '';
  display: block;
  width: 0;
  height: 2px;
  background: var(--color-secondary);
  transition: width .26s cubic-bezier(.65,.05,.36,1);
  margin-top: 2px;
}
.main-nav a:hover:after, .main-nav a:focus:after {
  width: 100%;
}
.main-nav a:hover, .main-nav a:focus {
  background: var(--color-secondary);
  color: var(--color-primary);
}


.cta {
  display: inline-block;
  padding: 12px 30px;
  background: var(--color-secondary);
  color: var(--color-primary);
  font-family: var(--font-display);
  font-size: 1.09rem;
  border-radius: var(--radius);
  font-weight: 700;
  letter-spacing: 0.03em;
  box-shadow: 0 2px 12px 0 rgba(35,65,89,0.07);
  border: 2px solid var(--color-secondary);
  transition: background var(--transition), color var(--transition), border var(--transition), transform .13s cubic-bezier(.36,1.3,.38,1);
  margin-left: 16px;
  cursor: pointer;
  text-align: center;
}
.cta.primary {
  background: var(--color-accent2);
  color: var(--color-white);
  border-color: var(--color-accent2);
  text-shadow: 0 1px 7px #23415920;
}
.cta:hover, .cta:focus {
  background: var(--color-primary-light);
  color: var(--color-white);
  border-color: var(--color-primary-light);
  transform: translateY(-3px) scale(1.035);
  box-shadow: 0 8px 24px 0 rgba(35,65,89,0.13);
  outline: none;
}


/* ---------------------------------------------------
   MOBILE NAVIGATION
--------------------------------------------------- */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2.15rem;
  color: var(--color-secondary);
  cursor: pointer;
  padding: 8px;
  z-index: 1052;
  border-radius: 10px;
  transition: background var(--transition);
}
.mobile-menu-toggle:focus {
  outline: 2px solid var(--color-secondary);
  background: #30518040;
}
.mobile-menu {
  display: none;
  position: fixed;
  top: 0; right: 0;
  width: 100vw;
  height: 100vh;
  background: linear-gradient(109deg, var(--color-secondary) 80%, var(--color-accent2) 100%);
  z-index: 1050;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-end;
  transition: transform .44s cubic-bezier(.72,1.6,.47,.88);
  transform: translateX(100%);
}
.mobile-menu.open {
  display: flex;
  transform: translateX(0);
}
.mobile-menu-close {
  margin: 24px 32px 0 0;
  font-size: 2.1rem;
  background: none;
  border: none;
  color: var(--color-primary);
  cursor: pointer;
  align-self: flex-end;
  border-radius: 8px;
  padding: 5px 12px;
  transition: background var(--transition);
}
.mobile-menu-close:focus {
  outline: 2px solid var(--color-primary);
  background: var(--color-white);
}
nav.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin: 48px 0 0 0;
  width: 100%;
  align-items: center;
}
.mobile-nav a {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--color-primary);
  font-size: 1.48rem;
  padding: 13px 24px;
  border-radius: var(--radius-card);
  background: rgba(255,255,255,0.40);
  transition: background var(--transition), color var(--transition);
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: var(--color-accent2);
  background: #fff;
}

/* Hide desktop nav & show hamburger on mobile */
@media (max-width: 992px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}
@media (min-width: 993px) {
  .mobile-menu {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: none !important;
  }
}


/* ---------------------------------------------------
   HERO SECTION & ARTISTIC DECOR
--------------------------------------------------- */
.hero {
  background: linear-gradient(117deg, var(--color-secondary) 10%, var(--color-accent) 55%, #f6dc7d 100%);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-base);
  margin-bottom: 60px;
  padding: 40px 0 10px 0;
}
.hero .container {
  align-items: flex-start;
  justify-content: center;
  min-height: 320px;
}
.hero h1 {
  color: var(--color-primary);
  font-size: 2.60rem;
  margin-bottom: 16px;
  font-family: var(--font-display);
}
.hero .subheadline {
  color: #18314C;
  opacity: 0.87;
}
.hero .cta {
  margin-top: 20px;
  margin-left: 0;
}
/* Artistic color accent shape (SVG/absolute) */
.hero:before {
  content: '';
  position: absolute;
  top: -105px;
  right: -70px;
  width: 320px;
  height: 240px;
  background: radial-gradient(circle at 35% 60%, #f08048 30%, #af88da 70%);
  opacity: .21;
  z-index: 1;
  border-radius: 66% 34% 61% 39%/59% 28% 72% 41%;
  pointer-events: none;
}


/* ---------------------------------------------------
   FLEXBOX SECTION LAYOUTS & SPACING
--------------------------------------------------- */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: transparent;
  border-radius: 0 0 var(--radius) var(--radius);
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: var(--color-white);
  border-radius: var(--radius-card);
  padding: 26px 28px;
  box-shadow: var(--shadow-card);
  min-width: 260px;
  flex: 1 1 280px;
}
.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;
  background: #fffbe9;
  border-radius: var(--radius-card);
  box-shadow: 0 3px 18px 0 #af88da23;
  border: 1.5px solid #e6decb;
  margin-bottom: 20px;
  font-size: 1rem;
  min-width: 260px;
  max-width: 530px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  min-width: 210px;
  background: var(--color-white);
  border-radius: 15px;
  padding: 15px 20px;
  box-shadow: 0 1.5px 6px 0 #23415918;
  margin-bottom: 20px;
}

/* Consistent spacing for lists in preview and info sections */
.about-preview ul,
.services-preview ul,
.about-preview ul li,
.services-preview ul li,
.contact-cta ul,
section ul {
  margin-bottom: 15px;
  font-size: 1.02rem;
}
.about-preview ul, .services-preview ul, .contact-cta ul {
  padding-left: 20px;
}

/* Features Section Artistic Layout */
.features {
  background: linear-gradient(125deg, var(--color-light) 95%, #f6dc7d 100%);
  border-radius: var(--radius-card);
}
.features h2 {
  margin-bottom: 30px;
  font-size: 2.16rem;
}
ul.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: space-between;
  list-style: none;
  padding: 0;
  margin: 0;
}
ul.feature-grid li {
  background: #fefefe;
  border-radius: 18px;
  box-shadow: 0 1px 9px 0 #b1b7c326;
  padding: 24px 24px 20px 24px;
  min-width: 220px;
  flex: 1 1 220px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  position: relative;
  transition: box-shadow var(--transition), transform var(--transition);
  margin-bottom: 20px;
}
ul.feature-grid li:hover {
  box-shadow: 0 8px 32px 0 #af88da25;
  transform: translateY(-5px) scale(1.035);
}
ul.feature-grid img {
  width: 46px;
  height: 46px;
  margin-bottom: 8px;
}
ul.feature-grid h3 {
  color: var(--color-accent2);
  font-size: 1.14rem;
  font-family: var(--font-display);
}
ul.feature-grid p {
  font-size: 1.00rem;
  color: var(--color-primary-light);
  font-family: var(--font-body);
}

/* Artistic divider for sections */
.section:not(:last-child){
  box-shadow: 0 2px 48px 0 #e1e1ef21 inset;
}


/* ---------------------------------------------------
   TESTIMONIALS
--------------------------------------------------- */
.testimonials {
  background: linear-gradient(100deg, #fffbe9 90%, #9b71e4 156%);
  border-radius: var(--radius-card);
  margin-bottom: 60px;
  padding: 40px 0;
}
.testimonials h2 { color: #af88da; font-size: 2rem; }
.testimonials .content-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  justify-content: flex-start;
  align-items: stretch;
}
.testimonial-card {
  background: #fffbe9;
  color: #234159;
  font-family: var(--font-body);
  border-left: 7px solid #af88da;
  box-shadow: 0 4px 24px 0 #9b71e433;
  font-size: 1.08rem;
  flex: 1 1 290px;
  min-width: 200px;
  transition: box-shadow var(--transition), border-color var(--transition);
}
.testimonial-card:hover {
  border-left: 7px solid #f08048;
  box-shadow: 0 10px 32px 0 #af88da21;
}
.testimonial-card span {
  margin-left: 14px;
  font-weight: 700;
  color: #9b71e4;
}


/* ---------------------------------------------------
   CARDS, PREVIEWS & ACCORDION
--------------------------------------------------- */
.card-content,
.law-area-grid,
.faq-accordion {
  display: flex;
  flex-wrap: wrap;
  gap: 26px;
  align-items: flex-start;
  justify-content: flex-start;
}
.law-area-grid > div {
  background: #fff;
  border-radius: 13px;
  box-shadow: var(--shadow-base);
  padding: 22px 20px;
  min-width: 220px;
  flex: 1 1 270px;
  margin-bottom: 20px;
  transition: box-shadow var(--transition), transform var(--transition);
}
.law-area-grid > div:hover {
  box-shadow: 0 10px 32px #b1b7c326;
  transform: translateY(-7px) scale(1.025);
}
.law-area-grid h3 {
  color: #9b71e4;
  font-size: 1.2rem;
  margin-bottom: 6px;
}
.faq-accordion > div {
  background: var(--color-white);
  border-radius: 10px;
  padding: 16px 18px;
  margin-bottom: 20px;
  box-shadow: 0 2px 12px 0 #23415911;
  transition: box-shadow var(--transition);
}
.faq-accordion > div:hover {
  box-shadow: 0 7px 25px #f0804810;
}


/* ---------------------------------------------------
   ABOUT, TEAM, CONTACT, FOOTER
--------------------------------------------------- */
.values, .why-choose {
  background: linear-gradient(97deg, #f5eaff 93%, #A3B5C9 186%);
  border-radius: var(--radius-card);
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  align-items: center;
  margin-bottom: 12px;
}
.footer-nav a {
  color: var(--color-primary-light);
  font-family: var(--font-body);
  padding: 7px 13px;
  border-radius: 8px;
  transition: background var(--transition), color var(--transition);
  font-size: 1rem;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: var(--color-white);
  background: var(--color-primary-light);
}
.footer-logo {
  text-align: center;
  margin-bottom: 8px;
}
.footer-logo img {
  width: 54px;
  height: auto;
  filter: drop-shadow(0 3px 10px #A3B5C930);
}
.footer-contact {
  font-size: 1rem;
  color: #6d7b8d;
  text-align: center;
  margin-bottom: 16px;
}
footer {
  padding: 26px 10px 17px 10px;
  background: var(--color-primary);
  color: var(--color-accent);
  border-top-left-radius: var(--radius-card);
  border-top-right-radius: var(--radius-card);
  box-shadow: 0 -2px 22px 0 #22314617 inset;
  margin-top: 32px;
}

/* Contact-cta section */
.contact-cta {
  background: linear-gradient(97deg, #f4e1c8 97%, #A3B5C9 186%);
  border-radius: var(--radius-card);
  margin-bottom: 60px;
}
.contact-cta ul {
  list-style: none;
  margin: 0 0 20px 0;
  padding: 0;
}
.contact-cta ul li {
  font-size: 1.07rem;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 11px;
  color: var(--color-primary-light);
}
.contact-cta ul img {
  width: 27px;
  height: 27px;
}

/* Artistic Separators & Animated Details */
hr {
  border: none; border-top: 1.5px dashed #b1b7c3a7; margin: 38px 0 16px 0;
  width: 80%; display: block;
}

/* ---------------------------------------------------
   COOKIE CONSENT BANNER & MODAL
--------------------------------------------------- */
#cookie-consent-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 2025;
  background: linear-gradient(90deg,#faf2f2 80%, #eae4fc 100%);
  color: var(--color-primary);
  padding: 25px 18px 21px 18px;
  box-shadow: 0 -5px 32px 0 #af88da23;
  display: flex;
  flex-direction: column;
  gap: 17px;
  align-items: center;
  border-top: 2.5px solid #af88da44;
  transition: transform .44s cubic-bezier(.37,1.2,.33,1);
  transform: translateY(0);
}
#cookie-consent-banner.hide {
  transform: translateY(110%);
  pointer-events: none;
  opacity: 0.5;
}
#cookie-consent-banner p {
  font-size: 1.07rem;
  font-family: var(--font-body);
}
.cookie-banner-actions {
  display: flex;
  gap: 19px;
  flex-wrap: wrap;
  margin-top: 4px;
}
.cookie-btn {
  font-family: var(--font-display);
  font-weight: 700;
  border-radius: 9px;
  padding: 11px 18px;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  transition: background var(--transition), color var(--transition), transform var(--transition);
}
.cookie-btn.accept {
  background: #af88da;
  color: #fff;
  border: 2px solid #af88da;
}
.cookie-btn.reject {
  background: #f08048;
  color: #fff;
  border: 2px solid #f08048;
}
.cookie-btn.settings {
  background: #f7f8fa;
  color: #9b71e4;
  border: 2px solid #9b71e4;
}
.cookie-btn:hover, .cookie-btn:focus {
  transform: scale(1.06);
  color: #fff;
  outline: none;
}
.cookie-btn.accept:hover, .cookie-btn.accept:focus {
  background: #915acc;
  border-color: #915acc;
}
.cookie-btn.reject:hover, .cookie-btn.reject:focus {
  background: #ea4500;
  border-color: #ea4500;
}
.cookie-btn.settings:hover, .cookie-btn.settings:focus {
  background: #9b71e4;
  color: #fff;
}

#cookie-modal {
  display: none;
  position: fixed;
  left: 50%;
  top: 50%;
  z-index: 2055;
  transform: translate(-50%,-50%) scale(1.03);
  background: #fff;
  padding: 40px 24px 27px 24px;
  border-radius: 21px;
  box-shadow: 0 8px 48px 0 #af88da32;
  min-width: 330px;
  max-width: 98vw;
  transition: opacity .41s cubic-bezier(.37,1.5,.47,.9);
}
#cookie-modal.open {
  display: block;
}
#cookie-modal h2 {
  font-size: 1.6rem;
  color: #af88da;
  margin-bottom: 17px;
}
#cookie-modal .cookie-category {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 16px;
}
#cookie-modal input[type="checkbox"] {
  accent-color: #af88da;
  width: 22px;
  height: 22px;
}
#cookie-modal label {
  font-size: 1rem;
  color: #234159;
  font-family: var(--font-body);
  font-weight: 600;
}
#cookie-modal .category-info {
  font-size: .98rem;
  color: #6d7b8d;
  font-weight: 400;
  margin-left: 6px;
}
#cookie-modal .modal-actions {
  display: flex;
  gap: 16px;
  margin-top: 23px;
  flex-wrap: wrap;
}
#cookie-modal .modal-close {
  position: absolute;
  top: 13px;
  right: 13px;
  font-size: 1.3rem;
  background: none;
  border: none;
  color: #af88da;
  cursor: pointer;
  border-radius: 8px;
  padding: 4px 10px;
}


/* ---------------------------------------------------
   RESPONSIVENESS (MOBILE FIRST)
--------------------------------------------------- */
@media (max-width: 768px) {
  html { font-size: 15px; }
  h1 { font-size: 2.1rem; }
  h2 { font-size: 1.48rem; }
  .container { padding: 0 8px; }
  .main-nav, .footer-nav { gap: 13px; }
  .section, .hero, .features, .testimonials, .contact-cta {
    padding: 28px 8px 20px 8px;
    margin-bottom: 40px;
  }
  .hero .container { padding: 0 8px; min-height: 180px; }
  .hero h1, .features h2 { font-size: 1.44rem; }
  .features ul.feature-grid,
  .card-container, .content-grid,
  .law-area-grid,.faq-accordion {
    flex-direction: column;
    gap: 18px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 18px;
    align-items: stretch;
  }
  .testimonial-card { max-width: 100%; }
  .footer-logo img { width: 38px; }
}

@media (max-width: 500px) {
  html { font-size: 14px; }
  .container { padding: 0 2px; }
}


/* ---------------------------------------------------
   MICRO INTERACTIONS & ANIMATIONS
--------------------------------------------------- */
.cta, .cookie-btn, ul.feature-grid li, .law-area-grid > div, .card, .testimonial-card, .faq-accordion > div {
  transition: box-shadow .23s cubic-bezier(.65,.05,.36,1), background .23s, color .18s, transform .11s cubic-bezier(.46,1.3,.19,.93);
}
nav a, button, input, select, textarea {
  transition: color .16s, background .18s, border .16s, box-shadow .13s;
}


/* ---------------------------------------------------
   OTHER UTILS
--------------------------------------------------- */
::-webkit-input-placeholder { color: #8894a8; }
:-moz-placeholder { color: #8894a8; }
::-moz-placeholder { color: #8894a8; }
:-ms-input-placeholder { color: #8894a8; }

/* Hide visually */
.visually-hidden {
  border: 0 !important; clip: rect(1px, 1px, 1px, 1px);
  -webkit-clip-path: inset(50%);
  clip-path: inset(50%);
  height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute;
  width: 1px; white-space: nowrap;
}


/* === END OF STYLE === */
