/* 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; box-sizing:border-box; font-size:100%; font:inherit; vertical-align:baseline;
}
article,aside,details,figcaption,figure, 
footer,header,hgroup,menu,nav,section {
  display:block;
}
body {
  line-height:1.5;
  background: #F6F1EC;
}
ol,ul {list-style: none;}
a {@color: inherit; text-decoration: none; transition: color .2s;}
img,svg {max-width:100%; height:auto; display: block;}
button,input,select,textarea {font-family: inherit; font-size: inherit; outline: none; border: none; background: none;}
button {cursor:pointer;}
table {border-collapse: collapse; width:100%;}
th,td {text-align: left; padding: 12px 16px;}


/* ===== VARIABLES (fallbacks are included) ===== */
:root {
  --color-primary: #87336C;
  --color-accent: #12534A;
  --color-secondary: #F6F1EC;
  --color-bg: #F6F1EC;
  --color-text: #210321;
  --color-white: #FFFFFF;
  --color-black: #181124;
  --color-card: #FFFFFF;
  --color-error: #f44f4f;
  --color-link: #87336C;
  --color-link-hover: #12534A;
  --font-display: 'Quicksand', Arial, sans-serif;
  --font-body: 'Montserrat', Arial, sans-serif;
  --shadow-soft: 0 4px 16px 0 rgba(135,51,108,0.13);
  --shadow-card: 0 6px 32px 0 rgba(18,83,74,0.09);
  --radius: 18px;
}

@media (max-width: 480px) {
  html {font-size: 14px;}
}

/* ===== BODY & GLOBAL TYPOGRAPHY ===== */
body {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-text);
  background: var(--color-bg);
  min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--color-primary);
  font-weight: bold;
  letter-spacing: 0.02em;
  margin-bottom: 18px;
  line-height:1.1;
}
h1 { font-size: 2.5rem; margin-bottom: 20px;}
h2 { font-size: 2rem; margin-bottom: 16px;}
h3 { font-size: 1.3rem; margin-bottom: 12px;}
h4 { font-size: 1.1rem; margin-bottom: 10px;}
@media (max-width: 480px){ h1 { font-size: 2rem; } h2 { font-size:1.4rem; } }

p, ul, ol, li {
  color: var(--color-black);
  font-size: 1rem;
  line-height:1.7;
  margin-bottom: 10px;
}
strong { color: var(--color-primary); font-weight: 600; }

em {color: var(--color-accent); font-style: italic;}

ul, ol {
  padding-left: 24px;
  margin-bottom: 18px;
}
ul li, ol li { margin-bottom: 8px;}
table th {
  background: var(--color-primary);
  color: #FFF;
  font-family: var(--font-display);
  font-size:1.1rem;
}
table tr:nth-child(even){ background: #F6F1EC;}
table tr:nth-child(odd){ background: #FFF;}
table td { border-bottom:1px solid #eee; font-size:1rem; }

/* ===== CONTAINERS & LAYOUT ===== */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}

.section {
  margin-bottom: 60px; 
  padding: 40px 20px;
  background: transparent;
}
@media (max-width: 768px){
  .section { padding: 24px 8px; margin-bottom:36px; }
}

.content-wrapper {
  background: transparent;
  border-radius: var(--radius);
  display: flex; flex-direction: column;
  gap: 16px;
}

.text-section {
  background: var(--color-card);
  padding: 24px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
@media (max-width: 600px){
  .text-section {
    padding: 18px;
    margin-bottom: 14px;
  }
}

.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.card {
  margin-bottom: 20px;
  border-radius: var(--radius);
  background: var(--color-card);
  box-shadow: var(--shadow-card);
  padding: 28px 22px 22px 22px;
  transition: box-shadow .2s,transform .18s;
  position: relative;
  min-width: 230px;
  flex: 1 1 240px;
}
.card:hover {
  transform: translateY(-8px) scale(1.025);
  box-shadow: 0 8px 32px 0 rgba(18,83,74,0.18);
}

/* ======= FLEXBOX LAYOUT PATTERNS ======= */
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
  justify-content: space-between;
}
@media (max-width: 768px){
  .text-image-section { flex-direction: column; gap: 18px; }
}

.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px;
  background: #fff;
  border-radius: var(--radius);
  margin-bottom: 20px;
  box-shadow: 0 4px 24px 0 rgba(18,83,74,0.10);
  border-left: 4px solid var(--color-primary);
  position: relative;
  transition: box-shadow .2s,transform .18s;
  min-width:220px;
  max-width:550px;
}
.testimonial-card:hover {
  box-shadow: 0 8px 38px 0 rgba(135,51,108, 0.13);
}
.testimonial-card p {
  color: var(--color-black);
  font-size: 1.05rem;
  margin-bottom: 4px;
}
.testimonial-card span {
  font-size:0.98rem; color: var(--color-accent);
}
.testimonial-card div {
  font-family:var(--font-display); font-size: 1.2rem; color: #ffc94d; letter-spacing:3px;}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 20px;
}

.service-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: flex-start;
  margin-bottom: 30px;
}
.service-grid .text-section {
  flex: 1 1 275px;
  margin:0;
}
@media (max-width: 900px){
  .service-grid .text-section { flex:1 1 100%; min-width:200px; }
  .service-grid { gap: 14px; }
}

