/* 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 {
  scroll-behavior: smooth;
}
body {
  line-height: 1.5;
  background: #F6F8F9;
  color: #15324E;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 16px;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a {
  color: #15324E;
  text-decoration: none;
  transition: color 0.2s;
}
a:focus {
  outline: 2px solid #D3A345;
  outline-offset: 2px;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
  border: none;
}
ul, ol {
  list-style: none;
  padding: 0;
  margin: 0 0 8px 0;
}
button {
  font-family: inherit;
  background: none;
  border: none;
  cursor: pointer;
  outline: none;
  transition: background-color 0.2s, color 0.2s, box-shadow 0.2s;
}

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

/* FUN FONTS/PLAYFUL HEADINGS */
h1, h2, h3, h4, .cta-primary {
  font-family: 'Merriweather', serif;
  font-weight: 900;
  letter-spacing: -1px;
}
h1 { font-size: 2.4rem; margin-bottom: 16px; color: #D3A345; text-shadow: 1px 2px 0px #ffd26633; }
h2 { font-size: 2rem; margin-bottom: 14px; color: #15324E; }
h3 { font-size: 1.3rem; margin-bottom: 10px; color: #D3A345; }
h4, h5, h6 { font-weight: 700; }

.section { margin-bottom: 60px; padding: 40px 20px; }
.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 16px;
  width: 100%;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
}
.text-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 8px;
}
.text-section ul, .text-section ol {
  padding-left: 16px;
  margin: 0 0 8px 0;
  list-style: disc;
}
.text-section li {
  padding-left: 0;
  margin: 0 0 6px 0;
  font-size: 1rem;
  line-height: 1.55;
}

/* HERO SECTION */
.hero, .thank-you-hero {
  width: 100%;
  min-height: 280px;
  background: linear-gradient(90deg,#D3A345 0%, #FFD266 100%);
  display: flex;
  align-items: center;
  padding: 40px 0;
  border-radius: 0 0 46px 46px;
  box-shadow: 0 8px 28px -10px rgba(21,50,78,0.16);
  animation: heroFadeIn 0.7s cubic-bezier(0.29,0.71,0.46,1.01);
}
@keyframes heroFadeIn {
  from { opacity: 0; transform: translateY(-32px); }
  to   { opacity: 1; transform: none; }
}
.hero h1, .thank-you-hero h1 {
  color: #15324E;
  font-size: 2.2rem;
  margin-bottom: 12px;
  line-height: 1.15;
}
.hero p, .thank-you-hero p {
  color: #405a72;
  font-size: 1.17rem;
  margin-bottom: 18px;
}

/* MAIN NAVIGATION */
header {
  background: #fff;
  box-shadow: 0 3px 16px -5px #15324E22;
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 99;
  padding: 0;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 18px;
}
.main-nav a {
  position: relative;
  font-family: 'Roboto', sans-serif;
  font-weight: 500;
  font-size: 1rem;
  color: #15324E;
  padding: 4px 8px;
  line-height: 1.4;
  transition: color 0.18s;
}
.main-nav a:hover:not(.cta-primary), .main-nav a:focus:not(.cta-primary) {
  color: #D3A345;
}
.main-nav .cta-primary {
  font-family: 'Merriweather', serif;
  font-weight: 900;
  color: #fff;
  background: #D3A345;
  border-radius: 24px;
  padding: 8px 26px;
  margin-left: 16px;
  box-shadow: 0 4px 18px -5px #D3A34555;
  transition: background 0.2s, color 0.2s, transform 0.15s;
  border: none;
}
.main-nav .cta-primary:hover, .main-nav .cta-primary:focus {
  background: #FFD266;
  color: #15324E;
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 7px 24px -7px #D3A345bb;
}

/* MOBILE MENU */
.mobile-menu-toggle {
  display: none;
  font-size: 2rem;
  color: #D3A345;
  background: #fff;
  border-radius: 50%;
  height: 44px;
  width: 44px;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 12px -5px #15324E0A;
  margin-left: 16px;
  transition: background 0.2s, color 0.2s;
  z-index: 1102;
}
.mobile-menu-toggle:focus {
  outline: 2px solid #15324E;
}
@media (max-width: 980px) {
  .main-nav { display: none; }
  .mobile-menu-toggle { display: flex; }
}
.mobile-menu {
  position: fixed;
  top: 0; left: 0; bottom: 0; right: 0;
  width: 100vw; height: 100vh;
  background: #15324Eee;
  z-index: 1100;
  transform: translateX(-100%);
  transition: transform 0.35s cubic-bezier(0.66,0,0.37,1);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  padding: 0 0 0 0;
  opacity: 0;
  pointer-events: none;
}
.mobile-menu.open {
  transform: none;
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu-close {
  font-size: 2.2rem;
  color: #FFD266;
  background: none;
  border: none;
  margin: 32px 22px 8px 0;
  cursor: pointer;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 22px;
  background: none;
  width: 100%;
  margin-top: 36px;
  align-items: flex-start;
  padding: 0 36px;
}
.mobile-nav a {
  font-size: 1.4rem;
  color: #fff;
  font-family: 'Merriweather', serif;
  font-weight: 600;
  background: none;
  padding: 12px 0 12px 12px;
  display: block;
  border-radius: 8px 16px 16px 8px;
  transition: background 0.2s, color 0.2s, padding-left 0.18s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #FFD26644;
  color: #FFD266;
  padding-left: 26px;
}

/* GLOBAL BUTTON STYLES */
.cta-primary, button.cta-primary {
  display: inline-block;
  font-size: 1.18rem;
  font-family: 'Merriweather', serif;
  font-weight: bold;
  background: #D3A345;
  color: #fff;
  border-radius: 36px;
  padding: 11px 33px;
  margin-top: 10px;
  transition: background 0.2s, color 0.2s, box-shadow 0.18s, transform 0.16s;
  border: none;
  box-shadow: 0 2px 18px -3px #FFD26683;
  letter-spacing: 0.04em;
  cursor: pointer;
  text-align: center;
  outline: none;
  text-shadow: 1px 1px 0px #FFD26633;
}
.cta-primary:hover, .cta-primary:focus {
  background: #FFD266;
  color: #15324E;
  transform: scale(1.043) translateY(-1px);
  box-shadow: 0 4px 24px -5px #FFD266aa;
}

/* FEATURE & CARD GRIDS - FLEX ONLY */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin: 28px 0 0 0;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 6px 24px -8px #15324E22;
  padding: 28px 20px 18px 20px;
  min-width: 230px;
  max-width: 310px;
  flex: 1 1 230px;
  transition: box-shadow 0.18s, transform 0.18s;
  margin-bottom: 20px;
}
.feature-item img {
  height: 46px;
  width: 46px;
  object-fit: contain;
  margin-bottom: 4px;
  filter: drop-shadow(0 4px 10px #FFD26644);
}
.feature-item:hover {
  box-shadow: 0 12px 32px -6px #FFD26677, 0 2px 16px -8px #15324E33;
  transform: translateY(-3px) scale(1.015);
}
.feature-item h3 {
  color: #D3A345;
}

.card-container, .team-grid, .service-list, .blog-post-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin: 16px 0;
}
.card, .team-member, .service-category, .blog-post-list article {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 5px 20px -7px #15324E11;
  padding: 24px 18px;
  margin-bottom: 20px;
  position: relative;
  flex: 1 1 260px;
  min-width: 220px;
  max-width: 390px;
  transition: box-shadow 0.17s, transform 0.17s;
  z-index: 1;
}
.card:hover, .service-category:hover, .team-member:hover {
  box-shadow: 0 9px 30px -7px #FFD26688;
  transform: scale(1.018) translateY(-2px) rotate(-0.6deg);
}

/* TESTIMONIALS */
.testimonials .testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  padding: 20px 32px 18px 32px;
  background: #fff;
  border-radius: 28px;
  box-shadow: 0 6px 28px -4px #15324E16;
  margin-bottom: 20px;
  font-size: 1.08rem;
  line-height: 1.65;
  color: #15324E;
  position: relative;
  border-left: 9px solid #FFD266;
  transition: box-shadow 0.18s, transform 0.17s;
}
.testimonials .testimonial-card:hover {
  box-shadow: 0 10px 40px -10px #FFD266bb;
  transform: scale(1.025) translateY(-3px);
}
.testimonial-name {
  font-family: 'Merriweather', serif;
  font-weight: 700;
  color: #D3A345;
  font-size: 1rem;
  margin-left: 6px;
}

/* BLOG CATEGORIES */
.blog-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin: 18px 0 2px 0;
}
.category {
  background: #FFD266;
  color: #15324E;
  border-radius: 18px;
  padding: 7px 20px;
  font-size: 1.06rem;
  font-family: 'Merriweather', serif;
  margin-bottom: 8px;
  box-shadow: 0 2px 10px -2px #FFD2664a;
  transition: box-shadow 0.16s, background 0.18s;
}
.category:hover {
  background: #D3A345;
  color: #fff;
  box-shadow: 0 5px 19px -6px #D3A34588;
}

