/* 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-family: 'Montserrat', Arial, Helvetica, sans-serif;
  scroll-behavior: smooth;
}
body {
  line-height: 1.6;
  color: #232323;
  background-color: #F1F6F9;
}
*, *:before, *:after {
  box-sizing: inherit;
}
a {
  color: #274472;
  text-decoration: none;
  transition: color 0.18s;
}
a:hover, a:focus {
  color: #D9CB9E;
}
ul, ol {
  margin-left: 20px;
}
img {
  max-width: 100%;
  height: auto;
}

/* FONT LOADS */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700&family=Playfair+Display:wght@700&display=swap');

h1, h2, h3, h4 {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  color: #274472;
  margin: 0 0 18px 0;
  text-rendering: optimizeLegibility;
}
h1 { font-size: 2.5rem; line-height: 1.12; letter-spacing: -1px; }
h2 { font-size: 2rem; line-height: 1.18; }
h3 { font-size: 1.25rem; line-height: 1.24; }
h4 { font-size: 1rem; line-height: 1.25; }

p,li,blockquote,span {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  color: #232323;
}
p {
  margin-bottom: 18px;
}
strong {
  font-weight: 700;
  color: #274472;
}

/* LAYOUT CONTAINERS */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 16px;
  padding-right: 16px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 30px;
  align-items: flex-start;
}

/* MANDATORY SPACING */
section, .section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #FFF;
  border-radius: 16px;
  box-shadow: 0 4px 24px 0 rgba(39, 68, 114, 0.04);
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card, .case-study, .blog-list article {
  background: #FFF;
  border-radius: 14px;
  box-shadow: 0 2px 14px 0 rgba(39,68,114,0.06);
  margin-bottom: 20px;
  position: relative;
  padding: 24px 20px;
  transition: box-shadow 0.22s;
}
.card:hover, .case-study:hover, .blog-list article:hover {
  box-shadow: 0 6px 32px 0 rgba(39,68,114,0.17);
}
.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: row;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: #F1F6F9;
  border-radius: 14px;
  margin-bottom: 24px;
  box-shadow: 0 2px 10px 0 rgba(39, 68, 114, 0.06);
  border-left: 6px solid #D9CB9E;
  transition: box-shadow 0.16s, border-color 0.16s;
}
.testimonial-card:hover {
  box-shadow: 0 8px 20px 0 rgba(39,68,114,0.17);
  border-left-color: #274472;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  padding: 20px 18px;
  border-radius: 15px;
  background: #F8F6F1;
  box-shadow: 0 1px 7px 0 rgba(39,68,114,0.03);
  min-width: 230px;
  flex: 1 1 230px;
  margin-bottom: 20px;
  transition: background 0.21s, box-shadow 0.19s;
}
.feature-item img {
  width:42px;height:42px;margin-bottom:4px;
}
.feature-item:hover {
  background: #FFF2E6;
  box-shadow: 0 4px 24px 0 rgba(217,203,158,0.14);
}

.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px 20px;
}

/* BLOG LIST */
.blog-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.blog-list article {
  border-left: 5px solid #274472;
  transition: border-color 0.18s;
}
.blog-list article:hover {
  border-left-color: #D9CB9E;
}

.blog-list .tags {
  font-size: 0.95rem;
  color: #6D7785;
  margin-top: 8px;
}