/* ======= HEADER + NAV ======= */
header {
  background: var(--color-white);
  box-shadow: 0 2px 14px 0 rgba(135,51,108,0.06);
  position: relative;
  z-index: 50;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 20px;
  padding-bottom: 20px;
  gap: 18px;
}
header img { height: 38px; min-width: 38px; }
header nav {
  display: flex;
  align-items: center;
  gap: 22px;
}

header nav a {
  font-family: var(--font-display);
  color: var(--color-primary);
  font-weight: 700;
  font-size: 1.07rem;
  padding: 3px 10px;
  border-radius:14px;
  transition: background .18s, color .16s;
  letter-spacing:0.02em;
}
header nav a:hover, header nav a.active {
  background: var(--color-accent);
  color: var(--color-white);
}

/* ======= CTA BUTTONS ======= */
.cta {
  display: inline-block;
  padding: 14px 35px;
  font-size: 1.11rem;
  font-family: var(--font-display);
  font-weight: bold;
  border-radius: 100px;
  background: var(--color-primary);
  color: #fff;
  box-shadow: 0 2px 14px 0 rgba(135,51,108,0.13);
  letter-spacing: 0.04em;
  margin-top: 12px;
  margin-bottom: 10px;
  border: none;
  transition: background .2s, color .18s, transform .12s, box-shadow .2s;
  text-align: center;
  line-height: 1.1;
}
.cta.primary {
  background: var(--color-accent);
  color: #fff;
}
.cta:hover, .cta:focus {
  transform: translateY(-3px) scale(1.03);
  background: #FF47B2;
  color: #fff;
  box-shadow: 0 6px 18px 0 rgba(255,71,178,0.23);
}
/* Secondary or outlined CTA */
.cta.secondary {
  background:transparent;
  border:2px solid var(--color-primary);
  color: var(--color-primary);
}
.cta.secondary:hover {
  background: var(--color-primary);
  color: #fff;
}

/* ======= MOBILE MENU ======= */
.mobile-menu-toggle {
  display: none;
  font-size: 2rem;
  background: var(--color-primary);
  color: #fff;
  border: none;
  border-radius: 9px;
  width: 46px;
  height: 46px;
  align-items:center;
  justify-content:center;
  margin-left: 16px;
  transition: background .2s, color .1s;
  z-index: 120;
}
.mobile-menu-toggle:active, .mobile-menu-toggle:focus {
  background: var(--color-accent); color:#fff;
}
@media (max-width: 1000px){
  header nav, .cta.primary {
    display: none;
  }
  .mobile-menu-toggle { display: flex; }
}

.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: #fff;
  z-index: 1110;
  display: flex;
  flex-direction: column;
  transform: translateX(-100vw);
  opacity: 0;
  pointer-events: none;
  transition: transform .38s cubic-bezier(.47,1.64,.41,.8), opacity .19s;
  box-shadow: 0 6px 36px 0 rgba(135,51,108,0.16);
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu-close {
  background: var(--color-primary);
  color: #fff;
  font-size: 2rem;
  width: 50px; height: 50px;
  border-radius:50%;
  align-self: flex-end;
  margin:22px 27px 6px 0;
  border: none;
  display:flex; align-items: center; justify-content:center;
  transition: background .2s;
}
.mobile-menu-close:hover{ background: var(--color-accent); }
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  padding: 30px 36px;
}
.mobile-nav a {
  font-family: var(--font-display);
  color: var(--color-primary);
  font-size: 1.4rem;
  font-weight: 700;
  border-radius: 11px;
  padding: 10px 0;
  display: block;
  width: 100%;
  transition: background .13s, color .13s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--color-accent);
  color: #fff;
}
@media (min-width: 1001px){
  .mobile-menu, .mobile-menu-toggle {display:none !important;}
}

