/* --- CSS RESET & BASE STYLES --- */
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-size: 16px;
  scroll-behavior: smooth;
}
body {
  font-family: 'Open Sans', Arial, sans-serif;
  color: #232B2B;
  background-color: #F3F3F3;
  font-size: 1rem;
  line-height: 1.7;
  min-height: 100vh;
  letter-spacing: 0.01em;
}
img {
  max-width: 100%;
  height: auto;
  display: inline-block;
}
a {
  color: #232B2B;
  text-decoration: none;
  transition: color 0.2s cubic-bezier(.4,0,.2,1);
}
a:hover, a:focus {
  color: #7A7A7A;
  outline: none;
}
ul, ol {
  list-style: none;
}
strong, b {
  font-weight: 600;
}
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}

/* --- TYPOGRAPHY --- */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Roboto Slab', Georgia, serif;
  color: #232B2B;
  font-weight: 700;
  margin-bottom: 22px;
  letter-spacing: 0.01em;
}
h1 {
  font-size: 2.5rem;
  line-height: 1.15;
}
h2 {
  font-size: 2rem;
}
h3 {
  font-size: 1.325rem;
}
h4 {
  font-size: 1.125rem;
}
p {
  font-size: 1rem;
  margin-bottom: 20px;
}
.section p:last-child {
  margin-bottom: 0;
}

@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.6rem; }
  h3 { font-size: 1.125rem; }
}

/* --- GLOBAL FLEX SPACING PATTERNS --- */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 3px 24px 0 rgba(35,43,43,0.06);
}
.section:last-child {
  margin-bottom: 0;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 1.5px 10px 0 rgba(35,43,43,0.10);
  padding: 24px 20px;
  transition: box-shadow 0.2s cubic-bezier(.4,0,.2,1);
}
.card:hover {
  box-shadow: 0 6px 26px 0 rgba(35,43,43,0.13);
}
.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: #F3F3F3;
  border-radius: 18px;
  box-shadow: 0 1px 8px 0 rgba(35,43,43,0.11);
  margin-bottom: 20px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* --- HEADER --- */
header {
  background: #fff;
  box-shadow: 0 3px 16px 0 rgba(35,43,43,0.05);
  z-index: 10;
  position: relative;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  padding-top: 14px;
  padding-bottom: 14px;
}
header nav {
  display: flex;
  flex-wrap: wrap;
  gap: 26px;
  margin-left: 30px;
}
header nav a {
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 1rem;
  letter-spacing: 0.02em;
  color: #232B2B;
  padding: 6px 0;
  transition: color 0.18s cubic-bezier(.4,0,.2,1);
  border-bottom: 2px solid transparent;
}
header nav a:hover, header nav a:focus {
  color: #7A7A7A;
  border-bottom: 2px solid #7A7A7A;
}
header img[alt="Unstescape"] {
  height: 42px;
  margin-right: 24px;
}
.btn-primary {
  background: #232B2B;
  color: #fff;
  font-family: 'Roboto Slab', Georgia, serif;
  font-weight: 700;
  border: none;
  padding: 12px 36px;
  border-radius: 30px;
  font-size: 1.1rem;
  box-shadow: 0 3px 16px 0 rgba(35,43,43,0.07);
  transition: background 0.14s, box-shadow 0.22s, transform 0.16s;
  cursor: pointer;
  margin-left: 30px;
  letter-spacing: 0.01em;
  text-align: center;
  outline: none;
  text-decoration: none;
  display: inline-block;
  position: relative;
}
.btn-primary:hover,
.btn-primary:focus {
  background: #7A7A7A;
  color: #fff;
  box-shadow: 0 6px 18px 0 rgba(35,43,43,0.11);
  transform: translateY(-2px) scale(1.025);
}

