/* =====================================================
   0. CSS Reset & Base Structure
   ===================================================== */
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;
  box-sizing: border-box;
}
html {
  font-size: 16px;
  scroll-behavior: smooth;
}
body {
  font-family: 'Roboto', Arial, sans-serif;
  color: #18191C;
  background: #fafbfc;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  font-size: 1rem;
  background: #fff;
}

img, svg {
  max-width: 100%;
  display: block;
}
ul, ol {
  margin-left: 24px;
}
*, *:before, *:after {
  box-sizing: inherit;
}
:focus {
  outline: 2px solid #0A2A5A;
  outline-offset: 2px;
}

/* =====================================================
   1. Typography
   ===================================================== */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  color: #0a0a0a;
  letter-spacing: -0.01em;
  line-height: 1.2;
}
h1 {
  font-size: 2.5rem;
  margin-bottom: 20px;
}
h2 {
  font-size: 2rem;
  margin-bottom: 18px;
}
h3 {
  font-size: 1.375rem;
  margin-bottom: 12px;
}
h4 {
  font-size: 1.125rem;
  margin-bottom: 8px;
}
p, li {
  color: #222326;
  font-size: 1.0625rem;
  line-height: 1.65;
  margin-bottom: 15px;
}
small {
  color: #979797;
  font-size: .95rem;
}
strong {
  color: #0a0a0a;
  font-weight: 700;
}
a {
  color: #0A2A5A;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover,
a:focus {
  color: #282828;
  text-decoration: underline;
}

/* Monochrome Sophisticated */
blockquote {
  color: #0a0a0a;
  border-left: 5px solid #18191c;
  background: #f8f7fa;
  margin: 28px 0;
  padding: 18px 22px;
  font-size: 1.15rem;
  font-style: italic;
}

/* =====================================================
   2. Container and Layout
   ===================================================== */
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}
main {
  width: 100%;
  min-height: 55vh;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 100%;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(24,28,32,0.08);
}

@media (max-width: 1024px) {
  .container {
    max-width: 100%;
    padding: 0 14px;
  }
}
@media (max-width: 768px) {
  .section {
    margin-bottom: 36px;
    padding: 24px 6px;
  }
  .content-wrapper {
    gap: 14px;
  }
}

/* =====================================================
   3. Header & Navigation
   ===================================================== */
header {
  width: 100%;
  background: #fff;
  border-bottom: 1px solid #ececec;
  z-index: 11;
  position: relative;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 82px;
}
.main-nav {
  display: flex;
  gap: 32px;
  align-items: center;
}
.main-nav a {
  color: #232323;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  position: relative;
  padding: 8px 0;
  transition: color 0.18s;
}
.main-nav a:hover,
.main-nav a:focus {
  color: #0A2A5A;
}
.primary-cta {
  background: #0A2A5A;
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  padding: 10px 26px;
  border-radius: 24px;
  box-shadow: 0 2px 4px rgba(10,42,90,0.07);
  transition: background 0.18s, color 0.18s, transform 0.15s;
  border: none;
  outline: none;
  display: inline-block;
  margin-left: 14px;
  letter-spacing: 0.02em;
}
.primary-cta:hover,
.primary-cta:focus {
  background: #232323;
  color: #F2BE5C;
  transform: translateY(-2px) scale(1.04);
}
.secondary-cta {
  color: #0A2A5A;
  background: none;
  border: 2px solid #0A2A5A;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  padding: 8px 22px;
  border-radius: 22px;
  margin-top: 16px;
  transition: background 0.18s, color 0.18s, border-color 0.18s;
  text-align: center;
  display: inline-block;
}
.secondary-cta:hover,
.secondary-cta:focus {
  color: #fff;
  background: #0A2A5A;
  border-color: #0A2A5A;
}

@media (max-width: 970px) {
  .main-nav {
    gap: 14px;
  }
  .primary-cta {
    margin-left: 6px;
    padding: 9px 18px;
    font-size: 0.99rem;
  }
}

/* =====================
   4. Flex Spacing Utilities & Cards
   ===================== */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 4px 18px rgba(24,28,32,0.09);
  margin-bottom: 20px;
  position: relative;
  overflow: hidden;
  padding: 26px 22px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 250px;
  min-height: 120px;
  transition: box-shadow 0.22s, transform 0.23s;
}
.card:hover {
  box-shadow: 0 8px 32px rgba(24,28,32,0.16);
  transform: translateY(-2px) scale(1.015);
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
}

.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;
}

@media (max-width: 768px) {
  .card-container, .content-grid, .text-image-section {
    flex-direction: column;
    gap: 18px;
  }
}

/* =====================
  5. Hero Section
  ===================== */
