/* === 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,main,menu,nav,output,ruby,section,summary,time,mark,audio,video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
}
article,aside,details,figcaption,figure,footer,header,hgroup,main,menu,nav,section {
  display: block;
}
body {
  line-height: 1.56;
  background: var(--vc-accent);
  color: #1b2230;
}
*, *:before, *:after {
  box-sizing: border-box;
}
img,svg {
  max-width: 100%;
  display: block;
}

/* === BRAND COLORS AS VARIABLES + FALLBACKS === */
:root {
  --vc-primary: #22435C;
  --vc-secondary: #F7B733;
  --vc-accent: #F2F4F8;
  --vc-violet: #7161EF; /* energetic accent */
  --vc-neon: #04d9ff;  /* energetic accent */
  --vc-hotpink: #FF176B; /* energetic accent */
}

body {
  background: var(--vc-accent);
  font-family: 'Roboto', Arial, sans-serif;
  color: #222E3A;
}

/* === FONT DEFINITIONS === */
@import url('https://fonts.googleapis.com/css?family=Montserrat:700,900&display=swap');
@import url('https://fonts.googleapis.com/css?family=Roboto:400,500,700&display=swap');

h1, h2, h3, h4 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 900;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
}
h1 {
  font-size: 2.5rem;
  color: var(--vc-primary);
  line-height: 1.15;
}
h2 {
  font-size: 2rem;
  color: var(--vc-violet);
}
h3 {
  font-size: 1.35rem;
  color: var(--vc-hotpink);
}
h4 {
  font-size: 1.1rem;
}

p, ul, li {
  font-size: 1rem;
  font-family: 'Roboto', Arial, sans-serif;
  margin-bottom: 10px;
  color: #222E3A;
}

ul {
  padding-left: 1.4em;
}
li {
  margin-bottom: 8px;
}

strong {
  font-weight: bold;
}

/* === GLOBAL SPACING AND CONTAINERS === */
.container {
  width: 100%;
  max-width: 1136px;
  margin: 0 auto;
  padding: 0 24px;
  box-sizing: border-box;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.content-wrapper, .text-section {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-start;
}

/* === HEADER + NAVIGATION === */
header {
  width: 100%;
  background: #fff;
  box-shadow: 0 4px 16px 0 rgba(50,55,140,0.07);
  position: relative;
  z-index: 50;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 24px 18px 24px;
}
header img[alt="Velvet Cairn"] {
  height: 48px;
  margin-right: 18px;
}
.main-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
}
.main-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: var(--vc-primary);
  text-decoration: none;
  padding: 6px 10px;
  border-radius: 7px;
  transition: background 0.19s, color 0.19s;
}
.main-nav a:hover, .main-nav a:focus {
  background: var(--vc-secondary);
  color: #fff;
}
.cta-button {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 900;
  text-transform: uppercase;
  padding: 12px 24px;
  border-radius: 24px;
  background: var(--vc-hotpink);
  color: #fff;
  border: none;
  font-size: 1.08rem;
  cursor: pointer;
  box-shadow: 0 3px 10px rgba(255,23,107,.08);
  letter-spacing: 1px;
  outline: none;
  display: inline-block;
  transition: background 0.2s, transform 0.18s, box-shadow 0.12s;
  margin-left: 8px;
}
.cta-button:hover, .cta-button:focus {
  background: var(--vc-violet);
  color: #fff;
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 6px 16px rgba(113,97,239,0.13);
}

/* === MOBILE NAVIGATION === */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--vc-primary);
  position: absolute;
  right: 18px;
  top: 18px;
  z-index: 110;
  cursor: pointer;
  outline: none;
  padding: 2px 10px;
  border-radius: 8px;
  transition: background 0.15s;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: var(--vc-secondary);
  color: #fff;
}
.mobile-menu {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: #fff;
  box-shadow: 0 4px 24px rgba(34,67,92,.17);
  z-index: 120;
  transform: translateX(-100%);
  transition: transform 0.33s cubic-bezier(.71,-0.01,.5,1.41);
  padding: 30px 24px 16px 24px;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: none;
  border: none;
  font-size: 2.1rem;
  color: var(--vc-primary);
  align-self: flex-end;
  margin-bottom: 18px;
  cursor: pointer;
  outline: none;
  padding: 2px 10px;
  border-radius: 8px;
  transition: background 0.15s;
}
.mobile-menu-close:focus, .mobile-menu-close:hover {
  background: var(--vc-hotpink);
  color: #fff;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 900;
  font-size: 1.32rem;
  color: var(--vc-primary);
  text-decoration: none;
  padding: 18px 0 8px 6px;
  border-radius: 7px;
  transition: background 0.18s, color 0.18s;
  outline: none;
}
.mobile-nav a:focus, .mobile-nav a:hover {
  background: var(--vc-hotpink);
  color: #fff;
}