/* --- MOBILE MENU --- */
.mobile-menu-toggle {
  display: none;
  position: fixed;
  top: 22px;
  right: 24px;
  z-index: 2002;
  background: #232B2B;
  color: #fff;
  font-size: 2rem;
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 50%;
  box-shadow: 0 2px 8px 0 rgba(35,43,43,0.11);
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s;
  outline: none;
}
.mobile-menu-toggle:focus,
.mobile-menu-toggle:hover {
  background: #7A7A7A;
}
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #fff;
  z-index: 2000;
  box-shadow: 0 0 24px 0 rgba(35,43,43,0.22);
  transform: translateX(-100vw);
  transition: transform 0.36s cubic-bezier(.72,.07,.51,.95);
  display: flex;
  flex-direction: column;
  padding-top: 22px;
}
.mobile-menu.active {
  transform: translateX(0);
}
.mobile-menu-close {
  align-self: flex-end;
  background: none;
  color: #232B2B;
  border: none;
  font-size: 2rem;
  margin: 16px 24px 12px 0;
  cursor: pointer;
  transition: color .15s;
  z-index: 2010;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus{
  color: #7A7A7A;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  margin: 32px 0 0 36px;
}
.mobile-nav a {
  color: #232B2B;
  font-family: 'Roboto Slab', Georgia, serif;
  font-size: 1.28rem;
  text-decoration: none;
  padding: 12px 4px;
  border-bottom: 2px solid transparent;
  transition: color 0.16s, border-bottom 0.17s;
}
.mobile-nav a:hover,
.mobile-nav a:focus {
  color: #7A7A7A;
  border-bottom: 2px solid #7A7A7A;
}

@media (max-width: 1000px) {
  header .container nav { display: none; }
  .btn-primary { margin-left: 0; }
  .mobile-menu-toggle { display: flex; }
}
@media (min-width: 1001px) {
  .mobile-menu,
  .mobile-menu-toggle {
    display: none !important;
  }
}

/* --- HERO & CTA --- */
.hero {
  background: linear-gradient(151deg, #f9fafb 60%, #f3f3f3 100%);
  padding: 80px 20px 60px 20px;
  margin-bottom: 48px;
  border-radius: 0 0 32px 32px;
}
.hero .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.hero h1 {
  max-width: 800px;
  font-size: 2.8rem;
  margin-bottom: 24px;
}
.hero p {
  max-width: 600px;
  color: #7A7A7A;
  font-size: 1.2rem;
  margin-bottom: 38px;
}
.cta {
  background: #fff;
  border-radius: 22px;
  box-shadow: 0 3px 14px 0 rgba(35,43,43,0.05);
  padding: 50px 20px;
  text-align: center;
  margin-bottom: 60px;
}
.cta .btn-primary {
  margin-left: 0;
  margin-top: 16px;
}

@media (max-width: 768px) {
  .hero { padding: 50px 6px 34px 6px; }
  .hero h1 { font-size: 2rem; }
  .cta { padding: 34px 8px; }
}

/* --- FEATURES & ARTICLE CARDS --- */
.features-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  margin-top: 24px;
  margin-bottom: 10px;
  justify-content: flex-start;
}
.feature {
  flex: 1 1 240px;
  min-width: 210px;
  background: #F3F3F3;
  border-radius: 14px;
  padding: 30px 20px 18px 20px;
  box-shadow: 0 2px 8px 0 rgba(35,43,43,0.07);
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  transition: box-shadow 0.16s;
}
.feature img {
  height: 40px;
  margin-bottom: 12px;
}
.feature h3 {
  font-size: 1.14rem;
  color: #232B2B;
  margin-bottom: 8px;
}
.feature p {
  font-size: 1rem;
  color: #7A7A7A;
}
.article-list {
  display: flex;
  flex-direction: column;
  gap: 26px;
}
.article-list li {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 1.5px 7px 0 rgba(35,43,43,0.09);
  padding: 26px 24px 18px 20px;
  margin-bottom: 14px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 7px;
  transition: box-shadow 0.16s;
}
.article-list li:last-child {
  margin-bottom: 0;
}
.article-list h3 {
  font-size: 1.11rem;
}
.article-list a {
  color: #232B2B;
  font-weight: 600;
  text-decoration: underline;
  margin-top: 6px;
  transition: color 0.16s;
}
.article-list a:hover,
.article-list a:focus {
  color: #7A7A7A;
}
.category-tag, .article-tag, .topic-tag {
  display: inline-flex;
  align-items: center;
  background: #F3F3F3;
  color: #232B2B;
  font-size: 0.93rem;
  font-family: 'Roboto Slab', Georgia, serif;
  border-radius: 7px;
  padding: 3px 15px;
  font-weight: 600;
  margin-right: 8px;
  margin-bottom: 6px;
  letter-spacing: 0.005em;
}
.topic-tag {
  background: #e7e7e7;
  color: #232B2B;
  margin-right: 12px;
  margin-bottom: 0;
}
.article-filters {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 26px;
}

/* --- PAGINATION --- */
.pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-top: 30px;
}
.pagination span {
  font-weight: bold;
  background: #232B2B;
  color: #fff;
  border-radius: 8px;
  padding: 6px 16px;
}
.pagination a {
  background: #F3F3F3;
  color: #232B2B;
  border-radius: 8px;
  padding: 6px 14px;
  font-weight: 500;
  transition: background 0.14s, color 0.14s;
}
.pagination a:hover, .pagination a:focus {
  background: #232B2B;
  color: #fff;
}