.hero {
  background: linear-gradient(98deg, #fff 50%, #f8f7fa 100%);
  border-radius: 0 0 28px 28px;
  box-shadow: 0 4px 26px rgba(24,28,32,0.04);
  padding: 54px 0 54px 0;
  margin-bottom: 54px;
}
.hero h1 {
  color: #0A2A5A;
  font-size: 2.8rem;
  letter-spacing: -0.03em;
}
.hero p {
  font-size: 1.25rem;
  color: #232323;
  margin-bottom: 32px;
}
.hero .primary-cta {
  margin-top: 12px;
}
@media (max-width: 768px) {
  .hero {
    padding: 38px 0 31px 0;
    margin-bottom: 30px;
    border-radius: 0 0 16px 16px;
  }
  .hero h1 {
    font-size: 1.7rem;
  }
  .hero p {
    font-size: 1.09rem;
    margin-bottom: 20px;
  }
}

/* =====================
   6. Features & Services Cards
   ===================== */
.features-grid, .service-overview-grid, .service-cards, .project-list, .blog-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 14px;
}
.feature, .service-card, .service-item, .project-item, .blog-preview {
  background: #fafbfc;
  border-radius: 12px;
  box-shadow: 0 2px 16px rgba(24,28,32,0.08);
  padding: 24px 20px 22px 20px;
  min-width: 240px;
  flex: 1 0 260px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 20px;
  transition: box-shadow 0.22s, transform 0.22s;
}
.feature img, .service-card img {
  height: 48px;
  width: 48px;
  margin-bottom: 9px;
}
.feature h3, .service-card h3, .service-item h3 {
  font-size: 1.20rem;
  color: #0A2A5A;
  margin-bottom: 8px;
}
.feature p, .service-card p, .service-item p, .project-item p {
  color: #222326;
  font-size: 1.08125rem;
}
.price-label, .service-price {
  color: #444;
  background: #f4f4f4;
  border-radius: 8px;
  font-size: 1rem;
  padding: 2px 10px;
  font-weight: 600;
  margin-top: 8px;
}
.feature:hover, .service-card:hover, .service-item:hover, .blog-preview:hover, .project-item:hover {
  box-shadow: 0 8px 28px rgba(24,28,32,0.11);
  transform: translateY(-2px) scale(1.018);
}

@media (max-width: 900px) {
  .features-grid, .service-overview-grid, .service-cards, .project-list, .blog-list {
    flex-direction: column;
    gap: 18px;
  }
}

/* =====================
   7. Testimonial Cards and Review Sections
   ===================== */
.testimonials {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 12px;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px;
  background: #fafbfc;
  border-radius: 14px;
  box-shadow: 0 2px 16px rgba(24,28,32,0.08);
  transition: box-shadow 0.20s, transform 0.20s;
  min-width: 260px;
  flex: 1 0 280px;
  margin-bottom: 20px;
}
.testimonial-card p {
  color: #121212;
  font-size: 1.13rem;
  margin-bottom: 12px;
}
.client-name {
  font-weight: 700;
  color: #0A2A5A;
  font-size: 1.12rem;
}
.client-location {
  font-size: 0.98rem;
  color: #676767;
}
.testimonial-card:hover {
  box-shadow: 0 8px 24px rgba(24,28,32,0.11);
  transform: translateY(-2px) scale(1.015);
}

@media (max-width: 900px) {
  .testimonials {
    flex-direction: column;
    gap: 18px;
  }
  .testimonial-card {
    min-width: 0;
  }
}

/* =====================
   8. Forms (Contact, Newsletter)
   ===================== */
form {
  width: 100%;
  max-width: 480px;
  display: flex;
  flex-direction: column;
  gap: 19px;
  padding: 18px 0;
}
input, textarea {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1.05rem;
  padding: 10px 12px;
  border-radius: 7px;
  border: 1px solid #bfc1c4;
  background: #f8f7fa;
  color: #222326;
  transition: border 0.17s;
}
input:focus, textarea:focus {
  border: 1.5px solid #0A2A5A;
  background: #fff;
}
label {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  color: #18191c;
  font-size: 1.01rem;
  margin-bottom: 3px;
}
button[type="submit"],
form button {
  background: #0A2A5A;
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.06rem;
  font-weight: 700;
  padding: 9px 28px;
  margin-top: 6px;
  border-radius: 20px;
  border: none;
  cursor: pointer;
  transition: background 0.20s, color 0.17s, transform 0.17s;
  box-shadow: 0 2px 7px rgba(10,42,90,0.07);
}
button[type="submit"]:hover, form button:hover {
  background: #232323;
  color: #F2BE5C;
  transform: translateY(-1px) scale(1.03);
}
.subscription-form {
  display: flex;
  gap: 15px;
  align-items: flex-end;
  flex-wrap: wrap;
  margin-bottom: 9px;
}
.subscription-form input[type="email"] {
  flex: 1 1 120px;
}
.newsletter-highlight {
  color: #767676;
  font-size: 0.99rem;
  margin-top: 10px;
}