/* === HERO SECTION === */
.hero {
  background: linear-gradient(93deg, var(--vc-secondary) 76%, var(--vc-neon) 100%);
  min-height: 310px;
  display: flex;
  align-items: center;
  border-bottom: 6px solid var(--vc-hotpink);
  margin-bottom: 36px;
  animation: heroPulse 4s ease-in-out infinite alternate;
  box-shadow: 0 5px 28px rgba(34,67,92,0.05);
}
@keyframes heroPulse {
  from { filter: brightness(1);} 
  to   { filter: brightness(1.1) saturate(1.10);}
}
.hero .content-wrapper {
  align-items: flex-start;
  gap: 20px;
  padding: 20px 0 24px 0;
  width: 100%;
}
.hero h1 {
  font-size: 2.3rem;
  color: var(--vc-primary);
  font-weight: 900;
  line-height: 1.18;
}
.hero p {
  font-size: 1.25rem;
  color: #222E3A;
  font-weight: 500;
  margin-bottom: 14px;
}

/* === FEATURE GRID === */
.feature-grid {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  margin-top: 18px;
}
.feature {
  background: #fff;
  border-radius: 22px;
  box-shadow: 0 7px 32px 0 rgba(113,97,239,.08);
  padding: 28px 22px 24px 22px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  flex: 1 1 180px;
  min-width: 220px;
  min-height: 220px;
  max-width: 340px;
  transition: transform 0.15s, box-shadow 0.18s;
  margin-bottom: 20px;
  position: relative;
}
.feature img {
  width: 48px;
  height: 48px;
  margin-bottom: 13px;
}
.feature h3 {
  color: var(--vc-violet);
  margin-top: 3px;
  font-size: 1.18rem;
  margin-bottom: 7px;
  font-family: 'Montserrat', Arial, sans-serif;
}
.feature:hover, .feature:focus-within {
  transform: translateY(-6px) scale(1.035);
  box-shadow: 0 18px 40px 0 rgba(113,97,239,.13);
}

/* === CARDS & CARD CONTAINER === */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 5px 16px 0 rgba(247,183,51,0.10);
  padding: 28px 24px 22px 24px;
  flex: 1 1 260px;
  min-width: 240px;
  transition: box-shadow 0.16s, transform 0.18s;
}
.card:hover, .card:focus-within {
  transform: translateY(-5px) scale(1.03);
  box-shadow: 0 16px 32px 0 rgba(255,23,107,0.09);
  z-index: 4;
}

/* === BLOG POST LIST === */
.blog-post-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 16px;
}
.blog-post {
  background: linear-gradient(110deg, #fff 70%, var(--vc-neon) 100%);
  border-radius: 16px;
  padding: 22px 19px 19px 18px;
  box-shadow: 0 3px 12px 0 rgba(4,217,255,0.07);
  margin-bottom: 20px;
  flex: 1 1 265px;
  min-width: 220px;
  transition: box-shadow 0.14s, transform 0.16s;
}
.blog-post h3 {
  font-size: 1.18rem;
  color: var(--vc-hotpink);
}
.blog-post a {
  color: var(--vc-violet);
  font-weight: 700;
  text-underline-offset: 2px;
  transition: color 0.14s;
}
.blog-post a:hover {
  color: var(--vc-hotpink);
}
.blog-post:hover, .blog-post:focus-within {
  transform: scale(1.03) translateY(-4px);
  box-shadow: 0 7px 24px 0 rgba(4,217,255,0.13);
}

/* === SECTION FLEX UTILS === */
.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;
}

/* === TESTIMONIAL CARDS === */
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  margin-bottom: 20px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 18px 0 rgba(34,67,92,.10);
  position: relative;
  border-left: 5px solid var(--vc-secondary);
  max-width: 740px;
}
.testimonial-card p {
  color: #1b2230;
  font-size: 1.11rem;
  margin-bottom: 0;
  font-style: italic;
}
.testimonial-meta {
  color: var(--vc-hotpink);
  font-size: 0.97rem;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  margin-left: 14px;
}

.testimonial-card:before {
  content: '\201C';
  color: var(--vc-violet);
  font-size: 2.6rem;
  font-family: 'Montserrat', Arial, sans-serif;
  position: absolute;
  left: 10px;
  top: -8px;
  opacity: 0.22;
}

/* Ensure strong contrast for testimonial text */
.testimonial-card, .testimonial-card p, .testimonial-meta {
  background: #fff;
  color: #1b2230;
}