.case-studies {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.case-study {
  flex: 1 1 300px;
  border-left: 6px solid #274472;
  min-width: 270px;
  background: #FFF;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.case-study:hover {
  border-left-color: #D9CB9E;
}

/* HERO SECTION */
.hero {
  background: linear-gradient(102deg, #F1F6F9 0%, #FFF2E6 100%);
  padding-top: 48px;
  padding-bottom: 48px;
  margin-bottom: 0;
  border-radius: 0 0 72px 0;
  position: relative;
  box-shadow: 0 7px 36px 0 rgba(39,68,114,0.08);
}
.hero h1 {
  font-size: 2.8rem;
  color: #274472;
  margin-bottom: 12px;
  text-shadow: 2px 2px 0 #FFF2E6;
  letter-spacing: -1.5px;
}
.hero p {
  font-size: 1.18rem;
  margin-bottom: 24px;
}

/* CTA BUTTONS */
.cta {
  display: inline-block;
  font-family: 'Montserrat',Arial,sans-serif;
  font-weight: 600;
  font-size: 1.1rem;
  border-radius: 9px;
  padding: 14px 32px;
  margin-top: 6px;
  cursor: pointer;
  transition: background 0.18s, color 0.18s, box-shadow 0.16s;
  box-shadow: 0 3px 24px 0 rgba(39,68,114, 0.07);
  border: none;
  text-align: center;
  position: relative;
  outline: none;
}
.cta.primary {
  background: #274472;
  color: #FFF;
}
.cta.primary:hover, .cta.primary:focus {
  background: #D9CB9E;
  color: #274472;
}
.cta.secondary {
  background: #D9CB9E;
  color: #274472;
}
.cta.secondary:hover, .cta.secondary:focus {
  background: #274472;
  color: #FFC;
}
.cta:active {
  top:1px;
}

/* NAVIGATION STYLES */
header {
  background: #FFF;
  box-shadow: 0 2px 10px 0 rgba(39,68,114,0.07);
  position: sticky;
  top: 0;
  z-index: 20;
}
.main-nav {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 24px;
  height: 74px;
  padding: 0 16px;
}
.main-nav img {
  height: 38px; width: auto; margin-right: 12px;
}
.main-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  padding: 7px 14px;
  border-radius: 6px;
  transition: background 0.17s, color 0.20s;
  color: #274472;
}
.main-nav a:hover, .main-nav a:focus {
  background: #F8F6F1;
  color: #D9CB9E;
}
.main-nav .cta.primary {
  margin-left: auto;
  margin-right: 0;
}
.mobile-menu-toggle {
  display: none;
  background: #274472;
  color: #FFF;
  font-size: 2rem;
  border: none;
  border-radius: 8px;
  width: 46px;
  height: 46px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: absolute;
  top:14px; right: 20px;
  z-index: 50;
  box-shadow: 0 3px 18px rgba(39, 68, 114, 0.11);
  transition: background 0.18s;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: #D9CB9E;
  color: #274472;
}

/* MOBILE NAV OVERLAY */
.mobile-menu {
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  background: #274472;
  transform: translateX(-105%);
  transition: transform 0.34s cubic-bezier(.63,.02,.56,1.25);
  z-index: 1110;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0 0 0 0;
  box-shadow: 0 8px 64px 0 rgba(39,68,114,0.26);
}
.mobile-menu.open {
  transform: translateX(0%);
}
.mobile-menu-close {
  background: none;
  border: none;
  color: #D9CB9E;
  font-size: 2.7rem;
  padding: 16px 18px 0 0;
  cursor: pointer;
  align-self: flex-end;
  margin-bottom: 14px;
  transition: color 0.18s;
  z-index: 1120;
}
.mobile-menu-close:hover {
  color: #FFF2E6;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 20px 36px;
  width: 100%;
  margin-top: 30px;
}
.mobile-nav a {
  font-size: 1.28rem;
  font-weight: 600;
  color: #FFF;
  padding: 14px 10px;
  border-radius: 8px;
  transition: background 0.19s, color 0.16s;
}
.mobile-nav a:hover {
  background: #D9CB9E;
  color: #274472;
}

/* Hide nav on mobile, show mobile toggle */
@media (max-width: 950px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
}
@media (min-width: 951px) {
  .mobile-menu {
    display: none !important;
  }
}

/* FOOTER */
footer {
  background: #274472;
  color: #FFF;
  padding: 50px 0 22px 0;
  border-radius: 48px 0 0 0;
  box-shadow: 0 -4px 24px 0 rgba(39, 68, 114, 0.11);
  margin-top: 64px;
}
footer .content-wrapper {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}
.footer-brand img {
  width: 52px; height: 52px; border-radius: 16px; margin-bottom: 10px;
  background: #FFF2E6;
  box-shadow: 0 0 14px 0 rgba(217,203,158,0.10);
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 8px;
}
.footer-nav a {
  color: #F1F6F9;
  font-size: 1rem;
  padding: 6px 0;
  border-radius: 4px;
  transition: color 0.17s;
}
.footer-nav a:hover {
  color: #D9CB9E;
  background: none;
}
.footer-contact p {
  font-size: 0.99rem;
  margin-bottom: 7px;
  color: #F8F6F1;
}
.footer-contact a {
  color: #D9CB9E;
  text-decoration: underline;
}
.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 4px;
}
.footer-social a img {
  width: 24px; height: 24px;
  transition: filter 0.15s;
}
.footer-social a:hover img {
  filter: brightness(2) grayscale(0.7);
}
footer .container:last-child {
  margin-top: 22px;
  text-align: center;
  color: #D9CB9E;
  font-size: 0.94rem;
}