@media (max-width: 600px) {
  form {
    max-width: 100%;
  }
  .subscription-form {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
}

/* =====================
   9. Footer
   ===================== */
footer {
  width: 100%;
  background: #18191c;
  color: #fff;
  padding: 34px 0 18px 0;
  margin-top: 40px;
}
footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}
.footer-nav {
  display: flex;
  gap: 26px;
  flex-wrap: wrap;
  margin: 12px 0;
}
.footer-nav a {
  color: #ececec;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  font-size: 1rem;
  transition: color 0.15s;
}
.footer-nav a:hover,
.footer-nav a:focus {
  color: #F2BE5C;
}
.footer-contact {
  color: #b4b4b4;
  font-size: 0.97rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin: 6px 0;
}
.footer-contact a {
  color: #F2BE5C;
  text-decoration: underline;
}
footer small {
  color: #6b6b6b;
  font-size: .97rem;
}

@media (max-width: 800px) {
  footer .container {
    gap: 17px;
  }
  .footer-nav {
    gap: 16px;
    flex-wrap: wrap;
  }
}

/* =====================
   10. Blog & Project List Previews
   ===================== */
.blog-list, .project-list {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
}
.blog-preview, .project-item {
  background: #fafbfc;
  border-radius: 11px;
  box-shadow: 0 2px 14px rgba(24,28,32,0.07);
  padding: 21px 16px 19px 16px;
  flex: 1 0 270px;
  min-width: 200px;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.19s, transform 0.18s;
}
.blog-category {
  background: #e3e3e3;
  color: #0A2A5A;
  padding: 2px 10px;
  border-radius: 14px;
  font-size: .98rem;
  font-weight: 500;
  margin-top: 8px;
}

@media (max-width: 900px) {
  .blog-list, .project-list {
    flex-direction: column;
    gap: 14px;
  }
  .blog-preview, .project-item {
    min-width: 0;
  }
}

/* =====================
   11. Thanks Page
   ===================== */
.thanks {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 55vh;
}
.thanks .primary-cta {
  margin-top: 20px;
}

/* =====================
   12. Mobile Burger Menu
   ===================== */
.mobile-menu-toggle {
  display: none;
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 111;
  background: #fff;
  border: 2px solid #0A2A5A;
  color: #0A2A5A;
  font-size: 2rem;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  box-shadow: 0 2px 7px rgba(10,42,90,0.10);
}
.mobile-menu-toggle:focus,
.mobile-menu-toggle:hover {
  background: #F2BE5C;
  color: #0a0a0a;
}
.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(10, 10, 10, 0.93);
  z-index: 210;
  display: flex;
  flex-direction: column;
  transform: translateX(105vw);
  transition: transform 0.38s cubic-bezier(.72,.02,.35,1.43);
  opacity: 0;
  pointer-events: none;
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: all;
}
.mobile-menu-close {
  align-self: flex-end;
  background: none;
  border: none;
  color: #F8F7FA;
  font-size: 2.1rem;
  margin: 21px 24px 0 0;
  cursor: pointer;
  z-index: 222;
  transition: color 0.2s;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  color: #F2BE5C;
}
.mobile-menu nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 26px;
  margin: 56px 0 0 36px;
}
.mobile-nav a {
  color: #F8F7FA;
  font-size: 1.25rem;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  letter-spacing: 0.015em;
  padding: 8px 0;
  transition: color 0.16s;
}
.mobile-nav a:hover,
.mobile-nav a:focus {
  color: #F2BE5C;
  text-decoration: underline;
}

