/* RESET & BASE ----------------------------------------- */
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 { box-sizing: border-box; height: 100%; }
body { box-sizing: border-box; min-height: 100vh; background: #ffffff; }
*, *:before, *:after { box-sizing: inherit; }

/* Remove list styles */
ul, ol { list-style: none; padding: 0; margin: 0; }
a { background: none; color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; border: none; display: block; }

/* FONT FACE ---------------------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@600;700&family=Roboto:wght@400;500;700&display=swap');

body {
  font-family: 'Roboto', Arial, sans-serif;
  color: #183153;
  font-size: 16px;
  background: #fff;
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  color: #183153;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.015em;
}
h1 { font-size: 2.25rem; margin-bottom: 24px; }
h2 { font-size: 1.75rem; margin-bottom: 16px; }
h3 { font-size: 1.3rem; margin-bottom: 8px; font-weight: 600; }
h4, h5, h6 { font-size: 1rem; }
p, .tagline { font-size: 1.1rem; margin-bottom: 18px; }
strong { font-weight: 700; color: #183153; }

/* TYPO SIZES: 14,16,18,24,32,48px */
.section h1 { font-size: 2.25rem; }
.section h2 { font-size: 1.75rem; }
.section h3 { font-size: 1.3rem; }

@media (max-width: 768px) {
  h1 { font-size: 1.4rem; }
  h2 { font-size: 1.16rem; }
  h3 { font-size: 1rem; }
  .section > .container { padding: 0 12px; }
}

/* LAYOUT CONTAINERS ------------------------------------ */
.container {
  width: 100%; max-width: 1120px;
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
  flex-direction: column;
}
@media (max-width: 768px) {
  .container { padding: 0 12px; }
}

.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 0 auto;
}

/* SECTIONS --------------------------------------------- */
section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
}
@media (max-width: 600px) {
  section { padding: 24px 4px; margin-bottom: 42px; }
}

/* FLEX UTILITIES --------------------------------------- */
.card-container {
  display: flex; flex-wrap: wrap; gap: 24px;
}
.card {
  margin-bottom: 20px; position: relative;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 16px rgba(24, 49, 83, 0.07);
  padding: 32px 24px;
  flex: 1 1 320px;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s;
}
.card:hover {
  box-shadow: 0 2px 24px rgba(24,49,83,0.11);
}

/* Utility for flex content cards (used in feature-grid, service-cards) */
.feature-grid,
.service-cards,
.services-list,
.event-summary {
  display: flex; flex-wrap: wrap; gap: 24px; justify-content: flex-start;
}
.feature-grid li,
.service-cards > div,
.services-list > li,
.event-summary > li {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 16px rgba(24,49,83,0.07);
  padding: 28px 22px 24px 22px;
  flex: 1 1 240px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  transition: box-shadow 0.17s;
}
.feature-grid li:hover, .service-cards > div:hover, .services-list > li:hover, .event-summary > li:hover {
  box-shadow: 0 2px 22px rgba(24,49,83,0.13);
}
.feature-grid img, .service-cards img, .services-list img {
  height: 44px; width: 44px; margin-bottom: 8px;
}

@media (max-width: 900px) {
  .feature-grid, .service-cards, .services-list, .event-summary {
    gap: 16px;
  }
  .feature-grid li,
  .service-cards > div,
  .services-list > li,
  .event-summary > li {
    flex: 1 1 180px;
    padding: 18px 12px 18px 12px;
  }
}
@media (max-width: 700px) {
  .feature-grid, .service-cards, .services-list,.event-summary {
    flex-direction: column;
    gap: 14px;
  }
  .feature-grid li, .service-cards > div, .services-list > li, .event-summary > li {
    flex: 1 1 100%;
    padding: 16px 10px;
  }
}