/* --- KEYWORDS SECTIONS --- */
.keyword-list {
  display: flex;
  flex-direction: column;
  gap: 13px;
  margin-top: 14px;
  background: #F3F3F3;
  border-radius: 10px;
  padding: 20px 18px 13px 24px;
  box-shadow: 0 1px 7px 0 rgba(35,43,43,0.05);
}
.keyword-list li {
  font-size: 1rem;
  color: #232B2B;
  line-height: 1.6;
}

/* --- TEAM SECTION (About Page) --- */
.team-list {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  margin-top: 22px;
  justify-content: flex-start;
}
.team-member {
  flex: 1 1 230px;
  min-width: 210px;
  background: #F3F3F3;
  border-radius: 14px;
  padding: 25px 18px 17px 18px;
  box-shadow: 0 2px 8px 0 rgba(35,43,43,0.07);
  transition: box-shadow 0.17s;
}
.team-member h3 {
  font-family: 'Roboto Slab', Georgia, serif;
  font-size: 1.08rem;
  margin-bottom: 7px;
}
.team-member p,
.team-member strong {
  font-size: 0.97rem;
  color: #7A7A7A;
}
.team-member strong {
  font-weight: 600;
}

/* --- CONTACT SECTIONS --- */
.contact-info, .contact-details, .footer-contact {
  display: flex;
  flex-direction: column;
  gap: 15px;
  font-size: 1rem;
  color: #232B2B;
}
.contact-info img,
.contact-details img,
.footer-contact img {
  vertical-align: middle;
  height: 20px;
  margin-right: 8px;
  opacity: 0.75;
}
.address {
  margin-bottom: 14px;
}
.map-placeholder {
  background: #e7e7e7;
  color: #7A7A7A;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  min-height: 120px;
  margin-bottom: 3px;
}

/* --- THANK YOU SECTION --- */
.thank-you {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 420px;
}

@media (max-width: 884px) {
  .features-grid, .team-list {
    flex-direction: column;
    gap: 21px;
  }
}
@media (max-width: 650px) {
  .section { padding: 22px 2px; margin-bottom: 36px; }
}