@media (max-width: 1024px) {
  .main-nav, .primary-cta {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
}
@media (min-width: 1025px) {
  .mobile-menu, .mobile-menu-toggle {
    display: none !important;
  }
}

/* =====================
   13. Cookie Consent Banner and Modal
   ===================== */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  width: 100vw;
  background: #232323;
  color: #fafbfc;
  z-index: 1221;
  box-shadow: 0 -4px 22px rgba(24,28,32,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  padding: 18px 10vw 18px 10vw;
  font-size: 1rem;
  flex-wrap: wrap;
  transition: transform 0.39s cubic-bezier(.7,.23,.29,.78), opacity 0.3s;
  transform: translateY(100%);
  opacity: 0;
}
.cookie-banner.visible {
  transform: translateY(0);
  opacity: 1;
}
.cookie-banner .cookie-buttons {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}
.cookie-banner button {
  background: #fff;
  color: #232323;
  border: none;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  padding: 7px 19px;
  border-radius: 15px;
  cursor: pointer;
  transition: background 0.17s, color 0.17s;
  margin-left: 2px;
}
.cookie-banner button.cookie-accept {
  background: #0A2A5A;
  color: #fff;
}
.cookie-banner button.cookie-accept:hover,
.cookie-banner button.cookie-accept:focus {
  background: #F2BE5C;
  color: #0a0a0a;
}
.cookie-banner button.cookie-reject {
  background: #fff;
  color: #232323;
  border: 1.5px solid #e4e4e7;
}
.cookie-banner button.cookie-reject:hover,
.cookie-banner button.cookie-reject:focus {
  background: #F8F7FA;
  color: #0a0a0a;
}
.cookie-banner button.cookie-setting {
  background: #232323;
  color: #F2BE5C;
  border: 1.5px solid #F2BE5C;
}
.cookie-banner button.cookie-setting:hover,
.cookie-banner button.cookie-setting:focus {
  background: #F2BE5C;
  color: #232323;
}

@media (max-width: 900px) {
  .cookie-banner {
    flex-direction: column;
    gap: 12px;
    padding: 16px 6vw;
    font-size: .97rem;
  }
}

.cookie-modal {
  position: fixed;
  left: 50%;
  top: 50%;
  min-width: 290px;
  max-width: 98vw;
  width: 400px;
  padding: 32px 22px;
  background: #fff;
  color: #18191C;
  z-index: 1300;
  border-radius: 16px;
  box-shadow: 0 8px 56px rgba(24,28,32,0.25);
  display: flex;
  flex-direction: column;
  gap: 23px;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%,-48%) scale(.93);
  transition: opacity 0.25s, transform 0.32s cubic-bezier(.8,.13,.35,1.24);
}
.cookie-modal.open {
  opacity: 1;
  pointer-events: all;
  transform: translate(-50%,-50%) scale(1);
}
.cookie-modal h3 {
  font-size: 1.17rem;
  margin-bottom: 3px;
  color: #0A2A5A;
}
.cookie-modal label {
  font-size: .98rem;
  font-weight: 500;
  display: flex;
  gap: 8px;
  align-items: center;
  cursor: pointer;
}
.cookie-modal .category {
  margin-bottom: 9px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.cookie-modal .category input[type="checkbox"] {
  accent-color: #0A2A5A;
  width:18px;
  height: 18px;
}
.cookie-modal .modal-actions {
  display: flex;
  gap: 18px;
  justify-content: flex-end;
}
.cookie-modal button {
  background: #0A2A5A;
  color: #fff;
  padding: 7px 24px;
  border-radius: 17px;
  border: none;
  font-size: 1rem;
  font-family: 'Montserrat', Arial, sans-serif;
  transition: background 0.17s, color 0.16s;
  cursor: pointer;
}
.cookie-modal button:hover,
.cookie-modal button:focus {
  background: #232323;
  color: #F2BE5C;
}
@media (max-width: 600px) {
  .cookie-modal {
    width: 97vw;
    min-width: 0;
    padding: 19px 6px;
  }
  .cookie-modal .modal-actions {
    flex-direction: column;
    gap: 9px;
  }
}

/* =====================
   14. Miscellaneous Utilities
   ===================== */
::-webkit-scrollbar {
  width: 10px;
  background: #f4f4f4;
}
::-webkit-scrollbar-thumb {
  background: #dedede;
  border-radius: 6px;
}

hr {
  border: 0;
  border-top: 1px solid #ececec;
  margin: 40px 0 20px 0;
}

.section {
  margin-bottom: 60px !important;
  padding: 40px 20px;
}
.card-container {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 24px !important;
}
.card {
  margin-bottom: 20px !important;
  position: relative !important;
}
.content-grid {
  display: flex!important;
  flex-wrap: wrap!important;
  gap: 20px!important;
  justify-content: space-between!important;
}
.text-image-section {
  display: flex!important;
  align-items: center!important;
  gap: 30px!important;
  flex-wrap: wrap!important;
}
.testimonial-card {
  display: flex!important;
  align-items: center!important;
  gap: 20px!important;
  padding: 20px!important;
}
.feature-item {
  display: flex!important;
  flex-direction: column!important;
  align-items: flex-start!important;
  gap: 15px!important;
}

/* Always prevent content overlapping, maintain 20px+ margin */
.section > * + *,
.card-container > * + *,
.features-grid > * + *,
.service-cards > * + *,
.project-list > * + *,
.blog-list > * + *,
.testimonials > * + *,
.content-grid > * + *,
.text-image-section > * + *,
.main-nav > * + *,
.footer-nav > * + * {
  margin-left: 0;
}

/* =====================
   15. Accessibility
   ===================== */
.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.skip-link:focus {
  position: static;
  width: auto;
  height: auto;
  background: #0A2A5A;
  color: #fff;
  padding: 8px 18px;
  border-radius: 10px;
  z-index: 2002;
}

/* =====================
   16. Print Styles
   ===================== */
@media print {
  header, footer, .mobile-menu, .cookie-banner, .cookie-modal { display: none !important; }
}