/* TEXT SECTION & GENERAL CARDS */
.text-section {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.service-list {
  margin-bottom: 24px;
  list-style: none;
  padding-left: 0;
}
.service-list li {
  padding: 17px 17px 17px 5px;
  border-radius: 7px;
  margin-bottom: 14px;
  background: #F8F6F1;
  color: #274472;
  font-size: 1.01rem;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 8px;
}
.service-list span {
  background: #D9CB9E;
  color: #274472;
  font-weight: 700;
  border-radius: 5px;
  padding: 2px 9px;
  font-size: 0.98rem;
  margin-left: 8px;
}

ol{
  padding-left: 18px;
  margin-bottom: 18px;
}
ol li{
  margin-bottom: 8px;
}

.faq {
  margin-top: 26px;
  background: #FFF2E6;
  border-radius: 10px;
  padding: 22px 20px;
  box-shadow: 0 2px 10px 0 rgba(217,203,158,0.05);
}
.faq h3 {
  margin-bottom: 12px;
}

blockquote {
  font-style: italic;
  color: #274472;
  background: none;
  border-left: none;
  padding: 0 0 0 0;
  margin: 0 0 8px 0;
  font-size: 1.12rem;
}

/* COOKIE BANNER */
.cookie-consent {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 11200;
  background: #274472;
  color: #FFF2E6;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  padding: 24px 18px;
  box-shadow: 0 -8px 32px 0 rgba(39,68,114,0.24);
  gap: 24px;
  width: 100vw;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.19s, transform 0.27s;
}
.cookie-consent.hide {
  opacity: 0; pointer-events: none; transform: translateY(120%);
}
.cookie-consent p {
  color: #FFF2E6;
  margin: 0 12px 0 0;
  font-size: 1.05rem;
}

.cookie-consent .cookie-btn {
  display: inline-block;
  margin: 0 6px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  border: none;
  border-radius: 6px;
  padding: 9px 22px;
  background: #D9CB9E;
  color: #274472;
  cursor: pointer;
  transition: background 0.17s, color 0.17s, box-shadow 0.16s;
  box-shadow: 0 1px 8px 0 rgba(217,203,158,0.13);
}
.cookie-consent .cookie-btn:hover, .cookie-btn:focus {
  background: #FFF2E6;
  color: #274472;
}
.cookie-consent .cookie-btn.settings {
  background: #FFF2E6;
  color: #274472;
}
.cookie-consent .cookie-btn.settings:hover{
  background: #D9CB9E; color: #274472;
}

/* COOKIE SETTINGS MODAL */
.cookie-modal {
  position: fixed;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%) scale(1);
  background: #FFF;
  color: #274472;
  z-index: 11300;
  min-width: 320px;
  max-width: 400px;
  border-radius: 20px;
  box-shadow: 0 16px 48px 0 rgba(39,68,114,0.21);
  padding: 32px 26px 24px 26px;
  opacity: 1;
  transition: opacity 0.22s, transform 0.22s;
}
.cookie-modal.hide {
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%,-50%) scale(0.85);
}
.cookie-modal h3 {
  font-size: 1.6rem;
  color: #274472;
  margin-bottom: 16px;
}
.cookie-modal ul {
  margin-bottom: 18px;
  padding-left: 18px;
}
.cookie-modal label {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 1.04rem;
  margin-bottom: 10px;
}
.cookie-modal input[type="checkbox"] {
  accent-color: #D9CB9E;
  width: 20px;
  height: 20px;
  margin-right: 8px;
}
.cookie-modal .cookie-btn {
  margin-top: 12px;
  background: #D9CB9E;
  color: #274472;
}
.cookie-modal .cookie-btn.close {
  background: #F1F6F9;
}
.cookie-modal .cookie-btn:hover{
  background: #274472; color:#FFF;
}