/* --- FOOTER --- */
footer {
  background: #232B2B;
  color: #fff;
  padding: 50px 0 32px 0;
  font-size: 1rem;
  border-radius: 30px 30px 0 0;
  box-shadow: 0 -2px 17px 0 rgba(35,43,43,0.06);
}
footer .container {
  display: flex;
  flex-direction: column;
  gap: 26px;
  align-items: flex-start;
  justify-content: flex-start;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-nav a {
  color: #fff;
  opacity: 0.8;
  text-decoration: underline;
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 1rem;
  transition: opacity 0.14s;
}
.footer-nav a:hover, .footer-nav a:focus {
  opacity: 1;
}
.footer-contact {
  color: #fff;
  font-size: 0.97rem;
  gap: 4px;
}
footer p {
  color: #F3F3F3;
  opacity: 0.82;
  font-size: 0.95rem;
  margin-top: 10px;
}
footer img {
  filter: grayscale(1) brightness(1.5);
}
@media (max-width: 650px) {
  footer .container { padding-left: 9px; padding-right: 9px; }
}

/* --- COOKIE CONSENT BANNER --- */
.cookie-banner {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100vw;
  background: #fff;
  color: #232B2B;
  border-top: 1.5px solid #e3e3e3;
  box-shadow: 0 -2px 22px 0 rgba(35,43,43,0.12);
  z-index: 9000;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 30px;
  padding: 28px 14px 22px 14px;
  font-size: 1rem;
  animation: cookie-banner-in 0.45s cubic-bezier(.32,1.57,.58,1) forwards;
}
@keyframes cookie-banner-in {
  0% { transform: translateY(100px); opacity:0; }
  100% { transform: translateY(0); opacity:1; }
}
.cookie-banner p {
  max-width: 460px;
  margin: 0;
  color: #232B2B;
}
.cookie-banner .cookie-actions {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 16px;
}
.cookie-banner .cookie-btn {
  border: none;
  border-radius: 22px;
  padding: 10px 28px;
  font-size: 1rem;
  font-family: 'Roboto Slab', Georgia, serif;
  font-weight: 600;
  margin-left: 0;
  cursor: pointer;
  transition: background 0.13s, color 0.13s;
  outline: none;
}
.cookie-btn.accept {
  background: #232B2B;
  color: #fff;
  box-shadow: 0 3px 11px 0 rgba(35,43,43,0.08);
}
.cookie-btn.accept:hover, .cookie-btn.accept:focus {
  background: #7A7A7A;
}
.cookie-btn.reject {
  background: #F3F3F3;
  color: #232B2B;
  border: 1px solid #7a7a7a30;
}
.cookie-btn.reject:hover, .cookie-btn.reject:focus {
  background: #e7e7e7;
}
.cookie-btn.settings {
  background: transparent;
  border: 1.25px solid #232B2B;
  color: #232B2B;
}
.cookie-btn.settings:hover, .cookie-btn.settings:focus {
  background: #F3F3F3;
}
@media (max-width: 650px) {
  .cookie-banner { flex-direction: column; gap: 15px; }
}

/* --- COOKIE SETTINGS MODAL --- */
.cookie-modal-overlay {
  position: fixed;
  z-index: 10000;
  left: 0; right: 0; top: 0; bottom: 0;
  background: rgba(35,43,43,0.38);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fade-in 0.25s cubic-bezier(.2,.73,.4,.97) forwards;
}
@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
.cookie-modal {
  background: #fff;
  color: #232B2B;
  border-radius: 20px;
  box-shadow: 0 4px 30px 0 rgba(35,43,43,0.15);
  max-width: 400px;
  width: 96vw;
  padding: 36px 28px 26px 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
  animation: modal-in 0.29s cubic-bezier(.3,1.45,.25,0.95) forwards;
}
@keyframes modal-in {
  from { transform: translateY(60px); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}
.cookie-modal h2 {
  font-size: 1.28rem;
  margin-bottom: 14px;
}
.cookie-modal label {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 14px;
  font-size: 1rem;
}
.cookie-modal input[type="checkbox"] {
  accent-color: #232B2B;
  width: 19px; height: 19px;
}
.cookie-modal .modal-actions {
  display: flex;
  flex-direction: row;
  gap: 16px;
  margin-top: 18px;
}
.cookie-modal .modal-close {
  background: none;
  border: none;
  font-size: 1.45rem;
  color: #232B2B;
  position: absolute;
  right: 16px; top: 18px;
  cursor: pointer;
  transition: color 0.13s;
}
.cookie-modal .modal-close:focus,
.cookie-modal .modal-close:hover {
  color: #7A7A7A;
}
.cookie-modal-category {
  display: flex;
  align-items: baseline;
  gap: 9px;
  margin-bottom: 8px;
}
.cookie-modal-category.essential{
  opacity: 0.72;
}

/* --- RESPONSIVE SECTION FLEX ADJUSTMENTS --- */
@media (max-width: 900px) {
  .content-grid, .features-grid, .team-list, .card-container, .article-list, .footer-nav {
    flex-direction: column;
    gap: 20px !important;
  }
  .text-image-section { flex-direction: column; gap: 22px; }
}
@media (max-width: 768px) {
  .text-image-section { flex-direction: column; gap: 17px; }
  .footer-nav, .footer-contact { align-items: flex-start; }
}

/* --- MICRO-INTERACTIONS --- */
@media (hover: hover) {
  .btn-primary:hover, .btn-primary:focus {
    transform: translateY(-2px) scale(1.04);
    background: #7A7A7A;
    color: #fff;
  }
  .article-list li:hover {
    box-shadow: 0 4px 24px 0 rgba(35,43,43,0.16);
  }
  .feature:hover, .team-member:hover {
    box-shadow: 0 4px 18px 0 rgba(35,43,43,0.12);
  }
}

/* --- SCROLLBARS (subtle stylization) --- */
body::-webkit-scrollbar { width: 10px; background: #f3f3f3; }
body::-webkit-scrollbar-thumb { background: #ededed; border-radius: 6px; }

/* --- OVERRIDES FOR DARK TEXT ON LIGHT BG IN TESTIMONIALS --- */
.testimonial-card {
  color: #232B2B;
  background: #F3F3F3;
  box-shadow: 0 1.5px 12px 0 rgba(35,43,43,0.08);
}
.testimonial-card strong {
  color: #232B2B;
}

/* --- UTILITIES --- */
.mt-24 { margin-top: 24px !important; }
.mb-24 { margin-bottom: 24px !important; }

/* --- PRINT & ACCESSIBILITY --- */
@media print {
  header, footer, .mobile-menu, .cookie-banner, .cookie-modal-overlay { display: none !important; }
  body { color: #232B2B; background: #fff; }
}

/* --- END --- */