/* CONTACT & INFO LISTS */
.text-section li, .contact-preview ul li,
.location-details ul li, .contact-details ul li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Roboto', sans-serif;
  font-size: 1.04rem;
  margin-bottom: 8px;
  color: #405a72;
}
.text-section li img, .location-details ul li img, .contact-details ul li img {
  width: 20px; height: 20px; margin-right: 3px;
}
.map-placeholder {
  border: 2px dashed #FFD266;
  border-radius: 18px;
  background: #fffdeb;
  color: #b59c4b;
  padding: 16px 14px;
  margin: 14px 0 10px 0;
  font-size: 1.02rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* FOOTER */
footer {
  background: #15324E;
  color: #fff;
  padding: 44px 0 20px 0;
  border-radius: 36px 36px 0 0;
  margin-top: 60px;
}
footer .container {
  display: flex;
  flex-direction: column;
  gap: 36px;
}
.footer-brand {
  display: flex;
  gap: 28px;
  align-items: flex-start;
}
.footer-brand img {
  width: 56px;
  height: 56px;
  margin-right: 12px;
}
.footer-brand address {
  font-style: normal;
  font-size: 1rem;
  color: #FFD266;
}
.footer-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin: 20px 0 8px 0;
}
.footer-menu a {
  color: #FFD266;
  font-family: 'Roboto', sans-serif;
  padding: 4px 8px;
  font-size: 1.05rem;
  border-radius: 10px;
  transition: background 0.18s, color 0.18s;
}
.footer-menu a:hover, .footer-menu a:focus {
  background: #FFD266;
  color: #15324E;
}
.footer-disclaimer {
  color: #fffde4;
  font-size: 0.96rem;
  text-align: left;
  margin-top: 18px;
}

