/* CSS RESET & BASIC 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, 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;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
ul, ol {
  list-style: none;
}
img {
  max-width: 100%;
  display: block;
  height: auto;
  vertical-align: middle;
}
a {
  text-decoration: none;
  color: inherit;
}
button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  background: none;
  border: none;
  outline: none;
  padding: 0;
  margin: 0;
}
*, *::before, *::after {
  box-sizing: inherit;
}

body {
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  font-size: 16px;
  background: #fff;
  color: #161616;
  line-height: 1.6;
  min-height: 100vh;
}

/* TYPOGRAPHY */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  letter-spacing: -0.01em;
  color: #111;
  margin-bottom: 16px;
  line-height: 1.15;
  font-weight: 700;
}
h1 {
  font-size: 2.75rem; /* 44px */
  margin-bottom: 24px;
}
h2 {
  font-size: 2rem;
  margin-bottom: 18px;
}
h3 {
  font-size: 1.35rem;
  margin-bottom: 12px;
}
h4 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}
p, ul li, ol li {
  font-size: 1rem;
  margin-bottom: 12px;
}
blockquote {
  font-size: 1.25rem;
  font-style: italic;
  color: #111;
  border-left: 4px solid #222;
  padding-left: 18px;
  margin-bottom: 8px;
}
strong, b {
  color: #111;
}

/* GENERAL SPACING CONTAINERS */
.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 18px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 10px 0 rgba(0,0,0,0.06);
  margin-bottom: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 32px 24px;
  min-width: 240px;
}
.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;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px;
  background: #f5f5f5;
  border-radius: 12px;
  box-shadow: 0 2px 12px 0 rgba(0,0,0,0.04);
  margin-bottom: 20px;
  max-width: 600px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* VISUAL ELEMENTS + MONOCHROME AESTHETIC */
.hero {
  background: #fff;
  color: #111;
  position: relative;
  padding-top: 48px;
  padding-bottom: 48px;
}
.hero .content-wrapper {
  align-items: flex-start;
}
.tagline,
.hero p {
  color: #444;
  font-size: 1.25rem;
  font-weight: 400;
  margin-bottom: 20px;
  letter-spacing: 0;
}
ul, ol {
  padding-left: 0;
}
ul li, ol li {
  position: relative;
  padding-left: 0;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 12px;
}
ul li img, ol li img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  margin-right: 6px;
}
ol {
  counter-reset: num;
}
ol li {
  counter-increment: num;
}

/* Buttons, CTAs, and Links */
.cta-btn, .btn, button, .mobile-menu-toggle, .mobile-menu-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  background: #111;
  color: #fff;
  border-radius: 32px;
  border: none;
  cursor: pointer;
  padding: 12px 32px;
  transition: background 0.22s, color 0.22s, box-shadow 0.22s, transform 0.18s;
  outline: none;
  box-shadow: 0 1px 4px 0 rgba(34,34,34,0.08);
  margin-top: 8px;
}
.cta-btn:hover, .btn:hover, button:hover, .cta-btn:focus, .btn:focus, button:focus {
  background: #fff;
  color: #111;
  box-shadow: 0 2px 16px rgba(34,34,34,0.09);
  outline: 2px solid #111;
  transform: translateY(-2px) scale(1.04);
}

nav a.cta-btn {
  margin-left: 32px;
  margin-bottom: 0;
}