/* ========= MAIN & PAGE COMPONENTS ========= */
main {
  margin-bottom: 40px;
  min-height:50vh;
}
section {
  margin-bottom: 60px; padding: 40px 20px;
}
@media (max-width: 768px){
  section { padding: 26px 3vw; margin-bottom: 36px;}
}

/* ===== Feature/Service Cards ===== */
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
}

/* ======= FOOTER ======= */
footer {
  background: var(--color-primary);
  color: #FFF;
  padding: 36px 0 16px 0;
  font-size: 0.96rem;
  margin-top: 40px;
  box-shadow:0 -2px 18px 0 rgba(135,51,108,0.05);
}
footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}
footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 5px;
}
footer nav a {
  color: #fff;
  padding: 4px 12px;
  border-radius: 7px;
  font-family: var(--font-display);
  font-size: 1rem;
  transition: background .14s, color .13s;
}
footer nav a:hover {
  background: var(--color-accent);
  color: #fff;
}
.footer-branding {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: center;
}
.footer-branding img { height:28px; margin-bottom:3px;}


@media (max-width: 700px){
  footer .container { padding-left: 4vw; padding-right: 4vw; }
  footer nav { gap: 12px; }
}

/* ========= INTERACTIVE & ANIMATION ========= */
.cta, .card, .testimonial-card, .mobile-menu, .mobile-menu-toggle, .mobile-menu-close {
  transition: box-shadow .23s, background .19s, color .18s, transform .14s, opacity .16s;
}

/* ========= SOCIAL ICONS (contacts page) ========= */
.text-section ul li img {
  display: inline-block;
  vertical-align: middle;
  margin-right:7px;
  width: 19px; height:19px;
}
.text-section ul li a {
  font-size:1.02rem; color: var(--color-primary); font-weight:700; transition:color .17s; margin-left:2px;
}
.text-section ul li a:hover {color: var(--color-accent);}

/* ========= COOKIE CONSENT BANNER & MODAL ========= */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  width: 100vw;
  background: #fff;
  color: var(--color-text);
  border-top: 3px solid var(--color-accent);
  box-shadow: 0 -2px 24px 0 rgba(18,83,74,0.11);
  padding: 22px 18px 14px 18px;
  z-index: 1400;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  font-size: 1rem;
  transition: transform .25s cubic-bezier(.61,1.13,.54,.87), opacity .15s;
  opacity:1;
  transform:translateY(0);
}
.cookie-banner.hide {
  opacity: 0;
  transform:translateY(120px);
  pointer-events:none;
}
.cookie-banner .cookie-message {
  flex: 2 1 240px;
  color: var(--color-text);
  font-size:0.99rem;
  margin-bottom: 2px;
}
.cookie-banner .cookie-btns {
  display: flex; gap: 16px; flex-wrap: wrap; align-items:center;
}
.cookie-banner .cookie-btn {
  border-radius: 100px;
  padding:8px 22px;
  font-size: 1rem;
  font-weight:bold;
  border:none;
  margin: 0;
  color: #fff;
  background: var(--color-primary);
  transition: background .16s, color .14s, transform .13s;
  box-shadow: 0 2px 10px 0 rgba(135,51,108,0.07);
  margin-bottom:3px;
}
.cookie-banner .cookie-btn.settings {
  background: var(--color-accent);
}
.cookie-banner .cookie-btn.reject {
  background: #f44f4f;
}
.cookie-banner .cookie-btn:active, .cookie-banner .cookie-btn:focus, .cookie-banner .cookie-btn:hover {
  background: #FF47B2;
  color: #fff;
}
.cookie-banner .cookie-btn.settings:active,
.cookie-banner .cookie-btn.settings:focus,
.cookie-banner .cookie-btn.settings:hover {
  background: var(--color-accent);
  color:#fff;
}
.cookie-banner .cookie-btn.reject:active,
.cookie-banner .cookie-btn.reject:focus,
.cookie-banner .cookie-btn.reject:hover {
  background: #a1001b;
}