/* === TEAM PROFILES === */
.team-profile {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  margin-top: 10px;
  margin-bottom: 20px;
}
.team-member {
  flex: 1 1 220px;
  min-width: 220px;
  padding: 24px 18px 20px 18px;
  border-radius: 17px;
  background: #fff;
  box-shadow: 0 3px 17px rgba(247,183,51,.10);
  margin-bottom: 18px;
  transition: box-shadow 0.14s, transform 0.13s;
}
.team-member h3 {
  color: var(--vc-secondary);
  font-size: 1.13rem;
}
.team-member:hover {
  transform: scale(1.04);
  box-shadow: 0 8px 28px rgba(247,183,51,.14);
}

/* === CONTACT PAGE CTA AREA === */
.cta-area {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 12px;
}

.contact-info ul {
  display: flex;
  flex-direction: column;
  gap: 11px;
  margin-bottom: 21px;
  padding-left: 0;
}
.contact-info ul li {
  display: flex;
  align-items: center;
  gap: 12px;
  list-style: none;
  font-size: 1.07rem;
  color: var(--vc-primary);
  margin-bottom: 0;
}
.contact-info ul img {
  width: 21px;
  height: 21px;
}

/* === FOOTER === */
footer {
  width: 100%;
  background: var(--vc-primary);
  color: #fff;
  padding: 34px 0 24px 0;
  margin-top: 40px;
  font-size: 1rem;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
  margin-bottom: 20px;
}
.footer-nav a {
  color: var(--vc-secondary);
  text-decoration: none;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  margin: 0 10px 0 0;
  transition: color 0.14s, text-decoration 0.15s;
}
.footer-nav a:hover {
  color: var(--vc-hotpink);
  text-decoration: underline;
}
.footer-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: flex-start;
}
.footer-contact div {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.98rem;
  color: #fff;
}
.footer-contact img {
  width: 19px;
  height: 19px;
  opacity: 0.94;
}

/* === MODAL/COOKIE CONSENT BANNER === */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--vc-primary);
  color: #fff;
  box-shadow: 0 -2px 24px rgba(34,67,92,0.12);
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 18px 28px 18px 18px;
  z-index: 999;
  font-size: 1.08rem;
  animation: bannerSlideUp 0.66s cubic-bezier(.7,.09,.51,1.21);
}
@keyframes bannerSlideUp {
  from { transform: translateY(120%); opacity: 0.1; }
  to   { transform: translateY(0); opacity: 1; }
}
.cookie-banner button {
  margin-left: 12px;
}
.cookie-btn {
  background: var(--vc-secondary);
  color: var(--vc-primary);
  border: none;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 1rem;
  border-radius: 16px;
  padding: 8px 18px;
  margin-right: 8px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, transform 0.13s;
}
.cookie-btn.accept {
  background: var(--vc-violet);
  color: #fff;
}
.cookie-btn.reject {
  background: var(--vc-hotpink);
  color: #fff;
}
.cookie-btn.settings {
  background: #fff;
  color: var(--vc-primary);
  border: 1.5px solid var(--vc-violet);
}
.cookie-btn:hover, .cookie-btn:focus {
  filter: brightness(1.12);
  transform: translateY(-2px) scale(1.04);
}

/* Cookie Preferences Modal */
.cookie-modal-overlay {
  position: fixed;
  top: 0; left: 0; right:0; bottom:0;
  background: rgba(34,67,92,.77);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1999;
  transition: opacity 0.22s;
  opacity: 1;
}
.cookie-modal {
  background: #fff;
  border-radius: 22px;
  width: 99%;
  max-width: 450px;
  padding: 38px 26px 28px 26px;
  box-shadow: 0 10px 54px 0 rgba(34,67,92,0.18);
  display: flex;
  flex-direction: column;
  gap: 22px;
  animation: cookieModalPop .2s cubic-bezier(.61,-0.03,.45,1.25);
  position: relative;
}
@keyframes cookieModalPop {
  from { transform: scale(0.84); opacity: 0.11;}
  to   { transform: scale(1); opacity: 1;}
}
.cookie-modal h3 {
  color: var(--vc-primary);
  font-size: 1.12rem;
}
.cookie-category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 17px;
  font-size: 1.01rem;
}
.cookie-category input[type="checkbox"] {
  width: 22px;
  height: 22px;
  accent-color: var(--vc-secondary);
}
.cookie-category .always-on {
  font-size: 0.97rem;
  font-weight: 700;
  color: var(--vc-violet);
}
.cookie-modal .close-btn {
  position: absolute;
  top: 18px;
  right: 21px;
  background: none;
  border: none;
  color: var(--vc-hotpink);
  font-size: 2.1rem;
  cursor: pointer;
  padding: 1px 8px;
  border-radius: 8px;
  transition: background 0.12s;
}
.cookie-modal .close-btn:hover, .cookie-modal .close-btn:focus {
  background: var(--vc-secondary);
  color: #fff;
}