/* UTILITIES AND EFFECTS */
@media (max-width: 768px) {
  .container { padding: 0 10px; }
  .hero, .thank-you-hero { padding: 24px 0; min-height: 160px; border-radius: 0 0 32px 32px; }
  h1 { font-size: 1.48rem; }
  h2 { font-size: 1.18rem; }
  .feature-grid, .card-container, .team-grid, .service-list, .blog-post-list {
    flex-direction: column;
    gap: 18px;
  }
  .section { padding: 26px 8px; margin-bottom: 36px; }
  .testimonial-card, .feature-item, .card, .team-member, .service-category,
  .blog-post-list article {
    padding: 16px 10px;
    margin-bottom: 14px;
    min-width: unset;
    max-width: unset;
  }
  .footer-brand { flex-direction: column; align-items: flex-start; gap: 8px; }
  .footer-menu { flex-direction: column; gap: 12px; }
}
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
}

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

/* COOKIE CONSENT BANNER */
.cookie-consent-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: #FFD266;
  color: #15324E;
  border-radius: 24px 24px 0 0;
  box-shadow: 0 -4px 20px -6px #15324E33;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 28px;
  z-index: 1200;
  animation: cookieSlideUp 0.5s cubic-bezier(0.16,0.8,0.37,1);
  font-family: 'Roboto', sans-serif;
}
@keyframes cookieSlideUp {
  from { transform: translateY(80px); opacity: 0; }
  to   { transform: none; opacity: 1; }
}
.cookie-consent-banner p {
  font-size: 1rem;
  color: #15324E;
  margin: 0;
  flex: 1 1 260px;
}
.cookie-consent-actions {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}
.cookie-btn {
  border: none;
  border-radius: 18px;
  font-family: 'Merriweather', serif;
  font-size: 1rem;
  font-weight: 700;
  padding: 8px 22px;
  background: #15324E;
  color: #FFD266;
  cursor: pointer;
  transition: background 0.14s, color 0.14s, transform 0.13s;
  box-shadow: 0 2px 9px -4px #15324E33;
}
.cookie-btn:hover, .cookie-btn:focus {
  background: #21415e;
  color: #fff;
  transform: translateY(-2px) scale(1.038);
}
.cookie-btn.secondary {
  background: #FFD266;
  color: #15324E;
  border: 2px solid #15324E;
}
.cookie-btn.secondary:hover {
  background: #F6F8F9;
  color: #15324E;
}
.cookie-btn.settings {
  background: #fff;
  color: #D3A345;
  border: 2px solid #D3A345;
}
.cookie-btn.settings:hover {
  background: #D3A34511;
  color: #15324E;
}
@media (max-width: 768px) {
  .cookie-consent-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 10px 16px 10px;
    gap: 14px;
  }
  .cookie-consent-actions { gap: 8px; }
}