/* COOKIE MODAL POPUP */
.cookie-modal-overlay {
  position: fixed;
  top:0; left:0; right:0; bottom:0;
  background: rgba(33,3,33,0.18);
  z-index: 2500;
  display: flex;
  justify-content: center; align-items: center;
  opacity:0; pointer-events:none;
  transition: opacity .19s;
}
.cookie-modal-overlay.active {
  opacity:1; pointer-events:auto;
}
.cookie-modal {
  background: #fff;
  color: var(--color-black);
  border-radius: var(--radius);
  box-shadow: 0 14px 70px 0 rgba(135,51,108,0.30);
  max-width: 410px;
  width:90vw;
  padding: 30px 24px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 24px;
  z-index:2510;
  animation: pop-in .25s cubic-bezier(.61,1.13,.54,.87) both;
}
@keyframes pop-in {
  0%{ transform: scale(.93) translateY(30px); opacity:.3; }
  100%{ transform: scale(1) translateY(0); opacity:1; }
}
.cookie-modal h3 {
  font-size:1.3rem; color: var(--color-primary);
}
.cookie-modal ul {
  display: flex;
  flex-direction: column;
  gap: 17px;
}
.cookie-modal li {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 1.01rem;
}
.cookie-modal label {
  font-size: 1.08rem;
  color: var(--color-accent);
  font-weight:500;
}
.cookie-modal .toggle-switch {
  width: 38px; height:21px;
  background: #eee;
  border-radius: 11px;
  position: relative;
  margin-right: 9px;
  cursor: pointer;
  transition: background .12s;
}
.cookie-modal .toggle-switch[data-on="true"] {
  background: var(--color-primary);
}
.cookie-modal .toggle-switch::after {
  content: '';
  position: absolute;
  top:2px; left:3px;
  width: 16px; height: 16px;
  background: #fff;
  border-radius:50%;
  box-shadow: 0 2px 8px 0 rgba(135,51,108,0.14);
  transition: left .16s;
}
.cookie-modal .toggle-switch[data-on="true"]::after {
  left: 19px;
}
.cookie-modal .toggle-switch[aria-disabled="true"] {
  background: #cdf0c9;
  pointer-events: none;
}
.cookie-modal .cookie-modal-btns {
  display: flex;
  gap: 17px;
  justify-content: flex-end;
}
.cookie-modal .cookie-modal-btn {
  border-radius:100px; background:var(--color-primary); color:#fff;
  font-size:1rem; font-weight:bold; border:none; padding:8px 22px; transition:background .15s;}
.cookie-modal .cookie-modal-btn:active,
.cookie-modal .cookie-modal-btn:focus,
.cookie-modal .cookie-modal-btn:hover {
  background: var(--color-accent);
}

/* ========= ACCESSIBILITY & FOCUS ========= */
a:focus, button:focus, .cta:focus {
  outline: 3px solid var(--color-accent);
  outline-offset: 2px;
}


/* ======= VIBRANT ENERGETIC SYSTEM EFFECTS ======= */
/* Electric color pops */
.cta, .card, .testimonial-card, .cookie-banner, .mobile-menu, .cookie-modal {
  /* subtle bouncing shadow */
  box-shadow: 0 2px 26px 0 rgba(255,71,178,0.08), 0 2px 14px 0 rgba(135,51,108,0.08);
}
.cta:hover, .cta:focus, .cookie-btn:hover {
  filter: brightness(1.12) saturate(1.24);
}

/* Sassy underlines for links */
a:not(.cta):not(nav a):hover {
  color: var(--color-primary);
  text-decoration: underline double var(--color-accent) 2px;
}

/* Bolder font, higher energy */
h1, h2, h3 {
  text-transform: none;
  font-weight: 800;
  letter-spacing: 0.02em;
}

/* Colorful icons, accent microaccents */
.text-section ul li img, .footer-branding img {
  filter: drop-shadow(0 2px 8px rgba(135,51,108,0.12));
}

/* Animations for energy */
.cta,
.card,
.testimonial-card,
.cookie-banner,
.mobile-menu,
.cookie-modal {
  will-change: transform, box-shadow, opacity;
}

/* ===== RESPONSIVE: FLUID FLEX ===== */
@media (max-width: 920px){
  .container { max-width: 96vw; }
  .content-wrapper, .section, section { padding-right: 2vw; padding-left:2vw; }
  .service-grid, .content-grid, .card-container {gap:13px;}
}
@media (max-width: 600px){
  .container { max-width:100vw; padding: 0 7px; }
  header .container { padding: 12px 7px; gap: 8px; }
}

/* Navigation layout fallback for ultra-small screens */
@media (max-width:400px){
  .mobile-nav { padding:10vw 2vw; gap:11px; }
  .cookie-modal { padding:13px 3vw; }
}

/* ===== Z-INDEX MANAGEMENT ===== */
header, .mobile-menu { z-index:1100; }
.cookie-banner { z-index:1400; }
.cookie-modal-overlay, .cookie-modal { z-index:2500; }

/* ===== SELECT FORM STYLES (if used in modal future) ===== */
select, input[type="checkbox"], input[type="radio"] {
  accent-color: var(--color-primary);
}

/* Extra: Hidden utility (for scripts) */
.hide, .is-hidden { display: none !important; }

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