/* NAVIGATION & HEADER */
header {
  width: 100%;
  background: #fff;
  box-shadow: 0 2px 12px 0 rgba(0,0,0,0.04);
  z-index: 90;
  position: sticky;
  top: 0;
}
header nav {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 14px 0;
  flex-wrap: wrap;
}
header nav a {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  color: #222;
  font-weight: 500;
  font-size: 1rem;
  letter-spacing: 0.01em;
  opacity: 0.92;
  padding: 7px 6px;
  border-radius: 3px;
  transition: background 0.16s, color 0.14s, opacity 0.16s;
}
header nav a:hover,
header nav a:focus {
  background: #111;
  color: #fff;
  opacity: 1;
}
header nav a img {
  height: 38px;
  width: auto;
  margin-right: 10px;
}
/* Hide nav on mobile, show burger */
.mobile-menu-toggle {
  display: none;
  background: #111;
  color: #fff;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 2rem;
  line-height: 1;
  align-items: center;
  justify-content: center;
  position: absolute;
  right: 24px;
  top: 12px;
  z-index: 102;
  border: none;
  transition: background 0.18s, color 0.18s;
}
.mobile-menu-toggle:hover,
.mobile-menu-toggle:focus {
  background: #222;
  color: #fff;
}

/* MOBILE MENU */
.mobile-menu {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  position: fixed;
  top: 0;
  left: 0;
  background: #fff;
  box-shadow: 0 10px 28px 0 rgba(0,0,0,0.10);
  width: 100vw;
  height: 100vh;
  transform: translateX(-120%);
  transition: transform 0.36s cubic-bezier(0.4,0,0.2,1);
  z-index: 200;
  padding: 32px 20px 32px 32px;
  overflow-y: auto;
  opacity: 1;
}
.mobile-menu.open {
  transform: translateX(0%);
}
.mobile-menu-close {
  display: flex;
  position: absolute;
  right: 24px;
  top: 24px;
  width: 40px;
  height: 40px;
  font-size: 2rem;
  background: #111;
  color: #fff;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  border: none;
  z-index: 210;
  cursor: pointer;
  transition: background 0.18s, color 0.18s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: #000;
  color: #fff;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 44px;
  width: 100%;
}
.mobile-nav a {
  color: #111;
  background: transparent;
  font-size: 1.15rem;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  padding: 13px 0;
  border-radius: 8px;
  transition: background 0.22s, color 0.22s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #111;
  color: #fff;
}


/* SECTIONS & LAYOUT */
section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.text-section {
  background: #f5f5f5;
  border-radius: 14px;
  box-shadow: 0 2px 16px 0 rgba(0,0,0,0.03);
  padding: 28px 20px;
}
.content-wrapper.text-section {
  align-items: flex-start;
}

.project-list, .blog-post-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 18px;
}
.project-desc {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 12px 0 rgba(0,0,0,0.04);
  padding: 24px 20px;
  min-width: 220px;
  flex: 1 1 260px;
}
.blog-post-list article {
  background: #f7f7f7;
  border-radius: 12px;
  box-shadow: 0 1px 6px 0 rgba(0,0,0,0.03);
  padding: 24px 18px 16px 18px;
  flex: 1 1 260px;
  margin-bottom: 8px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.blog-post-list article h3 {
  margin-bottom: 6px;
}
.blog-post-list article a {
  margin-top: auto;
  color: #111;
  border-bottom: 1px solid #111;
  padding-bottom: 1px;
  font-weight: 500;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  transition: color 0.14s, border-color 0.14s;
}
.blog-post-list article a:hover,
.blog-post-list article a:focus {
  color: #F9A602;
  border-bottom: 1px solid #F9A602;
}

.blog-categories {
  margin-top: 18px;
}
.blog-categories ul {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 7px;
}
.blog-categories li a {
  color: #222;
  border: 1px solid #ccc;
  border-radius: 16px;
  padding: 4px 18px;
  font-size: 1rem;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  transition: border 0.13s, color 0.13s, background 0.13s;
}
.blog-categories li a:hover,
.blog-categories li a:focus {
  border: 1px solid #111;
  background: #111;
  color: #fff;
}

.footer-social {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 18px 0 6px 0;
}
.footer-social a img {
  width: 32px;
  height: 32px;
  filter: grayscale(1);
  opacity: 0.8;
  transition: filter 0.2s, opacity 0.2s;
}
.footer-social a:hover img,
.footer-social a:focus img {
  filter: grayscale(0);
  opacity: 1;
}

.footer-contact-details {
  margin-top: 10px;
  margin-bottom: 14px;
  font-size: 1em;
  color: #444;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.footer-contact-details p img {
  width: 22px;
  height: 22px;
  margin-right: 7px;
  vertical-align: middle;
}


/* NEWSLETTER */
.newsletter-signup {
  background: #f5f5f5;
  border-radius: 10px;
  padding: 18px 20px;
  box-shadow: 0 1px 6px 0 rgba(0,0,0,0.03);
  margin-top: 16px;
  margin-bottom: 16px;
}
.newsletter-signup h3 {
  font-size: 1.22rem;
  margin-bottom: 7px;
}

/* FOOTER */
footer {
  background: #111;
  color: #eaeaea;
  padding: 46px 0 20px 0;
  border-top: 3px solid #111;
}
footer .content-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: flex-start;
}
footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  color: #fff;
}
footer nav a {
  color: #eaeaea;
  opacity: 0.85;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  font-weight: 500;
  padding: 4px 4px;
  border-radius: 3px;
  transition: background 0.13s, color 0.13s, opacity 0.13s;
}
footer nav a:hover, footer nav a:focus {
  background: #fff;
  color: #111;
  opacity: 1;
}
footer .newsletter-signup {
  background: #191919;
  color: #ececec;
  box-shadow: none;
}
.footer-copyright {
  margin-top: 28px;
  color: #aaa;
  font-size: 0.92rem;
}
footer a img {
  height: 30px;
  width: auto;
  margin-bottom: 5px;
}