@media (max-width: 1320px) {
  .container {
    max-width: 99vw;
  }
}
@media (max-width: 1000px) {
  .feature-grid, .blog-post-list, .card-container, .content-grid, .team-profile, .footer-contact {
    gap: 14px;
  }
  .footer-contact {
    flex-direction: column;
    align-items: flex-start;
  }
}
@media (max-width: 850px) {
  .main-nav {
    gap: 10px;
  }
  .feature-grid, .blog-post-list {
    flex-direction: column;
    gap: 12px;
  }
  .team-profile {
    flex-direction: column;
  }
}
@media (max-width: 768px) {
  html { font-size: 15px; }

  header .container {
    flex-direction: row;
    padding: 13px 8px 13px 8px;
  }
  .main-nav,
  .cta-button {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
  .hero {
    min-height: 210px;
    padding: 0;
    border-bottom-width: 4px;
  }
  .content-wrapper, .text-section {
    gap: 13px;
    padding: 0;
  }
  section {
    padding: 20px 6px 28px 6px;
  }
  .feature-grid, .blog-post-list, .card-container {
    gap: 10px;
    flex-direction: column;
  }
  .section {
    margin-bottom: 34px;
    padding: 25px 7px;
  }
  .footer-nav {
    gap: 11px;
    font-size: 0.97rem;
    flex-wrap: wrap;
  }
  .footer-contact {
    flex-direction: column;
    gap: 7px;
  }
  .testimonials {
    gap: 11px;
  }
  .testimonial-card {
    flex-direction: column;
    gap: 7px;
    max-width: 100%;
  }
  .content-grid, .card-container {
    flex-direction: column;
    gap: 12px;
  }
  .text-image-section {
    flex-direction: column;
    align-items: center;
    gap: 17px;
  }
  .cta-area {
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
  }
  .blog-post {
    min-width: 0;
  }
}

@media (max-width: 520px) {
  h1 { font-size: 1.50rem; }
  h2 { font-size: 1.15rem; }
  .hero .content-wrapper { padding: 8px 0; }
  header img[alt="Velvet Cairn"]{ height: 36px; }
  .container { padding: 0 6px; }
}

/* === INTERACTIVE & MISC === */
a {
  color: var(--vc-violet);
  transition: color 0.15s, text-decoration 0.13s;
  text-underline-offset: 2px;
}
a:focus, a:hover {
  color: var(--vc-hotpink);
  outline: none;
  text-decoration: underline;
}
button, .cta-button, .cookie-btn {
  outline: none;
}
input, textarea, select {
  font-family: inherit;
  border-radius: 6px;
  border: 1.5px solid var(--vc-accent);
  padding: 9px 12px;
  box-shadow: 0 1.5px 7px rgba(247,183,51,0.05);
  font-size: 1.02rem;
  margin-bottom: 6px;
  background: #fff;
  color: var(--vc-primary);
  width: 100%;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--vc-violet);
  outline: none;
}

/* === UTILITIES === */
.bg-primary { background: var(--vc-primary)!important; color: #fff!important; }
.bg-accent { background: var(--vc-accent)!important; color: var(--vc-primary)!important; }
.bg-secondary { background: var(--vc-secondary)!important; color: var(--vc-primary)!important; }
.text-violet { color: var(--vc-violet)!important; }
.text-hotpink { color: var(--vc-hotpink)!important; }
.text-secondary { color: var(--vc-secondary)!important; }
.rounded {
  border-radius: 14px !important;
}
.shadow {
  box-shadow: 0 7px 21px 0 rgba(4,217,255,.06)!important;
}

/* === SCROLLBAR === */
::-webkit-scrollbar {
  width: 10px;
  background: var(--vc-accent);
}
::-webkit-scrollbar-thumb {
  background: var(--vc-secondary);
  border-radius: 7px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--vc-violet);
}

/* === FAQ & LIST STYLES === */
section ul {
  margin-left: 0;
  padding-left: 18px;
}
section ul li {
  font-size: 1rem;
  margin-bottom: 7px;
}

/* === ACCESSIBILITY HIGHLIGHT === */
a:focus-visible, .cta-button:focus-visible, .mobile-menu-toggle:focus-visible, .mobile-menu-close:focus-visible, .cookie-btn:focus-visible, .cookie-modal .close-btn:focus-visible {
  outline: 2.5px solid var(--vc-hotpink);
  outline-offset: 2px;
  box-shadow: 0 0 0 4px rgba(255,23,107,.11);
}

/* === ANIMATION ENHANCEMENTS === */
.cta-button, .cookie-btn {
  will-change: transform, background, box-shadow;
}

/* === HIDE BY DEFAULT === */
.cookie-banner.hidden, .cookie-modal-overlay.hidden, .mobile-menu:not(.open) {
  display: none !important;
}

/* Banner hides on tiny screens for page demo purposes */
@media (max-width: 320px) {
  .cookie-banner { font-size: 0.95rem; padding: 12px 5px; }
}