/* TEXT/IMAGE FLEX SECTIONS ---------------------------------- */
.text-image-section {
  display: flex; align-items: center; gap: 30px; flex-wrap: wrap;
}
@media (max-width: 768px) {
  .text-image-section { flex-direction: column; gap: 18px; }
}
.text-section {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* TESTIMONIALS ---------------------------------- */
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px;
  margin-bottom: 20px;
  background: #f6f8fa;
  color: #183153;
  border-radius: 12px;
  box-shadow: 0 1px 8px rgba(24,49,83,0.06);
  transition: box-shadow 0.17s, background 0.17s;
  border-left: 4px solid #F4D160;
}
.testimonial-card p {
  color: #183153;
  font-size: 1.1rem;
  font-style: italic;
  margin-bottom: 0;
}
.testimonial-card strong {
  font-size: 1rem;
  font-weight: 600;
  color: #183153;
  opacity: 0.82;
}
.testimonial-card:hover {
  box-shadow: 0 4px 18px rgba(24,49,83,0.13);
  background: #fdfced;
}

/* TABLES ----------------------------------- */
table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  margin-bottom: 32px;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(24,49,83,0.08);
}
thead tr {
  background: #f4f6fa;
}
th, td {
  padding: 15px 18px;
  text-align: left;
}
th {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 1rem;
}
tbody tr:nth-child(even) { background: #f9fafb; }
td ul { margin-left: 12px; margin-bottom: 0; }

@media (max-width: 800px) {
  table, thead, tbody, th, td, tr {
    display: block;
  }
  tr {
    margin-bottom: 16px;
  }
  th, td {
    padding: 8px 10px;
  }
  thead { display: none; }
  td { border-bottom: 1px solid #ecf0f5; }
}

/* BUTTONS ---------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  min-width: 144px;
  padding: 13px 28px;
  border-radius: 26px;
  border: none;
  outline: none;
  cursor: pointer;
  background: #183153;
  color: #fff;
  box-shadow: 0 1px 2px rgba(24,49,83, 0.07);
  transition: background 0.15s, color 0.15s, box-shadow 0.13s, transform 0.13s;
}
.btn-primary {
  background: #183153;
  color: #fff;
}
.btn-primary:hover, .btn-primary:focus {
  background: #7C9FBF;
  color: #183153;
  transform: translateY(-1px) scale(1.03);
  box-shadow: 0 2px 14px rgba(24,49,83,0.10);
}
.btn-secondary {
  background: #F4D160;
  color: #183153;
}
.btn-secondary:hover, .btn-secondary:focus {
  background: #FFEF96;
  color: #183153;
}
.btn-tertiary {
  background: transparent;
  color: #183153;
  border: 1px solid #7C9FBF;
}
.btn-tertiary:hover {
  background: #f4f6fa;
  border-color: #183153;
}

/* NAVIGATION STYLES -------------------------- */
header {
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 900;
  box-shadow: 0 2px 12px rgba(24,49,83,0.04);
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 28px 12px 28px;
}
header img[alt="WorkNest"] {
  height: 38px;
  margin-right: 24px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 32px;
  font-family: 'Montserrat', Arial, sans-serif;
}
.main-nav a {
  color: #183153;
  font-weight: 500;
  font-size: 1rem;
  text-decoration: none;
  position: relative;
  padding: 6px 3px;
  transition: color 0.14s;
}
.main-nav a:hover, .main-nav a:focus {
  color: #7C9FBF;
}
.main-nav a.active {
  color: #F4D160;
}

/* Hide mobile menu button and mobile menu by default (desktop) */
.mobile-menu-toggle {
  display: none;
}
.mobile-menu {
  display: none;
}

@media (max-width: 1000px) {
  .main-nav { gap: 16px; }
}
@media (max-width: 850px) {
  .main-nav { gap: 8px; font-size: 0.95rem; }
  header .container {
    padding: 11px 8px;
  }
}
@media (max-width: 768px) {
  .main-nav, header .btn {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
    font-size: 2rem;
    background: none;
    border: none;
    color: #183153;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    padding: 6px 14px 6px 6px;
    border-radius: 18px;
    transition: background 0.15s, color 0.15s;
    z-index: 1002;
  }
  .mobile-menu-toggle:active, .mobile-menu-toggle:focus {
    background: #f6f8fa;
    color: #7C9FBF;
  }
  .mobile-menu {
    display: flex;
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    background: rgba(24,49,83,0.97);
    z-index: 2000;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(.77,0,.18,1), opacity 0.2s;
    opacity: 0;
    pointer-events: none;
  }
  .mobile-menu.open {
    transform: translateX(0);
    opacity: 1;
    pointer-events: all;
  }
  .mobile-menu-close {
    display: flex;
    align-self: flex-end;
    background: none;
    border: none;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    padding: 18px;
    margin-right: 8px;
  }
  .mobile-nav {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 40px 24px 24px 32px;
    gap: 20px;
  }
  .mobile-nav a {
    color: #fff;
    font-size: 1.2rem;
    font-family: 'Montserrat', Arial, sans-serif;
    font-weight: 600;
    line-height: 1.8;
    padding: 8px 0;
    transition: color 0.14s, background 0.14s;
    border-radius: 7px;
  }
  .mobile-nav a:hover, .mobile-nav a:focus {
    background: #F4D160;
    color: #183153;
  }
}

/* FOOTER ------------------------------------ */
footer {
  background: #fff;
  border-top: 1.5px solid #f4f5f7;
  padding: 36px 0 40px 0;
}
footer .container {
  flex-direction: row;
  gap: 32px;
  align-items: flex-start;
  flex-wrap: wrap;
  justify-content: space-between;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 13px;
}
.footer-nav a {
  color: #7C9FBF;
  font-size: 1rem;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  transition: color 0.14s;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: #183153;
}
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 0.98rem;
}
.footer-contact a {
  color: #183153;
  text-decoration: underline;
  transition: color 0.13s;
}
.footer-contact a:hover {
  color: #7C9FBF;
}
.footer-social {
  display: flex; align-items: center; justify-content: flex-end;
}
.footer-social img {
  height: 38px;
}
@media (max-width: 900px) {
  footer .container {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
  .footer-social { justify-content: flex-start; }
}

/* COOKIE CONSENT BANNER & MODAL ------------------ */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 2300;
  background: #fff;
  color: #183153;
  box-shadow: 0 -2px 24px rgba(24,49,83,.12);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 36px;
  font-size: 1rem;
}
@media (max-width: 600px) {
  .cookie-banner {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    font-size: 0.97rem;
    padding: 15px 10px;
  }
}
.cookie-banner .cookie-text {
  flex: 1 1 auto;
  color: #183153;
}
.cookie-banner .cookie-actions {
  display: flex;
  gap: 10px;
}
.cookie-banner .btn {
  min-width: 0;
  padding: 8px 18px;
  font-size: 0.95rem;
  border-radius: 18px;
}
.cookie-banner .btn-primary {
  background: #183153; color: #fff;
}
.cookie-banner .btn-primary:hover { background: #7C9FBF; color: #fff; }
.cookie-banner .btn-secondary {
  background: transparent;
  color: #183153;
  border: 1px solid #183153;
}
.cookie-banner .btn-secondary:hover { background: #f6f8fa; }

/* COOKIE MODAL */
.cookie-modal-backdrop {
  position: fixed; left: 0; top: 0; width: 100vw; height: 100vh;
  background: rgba(24, 49, 83, 0.5);
  z-index: 2400;
  display: none;
  align-items: center; justify-content: center;
  transition: opacity 0.2s;
}
.cookie-modal-backdrop.open { display: flex; opacity: 1; }
.cookie-modal {
  background: #fff;
  border-radius: 16px;
  max-width: 400px; width: 94vw;
  padding: 34px 24px 24px 24px;
  box-shadow: 0 8px 44px rgba(24,49,83,.17);
  display: flex; flex-direction: column;
  gap: 17px;
  position: relative;
  animation: cookie-modal-fadein 0.25s both;
}
@keyframes cookie-modal-fadein {
  from { opacity: 0; transform: scale(0.96) translateY(18px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}
.cookie-modal h2 {
  font-size: 1.3rem;
  font-family: 'Montserrat', Arial, sans-serif;
}
.cookie-modal .cookie-category {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 9px;
  font-size: 1rem;
  font-weight: 500;
}
.cookie-modal .cookie-toggle {
  appearance: none;
  width: 38px; height: 21px;
  background: #f0f4f9;
  border-radius: 15px;
  position: relative;
  transition: background 0.2s;
  outline: none;
  cursor: pointer;
}
.cookie-modal .cookie-toggle:checked {
  background: #7C9FBF;
}
.cookie-modal .cookie-toggle:before {
  content: '';
  position: absolute; left: 2.5px; top: 2.5px;
  width: 16px; height: 16px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 1px 2px rgba(24,49,83, 0.06);
  transition: left 0.2s;
}
.cookie-modal .cookie-toggle:checked:before {
  left: 19.5px;
}
.cookie-modal .cookie-modal-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 14px;
}
.cookie-modal .btn {
  font-size: 1rem;
  padding: 8px 20px;
  border-radius: 18px;
  min-width: 0;
}
.cookie-modal .btn-primary {
  background: #183153;
  color: #fff;
}
.cookie-modal .btn-secondary {
  background: transparent;
  color: #183153; border: 1px solid #183153;
}
.cookie-modal .btn-tertiary {
  background: transparent;
  color: #7C9FBF; border: 1px solid #7C9FBF;
}
.cookie-modal .close-modal {
  position: absolute; top: 7px; right: 10px;
  background: none;
  border: none;
  font-size: 1.8rem;
  color: #183153;
  cursor: pointer;
  opacity: 0.56;
  transition: opacity 0.14s;
}
.cookie-modal .close-modal:hover { opacity: 1; }

/* MISC - VISUAL HIERARCHY AND SPACE ----------- */
section:not(:last-child) { border-bottom: 1px solid #f6f7f9; }

ul {
  padding-left: 18px;
  margin-bottom: 18px;
}
ul li {
  margin-bottom: 8px;
  font-size: 1rem;
}
ol { padding-left: 18px; }
ol li { margin-bottom: 8px; }

@media (max-width: 600px) {
  .content-wrapper { gap: 8px; }
}

/* VISUAL ELEMENTS --------------------------- */
[alt="WorkNest"] { max-width: 170px; }
[alt^="WorkNest"] { max-width: 50px; }

/* SPACING ENFORCEMENT */
.card, .testimonial-card, .service-cards > div,
.feature-grid li, .event-summary > li, .services-list > li {
  margin-bottom: 20px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}

/* Card Containers */
.card-container, .feature-grid, .service-cards, .content-grid, .event-summary, .services-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 16px;
}

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

.text-image-section { gap: 30px; }
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* Responsive: convert rows to cols for small screens where appropriate */
@media (max-width: 768px) {
  .content-grid { flex-direction: column; gap: 13px; }
  .feature-grid, .service-cards, .event-summary, .services-list { flex-direction: column; gap: 13px; }
}

/* FORM ELEMENTS (if any in future) ------------ */
input, textarea, select {
  font-family: inherit;
  font-size: 1rem;
  border-radius: 9px;
  border: 1px solid #ecf0f3;
  padding: 9px 12px;
  margin-bottom: 13px;
  width: 100%;
  transition: border 0.13s;
  background: #fcfcfd;
}
input:focus, textarea:focus, select:focus {
  border-color: #7C9FBF;
  outline: none;
  background: #fff;
}

/* MICRO-INTERACTIONS ------------------------ */
a, button, .btn {
  transition: color 0.13s, background 0.15s, box-shadow 0.13s, transform 0.13s;
}

/* FOCUS STYLE --- Accessibility */
a:focus, button:focus, .btn:focus {
  outline: 2.5px dashed #183153;
  outline-offset: 2px;
}

/* THANK YOU PAGE - ADD some breathing space */
.thankyou-wrapper {
  text-align: center;
  margin: 44px auto 0 auto;
  padding: 22px 0 0 0;
}

/* GENERAL MEDIA - REDUCE SPACING FOR SMALLER SCREENS */
@media (max-width: 900px) {
  .container, section { padding-left: 9px; padding-right: 9px; }
}

@media (max-width: 480px) {
  section { padding: 10px 0 28px 0; }
  .section { padding: 14px 7px; }
  .container { padding: 0 3px; }
}

/* Print minimal background on non-screen */
@media print {
  header, nav, footer, .cookie-banner, .mobile-menu { display: none !important; }
  section { margin-bottom: 20px !important; padding: 10px !important; }
  body { background: #fff; color: #000; }
}