/* Cookie Consent Banner */
.cookie-banner {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100vw;
  z-index: 300;
  background: #222;
  color: #fff;
  box-shadow: 0 -2px 16px 0 rgba(0,0,0,0.13);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 22px 10px 18px 10px;
  gap: 18px;
  animation: slideUpCookie 0.36s ease-in;
}
@keyframes slideUpCookie {
  from { transform: translateY(100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.cookie-banner p, .cookie-banner span {
  color: #fff;
  font-size: 1rem;
}
.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 4px;
}
.cookie-actions .cookie-btn {
  background: #fff;
  color: #111;
  border-radius: 28px;
  padding: 8px 22px;
  font-size: 1em;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: background 0.18s, color 0.18s, box-shadow 0.16s;
}
.cookie-actions .cookie-btn:hover, .cookie-actions .cookie-btn:focus {
  background: #F9A602;
  color: #111;
}
.cookie-actions .cookie-btn-settings {
  background: #111;
  color: #fff;
  border: 1px solid #fff;
}
.cookie-actions .cookie-btn-settings:hover, .cookie-actions .cookie-btn-settings:focus {
  background: #242424;
  color: #fff;
  border: 1px solid #F9A602;
}

/* Cookie Banner Modal */
.cookie-modal-bg {
  display: none;
  position: fixed;
  z-index: 400;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(20, 20, 20, 0.70);
  align-items: center;
  justify-content: center;
}
.cookie-modal-bg.open { display: flex; }
.cookie-modal {
  background: #fff;
  color: #222;
  border-radius: 18px;
  padding: 36px 28px;
  max-width: 420px;
  width: 90vw;
  box-shadow: 0 4px 22px 0 rgba(0,0,0,0.20);
  display: flex;
  flex-direction: column;
  gap: 22px;
  animation: modalFadeIn 0.36s cubic-bezier(0.36,1,0.22,1);
}
@keyframes modalFadeIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}
.cookie-modal h3 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1.3rem;
  margin-bottom: 0;
}
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.cookie-category {
  background: #f5f5f5;
  border-radius: 10px;
  padding: 13px 17px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 1rem;
  margin-bottom: 3px;
}
.cookie-category label {
  font-weight: 400;
  color: #111;
  margin-left: 8px;
}
.cookie-category input[type="checkbox"]:disabled + label {
  color: #aaa;
  opacity: 0.72;
}
.cookie-modal-actions {
  display: flex;
  gap: 14px;
  margin-top: 6px;
}
.cookie-modal-actions button {
  background: #111;
  color: #fff;
  border-radius: 25px;
  border: none;
  padding: 9px 26px;
  font-size: 1rem;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 600;
  transition: background 0.17s, color 0.17s;
  cursor: pointer;
}
.cookie-modal-actions button:hover, .cookie-modal-actions button:focus {
  background: #F9A602;
  color: #111;
}