/* COOKIE MODAL */
.cookie-modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: #15324Ebb;
  z-index: 1205;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
  opacity: 1;
  animation: modalFadeIn 0.18s linear;
}
@keyframes modalFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.cookie-modal {
  background: #fff;
  color: #15324E;
  border-radius: 18px;
  padding: 36px 22px 28px 22px;
  width: 94vw;
  max-width: 370px;
  box-shadow: 0 10px 32px -6px #15324E33;
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
  z-index: 1300;
  animation: modalScaleIn 0.22s cubic-bezier(0.4,0.85,0.52,1.17);
}
@keyframes modalScaleIn {
  from { transform: scale(0.85) translateY(20px); opacity: 0.2; }
  to { transform: scale(1) translateY(0); opacity: 1; }
}
.cookie-modal h2 {
  color: #D3A345;
  margin-bottom: 10px;
}
.cookie-modal label {
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 9px 0;
  cursor: pointer;
}
.cookie-modal input[type=checkbox] {
  accent-color: #FFD266;
  width: 20px; height: 20px;
}
.cookie-modal-toggle:checked:disabled {
  accent-color: #D3A345;
}
.cookie-modal-close {
  position: absolute;
  top: 10px; right: 16px;
  background: none;
  color: #D3A345;
  font-size: 2rem;
  border: none;
  cursor: pointer;
}
.cookie-modal-buttons {
  display: flex;
  gap: 14px;
  margin-top: 16px;
}

/* ANIMATIONS - micro-interactions */
.cta-primary, .cookie-btn {
  will-change: background, color, transform;
}
.feature-item, .testimonial-card, .card, .team-member, .service-category, .blog-post-list article {
  will-change: box-shadow, transform;
  transition: box-shadow 0.17s, transform 0.14s;
}

/* playful dynamic touches */
h1, h2, h3 {
  letter-spacing: -0.5px;
}
h1 {
  animation: funBounce .9s cubic-bezier(0.46,1.41,0.48,1);
}
@keyframes funBounce {
  0% { transform: scale(1.18) translateY(-20px); }
  80% { transform: scale(0.98) translateY(4px); }
  100% { transform: scale(1) translateY(0); }
}
.feature-item img, .testimonial-card:before {
  animation: playfulIconPop 0.84s cubic-bezier(0.59,1.43,0.38,1) 0.07s;
}
@keyframes playfulIconPop {
  0% { transform: scale(0.7) rotateZ(-12deg); opacity: 0; }
  75% { transform: scale(1.14) rotateZ(6deg); opacity: 1; }
  100% { transform: scale(1) rotateZ(0); opacity: 1; }
}

/* Cookie: focus ring for accessibility */
.cookie-consent-banner:focus, .cookie-btn:focus, .cookie-modal-close:focus {
  outline: 2px solid #15324E;
  outline-offset: 2px;
}

/* Forms (for possible future) */
input, select, textarea {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  padding: 9px 13px;
  border-radius: 8px;
  border: 1.5px solid #E5E5EC;
  background: #fff;
  color: #15324E;
  margin-bottom: 16px;
  width: 100%;
  transition: border-color 0.17s;
}
input:focus, textarea:focus, select:focus {
  border-color: #D3A345;
  outline: none;
}

/* STATEMENT STYLES - e.g. privacy/gdpr/cookies/terms */
.privacy-feature, .gdpr-feature, .cookies-feature, .terms-feature {
  margin-bottom: 60px;
  padding: 44px 10px 36px 10px;
  background: #FFD26622;
  border-radius: 26px;
  box-shadow: 0 7px 28px -10px #FFD26625;
}
.privacy-feature h1, .gdpr-feature h1, .cookies-feature h1, .terms-feature h1 {
  color: #D3A345;
  font-size: 2rem;
}
.privacy-feature .text-section, .gdpr-feature .text-section, .cookies-feature .text-section, .terms-feature .text-section {
  margin-top: 10px;
}

/* RESPONSIVE ALIGNMENT ENFORCED */
@media (max-width: 768px) {
  .footer-brand, .footer-menu, .footer-disclaimer {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .footer-brand { gap: 8px; }
  .content-grid, .feature-grid, .card-container, .team-grid, .service-list {
    flex-direction: column;
    align-items: flex-start !important;
    gap: 18px;
  }
}

/* Highlight playful dynamic for law: little squiggle accent */
h2:after {
  content: '';
  display: block;
  width: 44px;
  height: 5px;
  margin-top: 4px;
  border-radius: 6px;
  background: #FFD266;
  box-shadow: 2px 6px 18px -7px #FFD266cc;
  animation: wiggleAccent 1.7s 0.11s ease-in-out infinite alternate;
}
@keyframes wiggleAccent {
  from { transform: rotateZ(-3deg) scaleX(0.96); }
  to   { transform: rotateZ(2.8deg) scaleX(1.04); }
}

/* Ensuring minimum spacing between elements in all card/section configs */
.section > *, .card-container > *, .feature-grid > *, .team-grid > *, .testimonials > * {
  margin-bottom: 20px;
}

/* End of style.css */