/* RESPONSIVE */
@media (max-width: 1250px){
  .container { max-width: 96vw; }
}
@media (max-width: 1000px){
  .container { max-width: 97vw; }
}
@media (max-width: 950px) {
  .feature-grid { gap: 20px 12px; }
  .content-wrapper { gap: 24px; }
}
@media (max-width: 768px) {
  section, .section {
    margin-bottom: 40px;
    padding: 26px 8px;
    border-radius: 13px;
  }
  .content-wrapper {
    padding: 0;
    flex-direction: column;
    gap: 18px;
  }
  .feature-grid, .case-studies, .blog-list, .card-container, .content-grid {
    flex-direction: column;
    gap: 18px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 14px;
  }
  .footer-brand img { margin-bottom: 4px; }
  .footer-social { margin-bottom: 8px; }
  .main-nav { flex-direction: column; height: auto; gap: 8px; }
}
@media (max-width: 600px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.4rem; }
  h3 { font-size: 1.08rem; }
  .hero { border-radius: 0 0 32px 0; padding-top: 16px; padding-bottom: 22px; }
  .cookie-modal { min-width: 220px; padding: 20px 8px; }
  .content-wrapper { gap: 12px; }
  section, .section { padding: 16px 1px; }
}

/* MICRO ANIMATION KEYFRAMES */
@keyframes slideInNav {
  from { transform: translateX(-105%); opacity:0; }
  to { transform: translateX(0); opacity:1; }
}
@keyframes fadeInSection {
  0%{opacity:0;transform:translateY(40px);}
  100%{opacity:1;transform:translateY(0);}
}
section, .section, .hero, .case-study, .testimonial-card, .feature-item, .cookie-modal {
  animation: fadeInSection 0.68s cubic-bezier(.61,.12,.34,1.07) both;
}

/* FORMS */
input,textarea,select {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  border-radius: 7px;
  border: 1.5px solid #D9CB9E;
  padding: 10px 14px;
  margin-bottom: 12px;
  background: #FFF;
  color: #232323;
  transition: border 0.15s;
}
input:focus,textarea:focus,select:focus {
  border: 1.5px solid #274472;
  outline: none;
}

button {
  font-family: 'Montserrat', Arial, sans-serif;
}

/* UNIQUE ARTISTIC ELEMENTS */
.hero::before {
  content: '';
  position: absolute;
  right: -60px; top: -15px;
  width: 160px; height: 160px;
  background: radial-gradient(circle at 95% 8%, #D9CB9E 0%, rgba(217,203,158,0.25) 70%,rgba(241,246,249,0.00) 100%);
  z-index: 1;
  border-radius: 70% 30% 95% 5%/50% 60% 30% 95%;
  pointer-events: none;
}
.hero .container { position: relative; z-index: 4; }

.section, .feature-item, .testimonial-card, .case-study, .card {
  position: relative;
  overflow: hidden;
}
.section::after, .testimonial-card::after, .feature-item::after {
  content: '';
  display: block;
  position: absolute;
  bottom: -18px; right: -21px;
  width: 64px; height: 64px;
  opacity: 0.08;
  z-index: 0;
  background: url('../assets/favicon.svg') no-repeat center/contain;
  pointer-events: none;
}
.feature-item::after { right: -10px; bottom: -5px; width: 40px; height: 40px; }

/* ARTISTIC DECORATIVE HEADLINE UNDERLINE */
h2 {
  position: relative;
  display: inline-block;
  padding-bottom: 8px;
}
h2::after {
  content: '';
  display: block;
  height: 4px;
  width: 60px;
  border-radius: 2px;
  background: #D9CB9E;
  margin-top: 3px;
  margin-left: 0;
}

/* ACCESSIBILITY/CONTRAST (Testimonials) */
.testimonial-card {
  background: #F1F6F9;
  color: #232323;
}
.testimonial-card blockquote {
  color: #274472;
  font-style: italic;
  opacity: 1;
}
.testimonial-card p {
  color: #232323;
  font-weight: 600;
}

/* Z-INDEX LAYERING */
header { z-index: 20; }
.mobile-menu { z-index: 1110; }
.cookie-consent { z-index: 11200; }
.cookie-modal { z-index: 11300; }

/* MISC */
::-webkit-scrollbar {
  width: 8px;
  background: #F8F6F1;
}
::-webkit-scrollbar-thumb {
  background: #D9CB9E;
  border-radius: 5px;
}

/* Menu indicator for pages */
.main-nav a.active, .footer-nav a.active {
  color: #D9CB9E;
  font-weight: 700;
  text-decoration: underline wavy #D9CB9E;
}