@media (max-width: 1200px) {
  .container {
    max-width: 970px;
  }
}
@media (max-width: 1050px) {
  .container {
    max-width: 90vw;
  }
}

/* RESPONSIVE DESIGN: MOBILE FIRST WITH FLEXBOX */
@media (max-width: 992px) {
  .content-wrapper, .section, .text-section {
    padding-left: 10px;
    padding-right: 10px;
  }
  .project-list, .blog-post-list, .content-grid, .card-container {
    gap: 14px;
  }
  .footer-contact-details {
    font-size: 0.97em;
  }
}
@media (max-width: 850px) {
  h1 {
    font-size: 2rem;
  }
  h2 {
    font-size: 1.45rem;
  }
  .container {
    max-width: 97vw;
  }
  .project-desc, .blog-post-list article {
    min-width: 180px;
    font-size: 1rem;
  }
}
@media (max-width: 768px) {
  .container {
    padding-left: 6px;
    padding-right: 6px;
  }
  header nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
  .hero {
    padding-top: 30px;
    padding-bottom: 30px;
  }
  .content-wrapper, section, .text-section {
    padding-right: 0;
    padding-left: 0;
    gap: 12px;
  }
  .project-list, .card-container, .blog-post-list, .content-grid {
    flex-direction: column;
    gap: 12px;
  }
  footer .content-wrapper {
    flex-direction: column;
    gap: 18px;
  }
}
@media (max-width: 600px) {
  .hero, .section {
    padding: 25px 3vw;
  }
  .testimonial-card {
    max-width: 100vw;
    padding: 16px 7px;
  }
  .newsletter-signup {
    padding: 10px 6px;
  }
  .cookie-modal {
    padding: 14px 8px;
  }
}
@media (max-width: 560px) {
  .text-image-section {
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
  }
}
@media (max-width: 420px) {
  h1 {font-size: 1.2rem;}
  h2 {font-size: 1rem;}
  .hero, .section, .text-section {
    padding: 8px 0 !important;
  }
}

/* MICRO-INTERACTIONS */
.card, .project-desc, .blog-post-list article, .testimonial-card, .text-section {
  transition: box-shadow 0.23s, background 0.20s, transform 0.22s;
}
.card:hover, .project-desc:hover, .blog-post-list article:hover, .testimonial-card:hover, .text-section:focus-within {
  box-shadow: 0 4px 32px 0 rgba(30,30,30,0.09);
  background: #fafafa;
  transform: translateY(-2px) scale(1.01);
}

/* ACCESSIBLE FOCUS OUTLINE */
button:focus, .cta-btn:focus, input:focus, a:focus, .cookie-btn:focus, .mobile-menu-close:focus {
  outline: 2px solid #F9A602;
  outline-offset: 1px;
}

/* VISUAL HIERARCHY EXTRAS */
.section > .container > .content-wrapper > h2 {
  margin-top: 0;
  margin-bottom: 14px;
}

/* MISC */
::-webkit-scrollbar {
  width: 7px;
  background: #eee;
  border-radius: 10px;
}
::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 18px;
}

/* COLOR UTILITIES: for monochrome contrast */
.bg-light {
  background: #fff;
}
.bg-dark {
  background: #111;
  color: #fff;
}

.text-dark {
  color: #111;
}
.text-gray {
  color: #444;
}
.text-light {
  color: #fff;
}

/* HIDE/SHOW UTILS */
.hide {
  display: none !important;
}

.show {
  display: flex !important;
}
